:root {
  font: 14px/1.5 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202b3b;
  background: #fff;
  color-scheme: light;
  --green: #00875e;
  --line: #e1e7ee;
  --muted: #738095;
  --blue: #1664dd;
  --orange: #b65e08;
  --red: #c53030;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }
h2 { font-size: 17px; font-weight: 650; }
strong { font-weight: 600; }
small, .muted { color: var(--muted); font-size: 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 7px 12px; border: 1px solid #d4dce7; border-radius: 4px;
  background: #fff; cursor: pointer; line-height: 1.5;
}
button:hover { background: #f3f7fa; border-color: #aebdcc; }
button:disabled { color: #98a3b3; background: #f1f3f6; border-color: #e4e8ee; cursor: not-allowed; }
button.primary { background: var(--green); border-color: var(--green); color: #fff; }
button.primary:hover { background: #007450; }
button.primary:disabled { background: #abcbbf; border-color: #abcbbf; }
button.link { border: 0; background: none; color: var(--blue); padding: 7px 8px; }
.icon-button { width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 7px; flex: none; }
input, select, textarea { width: 100%; min-width: 0; max-width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #d4dce7; border-radius: 4px; background: #fff; }
input::placeholder, textarea::placeholder { color: #8a96a7; }
textarea { resize: vertical; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #377de7; outline-offset: 2px; }
label { display: flex; flex-direction: column; align-items: stretch; gap: 8px; font-size: 13px; color: #536076; min-width: 0; }
form { display: grid; gap: 18px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 18px; height: 18px; flex-shrink: 0; }
[hidden] { display: none !important; }
.danger, .error { color: var(--red); }
.nowrap { white-space: nowrap; }
.wide { width: 100%; }
.skip-link { position: fixed; top: -70px; left: 12px; z-index: 20; background: #fff; padding: 10px 16px; border: 1px solid var(--blue); border-radius: 4px; }
.skip-link:focus { top: 10px; }

.console-page { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding-top: 24px; background: #f7f9fb; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 21px; margin-bottom: 29px; color: #125b41; font-size: 23px; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand > .brand-mark { display: block; width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.brand small { display: block; font-size: 13px; line-height: 1.8; font-weight: 400; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav button, .sidebar nav a { display: flex; align-items: center; justify-content: flex-start; gap: 16px; width: 100%; min-height: 52px; padding: 14px 22px; border: 0; border-left: 4px solid transparent; border-radius: 0; background: none; color: #202b3b; font-size: 15px; text-align: left; text-decoration: none; }
.sidebar nav button:hover, .sidebar nav a:hover { background: #edf2f5; }
.sidebar nav [aria-current="page"], .sidebar nav [aria-current="location"] { border-left-color: var(--green); color: #006a4a; background: #e0f2e9; font-weight: 600; }
.sidebar nav svg { width: 22px; height: 22px; }
.sidebar-bottom { margin-top: auto; padding: 20px; display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.sidebar-bottom > span { display: flex; align-items: center; gap: 8px; }
.sidebar-bottom svg { width: 14px; height: 14px; }
.console-workspace { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { min-height: 62px; padding: 12px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.breadcrumb, .topbar nav, .identity, .topbar nav a { display: flex; align-items: center; gap: 10px; min-width: 0; }
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: #4e5a6d; font-weight: 500; }
.breadcrumb svg { width: 14px; height: 14px; }
.topbar nav { gap: 20px; font-size: 13px; flex-wrap: wrap; }
.topbar nav a { gap: 4px; }
.identity { color: #536076; overflow-wrap: anywhere; }
.identity svg { color: var(--green); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; min-height: 94px; border-bottom: 1px solid var(--line); }
.page-heading p { margin-top: 5px; font-size: 12px; color: var(--muted); }
.page-heading > button { flex-shrink: 0; }
.heading-count { margin-left: 12px; font-size: 18px; font-weight: 500; color: #64748b; font-variant-numeric: tabular-nums; }
.app-footer { margin-top: auto; padding: 10px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); background: #f8fafc; color: #7f8b9f; font-size: 11px; }

.admin-main, .account-main { min-width: 0; flex: 1; }
.admin-toolbar { display: flex; align-items: center; gap: 12px; padding: 14px 24px; min-height: 67px; }
.search-tools { display: flex; gap: 9px; align-items: center; flex: 1; min-width: 0; }
.search-label { display: flex; flex-direction: row; align-items: center; gap: 8px; flex: 1; max-width: 380px; padding: 0 10px; border: 1px solid #d4dce7; border-radius: 4px; background: #fff; }
.search-label svg { width: 16px; height: 16px; color: #738095; }
.search-label input { border: 0; padding-left: 0; }
.search-label:focus-within { outline: 2px solid #377de7; outline-offset: 2px; }
.search-label input:focus-visible { outline: 0; }
.refresh-button { margin-left: auto; flex-shrink: 0; }
#admin-feedback { margin: 0 24px 12px; }
#admin-results { margin: 0 24px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { padding: 12px 14px; background: #f2f6f9; border-bottom: 1px solid var(--line); color: #536076; font-size: 12px; font-weight: 550; white-space: nowrap; }
td { padding: 15px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; max-width: 360px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f5faf8; }
td small { display: block; margin-top: 4px; }
#devices details, #dialog-body td details { margin-top: 5px; color: var(--muted); font-size: 12px; }
#devices summary, #dialog-body td summary { cursor: pointer; }
#devices details p, #dialog-body td details p { margin-top: 4px; }
summary:focus-visible { outline: 2px solid #377de7; outline-offset: 2px; }
.user-cell { display: flex; gap: 11px; align-items: center; min-width: 185px; }
.user-avatar { width: 34px; height: 34px; border: 1px solid #dfebe6; border-radius: 4px; background: #edf8f3; color: #00845b; display: grid; place-items: center; flex-shrink: 0; }
.user-cell strong { display: block; font-weight: 550; }
.user-cell small { font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.badge svg { width: 15px; height: 15px; }
.badge.active { color: #00845b; }
.badge.expired { color: var(--orange); }
.badge.danger { color: var(--red); }
.row-actions { display: flex; gap: 5px; }
.row-actions .icon-button { color: #63758d; border-color: transparent; background: none; }
.row-actions .icon-button:hover { color: var(--blue); border-color: #cddff6; background: #eef5ff; }
.admin-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 24px; color: var(--muted); font-size: 12px; }
.admin-pagination > span:first-child { margin-right: auto; }
#page-label { min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.empty-state { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); text-align: center; padding: 30px 18px; }
.empty-state > svg { width: 38px; height: 38px; color: #9ba9b8; }
.empty-state p { font-size: 13px; }
.empty { text-align: center; padding: 0; }
#admin-results[aria-busy="true"] { opacity: .6; pointer-events: none; }
#feedback, #admin-feedback, #dialog-feedback { font-size: 13px; overflow-wrap: anywhere; }
#feedback:not(:empty), #admin-feedback:not(:empty) { padding: 10px 12px; border-radius: 4px; background: #edf5ff; color: #416385; }
#feedback.error:not(:empty), #admin-feedback.error:not(:empty) { background: #fff1ed; color: #a53220; }
#feedback:empty, #admin-feedback:empty, #dialog-feedback:empty { display: none; }
.account-main > #feedback { margin: 16px 24px; }
.initial-status { padding: 30px 24px; color: var(--muted); }

.account-metrics { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; padding: 25px 24px; border-bottom: 1px solid var(--line); }
.account-metrics > div { border-right: 1px solid var(--line); padding-right: 24px; min-width: 0; }
.account-metrics > div:last-child { border: 0; padding-right: 0; }
.account-metrics span { color: var(--muted); font-size: 12px; }
.account-metrics strong { display: block; font-size: 21px; font-weight: 550; margin-top: 9px; line-height: 30px; }
.account-metrics strong.active { color: #00845b; }
.account-metrics .date-value { font-size: 15px; overflow-wrap: anywhere; }
.account-section { padding: 24px; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.account-section > h2, .section-heading { margin-bottom: 18px; }
.account-section > p { margin-bottom: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inline-form { grid-template-columns: minmax(160px, 1fr) auto; align-items: end; max-width: 680px; gap: 12px; }
.inline-form button { min-height: 38px; }
.short-form { max-width: 380px; }
.short-form button { justify-self: start; }

.account-page[data-auth="locked"] { display: block; }
.account-page[data-auth="locked"] > .sidebar { display: none; }
.account-page[data-auth="locked"] .console-workspace { min-height: 100vh; }
.account-page[data-auth="locked"] .topbar { padding-inline: 32px; }
.auth-layout { width: 400px; max-width: calc(100% - 40px); margin: 54px auto 70px; }
.account-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; color: var(--green); font-size: 24px; }
.account-brand > .brand-mark { display: block; width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.account-brand small { display: block; font-size: 13px; font-weight: 400; margin-top: 4px; }
.auth-heading { margin-bottom: 22px; }
.auth-heading h1 { font-size: 24px; }
.auth-heading p { color: var(--muted); margin-top: 7px; font-size: 13px; }
.auth-tabs { display: flex; gap: 25px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.auth-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: #637189; padding: 10px 0; font-size: 13px; }
.auth-tabs button[aria-pressed="true"] { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.auth-layout input { min-height: 42px; }
.auth-layout button[type="submit"] { min-height: 42px; }

dialog { color: inherit; width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; overflow: auto; border: 1px solid #d9e1ea; border-radius: 6px; box-shadow: 0 14px 50px #25384d33; }
dialog::backdrop { background: #20304465; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-size: 19px; overflow-wrap: anywhere; }
#dialog-body { padding: 24px; }
#dialog-body > p { margin-bottom: 18px; }
#dialog-body > h2 { margin-bottom: 14px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.system-settings-form { display: grid; gap: 18px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; }
.plan-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.plan-cards article { border: 1px solid #dce4ec; border-radius: 8px; padding: 14px; background: #fff; }
.plan-cards article.current { border-color: #7ccbb0; background: #f1fbf7; box-shadow: inset 0 3px 0 var(--green); }
.plan-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.plan-card-heading strong,.plan-card-heading .badge { margin: 0; }
.plan-cards strong,.plan-cards p,.plan-cards small { display: block; margin: 0 0 7px; }
.plan-cards small { color: #66758a; word-break: break-word; }
.account-plan-cards { margin-bottom: 12px; }
.account-plan-cards article p { color: #536076; min-height: 42px; }
.settings-save { display: grid; grid-template-columns: minmax(240px,420px) auto; gap: 16px; align-items: end; padding: 18px; border: 1px solid #dce4ec; border-radius: 8px; background: #fff; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 4px; }
.detail-summary { display: flex; flex-wrap: wrap; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-summary > div { display: grid; gap: 7px; }
.detail-summary strong { font-weight: 550; }
.detail-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 24px; }
.code-output { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12px; min-height: 160px; overflow-wrap: anywhere; }
.audit-detail { font: 12px/1.8 ui-monospace, SFMono-Regular, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow: auto; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: #f8fafc; }
.notice { padding: 12px 14px; background: #fff3e5; color: #985305; font-size: 13px; border-radius: 4px; }

@media (max-width: 1280px) {
  .console-page { grid-template-columns: 176px minmax(0, 1fr); }
  .brand { padding: 0 15px; gap: 9px; font-size: 21px; }
  .sidebar nav button, .sidebar nav a { padding-left: 12px; gap: 12px; font-size: 14px; }
  .topbar, .page-heading, .account-section { padding-inline: 20px; }
  #admin-results { margin-inline: 20px; }
}
@media (max-width: 980px) {
  .console-page { grid-template-columns: 64px minmax(0, 1fr); }
  .brand { padding: 0; justify-content: center; }
  .brand > span, .sidebar nav span, .sidebar-bottom { display: none; }
  .sidebar nav button, .sidebar nav a { justify-content: center; padding: 15px 4px 15px 0; }
  .topbar { padding-inline: 16px; }
  .topbar nav { gap: 12px; }
  .admin-main table { min-width: 940px; }
  .account-metrics { gap: 16px; }
  .account-metrics > div { padding-right: 16px; }
}
@media (max-width: 700px) {
  .console-page { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 0; border-right: 0; }
  .brand { display: none; }
  .sidebar nav { display: flex; border-bottom: 1px solid var(--line); gap: 0; }
  .sidebar nav button, .sidebar nav a { width: auto; min-width: 0; flex: 1; flex-direction: column; gap: 5px; padding: 10px 4px; border-left: 0; border-bottom: 2px solid transparent; }
  .sidebar nav span { display: block; font-size: 11px; }
  .sidebar nav svg { width: 20px; height: 20px; }
  .sidebar nav [aria-current="page"], .sidebar nav [aria-current="location"] { border-left: 0; border-bottom-color: var(--green); }
  .console-workspace { min-height: calc(100vh - 73px); }
  .topbar { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .topbar nav { font-size: 12px; }
  .breadcrumb { font-size: 12px; }
  .page-heading { padding: 17px 14px; min-height: 86px; }
  .page-heading h1 { font-size: 20px; }
  .page-heading > button { font-size: 12px; padding-inline: 9px; }
  .admin-toolbar { padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
  .search-tools { flex-basis: 100%; gap: 6px; }
  .search-tools > button { flex: none; font-size: 12px; }
  .search-label { max-width: none; }
  .search-label input { width: 100%; }
  #admin-results { margin: 0 14px; }
  #admin-feedback, .account-main > #feedback { margin-inline: 14px; }
  .admin-pagination { padding: 14px; gap: 10px; }
  .account-section { padding: 22px 14px; }
  .account-main table { min-width: 0; table-layout: fixed; }
  .account-main th, .account-main td { padding-inline: 9px; }
  .account-main th:first-child { width: 48%; }
  .account-main th:nth-child(2) { width: 20%; }
  .account-main .user-cell { min-width: 0; gap: 6px; }
  .account-metrics { padding: 22px 14px; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .account-metrics > div { border: 0; padding: 0; }
  .account-metrics > div:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
  .account-metrics strong { font-size: 20px; }
  .account-metrics .date-value { font-size: 14px; }
  .inline-form { grid-template-columns: minmax(0, 1fr); }
  .inline-form button { justify-self: start; }
  .auth-layout { margin-top: 35px; }
  .account-page[data-auth="locked"] .topbar { padding-inline: 20px; }
  .app-footer { padding-inline: 14px; }
  .form-pair { grid-template-columns: 1fr; }
  .settings-grid,.plan-cards,.settings-save { grid-template-columns: 1fr; }
  .dialog-heading, #dialog-body { padding: 18px; }
  .detail-toolbar button { font-size: 12px; }
}

/* Employee BI keeps login presence separate from verified publication results. */
.usage-toolbar { align-items: flex-start; padding-block: 18px; background: #fbfcfd; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.usage-filters { flex: 1; min-width: 0; display: grid; gap: 15px; }
.usage-filter-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.usage-periods { display: inline-flex; padding: 3px; background: #edf1f5; border-radius: 6px; gap: 3px; }
.usage-periods button { min-height: 32px; padding: 5px 13px; background: transparent; border-color: transparent; color: #647187; font-size: 13px; }
.usage-periods button[aria-pressed="true"] { background: #fff; color: #007c57; box-shadow: 0 1px 4px #1a393d12; font-weight: 600; }
.usage-date-fields { display: flex; align-items: flex-end; gap: 9px; }
.usage-date-fields label { font-size: 11px; gap: 4px; }
.usage-date-fields > span { padding-bottom: 9px; color: var(--muted); }
.usage-date-fields input { min-height: 34px; font-size: 12px; padding: 6px 8px; }
.usage-date-fields button { min-height: 34px; font-size: 12px; }
.usage-filter-selects { display: grid; grid-template-columns: repeat(4,minmax(110px,1fr)); gap: 12px; max-width: 890px; }
.usage-filter-selects label { font-size: 11px; gap: 5px; }
.usage-filter-selects select { min-height: 36px; font-size: 13px; }
.usage-toolbar > .refresh-button { margin-top: 2px; }
.usage-dashboard { display: grid; gap: 18px; }
.usage-range-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.usage-range-caption > span:first-child { display: flex; align-items: center; gap: 7px; color: #536076; }
.usage-range-caption svg { width: 15px; height: 15px; }
.usage-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.usage-kpi { padding: 19px 20px 18px; border: 1px solid #dce7e2; border-radius: 7px; background: #fff; min-width: 0; }
.usage-kpi > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: #536076; }
.usage-kpi svg { width: 20px; height: 20px; color: #219571; }
.usage-kpi > strong { display: block; font-size: 32px; line-height: 1.2; font-weight: 650; color: #153f32; margin: 13px 0 8px; font-variant-numeric: tabular-nums; }
.usage-kpi > small { font-size: 11px; }
.usage-outcomes { display: flex; align-items: center; gap: 24px; padding: 12px 16px; margin-top: -5px; background: #f7f9fb; border-radius: 5px; color: #667387; font-size: 12px; flex-wrap: wrap; }
.usage-outcomes > span { display: flex; align-items: center; gap: 7px; }
.usage-outcomes strong { font-size: 15px; color: #33445a; font-variant-numeric: tabular-nums; }
.usage-outcomes > small { margin-left: auto; font-size: 11px; }
.usage-outcome-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.usage-outcome-dot.blue { background: #4b8bda; }.usage-outcome-dot.red { background: #d9766b; }.usage-outcome-dot.orange { background: #c79a59; }
.usage-panel { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.usage-section-heading { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.usage-section-heading h2 { font-size: 15px; }
.usage-section-heading p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.usage-section-count { font-size: 11px; color: var(--muted); }
.usage-panel > .table-scroll { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.usage-panel th { background: #f7f9fb; padding-block: 10px; font-size: 11px; }
.usage-panel td { font-size: 12px; padding-block: 14px; }
.usage-panel td small { font-size: 11px; }
.usage-employee-table table { min-width: 1050px; }
.usage-events-table table { min-width: 1040px; }
.usage-employee-link { display: inline-flex; gap: 9px; border: 0; padding: 0; min-height: 0; background: none; font-size: 12px; max-width: 200px; color: #27384b; text-align: left; }
.usage-employee-link:hover { background: none; color: var(--green); }
.usage-employee-link > svg { width: 13px; height: 13px; color: #8d9caa; }
.usage-employee-link > span:not(.usage-avatar) { overflow-wrap: anywhere; }
.usage-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 5px; color: #269572; background: #ecf6f1; flex: none; }
.usage-avatar svg { width: 15px; height: 15px; }
.usage-presence { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #647186; font-size: 12px; }
.usage-presence > span { width: 6px; height: 6px; border-radius: 50%; background: #9aa5b3; }
.usage-presence.active { color: #00865d; }.usage-presence.active > span { background: #179b71; box-shadow: 0 0 0 3px #e7f4ee; }
.usage-presence.recent { color: #42699a; }.usage-presence.recent > span { background: #6598d2; }
.usage-presence.unknown { color: #8994a5; }.usage-presence.unknown > span { background: #c4ccd6; }
.usage-metric-cell { color: #007d59; font-size: 15px !important; font-weight: 600; }
.usage-count-muted { color: #596a80; white-space: nowrap; }
.usage-time { white-space: nowrap; font-size: 12px; color: #4f5e73; }
.usage-time small { color: #7b8798; }
.usage-records-link { min-height: 0; padding: 0 !important; font-size: 11px; white-space: nowrap; }
.account-usage { display: grid; gap: 3px; }
.account-usage small { font-size: 11px; margin: 0; }
.usage-table-empty { padding: 36px 18px !important; text-align: center; color: var(--muted); font-size: 12px; }
.usage-product-title { display: block; max-width: 270px; font-weight: 500; font-size: 12px; }
.usage-identifiers { font-size: 10px !important; color: #8792a1; }
.usage-identifiers > span { display: block; margin: 3px 0; white-space: nowrap; }
.usage-identifiers code { font: 10px ui-monospace, SFMono-Regular, monospace; color: #63728a; }
.usage-event-status { display: inline-block; padding: 3px 7px; border-radius: 4px; font-size: 11px; white-space: nowrap; background: #edf1f5; color: #69798e; }
.usage-event-status.green { color: #008259; background: #eaf7f0; }.usage-event-status.blue { color: #3264a9; background: #eaf2fc; }.usage-event-status.orange { color: #a4772e; background: #fff5e6; }.usage-event-status.red { color: #bd5145; background: #fdf0ee; }
.usage-event-type { color: #788598; font-size: 11px; }
.usage-legend { display: flex; align-items: center; gap: 16px; color: #65758b; font-size: 11px; }
.usage-legend > span { display: flex; align-items: center; gap: 6px; }
.usage-legend i { width: 8px; height: 8px; border-radius: 2px; background: #008d64; }.usage-legend i.promotion { background: #69a4e6; }
.usage-chart { display: block; width: calc(100% - 32px); height: 210px; margin: 0 16px 12px; }
.usage-chart text { font: 10px system-ui,sans-serif; fill: #8290a2; }
.usage-grid-line { stroke: #e9eef3; stroke-width: 1; stroke-dasharray: 3 4; }
.usage-bar-listing { fill: #159a74; }.usage-bar-promotion { fill: #72a9e4; }
.usage-chart-empty { min-height: 190px; padding: 24px; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--muted); text-align: center; }
.usage-chart-empty svg { width: 30px; height: 30px; color: #a5b7c7; }.usage-chart-empty strong { font-size: 13px; font-weight: 500; }.usage-chart-empty span { font-size: 11px; }
.usage-data-note { display: flex; gap: 9px; padding: 2px 0 12px; color: #7a899b; font-size: 11px; line-height: 1.7; }
.usage-data-note svg { width: 14px; height: 14px; margin-top: 2px; }.usage-data-note p + p { margin-top: 4px; }
@media (max-width: 1280px) { .usage-kpi { padding: 16px; }.usage-kpi > strong { font-size: 30px; }.usage-filter-selects { max-width: 760px; }.usage-filter-main { gap: 9px; } }
@media (max-width: 700px) {
  .admin-nav { overflow-x: auto; max-width: 100vw; }
  .sidebar .admin-nav button { flex: 0 0 78px; }
  .usage-toolbar { padding-block: 14px; }.usage-toolbar > .refresh-button { margin-top: 0; }
  .usage-filters { flex-basis: 100%; gap: 12px; }.usage-filter-main { gap: 6px; }.usage-periods button { padding-inline: 10px; font-size: 12px; }.usage-filter-main > .link { font-size: 11px; }
  .usage-date-fields { flex-wrap: wrap; width: 100%; gap: 7px; }.usage-date-fields label { flex: 1; }.usage-date-fields input { width: 100%; }
  .usage-filter-selects { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .usage-dashboard { gap: 14px; }.usage-range-caption { font-size: 10px; gap: 4px; }.usage-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.usage-kpi { padding: 14px; }.usage-kpi > div { font-size: 11px; gap: 5px; }.usage-kpi svg { width: 16px; height: 16px; }.usage-kpi > strong { font-size: 27px; margin-block: 10px 7px; }.usage-kpi > small { font-size: 10px; }
  .usage-outcomes { padding: 10px 12px; gap: 12px; font-size: 11px; }.usage-outcomes > small { margin-left: 0; font-size: 10px; flex-basis: 100%; }
  .usage-section-heading { padding: 14px; gap: 7px; }.usage-section-heading h2 { font-size: 14px; }.usage-legend { gap: 10px; font-size: 10px; }.usage-chart { width: calc(100% - 12px); height: 165px; margin-inline: 6px; }
  .usage-panel td { padding-inline: 12px; }.usage-data-note { font-size: 10px; }
}
