/* telegram_archiver UI. One stylesheet, no build step. */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --fg: #16181d;
  --fg-2: #3d434e;
  --muted: #6b7280;
  --line: #e3e6eb;
  --line-strong: #cfd4dc;
  --accent: #4f46e5;
  --accent-fg: #ffffff;
  --accent-soft: #eef0ff;
  --ok: #15803d;
  --ok-soft: #e8f6ed;
  --warn: #b45309;
  --warn-soft: #fdf3e3;
  --err: #c62828;
  --err-soft: #fdecec;
  --info: #0369a1;
  --info-soft: #e7f3fa;
  --code: #f1f3f6;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .14);
  --radius: 12px;
  --radius-sm: 8px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sidebar: 228px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f13;
    --surface: #15181e;
    --surface-2: #1c2028;
    --fg: #e7e9ee;
    --fg-2: #c3c8d2;
    --muted: #8b93a1;
    --line: #262b35;
    --line-strong: #343b48;
    --accent: #818cf8;
    --accent-fg: #0d0f13;
    --accent-soft: #1f2240;
    --ok: #4ade80;
    --ok-soft: #10261a;
    --warn: #fbbf24;
    --warn-soft: #2a2110;
    --err: #f87171;
    --err-soft: #2c1416;
    --info: #38bdf8;
    --info-soft: #0f2230;
    --code: #0f1217;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 14.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 16px; font-weight: 620; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0 0 8px; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--code); padding: 1px 6px; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon.sm { width: 15px; height: 15px; vertical-align: -2px; }

/* --- shell --------------------------------------------------------------- */

.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  align-self: start;
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px;
  padding: 18px 12px; background: var(--surface); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 700; font-size: 15px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand .logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-fg); }
.brand .logo .icon { width: 17px; height: 17px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--fg-2); font-weight: 500;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--fg); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav a .badge { margin-left: auto; }
.sidebar .grow { flex: 1; }
.sidebar .foot { padding: 10px; border-top: 1px solid var(--line); margin-top: 8px; display: grid; gap: 8px; }
.sidebar .foot form { margin: 0; }
.main { min-width: 0; grid-column: 2; }
.topbar { display: none; }
.scrim { display: none; }
.content { max-width: 1120px; margin: 0 auto; padding: 26px 28px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin: 4px 0 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .main { grid-column: 1; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 40; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: var(--shadow-lg);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; }
  .scrim { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 30; }
  .topbar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20;
    padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .topbar .brand { padding: 0; }
  .topbar .sp { flex: 1; }
  .content { padding: 18px 14px 50px; }
}

/* --- building blocks ---------------------------------------------------- */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head .sub { color: var(--muted); font-size: 13px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 10px; }
.section-title h2 { font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.grid > .card { margin-bottom: 0; }
.stack { display: grid; gap: 10px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.break { word-break: break-word; overflow-wrap: anywhere; }
.mt { margin-top: 12px; }
.mt-s { margin-top: 6px; }
.text-err { color: var(--err); }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat .value { font-size: 24px; font-weight: 680; margin-top: 4px; letter-spacing: -.02em; }
.stat.ok .value { color: var(--ok); } .stat.err .value { color: var(--err); } .stat.accent .value { color: var(--accent); }
a.stat:hover { text-decoration: none; border-color: var(--line-strong); }

/* buttons */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 550; font-size: 13.5px; line-height: 1.2;
  padding: 8px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--fg); cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, opacity .12s;
}
button:hover, .btn:hover { background: var(--surface-2); text-decoration: none; }
button:disabled, button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.07); }
.btn-danger { color: var(--err); }
.btn-danger:hover { background: var(--err-soft); border-color: var(--err); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--fg-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost.btn-danger { color: var(--err); }
.btn-ghost.btn-danger:hover { background: var(--err-soft); border-color: transparent; }
.btn-sm { padding: 5px 9px; font-size: 12.5px; border-radius: 7px; }
.btn-icon { padding: 6px; }
.btn-block { width: 100%; }
.btn-choice { justify-content: flex-start; min-width: 140px; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
form.inline { display: inline; margin: 0; }

/* loading state: htmx adds .htmx-request to the element that issued the request */
.htmx-request button, button.htmx-request { pointer-events: none; opacity: .65; }
.htmx-request button[type=submit]::after, .htmx-request > button:only-of-type::after, button.htmx-request::after {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* forms */
label { font-weight: 550; font-size: 13px; }
.field { display: grid; gap: 5px; }
.field .hint { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.fields { display: grid; gap: 14px; }
.fields.two { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
input[type=text], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=url], select, textarea {
  font: inherit; width: 100%; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--fg); transition: border-color .12s, box-shadow .12s;
  min-height: 38px; line-height: 1.35;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid="true"] { border-color: var(--err); }
textarea { min-height: 104px; resize: vertical; }
input.mono, textarea.mono { font-family: var(--mono); font-size: 13px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13.5px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.input-row { display: flex; gap: 8px; }
.input-row > input, .input-row > select { flex: 1; min-width: 0; }
@media (max-width: 560px) { .input-row { flex-direction: column; } }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--fg-2); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge.done, .badge.ok, .badge.ready { background: var(--ok-soft); color: var(--ok); }
.badge.failed, .badge.error { background: var(--err-soft); color: var(--err); }
.badge.running, .badge.queued { background: var(--accent-soft); color: var(--accent); }
.badge.paused, .badge.waiting, .badge.warn, .badge.draft { background: var(--warn-soft); color: var(--warn); }
.badge.cancelled { color: var(--muted); }
.badge.running::before { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .2; } }

/* progress */
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s ease; }
.progress.ok > i { background: var(--ok); }
.progress.indeterminate > i { width: 30% !important; animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { from { margin-left: -30%; } to { margin-left: 100%; } }
.progress.lg { height: 8px; }

/* alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: 13.5px; margin-bottom: 14px; }
.alert .icon { margin-top: 1px; }
.alert.info { background: var(--info-soft); border-color: transparent; color: var(--info); }
.alert.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.alert.err { background: var(--err-soft); border-color: transparent; color: var(--err); }
.alert.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.alert a { color: inherit; text-decoration: underline; }

/* empty states */
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty .icon { width: 34px; height: 34px; stroke-width: 1.4; margin-bottom: 8px; opacity: .7; }
.empty h3 { color: var(--fg); margin-bottom: 4px; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-top: 0; background: var(--surface-2); }
tr.link-row { cursor: pointer; }
tr.link-row:hover td { background: var(--surface-2); }
td.shrink, th.shrink { width: 1%; white-space: nowrap; }
@media (max-width: 680px) {
  table.responsive thead { display: none; }
  table.responsive tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
  table.responsive td { border: 0; padding: 0; }
  table.responsive td[data-label]::before { content: attr(data-label) " · "; color: var(--muted); font-size: 12px; }
  table.responsive td.hide-sm { display: none; }
}

/* lists of files inside a batch */
.files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.file { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 12px; padding: 11px 14px; align-items: start; }
.file + .file { border-top: 1px solid var(--line); }
.file .st { margin-top: 1px; }
.file .name { font-weight: 550; overflow-wrap: anywhere; }
.file .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.file .detail { grid-column: 2 / -1; font-size: 12.5px; }
.file .progress { grid-column: 2 / -1; margin-top: 4px; }
.file .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.file.cancelled .name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.st-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; }
.st-icon .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.st-done { background: var(--ok-soft); color: var(--ok); }
.st-failed { background: var(--err-soft); color: var(--err); }
.st-running { background: var(--accent-soft); color: var(--accent); }
.st-running .icon { animation: spin 1.6s linear infinite; }
.st-queued, .st-draft { background: var(--surface-2); color: var(--muted); }
.st-waiting { background: var(--warn-soft); color: var(--warn); }
.st-cancelled { background: var(--surface-2); color: var(--muted); }
@media (max-width: 560px) { .file { grid-template-columns: 22px 1fr; } .file .actions { grid-column: 2; justify-content: flex-start; order: 10; margin-top: 4px; } }

/* batch card */
.batch .title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.batch .title h2 { font-size: 16px; overflow-wrap: anywhere; }
.batch .title h2 a { color: var(--fg); }
.batch .id { color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: 13px; }
.batch .route { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.batch .route .route-dest { color: var(--fg-2); font-weight: 550; }
.batch .summary { display: flex; gap: 14px; align-items: center; margin: -2px 0 12px; font-size: 12.5px; color: var(--muted); }
.batch .summary .progress { flex: 1; }
.seedr-box { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 12px; font-size: 13px; }

/* draft stepper */
.steps { display: flex; gap: 6px; margin: 4px 0 12px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.step .n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-size: 11px; font-weight: 700; }
.step.on { color: var(--fg); font-weight: 600; } .step.on .n { border-color: var(--accent); color: var(--accent); }
.step.ok .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.step + .step::before { content: ""; width: 18px; height: 1.5px; background: var(--line-strong); }
.draft-panel { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 14px; margin-top: 14px; }
.draft-panel .q { font-weight: 600; margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }

/* toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 8px; width: min(420px, calc(100vw - 36px)); }
.toast {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13.5px;
  animation: toast-in .18s ease-out;
}
.toast .msg { flex: 1; overflow-wrap: anywhere; }
.toast .x { background: none; border: 0; padding: 0 2px; color: var(--muted); font-size: 18px; line-height: 1; }
.toast.err { border-left: 4px solid var(--err); } .toast.ok { border-left: 4px solid var(--ok); }
.toast.info { border-left: 4px solid var(--accent); } .toast.warn { border-left: 4px solid var(--warn); }
.toast.leaving { opacity: 0; transform: translateY(6px); transition: all .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* connection indicator */
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
body.sse-down .live::before { background: var(--err); }
body.sse-down .live .on { display: none; } .live .off { display: none; } body.sse-down .live .off { display: inline; }

/* composer */
.composer textarea { min-height: 96px; font-family: var(--mono); font-size: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--fg-2); }

/* running list on the dashboard */
.running-item { display: grid; gap: 5px; padding: 10px 0; }
.running-item + .running-item { border-top: 1px solid var(--line); }
.running-item .top { display: flex; gap: 10px; justify-content: space-between; font-size: 13.5px; }
.running-item .top .name { font-weight: 550; overflow-wrap: anywhere; }

/* filter bar */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input[type=search] { max-width: 340px; }
.filters select { max-width: 200px; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 13px; }

/* logs */
.log-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.log-toolbar input[type=search] { max-width: 260px; }
.log-toolbar select { max-width: 130px; }
.log {
  font: 12.5px/1.6 var(--mono); background: var(--code); border-radius: var(--radius-sm); padding: 10px 12px;
  height: calc(100vh - 260px); min-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  border: 1px solid var(--line);
}
.log > div { padding: 0 2px; border-radius: 3px; }
.log > div:hover { background: var(--surface-2); }
.log .t { color: var(--muted); }
.log .lv { display: inline-block; width: 46px; font-weight: 700; }
.log .debug { color: var(--muted); } .log .warn .lv { color: var(--warn); } .log .error { color: var(--err); } .log .info .lv { color: var(--info); }
.log .hidden { display: none; }

/* seedr browser */
.browser-row { display: flex; gap: 12px; align-items: center; padding: 10px 14px; }
.browser-row + .browser-row { border-top: 1px solid var(--line); }
.browser-row .name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.browser-row .size { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.browser-row input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* settings */
.settings-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.settings-nav a { padding: 8px 12px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.settings-nav a:hover { color: var(--fg); text-decoration: none; }
.settings-nav a[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.form-foot { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.dest-list { display: grid; gap: 10px; }
.dest { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 10px; }
.dest.off { opacity: .65; }
.dest-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1.2fr auto; gap: 10px; align-items: end; }
@media (max-width: 760px) { .dest-grid { grid-template-columns: 1fr; } }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 13.5px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; overflow-wrap: anywhere; }

/* telegram */
.qr { background: #fff; padding: 10px; border-radius: 12px; display: inline-block; border: 1px solid var(--line); }
.qr img { display: block; }
.login-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.option { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; display: grid; gap: 10px; align-content: start; }
.option h3 { display: flex; gap: 8px; align-items: center; }
.account { display: flex; gap: 14px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 18px; flex: none; }

/* auth page */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: min(380px, 100%); padding: 28px; }
.auth .brand { justify-content: center; padding: 0 0 6px; font-size: 17px; }
.auth p.lead { text-align: center; color: var(--muted); margin-bottom: 18px; }

footer.foot { color: var(--muted); font-size: 12px; margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
