/* M2 CRM - single stylesheet. Brand vars --accent / --brand-bg are injected by index.php */
:root {
  --accent: #0aa5cc; --accent-ink: #04121a; --brand-bg: #0b1120;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px; --radius-sm: 7px;
  --sidebar-w: 236px;
  --danger: #f87171; --warn: #fbbf24; --ok: #34d399; --info: #60a5fa;
}
[data-theme="dark"] {
  --bg: var(--brand-bg);
  --panel: #111a2e; --panel-2: #16213a; --hover: #1b2843; --border: #23314f; --border-strong: #31426a;
  --panel: color-mix(in srgb, var(--brand-bg), #fff 4%);
  --panel-2: color-mix(in srgb, var(--brand-bg), #fff 7%);
  --hover: color-mix(in srgb, var(--brand-bg), #fff 10%);
  --border: color-mix(in srgb, var(--brand-bg), #fff 13%);
  --border-strong: color-mix(in srgb, var(--brand-bg), #fff 22%);
  --text: #e6edf7; --muted: #9aa8bd; --faint: #6b7a93;
  --link: var(--accent);
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --accent-soft: rgba(10,165,204,.16); --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f7f9; --panel: #ffffff; --panel-2: #f3f4f6; --hover: #eef0f3; --border: #e3e6eb; --border-strong: #cfd4dc;
  --text: #111827; --muted: #4b5563; --faint: #6b7280;
  --link: #0a7896; --link: color-mix(in srgb, var(--accent) 72%, #000);
  --shadow: 0 10px 30px rgba(15,23,42,.12);
  --accent-soft: rgba(10,165,204,.12); --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
  --danger: #dc2626; --warn: #b45309; --ok: #047857; --info: #1d4ed8;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .nowrap { white-space: nowrap; } .right { text-align: right; } .num { font-variant-numeric: tabular-nums; }
.boot { display: grid; place-items: center; height: 100vh; }
.boot-spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.setup-problem { max-width: 640px; margin: 10vh auto; padding: 24px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; border-right: 1px solid var(--border); background: var(--panel); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-weight: 650; font-size: 15px; }
.brand img, .brand .logo-mark { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; flex: none; }
.brand .logo-mark { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 12px; }
.brand small { display: block; font-weight: 400; color: var(--faint); font-size: 11px; }
.nav-label { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 12px 10px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; }
.nav a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--text); }
.nav a[aria-current="page"] svg { color: var(--accent); }
.sidebar-foot { margin-top: auto; padding: 10px 6px 0; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 6px; font-size: 13px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border); font-size: 11px; font-weight: 700; flex: none; }
.footer-text { font-size: 11px; color: var(--faint); padding: 0 6px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar .menu-btn { display: none; }
.search-wrap { position: relative; flex: 1; max-width: 520px; }
.search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search-wrap input[type=search] { width: 100%; padding: 8px 12px 8px 34px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel); }
.search-wrap kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--faint); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 60vh; overflow: auto; padding: 6px; z-index: 30; }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); }
.search-results a:hover, .search-results a.active { background: var(--hover); text-decoration: none; }
.search-results .type { font-size: 11px; color: var(--faint); min-width: 92px; text-transform: uppercase; letter-spacing: .04em; }
.topbar-actions { margin-left: auto; display: flex; gap: 6px; }
.content { padding: 22px 24px 60px; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .sub { color: var(--muted); font-size: 13px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel); color: var(--text); cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none !important; min-height: 34px; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.icon { padding: 6px; min-width: 34px; justify-content: center; }
.btn.sm { padding: 4px 8px; min-height: 28px; font-size: 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2); min-height: 36px;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 90px; resize: vertical; }
select { appearance: auto; }
.field { display: grid; gap: 5px; margin-bottom: 14px; }
.field label, .field .label { font-size: 12px; font-weight: 600; color: var(--muted); }
.field .req { color: var(--danger); }
.field .err { color: var(--danger); font-size: 12px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .hint { font-size: 12px; color: var(--faint); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; }
.chip-check span { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; cursor: pointer; }
.chip-check input:checked + span { background: var(--accent-soft); border-color: var(--accent); }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .grow { flex: 1; min-width: 180px; max-width: 320px; }
.toolbar select { width: auto; min-width: 140px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: 6px 12px; cursor: pointer; color: var(--muted); border-right: 1px solid var(--border); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); font-weight: 600; }

/* ---------- cards / KPIs ---------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.kpi .label svg { color: var(--accent); width: 16px; height: 16px; }
.kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .meta { color: var(--faint); font-size: 12px; margin-top: 2px; }
.dash-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.bar-track { height: 10px; background: var(--panel-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.bar-fill { height: 100%; background: var(--accent); border-radius: 99px; min-width: 2px; transition: width .4s; }
.bar-fill.won { background: var(--ok); } .bar-fill.lost { background: var(--faint); } .bar-fill.proposal { background: color-mix(in srgb, var(--accent) 70%, #a78bfa); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--panel-2); border: 1px solid var(--border); white-space: nowrap; text-transform: capitalize; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.badge.green::before { background: var(--ok); } .badge.blue::before { background: var(--accent); } .badge.amber::before { background: var(--warn); } .badge.red::before { background: var(--danger); } .badge.violet::before { background: #a78bfa; }
.badge.plain::before { display: none; }
.tag { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--border); margin: 1px 2px 1px 0; color: var(--muted); }
.delta-up { color: var(--ok); } .delta-down { color: var(--danger); }
.overdue { color: var(--danger); font-weight: 600; } .due-today { color: var(--warn); font-weight: 600; }

/* ---------- tables ---------- */
.table-wrap { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data th { position: sticky; top: 0; background: var(--panel); font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; z-index: 1; }
table.data th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
table.data th button:focus-visible { outline: 2px solid var(--accent); border-radius: 3px; }
table.data th .arrow { opacity: .35; font-size: 10px; }
table.data th[aria-sort="ascending"] .arrow, table.data th[aria-sort="descending"] .arrow { opacity: 1; color: var(--accent); }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover { background: var(--hover); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.actions { width: 1%; white-space: nowrap; text-align: right; }
table.data td.actions .btn { opacity: .7; }
table.data tr:hover td.actions .btn, table.data td.actions .btn:focus-visible { opacity: 1; }
table.data .primary-cell { font-weight: 550; color: var(--text); }
.table-foot { display: flex; justify-content: space-between; padding: 8px 12px; color: var(--faint); font-size: 12px; border-top: 1px solid var(--border); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--faint); margin-bottom: 8px; stroke-width: 1.4; }
.empty h2 { color: var(--text); margin-bottom: 4px; }
.empty p { margin: 0 0 14px; }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 200px; }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; }
.kcol-head .count { color: var(--faint); font-size: 12px; }
.kcol-head .total { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kcol-body { padding: 4px 8px 10px; display: grid; gap: 8px; min-height: 120px; border-radius: 0 0 var(--radius) var(--radius); transition: background .15s; }
.kcol-body.drop { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: -6px; }
.kcard { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; cursor: grab; display: grid; gap: 6px; }
.kcard:hover { border-color: var(--border-strong); }
.kcard.dragging { opacity: .45; }
.kcard .t { font-weight: 600; }
.kcard .row { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.kcard .amt { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.kcard select { min-height: 28px; padding: 2px 6px; font-size: 12px; width: auto; }
.kcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; }

/* ---------- AI summary ---------- */
.ai-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ai-rate { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.engine-grid { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12px; margin-top: 10px; color: var(--muted); }
.yes { color: var(--ok); font-weight: 600; } .no { color: var(--faint); }

/* ---------- company detail ---------- */
.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 12px; align-items: start; }
.props { display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; font-size: 13px; }
.props dt { color: var(--muted); } .props dd { margin: 0; word-break: break-word; }
.section { margin-bottom: 12px; }
.section .table-wrap { border-radius: var(--radius-sm); }

/* ---------- drawer / modal ---------- */
dialog { border: 1px solid var(--border); background: var(--panel); color: var(--text); padding: 0; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(2,6,23,.6); backdrop-filter: blur(2px); }
dialog.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(520px, 100vw); border-radius: 0; border-width: 0 0 0 1px; animation: slidein .2s ease-out; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
dialog.modal { width: min(440px, calc(100vw - 32px)); border-radius: var(--radius); }
.dlg { display: flex; flex-direction: column; height: 100%; }
.dlg-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.dlg-head h2 { font-size: 16px; }
.dlg-head .btn { margin-left: auto; }
.dlg-body { padding: 18px; overflow-y: auto; flex: 1; }
.dlg-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--panel); }
.dlg-foot .left { margin-right: auto; }
.kw-table { width: 100%; border-collapse: collapse; }
.kw-table th { font-size: 11px; color: var(--faint); text-align: left; font-weight: 600; padding: 0 4px 4px; }
.kw-table td { padding: 3px 4px 3px 0; }
.kw-table input { min-height: 32px; padding: 5px 8px; }
.kw-table td:nth-child(2), .kw-table td:nth-child(3) { width: 78px; }
.kw-table td:last-child { width: 36px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 1000; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 10px 14px; box-shadow: var(--shadow); animation: slidein .2s; font-size: 13px; }
.toast.error { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--ok); }

/* ---------- auth screens ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent); }
.auth-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.auth-card .brand { padding: 0 0 18px; font-size: 18px; }
.auth-card p.lead { color: var(--muted); margin: 0 0 18px; }
.auth-card .btn.primary { width: 100%; justify-content: center; min-height: 40px; }
.alert { padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel-2); margin-bottom: 14px; font-size: 13px; }
.alert.error { border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger); }
.alert.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.settings-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.logo-preview { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--border); object-fit: contain; background: var(--panel-2); }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type=color] { width: 44px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2); padding: 2px; }
code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); font-size: 12px; }
.scrim { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .dash-grid, .detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; width: min(280px, 85vw); transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(2,6,23,.55); }
  .topbar { padding: 8px 12px; }
  .topbar .menu-btn { display: inline-flex; }
  .search-wrap kbd { display: none; }
  .content { padding: 16px 12px 90px; }
  .grid2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi .value { font-size: 22px; }
  .card { padding: 12px; }
  .kanban { grid-auto-columns: minmax(82vw, 1fr); scroll-snap-type: x mandatory; }
  .kcol { scroll-snap-align: start; }
  .kcard { cursor: default; }
  /* Tables become cards */
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { padding: 10px 12px; border-bottom: 1px solid var(--border); position: relative; }
  table.data td { border: 0; padding: 2px 0; display: flex; gap: 10px; }
  table.data td::before { content: attr(data-label); color: var(--faint); font-size: 12px; min-width: 96px; flex: none; }
  table.data td.primary-cell { font-size: 15px; padding-right: 80px; }
  table.data td.primary-cell::before { display: none; }
  table.data td.actions { position: absolute; top: 8px; right: 8px; width: auto; }
  table.data td.actions::before { display: none; }
  table.data td.actions .btn { opacity: 1; }
  nav.bottom-nav { display: flex; }
  dialog.drawer { width: 100vw; border: 0; }
  .toolbar .grow { max-width: none; flex-basis: 100%; }
  .page-head .actions { margin-left: 0; width: 100%; }
}
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--panel); border-top: 1px solid var(--border); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); justify-content: space-around; }
.bottom-nav a { display: grid; justify-items: center; gap: 2px; font-size: 10px; color: var(--muted); padding: 6px 4px; border-radius: 8px; min-width: 56px; }
.bottom-nav a[aria-current="page"] { color: var(--accent); }
.bottom-nav a:hover { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
