/* GearRoom: one stylesheet, tokens first. */
:root {
  --bg: #f5f7fb; --panel: #ffffff; --ink: #1b2333; --muted: #667085; --line: #e4e8ef;
  --side: #121a2b; --side-ink: #c5cede; --side-active: #ffffff; --side-hover: #1d2840;
  --accent: #2563eb; --accent-ink: #ffffff; --accent-soft: #e8efff;
  --green: #16a34a; --green-soft: #e7f6ec; --amber: #c27803; --amber-soft: #fdf3dc;
  --red: #dc2626; --red-soft: #fde8e8; --violet: #7c3aed; --violet-soft: #f1eafe;
  --gray-soft: #eef1f5; --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow-lg: 0 20px 50px rgba(16,24,40,.22);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px; color: var(--ink); line-height: 1.45;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1320; --panel: #161d2e; --ink: #e7ebf3; --muted: #98a2b3; --line: #273149;
    --side: #0a0f1a; --side-hover: #18213a; --accent-soft: #1c2b52;
    --green-soft: #12301f; --amber-soft: #36290c; --red-soft: #3b1717; --violet-soft: #2a1d4a; --gray-soft: #222b40;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1320; --panel: #161d2e; --ink: #e7ebf3; --muted: #98a2b3; --line: #273149;
  --side: #0a0f1a; --side-hover: #18213a; --accent-soft: #1c2b52;
  --green-soft: #12301f; --amber-soft: #36290c; --red-soft: #3b1717; --violet-soft: #2a1d4a; --gray-soft: #222b40;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; font-weight: 650; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 650; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 650; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.hidden { display: none !important; }

/* Layout */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.shell > .side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 700; font-size: 16px; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.org { padding: 0 18px 12px; font-size: 12px; color: #8592ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { padding: 4px 10px; flex: 1; }
.nav .group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6c7893; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; color: var(--side-ink); padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--side-hover); text-decoration: none; color: #fff; }
.nav a.active { background: var(--accent); color: var(--side-active); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.side-foot { padding: 12px 10px 16px; border-top: 1px solid #1f2a42; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .search { flex: 1; max-width: 520px; position: relative; }
.topbar .search input { padding-left: 34px; background: var(--panel); }
.topbar .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 420px; overflow: auto; z-index: 40; }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; color: var(--ink); border-bottom: 1px solid var(--line); }
.search-results a:hover, .search-results a.on { background: var(--accent-soft); text-decoration: none; }
.top-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.content { padding: 24px 28px 60px; max-width: 1400px; width: 100%; }
.btn.menu-btn { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .shell > .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .shell.open > .side { transform: none; box-shadow: var(--shadow-lg); }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  .content { padding: 16px 16px 60px; }
  .hide-sm { display: none !important; }
}

/* Page header */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .titles { flex: 1; min-width: 200px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* Cards and grids */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; flex: 1; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
.stat { display: block; color: var(--ink); }
.stat:hover { text-decoration: none; border-color: var(--accent); }
.stat .num { font-size: 28px; font-weight: 700; }
.stat .label { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--muted); background: var(--gray-soft); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--red); }
.btn.danger.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--gray-soft); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 36px; padding: 0; }
.btn svg { width: 16px; height: 16px; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-radius: 8px 0 0 8px; }
.btn-group .btn:last-child { border-radius: 0 8px 8px 0; }
.btn-group .btn + .btn { margin-left: -1px; }
.btn-group .btn.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); z-index: 1; }

/* Forms */
label.field { display: block; }
label.field > span { display: block; font-weight: 550; margin-bottom: 5px; }
label.field > small { display: block; color: var(--muted); margin-top: 4px; }
input, select, textarea { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; }
textarea { height: auto; min-height: 80px; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; border-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--accent); }
label.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input, .filters select { width: auto; min-width: 150px; }
.filters input[type="search"] { min-width: 240px; flex: 1; max-width: 360px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover td { background: var(--accent-soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--gray-soft); display: grid; place-items: center; color: var(--muted); flex: none; }
.thumb svg { width: 18px; height: 18px; }
.cell-main { display: flex; align-items: center; gap: 10px; }
.cell-main .t { font-weight: 550; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: var(--muted); border-top: 1px solid var(--line); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--gray-soft); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.blue { background: var(--accent-soft); color: var(--accent); }
.pill.violet { background: var(--violet-soft); color: var(--violet); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; border: 1px solid var(--line); margin: 0 4px 4px 0; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a, .tabs button { padding: 9px 12px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 550; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--ink); text-decoration: none; }
.tabs .on { color: var(--accent); border-bottom-color: var(--accent); }

/* Empty, help, callouts */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 14px; }
.empty .icon svg { width: 26px; height: 26px; }
.empty h3 { color: var(--ink); font-size: 16px; }
.empty .btn { margin-top: 10px; }
.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); margin-bottom: 16px; }
.callout.warn { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.callout.error { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.callout svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent); }
.callout .x { margin-left: auto; }
.help-tip { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--gray-soft); color: var(--muted); font-size: 11px; font-weight: 700; cursor: help; position: relative; vertical-align: middle; margin-left: 4px; }
.help-tip:hover::after, .help-tip:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: 240px; padding: 8px 10px; border-radius: 8px; background: #111827; color: #fff; font-weight: 400; font-size: 12px; line-height: 1.4; z-index: 90; box-shadow: var(--shadow-lg); white-space: normal; }

/* Modal and drawer */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .12s; }
.modal { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .14s; }
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; flex: 1; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

/* Toasts */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 260px; max-width: 420px; padding: 11px 14px; border-radius: 10px; background: #111827; color: #fff; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: flex-start; animation: pop .15s; }
.toast.error { background: #991b1b; }
.toast.success { background: #166534; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; opacity: .7; font-size: 16px; }

/* Picker list (search + add) */
.picker { border: 1px solid var(--line); border-radius: var(--radius); max-height: 300px; overflow-y: auto; }
.picker .opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.picker .opt:hover { background: var(--accent-soft); }
.picker .opt:last-child { border-bottom: 0; }
.picker .opt.off { opacity: .55; }
.lines .line { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.lines .line:last-child { border-bottom: 0; }
.lines .line .grow { flex: 1; min-width: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline li::after { content: ""; position: absolute; left: 8.5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.cal .dow { padding: 8px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--panel); }
.cal .day { min-height: 110px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.other { background: var(--bg); color: var(--muted); }
.cal .day.today .d { background: var(--accent); color: #fff; border-radius: 50%; }
.cal .d { display: inline-grid; place-items: center; width: 22px; height: 22px; font-weight: 600; }
.cal .ev { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 5px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); background: var(--accent-soft); border-left: 3px solid var(--accent); }
.cal .ev.checkout { background: var(--amber-soft); border-left-color: var(--amber); }
.cal .ev.overdue { background: var(--red-soft); border-left-color: var(--red); }

/* Scanner */
.scan-video { width: 100%; max-height: 340px; border-radius: var(--radius); background: #000; object-fit: cover; }

/* Auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 10% -10%, var(--accent-soft), transparent), var(--bg); }
.auth .card { width: min(440px, 100%); padding: 28px; }
.auth .card.wide { width: min(620px, 100%); }
.auth .brand { color: var(--ink); padding: 0 0 18px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps span.on { background: var(--accent); }

/* Checklist */
.checklist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); list-style: none; }
.checklist { margin: 0; padding: 0; }
.checklist .tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.checklist .done .tick { background: var(--green); border-color: var(--green); color: #fff; }
.checklist .done .label { color: var(--muted); text-decoration: line-through; }

/* Help center */
.help-body h2 { margin-top: 22px; }
.help-body li { margin-bottom: 6px; }
.help-body kbd { padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; font-size: 12px; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
.loading { display: grid; place-items: center; padding: 60px; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.icon-badge { position: relative; }
.icon-badge .badge { position: absolute; top: -4px; right: -4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 6px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--gray-soft); text-decoration: none; }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
@media print {
  .shell > .side, .topbar, .no-print { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; }
  .card { box-shadow: none; border: 0; }
}

/* ---- Page-level pieces used by individual screens ---- */
.tabs .active, .tabs .tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.stat-icon svg { width: 18px; height: 18px; }
.stat.danger .stat-icon { background: var(--red-soft); color: var(--red); }
.stat.danger .stat-num { color: var(--red); }
.stat-num { font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 13px; }
.card-title { font-weight: 650; font-size: 15px; margin: 0 0 10px; }
.card-body { padding-top: 4px; }
.card-pad { padding: 20px; }
.right { text-align: right; margin-left: auto; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.form-error { color: var(--red); background: var(--red-soft); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.form-error:empty { display: none; }
.qr img, .qr svg { width: 120px; height: 120px; background: #fff; padding: 6px; border-radius: 8px; }
.item-photo { width: 100%; max-width: 320px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--gray-soft); display: block; }
.qty, .qty-input { width: 72px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.desc { white-space: pre-wrap; color: var(--ink); }
.comment, .log { padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment:last-of-type, .log:last-child { border-bottom: 0; }
.comment .who { display: flex; gap: 8px; align-items: baseline; margin-bottom: 2px; }
/* Progress bars (spotchecks) */
.bar, .prog { height: 8px; background: var(--gray-soft); border-radius: 99px; overflow: hidden; min-width: 80px; }
.bar .fill, .bar-fill, .prog .fill { height: 100%; background: var(--green); border-radius: 99px; transition: width .3s; }
.progress-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.progress-head .big { font-size: 28px; font-weight: 700; }
.progress-head .of { color: var(--muted); }
.scan-row, .scan-input { display: flex; gap: 8px; }
.scan-input input, .scan-row input { flex: 1; font-size: 16px; }
/* Settings rail */
.split:has(> .tabs-side) { grid-template-columns: 220px minmax(0, 1fr); }
.tabs-side { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-bottom: 0; margin: 0; }
.tabs-side a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; border: 0; color: var(--ink); margin: 0; }
.tabs-side a:hover { background: var(--gray-soft); }
.tabs-side a.active { background: var(--accent-soft); color: var(--accent); }
.split-main { min-width: 0; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
/* Help center */
.topic-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.topic-card { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.topic-card:hover { border-color: var(--accent); text-decoration: none; }
.topic-icon { flex: none; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.next { margin-top: 24px; display: flex; justify-content: flex-end; }
/* Notifications */
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notif-icon { flex: none; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--gray-soft); }
.notif-title { font-weight: 600; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
/* Person / portal / setup */
.profile { display: flex; gap: 16px; align-items: center; }
.profile .name { font-size: 18px; font-weight: 650; }
.profile .role { color: var(--muted); }
.grid-item { display: flex; flex-direction: column; gap: 8px; }
.cart-line { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.intro { color: var(--muted); margin-bottom: 16px; }
.icon-big svg { width: 40px; height: 40px; color: var(--accent); }
.step-body { display: flex; flex-direction: column; gap: 12px; }
.cal-title { font-weight: 650; font-size: 16px; }
.cal .more { font-size: 11px; color: var(--muted); }
@media (max-width: 860px) { .split:has(> .tabs-side) { grid-template-columns: 1fr; } }
.tabs [aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.overlay.closing { pointer-events: none; }
