/* AC Panel. No build step, no framework, no webfont (CSP is self-only). */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --ink: #0f172a;
  --ink-soft: #5b6778;
  --line: #e3e8ef;
  --brand: #2563eb;
  --brand-ink: #ffffff;
  --nav: #1e293b;
  --nav-ink: #cbd5e1;
  --ok: #15803d;   --ok-bg: #e8f6ee;
  --warn: #a16207; --warn-bg: #fdf4dc;
  --err: #b91c1c;  --err-bg: #fdecec;
  --info: #0e5a8a; --info-bg: #e7f2fa;
  --off: #64748b;  --off-bg: #eef1f5;
  --pend: #7c3aed; --pend-bg: #f1ebfd;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120; --surface: #111a2e; --surface-2: #16213a; --ink: #e5e9f0; --ink-soft: #94a3b8; --line: #243049;
    --brand: #4f8cff; --nav: #0a1020; --nav-ink: #94a3b8;
    --ok: #4ade80; --ok-bg: #0f2a1c; --warn: #fbbf24; --warn-bg: #2b2210; --err: #f87171; --err-bg: #2d1414;
    --info: #7cc4f8; --info-bg: #0f2233; --off: #94a3b8; --off-bg: #1c2740; --pend: #b794f6; --pend-bg: #231a3d;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.45rem; margin: 0; line-height: 1.25; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
h3 { font-size: .95rem; margin: 1rem 0 .5rem; }
p { margin: .4rem 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.r, .right { text-align: right; }
.c { text-align: center; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.pre { white-space: pre-wrap; }
.clip { max-width: 28rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-dim { opacity: .55; }
.is-err-text { color: var(--err); }
.is-ok-text { color: var(--ok); }
.inline { display: inline; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--surface); padding: .5rem 1rem; }
ul.plain { list-style: none; padding: 0; margin: 0; }

/* ── frame ─────────────────────────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem; height: 56px; padding: 0 1rem;
  background: var(--nav); color: #fff; }
.brand { color: #fff; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--nav);
  font-size: .8rem; font-weight: 800; letter-spacing: -.5px; box-shadow: inset 0 -3px 0 #38bdf8; }
.spacer { flex: 1; }
.whoami { display: flex; flex-direction: column; line-height: 1.2; color: inherit; text-align: right; }
.whoami:hover { text-decoration: none; }
.whoami .role { font-size: .75rem; opacity: .7; }
.topbar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }

.shell { display: flex; min-height: calc(100vh - 56px); }
.sidenav { width: 232px; flex: none; background: var(--surface); border-right: 1px solid var(--line); padding: .75rem .5rem 2rem;
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.navgroup-label { display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem; border-radius: 8px; color: var(--ink);
  font-weight: 600; cursor: pointer; list-style: none; user-select: none; }
.navgroup-label::-webkit-details-marker { display: none; }
.navgroup > summary::after { content: '▸'; margin-left: auto; color: var(--ink-soft); font-size: .75rem; transition: transform .15s; }
.navgroup[open] > summary::after { transform: rotate(90deg); }
.navgroup-label:hover { background: var(--surface-2); text-decoration: none; }
.navgroup-solo.is-active, .navlink.is-active { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.navgroup-icon { width: 1.3rem; text-align: center; }
.navsection { margin: 0 0 .35rem 1.6rem; }
.navsection-label { font-size: .72rem; text-transform: uppercase; color: var(--ink-soft); margin: .4rem .6rem .2rem; letter-spacing: .03em; }
.navlink { display: block; padding: .35rem .7rem; border-radius: 7px; color: var(--ink-soft); font-size: .92rem; }
.navlink:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.content { flex: 1; min-width: 0; padding: 1.5rem 1.75rem 4rem; max-width: 1280px; }
.drawer-head, .drawer-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .7rem; }
.drawer-foot { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.drawer-foot .whoami { color: var(--ink); text-align: left; }
.mobile-only { display: none !important; }
.tabbar { display: none; }

@media (max-width: 860px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  .sidenav { position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; z-index: 40; width: min(84vw, 300px);
    transform: translateX(-102%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  body.nav-open .sidenav { transform: none; }
  .drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 30; }
  .content { padding: 1rem 1rem 6rem; }
  .tabbar { display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: .45rem 0 .4rem; color: var(--ink-soft);
    font-size: .7rem; background: none; border: 0; font-family: inherit; cursor: pointer; }
  .tab:hover { text-decoration: none; }
  .tab.is-active { color: var(--brand); }
  .tab-icon { font-size: 1.2rem; line-height: 1.3; }
}

/* ── blocks ────────────────────────────────────────────────────────────── */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
details.card > summary { cursor: pointer; }
details.card[open] > summary { margin-bottom: .75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + .card, .grid-2 + .grid-2, .card + .grid-2 { margin-top: 1rem; }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }
.empty { color: var(--ink-soft); padding: .5rem 0; margin: 0; }
.count { display: inline-block; min-width: 1.5rem; padding: 0 .4rem; border-radius: 99px; background: var(--surface-2); font-size: .8rem; text-align: center; }

.alert { padding: .65rem .9rem; border-radius: 9px; margin-bottom: .75rem; border: 1px solid transparent; }
.alert.small { padding: .35rem .6rem; margin-bottom: .4rem; }
.alert.is-ok { background: var(--ok-bg); color: var(--ok); }
.alert.is-err { background: var(--err-bg); color: var(--err); }
.alert.is-warn { background: var(--warn-bg); color: var(--warn); }
.alert.is-info { background: var(--info-bg); color: var(--info); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.kpi-v { font-size: 1.45rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi-l { color: var(--ink-soft); font-size: .8rem; }
.kpi.is-warn .kpi-v { color: var(--err); }

.pill { display: inline-block; padding: .05rem .5rem; border-radius: 99px; background: var(--surface-2); color: var(--ink-soft); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.pill.is-brand { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.pill.is-ok { background: var(--ok-bg); color: var(--ok); }
.pill.is-err { background: var(--err-bg); color: var(--err); }
.biz { display: inline-block; padding: 0 .45rem; border-radius: 6px; font-size: .74rem; font-weight: 600; white-space: nowrap; vertical-align: 1px;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.stars { color: #eab308; font-size: .85em; letter-spacing: -1px; white-space: nowrap; }

.st { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 7px; font-size: .78rem; font-weight: 700; flex: none; }
.st-done { background: var(--ok-bg); color: var(--ok); }
.st-off { background: var(--off-bg); color: var(--off); }
.st-excused { background: var(--info-bg); color: var(--info); }
.st-pending { background: var(--pend-bg); color: var(--pend); }
.st-missed { background: var(--err-bg); color: var(--err); }
.st-open { background: transparent; color: var(--ink-soft); border: 1.5px dashed var(--line); }
.legend .st { margin: 0 .15rem 0 .6rem; }

.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--off); vertical-align: 1px; }
.dot.is-ok { background: #22c55e; } .dot.is-warn { background: #f59e0b; } .dot.is-err { background: #ef4444; } .dot.is-none { background: transparent; border: 1.5px solid var(--off); }

.bar { display: inline-block; width: 7rem; height: .5rem; background: var(--surface-2); border-radius: 99px; overflow: hidden; vertical-align: middle; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar.is-err > span { background: var(--err); }
.meter-row { display: flex; align-items: center; gap: .5rem; }
.meter-row .bar { flex: 1; width: auto; }
.meter-row > span:first-child { min-width: 5.5rem; font-size: .85rem; color: var(--ink-soft); }

/* ── buttons & forms ───────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: .48rem .9rem; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem;
  cursor: pointer; white-space: nowrap; line-height: 1.2; min-height: 36px; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, black); }
.btn-ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.btn-danger { background: var(--err-bg); border-color: color-mix(in srgb, var(--err) 30%, transparent); color: var(--err); }
.btn-ghost { background: transparent; }
.btn-sm { padding: .32rem .65rem; font-size: .84rem; min-height: 30px; }
.btn-xs { padding: .15rem .5rem; font-size: .78rem; min-height: 26px; border-radius: 7px; }
.btn-lg { padding: .7rem 1.2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.actions + .actions { margin-top: .5rem; }

.form label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .88rem; margin-bottom: .8rem; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; }
.form small { font-weight: 400; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=time], input[type=search], input[type=url],
select, textarea { font: inherit; font-size: .95rem; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  color: var(--ink); width: 100%; min-height: 38px; }
input[type=color] { width: 3rem; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
input[type=checkbox] { width: 1.05rem; height: 1.05rem; accent-color: var(--brand); }
textarea { resize: vertical; }
.form.narrow { max-width: 640px; }
.row-2, .row-3, .row-4 { display: grid; gap: .75rem; }
.row-2 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: repeat(3, 1fr); } .row-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .row-2, .row-4 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: 1fr; } }
.row-wrap { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.row-wrap > input, .row-wrap > select { width: auto; flex: 1 1 9rem; }
.row-wrap > .w-num, .w-num { flex: 0 0 6.5rem; width: 6.5rem; }
.row-wrap > .w-emoji, .w-emoji { flex: 0 0 3.2rem; width: 3.2rem; text-align: center; }
.row-wrap > .w-key { flex: 0 0 8rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filters.card { padding: .7rem .9rem; }
.filters select, .filters input { width: auto; min-width: 10rem; }
.inline-edit { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.inline-edit > input { margin-top: .45rem; }
.inline-edit.is-new { border-bottom: 0; }
fieldset.card { min-width: 0; }
fieldset legend { font-weight: 700; padding: 0 .3rem; }
.perm-group { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 .8rem; padding: .6rem .9rem; }
.perm-group label { margin-bottom: .35rem; }
.pager { display: flex; gap: .5rem; justify-content: center; }

/* ── tables ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); font-weight: 600; padding: .5rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th.r, .table td.r { text-align: right; font-variant-numeric: tabular-nums; }
.grid-table td.c, .grid-table th.c { text-align: center; width: 2.6rem; padding: .4rem .2rem; }
.grid-table th.is-today { color: var(--brand); }

/* ── tasks ─────────────────────────────────────────────────────────────── */
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.task-card { display: flex; gap: .9rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .8rem .9rem;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.task-title { font-weight: 600; }
.task-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .15rem; }
.task-main { flex: 1 1 16rem; min-width: 0; }
.task-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: flex-start; }
.task-actions form.inline { display: flex; gap: .4rem; }
.excuse { position: relative; }
.excuse > summary { list-style: none; }
.excuse > summary::-webkit-details-marker { display: none; }
.excuse[open] { flex-basis: 100%; }
.excuse-form { display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; min-width: min(22rem, 80vw); }
@media (max-width: 560px) { .task-actions { width: 100%; } .task-actions .btn { flex: 1; } .task-actions form.inline { flex: 2; } }
.done-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.done-list li { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.board .card { margin: 0; }
.member-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.member-head .btn { margin-left: auto; }
.board-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.board-list li { display: flex; gap: .55rem; align-items: center; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.board-list li:last-child { border-bottom: 0; }
.board-list li.who { border-bottom: 0; padding-top: .7rem; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-list li { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.review-list li:last-child { border-bottom: 0; }
blockquote { margin: .4rem 0 0; padding: .45rem .7rem; border-left: 3px solid var(--pend); background: var(--pend-bg); border-radius: 0 8px 8px 0; }
.quick-add summary { cursor: pointer; }
.quick-form { margin-top: .6rem; }
.quick-form textarea { margin-bottom: .5rem; }

/* ── meeting ───────────────────────────────────────────────────────────── */
.meeting-bar { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.progress-steps { display: flex; gap: 3px; }
.step { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.step.is-done { background: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.step.is-now { background: var(--brand); }
.meeting-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.meeting-head h1 { font-size: 1.8rem; }
.timer { font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; padding: .6rem 1rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); display: flex; align-items: baseline; gap: .4rem; }
.timer small { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.timer.is-warn { color: var(--warn); border-color: var(--warn); }
.timer.is-over { color: var(--err); border-color: var(--err); background: var(--err-bg); }
.timer.is-paused { opacity: .6; }
.followup { border-left: 4px solid var(--pend); }
.followup h3 { margin-top: 0; }
.agenda { list-style: none; padding: 0; margin: 0 0 .8rem; }
.agenda li { display: flex; gap: .5rem; padding: .3rem 0 .3rem calc(var(--d, 0) * 1.1rem); border-bottom: 1px dashed var(--line); }
.agenda li.is-done { color: var(--ink-soft); text-decoration: line-through; }
.agenda li.is-now { color: var(--brand); font-weight: 700; }
.tree { list-style: none; padding: 0; margin: 0; }
.tree li { display: flex; gap: .35rem; align-items: center; padding: .45rem 0 .45rem calc(var(--d, 0) * 1.4rem); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.meeting-controls textarea { font-size: 1rem; }

/* ── rewards ───────────────────────────────────────────────────────────── */
.perk-list, .ledger { list-style: none; padding: 0; margin: 0; }
.perk-list li, .ledger li { display: flex; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.perk-list li:last-child, .ledger li:last-child { border-bottom: 0; }
.delta { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.2rem; white-space: nowrap; }
.delta.pos { color: var(--ok); } .delta.neg { color: var(--err); }
.badge-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.badge-grid li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; }
.badge-emoji { font-size: 2rem; }

/* ── businesses & KPIs ─────────────────────────────────────────────────── */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.biz-card { display: block; color: inherit; border-top: 4px solid var(--c); margin: 0; }
.biz-card:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(15,23,42,.1); }
.biz-card-head { display: flex; gap: .5rem; align-items: center; font-size: 1.1rem; margin-bottom: .5rem; }
.biz-card-stats { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); margin-bottom: .75rem; }
.biz-card-stats strong { color: var(--ink); }
.biz-title { border-left: 5px solid var(--c); padding-left: .6rem; }
.kpi-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.kpi-tile { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; background: var(--surface-2); color: var(--ink); }
.kpi-tile-l { font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.kpi-tile-v { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-tile-m { display: flex; gap: .5rem; flex-wrap: wrap; }
.spark { display: block; width: 100%; height: 28px; margin-top: .3rem; color: var(--brand); }
.trend .spark { display: inline-block; width: 90px; vertical-align: middle; }
.kpi-entry { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
details.sub { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
details.sub summary { cursor: pointer; margin-bottom: .6rem; }

/* ── servers ───────────────────────────────────────────────────────────── */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.server-grid .card { margin: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem .9rem; margin: .5rem 0; font-size: .9rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
.server-mini { display: flex; flex-direction: column; gap: .5rem; }

/* ── login ─────────────────────────────────────────────────────────────── */
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 1rem; background: linear-gradient(160deg, var(--nav), #0b1120); }
.login-card { width: min(380px, 100%); background: var(--surface); border-radius: 16px; padding: 2rem; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.login-card h1 { text-align: center; }
.login-card .muted { text-align: center; margin-bottom: 1.2rem; }
.login-card label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; margin-bottom: .9rem; }
.login-brand { display: grid; place-items: center; margin-bottom: .75rem; }
.login-brand .brand-mark { width: 54px; height: 54px; font-size: 1.3rem; border-radius: 14px; background: var(--nav); color: #fff; }
