:root {
  --ink: #17231f;
  --muted: #68716d;
  --paper: #f5f2ea;
  --paper-2: #ede8dd;
  --surface: #ffffff;
  --surface-soft: #f8f6f1;
  --forest: #183f31;
  --forest-2: #245541;
  --sage: #789180;
  --sage-soft: #e7eee8;
  --gold: #c69d4c;
  --gold-2: #e0bd70;
  --gold-soft: #f5edd9;
  --rose: #97443d;
  --rose-soft: #f6e7e4;
  --blue: #607e94;
  --blue-soft: #e8eef2;
  --line: #d8d3c9;
  --shadow: 0 18px 55px rgba(18, 35, 28, .12);
  --shadow-soft: 0 8px 24px rgba(18, 35, 28, .08);
  --radius: 20px;
  --radius-sm: 12px;
  --sidebar: 286px;
  --topbar: 78px;
  --text-scale: 1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: calc(16px * var(--text-scale)); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.45; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
img { max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; background: white; color: var(--forest); padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.prototype-ribbon { pointer-events: none; position: fixed; top: 0; left: 0; right: 0; height: 28px; z-index: 90; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--rose); color: white; font-size: .72rem; letter-spacing: .06em; }
.prototype-ribbon strong { font-weight: 800; }
.prototype-ribbon span { opacity: .9; }

.topbar { position: fixed; top: 28px; left: 0; right: 0; height: var(--topbar); z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; background: rgba(15, 28, 23, .97); color: white; border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(20px); }
.brand-lockup { display: flex; align-items: center; gap: 16px; min-width: 260px; }
.brand-lockup img { width: 176px; height: auto; display: block; }
.brand-lockup > div { border-left: 1px solid rgba(255,255,255,.2); padding-left: 15px; display: flex; flex-direction: column; }
.brand-lockup strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.avatar-button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: linear-gradient(135deg, var(--gold), #85584e); color: white; font-weight: 800; }
.icon-button, .quiet-button { border: 0; background: transparent; color: inherit; }
.quiet-button { min-height: 42px; padding: 0 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.quiet-button svg { width: 18px; height: 18px; }
.quiet-button:hover, .quiet-button[aria-pressed="true"] { background: rgba(255,255,255,.1); }
.quiet-button.dark { border-color: rgba(23,35,31,.2); color: var(--ink); }
.mobile-menu-button { display: none; width: 44px; height: 44px; }
.mobile-menu-button svg { width: 24px; }

.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; padding-top: calc(28px + var(--topbar)); }
.sidebar { position: fixed; top: calc(28px + var(--topbar)); left: 0; bottom: 0; width: var(--sidebar); padding: 22px 18px; background: #11251d; color: white; overflow-y: auto; z-index: 70; }
.profile-card { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.04); }
.profile-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1a241f; font-weight: 900; flex: none; }
.profile-card > div:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile-card strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-status { font-size: .72rem; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 6px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #74bf86; box-shadow: 0 0 0 4px rgba(116,191,134,.12); }
.side-nav { display: grid; gap: 4px; margin: 20px 0; }
.nav-item { width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: rgba(255,255,255,.72); display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 9px; text-align: left; font-weight: 700; }
.nav-item svg { width: 22px; height: 22px; }
.nav-item:hover { color: white; background: rgba(255,255,255,.05); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(198,157,76,.22), rgba(198,157,76,.06)); box-shadow: inset 3px 0 0 var(--gold); }
.nav-badge { font-size: .65rem; padding: 2px 6px; border-radius: 999px; background: rgba(198,157,76,.2); color: var(--gold-2); }
.sidebar-help { margin-top: 26px; padding: 15px; border-radius: 14px; background: rgba(151,68,61,.16); border: 1px solid rgba(255,255,255,.08); display: grid; gap: 8px; }
.sidebar-help strong { font-size: .82rem; line-height: 1.35; }
.version-label { margin: 20px 4px 10px; font-size: .68rem; color: rgba(255,255,255,.4); }

main { grid-column: 2; min-width: 0; padding: 28px; }
.view { display: none; animation: viewIn .28s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.eyebrow, .muted-label { display: block; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow.gold { color: var(--gold); }
.eyebrow.red { color: var(--rose); }
.light-label { color: rgba(255,255,255,.65); }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { font-size: clamp(2.6rem, 5vw, 5.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.02em; }
h3 { font-size: 1.15rem; }
p { margin: 0; }

.hero-card { position: relative; min-height: 510px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); color: white; }
.hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,24,18,.93) 0%, rgba(9,24,18,.72) 43%, rgba(9,24,18,.12) 78%), linear-gradient(0deg, rgba(9,24,18,.42), transparent 50%); }
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 68px 64px 110px; }
.hero-kicker { display: block; margin-bottom: 18px; color: var(--gold-2); font-size: .74rem; font-weight: 900; letter-spacing: .18em; }
.hero-content h1 { max-width: 620px; }
.hero-content p { margin-top: 22px; max-width: 610px; font-size: 1.12rem; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-status-card { position: absolute; z-index: 3; right: 28px; bottom: 28px; width: min(320px, calc(100% - 56px)); padding: 18px 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(14,30,23,.75); backdrop-filter: blur(14px); display: grid; gap: 3px; }
.hero-status-card strong { font-size: 1.15rem; }
.hero-status-card > span:last-child { font-size: .8rem; color: rgba(255,255,255,.68); }

.primary-button, .secondary-button { min-height: 46px; border-radius: 10px; padding: 0 18px; font-weight: 800; transition: .18s ease; }
.primary-button { border: 1px solid var(--gold); background: var(--gold); color: #172019; box-shadow: 0 6px 18px rgba(198,157,76,.22); }
.primary-button:hover { transform: translateY(-1px); background: var(--gold-2); }
.secondary-button { border: 1px solid #c9c3b7; background: white; color: var(--forest); }
.secondary-button:hover { border-color: var(--forest); transform: translateY(-1px); }
.secondary-button.light { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35); color: white; }
.secondary-button.small { min-height: 38px; padding: 0 12px; font-size: .78rem; }
.primary-button.full, .secondary-button.full { width: 100%; }
.primary-button.large { min-height: 56px; font-size: 1rem; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; text-align: left; }
.text-button.centered { text-align: center; width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

.urgent-bar { margin: 18px 0 28px; padding: 14px 16px; border: 1px solid #e2c2bd; border-radius: 14px; background: var(--rose-soft); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.urgent-bar > div { display: flex; align-items: center; gap: 12px; }
.urgent-bar svg { width: 28px; height: 28px; color: var(--rose); flex: none; }
.urgent-bar div div { display: grid; }
.urgent-bar span { color: #74504b; font-size: .82rem; }

.section-heading { margin: 50px 0 22px; display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.compact-heading { margin-top: 16px; align-items: center; }
.section-heading p { max-width: 720px; margin-top: 8px; color: var(--muted); }
.readiness-ring { display: grid; place-items: center; width: 108px; height: 108px; position: relative; flex: none; }
.readiness-ring svg { position: absolute; width: 100%; height: 100%; transform: rotate(-90deg); }
.readiness-ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: #ded9cf; }
.ring-progress { stroke: var(--gold); stroke-dasharray: 113.1; stroke-dashoffset: 70.1; }
.readiness-ring > div { display: grid; text-align: center; }
.readiness-ring strong { font-size: 1.25rem; }
.readiness-ring span { font-size: .68rem; color: var(--muted); }

.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.phase-card { position: relative; min-height: 220px; padding: 22px; border-radius: 18px; color: white; box-shadow: var(--shadow-soft); overflow: hidden; cursor: pointer; transition: .2s ease; }
.phase-card:hover, .phase-card:focus { transform: translateY(-3px); outline: none; }
.phase-card::after { content:""; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -45px; top: -60px; }
.phase-one { background: #183f31; }
.phase-two { background: #4d6858; }
.phase-three { background: #c5a156; color: #17231f; }
.phase-top { display: flex; justify-content: space-between; gap: 10px; font-size: .66rem; font-weight: 900; letter-spacing: .12em; }
.phase-state { opacity: .7; }
.phase-card h3 { margin-top: 44px; font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; }
.phase-card p { margin-top: 6px; opacity: .75; }
.mini-progress { height: 5px; margin-top: 22px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.mini-progress span { display: block; height: 100%; border-radius: inherit; background: white; }
.phase-three .mini-progress { background: rgba(23,35,31,.15); }
.phase-three .mini-progress span { background: var(--forest); }
.phase-next { display: block; margin-top: 12px; font-size: .78rem; }

.dashboard-grid, .work-grid { display: grid; gap: 18px; }
.dashboard-grid { grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); margin-top: 18px; }
.work-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { background: var(--surface); border: 1px solid rgba(23,35,31,.08); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 24px; }
.panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.panel-heading h3 { margin-top: 4px; }
.panel-heading p { margin-top: 6px; color: var(--muted); }
.panel-intro { color: var(--muted); margin-bottom: 16px; }
.progress-pill { min-width: 50px; height: 34px; border-radius: 999px; background: var(--gold-soft); color: #72591f; display: grid; place-items: center; font-weight: 900; }
.checklist { display: grid; gap: 8px; margin-bottom: 20px; }
.checklist label, .supply-groups label { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid #e5e0d7; border-radius: 12px; background: var(--surface-soft); cursor: pointer; }
.checklist input, .supply-groups input { width: 21px; height: 21px; accent-color: var(--forest); flex: none; margin-top: 1px; }
.checklist label:has(input:checked) { background: var(--sage-soft); border-color: #c4d5c8; }
.checklist span, .supply-groups span { display: grid; }
.checklist small, .supply-groups small { color: var(--muted); margin-top: 2px; }

.field-label { display: grid; gap: 6px; margin-bottom: 14px; font-size: .72rem; font-weight: 900; letter-spacing: .04em; color: #53605a; }
.field-label input, .field-label textarea, textarea, input, select { border: 1px solid #d6d1c7; background: #fbfaf7; color: var(--ink); border-radius: 10px; padding: 11px 12px; min-height: 44px; width: 100%; font-weight: 500; letter-spacing: normal; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 3px solid rgba(198,157,76,.35); outline-offset: 2px; border-color: var(--gold); }
.field-grid { display: grid; gap: 12px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-rule { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--sage-soft); display: grid; gap: 3px; }
.contact-rule span { color: #52665a; font-size: .78rem; }

.care-system-preview { margin-top: 18px; padding: 10px 0 0; }
.care-map { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.care-map article { min-height: 150px; padding: 22px; background: white; border: 1px solid rgba(23,35,31,.08); border-radius: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; box-shadow: var(--shadow-soft); }
.care-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.care-icon.clinical { background: var(--blue-soft); color: #3f657b; }
.care-icon.homecare { background: var(--sage-soft); color: var(--forest); }
.care-map h3 { margin: 4px 0 7px; }
.care-map p { color: var(--muted); font-size: .82rem; }
.count-badge { width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-weight: 900; }
.care-connector { display: flex; align-items: center; gap: 7px; color: var(--gold); font-size: .7rem; writing-mode: vertical-rl; }
.care-connector span { width: 1px; height: 28px; background: var(--gold); }

.navigator-panel { margin-top: 18px; padding: 28px; border-radius: 22px; background: #10231b; color: white; box-shadow: var(--shadow); }
.navigator-head { display: flex; gap: 16px; align-items: flex-start; }
.navigator-mark { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), #8f604b); font-weight: 900; color: #17231f; }
.navigator-head p { margin-top: 6px; color: rgba(255,255,255,.62); }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 14px; }
.prompt-chips button { min-height: 38px; padding: 0 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.05); color: white; }
.prompt-chips button:hover { background: rgba(255,255,255,.11); }
.navigator-response { min-height: 150px; padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.04); }
.response-placeholder { min-height: 112px; display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.68); }
.response-placeholder small { max-width: 560px; }
.response-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.response-block { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.response-block span { display: inline-block; margin-bottom: 6px; }
.response-block p { color: rgba(255,255,255,.8); font-size: .82rem; }
.navigator-input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }
.navigator-input-row input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: white; }
.navigator-input-row input::placeholder { color: rgba(255,255,255,.45); }

.page-hero { padding: 48px; border-radius: 24px; background: #173d30; color: white; box-shadow: var(--shadow); }
.page-hero h1 { margin-top: 10px; max-width: 1000px; font-size: clamp(2.5rem, 5vw, 5rem); }
.page-hero p { margin-top: 16px; max-width: 850px; color: rgba(255,255,255,.72); font-size: 1.05rem; }
.small-page-hero { background: linear-gradient(135deg, #173d30, #285644); }
.activation-hero { background: radial-gradient(circle at 85% 20%, rgba(198,157,76,.32), transparent 28%), linear-gradient(135deg, #112b22, #244a3a); }
.room-page-hero { background: radial-gradient(circle at 90% 10%, rgba(198,157,76,.32), transparent 28%), linear-gradient(135deg, #203b31, #6e7867); }
.trail-hero { background: linear-gradient(135deg, #1a3b2f, #6f6b4f); }
.status-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.status-legend.compact { margin: 20px 0; }
.status-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 3px 8px; border-radius: 999px; font-size: .62rem; font-weight: 900; letter-spacing: .07em; white-space: nowrap; }
.status-chip.confirmed { background: var(--sage-soft); color: #315a42; }
.status-chip.preference { background: var(--gold-soft); color: #72581e; }
.status-chip.verify { background: var(--blue-soft); color: #456478; }
.status-chip.unresolved { background: var(--rose-soft); color: var(--rose); }
.status-chip.neutral { background: #eceae4; color: #6a6c67; }

.stepper { max-width: 700px; margin: 30px auto; display: flex; align-items: center; justify-content: center; }
.stepper span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: white; border: 1px solid var(--line); font-weight: 900; box-shadow: var(--shadow-soft); }
.stepper span small { position: absolute; transform: translateY(42px); font-size: .64rem; color: var(--muted); }
.stepper span.active { background: var(--forest); color: white; border-color: var(--forest); }
.stepper i { width: 78px; height: 2px; background: var(--line); }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 20px; align-items: start; }
.guided-form { padding: 30px; }
.form-section { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.form-section.spaced { margin-top: 36px; }
.step-number { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: white; font-weight: 900; flex: none; }
.form-section p { margin-top: 5px; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.choice-card { position: relative; min-height: 126px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); display: grid; place-items: center; text-align: center; gap: 8px; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:checked) { border-color: var(--forest); background: var(--sage-soft); box-shadow: inset 0 0 0 2px var(--forest); }
.choice-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: white; border: 1px solid var(--line); font-weight: 900; }
.stacked-choices { display: grid; gap: 8px; }
.stacked-choices label { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.stacked-choices input { width: 20px; height: 20px; accent-color: var(--forest); flex: none; }
.stacked-choices label:has(input:checked) { background: var(--sage-soft); border-color: #9ab19f; }
.stacked-choices span { display: grid; }
.stacked-choices small { color: var(--muted); }
.need-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-bottom: 24px; }
.need-grid label { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.need-grid label:has(input:checked) { background: var(--gold-soft); border-color: var(--gold); }
.need-grid input { width: 19px; height: 19px; accent-color: var(--forest); }
.path-result { position: sticky; top: calc(28px + var(--topbar) + 20px); }
.path-result h2 { margin: 8px 0 12px; }
.path-result > p { color: var(--muted); }
.result-route { display: grid; gap: 10px; margin: 22px 0; }
.result-route > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-soft); }
.result-route > div > span { grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: white; font-weight: 900; }
.result-route small { color: var(--muted); }

.pass-tabs { display: grid; grid-template-columns: repeat(3,1fr); margin: 20px 0; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); }
.pass-tabs button { min-height: 92px; padding: 14px; border: 0; border-right: 1px solid var(--line); background: white; color: var(--ink); display: grid; gap: 2px; text-align: left; }
.pass-tabs button:last-child { border-right: 0; }
.pass-tabs button span { font-size: .64rem; font-weight: 900; letter-spacing: .12em; color: var(--muted); }
.pass-tabs button small { color: var(--muted); }
.pass-tabs button.active { background: var(--forest); color: white; }
.pass-tabs button.active span, .pass-tabs button.active small { color: rgba(255,255,255,.7); }
.pass-panel { display: none; }
.pass-panel.active { display: block; animation: viewIn .25s ease; }
.pass-intro { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin: 34px 0 18px; }
.big-number { font-family: Georgia, serif; font-size: 4rem; color: var(--gold); }
.pass-intro p { color: var(--muted); margin-top: 7px; }
.schedule-panel { margin-top: 18px; }
.responsive-table { width: 100%; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.table-row { display: grid; border-bottom: 1px solid var(--line); background: white; }
.table-row:last-child { border-bottom: 0; }
.table-head { background: var(--forest); color: white; font-size: .72rem; font-weight: 900; }
.table-row > * { min-width: 0; padding: 10px; border-right: 1px solid var(--line); }
.table-row > *:last-child { border-right: 0; }
.table-row input, .table-row select { border: 0; border-radius: 0; min-height: 42px; background: transparent; padding: 7px; }
.first-night-table .table-row { grid-template-columns: .85fr 1.2fr 1.2fr 1.1fr .8fr; }
.callout { margin-top: 14px; padding: 14px; border-radius: 12px; display: grid; gap: 3px; }
.callout.sage { background: var(--sage-soft); color: #3e5d4c; }
.callout.rose { background: var(--rose-soft); color: #74413c; }
.gold-callout { background: var(--gold-soft); color: #6d571f; }
.pass-footer { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0 10px; }
.equipment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.equipment-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.equipment-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: white; border: 1px solid var(--line); font-size: .67rem; font-weight: 900; color: var(--forest); }
.equipment-item div { display: grid; }
.equipment-item small { color: var(--muted); }
.equipment-item select { width: 112px; }
.supply-groups { display: grid; gap: 8px; }
.review-sliders { display: grid; gap: 15px; }
.review-sliders label { display: grid; grid-template-columns: 1fr 160px 76px; gap: 10px; align-items: center; }
.review-sliders input { padding: 0; accent-color: var(--forest); }
.review-sliders span { font-size: .75rem; color: var(--muted); text-align: right; }
.cost-calculator { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.cost-calculator label { display: grid; gap: 5px; font-size: .72rem; font-weight: 800; }
.cost-result { grid-column: 1 / -1; padding: 18px; border-radius: 14px; background: var(--gold-soft); display: grid; text-align: center; }
.cost-result strong { font-family: Georgia, serif; font-size: 2.4rem; color: #6f561b; }
.cost-result small { color: #735f32; }
.next-decision-panel { margin-top: 18px; }
.decision-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 18px 0; }
.decision-grid label { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.decision-grid input { position: absolute; opacity: 0; }
.decision-grid label:has(input:checked) { background: var(--sage-soft); border-color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); }
.decision-grid span { display: grid; }
.decision-grid small { color: var(--muted); }

.team-map-large { display: grid; grid-template-columns: 1fr .72fr 1fr; gap: 18px; margin-top: 20px; align-items: stretch; }
.team-column, .coordinator-column { min-width: 0; }
.team-column { background: white; border-radius: 20px; padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.team-column-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.team-column-head h2 { margin-top: 4px; font-size: 1.8rem; }
.person-list { display: grid; gap: 8px; margin-bottom: 14px; }
.person-card { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.person-card span { color: var(--muted); font-size: .78rem; }
.person-card button { grid-row: 1 / 3; grid-column: 2; align-self: center; border: 0; background: transparent; color: var(--rose); font-size: 1.2rem; }
.coordinator-column { display: grid; place-items: center; position: relative; }
.coordinator-orbit { position: absolute; width: 210px; height: 210px; border: 1px dashed rgba(198,157,76,.65); border-radius: 50%; }
.coordinator-card { position: relative; z-index: 2; width: 100%; max-width: 300px; padding: 22px; border-radius: 20px; background: #11291f; color: white; box-shadow: var(--shadow); }
.coordinator-card h2 { margin: 6px 0 16px; }
.coordinator-card .field-label { color: rgba(255,255,255,.6); }
.coordinator-card input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: white; }
.coordinator-card ul { padding-left: 18px; margin: 14px 0 0; color: rgba(255,255,255,.72); font-size: .82rem; }
.locality-panel { margin-top: 18px; }
.locality-table .table-row { grid-template-columns: 1fr 1fr 1.2fr 1.2fr .7fr; }
.locality-table .table-row button { border: 0; background: transparent; color: var(--rose); }

.privacy-strip { margin: 18px 0; padding: 14px 16px; border-radius: 14px; background: var(--blue-soft); color: #49677b; display: flex; gap: 12px; align-items: center; }
.privacy-strip svg { width: 28px; height: 28px; flex: none; }
.privacy-strip div { display: grid; }
.room-workspace { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 18px; align-items: start; }
.room-controls { position: sticky; top: calc(28px + var(--topbar) + 20px); }
.room-controls h2 { margin: 6px 0 18px; }
.upload-zone { min-height: 150px; border: 2px dashed #c8c1b3; border-radius: 14px; display: grid; place-items: center; align-content: center; text-align: center; padding: 18px; cursor: pointer; background: var(--surface-soft); }
.upload-zone:hover { border-color: var(--gold); background: var(--gold-soft); }
.upload-zone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-zone svg { width: 36px; height: 36px; color: var(--gold); }
.upload-zone span { color: var(--muted); font-size: .76rem; max-width: 240px; }
.photo-thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 10px 0 18px; }
.photo-thumbs img, .empty-thumb { aspect-ratio: 1; width: 100%; border-radius: 8px; object-fit: cover; background: var(--paper-2); }
.empty-thumb { grid-column: 1 / -1; aspect-ratio: auto; min-height: 52px; display: grid; place-items: center; color: var(--muted); font-size: .75rem; }
.room-stage { position: relative; min-height: 590px; border: 10px solid #29483b; border-radius: 12px; background: repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(34,64,51,.06) 50px), repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(34,64,51,.06) 50px), #f4efe4; overflow: hidden; touch-action: none; }
.room-stage::before { content:""; position: absolute; right: -10px; top: 60%; width: 70px; height: 100px; background: var(--surface); border-left: 10px solid #29483b; border-top: 10px solid #29483b; border-bottom: 10px solid #29483b; }
.room-label { position: absolute; right: 6px; top: 8px; font-size: .65rem; font-weight: 900; color: #53695d; letter-spacing: .08em; }
.room-door { position: absolute; left: 0; bottom: 2px; padding: 3px 8px; background: var(--gold-soft); font-size: .65rem; font-weight: 900; }
.clearance-note { position: absolute; left: 44%; top: 44%; width: 160px; padding: 8px; border: 1px dashed rgba(23,63,49,.38); border-radius: 50%; text-align: center; font-size: .63rem; color: #658074; transform: translate(-50%,-50%); }
.room-object { position: absolute; display: grid; place-items: center; border: 2px solid; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.12); cursor: grab; user-select: none; touch-action: none; font-weight: 900; font-size: .68rem; text-align: center; transition: box-shadow .15s ease, opacity .15s ease; }
.room-object:active { cursor: grabbing; box-shadow: 0 12px 24px rgba(0,0,0,.22); }
.patient-bed { width: 250px; height: 110px; background: #e9eff1; border-color: #628096; color: #3f5d70; }
.partner-bed { width: 210px; height: 86px; background: #f1e5cf; border-color: #ad8c4b; color: #73591e; }
.hoyer { width: 105px; height: 105px; border-radius: 50%; background: #e7eee8; border-color: #50735f; color: #315642; }
.oxygen { width: 60px; height: 86px; background: #e7eff4; border-color: #55798f; color: #3c6278; }
.commode { width: 76px; height: 76px; background: #f0e8e4; border-color: #90665e; color: #74463f; }
.supplies { width: 105px; height: 64px; background: #f3ebd7; border-color: #b08a3e; color: #75591f; }
.familiar { width: 90px; height: 90px; border-radius: 50%; background: #eee1d2; border-color: #9a7657; color: #664831; }
.room-object.hidden { opacity: .12; pointer-events: none; }
.room-object-toggles { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.room-object-toggles button { min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: white; color: var(--muted); }
.room-object-toggles button.active { background: var(--sage-soft); border-color: #9bb3a1; color: var(--forest); }

.report-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: 18px; margin-top: 20px; align-items: start; }
.saved-reports { position: sticky; top: calc(28px + var(--topbar) + 20px); }
.handoff-list { display: grid; gap: 10px; }
.handoff-card { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); display: grid; gap: 4px; }
.handoff-card span { font-size: .72rem; color: var(--muted); }
.handoff-card p { margin-top: 4px; font-size: .82rem; }
.empty-state { min-height: 150px; display: grid; place-items: center; color: var(--muted); text-align: center; }

.learning-loop { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.learning-loop span { padding: 8px 12px; border-radius: 999px; background: white; border: 1px solid var(--line); font-weight: 800; font-size: .75rem; }
.learning-loop span.active { background: var(--forest); color: white; }
.learning-loop i { width: 16px; height: 1px; background: var(--gold); }
.trail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.trail-card { position: relative; min-height: 270px; padding: 22px; border-radius: 18px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; align-items: flex-start; }
.trail-card.current { border-color: #b9a36f; }
.trail-number { font-family: Georgia, serif; font-size: 2.2rem; color: var(--gold); }
.trail-card .status-chip { position: absolute; right: 16px; top: 16px; }
.trail-card h2 { margin-top: 26px; font-size: 1.6rem; }
.trail-card p { margin: 10px 0 24px; color: var(--muted); }
.trail-card button { margin-top: auto; }

.modal-dialog { width: min(520px, calc(100% - 28px)); border: 0; border-radius: 20px; padding: 30px; color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.modal-dialog::backdrop { background: rgba(8,18,13,.66); backdrop-filter: blur(4px); }
.modal-close { position: absolute; right: 12px; top: 10px; border: 0; background: transparent; font-size: 1.8rem; color: var(--muted); }
.modal-dialog h2 { margin: 8px 0 14px; }
.modal-dialog p { margin-bottom: 14px; color: var(--muted); }
.modal-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; font-weight: 900; margin-bottom: 12px; }
.modal-icon.urgent { background: var(--rose-soft); color: var(--rose); }
.small-note { font-size: .78rem; color: var(--muted); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 150; max-width: 340px; padding: 13px 16px; border-radius: 12px; background: #10231b; color: white; box-shadow: var(--shadow); transform: translateY(30px); opacity: 0; pointer-events: none; transition: .22s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.mobile-bottom-nav { display: none; }

body.field-mode { --text-scale: 1.14; }
body.field-mode .sidebar { width: 310px; }
body.field-mode .app-shell { grid-template-columns: 310px minmax(0,1fr); }
body.field-mode main { grid-column: 2; }
body.field-mode .panel, body.field-mode .phase-card { border-width: 2px; }

@media (max-width: 1180px) {
  :root { --sidebar: 250px; }
  .brand-lockup img { width: 150px; }
  .brand-lockup > div { display: none; }
  .dashboard-grid, .report-layout { grid-template-columns: 1fr; }
  .contact-panel, .saved-reports { position: static; }
  .care-map { grid-template-columns: 1fr; }
  .care-connector { writing-mode: horizontal-tb; justify-content: center; }
  .care-connector span { width: 28px; height: 1px; }
  .team-map-large { grid-template-columns: 1fr 1fr; }
  .coordinator-column { grid-column: 1 / -1; grid-row: 1; }
  .room-workspace { grid-template-columns: 300px 1fr; }
  .trail-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  :root { --topbar: 64px; }
  .prototype-ribbon { font-size: .62rem; padding: 0 8px; text-align: center; }
  .topbar { padding: 0 14px; }
  .brand-lockup { min-width: 0; }
  .brand-lockup img { width: 138px; }
  .topbar-actions .quiet-button { display: none; }
  .mobile-menu-button { display: inline-grid; place-items: center; }
  .app-shell { display: block; padding-top: calc(28px + var(--topbar)); }
  .sidebar { transform: translateX(-103%); transition: .22s ease; width: min(86vw, 320px); box-shadow: 20px 0 50px rgba(0,0,0,.25); }
  .sidebar.open { transform: translateX(0); }
  main { padding: 16px 14px 92px; }
  .hero-card { min-height: 620px; }
  .hero-overlay { background: linear-gradient(0deg, rgba(9,24,18,.94) 0%, rgba(9,24,18,.76) 55%, rgba(9,24,18,.2) 100%); }
  .hero-content { padding: 215px 24px 150px; }
  .hero-content h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .hero-content p { font-size: 1rem; }
  .hero-status-card { left: 18px; right: 18px; bottom: 18px; width: auto; }
  .urgent-bar { align-items: flex-start; }
  .urgent-bar > button { display: none; }
  .section-heading, .compact-heading { align-items: flex-start; }
  .readiness-ring { width: 84px; height: 84px; }
  .phase-grid, .work-grid.two-col, .equipment-grid, .cost-calculator, .decision-grid, .form-layout, .team-map-large, .room-workspace, .report-layout { grid-template-columns: 1fr; }
  .phase-card { min-height: 190px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .care-map article { min-height: auto; }
  .response-grid { grid-template-columns: 1fr; }
  .navigator-input-row { grid-template-columns: 1fr; }
  .page-hero { padding: 30px 22px; }
  .page-hero h1 { font-size: clamp(2.45rem, 11vw, 3.8rem); }
  .choice-grid { grid-template-columns: repeat(2,1fr); }
  .path-result { position: static; }
  .pass-tabs { overflow-x: auto; grid-template-columns: repeat(3, minmax(220px,1fr)); }
  .first-night-table .table-row, .locality-table .table-row { grid-template-columns: 1fr; }
  .responsive-table { border: 0; overflow: visible; }
  .table-row { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .table-row > * { border-right: 0; border-bottom: 1px solid var(--line); }
  .table-row > *:last-child { border-bottom: 0; }
  .table-head { display: none; }
  .review-sliders label { grid-template-columns: 1fr; }
  .review-sliders span { text-align: left; }
  .coordinator-column { grid-column: auto; grid-row: auto; }
  .room-controls { position: static; }
  .room-stage { min-height: 520px; }
  .patient-bed { width: 190px; height: 90px; }
  .partner-bed { width: 160px; height: 70px; }
  .trail-grid { grid-template-columns: 1fr; }
  .learning-loop { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .learning-loop span { white-space: nowrap; }
  .mobile-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: grid; grid-template-columns: repeat(5,1fr); padding: 7px 4px max(7px, env(safe-area-inset-bottom)); background: rgba(15,28,23,.97); border-top: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(18px); }
  .mobile-bottom-nav button { min-height: 54px; border: 0; background: transparent; color: rgba(255,255,255,.58); display: grid; place-items: center; gap: 2px; font-size: .62rem; font-weight: 800; }
  .mobile-bottom-nav svg { width: 22px; height: 22px; }
  .mobile-bottom-nav button.active { color: var(--gold-2); }
  body.field-mode .sidebar { width: min(90vw, 340px); }
  body.field-mode .app-shell { display: block; }
}

@media (max-width: 520px) {
  .prototype-ribbon span { display: none; }
  .brand-lockup img { width: 126px; }
  .hero-actions, .button-row, .pass-footer { display: grid; grid-template-columns: 1fr; }
  .section-heading { display: grid; }
  .phase-grid { grid-template-columns: 1fr; }
  .field-grid.two, .need-grid, .choice-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .guided-form { padding: 18px; }
  .page-hero { border-radius: 18px; }
  .pass-tabs { margin-left: -14px; margin-right: -14px; border-radius: 0; border-left: 0; border-right: 0; }
  .equipment-item { grid-template-columns: auto 1fr; }
  .equipment-item select { grid-column: 1 / -1; width: 100%; }
  .room-stage { min-height: 480px; }
  .patient-bed { width: 170px; height: 78px; }
  .partner-bed { width: 145px; height: 62px; }
  .room-object { font-size: .58rem; }
  .toast { left: 14px; right: 14px; bottom: 82px; max-width: none; }
}

@media print {
  .prototype-ribbon, .topbar, .sidebar, .mobile-bottom-nav, .hero-card, .page-hero, button, .urgent-bar { display: none !important; }
  .app-shell { display: block; padding: 0; }
  main { padding: 0; }
  .view { display: none !important; }
  #view-reports.view.active { display: block !important; }
  .report-layout { display: block; }
  .saved-reports { display: none; }
  .panel { box-shadow: none; border: 1px solid #aaa; }
}

/* Guided tabletop practice */
.practice-preview { margin-top: 28px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 26px; background: linear-gradient(135deg, #fff 0%, #f0ece2 100%); }
.practice-preview h2 { margin: 6px 0 10px; }
.practice-preview p { max-width: 760px; color: var(--muted); }
.practice-preview-actions { display: grid; justify-items: end; gap: 12px; }
.practice-preview-actions > span { color: var(--muted); font-size: .82rem; }
.practice-preview-actions strong { color: var(--forest); font-size: 1.4rem; }
.practice-hero { background: linear-gradient(125deg, #14382b 0%, #284f3e 60%, #6b735c 100%); color: white; }
.practice-hero p { color: rgba(255,255,255,.75); max-width: 960px; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.practice-case-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 22px 0; }
.practice-case-card { position: relative; min-height: 190px; padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-align: left; box-shadow: var(--shadow-soft); transition: .18s ease; display: grid; align-content: start; gap: 7px; }
.practice-case-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.practice-case-card.active { border: 2px solid var(--gold); background: linear-gradient(145deg, #fff 0%, var(--gold-soft) 100%); }
.practice-case-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.24rem; font-weight: 500; line-height: 1.15; }
.practice-case-card small { color: var(--muted); line-height: 1.4; }
.case-letter { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: white; font-weight: 900; margin-bottom: 5px; }
.practice-case-card.active .case-letter { background: var(--gold); color: var(--forest); }
.practice-layout { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(340px,.88fr); gap: 18px; align-items: start; }
.practice-progress { padding: 7px 10px; border-radius: 999px; background: var(--gold-soft); color: #6c5527; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.case-facts { display: grid; gap: 10px; margin: 18px 0; }
.case-fact { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--line); }
.case-fact strong { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); }
.case-fact span { color: var(--muted); }
.case-action-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.practice-record-panel { position: sticky; top: calc(var(--topbar) + 42px); }
.update-feed { display: grid; gap: 10px; max-height: 520px; overflow: auto; padding-right: 3px; }
.update-card { border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 14px; background: var(--surface-soft); }
.update-card.decision { border-left-color: var(--blue); background: var(--blue-soft); }
.update-card .update-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.update-card p { color: var(--ink); }
.practice-decision-form { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.practice-review-panel { margin-top: 18px; }
.practice-review-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.practice-review-grid label { display: grid; gap: 7px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); font-weight: 800; font-size: .82rem; }
.practice-review-grid select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 9px; background: white; padding: 0 10px; color: var(--ink); }

@media (max-width: 1180px) {
  .practice-layout { grid-template-columns: 1fr; }
  .practice-record-panel { position: static; }
}

@media (max-width: 860px) {
  .practice-preview { grid-template-columns: 1fr; }
  .practice-preview-actions { justify-items: stretch; }
  .practice-case-grid, .practice-review-grid { grid-template-columns: 1fr; }
  .case-fact { grid-template-columns: 1fr; gap: 4px; }
}

/* v0.2 — Hospice Basics, visual learning, and Learning Engine feedback */
.orientation-launch { margin: 0 0 30px; padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(320px,.8fr) minmax(0,1.2fr); }
.orientation-video-poster { min-height: 330px; padding: 28px; color: white; background:
  radial-gradient(circle at 72% 22%, rgba(224,189,112,.44), transparent 25%),
  linear-gradient(140deg, rgba(14,37,29,.96), rgba(37,81,62,.9)),
  url('assets/homeward-hero.webp') center/cover; display: grid; align-content: space-between; gap: 20px; position: relative; isolation: isolate; }
.orientation-video-poster::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(9,24,18,.92),rgba(9,24,18,.52)); }
.video-source-badge { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 999px; background: rgba(198,157,76,.18); color: var(--gold-2); border: 1px solid rgba(224,189,112,.25); font-size:.62rem; font-weight:900; letter-spacing:.08em; }
.poster-play { width: fit-content; border: 0; background: transparent; color: white; display: grid; justify-items: start; gap: 10px; text-align:left; font-family: Georgia,"Times New Roman",serif; font-size:1.55rem; }
.play-circle { width:64px; height:64px; border-radius:50%; display:grid; place-items:center; padding-left:4px; color:#17231f; background:var(--gold); box-shadow:0 12px 30px rgba(0,0,0,.25); font:700 1.2rem/1 system-ui; }
.orientation-video-poster small { color: rgba(255,255,255,.62); }
.orientation-launch-copy { padding: 34px; display:grid; align-content:center; gap:14px; }
.orientation-launch-copy p { color:var(--muted); max-width:780px; }
.orientation-truths { display:grid; gap:8px; margin:8px 0; }
.orientation-truths span { display:grid; grid-template-columns:28px 1fr; align-items:center; gap:10px; color:var(--ink); font-size:.86rem; }
.orientation-truths strong { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:var(--gold-soft); color:#6c5527; }

.orientation-hero { background: radial-gradient(circle at 82% 16%,rgba(224,189,112,.35),transparent 26%), linear-gradient(130deg,#102a21,#2c5945 66%,#7d795e); }
.learning-engine-shell { margin:20px 0; padding:18px 20px; border:1px solid #ccb77e; border-radius:18px; background:linear-gradient(135deg,#fffaf0,#f0eadc); box-shadow:var(--shadow-soft); }
.engine-kicker { display:flex; justify-content:space-between; gap:18px; align-items:center; margin-bottom:14px; }
.engine-kicker span { color:#8a6724; font-size:.65rem; font-weight:900; letter-spacing:.12em; }
.engine-kicker strong { font-family:Georgia,"Times New Roman",serif; font-size:1.05rem; font-weight:500; }
.engine-steps { display:flex; align-items:center; justify-content:space-between; gap:5px; overflow-x:auto; padding:4px 2px 10px; scrollbar-width:thin; }
.engine-steps span { flex:0 0 auto; min-width:78px; min-height:48px; padding:8px 10px; border-radius:999px; border:1px solid #d8c89e; display:grid; place-items:center; background:white; color:#6c6b65; font-size:.72rem; font-weight:900; }
.engine-steps span.active { background:var(--forest); color:white; border-color:var(--forest); box-shadow:0 6px 14px rgba(24,63,49,.18); }
.engine-steps span.complete { background:var(--gold); color:#17231f; border-color:var(--gold); }
.engine-steps i { flex:1 0 18px; min-width:18px; height:2px; background:#d7c79b; }
.compact-engine span { min-width:68px; min-height:42px; font-size:.66rem; }
.engine-output-rule { margin-top:12px; padding:12px 14px; border-radius:12px; background:#142c23; color:white; display:flex; gap:8px; flex-wrap:wrap; font-size:.82rem; }
.engine-output-rule strong { color:var(--gold-2); }

.orientation-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr); gap:18px; align-items:start; }
.main-video-card, .orientation-checkpoint-panel { min-height:100%; }
.video-consent-stage { min-height:390px; margin-top:18px; border-radius:18px; overflow:hidden; background:radial-gradient(circle at 80% 20%,rgba(198,157,76,.25),transparent 25%), linear-gradient(145deg,#10261e,#315d49); color:white; display:grid; place-items:center; }
.video-consent-stage iframe { width:100%; height:100%; min-height:390px; border:0; }
.video-consent-copy { max-width:520px; padding:34px; display:grid; justify-items:center; text-align:center; gap:14px; }
.video-consent-copy strong { font-family:Georgia,"Times New Roman",serif; font-size:1.7rem; font-weight:500; }
.video-consent-copy p { color:rgba(255,255,255,.68); }
.video-review-line { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:12px; color:var(--muted); font-size:.7rem; }
.safety-level { display:inline-flex; min-height:26px; align-items:center; padding:4px 9px; border-radius:999px; font-size:.62rem; font-weight:900; letter-spacing:.07em; }
.safety-level.understand { background:var(--sage-soft); color:#315a42; }
.safety-level.prepare { background:var(--blue-soft); color:#456478; }
.safety-level.signoff { background:var(--rose-soft); color:var(--rose); }
.orientation-checkpoint-panel { position:sticky; top:calc(28px + var(--topbar) + 20px); }
.orientation-checkpoint-panel > p { margin:9px 0 14px; color:var(--muted); }
.orientation-checklist { display:grid; gap:10px; }
.orientation-checklist label { display:flex; gap:10px; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); cursor:pointer; }
.orientation-checklist label:has(input:checked) { background:var(--sage-soft); border-color:#9ab19f; }
.orientation-checklist input { width:20px; height:20px; accent-color:var(--forest); flex:none; margin-top:2px; }
.orientation-checklist span { display:grid; gap:3px; }
.orientation-checklist small { color:var(--muted); line-height:1.35; }
.orientation-progress { margin:16px 0; display:grid; gap:7px; }
.orientation-progress > span { font-size:.8rem; color:var(--muted); }
.orientation-progress > span strong { color:var(--forest); font-size:1.1rem; }
.orientation-progress > div { height:8px; border-radius:999px; overflow:hidden; background:#e5e0d5; }
.orientation-progress i { display:block; width:0%; height:100%; background:linear-gradient(90deg,var(--gold),var(--forest)); transition:.2s ease; }

.video-path-panel { margin-top:18px; }
.video-count-pill { padding:7px 11px; border-radius:999px; background:var(--gold-soft); color:#6c5527; font-size:.72rem; font-weight:900; }
.video-filter-row { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 18px; }
.video-filter-row button { min-height:38px; padding:0 12px; border:1px solid var(--line); border-radius:999px; background:white; color:var(--muted); font-weight:800; font-size:.75rem; }
.video-filter-row button.active { background:var(--forest); color:white; border-color:var(--forest); }
.video-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.video-card { min-height:250px; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:white; box-shadow:var(--shadow-soft); display:grid; grid-template-rows:auto 1fr; }
.video-card-visual { min-height:118px; padding:16px; color:white; background:radial-gradient(circle at 82% 18%,rgba(224,189,112,.35),transparent 24%),linear-gradient(135deg,#173d30,#62735f); display:flex; align-items:flex-end; justify-content:space-between; gap:10px; }
.video-card-visual.original { background:radial-gradient(circle at 82% 18%,rgba(224,189,112,.36),transparent 24%),linear-gradient(135deg,#0f2530,#496d75); }
.video-card-play { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; padding-left:3px; border:0; background:var(--gold); color:#17231f; font-weight:900; flex:none; }
.video-card-body { padding:15px; display:grid; align-content:start; gap:8px; }
.video-card-body h3 { font-family:Georgia,"Times New Roman",serif; font-size:1.15rem; font-weight:500; }
.video-card-body p { color:var(--muted); font-size:.8rem; }
.video-card-meta { display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; padding-top:8px; }
.video-card-meta span { font-size:.62rem; padding:3px 6px; border-radius:999px; background:var(--surface-soft); color:var(--muted); border:1px solid var(--line); }
.original-video-roadmap { margin-top:18px; display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:28px; background:linear-gradient(135deg,#10271e,#244b3a); color:white; }
.original-video-roadmap p { margin-top:10px; color:rgba(255,255,255,.68); }
.original-video-list { display:grid; gap:9px; }
.original-video-list span { padding:10px 12px; border:1px solid rgba(255,255,255,.12); border-radius:11px; background:rgba(255,255,255,.05); display:grid; grid-template-columns:34px 1fr; gap:8px; align-items:center; font-size:.82rem; }
.original-video-list strong { color:var(--gold-2); }
.path-video-recommendations { margin:16px 0; padding-top:14px; border-top:1px solid var(--line); }
.mini-video-list { display:grid; gap:8px; margin-top:10px; }
.mini-video-card { display:grid; grid-template-columns:36px 1fr auto; gap:10px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:11px; background:var(--surface-soft); }
.mini-video-card .mini-play { width:36px; height:36px; border-radius:50%; border:0; background:var(--gold); color:#17231f; font-weight:900; }
.mini-video-card strong { font-size:.82rem; }
.mini-video-card small { grid-column:2; color:var(--muted); font-size:.7rem; }
.mini-video-card .mini-status { font-size:.58rem; padding:3px 6px; border-radius:999px; background:var(--blue-soft); color:#456478; font-weight:900; }

.video-dialog { width:min(960px,calc(100vw - 28px)); max-width:960px; }
.video-frame-wrap { min-height:500px; margin:14px 0; border-radius:14px; overflow:hidden; background:#0d1713; display:grid; place-items:center; }
.video-frame-wrap iframe { width:100%; min-height:500px; border:0; }
.video-frame-wrap .original-preview { padding:34px; color:white; display:grid; gap:14px; }
.video-frame-wrap .original-preview h3 { font-family:Georgia,"Times New Roman",serif; font-size:1.7rem; }
.video-frame-wrap .original-preview p, .video-frame-wrap .original-preview li { color:rgba(255,255,255,.72); }

/* Tabletop learning engine and AI feedback */
.tabletop-engine-shell { border-color:#d4bd78; }
.tabletop-engine-shell .engine-steps span { min-width:88px; }
.ai-coach-review { margin-top:18px; background:#10231b; color:white; }
.ai-coach-review .navigator-head p { color:rgba(255,255,255,.62); }
.ai-feedback-state { min-height:180px; margin-top:18px; padding:16px; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(255,255,255,.04); }
.ai-feedback-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.ai-feedback-card { min-height:125px; padding:14px; border-radius:12px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.11); display:grid; align-content:start; gap:7px; }
.ai-feedback-card span { color:var(--gold-2); font-size:.64rem; font-weight:900; letter-spacing:.09em; }
.ai-feedback-card p { color:rgba(255,255,255,.82); font-size:.84rem; }
.ai-feedback-card.calibration { grid-column:1 / -1; background:rgba(96,126,148,.16); }
.ai-feedback-principles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:12px; }
.ai-feedback-principles span { padding:10px; border-radius:10px; background:rgba(255,255,255,.05); color:rgba(255,255,255,.62); font-size:.7rem; }
.ai-feedback-principles strong { display:block; color:white; margin-bottom:2px; }
.confidence-field { display:grid; grid-template-columns:1fr minmax(120px,.7fr) 32px; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:11px; background:var(--surface-soft); }
.confidence-field span { display:grid; }
.confidence-field small { color:var(--muted); }
.confidence-field input { width:100%; accent-color:var(--forest); }
.confidence-field output { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:var(--forest); color:white; font-weight:900; }
.practice-improve-panel { margin-top:18px; }
.practice-improve-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.learning-scorecard { margin-top:16px; }
.scorecard-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.score-dimension { padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); display:grid; gap:8px; }
.score-dimension header { display:flex; justify-content:space-between; gap:8px; font-size:.78rem; font-weight:900; }
.score-dimension header strong { color:var(--forest); }
.score-track { height:7px; border-radius:999px; background:#e2ddd2; overflow:hidden; }
.score-track i { display:block; height:100%; background:linear-gradient(90deg,var(--gold),var(--forest)); }
.score-dimension p { color:var(--muted); font-size:.7rem; }
.update-card.feedback { border-left-color:var(--sage); background:var(--sage-soft); }
.update-card .decision-detail { margin-top:7px; display:flex; flex-wrap:wrap; gap:6px; }
.update-card .decision-detail span { padding:3px 6px; border-radius:999px; background:rgba(255,255,255,.7); color:var(--muted); font-size:.62rem; }

@media (max-width:1180px) {
  .orientation-grid { grid-template-columns:1fr; }
  .orientation-checkpoint-panel { position:static; }
  .video-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ai-feedback-principles { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:860px) {
  .orientation-launch { grid-template-columns:1fr; }
  .orientation-video-poster { min-height:250px; }
  .engine-kicker { display:grid; }
  .engine-steps { justify-content:flex-start; }
  .video-card-grid, .original-video-roadmap, .ai-feedback-grid, .practice-improve-grid, .scorecard-grid { grid-template-columns:1fr; }
  .ai-feedback-card.calibration { grid-column:auto; }
  .video-frame-wrap, .video-frame-wrap iframe { min-height:320px; }
}

@media (max-width:520px) {
  .orientation-launch-copy { padding:22px 18px; }
  .orientation-video-poster { padding:22px 18px; }
  .video-card-grid { grid-template-columns:1fr; }
  .ai-feedback-principles { grid-template-columns:1fr; }
  .confidence-field { grid-template-columns:1fr 42px; }
  .confidence-field span { grid-column:1 / -1; }
  .mini-video-card { grid-template-columns:34px 1fr; }
  .mini-video-card .mini-status { grid-column:2; justify-self:start; }
}
