/* ==========================================================================
   DnS design system — natural, grounded, peaceful.
   Palette is Selma's "Sage Calm": deep forest green for actions and headings,
   sage and light sage for accents, a soft off-white background and warm sand
   for highlights. Serif headings, nature imagery (leaves, mountains, sunsets).
   ========================================================================== */
:root {
  /* Sage Calm swatches */
  --forest: #2E4A3F;
  --sage: #7A8F7E;
  --sage-light: #C9D4C7;
  --mist: #F5F7F2;
  --sand: #E8DDD1;

  /* Roles (names kept from the first design so templates keep working) */
  --cream: var(--mist);
  --cream-2: #ECF0EA;
  --blush: var(--sand);
  --blush-2: #DCCFC0;
  --rose: var(--sage);
  --rose-deep: #5F7466;
  --ink: #1F2E28;
  --green: var(--forest);
  --green-2: #3B5C4F;
  --muted: #6B7A72;
  --line: #DCE3DA;
  --white: #FFFFFF;
  --danger: #B3423E;
  --danger-bg: #FBEAE9;
  --success: #2F6B4F;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 34px rgba(46, 74, 63, 0.12);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 8px; color: var(--ink); }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- App frame: full-bleed on phones, a framed "device" on larger screens --- */
.app {
  position: relative;
  max-width: 440px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--cream);
  display: flex;
  flex-direction: column;
}
@media (min-width: 720px) {
  body { background: var(--sage-light); padding: 28px 16px; }
  .app {
    min-height: calc(100dvh - 56px);
    border-radius: 38px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(46,74,63,.10);
    overflow: hidden;
  }
  .hero { min-height: calc(100dvh - 56px); }
}

/* --- Top bar --- */
.topbar, .wizard-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 6px;
  min-height: 56px;
}
.topbar-brand { text-decoration: none; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink); text-decoration: none; background: transparent; border: 0; cursor: pointer;
}
.icon-btn:hover { background: var(--cream-2); }
.icon-btn.placeholder { visibility: hidden; }
.icon-btn .icon { width: 22px; height: 22px; }
.dot-badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--rose-deep); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.link { color: var(--green); font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* --- Logo --- */
.logo { display: inline-flex; align-items: flex-start; gap: 4px; line-height: 1; text-decoration: none; color: var(--ink); }
.logo-word { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.logo-leaf { flex: none; }
.logo-sm .logo-word { font-size: 28px; }
.logo-sm .logo-leaf { width: 18px; height: 18px; margin-top: 2px; }
.logo-md .logo-word { font-size: 44px; }
.logo-md .logo-leaf { width: 26px; height: 26px; }
.logo-lg { flex-wrap: wrap; }
.logo-lg .logo-word { font-size: 64px; }
.logo-lg .logo-leaf { width: 40px; height: 40px; margin-top: 4px; }
.logo-tagline { flex-basis: 100%; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); margin-top: 4px; }

/* --- Screens --- */
.screen { flex: 1; padding: 8px 22px calc(28px + var(--safe-bottom)); display: flex; flex-direction: column; }
.screen.with-nav { padding-bottom: calc(24px + var(--safe-bottom)); }
.screen.centered { justify-content: center; text-align: center; }
.title { margin-bottom: 6px; }
.lede { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-deep); font-weight: 600; margin-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.spacer { flex: 1; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }

/* --- Wizard progress dots --- */
.dots { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; align-items: center; }
.dots li { width: 8px; height: 8px; border-radius: 50%; background: var(--line); position: relative; }
.dots li.is-done { background: var(--green); }
.dots li.is-current { background: var(--green); box-shadow: 0 0 0 4px rgba(46,74,63,.12); }
.dots li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 10px; height: 1px; background: var(--line); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 12px 20px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .06s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); }
.btn-secondary { background: var(--blush); color: var(--green); border-color: var(--blush-2); }
.btn-secondary:hover { background: var(--blush-2); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; width: auto; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.actions-row { display: flex; gap: 10px; }
.actions-row .btn { flex: 1; }

/* --- Forms --- */
form { margin: 0; }
.field { margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 128px; gap: 10px; }
.field-row .field { min-width: 0; }
.field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field-control { position: relative; }
.field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: flex; }
.field-icon .icon { width: 18px; height: 18px; }
.field input:not([type=checkbox]):not([type=radio]),
.field select,
.field textarea,
.select select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  color: var(--ink); font: 15px/1.4 var(--sans); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none; -webkit-appearance: none;
}
.field.has-icon input:not([type=checkbox]):not([type=radio]), .field.has-icon select { padding-left: 44px; }
.field.has-icon textarea { padding-left: 14px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus, .select select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,74,63,.10); }
.field input::placeholder, .field textarea::placeholder { color: #9AA5A2; }
.field input[type=date] { color: var(--ink); }
.field input[type=date]:invalid, .field input[type=date].empty { color: #9AA5A2; }
.field select:has(option[value=""]:checked) { color: #9AA5A2; }
.field select, .select select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7A72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-help { font-size: 12.5px; color: var(--muted); margin: 6px 2px 0; }
.field-error { font-size: 13px; color: var(--danger); margin: 6px 2px 0; }
.form-errors { background: var(--danger-bg); color: var(--danger); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.form-errors p { margin: 0; }
.question { font-weight: 500; font-size: 15px; margin: 18px 0 8px; }

/* Radio cards */
.radio-cards { display: flex; flex-direction: column; gap: 10px; }
.radio-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  cursor: pointer; font-size: 15px; transition: border-color .15s ease, background .15s ease;
}
.radio-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #B8C0BD; position: relative; }
.radio-card:has(input:checked) { border-color: var(--green); background: var(--cream-2); }
.radio-card:has(input:checked) .radio-dot { border-color: var(--green); }
.radio-card:has(input:checked) .radio-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--green); }
.radio-card:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(46,74,63,.15); }

/* Checkbox rows */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-field { margin: 14px 0; }
.check-row { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; cursor: pointer; line-height: 1.4; }
.check-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 2px solid #B8C0BD; background: var(--white); position: relative; }
.check-row:has(input:checked) .check-box { background: var(--green); border-color: var(--green); }
.check-row:has(input:checked) .check-box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-row:has(input:focus-visible) .check-box { box-shadow: 0 0 0 3px rgba(46,74,63,.15); }
.check-field.has-error .check-box { border-color: var(--danger); }

/* Upload zone */
.upload-zone { border: 1.5px dashed var(--line); border-radius: 12px; background: var(--white); padding: 18px 14px; text-align: center; position: relative; }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload-zone .icon { width: 26px; height: 26px; color: var(--muted); }
.upload-zone p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.upload-files { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--green); text-align: left; }

.reveal-btn { background: none; border: 0; color: var(--green); font: 500 14px var(--sans); padding: 4px 0; cursor: pointer; display: flex; gap: 8px; align-items: baseline; text-align: left; }
.reveal-btn small { color: var(--muted); font-weight: 400; }

/* --- Cards / lists --- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.card + .card { margin-top: 12px; }
.card-blush { background: var(--blush); border-color: var(--blush-2); }
.card-green { background: var(--green); color: #fff; border-color: var(--green); }
.card-green h2, .card-green h3 { color: #fff; }
.card-green .muted { color: rgba(255,255,255,.75); }
.card h3 { margin-bottom: 4px; }
.list { list-style: none; margin: 0; padding: 0; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.list-item:last-child { border-bottom: 0; }
.list-item .icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item strong { display: block; font-weight: 600; font-size: 15px; }
.list-item span.small { display: block; }
.list-item.is-unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rose-deep); margin-right: 8px; vertical-align: middle; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--cream-2); color: var(--muted); }
.badge-green { background: #E3ECE4; color: var(--success); }
.badge-rose { background: var(--blush); color: var(--rose-deep); }
.badge-amber { background: #FBF0DC; color: #8A5A10; }
.dl { margin: 0; }
.dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.dl div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; text-align: right; font-weight: 500; }
.prose p { margin-bottom: 12px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.quote { border-left: 3px solid var(--sage); padding: 4px 0 4px 14px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); }

/* Feature strip (Learn more) */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 13.5px; }
.feature .icon { width: 24px; height: 24px; color: var(--rose-deep); margin-bottom: 8px; }
.feature strong { display: block; margin-bottom: 2px; }

/* --- Welcome hero --- */
.hero-screen { padding: 0; }
.hero {
  position: relative; flex: none; min-height: 100dvh; display: flex; flex-direction: column;
  padding: 24px 26px calc(34px + var(--safe-bottom));
  background: linear-gradient(180deg, var(--mist) 0%, #EEF1EA 40%, var(--sand) 100%);
  overflow: hidden;
}
.hero > * { position: relative; }
/* Nature scene drawn in SVG (sunset over sage mountains) until Selma's photo is dropped in as hero.jpg */
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-image { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245,247,242,.96) 0%, rgba(245,247,242,.84) 30%, rgba(245,247,242,0) 50%, rgba(46,74,63,.10) 70%, rgba(31,46,40,.70) 100%); }
.hero-top { text-align: center; }
.hero-top .logo { justify-content: center; margin-top: 6px; }
.hero-top .logo-tagline { text-align: center; }
.hero-rule { width: 120px; height: 1px; border: 0; background: var(--sage); margin: 18px auto 16px; opacity: .8; }
.hero-slogan { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.3; color: var(--forest); margin: 0; }
.hero-copy { margin-top: auto; color: #fff; }
.hero .btn-primary { margin-top: 8px; background: rgba(46,74,63,.92); border-color: rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.hero .btn-primary:hover { background: var(--forest); }
.hero .btn-light { margin-top: 10px; background: rgba(245,247,242,.88); color: var(--forest); border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.hero .btn-light:hover { background: var(--mist); }
.hero-alt { margin-top: 12px; text-align: center; font-size: 14px; color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(31,46,40,.35); }
.hero-alt a { color: #fff; font-weight: 600; }
.hero-more { display: flex; justify-content: center; margin: 14px auto 0; width: 36px; height: 36px; color: rgba(255,255,255,.85); }
.hero-more .icon { width: 22px; height: 22px; transform: rotate(90deg); }
.hero-leaves { position: absolute; right: -40px; bottom: 120px; width: 260px; opacity: .55; pointer-events: none; }

/* Reporter welcome (light variant) */
.hero-light { background: linear-gradient(180deg, var(--mist) 0%, var(--sage-light) 100%); color: var(--ink); }
.hero-light .hero-copy { color: var(--ink); }
.hero-light .hero-copy h1 { color: var(--ink); font-weight: 600; font-size: 34px; margin-bottom: 18px; }
.hero-light .hero-alt, .hero-light .hero-alt a { color: var(--forest); text-shadow: none; }

/* Sand "thank you"/complete screens */
.blush-screen { background: var(--blush); padding-top: 60px; }
.blush-screen .check-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--sage); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.blush-screen .check-circle .icon { width: 34px; height: 34px; stroke-width: 2.4; }
.blush-screen h1 { font-size: 36px; margin-bottom: 8px; }
.blush-screen .big { font-family: var(--serif); font-size: 22px; margin: 18px 0; }
.blush-screen .leaf-big { width: 120px; margin: 20px auto; opacity: .9; }

/* Report gate (View now / later / never) */
.gate-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--sage-light); color: var(--forest); display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.gate-icon .icon { width: 32px; height: 32px; }
.btn-quiet { color: var(--muted); font-weight: 500; min-height: 44px; }
.btn-quiet:hover { color: var(--danger); }

/* Status hero on dashboard */
.status { display: flex; align-items: center; gap: 14px; }
.status-icon { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.status-icon .icon { width: 24px; height: 24px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat strong { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* Install hint */
.install-hint { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.install-hint .icon { width: 20px; height: 20px; color: var(--rose-deep); flex: none; margin-top: 2px; }
.install-hint button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }

/* --- Photos --- */
.inline-form { display: inline; margin: 0; }
.photo-field { margin: 4px 0 16px; }
.photo-pick { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.photo-pick input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-preview { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--blush) center/cover no-repeat; border: 2px solid var(--blush-2); display: inline-flex; align-items: center; justify-content: center; color: var(--rose-deep); }
.photo-preview .icon { width: 28px; height: 28px; }
.photo-text strong { display: block; font-size: 15px; }
.photo-field.has-error .photo-preview { border-color: var(--danger); }
.hello { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hello-name { margin: 0; font-family: var(--serif); font-size: 20px; color: var(--forest); }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blush) center/cover no-repeat; border: 2px solid var(--blush-2); display: inline-flex; align-items: center; justify-content: center; color: var(--rose-deep); }
.avatar .icon { width: 20px; height: 20px; }
.photo-large { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; }
.photo-compare { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.photo-missing { display: flex; align-items: center; justify-content: center; background: var(--cream-2); color: var(--muted); font-size: 12px; }

/* --- Conversation --- */
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.bubble p { margin: 0 0 4px; font-size: 15px; }
.bubble.mine { align-self: flex-end; background: var(--green); color: #fff; border-color: var(--green); border-bottom-right-radius: 4px; }
.bubble.mine .muted { color: rgba(255,255,255,.7); }
.bubble.theirs { align-self: flex-start; border-bottom-left-radius: 4px; }
.card h3 .icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }

/* --- Topics --- */
.topic-list { gap: 12px; }
.topic .check-row strong { font-weight: 600; }
.topic-detail { margin: 8px 0 0 32px; }
.topic-detail textarea { min-height: 64px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--blush); color: var(--ink); font-size: 12.5px; font-weight: 500; }
.chip-warn { background: #FBF0DC; color: #8A5A10; }
.chip-danger { background: var(--danger-bg); color: var(--danger); }

/* --- Toasts --- */
.toasts { position: sticky; top: 8px; z-index: 20; padding: 0 16px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--green); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); transition: opacity .5s ease, transform .5s ease; }
.toast-error { background: var(--danger); }
.toast-success { background: var(--success); }
.toast.is-hiding { opacity: 0; transform: translateY(-6px); }

/* --- Bottom nav --- */
.bottom-nav {
  position: sticky; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(245,247,242,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + var(--safe-bottom));
}
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 500; border-radius: 10px; }
.bottom-nav a .icon { width: 22px; height: 22px; }
.bottom-nav a.is-active { color: var(--green); }
.nav-dot { position: absolute; top: 6px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--rose-deep); }

/* --- Review queue (staff) --- */
.queue-item { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.queue-item:last-child { border-bottom: 0; }
.queue-item .row { display: flex; align-items: center; gap: 10px; }
.queue-item .row .grow { flex: 1; min-width: 0; }
.queue-item .arrow { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; }
.review-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.review-table th, .review-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.review-table th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare .card { padding: 14px; margin-top: 0; }
.compare h3 { font-size: 15px; }
.compare .dl div { font-size: 13px; flex-direction: column; gap: 0; align-items: flex-start; }
.compare .dl dd { text-align: left; }
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.evidence-grid a { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); text-decoration: none; color: var(--ink); font-size: 12px; }
.evidence-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.evidence-grid .doc { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; gap: 6px; padding: 8px; text-align: center; word-break: break-word; }
.evidence-grid .doc .icon { width: 26px; height: 26px; color: var(--muted); }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin-top: 26px; }
.footer-links a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* --- Public homepage (sections below the welcome hero) --- */
.landing { padding: 30px 22px; background: var(--cream); }
.landing-alt { background: var(--cream-2); }
.landing-title { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.3; color: var(--forest); margin: 0 0 8px; }
.landing .features { margin: 6px 0 0; }
.landing .card .btn { margin-top: 12px; }
.steps { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.steps strong { display: block; margin-bottom: 2px; color: var(--forest); }
.step-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sage-light); color: var(--forest); font-family: var(--serif); font-size: 16px; display: flex; align-items: center; justify-content: center; }
.landing-contact { text-align: center; padding-bottom: calc(30px + var(--safe-bottom)); background: var(--sage-light); }
.landing-contact .footer-links { margin-top: 18px; color: var(--forest); }
.landing-contact .footer-links a { color: var(--forest); }
.landing-copy { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
