/* Shared styles for the live Declutter pages. Palette matches labels.html. */
:root { --bg:#0f1117; --card:#181b24; --line:#2a2f3d; --text:#e8eaf0; --muted:#8b93a7; --accent:#4f8cff; --ok:#3fae6a; --warn:#d9a43a; --bad:#ff7a7a; --info:#7aa7ff; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.45 -apple-system, "Helvetica Neue", Arial, sans-serif; }
a { color:var(--info); }
header { position:sticky; top:0; z-index:5; background:var(--bg); border-bottom:1px solid var(--line); padding:12px 16px; }
.wrap { max-width:960px; margin:0 auto; }
h1 { font-size:20px; margin:0 0 8px; }
h2 { font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:24px 0 8px; }
.row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
input[type=search], input[type=password] { flex:1; min-width:0; font-size:16px; padding:10px 12px; border-radius:10px; border:1px solid var(--line); background:var(--card); color:var(--text); }
button { font-size:15px; padding:9px 12px; border-radius:10px; border:1px solid var(--line); background:var(--card); color:var(--text); cursor:pointer; }
button.primary { background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600; }
button.chip { font-size:13px; padding:6px 10px; border-radius:99px; }
button.chip.on { background:#22324f; border-color:var(--accent); color:#fff; }
.meta { color:var(--muted); font-size:13px; margin-top:6px; }
main { padding:8px 16px 48px; }
.hidden { display:none !important; }
#gate { max-width:420px; margin:18vh auto 0; padding:0 16px; }
#err { margin-top:10px; font-size:14px; color:var(--bad); }

.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin:8px 0; scroll-margin-top:140px; }
.card.hit { border-color:var(--accent); box-shadow:0 0 0 2px #4f8cff55; }
.card .top { display:flex; justify-content:space-between; gap:8px; align-items:baseline; }
.id { font-weight:800; font-variant-numeric:tabular-nums; }
.desc { margin:4px 0 6px; }
.sub { color:var(--muted); font-size:13px; margin-top:3px; }
.sub b { color:var(--text); font-weight:600; }
details { margin-top:6px; font-size:13px; color:var(--muted); }
details summary { cursor:pointer; }
details p { margin:6px 0 0; white-space:pre-wrap; }

.st { font-size:12px; font-weight:600; padding:1px 8px; border-radius:99px; white-space:nowrap; }
.st-forsale { background:#14301f; color:var(--ok); }
.st-sold { background:#16243f; color:var(--info); }
.st-kept { background:#2b2b33; color:var(--muted); }
.st-other { background:#3a2f12; color:var(--warn); }
.warn { color:var(--warn); }

.tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:8px; margin-top:12px; }
.tile { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:10px 12px; }
.tile .v { font-size:22px; font-weight:700; font-variant-numeric:tabular-nums; }
.tile .k { font-size:12px; color:var(--muted); }

.tbl { width:100%; overflow-x:auto; border:1px solid var(--line); border-radius:12px; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { padding:8px 10px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
th { font-size:12px; color:var(--muted); font-weight:600; background:var(--card); position:sticky; top:0; }
td.n, th.n { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
tr:last-child td { border-bottom:none; }
td .sub { margin-top:2px; }
tfoot td { font-weight:700; background:var(--card); }
