:root {
  color-scheme: light;
  --bg: #f6f6f3;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #74726c;
  --border: rgba(11, 11, 11, 0.10);
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --accent: #2a78d6;
  --accent-ink: #1c5cab;
  --accent-wash: rgba(42, 120, 214, 0.10);
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --good: #0ca30c;
  --good-ink: #006300;
  --warn: #fab219;
  --warn-ink: #8a5a00;
  --bad: #d03b3b;
  --bad-ink: #b02a2a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #242422;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --muted: #9a988f;
    --border: rgba(255, 255, 255, 0.10);
    --grid: #2c2c2a;
    --axis: #383835;
    --accent: #3987e5;
    --accent-ink: #86b6ef;
    --accent-wash: rgba(57, 135, 229, 0.16);
    --series-1: #3987e5;
    --series-2: #d95926;
    --good-ink: #0ca30c;
    --warn-ink: #fab219;
    --bad-ink: #e66767;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1 { font-size: 1.5rem; margin: 0 0 4px; line-height: 1.25; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* --- kop & navigatie --- */
.top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.top-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 20px; min-height: 56px;
}
.brand { font-weight: 700; font-size: 1.05rem; color: var(--text); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 22px; height: 22px; color: var(--accent); }
nav.main { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
nav.main::-webkit-scrollbar { display: none; }
nav.main a {
  color: var(--text-2); padding: 8px 11px; border-radius: 8px; white-space: nowrap; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
nav.main a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
nav.main a.on { background: var(--accent-wash); color: var(--accent-ink); }
.count {
  background: var(--accent); color: #fff; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center;
}
.worker-warn { color: var(--bad-ink); font-size: 0.85rem; white-space: nowrap; }
.me {
  color: var(--text-2); padding: 8px 10px; border-radius: 8px; white-space: nowrap; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.me:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.me.on { background: var(--accent-wash); color: var(--accent-ink); }
.me svg { width: 18px; height: 18px; flex: none; }

main { max-width: 1240px; margin: 0 auto; padding: 20px 16px 64px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .sub { color: var(--text-2); margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

.flash {
  background: var(--accent-wash); color: var(--text); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px;
}
.flash.err { background: rgba(208, 59, 59, 0.10); }

/* --- kaarten, tegels --- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.card > h2:first-child { margin-top: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.cols > * { min-width: 0; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

/* timers op het overzicht (_sync.html): wanneer de worker weer zoekt en rekent; app.js telt af */
.sync { padding: 14px 16px 16px; }
.sync-head { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sync-head h2 { margin: 0; font-size: 1rem; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-2); }
.live.err { color: var(--bad-ink); font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; animation: pulse 2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(12, 163, 12, 0.45); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(12, 163, 12, 0); }
}
.timers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.timer { background: var(--surface-2); border-radius: 8px; padding: 10px 12px 11px; min-width: 0; display: grid; gap: 3px; align-content: start; }
.t-label { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--text-2); }
.t-label svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.t-label:hover { color: var(--text); text-decoration: none; }
.t-count { display: flex; align-items: baseline; gap: 6px; min-height: 2.1rem; }
.t-count b { font-size: 1.6rem; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.t-pre { font-size: 0.8rem; color: var(--muted); }
.t-bar { height: 5px; border-radius: 999px; background: var(--grid); overflow: hidden; margin: 2px 0 4px; }
.t-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width 1s linear; }
.t-detail { font-size: 0.84rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sub { font-size: 0.78rem; color: var(--muted); }
/* moment voorbij: de worker is ermee bezig (of het staat in de rij) */
.timer.busy .t-count b { font-size: 1.15rem; line-height: 1.85; color: var(--good-ink); }
.timer.busy .t-count b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 7px 2px 1px;
  background: var(--good); vertical-align: middle; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.timer.busy:not([data-progress]) .t-bar i { width: 100% !important; animation: stripes 0.9s linear infinite;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, var(--accent-wash) 8px 16px); background-size: 22.63px 100%; }
@keyframes stripes { to { background-position: 22.63px 0; } }
@media (prefers-reduced-motion: reduce) {
  .pulse, .timer.busy .t-count b::before, .timer.busy .t-bar i { animation: none; }
  .t-bar i { transition: none; }
}
@media (max-width: 600px) {
  .sync { padding: 12px; }
  .timers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .timer { padding: 9px 10px 10px; }
  .timer:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* geen gat naast de laatste */
  .t-count b { font-size: 1.3rem; }
  .t-count { min-height: 1.8rem; }
  .timer.busy .t-count b { font-size: 1rem; line-height: 1.8; }
}

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.tile .label { color: var(--text-2); font-size: 0.85rem; }
.tile .value { font-size: 1.6rem; font-weight: 650; line-height: 1.2; margin-top: 2px; }
.tile .sub { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.up { color: var(--good-ink); }
.down { color: var(--bad-ink); }

/* --- advertentietegels --- */
.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
/* één rij die horizontaal scrolt (laatst bekeken op het overzicht) */
.ads.strip {
  grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 168px;
  overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: thin;
}
.ads.strip .ad { scroll-snap-align: start; }
.ads.strip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ad {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow);
}
.ad.gone { opacity: 0.6; }
.ad .img { aspect-ratio: 1 / 1; background: var(--surface-2); display: block; overflow: hidden; }
.ad .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad .img .noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ad .body { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.ad .price { font-weight: 700; font-size: 1.02rem; }
.ad .price s { color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-left: 4px; }
.ad .title { font-size: 0.88rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
.ad .meta { font-size: 0.78rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad .group { font-size: 0.8rem; color: var(--text-2); font-weight: 550; }
.ad .group .muted { font-weight: 400; }
/* beoordeling van de verkoper: vijf sterren, gevuld tot het cijfer (--r, 0-5) */
.rating { font-size: 0.78rem; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rating .stars {
  background: linear-gradient(90deg, var(--warn) calc(var(--r) / 5 * 100%), var(--axis) calc(var(--r) / 5 * 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 0.5px;
}
.rating .n { color: var(--muted); }
.rating.good { color: var(--good-ink); font-weight: 550; }
.rating.low { color: var(--bad-ink); }
.rating.none { color: var(--muted); }
/* echtheidsscore (authenticity.py): schildje, vijf streepjes, woord. --c tekst, --f vulling; t1 namaak ... t5 echt, t0 remake.
   Gevuld schildje: Claude bekeek de foto; anders alleen de rand. */
.trust { --c: var(--muted); --f: var(--axis); display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem;
         color: var(--c); white-space: nowrap; max-width: 100%; vertical-align: middle; }
.trust.t5 { --c: var(--good-ink); --f: var(--good); }
.trust.t4 { --c: var(--good-ink); --f: color-mix(in srgb, var(--good) 55%, var(--surface)); }
.trust.t2 { --c: var(--warn-ink); --f: var(--warn); }
.trust.t1 { --c: var(--bad-ink); --f: var(--bad); }
.trust.t0 { --c: var(--text-2); }
.trust .shield { width: 14px; height: 14px; flex: none; overflow: visible; }
.trust .shield .bg { fill: none; stroke: var(--f); stroke-width: 1.5; stroke-linejoin: round; }
.trust .shield .mark { fill: none; stroke: var(--f); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust.seen .shield .bg { fill: var(--f); }
.trust.seen .shield .mark { stroke: var(--surface); }
.trust .meter { display: inline-flex; gap: 2px; flex: none; }
.trust .meter i { width: 7px; height: 4px; border-radius: 2px; background: var(--grid); }
.trust .meter i.on { background: var(--f); }
.trust .word { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.trust .ai { color: var(--muted); font-size: 0.82rem; }
.trust.big { font-size: 1rem; gap: 9px; flex-wrap: wrap; white-space: normal; }
.trust.big .shield { width: 30px; height: 30px; }
.trust.big .meter { gap: 3px; }
.trust.big .meter i { width: 18px; height: 7px; border-radius: 3px; }
.trust-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.trust-head .score { font-size: 1.7rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trust-head .score small { font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.reasons { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; font-size: 0.88rem; }
.reasons li { display: grid; grid-template-columns: 2.4em 1fr; gap: 8px; }
.reasons .pts { font-weight: 700; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.reasons .plus .pts { color: var(--good-ink); }
.reasons .min .pts { color: var(--bad-ink); }
.trust-card form { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin: 0 0 10px; }
.trust-card .hint { color: var(--muted); font-size: 0.8rem; margin: 0; }
a.plain:hover { text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ad .badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.ad .tools { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 6px; }
.ad .tools form { margin: 0; }
.ad { scroll-margin-top: 72px; }   /* terug naar dit shirt na volgen/verbergen, onder de vaste kopbalk */
/* volgen: rond knopje rechtsboven op de foto, zoals het hartje op Vinted */
.ad .fav { position: absolute; top: 6px; right: 6px; margin: 0; }
.ad:has(.fav) .badges { right: 46px; }   /* niet onder het volgknopje */
.ad .fav button {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 1.05rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); padding: 0;
}
.ad .fav button:hover { background: var(--surface-2); color: var(--text); }
.ad .fav button.on { color: var(--warn-ink); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 650;
  padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border); white-space: nowrap; line-height: 1.5;
}
.ad .badges .badge { background: var(--surface); }
.b-deal { color: var(--good-ink); }
.b-gone { color: var(--text-2); }
.b-star { color: var(--warn-ink); }
.b-bought { color: var(--good-ink); font-weight: 600; }
.b-bad { color: var(--bad-ink); font-weight: 600; }
.b-err { color: var(--bad-ink); }
.b-ok { color: var(--good-ink); }
.b-warn { color: var(--warn-ink); }
.b-wish { color: var(--accent-ink); }
.ad .badges .b-wish { background: var(--accent-wash); border-color: transparent; }

/* --- verlanglijst, inklapbare kaarten --- */
details.card > summary { cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: "▸"; display: inline-block; width: 1.1em; color: var(--muted); }
details.card[open] > summary::before { content: "▾"; }
.card.paused > .card-head, .card.paused > .ads { opacity: 0.6; }
.steps { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; }
.steps li::marker { font-weight: 650; color: var(--muted); }
.steps .done { color: var(--muted); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.inline-form input { flex: 1 1 260px; width: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: var(--good); }
.dot.err { background: var(--bad); }
.dot.warn { background: var(--warn); }
.dot.idle { background: var(--axis); }

/* --- knoppen & formulieren --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 550; font-size: 0.9rem; line-height: 1.2;
  padding: 8px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .btn-primary:hover { background: #2a78d6; } }
.btn-danger { color: var(--bad-ink); }
.btn-sm { padding: 4px 9px; font-size: 0.8rem; border-radius: 6px; }
.btn-icon { padding: 4px 7px; font-size: 0.85rem; }

form.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 4px; align-content: start; }
.field > label, .field > .label { font-weight: 600; font-size: 0.9rem; }
.field .hint { color: var(--muted); font-size: 0.82rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
input[type=text], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); width: 100%;
  border: 1px solid var(--axis); border-radius: 8px; padding: 8px 10px; min-height: 38px;
}
textarea { min-height: 90px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--axis); background: var(--surface); font-size: 0.88rem; user-select: none;
}
.chip span small { color: var(--muted); }
.chip input:checked + span { background: var(--accent-wash); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.group-label { font-size: 0.8rem; color: var(--muted); margin: 8px 0 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 8px 12px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--text); border-color: var(--accent); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar select, .toolbar input { width: auto; min-width: 140px; }
.toolbar input[type=checkbox] { min-width: 0; }
.seg { display: inline-flex; border: 1px solid var(--axis); border-radius: 8px; overflow: hidden; }
.seg a { padding: 6px 11px; font-size: 0.85rem; color: var(--text-2); border-left: 1px solid var(--axis); }
.seg a:first-child { border-left: 0; }
.seg a.on { background: var(--accent-wash); color: var(--accent-ink); font-weight: 600; }
.seg a:hover { text-decoration: none; }
.seg button { padding: 5px 10px; font: inherit; font-size: 0.82rem; color: var(--text-2); background: none; border: 0;
  border-left: 1px solid var(--axis); cursor: pointer; white-space: nowrap; }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--accent-wash); color: var(--accent-ink); font-weight: 600; }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* zoekformulier: bronnen kiezen */
.src-tools:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 2px 0 6px; }
.src-tools .seg { flex-wrap: wrap; max-width: 100%; }
.src-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.chip .cc { font-size: 0.68rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; margin-right: 2px; }
.chip input:checked + span .cc { color: var(--accent-ink); }

/* --- tabellen --- */
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.list th { text-align: left; font-weight: 600; color: var(--text-2); font-size: 0.8rem; padding: 6px 10px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
table.list td { padding: 9px 10px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.r, table.list th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.list .thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--surface-2); display: block; }
table.list tr.dim td { color: var(--muted); }

/* --- grafieken --- */
.chart-box { position: relative; height: 280px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--text-2); margin-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .key { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.legend .key.band { height: 10px; border-radius: 3px; }
.chart-box.short { height: 200px; }
details.data { margin-top: 10px; }
details.data summary { cursor: pointer; color: var(--text-2); font-size: 0.85rem; }
details.data table { margin-top: 8px; }

.empty { text-align: center; padding: 36px 16px; color: var(--text-2); }
.empty h2 { color: var(--text); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 0.92rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.alert-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--grid); align-items: flex-start; }
.alert-row:last-child { border-bottom: 0; }
.alert-row img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface-2); }
.alert-row .t { font-weight: 600; }
.alert-row.unread .t::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.photo-big { width: 100%; border-radius: var(--radius); background: var(--surface-2); aspect-ratio: 1 / 1; object-fit: cover; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .tile .value { font-size: 1.3rem; }
  .ads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ads.strip { grid-auto-columns: 150px; }
  .trust:not(.big) .meter i { width: 5px; }
  h1 { font-size: 1.3rem; }
  .hide-sm { display: none; }
  .brand span { display: none; }
  .me span { display: none; }
  .top-inner { gap: 10px; }
}
.stack-sm { display: grid; gap: 6px; align-content: start; }
.stack-sm .hint { color: var(--muted); font-size: 0.82rem; margin: 0 0 6px; }
table.list select { width: auto; min-width: 150px; }
table.list .actions { flex-wrap: nowrap; }

/* --- inloggen, account --- */
.auth { min-height: 100vh; box-sizing: border-box; display: grid; place-items: center; padding: 24px 16px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box .brand { justify-content: center; margin-bottom: 18px; font-size: 1.25rem; }
.auth-box .brand svg { width: 28px; height: 28px; }
.auth-box .brand span { display: inline; }
.auth-box .btn-primary { width: 100%; justify-content: center; padding-top: 10px; padding-bottom: 10px; }
.auth-box .flash.small { margin: 0; }
.center { text-align: center; }
input[readonly] { background: var(--surface-2); }

/* gekocht: de foto uit de advertentie in het inventarisformulier */
.ad-photo { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.ad-photo img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); flex: none; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
