:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #F8F9FB;
  --ink: #18202D;
  --ink-2: #4A5567;
  --muted: #7B8596;
  --line: #E3E6EB;
  --line-2: #CDD2DA;
  --navy: #1B2A47;
  --navy-2: #24365A;
  --accent: #2E5AAC;
  --accent-ink: #FFFFFF;
  --accent-soft: #E8EEF9;
  --red: #C8322F;
  --blue-logo: #2E5AAC;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --ok: #1E7A4C;
  --ok-soft: #E3F4EA;
  --warn: #9A5B00;
  --warn-soft: #FFF3DC;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.08);
  --radius: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F141C; --surface: #161D28; --surface-2: #1B2330; --ink: #E7EBF1; --ink-2: #B4BDCB;
    --muted: #8590A2; --line: #263042; --line-2: #33405A; --navy: #0B111A; --navy-2: #141C29;
    --accent: #6F9BEA; --accent-ink: #0B1220; --accent-soft: #1C2A44; --red: #E5524E; --blue-logo: #6F9BEA;
    --danger: #F2766C; --danger-soft: #3A1D1C; --ok: #5BC48E; --ok-soft: #15301F; --warn: #E8B455; --warn-soft: #33270F;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
svg { flex: none; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.rail { background: var(--navy); color: #C9D2E3; padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand-mark { width: 40px; height: 40px; padding: 3px; border-radius: 8px; background: #FFFFFF; flex: none; }
.brand strong { display: block; color: #fff; font-size: 16px; letter-spacing: .01em; }
.brand span { display: block; font-size: 12px; color: #8D9AB3; }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #C9D2E3; text-decoration: none; font-weight: 500; }
.rail nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.rail nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.rail nav a.active { background: rgba(255,255,255,.1); color: #fff; }

main { padding: 28px 32px 60px; min-width: 0; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.page-title { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.page-head p { margin: 2px 0 0; color: var(--muted); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 550; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger-ghost { border-color: transparent; background: transparent; color: var(--danger); }
.btn.danger-ghost:hover { background: var(--danger-soft); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
input[type=text], input[type=email], input[type=date], input[type=search], select, textarea {
  height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); min-width: 0;
}
textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .icon-btn:focus-visible, .seg button:focus-visible, .issue:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}

.client-picker { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.client-picker select { height: auto; max-width: 100%; font-size: 17px; font-weight: 650; color: var(--ink); border: 1px solid var(--line-2); background-color: var(--surface); border-radius: 10px; padding: 6px 40px 6px 12px; cursor: pointer; appearance: none; box-shadow: 0 1px 2px rgba(16,24,40,.06); transition: border-color .12s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B8596' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.client-picker select:hover { border-color: var(--muted); }
.client-picker select:focus { outline-offset: 2px; }
.client-picker .contact { color: var(--muted); font-size: 13px; }
.client-picker .contact a { color: var(--ink-2); text-decoration: none; }
.client-picker .contact a:hover { text-decoration: underline; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 6px; font-weight: 550; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.search { position: relative; flex: 1 1 220px; max-width: 360px; }
.search svg { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search input { width: 100%; padding-left: 32px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; user-select: none; margin-left: auto; }
.toggle input { appearance: none; width: 32px; height: 18px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { transform: translateX(14px); }

/* ---------- issue list ---------- */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.issue { display: grid; grid-template-columns: 104px 1fr auto; gap: 16px; align-items: start; padding: 14px 16px; border-top: 1px solid var(--line); cursor: pointer; position: relative; }
.issue:hover { background: var(--surface-2); }
.issue.selected { background: var(--accent-soft); }
.issue .when { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); font-size: 13px; padding-top: 1px; }
.issue .when small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.issue .when.overdue small { color: var(--warn); }
.issue .desc { min-width: 0; }
.issue .desc p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.issue.resolved .desc p { color: var(--ink-2); }
.meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 550; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chip.check { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.future { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.issue .row-actions { opacity: 0; transition: opacity .1s; }
.issue:hover .row-actions, .issue:focus-within .row-actions { opacity: 1; }
.list-foot { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; background: var(--surface-2); }
.list-foot button { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font-weight: 550; }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10,15,25,.28); z-index: 20; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); box-shadow: var(--shadow); z-index: 21; transform: translateX(105%); transition: transform .2s ease; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.drawer.open { transform: none; }
.d-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.d-head .client { font-weight: 650; }
.d-head .grow { flex: 1; }
.d-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.d-body textarea.title { font-size: 15px; font-weight: 600; min-height: 72px; }
.d-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.status-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.status-box.resolved { background: var(--ok-soft); border-color: transparent; }
.status-box .label { font-weight: 650; }
.status-box .sub { color: var(--muted); font-size: 13px; }
.status-box .controls { display: flex; gap: 8px; align-items: center; }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; display: flex; justify-content: space-between; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 14px 26px; }
.timeline li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline .t-date { font-size: 12px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; min-height: 24px; }
.timeline .t-date .icon-btn { width: 24px; height: 24px; opacity: 0; }
.timeline li:hover .icon-btn, .timeline li:focus-within .icon-btn { opacity: 1; }
.timeline .t-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline .edit-row { display: flex; flex-direction: column; gap: 8px; }
.no-actions { color: var(--muted); font-size: 13px; padding: 4px 0 8px; }
.add-action { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.add-action textarea { min-height: 70px; }
.add-action .bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.add-action .bar .grow { flex: 1; }
.d-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.saved-flag { color: var(--ok); font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.saved-flag.show { opacity: 1; }

/* ---------- clients ---------- */
.clist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.crow { display: grid; grid-template-columns: minmax(160px, 1.3fr) minmax(120px, 1fr) minmax(180px, 1.4fr) 100px 80px 76px; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.crow > * { min-width: 0; }
.crow:hover:not(.chead) { background: var(--surface-2); }
.chead { border-top: 0; background: var(--surface-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-block: 9px; }
.crow .num { text-align: right; }
.crow .none { color: var(--muted); }
.cemail a { color: var(--ink-2); overflow-wrap: anywhere; }
.ccontact { color: var(--ink-2); }
.linkish { border: 0; background: none; padding: 0; font-weight: 650; color: var(--ink); cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.linkish:hover { color: var(--accent); text-decoration: underline; }
.count { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); border-radius: 99px; min-width: 34px; height: 24px; padding: 0 9px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.count.has { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.count:hover { border-color: var(--accent); }
.count .lbl { display: none; }
.ctools { display: flex; justify-content: flex-end; gap: 2px; }
@media (max-width: 860px) {
  .chead { display: none; }
  .crow { grid-template-columns: 1fr auto; grid-template-areas: "name tools" "contact contact" "email email" "counts counts"; gap: 2px 8px; padding-block: 12px; }
  .cname { grid-area: name; } .ctools { grid-area: tools; } .ccontact { grid-area: contact; } .cemail { grid-area: email; }
  .crow .num { grid-row: 4; text-align: left; display: inline-block; }
  .crow .num:nth-of-type(4) { grid-column: 1; } .crow .num:nth-of-type(5) { grid-column: 2; justify-self: end; }
  .count .lbl { display: inline; }
  .count { margin-top: 6px; }
}

/* ---------- checks ---------- */
.checks-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.checks-panel .intro { padding: 14px 16px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 13px; }
.check-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.check-row .n { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 8px; text-align: right; }
.check-row textarea { width: 100%; min-height: 40px; border-color: transparent; background: transparent; resize: none; overflow: hidden; }
.check-row textarea:hover { border-color: var(--line); }
.check-row textarea:focus { background: var(--surface); }
.check-row .tools { display: flex; gap: 2px; padding-top: 2px; }
.check-add { padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; }
.check-add textarea { flex: 1; min-height: 40px; }

/* ---------- modal ---------- */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10,15,25,.4); }
.m-head { padding: 18px 20px 0; }
.m-head h2 { margin: 0; font-size: 17px; }
.m-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.m-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.m-body .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-foot { padding: 14px 20px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 14px 14px; }
.m-foot .left { margin-right: auto; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.err { color: var(--danger); font-size: 13px; min-height: 0; }

/* ---------- toasts ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; align-items: center; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 9px; box-shadow: var(--shadow); font-weight: 550; animation: pop .18s ease; }
.toast.error { background: var(--danger); color: #fff; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; }
  .rail { position: sticky; height: auto; flex-direction: row; align-items: center; padding: 10px 16px; z-index: 10; gap: 12px; }
  .brand span { display: none; }
  .rail nav { flex-direction: row; margin-left: auto; }
  .rail nav a span { display: none; }
  main { padding: 18px 16px 60px; }
  .issue { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .issue .when { grid-column: 1; }
  .issue .desc { grid-column: 1 / -1; grid-row: 2; }
  .issue .row-actions { grid-column: 2; grid-row: 1; opacity: 1; }
  .toggle { margin-left: 0; }
  .search { max-width: none; }
  .m-body .two { grid-template-columns: 1fr; }
}

/* ---------- account ---------- */
.rail-signout { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: #8D9AB3; font-weight: 500; cursor: pointer; text-align: left; }
.rail-signout svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-signout:hover { background: rgba(255,255,255,.06); color: #fff; }
.acct { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.acct-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 16px; border-top: 1px solid var(--line); }
.acct-row:first-child { border-top: 0; }
.acct-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.acct-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acct-main { min-width: 0; }
.acct-main h2 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acct-main p { margin: 3px 0 0; color: var(--muted); font-size: 13px; max-width: 62ch; }
.hint { margin: -6px 0 0; color: var(--muted); font-size: 12.5px; }
.qr { width: 190px; max-width: 100%; margin: 6px auto; padding: 6px; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.qr svg { display: block; width: 100%; height: auto; }
.manual { font-size: 13px; color: var(--ink-2); }
.manual summary { cursor: pointer; color: var(--accent); font-weight: 550; }
.manual p { margin: 6px 0 0; }
.keybox { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.keybox code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; overflow-wrap: anywhere; letter-spacing: .03em; }
.codes { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
.codes code { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; }
.code-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.code-input { font-family: var(--mono); font-size: 20px !important; letter-spacing: .12em; height: 46px !important; text-align: center; }

/* ---------- sign-in page ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; background: var(--navy); }
.auth-wrap { width: 100%; max-width: 440px; padding: 32px 16px; display: flex; flex-direction: column; gap: 14px; }
.auth-card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 28px 28px 24px; }
.auth-logo { display: block; width: 76px; height: auto; margin: 0 auto 18px; background: #fff; border-radius: 6px; padding: 4px; }
.auth-step { display: flex; flex-direction: column; gap: 14px; }
.auth-step h1 { margin: 0; font-size: 21px; text-align: center; letter-spacing: -.01em; }
.auth-sub { margin: -8px 0 4px; color: var(--muted); text-align: center; font-size: 13.5px; }
.auth-step .field input { height: 42px; }
.check { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: 13.5px; cursor: pointer; }
.check input { margin-top: 3px; }
.btn.wide { width: 100%; justify-content: center; height: 42px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 550; cursor: pointer; font-size: 13px; }
.linkbtn:hover { text-decoration: underline; }
.setup-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; color: var(--ink-2); }
.setup-steps li { padding-left: 4px; }
.setup-steps .code-input { width: 100%; margin-top: 8px; }
.auth-foot { margin: 0; text-align: center; color: #8D9AB3; font-size: 12.5px; }
.auth-step code { font-family: var(--mono); font-size: 12.5px; }
@media (max-width: 860px) {
  .rail-signout { display: none; }
  .acct-row { grid-template-columns: 40px 1fr; }
  .acct-row > .btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 420px) { .auth-card { padding: 22px 18px 18px; } .codes { grid-template-columns: 1fr; } }

@media print { .rail, .toolbar, .row-actions { display: none; } }
