/* The organizer app (/app). Styling v3: sky canvas, white surfaces, navy text, coral actions. Shared components live in components.css.
   Only semantic tokens from tokens.css, so light and dark appearances both work (DESIGN.md). */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--rt-color-canvas); color: var(--rt-color-text);
  font: var(--rt-text-body)/1.45 var(--rt-font-body);
}
::selection { background: var(--rt-color-selection); }
a { color: var(--rt-color-text-accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--rt-color-focus); outline-offset: 3px; border-radius: var(--rt-radius-sm); }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, video { max-width: 100%; }
.icon { flex-shrink: 0; }
.flip { display: inline-flex; transform: scaleX(-1); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--rt-space-4); top: -60px; z-index: 50; background: var(--rt-color-surface); padding: var(--rt-space-2) var(--rt-space-4); border-radius: var(--rt-radius-control); }
.skip-link:focus { top: var(--rt-space-2); }

/* Type */
.display { font-family: var(--rt-font-display); font-weight: var(--rt-weight-display); font-size: var(--rt-text-display); letter-spacing: -0.01em; }
.title { font-family: var(--rt-font-display); font-weight: var(--rt-weight-display); font-size: var(--rt-text-title); }
.subtitle, .sheet-head h2, .card h3 { font-family: var(--rt-font-display); font-weight: var(--rt-weight-heavy); font-size: var(--rt-text-subtitle); }
.lede { font-size: var(--rt-text-body-large); color: var(--rt-color-text-muted); }
.eyebrow { font-size: var(--rt-text-eyebrow); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rt-color-text-muted); margin: var(--rt-space-2) 0; }
.muted { color: var(--rt-color-text-muted); }
.small { font-size: var(--rt-text-caption); }
.center { text-align: center; justify-content: center; align-self: center; }
.label { font-size: var(--rt-text-caption); font-weight: 600; }

/* Layout */
.page { width: min(1200px, 100%); margin: 0 auto; padding: var(--rt-space-6) var(--rt-space-4) var(--rt-space-16); display: flex; flex-direction: column; gap: var(--rt-space-4); }
.page.narrow { width: min(560px, 100%); }
@media (min-width: 720px) { .page { padding-inline: var(--rt-space-8); } }
.stack { display: flex; flex-direction: column; gap: var(--rt-space-4); }
.stack-tight { display: flex; flex-direction: column; gap: var(--rt-space-2); }
.stack-loose { display: flex; flex-direction: column; gap: var(--rt-space-8); }
.row { display: flex; align-items: center; gap: var(--rt-space-3); }
.row-tight { display: inline-flex; align-items: center; gap: var(--rt-space-2); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--rt-space-3); }
.row-end { display: flex; justify-content: flex-end; gap: var(--rt-space-3); }
.row-top { display: flex; align-items: flex-start; gap: var(--rt-space-3); }
.wrap { flex-wrap: wrap; }
.on-brand-accent { color: var(--rt-color-accent-on-brand); }

/* Header */
.app-header { display: flex; align-items: center; justify-content: space-between; gap: var(--rt-space-4); padding: var(--rt-space-4); border-bottom: 1px solid var(--rt-color-hairline); }
@media (min-width: 720px) { .app-header { padding-inline: var(--rt-space-8); } }
.lockup { display: inline-flex; }
.wordmark { width: 160px; height: auto; display: block; }
.app-nav { display: flex; align-items: center; gap: var(--rt-space-4); }
.app-nav a { font-weight: 600; text-decoration: none; }
.nav-sign-in { font-family: var(--rt-font-display); font-weight: var(--rt-weight-heavy); text-decoration: none; padding: var(--rt-space-2); }
.avatar-link { display: inline-flex; border-radius: 50%; }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--rt-space-2); font-size: var(--rt-text-caption); color: var(--rt-color-text-muted); }


/* Forms */
legend { font-size: var(--rt-text-caption); font-weight: 700; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: var(--rt-space-2); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input:not([type]) {
  min-height: 50px; padding: 0 var(--rt-space-4); border-radius: var(--rt-radius-control); border: 1.5px solid var(--rt-color-control-border);
  background: var(--rt-color-surface); font-size: var(--rt-text-body); width: 100%;
}


/* Gift list */
.gift-list, .plain-list, .spark-list, .story-grid, .plan-list, .people ul, .names, .benefits { list-style: none; margin: 0; padding: 0; }
.gift-list { display: grid; gap: var(--rt-space-3); }
.gift-card { display: flex; align-items: center; gap: var(--rt-space-3); padding: var(--rt-space-4); border-radius: var(--rt-radius-card); text-decoration: none; color: inherit;
  background: var(--rt-color-surface); border: 1px solid var(--rt-color-hairline); flex-wrap: wrap; }
.gift-card:hover { border-color: var(--rt-color-control-border); }
.gift-card-text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.gift-card-text strong { font-family: var(--rt-font-display); font-weight: var(--rt-weight-display); font-size: var(--rt-text-subtitle); }
.empty { align-items: center; text-align: center; padding: var(--rt-space-12) var(--rt-space-6); }
.empty h2 { font-family: var(--rt-font-display); font-weight: var(--rt-weight-display); font-size: var(--rt-text-heading); }
.empty-art { width: 72px; height: 72px; border-radius: var(--rt-radius-lg); display: inline-flex; align-items: center; justify-content: center; background: var(--rt-color-quiet); color: var(--rt-color-coral); }
.empty-inline p + p { margin-top: var(--rt-space-2); }

/* Setup */
.calendar { padding: var(--rt-space-4); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--rt-space-2); }
.calendar-head strong { font-family: var(--rt-font-display); font-weight: var(--rt-weight-display); font-size: var(--rt-text-subtitle); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.calendar-weekday { font-size: var(--rt-text-micro); font-weight: 700; color: var(--rt-color-text-muted); padding: 4px 0 8px; text-transform: uppercase; }
.calendar-day { position: relative; min-height: 44px; border: 0; border-radius: var(--rt-radius-sm); background: transparent; font-size: var(--rt-text-body); cursor: pointer; }
.calendar-day:hover:not(:disabled) { background: var(--rt-color-quiet); }
.calendar-day:disabled { color: var(--rt-color-hairline); cursor: default; }
.calendar-day.selected { background: var(--rt-color-selected-indicator); color: var(--rt-color-selected-indicator-text); font-weight: var(--rt-weight-heavy); }
.calendar-day.today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }
.spark-list { display: flex; flex-direction: column; gap: var(--rt-space-3); }
.spark-card { display: flex; align-items: flex-start; gap: var(--rt-space-3); padding: var(--rt-space-4); border-radius: var(--rt-radius-lg); background: var(--rt-color-surface);
  border: 1.5px solid var(--rt-color-hairline); cursor: pointer; }
.spark-card.selected { border: 2px solid var(--rt-color-selected-border); }
.spark-card:has(input:focus-visible) { outline: 3px solid var(--rt-color-focus); outline-offset: 3px; }
.spark-text { display: flex; flex-direction: column; gap: var(--rt-space-2); flex: 1; font-size: var(--rt-text-body); }
.offer .accent-icon { display: inline-flex; flex-shrink: 0; color: var(--rt-color-coral); }
.action-bar { display: flex; flex-direction: column; gap: var(--rt-space-2); padding-top: var(--rt-space-4); border-top: 1px solid var(--rt-color-hairline);
  position: sticky; bottom: 0; background: var(--rt-color-canvas); padding-bottom: var(--rt-space-4); }

/* Sheets */
.sheet { width: min(560px, calc(100% - 16px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--rt-radius-card);
  background: var(--rt-color-canvas); color: var(--rt-color-text); box-shadow: var(--rt-shadow-sheet); overflow-y: auto; overscroll-behavior: contain; }
.sheet-wide { width: min(880px, calc(100% - 16px)); }
.sheet::backdrop { background: var(--rt-scrim); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--rt-space-3); padding: var(--rt-space-4) var(--rt-space-4) 0 var(--rt-space-6); }
.sheet-body { padding: var(--rt-space-4) var(--rt-space-6) var(--rt-space-6); display: flex; flex-direction: column; gap: var(--rt-space-4); }
@media (max-width: 560px) {
  .sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: var(--rt-radius-card) var(--rt-radius-card) 0 0; }
  .sheet-body { padding-inline: var(--rt-space-4); }
}

/* Workspace */
.arrivals { display: flex; align-items: center; gap: var(--rt-space-3); flex-wrap: wrap; padding: var(--rt-space-3) var(--rt-space-4); border-radius: var(--rt-radius-lg);
  background: var(--rt-color-brand-field); color: var(--rt-color-text-on-brand); border: 1px solid var(--rt-color-brand-field-border); }
.arrivals > span { flex: 1 1 200px; }
.arrivals .icon { color: var(--rt-color-accent-on-brand); }
.workspace-grid { display: flex; flex-wrap: wrap; gap: var(--rt-space-6); align-items: flex-start; }
.workspace-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: var(--rt-space-6); }
.workspace-rail { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: var(--rt-space-4); }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--rt-space-4); }
.story-card { background: var(--rt-color-surface); border: 1px solid var(--rt-color-hairline); border-radius: var(--rt-radius-card); padding: var(--rt-space-2); display: flex; flex-direction: column; gap: var(--rt-space-2); height: 100%; }
.story-thumb { position: relative; height: 140px; width: 100%; border: 0; border-radius: var(--rt-radius-lg); background: var(--rt-color-quiet); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.story-initial { font-family: var(--rt-font-display); font-weight: var(--rt-weight-display); font-size: var(--rt-text-stat); color: var(--rt-color-text-muted); }
.play-dot { position: absolute; left: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--rt-color-brand-field); color: var(--rt-color-text-on-brand); }
.duration, .corner-tag { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--rt-radius-pill); font-size: var(--rt-text-micro); font-weight: 700;
  background: var(--rt-color-brand-field); color: var(--rt-color-text-on-brand); }
.corner-tag { top: 10px; bottom: auto; left: 10px; right: auto; background: var(--rt-color-status-warning-bg); color: var(--rt-color-status-warning); }
.story-text { display: flex; flex-direction: column; gap: 2px; padding: 0 var(--rt-space-2) var(--rt-space-2); }
.story-text .eyebrow { margin: 0; }
.people { display: flex; flex-direction: column; }
.people h3.eyebrow { margin-top: var(--rt-space-3); }
.person { display: flex; align-items: center; gap: var(--rt-space-3); padding: var(--rt-space-3) 0; border-bottom: 1px solid var(--rt-color-hairline); flex-wrap: wrap; }
.people ul li:last-child { border-bottom: 0; }
.person-text { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; }

/* Invite and share */
.bubble { background: var(--rt-color-canvas); border-radius: var(--rt-radius-lg) var(--rt-radius-lg) var(--rt-radius-lg) calc(var(--rt-radius-sm) / 2); padding: var(--rt-space-3) var(--rt-space-4); font-size: var(--rt-text-small); overflow-wrap: anywhere; }
.plain-list li { padding: var(--rt-space-2) 0; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--rt-space-3); }
.tile { min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: var(--rt-radius-lg);
  border: 1.5px solid var(--rt-color-control-border); background: var(--rt-color-surface); font-weight: 700; text-decoration: none; color: inherit; cursor: pointer; }
.tile:hover:not(:disabled) { background: var(--rt-color-quiet); }
.tile:disabled { opacity: 0.5; cursor: not-allowed; }
.tile:has(input:focus-visible) { outline: 3px solid var(--rt-color-focus); outline-offset: 3px; }
.qr { display: block; margin: 0 auto; border-radius: var(--rt-radius-sm); }
.link-box { padding: var(--rt-space-3) var(--rt-space-4); border-radius: var(--rt-radius-control); background: var(--rt-color-surface); border: 1px solid var(--rt-color-hairline);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--rt-text-caption); overflow-wrap: anywhere; }

/* Payment */
.benefits { display: flex; flex-direction: column; gap: var(--rt-space-3); background: var(--rt-color-surface); border: 1px solid var(--rt-color-hairline); border-radius: var(--rt-radius-card); padding: var(--rt-space-4); }
.benefits li { display: flex; gap: var(--rt-space-3); align-items: flex-start; }
.price strong { font-family: var(--rt-font-display); font-weight: var(--rt-weight-display); font-size: var(--rt-text-stat); }
.danger-zone strong { color: var(--rt-color-status-error); }
.bullets { margin: 0; padding-left: var(--rt-space-6); display: flex; flex-direction: column; gap: 4px; }

/* Players */
.player-stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--rt-radius-lg); overflow: hidden; background: var(--rt-color-media-canvas); color: var(--rt-color-media-text);
  display: flex; align-items: center; justify-content: center; }
.player-stage video { width: 100%; height: 100%; object-fit: contain; }
.player-stage.placeholder { background: var(--rt-color-brand-field); padding: var(--rt-space-6); text-align: center; aspect-ratio: 3 / 4; }
.player-stage .loading { color: var(--rt-color-media-text); }
.player-message { display: flex; flex-direction: column; align-items: center; gap: var(--rt-space-3); padding: var(--rt-space-6); text-align: center; }
.progress { height: 10px; border-radius: var(--rt-radius-pill); background: var(--rt-color-quiet); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--rt-color-selected-indicator); transition: width var(--rt-duration-quick); }

/* Review and arrange */
.review-head .back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; min-height: 44px; }
.review-grid { display: flex; flex-wrap: wrap; gap: var(--rt-space-6); align-items: flex-start; }
.review-grid > .stack { flex: 999 1 520px; min-width: 0; }
.review-preview { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: var(--rt-space-3); }
@media (min-width: 1100px) { .review-preview { position: sticky; top: var(--rt-space-4); } }
.plan-row { display: flex; align-items: center; gap: var(--rt-space-3); padding: var(--rt-space-3) var(--rt-space-2); border-bottom: 1px solid var(--rt-color-hairline); flex-wrap: wrap; border-radius: var(--rt-radius-sm); }
.plan-row:last-child { border-bottom: 0; }
.plan-row.selected { background: var(--rt-color-canvas); outline: 2px solid var(--rt-color-selected-border); }
.plan-row.dragging { opacity: 0.5; }
.plan-row[draggable="true"] { cursor: grab; }
.grip { color: var(--rt-color-text-muted); display: inline-flex; }
.position { width: 24px; font-family: var(--rt-font-display); font-weight: var(--rt-weight-display); font-size: var(--rt-text-subtitle); }
.plan-thumb { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--rt-color-action-primary); color: var(--rt-color-action-primary-text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.plan-text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spark-line { font-style: italic; }
.plan-actions { display: flex; gap: var(--rt-space-2); flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--rt-space-3); border-radius: var(--rt-radius-pill); border: 1px solid var(--rt-color-control-border);
  background: transparent; font-weight: 600; font-size: var(--rt-text-small); cursor: pointer; }
.pill-on { background: var(--rt-color-quiet); border: 1.5px solid var(--rt-color-text); }

/* Watch together */
.reveal-room { min-height: 100vh; background: var(--rt-color-brand-field); color: var(--rt-color-text-on-brand); display: flex; align-items: center; justify-content: center; outline: none; position: relative; }
.reveal-card { width: min(760px, 100%); padding: var(--rt-space-8) var(--rt-space-4); text-align: center; align-items: center; }
.reveal-card .notice { color: inherit; }
.reveal-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: flex-end; align-items: center; gap: var(--rt-space-4); padding: var(--rt-space-4); z-index: 2; }
.reveal-eyebrow { font-size: var(--rt-text-small); font-weight: var(--rt-weight-heavy); letter-spacing: 0.15em; color: var(--rt-color-accent-on-brand); }
.reveal-name { font-family: var(--rt-font-display); font-weight: var(--rt-weight-display); font-size: var(--rt-text-reveal); line-height: 0.95; letter-spacing: -0.02em; }
.reveal-card-title { font-family: var(--rt-font-display); font-weight: var(--rt-weight-display); font-size: var(--rt-text-reveal-title); }
.reveal-lede { font-size: var(--rt-text-subtitle); }
.reveal-note { font-size: var(--rt-text-body); color: var(--rt-color-accent-on-brand); }
.reveal-keys { font-size: var(--rt-text-caption); opacity: 0.8; margin-top: var(--rt-space-6); }
.round { width: 48px; height: 48px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--rt-media-control); color: var(--rt-color-media-text); text-decoration: none; }
.round.large { width: 56px; height: 56px; }
.round.play { background: var(--rt-color-reveal-control); color: var(--rt-color-reveal-control-text); }
.round:disabled { opacity: 0.35; cursor: default; }
.reveal-stage { position: fixed; inset: 0; background: var(--rt-color-media-canvas); }
.reveal-stage video { width: 100%; height: 100%; object-fit: contain; }
.reveal-stage .reveal-top { justify-content: space-between; background: linear-gradient(var(--rt-scrim-strong), transparent); }
.reveal-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--rt-space-3); text-align: center; padding: var(--rt-space-6); }
.reveal-overlay .loading { color: var(--rt-color-media-text); }
.segments { display: flex; gap: 4px; flex: 1; max-width: 640px; }
.segments > span { flex: 1; height: 4px; border-radius: var(--rt-radius-pill); background: var(--rt-media-track); overflow: hidden; }
.segments > span > span { display: block; height: 100%; background: var(--rt-color-media-text); }
.reveal-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--rt-space-4); flex-wrap: wrap;
  padding: var(--rt-space-6) var(--rt-space-4); background: linear-gradient(transparent, var(--rt-scrim-media)); color: var(--rt-color-media-text); }
.reveal-clip-name { font-family: var(--rt-font-display); font-weight: var(--rt-weight-display); font-size: var(--rt-text-title); }
.reveal-end { width: min(720px, 100%); padding: var(--rt-space-12) var(--rt-space-4); background: var(--rt-color-canvas); color: var(--rt-color-text); border-radius: var(--rt-radius-card); margin: var(--rt-space-4); }
.names { display: flex; flex-wrap: wrap; gap: var(--rt-space-2); }
.names li { padding: 6px 14px; border-radius: var(--rt-radius-pill); background: var(--rt-color-quiet); font-weight: 600; }
.picker { position: fixed; inset: 0; background: var(--rt-scrim-strong); display: flex; align-items: center; justify-content: center; padding: var(--rt-space-4); z-index: 10; }
.picker-panel { width: min(480px, 100%); max-height: 80vh; overflow: auto; background: var(--rt-color-canvas); color: var(--rt-color-text); border-radius: var(--rt-radius-card); padding: var(--rt-space-6); }
.picker-row { width: 100%; min-height: 48px; display: flex; justify-content: space-between; gap: var(--rt-space-3); border: 0; border-bottom: 1px solid var(--rt-color-hairline); background: transparent; text-align: left; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { .btn, .progress span { transition: none; } }

/* Arrange */
.arrangement-choices { display: grid; gap: var(--rt-space-2); margin: var(--rt-space-3) 0; }
.arrangement-choice { display: flex; align-items: flex-start; gap: var(--rt-space-3); min-height: 44px; padding: var(--rt-space-3); border: 1px solid var(--rt-color-hairline); border-radius: var(--rt-radius-sm); cursor: pointer; }
.arrangement-choice.selected { border-color: var(--rt-color-selected-border); background: var(--rt-color-canvas); outline: 2px solid var(--rt-color-selected-border); }
.arrangement-choice input { appearance: none; flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px; border: 1px solid var(--rt-color-control-border); border-radius: 50%; display: grid; place-content: center; }
.arrangement-choice input:checked { background: var(--rt-color-selected-indicator); border-color: var(--rt-color-selected-indicator); }
.arrangement-choice input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--rt-color-selected-indicator-text); border-bottom: 2px solid var(--rt-color-selected-indicator-text); transform: rotate(-45deg); }
.arrangement-choice input:focus-visible { outline: 3px solid var(--rt-color-selected-border); outline-offset: 3px; }
.card.pinned { border-style: solid; border-left: 4px solid var(--rt-color-selected-border); }

/* Setup: welcome, photo, invite preview, derived dates. */
.setup .accent-text { color: var(--rt-color-text-accent); }
.portrait { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.portrait-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--rt-color-avatar); color: var(--rt-color-avatar-text);
  font-family: var(--rt-font-display); font-weight: var(--rt-weight-display); font-size: var(--rt-text-heading); }
.invite-preview { border-width: 2px; }
.derived-dates { display: grid; gap: var(--rt-space-2); margin: 0; }
.derived-dates div { display: flex; justify-content: space-between; gap: var(--rt-space-3); }
.derived-dates dt { color: var(--rt-color-text-muted); }
.derived-dates dd { margin: 0; font-weight: var(--rt-weight-heavy); }
.setup h1:focus { outline: none; }

/* Gifts list and gift home (DA4) */
.stage-bar { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--rt-space-2); flex-wrap: wrap; }
.stage-step { display: inline-flex; align-items: center; gap: var(--rt-space-2); min-height: 32px; padding: 0 var(--rt-space-3); border-radius: var(--rt-radius-pill);
  font-size: var(--rt-text-caption); font-weight: 700; color: var(--rt-color-text-muted); border: 1px solid var(--rt-color-hairline); background: var(--rt-color-surface); }
.stage-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; display: inline-flex; align-items: center; justify-content: center; }
.stage-done { color: var(--rt-color-text); }
.stage-done .stage-dot { background: var(--rt-color-selected-indicator); border-color: var(--rt-color-selected-indicator); color: var(--rt-color-selected-indicator-text); }
.stage-current { color: var(--rt-color-text); border: 2px solid var(--rt-color-selected-border); }
.stage-current .stage-dot { background: var(--rt-color-selected-border); }
.stage-bar.compact .stage-step { min-height: 28px; }
.home-card { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.home-card-top { display: flex; align-items: center; gap: var(--rt-space-3); flex-wrap: wrap; }
.thumb-strip { display: flex; gap: var(--rt-space-2); }
.thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--rt-radius-lg); overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: var(--rt-color-quiet); color: var(--rt-color-text-muted); font-family: var(--rt-font-display); font-weight: var(--rt-weight-display); font-size: var(--rt-text-subtitle); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-thumb .thumb { width: 100%; height: 100%; border-radius: var(--rt-radius-lg); }
.next-up { display: flex; align-items: center; gap: var(--rt-space-2); padding-top: var(--rt-space-3); border-top: 1px solid var(--rt-color-hairline); color: var(--rt-color-text-accent); }
.next-up .eyebrow { margin: 0; }
.next-up strong { flex: 1; }
.sent-section .sent-row { display: flex; align-items: center; gap: var(--rt-space-3); min-height: 48px; padding: var(--rt-space-2) 0; color: inherit; text-decoration: none; }
.sent-section .sent-row:hover strong { text-decoration: underline; }
.home-header { padding: var(--rt-space-6); }
.home-header-top { display: flex; align-items: center; gap: var(--rt-space-4); flex-wrap: wrap; }
.home-header-text { flex: 1 1 240px; min-width: 0; }
.portrait-large { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--rt-color-avatar);
  color: var(--rt-color-avatar-text); font-family: var(--rt-font-display); font-weight: var(--rt-weight-display); font-size: var(--rt-text-heading); }
.due-panel { padding: var(--rt-space-4); border-radius: var(--rt-radius-lg); background: var(--rt-color-status-warning-bg); color: var(--rt-color-status-warning); }
.story-hidden .story-thumb { opacity: 0.6; }
.story-actions { padding: 0 var(--rt-space-2) var(--rt-space-2); display: flex; justify-content: flex-end; }
.on-brand-link { color: inherit; text-decoration: underline; }
.crumbs-home a { display: inline-flex; align-items: center; min-height: 44px; }
