:root { color-scheme: light dark; font: 16px/1.5 system-ui,sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #f3f5f8; color: #182537; }
header { background: #16283f; color: #fff; padding: 1rem; }
header nav { max-width: 74rem; margin: auto; display: flex; gap: 1rem; flex-wrap: wrap; }
header a { color: #fff; }
main { max-width: 74rem; margin: auto; padding: 1rem; }
h1 { font-size: 1.8rem; } h2 { font-size: 1.3rem; }
section { padding: 1.2rem; margin: 1rem 0; background: #fff; border: 1px solid #d8dee7;
 border-radius: .6rem; }
a { color: #174f94; } p { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th,td { padding: .65rem; border-bottom: 1px solid #d8dee7; vertical-align: top;
 overflow-wrap: anywhere; }
label { display: block; margin: .6rem 0; }
input,select,button { font: inherit; padding: .6rem; border: 1px solid #78869a;
 border-radius: .3rem; max-width: 100%; }
button { background: #174f94; color: #fff; cursor: pointer; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
 outline: 3px solid #d99500; outline-offset: 2px; }
form { margin: .6rem 0; } .inline { display: inline-block; margin-right: .5rem; }
.danger { background: #9a2727; } .muted { color: #536176; }
code { overflow-wrap: anywhere; } .stack { display: flex; flex-wrap: wrap; gap: .5rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
footer { max-width: 74rem; margin: auto; padding: 1rem; }
footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.button { display: inline-block; background: #174f94; color: #fff; padding: .6rem 1rem;
 border-radius: .3rem; text-decoration: none; }
.legal h2 { margin-top: 1.2rem; } .legal h2:first-child { margin-top: 0; }
@media (max-width: 600px) { main { padding: .65rem; } section { padding: .8rem; }
 th,td { padding: .45rem; } input,select { width: 100%; } }
@media (prefers-color-scheme: dark) {
 body { background: #111a26; color: #edf1f7; } section { background: #1a2738; }
 section,th,td { border-color: #405068; } a { color: #9dc6ff; }
 .muted { color: #bac7d9; } input,select { background: #142033; color: #edf1f7; }
}
.admin-shell { --page: #f3f5f8; --text: #182537; --card: #fff; --border: #d8dee7;
 --line: #d8dee7; --muted: #536176; --input-border: #78869a; --link: #174f94;
 --link-hover: #123c70; --header: #e8edf5; --open: #edf3fc; --track: #d8e2ef;
 --fill: #2563eb; --warning: #a45d00; --secondary: #e6eefb; --secondary-text: #174f94;
 --secondary-border: #9ab4d8; --danger: #9a2727; --danger-border: #b95a64;
 background: var(--page); color: var(--text); font: 14px/1.4 Inter, system-ui, sans-serif; }
.admin-shell header { background: #16283f; border-bottom: 1px solid var(--line);
 min-height: 52px; padding: 16px 20px; }
/* The users table scrolls within its section at narrow viewport widths. */
.admin-shell header nav,.admin-shell main,.admin-shell footer { max-width: 1680px; }
.admin-shell main { padding: 20px; min-width: 0; }
.admin-shell h1 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.admin-shell main > .muted { margin: 0 0 16px; }
.admin-shell a { color: var(--link); }
.admin-shell a:hover { color: var(--link-hover); }
.admin-shell header a { color: #fff; }
.admin-shell :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.admin-page { display: grid; gap: 16px; min-width: 0; }
.admin-page section { background: var(--card); border: 1px solid var(--border);
 border-radius: 10px; padding: 12px 16px; margin: 0; min-width: 0; }
.admin-page h2 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.overview-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.overview-cards section { display: flex; align-items: baseline; justify-content: space-between;
 gap: 8px; }
.overview-cards h2 { color: var(--muted); font-size: 13px; font-weight: 400; margin: 0; }
.overview-cards strong { font-size: 22px; font-weight: 700; white-space: nowrap; }
.admin-page input,.admin-page select,.admin-page button { height: 36px; border-radius: 8px;
 font: inherit; border: 1px solid var(--input-border); padding: 0 10px; max-width: 100%; }
.admin-page input,.admin-page select { background: var(--page); color: var(--text); }
.admin-page button { background: #2563eb; border-color: #2563eb; color: #fff;
 font-weight: 600; padding: 0 18px; cursor: pointer; white-space: nowrap; }
.admin-page .secondary { background: var(--secondary); color: var(--secondary-text);
 border-color: var(--secondary-border); }
.admin-page .outline { background: transparent; color: var(--text);
 border-color: var(--input-border); }
.admin-page .danger { background: transparent; border-color: var(--danger-border);
 color: var(--danger); }
.admin-page .muted,.admin-page summary { color: var(--muted); }
.admin-page summary { color: var(--link); cursor: pointer; width: fit-content; }
.admin-page details { margin-top: 10px; }
.admin-page form { margin: 0; }
.invite-row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.invite-row label { margin: 0; min-width: 0; }
.invite-row > label:first-child { flex: 1 1 220px; }
.invite-row input,.invite-row select { display: block; width: 100%; }
.access-choices { padding: 0; margin: 0; border: 0; min-width: 0; }
.access-choices legend { padding: 0; }
.access-choices > div { display: flex; gap: 4px; }
.access-choices label { position: relative; }
.access-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.access-choices span { display: flex; align-items: center; height: 36px; padding: 0 10px;
 border: 1px solid var(--input-border); border-radius: 8px; cursor: pointer; }
.access-choices input:checked + span { background: #2563eb; border-color: #2563eb; color: #fff; }
.access-choices input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.users-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { display: inline-flex; gap: 5px; align-items: center; height: 32px;
 padding: 0 12px; border: 1px solid var(--input-border); border-radius: 16px;
 text-decoration: none; color: var(--text); white-space: nowrap; }
.admin-page .filter-chip[aria-current] { background: #2563eb; border-color: #2563eb; color: #fff; }
.admin-search { margin-left: auto !important; }
.admin-search input { width: 200px; }
.user-count { color: var(--muted); font-size: 13px; text-align: right; margin: 6px 0; }
.admin-page .table-scroll { position: relative; overflow-x: auto; max-width: 100%; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.admin-table th,.admin-table td { border: 0; border-top: 1px solid var(--line);
 padding: 6px 12px; vertical-align: middle; }
.admin-table thead { background: var(--header); color: var(--muted); font-size: 12px; }
.admin-table th { font-weight: 600; border: 0; }
.admin-table th a { color: inherit; text-decoration: none; }
/* Admin cells never break a word mid-way (the base rule's anywhere let auto-layout columns shrink
 to a few letters); fixed-width tables keep it for long tokens. */
.admin-shell :is(th,td) { overflow-wrap: normal; word-break: normal; }
.admin-shell th:not(.admin-users th),.blueprint-table td + td { white-space: nowrap; }
.admin-shell :is(.admin-invites,.admin-audit,.admin-users) td { overflow-wrap: anywhere; }
/* 20.30 users list v2 (Roman 2. 12.): column groups, fixed tracks (admin.js drops hidden
 ones), one-line cells that never run into the next one; wider than its section it
 scrolls inside .users-scroll. */
/* 20.34 users list v3 (Roman 3. 12.): compact tracks, all 17 columns fit the 1680 px shell; the
 Extend column became a "+" popover in Access until. */
.admin-users { min-width: 1544px; width: 100%; }
.admin-users > :is(thead,tbody) > tr { display: grid;
 grid-template-columns: 32px minmax(220px,1fr) 84px 132px 112px 96px 124px 88px 60px 64px 68px
 68px 72px 64px 56px 92px 112px; column-gap: 0; padding: 0; }
.admin-users > thead > tr.group-row > th { font-size: 11px; font-weight: 600; letter-spacing: .06em;
 text-transform: uppercase; color: var(--muted); padding: 8px 8px 4px; white-space: nowrap; }
.admin-users > thead > tr.group-row > th.group-user { grid-column: 1 / span 2; }
.admin-users > thead > tr.group-row > th.group-profile { grid-column: span 3; }
.admin-users > thead > tr.group-row > th.group-today { grid-column: span 2; }
.admin-users > thead > tr.group-row > th.group-period { grid-column: span 8; }
.admin-users > thead > tr.group-row > th.group-total { grid-column: span 2; }
.admin-users > thead > tr.head-row > th { font-size: 12px; font-weight: 400; color: var(--muted);
 white-space: normal; line-height: 1.25; padding: 4px 8px 8px; align-self: end;
 overflow-wrap: normal; word-break: normal; }
.admin-users > thead > tr.head-row > th[aria-sort$="ending"],
.admin-users > thead > tr.head-row > th[aria-sort$="ending"] a { color: var(--text); }
.admin-users > thead > tr > th.num,.admin-users > tbody > tr > td.num { text-align: right; }
.admin-users > tbody > tr.user-row > td { padding: 0 8px; overflow: hidden; text-overflow: ellipsis;
 white-space: nowrap; font-size: 14px; }
.admin-users > :is(thead,tbody) > tr > .group-start { border-left: 1px solid var(--line); }
.admin-users > :is(thead,tbody) > tr:is(.group-row,.head-row,.user-row)
 > :is(:first-child,:nth-child(2)) { position: sticky; z-index: 1;
 background: inherit; }
.admin-users > :is(thead,tbody) > tr:is(.head-row,.user-row) > :first-child { left: 0; }
.admin-users > :is(thead,tbody) > tr:is(.head-row,.user-row) > :nth-child(2) { left: 32px; }
.admin-users > thead > tr.group-row > :first-child { left: 0; }
.users-scroll.scrolled .admin-users > :is(thead,tbody) > tr:is(.head-row,.user-row)
 > :nth-child(2) {
 box-shadow: 8px 0 8px -6px rgba(0,0,0,.35); }
.users-scroll.scrolled .admin-users > thead > tr.group-row > :first-child { box-shadow: none; }
.admin-users > thead > tr { background: var(--header); }
.admin-users > tbody > tr.user-row { background: var(--card); }
.admin-users td.chevron { padding: 0 0 0 10px; }
.admin-users .dim,.admin-users .dim-text,.admin-users .limit { color: var(--muted); }
.admin-users .limit { font-size: 12px; }
.admin-users .meter { display: grid; gap: 5px; }
.admin-users .meter b { font-weight: 600; }
.admin-users .meter-bar { appearance: none; border: 0; border-radius: 2px; display: block;
 width: 100%;
 height: 4px; overflow: hidden; background: var(--track); color: var(--fill); }
.admin-users .meter-bar::-webkit-progress-bar { background: var(--track); border-radius: inherit; }
.admin-users .meter-bar::-webkit-progress-value { background: var(--fill); border-radius: inherit; }
.admin-users .meter-bar::-moz-progress-bar { background: var(--fill); border-radius: inherit; }
.admin-users .meter-bar.high::-webkit-progress-value { background: #f5b041; }
.admin-users .meter-bar.high::-moz-progress-bar { background: #f5b041; }
.admin-users .meter-bar.full::-webkit-progress-value { background: #ef5b5b; }
.admin-users .meter-bar.full::-moz-progress-bar { background: #ef5b5b; }
/* 20.34: the 84 px Plan column puts a Blocked / Expired / Deleted chip on a second line. */
.admin-users .plan-cell { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px;
 max-width: 100%; }
.admin-users .plan-cell > span:not([class]) { min-width: 0; overflow: hidden;
 text-overflow: ellipsis; }
.admin-users .plan-cell:has(.status-chip)::after { content: ""; order: 1; flex-basis: 100%;
 height: 0; }
.admin-page .admin-users .status-dot { width: 8px; height: 8px; border-radius: 50%;
 background: #34d399;
 flex: 0 0 8px; }
.admin-page .admin-users .status-chip { order: 2; border-radius: 10px; padding: 0 6px;
 font-size: 11px; line-height: 16px;
 font-weight: 600; color: #ef5b5b; background: rgba(239,91,91,.15); }
.admin-users .plan-cell .online-dot { order: 1; width: 6px; height: 6px; flex-basis: 6px;
 box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
.admin-users .user-identity strong { font-weight: 600; }
.admin-users .user-identity .user-name { font-size: 12px; }
.admin-users .sort-button { all: unset; cursor: pointer; }
.admin-users .sort-button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.admin-users .today-mark { color: #3fcf8e; font-weight: 600; }
.col-picker { position: relative; display: inline-block; }
.admin-page .col-picker > button.filter-chip { background: transparent; color: inherit;
 border: 1px solid var(--border); font: inherit; cursor: pointer; }
.col-picker > div { position: absolute; z-index: 5; top: 36px; left: 0; display: grid; gap: 2px;
 min-width: 200px; padding: 8px; background: var(--header); border: 1px solid var(--border);
 border-radius: 8px; }
.admin-page .col-picker label { display: flex; gap: 6px; align-items: center; margin: 0;
 padding: 2px 0; font-size: 13px; }
.admin-page .col-picker input { margin: 0; width: auto; height: auto; }
.usage-multiples { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
 gap: 8px; margin-top: 6px; }
.usage-multiples > div { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }
.usage-multiples h4 { margin: 0 0 2px; font-size: 12px; color: var(--metric-color); }
.usage-buttons [data-metric="all"]::before { background: conic-gradient(var(--usage-active) 0 25%,
 var(--usage-ai) 0 50%, var(--usage-drill) 0 75%, var(--usage-auditflops) 0); }
.admin-users > :is(thead,tbody) > tr > :is(th,td) { padding: 0; border: 0; min-width: 0; }
.admin-users > tbody > tr[data-empty] > td { grid-column: 1 / -1; }
.admin-users .user-row { border-top: 1px solid var(--line); min-height: 52px; align-items: center;
 cursor: pointer; }
.admin-users .user-row:has([aria-expanded="true"]),.user-details { background: var(--open); }
.admin-page [hidden] { display: none !important; }
.user-identity { display: flex; gap: 8px; align-items: center; min-width: 0; }
.user-identity > div { min-width: 0; }
.user-identity strong { display: block; overflow: hidden; text-overflow: ellipsis;
 white-space: nowrap; font-weight: 600; }
.user-name { display: block; font-size: 12px; color: var(--muted); }
.admin-page .row-toggle { display: inline-flex; padding: 0; background: transparent; border: 0;
 color: var(--link); height: 28px; width: 18px; flex: 0 0 18px; align-items: center; }
.row-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.row-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.status-pill { display: inline-flex; gap: 4px; align-items: center; border-radius: 10px;
 padding: 2px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-active { background: #e2f4e8; color: #196039; }
.pill-blocked,.pill-deleted { background: #ffe6e5; color: #9a2727; }
.pill-expired { background: #fff0d5; color: #885500; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex: 0 0 8px; }
.access-note { display: block; font-size: 12px; color: var(--muted); }
.admin-page .warn { color: var(--warning); }
.admin-page .access-note.past { color: #885500; }
.admin-users td,.overview-cards strong { font-variant-numeric: tabular-nums; }
.mini-usage { display: grid; grid-template-columns: minmax(12px,1fr) auto; gap: 4px;
 align-items: center; }
.mini-usage span { font-size: 13px; white-space: nowrap; }
.mini-usage:not(:has(progress)) span { grid-column: 1 / -1; }
.usage-bar { appearance: none; border: 0; border-radius: 3px; display: block;
 background: var(--track); color: var(--fill); width: 100%; height: 6px; overflow: hidden; }
.usage-bar::-webkit-progress-bar { background: var(--track); border-radius: inherit; }
.usage-bar::-webkit-progress-value { background: var(--fill); border-radius: inherit; }
.usage-bar::-moz-progress-bar { background: var(--fill); border-radius: inherit; }
.usage-bar.warn::-webkit-progress-value { background: var(--warning); }
.usage-bar.warn::-moz-progress-bar { background: var(--warning); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-actions form { display: flex; gap: 6px; align-items: end; }
.admin-actions label { margin: 0; }
.admin-actions label input { display: block; }
.admin-users td.access { overflow: visible; }
.access-cell { display: flex; align-items: center; justify-content: space-between; gap: 4px;
 min-width: 0; }
.access-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.access-day { display: block; }
.admin-page .admin-users .access-note.past { color: #c62828; }
.admin-page .extend-toggle { width: 28px; height: 28px; flex: 0 0 28px; padding: 0;
 border-radius: 6px; font-size: 18px; line-height: 1; display: inline-flex; align-items: center;
 justify-content: center;
 background: transparent; color: var(--link); border: 1px solid var(--border); cursor: pointer; }
.admin-page .extend-toggle:hover,.admin-page .extend-toggle[aria-expanded="true"] {
 background: var(--header); }
.admin-page .extend-toggle:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }
.extend-pop { position: fixed; z-index: 20; display: flex; align-items: center; gap: 8px;
 padding: 8px 10px; background: var(--header); border: 1px solid var(--border); border-radius: 8px;
 box-shadow: 0 6px 18px rgba(0,0,0,.25); white-space: nowrap; font-size: 13px; }
.extend-label { color: var(--muted); font-size: 12px; }
.extend-actions { flex-wrap: nowrap; gap: 4px; }
.extend-actions button { height: 30px; min-width: 52px; border-radius: 6px; padding: 0 8px; }
.admin-users > tbody > .user-details { display: block; padding: 12px 16px 16px 34px;
 border-top: 1px dashed var(--border); }
.gateway-id { display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
 margin-bottom: 12px; color: var(--muted); }
.gateway-id code { font: 12px ui-monospace, monospace; color: var(--text); }
.admin-page .copy-id { height: 26px; border-radius: 6px; padding: 0 8px; font-size: 12px; }
.detail-layout { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: start; }
.admin-usage { min-width: 430px; flex: 1; display: grid; gap: 8px; }
.admin-usage > div { display: grid; grid-template-columns: 130px minmax(120px,1fr) 150px;
 gap: 8px; align-items: center; }
.admin-usage .usage-bar { height: 8px; border-radius: 4px; }
.admin-usage > div > span:last-child { text-align: right; grid-column: 3; }
.detail-controls { flex: 1; min-width: 380px; }
.access-setter { margin-bottom: 12px; }
.access-setter input,.access-setter button { height: 34px; }
.empty-state { color: var(--muted); padding: 24px 16px !important; }
.admin-users [data-empty] { display: block; }
.admin-invites { min-width: 900px; table-layout: fixed; }
.admin-invites th:first-child { width: 25%; }
.admin-invites th:nth-child(2) { width: 60px; }
.admin-invites th:nth-child(3) { width: 112px; }       /* the spec's 90 px wrap the date */
.admin-invites td:nth-child(3) { white-space: nowrap; }
.admin-invites th:last-child { width: 190px; }
.open-invites th:first-child { width: auto; }
.open-invites th:nth-child(4),.open-invites th:nth-child(5) { width: 170px; }
.admin-invites td:last-child form { display: inline; }
.admin-invites button { padding: 0 10px; height: 32px; }
.copy-link { position: absolute; width: 1px; height: 1px !important; padding: 0 !important;
 clip-path: inset(50%); }
.copy-link:focus { position: static; width: 100%; height: 36px !important; clip-path: none; }
.admin-audit { min-width: 900px; table-layout: fixed; }
.admin-audit th:first-child { width: 170px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
 clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
 .admin-shell main { padding: 12px; }
 .admin-page section { padding: 10px; }
 .overview-cards { gap: 6px; }
 .overview-cards section { padding: 8px 6px; flex-direction: column; gap: 4px; }
 .overview-cards h2 { font-size: 10px; }
 .overview-cards strong { font-size: 18px; }
 .invite-row { gap: 8px; }
 .invite-row > label:first-child { flex-basis: 100%; }
 .access-choices span { padding: 0 8px; font-size: 12px; }
 .admin-search,.admin-search input { width: 100%; }
}
@media (prefers-color-scheme: dark) {
 .admin-shell { --page: #0e1524; --text: #e8eef8; --card: #18243a; --border: #2a3a55;
  --line: #24334d; --muted: #9fb0c8; --input-border: #35486a; --link: #9cc4ff;
  --link-hover: #c6dcff; --header: #152036; --open: #1c2a44; --track: #2a3a55;
  --fill: #5aa2ff; --warning: #f5a524; --secondary: #22406f; --secondary-text: #dbe8ff;
  --secondary-border: #35568c; --danger: #ffb4b4; --danger-border: #8a3a45; }
 .admin-shell header { background: #14233d; }
 .admin-page .pill-active { background: #173a2e; color: #7ee2a8; }
 .admin-page .pill-blocked,.admin-page .pill-deleted { background: #4a1f27; color: #ffb4b4; }
 .admin-page .pill-expired { background: #3f3113; color: #f5c26b; }
 .admin-page .access-note.past { color: #f5c26b; }
 .admin-page .admin-users .access-note.past { color: #ff8a8a; }
 .access-choices span,.admin-page .filter-chip { color: #c9d6ea; }
}

.admin-page { --usage-active: #b48cff; --usage-ai: #6ea8ff; --usage-drill: #3fcf8e;
 --usage-blueprint: #f2b84b; --usage-import: #4cc9d6; --usage-pfleak: #f07ab4;
 --usage-audit: #ff9f5a; --usage-auditflops: #ff6b6b; --delta-up: #196039; --delta-down: #9a2727; }
.metric-active { --metric-color: var(--usage-active); }
.metric-ai { --metric-color: var(--usage-ai); }
.metric-drill { --metric-color: var(--usage-drill); }
.metric-blueprint { --metric-color: var(--usage-blueprint); }
.metric-import { --metric-color: var(--usage-import); }
.metric-pfleak { --metric-color: var(--usage-pfleak); }
.metric-audit { --metric-color: var(--usage-audit); }
.metric-auditflops { --metric-color: var(--usage-auditflops); }
.usage-panel,.user-usage-history { font-variant-numeric: tabular-nums; }
.usage-controls,.usage-buttons,.usage-legend { display: flex; align-items: center;
 flex-wrap: wrap; gap: 6px; }
.usage-controls { justify-content: space-between; }
.admin-page .usage-buttons button { min-height: 30px; height: auto; padding: 4px 9px;
 background: var(--page); color: var(--text); border-color: var(--border); font-size: 12px; }
.admin-page .usage-buttons button[aria-pressed="true"] { background: var(--secondary);
 color: var(--secondary-text); border-color: var(--secondary-border); }
.admin-page .usage-buttons button:disabled { opacity: .55; cursor: default; }
.usage-buttons [data-metric]::before,.usage-legend span::before,
.features-table td:first-child::before {
 content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
 background: var(--metric-color); margin-right: 6px; vertical-align: 1px;
}
[data-usage-status]:empty { display: none; }
[data-usage-status],.usage-user-period { font-size: 13px; margin: 6px 0; }
.usage-tiles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px;
 margin: 12px 0; }
.usage-tiles > div,.usage-card { background: var(--header); border: 1px solid var(--border);
 border-radius: 8px; padding: 10px; min-width: 0; }
.usage-tiles > div { border-top: 3px solid var(--metric-color); }
.usage-panel h3,.user-usage-history h3 { font-size: 13px; margin: 0 0 4px; }
.usage-tiles strong { font-size: 23px; }
.usage-tiles small { display: block; color: var(--muted); }
.usage-delta { margin-left: 6px; font-size: 12px; }
.usage-delta.up { color: var(--delta-up); }
.usage-delta.down { color: var(--delta-down); }
.usage-grid { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,2fr); gap: 8px; }
.usage-card .usage-buttons { margin: 6px 0; }
.usage-card svg,.user-usage-history svg { display: block; width: 100%; height: auto; }
.usage-chart-grid { stroke: var(--border); }
.usage-chart-label { fill: var(--muted); font: 11px system-ui,sans-serif; }
.usage-chart-bar { fill: var(--metric-color); }
.usage-chart-now { stroke: var(--muted); stroke-dasharray: 3 3; }
.features-table th:nth-child(n+2),.features-table td:nth-child(n+2),
.drill-breakdown th:nth-child(n+2),.drill-breakdown td:nth-child(n+2) {
 text-align: right; white-space: nowrap;
}
.features-table th,.features-table td,.drill-breakdown th,.drill-breakdown td { padding: 6px; }
.user-usage-history { margin-top: 16px; max-width: min(42rem, calc(100vw - 84px)); }
.usage-legend { color: var(--muted); font-size: 12px; gap: 4px 12px; margin: 4px 0; }
@media (max-width: 720px) {
 .usage-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .usage-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-color-scheme: dark) {
 .admin-page { --delta-up: #3fcf8e; --delta-down: #f07c7c; }
}

