/* ParentRecallWatch — "Cranberry Bulletin" design system.
   A parent-facing safety bulletin: warm oat paper, deep cranberry accent,
   pinned-notice cards with severity edges, Lora display over a humanist
   system body. Light, calm, trustworthy — alert without being alarming.
   Monospace is reserved for figures (recall numbers, counts, UPCs). */

@font-face {
  font-family: 'Lora';
  src: url('/fonts/lora-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #faf6f0;        /* warm oat page ground */
  --paper-2: #f3ece2;      /* deeper oat sink */
  --card: #fffdf9;
  --well: #ffffff;

  --ink: #322229;          /* warm plum-charcoal */
  --ink-soft: #55414a;
  --muted: #79646d;        /* AA on paper */

  --line: #e8dcd6;         /* warm hairline */
  --line-2: #d9c9c2;

  --brand: #9e3648;        /* cranberry */
  --brand-deep: #822b3a;
  --brand-bright: #b04055;
  --brand-tint: #f7e7ea;   /* blush */

  --honey: #a96f24;        /* secondary accent — remedies, highlights */
  --honey-tint: #f6ecd9;
  --ok: #3e7a52;
  --ok-tint: #e4efe6;

  --sev-critical: #a52f24;  --sev-critical-tint: #f7e5e2;
  --sev-high: #b55b1f;      --sev-high-tint: #f8ebdd;
  --sev-medium: #a3822a;    --sev-medium-tint: #f6efdb;
  --sev-notice: #6d5f64;    --sev-notice-tint: #efe9ec;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; /* figures only */

  --r: 18px;
  --r-sm: 12px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(50, 34, 41, 0.05), 0 2px 5px rgba(50, 34, 41, 0.04);
  --shadow: 0 1px 2px rgba(50, 34, 41, 0.05), 0 14px 30px -18px rgba(50, 34, 41, 0.22);
  --shadow-lift: 0 2px 4px rgba(50, 34, 41, 0.06), 0 24px 52px -22px rgba(50, 34, 41, 0.3);
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
::selection { background: var(--brand); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 550;
  line-height: 1.16;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: 0.004em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-deep); }
img { max-width: 100%; height: auto; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow-wrap { max-width: 480px; margin: 0 auto; padding: 42px 20px 60px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--well); color: var(--brand-deep); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; box-shadow: var(--shadow); }
.skip-link:focus { left: 10px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.95rem/1.2 var(--sans);
  padding: 11px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.06s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-deep); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-tint); }
.btn-danger { background: var(--sev-critical); color: #fff; }
.btn-danger:hover { background: #8c261c; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mast { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; color: var(--brand); flex: none; }
.logo-word { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; letter-spacing: 0.01em; }
.logo-word em { font-style: normal; color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; flex: 1; }
.site-nav > a {
  color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: 0.93rem;
  padding: 8px 12px; border-radius: var(--r-pill);
}
.site-nav > a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav > a.active { color: var(--brand-deep); background: var(--brand-tint); }
.nav-extra { display: none; }
.mast-side { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.mast-link { color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: 0.93rem; }
.mast-link:hover { color: var(--brand-deep); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }

@media (max-width: 880px) {
  .site-nav {
    display: none;
    position: fixed; inset: 64px 0 0 0;
    background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 18px 20px; overflow: auto; z-index: 49;
  }
  .site-nav.open { display: flex; }
  .site-nav > a { font-size: 1.1rem; padding: 13px 14px; border-radius: var(--r-sm); }
  .nav-extra { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
  .nav-extra a { color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: 1.1rem; padding: 13px 14px; }
  .nav-toggle { display: block; }
  .mast-link, .mast-cta { display: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Hero ---------- */

.hero { border-bottom: 1px solid var(--line); background:
  radial-gradient(1200px 400px at 85% -10%, var(--brand-tint), transparent 60%),
  var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; padding: 58px 20px 54px; align-items: center; }
.hero-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.hero h1 { margin-bottom: 14px; }
.hero h1 em { font-style: italic; color: var(--brand-deep); }
.hero-sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 54ch; }
.hero-search { display: flex; gap: 10px; margin: 22px 0 16px; max-width: 560px; }
.hero-search input {
  flex: 1; min-width: 0; padding: 13px 16px; font-size: 1rem;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--well); color: var(--ink);
}
.hero-search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 0.88rem; }
.hero-proof strong { color: var(--ink); font-weight: 700; }
.hero-bulletin { display: grid; gap: 12px; }
.hero-bulletin .notice-card { box-shadow: var(--shadow); }
.hero-bulletin .notice-card:nth-child(2) { transform: rotate(0.4deg); }
.hero-bulletin .notice-card:nth-child(3) { transform: rotate(-0.35deg); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding: 40px 20px; }
}

/* ---------- Sections ---------- */

.section { padding: 44px 0 52px; }
.section-soft { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.section-sub { color: var(--muted); max-width: 68ch; }
.see-all { font-weight: 600; text-decoration: none; white-space: nowrap; }
.page-head { padding: 40px 0 6px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }

.how-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; }
.how-steps { padding-left: 20px; display: grid; gap: 12px; color: var(--ink-soft); }
.how-steps strong { color: var(--ink); }
.how-aside { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); }
.benefit-list { padding-left: 18px; display: grid; gap: 8px; color: var(--ink-soft); }
@media (max-width: 880px) { .how-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Notice cards (the signature component) ---------- */

.notice-list { display: grid; gap: 14px; margin-top: 18px; }
.notice-card {
  display: flex; gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--r-sm) var(--r) var(--r) var(--r-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.notice-card:hover { box-shadow: var(--shadow); }
.sevline-critical { border-left-color: var(--sev-critical); }
.sevline-high { border-left-color: var(--sev-high); }
.sevline-medium { border-left-color: var(--sev-medium); }
.sevline-notice { border-left-color: var(--sev-notice); }
.notice-thumb { flex: none; width: 92px; height: 92px; border-radius: var(--r-sm); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.notice-thumb img { width: 100%; height: 100%; object-fit: cover; }
.notice-body { min-width: 0; }
.notice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 6px; font-size: 0.82rem; color: var(--muted); }
.notice-date { white-space: nowrap; }
.notice-units { color: var(--ink-soft); }
.notice-title { font-size: 1.04rem; margin: 0 0 6px; line-height: 1.35; }
.notice-title a { color: var(--ink); text-decoration: none; }
.notice-title a:hover { color: var(--brand-deep); text-decoration: underline; }
.notice-reason { font-size: 0.86rem; color: var(--brand-deep); margin: 0 0 6px; }
.notice-excerpt { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 8px; }
.notice-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.empty-note { color: var(--muted); padding: 26px 0; }

.sev-chip {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r-pill);
}
.sev-critical { background: var(--sev-critical-tint); color: var(--sev-critical); }
.sev-high { background: var(--sev-high-tint); color: var(--sev-high); }
.sev-medium { background: var(--sev-medium-tint); color: #7d621a; }
.sev-notice { background: var(--sev-notice-tint); color: var(--sev-notice); }

.tag {
  display: inline-flex; align-items: center;
  font-size: 0.78rem; font-weight: 600;
  background: var(--paper-2); color: var(--ink-soft);
  padding: 3px 10px; border-radius: var(--r-pill);
  text-decoration: none; border: 1px solid transparent;
}
a.tag:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-tint); }
.tag-hazard { background: var(--sev-notice-tint); }
.tag-remedy { background: var(--honey-tint); color: var(--honey); }

/* ---------- Filter bar + pager ---------- */

.filter-bar { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-sm); }
.filter-q { display: flex; gap: 10px; }
.filter-q input { flex: 1; min-width: 0; padding: 11px 14px; font-size: 0.98rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--well); color: var(--ink); }
.filter-q input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin-top: 12px; }
.filter-row label { display: grid; gap: 4px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.filter-row select { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--well); color: var(--ink); font-size: 0.9rem; }
.filter-check { flex-direction: row; display: flex; align-items: center; gap: 7px; font-size: 0.85rem !important; font-weight: 500 !important; color: var(--ink-soft) !important; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.pager-link { font-weight: 600; text-decoration: none; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.pager-link:hover { border-color: var(--brand); background: var(--brand-tint); }
.pager-state { color: var(--muted); font-size: 0.88rem; }
.pager-gap { width: 90px; }

/* ---------- Growth ruler ---------- */

.growth-ruler {
  display: flex; align-items: stretch; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin-top: 20px; box-shadow: var(--shadow-sm);
}
.ruler-stop {
  flex: 1; display: flex; flex-direction: column; gap: 3px;
  padding: 18px 16px 16px; text-decoration: none; position: relative;
  border-left: 1px solid var(--line);
  background: repeating-linear-gradient(to right, transparent 0 14px, var(--line) 14px 15px) bottom / 100% 7px no-repeat;
}
.ruler-stop:first-child { border-left: 0; }
.ruler-stop:hover { background-color: var(--brand-tint); }
.ruler-tick { width: 3px; height: 22px; background: var(--brand); border-radius: 2px; margin-bottom: 4px; }
.ruler-label { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.ruler-range { font-size: 0.8rem; color: var(--muted); }
.ruler-count { font-size: 0.78rem; color: var(--brand-deep); margin-top: 2px; }
@media (max-width: 760px) {
  .growth-ruler { flex-direction: column; }
  .ruler-stop { border-left: 0; border-top: 1px solid var(--line); flex-direction: row; align-items: center; gap: 10px; background: none; }
  .ruler-stop:first-child { border-top: 0; }
  .ruler-tick { height: 3px; width: 22px; margin: 0; }
  .ruler-range { margin-left: auto; }
}

/* ---------- Hub cards ---------- */

.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 20px; }
.hub-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; text-decoration: none; color: var(--ink-soft);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.hub-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.hub-card h3 { margin-bottom: 6px; }
.hub-card p { font-size: 0.9rem; margin-bottom: 12px; }
.hub-count { font-size: 0.82rem; font-weight: 700; color: var(--brand-deep); }
.hub-watch-cta { margin-top: 26px; }

/* ---------- Recall detail ---------- */

.recall-page { border-top: 5px solid var(--line); }
.recall-page.sevline-critical { border-top-color: var(--sev-critical); }
.recall-page.sevline-high { border-top-color: var(--sev-high); }
.recall-page.sevline-medium { border-top-color: var(--sev-medium); }
.recall-page.sevline-notice { border-top-color: var(--sev-notice); }
.recall-page > .wrap { padding-top: 34px; padding-bottom: 60px; }
.recall-title { max-width: 30ch; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.recall-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 26px; }
.recall-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.recall-main { min-width: 0; }
.recall-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.recall-block h2 { font-size: 1.3rem; }
.recall-hazard { background: linear-gradient(var(--card), var(--card)) padding-box; border-left: 5px solid var(--sev-high); }
.recall-remedy { border-left: 5px solid var(--ok); }
.remedy-options { display: flex; gap: 6px; flex-wrap: wrap; }
.fact-injuries, .fact-contact { font-size: 0.92rem; color: var(--ink-soft); }
.official-link { margin: 14px 0 0; }
.recall-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.recall-images figure { margin: 0; }
.recall-images img { border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--well); }
.recall-images figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 5px; }
.img-credit { font-size: 0.78rem; color: var(--muted); margin: 10px 0 0; }
.recall-aside { position: sticky; top: 84px; display: grid; gap: 16px; }
.facts { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.fact { padding: 9px 0; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; padding-top: 0; }
.fact dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 3px 0 0; font-size: 0.92rem; color: var(--ink); overflow-wrap: anywhere; }
.aside-cta { background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); border-radius: var(--r); padding: 20px 22px; }
.aside-cta h3 { margin-bottom: 6px; }
.aside-cta p { font-size: 0.9rem; }
.share-block { text-align: center; }
@media (max-width: 880px) { .recall-grid { grid-template-columns: 1fr; } .recall-aside { position: static; } }

/* ---------- Check page ---------- */

.check-form { display: flex; gap: 10px; max-width: 640px; margin-bottom: 30px; }
.check-form input { flex: 1; min-width: 0; padding: 13px 16px; font-size: 1rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--well); color: var(--ink); }
.check-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.check-verdict { margin-top: 8px; }
.check-found { color: var(--sev-critical); }
.check-clear { color: var(--ok); }

/* ---------- Pricing console (.psel) ---------- */

.psel {
  display: grid; grid-template-columns: 310px 1fr;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow); margin-top: 24px;
}
.psel-rail { display: flex; flex-direction: column; background: var(--paper-2); padding: 18px 0; border-right: 1px solid var(--line); }
.psel-rail-h { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 20px; margin: 0 0 10px; }
.psel-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  text-align: left; padding: 15px 20px; border: 0; background: transparent;
  cursor: pointer; font: inherit; color: var(--ink-soft); position: relative;
}
.psel-opt:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.psel-opt.is-on { background: var(--card); color: var(--ink); font-weight: 600; }
.psel-opt.is-on::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--brand); }
.psel-opt-name { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); }
.psel-opt-sub { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.psel-opt-price { font-weight: 650; color: var(--brand-deep); }
.psel-badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: var(--brand); color: #fff; padding: 2px 8px; border-radius: var(--r-pill); }
.psel-detail { padding: 30px 34px; }
.psel-toggle { display: flex; gap: 10px; margin-bottom: 22px; max-width: 380px; }
.psel-toggle button {
  flex: 1; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: transparent; font: 550 0.88rem var(--sans); color: var(--ink-soft); cursor: pointer;
}
.psel-toggle button.is-on { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-deep); }
.psel-name { margin-bottom: 4px; }
.psel-blurb { color: var(--ink-soft); max-width: 56ch; }
.psel-price { margin: 16px 0 6px; display: flex; align-items: baseline; gap: 10px; }
.psel-amt { font-size: 2.1rem; font-weight: 700; color: var(--ink); }
.psel-cad { color: var(--muted); font-size: 0.9rem; }
.psel-feat { list-style: none; padding: 0; margin: 18px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 22px; }
.psel-feat li { display: flex; gap: 9px; align-items: start; color: var(--ink-soft); font-size: 0.94rem; }
.psel-feat li svg { flex: none; margin-top: 4px; color: var(--ok); }
.psel-feat li.off { color: var(--muted); }
.psel-feat li.off svg { color: var(--line-2); }
.psel-cta { max-width: 340px; margin-top: 22px; }
.psel-cta .btn, .psel-checkout button { width: 100%; }
.psel-note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 820px) {
  .psel { grid-template-columns: 1fr; }
  .psel-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .psel-rail-h { display: none; }
  .psel-opt { flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 140px; }
  .psel-opt.is-on::before { width: 100%; height: 4px; }
  .psel-feat { grid-template-columns: 1fr; }
  .psel-detail { padding: 24px 20px; }
}
.pricing-faq { max-width: 720px; margin-top: 44px; }
.pricing-faq dt { font-weight: 700; color: var(--ink); margin-top: 18px; }
.pricing-faq dd { margin: 6px 0 0; color: var(--ink-soft); }

/* ---------- Forms / auth / cards ---------- */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; font: 400 0.98rem var(--sans);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--well); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.flash { padding: 12px 16px; border-radius: var(--r-sm); font-size: 0.92rem; margin-bottom: 18px; border: 1px solid; }
.flash-ok { background: var(--ok-tint); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.flash-err { background: var(--sev-critical-tint); border-color: color-mix(in srgb, var(--sev-critical) 30%, transparent); color: var(--sev-critical); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.oauth-btns { display: grid; gap: 10px; margin-bottom: 4px; }
.btn-oauth {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px; font: 600 0.95rem var(--sans);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--well); color: var(--ink); cursor: pointer;
}
.btn-oauth:hover { border-color: var(--ink-soft); }
.btn-oauth svg { width: 18px; height: 18px; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.82rem; margin: 16px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Dashboard ---------- */

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.dash-card { padding: 22px 24px; }
.dash-card-wide { grid-column: 1 / -1; }
.dash-card-head { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.dash-card-head h2 { font-size: 1.25rem; margin-bottom: 4px; }
.dash-count { color: var(--muted); font-size: 0.85rem; }
.dash-hint { font-size: 0.86rem; color: var(--muted); margin-bottom: 12px; }
.dash-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.dash-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 0.92rem; }
.dash-empty { color: var(--muted); border-style: dashed !important; }
.dash-add { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-add input, .dash-add select { padding: 9px 11px; font-size: 0.9rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--well); color: var(--ink); }
.dash-add input { flex: 1; min-width: 130px; }
.dash-add-grid input { min-width: 110px; }
.room-head { font-size: 0.95rem; color: var(--honey); margin: 14px 0 8px; }
@media (max-width: 820px) { .dash-grid { grid-template-columns: 1fr; } }

/* ---------- Settings ---------- */

.settings-card { padding: 22px 24px; margin-bottom: 16px; }
.settings-card h2 { font-size: 1.2rem; }
.settings-form { max-width: 420px; }
.settings-hint { font-size: 0.84rem; color: var(--muted); margin: 10px 0 0; }
.settings-danger { border-color: color-mix(in srgb, var(--sev-critical) 35%, transparent); }
.settings-danger h2 { color: var(--sev-critical); }
.linked-list, .session-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.linked-list li, .session-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 0.9rem; }
.linked-name { font-weight: 600; color: var(--ink); }

/* ---------- Admin ---------- */

.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 18px; display: grid; }
.stat-n { font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.stat span:last-child { font-size: 0.78rem; color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); margin-bottom: 26px; }
.admin-table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.row-bad td { background: var(--sev-critical-tint); }

/* ---------- Prose / misc ---------- */

.prose { max-width: 720px; }
.prose h1 { margin-top: 10px; }
.prose h2 { margin-top: 30px; }
.prose ul { padding-left: 20px; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); padding: 1px 5px; border-radius: 5px; }
.hazard-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.big-404 { font-size: 4.5rem; color: var(--brand); margin: 0; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; padding: 44px 20px 26px; }
.footer-brand .logo { margin-bottom: 10px; }
.footer-tag { color: var(--ink-soft); font-size: 0.95rem; max-width: 46ch; }
.footer-fineprint { color: var(--muted); font-size: 0.8rem; max-width: 60ch; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-content: start; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--brand-deep); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding: 14px 20px; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: 0.8rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Bulletin (Care Pro print view) ---------- */

.bulletin-page { max-width: 760px; padding-top: 34px; padding-bottom: 50px; }
.bulletin-head { border-bottom: 3px solid var(--brand); margin-bottom: 22px; padding-bottom: 10px; }
.bulletin-head p { color: var(--muted); font-size: 0.9rem; }
.bulletin-item { border: 1px solid var(--line); border-left-width: 5px; border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 14px; background: var(--card); }
.bulletin-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.bulletin-meta { font-size: 0.82rem; color: var(--muted); }
.bulletin-link { font-size: 0.8rem; color: var(--brand-deep); word-break: break-all; margin: 0; }
.bulletin-foot { margin-top: 26px; color: var(--muted); font-size: 0.8rem; }

@media print {
  .site-header, .site-footer, .no-print, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .bulletin-item { break-inside: avoid; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}
