/* Lethe — the river of forgetting. Paper, ink, and very little else. */

@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-wght-normal.a147f99cd533.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-ext-wght-normal.4841e590e2a9.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal.a15f9d568fb0.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.9b8dd1ecf641.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-ext-400-normal.b160c869d0b2.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("../fonts/instrument-serif-latin-400-italic.bc891bdd08ad.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("../fonts/instrument-serif-latin-ext-400-italic.148ffff0cacc.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F; }

:root {
  --bg: #f3f1eb;
  --surface: #fbfaf6;
  --sunken: #ebe8e0;
  --ink: #16171a;
  --ink-2: #393b40;
  --muted: #6f7178;
  --faint: #9a9ca1;
  --line: #e1ddd3;
  --line-strong: #cbc6ba;
  --accent: #2c5d55;
  --accent-soft: rgba(44, 93, 85, .12);
  --on-ink: #f6f4ee;

  --done: #2e6a43; --done-bg: #e2ecdf;
  --wait: #4f5866; --wait-bg: #e6e6e2;
  --attn: #9a5a0b; --attn-bg: #f5e7cf;
  --bad: #a3361f;  --bad-bg: #f4ddd6;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r: 10px;
  --r-sm: 7px;
  --shadow: 0 1px 0 rgba(22, 23, 26, .04), 0 8px 24px -12px rgba(22, 23, 26, .12);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1011;
    --surface: #161719;
    --sunken: #1c1d20;
    --ink: #eceae3;
    --ink-2: #c9c7c0;
    --muted: #8d8f95;
    --faint: #64666c;
    --line: #26282b;
    --line-strong: #35373b;
    --accent: #7fb8ad;
    --accent-soft: rgba(127, 184, 173, .14);
    --on-ink: #101113;
    --done: #8cc79c; --done-bg: rgba(140, 199, 156, .12);
    --wait: #a9b0bb; --wait-bg: rgba(169, 176, 187, .12);
    --attn: #e7b467; --attn-bg: rgba(231, 180, 103, .13);
    --bad: #ef8f78;  --bad-bg: rgba(239, 143, 120, .13);
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.icon { flex: none; vertical-align: -3px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
code, .mono { font-family: var(--mono); font-size: .86em; letter-spacing: -.01em; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px;
  padding: 28px 18px 20px; border-right: 1px solid var(--line); background: var(--bg);
}
.brand { display: flex; align-items: baseline; gap: 10px; padding: 0 10px; text-decoration: none; }
.brand-word { font: italic 400 34px/1 var(--serif); letter-spacing: -.01em; }
.brand-mark { color: var(--accent); align-self: center; }
.brand-sub { display: block; padding: 6px 10px 0; color: var(--muted); font-size: 12.5px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { padding: 14px 10px 6px; color: var(--faint); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 450;
}
.nav a:hover { background: var(--sunken); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.nav .count {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; text-align: center;
  background: var(--attn-bg); color: var(--attn); font: 500 12px/1.5 var(--mono);
}
.sidebar-foot { margin-top: auto; display: grid; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.avatar {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--on-ink); font: 500 12px/1 var(--sans); letter-spacing: .02em; flex: none;
}
.me-name { font-weight: 500; font-size: 13.5px; line-height: 1.25; }
.me-sub { color: var(--muted); font-size: 12px; }
.me select { width: 100%; }
.me .icon-btn { margin-left: auto; }

.main { padding: 44px clamp(20px, 4vw, 56px) 80px; min-width: 0; }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap-narrow { max-width: 760px; margin: 0 auto; }

/* ---------- Type ---------- */
.eyebrow { color: var(--muted); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
h1, .h1 { font: 400 clamp(36px, 4.4vw, 52px)/1.02 var(--serif); letter-spacing: -.015em; margin: 8px 0 12px; }
h1 em, .h1 em { font-style: italic; }
h2 { font: 400 28px/1.1 var(--serif); letter-spacing: -.01em; margin: 0 0 6px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.005em; }
.lede { color: var(--ink-2); font-size: 17px; line-height: 1.5; max-width: 62ch; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r-sm); border: 1px solid transparent; background: var(--ink); color: var(--on-ink);
  font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-2); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 0 10px; }
.btn-quiet:hover { background: var(--sunken); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm);
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--sunken); color: var(--ink); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 22px 24px; }
.card + .card { margin-top: 16px; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); margin-bottom: 20px; font-size: 14px;
}
.notice .icon { margin-top: 2px; }
.notice-attn { background: var(--attn-bg); border-color: transparent; color: var(--ink); }
.notice-attn .icon { color: var(--attn); }
.notice-done { background: var(--done-bg); border-color: transparent; }
.notice-done .icon { color: var(--done); }
.notice-bad { background: var(--bad-bg); border-color: transparent; }
.notice-bad .icon { color: var(--bad); }
.toast-stack { display: grid; gap: 8px; margin-bottom: 24px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.stat { padding: 22px 24px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num { font: 400 46px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.stat-label { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot-done { background: var(--done); } .dot-wait { background: var(--wait); } .dot-attn { background: var(--attn); } .dot-bad { background: var(--bad); }

.meter { display: flex; height: 6px; border-radius: 99px; background: var(--sunken); overflow: hidden; gap: 2px; }
.meter span { display: block; height: 100%; }
.meter .m-done { background: var(--done); } .meter .m-wait { background: var(--wait); opacity: .55; } .meter .m-attn { background: var(--attn); }
.meter-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.meter-legend span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 99px;
  font-size: 12.5px; font-weight: 500; white-space: nowrap; line-height: 1.5;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-done { background: var(--done-bg); color: var(--done); }
.pill-wait { background: var(--wait-bg); color: var(--wait); }
.pill-attn { background: var(--attn-bg); color: var(--attn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-muted { background: var(--sunken); color: var(--muted); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 5px; background: var(--sunken); color: var(--ink-2); font-size: 12px; }

/* ---------- Lists & tables ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none;
}
a.row:hover { background: linear-gradient(90deg, transparent, var(--surface) 12%, var(--surface) 88%, transparent); }
.row-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.row-end { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 0 12px 10px; border-bottom: 1px solid var(--line-strong);
}
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: var(--surface); }
.table .t-name a { font-weight: 500; text-decoration: none; }
.table .t-name a:hover { text-decoration: underline; }
.table .t-sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.table .t-check { width: 36px; padding-right: 0; }
.table .t-right { text-align: right; }
.table-wrap { overflow-x: auto; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed time { color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed .dot { transform: translateY(-1px); }
.feed a { text-decoration: none; font-weight: 500; }

/* ---------- Tabs & filters ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: -1px; color: var(--muted);
  text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 450;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .n { font: 500 12px var(--mono); color: var(--faint); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search .icon { position: absolute; left: 12px; top: 11px; color: var(--faint); }
.search input[type=search] { padding-left: 38px; }
[hidden] { display: none !important; }

/* ---------- Forms ---------- */
label, .label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14.5px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.field { margin-bottom: 18px; }
.help { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--bad); font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-addr { display: grid; grid-template-columns: 2fr .8fr 1.4fr 1fr auto; gap: 10px; align-items: end; }
.fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.fieldset-title { display: flex; justify-content: space-between; align-items: baseline; margin: 34px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fieldset-title h2 { font-size: 24px; margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check:last-child { border-bottom: 0; }
.check input { margin-top: 3px; }
.check strong { display: block; font-weight: 500; font-size: 14.5px; }
.check span { color: var(--muted); font-size: 13px; }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
.addr-row + .addr-row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.addr-row .addr-tag { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-bottom: -4px; }

.choice { display: grid; gap: 10px; }
.choice label {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 0; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; transition: border-color .15s;
}
.choice label:hover { border-color: var(--line-strong); }
.choice label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice .c-title { font-size: 15px; font-weight: 500; color: var(--ink); }
.choice .c-sub { font-size: 13px; color: var(--muted); font-weight: 400; }
.choice .c-num { font: 400 30px/1 var(--serif); color: var(--ink); }

/* ---------- Letter ---------- */
.letter {
  white-space: pre-wrap; font: 400 14.5px/1.65 var(--sans); color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 32px; max-height: 560px; overflow: auto;
}
.letter-subject { font-weight: 600; color: var(--ink); margin-bottom: 14px; display: block; }
.thread { display: grid; gap: 14px; }
.msg { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.msg-in { border-left: 3px solid var(--accent); }
.msg-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.msg-head strong { color: var(--ink); font-weight: 500; }
.msg-body { white-space: pre-wrap; padding: 16px 18px; font-size: 14px; line-height: 1.6; max-height: 420px; overflow: auto; }
details.msg > summary { list-style: none; cursor: pointer; }
details.msg > summary::-webkit-details-marker { display: none; }
details.msg:not([open]) .msg-head { border-bottom: 0; }

.side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.side aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.suggest { display: grid; gap: 12px; padding: 18px 20px; border-radius: var(--r); background: var(--attn-bg); }
.suggest strong { font-weight: 600; }

/* ---------- Empty / onboarding ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.step { padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 500 12px var(--mono); color: var(--faint); display: block; margin-bottom: 18px; }
.step.is-done::before { content: "erledigt"; color: var(--done); }
.step p { color: var(--muted); font-size: 13.5px; margin: 4px 0 16px; }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r); }
.empty .h1 { font-size: 30px; color: var(--ink); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art {
  position: relative; overflow: hidden; background: #121315; color: #eceae3; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-art .brand-word { font-size: 44px; }
.auth-art blockquote { margin: 0; font: italic 400 clamp(30px, 3.4vw, 46px)/1.1 var(--serif); max-width: 15ch; letter-spacing: -.01em; }
.auth-art .waves { position: absolute; inset: auto -10% 18% -10%; opacity: .16; color: #7fb8ad; }
.auth-art .foot { color: #8d8f95; font-size: 13px; }
.auth-form { display: grid; place-items: center; padding: 48px 24px; }
.auth-form form { width: 100%; max-width: 360px; }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: var(--muted); font-size: 13px; }

/* ---------- htmx ---------- */
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.htmx-request.fade { opacity: .55; transition: opacity .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .side { grid-template-columns: 1fr; }
  .side aside { position: static; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; z-index: 10; height: auto; flex-direction: row; align-items: center; gap: 10px;
    padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
  }
  .brand-word { font-size: 26px; }
  .brand-sub, .nav-label, .sidebar-foot .me-text, .sidebar-foot select { display: none; }
  .nav { flex-direction: row; gap: 2px; }
  .nav a { padding: 7px 9px; font-size: 13.5px; }
  .nav a span.label-text { display: none; }
  .sidebar-foot { margin: 0 0 0 auto; display: flex; }
  .me { padding: 4px; border: 0; background: transparent; }
  .main { padding: 28px 16px 64px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-addr { grid-template-columns: 1fr 1fr; }
  .grid-addr .a-street { grid-column: 1 / -1; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 260px; padding: 28px; }
  .table .hide-sm { display: none; }
  .letter { padding: 20px; }
}

/* ---------- Print (letter) ---------- */
.print-page { max-width: 720px; margin: 0 auto; padding: 48px 24px; font: 400 15px/1.6 var(--sans); background: #fff; color: #111; }
.print-page .letter { border: 0; padding: 0; max-height: none; background: none; color: #111; }
.print-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 48px; font-size: 13.5px; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .print-page { padding: 0; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.w-full { width: 100%; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.selection-bar {
  position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding: 12px 12px 12px 20px; border-radius: 12px; background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow);
}
.selection-bar .btn { background: var(--on-ink); color: var(--ink); }
.selection-bar .btn:hover { background: color-mix(in srgb, var(--on-ink) 88%, var(--ink)); }
.selection-bar strong { font: 400 22px/1 var(--serif); margin-right: 4px; }
