/* AboAdé – base styles. Mobile first, no external dependencies. */
:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #eef2f1;
  --text: #15201e;
  --muted: #5d6b68;
  --border: #dbe2e0;
  --brand: #0f6b5f;
  --brand-contrast: #ffffff;
  --brand-soft: #dff0ec;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #157347;
  --ok-soft: #e3f4ea;
  --warn: #9a5b00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 22, .06), 0 2px 8px rgba(16, 24, 22, .04);
  --tabbar-h: 64px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1715;
    --surface: #15211f;
    --surface-2: #1c2a27;
    --text: #e6eeec;
    --muted: #93a39f;
    --border: #2a3a37;
    --brand: #4fc1ad;
    --brand-contrast: #062520;
    --brand-soft: #173a34;
    --danger: #f2877d;
    --danger-soft: #3a1d1a;
    --ok: #6dd39b;
    --ok-soft: #173325;
    --warn: #f0b552;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; }
p { margin: 0; }
a { color: var(--brand); }
hr { border: 0; border-top: 1px solid var(--border); margin: .5rem 0; width: 100%; }
.sprite { display: none; }
.icon { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

/* ---------- shell ---------- */
.shell { min-height: 100dvh; }
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 16px;
}
.shell--bare .main { padding-bottom: 24px; }
.sidebar { display: none; }

.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 500;
}
.tabbar a[aria-current="page"] { color: var(--brand); }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 240px 1fr; }
  .shell--bare { display: block; }
  .tabbar { display: none; }
  .main { padding: 32px 40px; width: 100%; }
  .sidebar {
    display: flex; flex-direction: column; gap: 16px;
    position: sticky; top: 0; height: 100dvh;
    padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--border);
  }
  .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 12px; color: var(--text);
    text-decoration: none; font-weight: 700; font-size: 1.2rem; }
  .sidenav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
  .sidenav a {
    display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px;
    color: var(--text); text-decoration: none; font-weight: 500;
  }
  .sidenav a:hover { background: var(--surface-2); }
  .sidenav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
  .sidebar__user { display: flex; align-items: center; gap: 10px; padding: 10px 4px 0 10px; border-top: 1px solid var(--border); }
  .sidebar__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
}

/* ---------- page parts ---------- */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 4px -6px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.back .icon { width: 18px; height: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.card > h2 + p { margin-top: 6px; }
.card--note { background: var(--brand-soft); border-color: transparent; }
.card--note p { margin-top: 4px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.kpi__label { color: var(--muted); font-size: .85rem; }
.kpi__value { font-size: 1.5rem; font-weight: 650; font-variant-numeric: tabular-nums; }

.props { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0 0; }
.props dt { color: var(--muted); }
.props dd { margin: 0; overflow-wrap: anywhere; }

.empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty__code { font-size: 3rem; font-weight: 700; color: var(--brand); }
.empty .btn { margin-top: 12px; }

/* ---------- lists ---------- */
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.list__item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; min-height: 56px; color: var(--text); text-decoration: none;
  background: none; border: 0; border-top: 1px solid var(--border); font: inherit; text-align: left; cursor: pointer;
}
.list__item:first-child { border-top: 0; }
.list__item:hover { background: var(--surface-2); }
.list__item > span:not(.avatar):not(.badge) { flex: 1; min-width: 0; }
.list__item > .icon:last-child { color: var(--muted); width: 18px; height: 18px; }
.list__item--danger { color: var(--danger); }
.list__main { display: flex; flex-direction: column; }

.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-weight: 650; font-size: .85rem;
}
.badge { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.badge--muted { background: var(--surface-2); color: var(--muted); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .95rem; }
.field small { font-weight: 400; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* avoids zoom on iOS */
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.btn--primary:hover { background: color-mix(in srgb, var(--brand) 88%, black); }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 0; background: none; color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--surface-2); color: var(--text); }

.alert { background: var(--danger-soft); color: var(--danger); padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.flash { padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.flash--ok { background: var(--ok-soft); color: var(--ok); }
.flash--err { background: var(--danger-soft); color: var(--danger); }

/* ---------- auth pages ---------- */
body.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth__box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.auth__brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.auth__brand h1 { font-size: 1.8rem; }

/* ---------- phase 1: shared ---------- */
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 4px -8px; }
.fielderr { color: var(--danger); font-weight: 500; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.btn--danger:hover { background: var(--danger-soft); }
.btn--small { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.danger-zone { display: flex; justify-content: flex-end; }
[data-color] { --c: var(--brand); }
.avatar[data-color] { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.caticon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.caticon .icon { width: 20px; height: 20px; }
input[type="color"] { padding: 4px; height: 44px; width: 80px; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 500; font-size: .95rem; margin-bottom: 6px; }
.iconpick { display: flex; flex-wrap: wrap; gap: 6px; }
.iconpick label { cursor: pointer; }
.iconpick input { position: absolute; opacity: 0; }
.iconpick span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); }
.iconpick input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.iconpick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.fieldrows { display: flex; flex-direction: column; gap: 8px; }
.fieldrow { display: grid; grid-template-columns: 1fr 130px; gap: 8px; }

/* ---------- contracts ---------- */
.grid3 { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid3 { grid-template-columns: repeat(3, 1fr); } .grid2 { align-items: start; } }
.status { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--surface-2); color: var(--muted); }
.status--active { background: var(--ok-soft); color: var(--ok); }
.status--deadline { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.status--ending { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.status--planned { background: var(--brand-soft); color: var(--brand); }

.filters { display: flex; flex-direction: column; gap: 10px; }
.search { position: relative; display: block; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.search input { padding-left: 40px !important; }
.filters__more summary { cursor: pointer; color: var(--muted); font-weight: 500; padding: 4px 2px; }
.filters__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 10px 0; }
.filters__inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters__inline select { width: auto; }

.clist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.crow { display: grid; grid-template-columns: 36px 1fr auto; grid-template-areas: "icon main cost" "icon status cost"; gap: 2px 12px;
  align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
.crow:first-child { border-top: 0; }
.crow:hover { background: var(--surface-2); }
.crow .caticon { grid-area: icon; }
.crow__main { grid-area: main; display: flex; flex-direction: column; min-width: 0; }
.crow__main strong, .crow__main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow__status { grid-area: status; }
.crow__next { display: none; }
.crow__cost { grid-area: cost; display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.fav { color: #e0a100; display: inline-flex; vertical-align: -3px; margin-right: 4px; }
.fav .icon { width: 16px; height: 16px; }
@media (min-width: 900px) {
  .crow { grid-template-columns: 36px minmax(0, 1fr) 120px 130px 130px; grid-template-areas: "icon main status next cost"; }
  .crow__next { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
}
.listfoot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.listfoot a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.listfoot .icon { width: 18px; height: 18px; }

.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cattile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; box-shadow: var(--shadow); }
.cattile:hover { border-color: var(--brand); }

.choice { display: flex; flex-direction: column; gap: 8px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.choice span { display: flex; flex-direction: column; }
.inputgroup { display: flex; gap: 6px; align-items: center; }
.inputgroup input { flex: 1; min-width: 0; }
.inputgroup select { width: auto; }
.unit { color: var(--muted); font-weight: 500; }
.uncertain input, .uncertain select, .uncertain textarea, fieldset.uncertain, label.check.uncertain { background-color: color-mix(in srgb, #f5c542 18%, var(--surface)); border-color: #d9a400; }
.notice { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--warn) 12%, var(--surface)); color: var(--warn); font-weight: 500; }
.notice .icon { flex: none; }
.splits summary { cursor: pointer; font-weight: 600; }
.splits[open] summary { margin-bottom: 8px; }
.sticky-actions { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); padding: 10px 0; }
@media (min-width: 900px) { .sticky-actions { bottom: 0; } }
[hidden] { display: none !important; }

.detailhead { align-items: flex-start; }
.detailhead__title { display: flex; gap: 14px; align-items: center; }
.caticon--lg { width: 48px; height: 48px; border-radius: 14px; }
.caticon--lg .icon { width: 26px; height: 26px; }
.copy { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.copy .icon { width: 14px; height: 14px; opacity: .6; }
.copy.copied::after { content: "kopiert"; font-size: .75rem; color: var(--ok); margin-left: 4px; }
.iconbtn--on { color: #e0a100; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.count { font-size: .75rem; background: var(--surface-2); padding: 1px 7px; border-radius: 999px; }
.facts { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.fact--wide { grid-column: 1 / -1; }
.fact--warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.fact__label { color: var(--muted); font-size: .85rem; }
.fact__value { font-size: 1.35rem; font-weight: 650; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .facts { grid-template-columns: 1fr 1fr 2fr; } .fact--wide { grid-column: auto; } }
.tag { display: inline-block; font-size: .8rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; }
.prewrap { white-space: pre-wrap; margin-top: 8px; }
.danger-row { justify-content: flex-end; }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.tablewrap { overflow-x: auto; margin: 8px -4px 0; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row--past td { color: var(--muted); }
.rowmenu { position: relative; display: inline-block; }
.rowmenu summary { list-style: none; }
.rowmenu summary::-webkit-details-marker { display: none; }
.rowmenu__panel { position: absolute; right: 0; top: 44px; z-index: 20; width: min(420px, 86vw); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.15); text-align: left;
  display: flex; flex-direction: column; gap: 10px; }
.addprice summary { list-style: none; display: inline-flex; }
.addprice summary::-webkit-details-marker { display: none; }
.addprice[open] summary { margin-bottom: 12px; }
.priceform .grid2 { gap: 10px; }

.timeline { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li { display: flex; flex-direction: column; border-left: 2px solid var(--border); padding-left: 12px; }

/* documents */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; text-align: center;
  border: 2px dashed var(--border); border-radius: var(--radius); cursor: pointer; font-weight: 600; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface-2); }
.thumb--icon { display: inline-grid; place-items: center; color: var(--muted); }
.docrow { gap: 8px; }
.docrow__main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--text); text-decoration: none; }
.docrow__actions { display: flex; align-items: center; }
.docrow__actions form { display: contents; }
.preview { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.inlineform { display: flex; gap: 8px; flex-wrap: wrap; }
.inlineform select { flex: 1; min-width: 200px; }
details.card > summary { cursor: pointer; font-weight: 600; }
details.card[open] > summary { margin-bottom: 12px; }

/* dashboard */
.steps { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.actionlist, .debitlist, .bars { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; }
.action a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
.action:first-child a { border-top: 0; }
.action__main { display: flex; flex-direction: column; min-width: 0; }
.action__main small { color: var(--muted); }
.action__days { font-weight: 650; white-space: nowrap; font-size: .9rem; }
.action--deadline .action__days { color: var(--warn); }
.action--noprice .action__main small { color: var(--danger); }
.debitlist li { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); align-items: baseline; }
.debitlist li:first-child { border-top: 0; }
.debitlist a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.debit__date { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.bars li { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; padding: 6px 0; }
.bars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars__track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bars__fill { display: block; height: 100%; width: 0; background: var(--c); border-radius: 999px; }

/* ---------- AI import ---------- */
.stepnum { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-contrast);
  font-size: .85rem; margin-right: 8px; vertical-align: 1px; }
.prompt, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem !important; line-height: 1.45; }
.prompt { background: var(--surface-2) !important; }
.list--flat { box-shadow: none; margin-top: 10px; }
.warnings { margin: 0; padding-left: 20px; color: var(--warn); font-size: .92rem; display: flex; flex-direction: column; gap: 2px; }
.importitem--done { opacity: .6; }
.notice a { color: inherit; }

/* ---------- 2FA ---------- */
.qrbox { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.qr svg { display: block; width: 220px; height: 220px; border-radius: 12px; border: 1px solid var(--border); }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; letter-spacing: .04em; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; word-break: break-all; }
.codes { columns: 2; margin: 0; padding-left: 24px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; line-height: 1.9; }
.codeinput { font-size: 1.4rem !important; letter-spacing: .25em; text-align: center; font-variant-numeric: tabular-nums; }
.mt { margin-top: 12px; }
@media (max-width: 600px) { .tabs a { padding: 10px 9px; font-size: .95rem; } .tabs { gap: 0; } }

/* ---------- paperless ---------- */
.badge--warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.list__main .badge { align-self: flex-start; margin-top: 3px; }
.maprows { display: flex; flex-direction: column; gap: 8px; }
.maprow { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 10px; align-items: center; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
a.card.list__item { border-radius: var(--radius); }
.thumb--lg { width: 64px; height: 64px; }
.suggestion { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.suggestion--best { border-color: var(--brand); background: var(--brand-soft); }
.grow { flex: 1; }
label.list__item input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.sidenav__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 12px 4px; }
@media (min-width: 900px) { .sidenav { overflow-y: auto; } .sidenav a { padding: 7px 12px; } }
