/* watnu – "Emerald Assistant" Design. Mobile-first, eine Datei, keine Build-Deps. */
:root {
  --bg: #f8f9ff;
  --surface: #ffffff;
  --surface-low: #eff4ff;
  --surface-c: #e5eeff;
  --surface-high: #dce9ff;
  --ink: #0b1c30;
  --ink-soft: #51606b;
  --line: #e6ecf5;
  --primary: #10b981;        /* Emerald */
  --primary-deep: #006c49;
  --primary-ink: #00513a;
  --primary-soft: #d8f5e9;   /* Mint */
  --on-primary: #ffffff;
  --secondary: #06b6d4;      /* Cyan – AI */
  --warn: #b4541a;
  --warn-soft: #fbeee3;
  --radius-card: 22px;
  --radius-ctrl: 12px;
  --radius-pill: 999px;
  --shadow: 0 8px 24px rgba(11, 28, 48, .06);
  --shadow-sm: 0 2px 8px rgba(11, 28, 48, .05);
  --shadow-cta: 0 8px 22px rgba(16, 185, 129, .28);
  --maxw: 460px;
  --nav-h: 76px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
#app { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--nav-h) + 20px); position: relative; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  padding: 12px 16px; background: rgba(248, 249, 255, .85); backdrop-filter: blur(8px);
}
.topbar .icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: none; background: none; color: var(--ink); cursor: pointer; border-radius: var(--radius-pill); }
.topbar .icon-btn:active { background: var(--surface-c); }
.brand { display: flex; align-items: baseline; justify-content: center; gap: 1px; cursor: pointer; }
.brand b { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.brand .dot { color: var(--primary); font-size: 21px; font-weight: 800; }
.ico { width: 22px; height: 22px; }

/* ---------- Views ---------- */
.view { padding: 4px 20px 18px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
h2.title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 8px 0 2px; }
p.lead { color: var(--ink-soft); margin: 0 0 16px; font-size: 14px; }
.muted { color: var(--ink-soft); }
.section-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 22px 4px 10px; font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-card);
  background: linear-gradient(155deg, #18c08a 0%, #10a877 52%, #057a55 100%);
  color: #fff; padding: 26px 22px 22px; box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; top: -40px; right: -30px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(6, 182, 212, .45), transparent 70%); pointer-events: none;
}
.hero h1 { position: relative; font-size: 27px; font-weight: 800; line-height: 1.18; letter-spacing: -.02em; margin: 0 0 8px; }
.hero p { position: relative; margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .9); max-width: 26ch; }
.hero-cta {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: #fff; color: var(--ink); border: none; border-radius: var(--radius-pill);
  padding: 16px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.hero-cta:active { transform: translateY(1px); }
.ai-chip {
  position: relative; display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  padding: 7px 13px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 600;
}
.ai-chip .ico { width: 15px; height: 15px; color: #eafff6; }

/* ---------- Kamera v2 ---------- */
.camera-overlay {
  position: fixed; inset: 0; z-index: 80; background: #07131d; color: #fff;
  display: flex; justify-content: center;
  height: 100vh;
  height: 100dvh;
}
.camera-shell {
  position: relative; width: 100%; max-width: var(--maxw); height: 100vh; height: 100dvh;
  overflow: hidden; background: #07131d;
}
.camera-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #07131d; }
.camera-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 19, 29, .66), rgba(7, 19, 29, .06) 33%, rgba(7, 19, 29, .12) 60%, rgba(7, 19, 29, .78));
}
.camera-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
}
.camera-icon-btn {
  width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius-pill);
  background: rgba(7, 19, 29, .48); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); cursor: pointer;
}
.camera-icon-btn.active { background: rgba(255, 255, 255, .18); }
.camera-frame {
  position: absolute; left: 32px; right: 32px; top: 16%; height: min(44vh, 340px); height: min(44dvh, 340px); z-index: 1;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 28px; pointer-events: none;
}
.camera-frame span { position: absolute; width: 34px; height: 34px; border-color: rgba(255, 255, 255, .92); border-style: solid; }
.camera-frame span:nth-child(1) { top: -1px; left: -1px; border-width: 3px 0 0 3px; border-top-left-radius: 28px; }
.camera-frame span:nth-child(2) { top: -1px; right: -1px; border-width: 3px 3px 0 0; border-top-right-radius: 28px; }
.camera-frame span:nth-child(3) { bottom: -1px; left: -1px; border-width: 0 0 3px 3px; border-bottom-left-radius: 28px; }
.camera-frame span:nth-child(4) { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; border-bottom-right-radius: 28px; }
.camera-help, .camera-error, .camera-status {
  position: absolute; left: 20px; right: 20px; z-index: 3; border-radius: 18px;
  background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}
.camera-help { top: calc(70px + env(safe-area-inset-top, 0px)); padding: 14px 16px; }
.camera-help b, .camera-error b { display: block; font-size: 14px; }
.camera-help p, .camera-error p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.camera-status { top: 45%; padding: 13px 16px; text-align: center; font-size: 14px; }
.camera-error { top: 34%; padding: 18px; text-align: center; }
.camera-fallback {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px;
  border: none; border-radius: var(--radius-pill); padding: 12px 16px; background: var(--primary); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
}
.camera-bottom {
  position: absolute; left: 0; right: 0; bottom: 34px; bottom: max(34px, env(safe-area-inset-bottom, 0px)); z-index: 2;
  display: grid; grid-template-columns: 1fr 88px 1fr; align-items: center; gap: 10px;
  padding: 12px 18px 18px;
}
.camera-shutter {
  grid-column: 2; width: 76px; height: 76px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .24); display: grid; place-items: center; cursor: pointer;
}
.camera-shutter span { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.camera-shutter:disabled { opacity: .45; cursor: default; }
.camera-roll {
  justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 92px;
  border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--radius-pill); padding: 10px 12px;
  background: rgba(7, 19, 29, .52); color: #fff; font: inherit; font-size: 13px; font-weight: 700; backdrop-filter: blur(8px); cursor: pointer;
}
.camera-roll .ico, .camera-fallback .ico { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-ctrl); padding: 14px 16px; font-size: 15px; font-weight: 600;
  cursor: pointer; width: 100%; text-decoration: none; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:active { background: var(--primary-deep); }
.btn-ghost { background: var(--primary-soft); color: var(--primary-ink); }
.btn-line { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-sm { width: auto; padding: 9px 14px; font-size: 13px; border-radius: var(--radius-pill); }
.btn-row { display: flex; gap: 10px; }
.pill { border-radius: var(--radius-pill); }

/* ---------- Cards / tiles ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px;
}
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow); padding: 14px; display: flex; gap: 14px; align-items: center;
  cursor: pointer; margin-bottom: 12px; text-align: left; width: 100%; font-family: inherit;
}
.tile:active { transform: translateY(1px); }
.tile-thumb { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 27px; flex: 0 0 auto;
  background: linear-gradient(150deg, var(--surface-c), var(--primary-soft)); }
.tile-img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; background: var(--surface-c); }
.tile .t-body { flex: 1; min-width: 0; }
.tile .t-title { font-weight: 700; font-size: 15px; }
.tile .t-sub { color: var(--ink-soft); font-size: 13px; margin-top: 1px; }
.chev { width: 30px; height: 30px; border-radius: var(--radius-pill); background: var(--surface-low); color: var(--primary-ink);
  display: grid; place-items: center; flex: 0 0 auto; }
.chev .ico { width: 16px; height: 16px; }

/* Inventory summary card (Home) */
.inv-card { display: flex; align-items: center; gap: 14px; }
.inv-card .ic-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-c); color: var(--primary-deep); display: grid; place-items: center; flex: 0 0 auto; }
.inv-card .ic-body { flex: 1; }
.inv-card .ic-title { font-weight: 700; font-size: 16px; }
.inv-card .ic-sub { color: var(--ink-soft); font-size: 13px; }

/* Empty state */
.empty { text-align: center; padding: 30px 16px; color: var(--ink-soft); }
.empty .big { font-size: 44px; }

/* ---------- Item form ---------- */
.attr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.attr { display: flex; flex-direction: column; gap: 5px; }
.attr label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 700; }
.attr input, .attr select {
  border: 1px solid var(--line); border-radius: var(--radius-ctrl); padding: 12px; font-size: 15px;
  background: var(--surface-low); color: var(--ink); width: 100%; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.attr input:focus, .attr select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); background: #fff; }
.attr.full { grid-column: 1 / -1; }
.attr label.check-row { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 0; }
.attr label.check-row input { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }
.thumb { width: 100%; height: 200px; object-fit: contain; border-radius: var(--radius-card); margin-bottom: 14px; background: var(--surface-low); border: 1px solid var(--line); padding: 10px; }
.editable-hint { font-size: 12.5px; color: var(--primary-ink); background: var(--primary-soft); padding: 9px 12px; border-radius: var(--radius-ctrl); margin: 12px 0; display: flex; gap: 6px; }

/* ---------- Audio-Note ---------- */
.audio-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius-ctrl); background: var(--surface-low); font-size: 14px; }
.audio-row .audio-time { flex: 1; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.audio-row.recording { border-color: #e11d48; background: #fff1f3; }
.rec-dot { width: 11px; height: 11px; border-radius: 50%; background: #e11d48; flex: 0 0 auto; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.mini-spin { width: 16px; height: 16px; border: 2px solid var(--surface-c); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; flex: 0 0 auto; }
.audio-summary { font-size: 13.5px; color: var(--primary-ink); background: var(--primary-soft); padding: 10px 12px; border-radius: var(--radius-ctrl); margin-bottom: 8px; line-height: 1.45; }

/* ---------- Evidenz: Zustand dokumentieren ---------- */
.evidence { margin-bottom: 12px; }
.ev-head { font-size: 13px; font-weight: 700; color: var(--ink); margin: 4px 0 8px; }
.ev-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ev-btn { width: 100%; padding: 11px 6px; font-size: 13.5px; gap: 6px; }
.ev-btn:disabled { opacity: .45; cursor: default; }
.ev-textbox { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.ev-textbox textarea { border: 1px solid var(--line); border-radius: var(--radius-ctrl); padding: 10px; font: inherit; font-size: 14px; background: var(--surface-low); color: var(--ink); resize: vertical; }
.ev-textbox textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); background: #fff; }
.ev-textbox .btn-sm { align-self: flex-start; }
.ev-list { list-style: none; padding: 0; margin: 10px 0 0; border: 1px solid var(--line); border-radius: var(--radius-ctrl); overflow: hidden; }
.ev-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ev-item:last-child { border-bottom: none; }
.ev-thumb { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; background: var(--surface-c); }
.ev-ico { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; background: var(--surface-c); flex: 0 0 auto; }
.ev-item .ev-text { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assessing { padding: 26px 16px; }
.lottie svg { display: block; }

/* ---------- Detail head ---------- */
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.detail-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.detail-thumb { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; flex: 0 0 auto; background: var(--surface-c); border: 1px solid var(--line); }
.detail-head .title { margin: 6px 0; }
.detail-head .btn-sm { flex: 0 0 auto; }

/* ---------- Action groups (Accordion) ---------- */
.action-group { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.action-group.rec-action { border-color: var(--primary); box-shadow: 0 8px 24px rgba(16, 185, 129, .14); }
.action-head { display: flex; align-items: center; gap: 13px; width: 100%; background: none; border: none; padding: 15px; cursor: pointer; text-align: left; font-family: inherit; }
.action-head .a-emoji { width: 42px; height: 42px; border-radius: 13px; background: var(--surface-c); color: var(--ink-soft); display: grid; place-items: center; font-size: 22px; flex: 0 0 auto; }
.action-head .a-emoji .ico { width: 22px; height: 22px; }
/* Pro Aktion eine eigene Farbe – bessere Wiedererkennbarkeit */
.a-emoji.act-sell    { background: #e9e9ff; color: #4f46e5; }
.a-emoji.act-repair  { background: #e1edff; color: #2563eb; }
.a-emoji.act-lend    { background: #efe7fd; color: #7c3aed; }
.a-emoji.act-donate  { background: #fde6f0; color: #db2777; }
.a-emoji.act-dispose { background: #eef1f6; color: #5b6675; }
.action-head .a-main { flex: 1; min-width: 0; }
.action-head .a-title { display: block; font-weight: 700; font-size: 16px; }
.action-head .a-sub { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-head .a-chev { color: var(--ink-soft); font-size: 13px; flex: 0 0 auto; }
.action-body { padding: 0 15px 14px; }
.action-body .rec { box-shadow: none; }

/* ---------- Vier Entscheidungswege ---------- */
.results-intro { margin: 18px 2px 12px; }
.results-intro h3 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.results-intro p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13.5px; }
.recommendation-note {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0 2px 10px; color: var(--ink-soft); font-size: 12.5px;
}
.recommendation-note .linklike { color: var(--primary-ink); font-weight: 700; flex: 0 0 auto; }
.decision-lanes { display: grid; gap: 10px; }
.decision-lane {
  overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
}
.decision-lane.recommended { border-color: var(--primary); box-shadow: 0 8px 24px rgba(16, 185, 129, .12); }
.lane-head {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 0; background: transparent; color: var(--ink); text-align: left; font-family: inherit; cursor: pointer;
}
.lane-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto;
}
.lane-ico .ico { width: 21px; height: 21px; }
.lane-main { min-width: 0; flex: 1; display: block; }
.lane-title-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.lane-title { font-size: 15.5px; font-weight: 750; }
.lane-title-row .badge { margin: 0; font-size: 9.5px; padding: 2px 7px; }
.lane-summary {
  display: block; margin-top: 2px; color: var(--ink-soft); font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lane-head .a-chev { color: var(--ink-soft); font-size: 13px; flex: 0 0 auto; }
.lane-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.lane-section-label {
  margin: 13px 2px 7px; color: var(--ink-soft); font-size: 10.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}
.lane-option {
  padding: 12px; margin-bottom: 8px; border: 1px solid var(--line);
  border-radius: 15px; background: var(--surface-low);
}
.lane-option.featured { border-color: rgba(16, 185, 129, .5); background: #f5fffa; }
.lane-option-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lane-option-name { font-size: 14.5px; font-weight: 750; line-height: 1.3; }
.lane-option-sub { margin-top: 2px; color: var(--ink-soft); font-size: 12px; }
.lane-detail { margin-top: 7px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.4; }
.lane-reason { margin-top: 8px; font-size: 13px; line-height: 1.42; }
.lane-cta { margin-top: 10px; padding: 11px 13px; font-size: 13.5px; box-shadow: none; }
.lane-empty { padding: 14px 2px 2px; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.lane-exclusion {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
  border-radius: 12px; background: var(--warn-soft); color: #7a4a25; font-size: 12.5px;
}
.lane-exclusion b { color: var(--warn); font-size: 13px; }
.more-lane-options { margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.more-lane-toggle {
  width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px;
  border: 0; background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 700;
  cursor: pointer; text-align: left;
}
.more-lane-body { padding: 0 10px 4px; border-top: 1px solid var(--line); }
.lane-compact-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line);
}
.lane-compact-option:last-child { border-bottom: 0; }
.lane-compact-main { min-width: 0; flex: 1; }
.online-option {
  border: 1px dashed #cfd7e5; border-radius: 15px; background: #fbfcff;
  padding: 12px; margin: 8px 0;
}
.online-kicker {
  display: inline-flex; margin-bottom: 7px; padding: 2px 7px; border: 1px solid #d7dce7;
  border-radius: var(--radius-pill); color: var(--ink-soft); font-size: 9.5px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
.online-option p { margin: 0 0 8px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }

/* ---------- Empfehlungen v2 (Verdict + Hero + kompakt) ---------- */
.linklike { background: none; border: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

.verdict-banner { border-radius: var(--radius-ctrl); padding: 12px 14px; margin-bottom: 14px; }
.verdict-banner.ok { background: var(--primary-soft); }
.verdict-banner.warn { background: var(--warn-soft); }
.verdict-banner.neutral { background: var(--surface-c); }
.vb-main { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.verdict-banner.ok .vb-main { color: var(--primary-ink); }
.verdict-banner.warn .vb-main { color: var(--warn); }
.vb-sub { margin: 5px 0 0; font-size: 12.5px; color: var(--ink-soft); }

.hero-rec { border: 2px solid var(--primary); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 8px 24px rgba(16, 185, 129, .14); padding: 16px; margin-bottom: 10px; }
.hero-rec-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hero-free { font-size: 12px; color: var(--ink-soft); }
.hero-rec-name { font-size: 17px; font-weight: 700; }
.hero-rec-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.appt-box { display: flex; align-items: center; gap: 10px; background: var(--surface-low); border-radius: var(--radius-ctrl); padding: 10px 12px; margin: 12px 0; }
.appt-cal { font-size: 18px; }
.appt-head { font-size: 13.5px; font-weight: 700; }
.appt-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 1px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.chip { font-size: 11px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 9px; }
.hero-rec-cta { margin-top: 2px; }
.hero-foot { font-size: 11px; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }
.rec-hint { font-size: 12.5px; color: var(--secondary); background: #e6f7fb; border-radius: 10px; padding: 7px 10px; margin: 10px 0 4px; }
.keep { margin-top: 8px; }

.sponsor-row {
  border: 1px solid #d7dce7; border-radius: var(--radius-card); background: #fbfcff;
  box-shadow: var(--shadow-sm); padding: 14px; margin-bottom: 10px;
}
.sponsor-kicker {
  display: inline-flex; align-items: center; border: 1px solid #d7dce7; border-radius: var(--radius-pill);
  color: var(--ink-soft); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; margin-bottom: 8px;
}
.sponsor-title { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.sponsor-row p { margin: 0 0 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.sponsor-link { color: var(--primary-ink); font-size: 13.5px; font-weight: 700; text-decoration: none; }

.collapse-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); margin-bottom: 10px; overflow: hidden; }
.collapse-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: none; border: none; padding: 12px 14px; font-size: 13.5px; color: var(--ink); cursor: pointer; font-family: inherit; text-align: left; }
.collapse-row .a-chev { color: var(--ink-soft); }
.collapse-body { padding: 0 14px 12px; }
.collapse-body.checklist { padding: 2px 14px 8px; }

.compact-rec { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.compact-rec:last-child { border-bottom: none; }
.compact-main { flex: 1; min-width: 0; }
.compact-name { font-size: 14px; font-weight: 600; }
.compact-sub { font-size: 12px; color: var(--ink-soft); margin-top: 1px; }
.compact-reason { font-size: 12.5px; color: var(--ink); margin-top: 4px; }
.compact-cta { flex: 0 0 auto; color: var(--primary-ink); text-decoration: none; font-size: 16px; padding: 2px 6px; }

.self-row { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-sm); padding: 14px; margin-bottom: 14px; }
.self-ico { width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.self-ico .ico { width: 20px; height: 20px; }
.self-body { flex: 1; min-width: 0; }
.self-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.self-opt { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink); text-decoration: none; padding: 5px 0; }
.self-link { color: var(--primary-ink); }

.other-row { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 10px; overflow: hidden; }
.other-head { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: none; padding: 12px 14px; cursor: pointer; text-align: left; font-family: inherit; }
.other-ico { width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.other-ico .ico { width: 19px; height: 19px; }
.other-main { flex: 1; min-width: 0; }
.other-title { display: block; font-weight: 700; font-size: 14.5px; }
.other-sub { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.other-body { padding: 0 14px 12px; }

.excl-foot { font-size: 12px; color: var(--ink-soft); margin: 14px 0 0; line-height: 1.5; }

.why-sheet { max-height: 82vh; overflow-y: auto; }
.why-list { margin-top: 8px; }
.why-item { border-top: 1px solid var(--line); padding: 12px 0; }
.why-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.why-score { margin-left: auto; font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.why-excl { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 13px; }
.why-excl-row { color: var(--warn); font-size: 12.5px; margin-top: 6px; }
.reasons.mini li { font-size: 12.5px; margin: 3px 0; }

/* ---------- Recommendations ---------- */
.rec { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); padding: 14px; margin-bottom: 12px; }
.rec.top { border-color: var(--primary); }
.rec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rec-name { font-weight: 700; font-size: 16px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; display: inline-block; margin-top: 4px; }
.badge.top { background: var(--primary); color: #fff; }
.badge.action { background: var(--primary-soft); color: var(--primary-ink); }
.badge.lend { background: #efe7fd; color: #6d28d9; }
.badge.repair { background: #e1edff; color: #1d4ed8; }
.badge.dispose { background: #eef1f6; color: #51606b; }
.badge.donate { background: #fde6f0; color: #be1c6b; }
.badge.sell { background: #e9e9ff; color: #4338ca; }
.reasons { margin: 10px 0 0; padding: 0; list-style: none; }
.reasons li { font-size: 13.5px; color: var(--ink); padding-left: 18px; position: relative; margin: 6px 0; }
.reasons li::before { content: "›"; position: absolute; left: 4px; color: var(--primary); font-weight: 800; }
.rec-meta { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); flex-wrap: wrap; }
.rec-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.payout { color: var(--primary-deep); font-weight: 700; }
.rec .cta { margin-top: 12px; }

/* Excluded */
.excluded { background: var(--warn-soft); border: 1px dashed #e3c3a8; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.excluded .x-name { font-weight: 700; color: var(--warn); font-size: 14px; }
.excluded .x-reason { font-size: 13px; color: #7a4a25; margin-top: 2px; }

/* Trade-off */
.tradeoff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tradeoff .rec { margin: 0; }
@media (max-width: 380px) { .tradeoff { grid-template-columns: 1fr; } }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.checklist li:last-child { border-bottom: none; }
.checklist .box { width: 22px; height: 22px; border: 2px solid var(--primary); border-radius: 7px; flex: 0 0 auto; margin-top: 1px; cursor: pointer; display: grid; place-items: center; color: #fff; font-size: 13px; }
.checklist .box.done { background: var(--primary); }
.checklist li.done span { color: var(--ink-soft); text-decoration: line-through; }

.verdict { padding: 14px; border-radius: var(--radius-ctrl); margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.verdict.repairable { background: var(--primary-soft); color: var(--primary-ink); }
.verdict.unrepairable { background: var(--warn-soft); color: var(--warn); }

/* Misc */
.spinner { width: 30px; height: 30px; border: 3px solid var(--surface-c); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 36px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.banner { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-ctrl); padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.backlink { background: none; border: none; color: var(--primary-ink); font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 0; margin-bottom: 6px; font-family: inherit; }
.inv-item img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--primary-soft); flex: 0 0 auto; }
.inv-item .meta { flex: 1; min-width: 0; }
.inv-item .meta .n { font-weight: 600; font-size: 15px; }
.inv-item .meta .s { font-size: 12.5px; color: var(--ink-soft); }
.del { background: none; border: none; color: var(--ink-soft); font-size: 18px; cursor: pointer; flex: 0 0 auto; }
.foot { text-align: center; font-size: 11.5px; color: var(--ink-soft); margin-top: 18px; padding: 0 22px; }

/* ---------- Modal / Bottom-Sheet ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(11, 28, 48, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.sheet { background: var(--surface); width: 100%; max-width: var(--maxw); border-radius: 24px 24px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)); position: relative; box-shadow: 0 -8px 30px rgba(11, 28, 48, .18); animation: slideUp .25s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-close { position: absolute; top: 14px; right: 14px; background: var(--surface-low); border: none; width: 32px; height: 32px; border-radius: var(--radius-pill); color: var(--ink-soft); font-size: 15px; cursor: pointer; }
.sheet-emoji { font-size: 34px; line-height: 1; }
.sheet-title { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 10px 0 6px; }
.sheet-text { color: var(--ink-soft); font-size: 14px; margin: 0 0 16px; line-height: 1.5; }
.sheet-body.center { text-align: center; }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }

/* ---------- Bottom navigation ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--maxw); z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); height: var(--nav-h);
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: none; cursor: pointer; color: var(--ink-soft); font-family: inherit; font-size: 11px; font-weight: 600; padding: 4px 0; }
.nav-item .nav-ico { width: 46px; height: 30px; border-radius: var(--radius-pill); display: grid; place-items: center; transition: background .15s; }
.nav-item .ico { width: 22px; height: 22px; }
.nav-item.active { color: var(--primary-deep); }
.nav-item.active .nav-ico { background: var(--primary-soft); color: var(--primary-deep); }
