/* Quail SIM Portal */
:root {
  --bg: #f3f4f7;
  --surface: #ffffff;
  --surface-alt: #f7f8fa;
  --border: #e4e6eb;
  --fg: #111318;
  --fg-2: #4b5563;
  --fg-3: #8b93a1;
  --brand: #c8102e;
  --brand-soft: #fde8eb;
  --primary: #1d4ed8;
  --primary-soft: #e8eefc;
  --crit: #dc2626;
  --crit-soft: #fef2f2;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --ok: #16a34a;
  --ok-soft: #ecfdf3;
  --neutral-soft: #eef0f3;
  --track: #e8eaef;
  --shadow: 0 10px 40px rgba(17, 19, 24, .18);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318; --surface: #1a1c24; --surface-alt: #20232d; --border: #2b2e3b;
    --fg: #f1f3f7; --fg-2: #a3aab8; --fg-3: #6f7686;
    --brand-soft: #3a1219; --primary-soft: #18244a;
    --crit-soft: #2d1515; --warn-soft: #2a1e0a; --ok-soft: #0f2a1a; --neutral-soft: #262935; --track: #2b2e3b;
    --shadow: 0 10px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--primary); }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Brand bar */
.topbar { background: var(--brand); color: #fff; padding-top: env(safe-area-inset-top, 0px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: #fff; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.brand-mark img { width: 30px; height: 30px; object-fit: contain; }
.brand-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.brand-title { font-size: 17px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.user { display: flex; align-items: center; gap: 12px; font-size: 13px; min-width: 0; }
.user-email { color: rgba(255,255,255,.88); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.18); padding: 3px 8px; border-radius: 4px; }
.btn-ghost-light { background: rgba(255,255,255,.14); color: #fff; border: 0; padding: 8px 14px; border-radius: 6px; font: 600 13px var(--font); cursor: pointer; white-space: nowrap; }
.btn-ghost-light:hover { background: rgba(255,255,255,.26); }

/* Tabs */
.tabs { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 14px 14px 12px; font: 600 13.5px var(--font); color: var(--fg-2); border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tab .count { background: var(--brand-soft); color: var(--brand); font-size: 11px; padding: 1px 7px; border-radius: 10px; }

main { padding-block: 24px 56px; }
.view { display: flex; flex-direction: column; gap: 20px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 700; text-wrap: balance; }
.page-head p { margin: 4px 0 0; color: var(--fg-3); font-size: 13px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: 6px; font: 600 13px var(--font); border: 1px solid transparent; cursor: pointer; line-height: 1; white-space: nowrap; text-decoration: none; }
.btn svg { flex-shrink: 0; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:not(:disabled):hover { filter: brightness(1.08); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:not(:disabled):hover { filter: brightness(1.08); }
.btn-danger { background: var(--crit); color: #fff; }
.btn-outline { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-outline:not(:disabled):hover { background: var(--surface-alt); }
.btn-sm { padding: 7px 11px; font-size: 12px; }
.btn.loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

input, select, textarea { font: 13px var(--font); color: var(--fg); background: var(--surface-alt); border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; min-width: 0; }
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.btn:focus-visible, .tab:focus-visible, .icon-btn:focus-visible, .chip:focus-visible, .seg button:focus-visible, .btn-ghost-light:focus-visible, th.sortable:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.toggle input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); }
.field-hint { font-size: 12px; color: var(--fg-3); }
.field input, .field select, .field textarea { width: 100%; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.stat { padding: 16px 20px; border-right: 1px solid var(--border); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); }
.stat-value { font-size: 26px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1; }
.stat-value small { font-size: 14px; font-weight: 600; color: var(--fg-3); margin-left: 3px; }
.stat-value.crit { color: var(--crit); }
.stat-sub { font-size: 12px; color: var(--fg-3); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.panel-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--fg-3); }
.panel-body { padding: 16px; }
.toolbar { display: flex; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; align-items: center; }
.search { position: relative; flex: 1 1 240px; min-width: 0; display: block; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.search input { width: 100%; padding-left: 34px; }
.seg { display: inline-flex; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 6px; padding: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 4px; font: 600 12px var(--font); color: var(--fg-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--fg-2); padding: 6px 11px; border-radius: 20px; font: 500 12px var(--font); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.chip .n { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: inherit; }

.drawer { padding: 16px; border-bottom: 1px solid var(--border); background: var(--surface-alt); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.drawer h3 { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); }
.drawer-row { display: flex; gap: 8px; flex-wrap: wrap; }
.drawer-row input { flex: 1 1 150px; background: var(--surface); }
.drawer-note { font-size: 12px; color: var(--fg-3); margin-top: 6px; }

/* Tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table.sims { min-width: 980px; }
table.users { min-width: 780px; }
th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); padding: 11px 16px; background: var(--surface-alt); border-bottom: 1px solid var(--border); white-space: nowrap; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover, th.sorted { color: var(--fg); }
th .arrow { opacity: .5; margin-left: 3px; }
th.sorted .arrow { opacity: 1; }
th.right, td.right { text-align: right; }
td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:hover { background: var(--surface-alt); }
tbody tr:last-child td { border-bottom: 0; }
.sim-name { font-weight: 600; }
.sim-iccid { font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); margin-top: 2px; }
.mono { font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); white-space: nowrap; }
.carrier { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.muted { font-size: 13px; color: var(--fg-2); }
.faint { color: var(--fg-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.crit { background: var(--crit-soft); color: var(--crit); }
.pill.blue { background: var(--primary-soft); color: var(--primary); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.pill.neutral { background: var(--neutral-soft); color: var(--fg-2); }

.usage { min-width: 180px; }
.usage-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.usage-val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.usage-val.crit, .usage-tag.crit { color: var(--crit); }
.usage-val.warn, .usage-tag.warn { color: var(--warn); }
.usage-tag { font-size: 11px; font-weight: 600; color: var(--fg-3); white-space: nowrap; }
.bar { height: 4px; background: var(--track); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 2px; background: var(--ok); }
.bar > span.warn { background: var(--warn); }
.bar > span.crit { background: var(--crit); }
.bar > span.none { background: var(--fg-3); opacity: .5; }

.actions { display: flex; gap: 4px; justify-content: flex-end; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--fg-2); cursor: pointer; flex-shrink: 0; }
.icon-btn:not(:disabled):hover { color: var(--primary); border-color: var(--primary); }
.icon-btn.danger:not(:disabled):hover { color: var(--crit); border-color: var(--crit); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.icon-btn.loading svg { animation: spin 1s linear infinite; }

.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--fg-3); gap: 12px; flex-wrap: wrap; }
.empty { padding: 44px 16px; text-align: center; color: var(--fg-3); }
.empty strong { display: block; color: var(--fg); font-size: 15px; margin-bottom: 4px; }

/* Users */
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.avatar.admin { background: var(--brand-soft); color: var(--brand); }
.user-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-cell .e { font-weight: 600; overflow-wrap: anywhere; }
.user-cell .n { font-size: 12px; color: var(--fg-3); }
.prefixes { display: flex; gap: 4px; flex-wrap: wrap; }
.prefix { font-family: var(--mono); font-size: 11.5px; font-weight: 500; padding: 2px 7px; border-radius: 4px; background: var(--surface-alt); border: 1px solid var(--border); color: var(--fg-2); }

/* Alerts */
.info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info > div { padding: 14px 16px; border-right: 1px solid var(--border); display: flex; gap: 12px; min-width: 0; }
.info > div:last-child { border-right: 0; }
.info-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.info h4 { margin: 0; font-size: 13px; font-weight: 700; }
.info p { margin: 3px 0 0; font-size: 12.5px; color: var(--fg-3); line-height: 1.45; }

.alert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.alert-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; min-width: 0; }
.alert-card.off .ac-head, .alert-card.off .ac-body, .alert-card.off .ac-meta { opacity: .55; }
.ac-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 16px 12px; }
.ac-title { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.ac-target { font-size: 12.5px; color: var(--fg-3); margin-top: 3px; overflow-wrap: anywhere; }
.ac-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ac-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ac-body > div { padding: 12px 16px; border-right: 1px solid var(--border); min-width: 0; }
.ac-body > div:last-child { border-right: 0; }
.ac-k { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); }
.ac-v { font-weight: 700; font-size: 17px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ac-v.crit { color: var(--crit); }
.ac-v small { font-size: 12px; color: var(--fg-3); font-weight: 600; }
.ac-meta { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ac-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ac-row .k { color: var(--fg-3); flex-shrink: 0; }
.ac-row .v { color: var(--fg); font-weight: 500; overflow-wrap: anywhere; text-align: right; min-width: 0; }
.ac-foot { display: flex; justify-content: space-between; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); margin-top: auto; flex-wrap: wrap; }

.toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--fg-2); flex-shrink: 0; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle span { width: 34px; height: 20px; border-radius: 10px; background: var(--track); position: relative; transition: background .15s; flex-shrink: 0; }
.toggle span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.toggle input:checked + span { background: var(--ok); }
.toggle input:checked + span::after { transform: translateX(14px); }

.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }

/* Dialogs */
dialog { border: 1px solid var(--border); border-radius: 12px; padding: 0; background: var(--surface); color: var(--fg); box-shadow: var(--shadow); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
dialog.wide { width: min(680px, calc(100vw - 32px)); }
dialog.narrow { width: min(420px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(10, 12, 18, .5); }
.dlg { display: flex; flex-direction: column; max-height: calc(100vh - 50px); }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.dlg-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.dlg-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--fg-3); }
.dlg-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.dlg-foot { display: flex; justify-content: space-between; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-alt); flex-wrap: wrap; }
.dlg-foot .right { display: flex; gap: 8px; margin-left: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: var(--crit); font-size: 13px; font-weight: 500; }

.sim-pick { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.sim-pick-tools { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--border); background: var(--surface-alt); flex-wrap: wrap; align-items: center; }
.sim-pick-tools input { flex: 1 1 160px; background: var(--surface); }
.sim-pick-list { max-height: 260px; overflow-y: auto; }
.sim-pick-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.sim-pick-item:last-child { border-bottom: 0; }
.sim-pick-item:hover { background: var(--surface-alt); }
.sim-pick-item input { width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.sim-pick-item .nm { font-weight: 600; font-size: 13px; }
.sim-pick-item .ic { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.sim-pick-item .us { margin-left: auto; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg-2); white-space: nowrap; }
.sim-pick-item .us.crit { color: var(--crit); }
.sim-pick-sum { font-size: 12.5px; color: var(--fg-2); font-weight: 500; }

.check-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.check-chip { position: relative; }
.check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chip span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--fg-2); padding: 6px 11px; border-radius: 20px; font: 500 12.5px var(--mono); cursor: pointer; }
.check-chip input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.check-chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.check-chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.check-chip .n { font-family: var(--font); font-size: 11px; color: var(--fg-3); }

.pw-row { display: flex; gap: 8px; }
.pw-row input { flex: 1; font-family: var(--mono); }

/* Account */
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.kv { display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.kv > div:last-child { border-bottom: 0; }
.kv .k { color: var(--fg-3); }
.kv .v { font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.pw-form { display: flex; flex-direction: column; gap: 14px; }

/* Toasts */
.toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--fg); color: var(--bg); padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow); font-size: 13px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; animation: toast-in .2s ease-out; overflow-wrap: anywhere; }
.toast.error { background: var(--crit); color: #fff; }
.toast.success { background: var(--ok); color: #fff; }
.toast code { font-family: var(--mono); background: rgba(255,255,255,.18); padding: 1px 5px; border-radius: 3px; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

.loading-row td { padding: 44px 16px; text-align: center; color: var(--fg-3); }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding-block: 40px; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.login-head { background: var(--brand); color: #fff; padding: 24px 28px; }
.login-head .brand-title { font-size: 20px; }
.login-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.login-body input { width: 100%; padding: 11px 12px; font-size: 14px; }
.login-body .btn { width: 100%; padding: 12px; font-size: 14px; }
.login-help { font-size: 12.5px; color: var(--fg-3); text-align: center; }

@media (max-width: 900px) {
  .info { grid-template-columns: 1fr; }
  .info > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .info > div:last-child { border-bottom: 0; }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .drawer { grid-template-columns: 1fr; }
  .user-email { display: none; }
  .alert-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .brand-eyebrow { display: none; }
  .ac-body { grid-template-columns: 1fr 1fr; }
  .ac-body > div:nth-child(2) { border-right: 0; }
  .ac-body > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--border); }
  .page-head h1 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
