/* 100% Original Design System for Our Advent With Friends (ouradventwithfriends.com) */
:root {
  --bg-page: #18100d;
  --bg-hero-top: #26140f;
  --bg-hero-bottom: #18100d;
  --surface-paper: #fbf3e4;
  --surface-paper-soft: rgba(251, 243, 228, 0.96);
  --surface-glass: rgba(255, 248, 236, 0.08);
  --ink-dark: #231510;
  --ink-muted: #62493f;
  --text-on-dark: #fff8ec;
  --text-on-dark-muted: #e3c8b2;
  --accent-primary: #b6322b;
  --accent-primary-hover: #99231d;
  --accent-warm: #e07a38;
  --accent-gold: #f7d794;
  --border-subtle: rgba(247, 215, 148, 0.24);
  --pocket-filled-bg: linear-gradient(160deg, #b6322b 0%, #871f1a 100%);
  --pocket-empty-bg: rgba(255, 248, 236, 0.09);
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 18px 42px rgba(9, 4, 2, 0.34);
}

[data-active-theme="aurora"] {
  --bg-hero-top: #0e2439;
  --bg-hero-bottom: #091523;
  --text-on-dark: #f2fbff;
  --text-on-dark-muted: #b5d6e6;
  --accent-primary: #1f7a73;
  --accent-primary-hover: #175e58;
  --accent-warm: #3cc8b4;
  --accent-gold: #9ef0df;
  --pocket-filled-bg: linear-gradient(160deg, #1f7a73 0%, #144e52 100%);
}

[data-active-theme="postcard"] {
  --bg-hero-top: #233a2f;
  --bg-hero-bottom: #15241d;
  --text-on-dark: #fbf5ea;
  --text-on-dark-muted: #cbe0d2;
  --accent-primary: #9e2f2b;
  --accent-primary-hover: #7f221f;
  --accent-warm: #d49b38;
  --accent-gold: #f3d28d;
  --pocket-filled-bg: linear-gradient(160deg, #9e2f2b 0%, #6e1d1a 100%);
}

[data-active-theme="townhouse"] {
  --bg-hero-top: #101e36;
  --bg-hero-bottom: #0b1322;
  --text-on-dark: #fff9ed;
  --text-on-dark-muted: #c2d1e8;
  --accent-primary: #c95b2b;
  --accent-primary-hover: #a8481e;
  --accent-warm: #f0b44c;
  --accent-gold: #ffe099;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-on-dark);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* Top Site Header — blends naturally into full-bleed hero without hard border box */
.site-header {
  position: relative;
  z-index: 20;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.nav-link {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.08);
}

.btn-header-pill {
  background: rgba(255, 248, 236, 0.12);
  color: var(--text-on-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-header-pill:hover {
  background: rgba(255, 248, 236, 0.2);
}

/* Hero Stage — Seamless full-viewport blend (HO02 principle: zero outer box splitting screen) */
.hero-stage {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 24% 22%, rgba(224, 122, 56, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-hero-top) 0%, var(--bg-hero-bottom) 100%);
  padding: 10px 24px 58px;
}

.mantle-garland {
  max-width: 1200px;
  margin: 0 auto 8px;
  color: #2f6f4e;
  opacity: 0.85;
}

.garland-svg {
  width: 100%;
  height: 36px;
  display: block;
}

.hero-hearth-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.88fr);
  gap: 38px;
  align-items: start;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.eyebrow-row--centered {
  justify-content: center;
}

.season-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(247, 215, 148, 0.16);
  color: var(--accent-gold);
}

.code-pill-link {
  font-size: 0.84rem;
  color: var(--text-on-dark-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.95rem, 3.5vw, 2.85rem);
  line-height: 1.14;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}

.hero-h1--centered {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-lead {
  margin: 0 0 20px;
  font-size: 1.04rem;
  color: var(--text-on-dark-muted);
  max-width: 620px;
}

.hero-lead--centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.sample-wall-header {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--accent-gold);
}

/* Variant A: Cozy Hearth & Wax-Seal Pockets Grid */
.pocket-cord-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pocket-cord-grid--24 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.hearth-pocket {
  position: relative;
  border-radius: 15px;
  padding: 10px 8px;
  min-height: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 1.5px dashed rgba(255, 248, 236, 0.25);
  background: var(--pocket-empty-bg);
  color: var(--text-on-dark);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  font-family: inherit;
}

.pocket-cord-grid--24 .hearth-pocket {
  min-height: 88px;
  padding: 7px 5px;
}

.hearth-pocket:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
}

.hearth-pocket.is-filled {
  border-style: solid;
  border-color: rgba(247, 215, 148, 0.6);
  background: var(--pocket-filled-bg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

.hearth-pocket.is-selected,
.town-window.is-selected {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

.pocket-twine-clip {
  width: 8px;
  height: 12px;
  border-radius: 3px;
  background: #d49b38;
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.pocket-day-tag {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.9;
}

.pocket-sticker svg {
  width: 34px;
  height: 34px;
  display: block;
}

.pocket-cord-grid--24 .pocket-sticker svg {
  width: 26px;
  height: 26px;
}

.pocket-plus {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--accent-gold);
  line-height: 1;
}

.pocket-from {
  font-size: 0.76rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pocket-seal-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--accent-gold);
}

.pocket-seal-dot {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: rgba(247, 215, 148, 0.42);
}

.pocket-status-pip {
  font-size: 0.68rem;
  line-height: 1;
  color: var(--accent-gold);
  opacity: 0.9;
}

.window-sill--dot {
  height: 8px;
}

.breadcrumb-nav {
  max-width: 1200px;
  margin: 0 auto 10px;
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb-nav a {
  text-decoration: none;
  color: var(--accent-gold);
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.category-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.category-header-row h2 {
  margin: 0;
}

.song-card {
  background: #fffdf9;
  border: 1px solid rgba(35, 21, 16, 0.13);
  border-radius: 14px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.song-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.song-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink-dark);
}

.song-artist {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.sample-peek-toast {
  margin-top: 14px;
  padding: 11px 15px;
  border-radius: var(--radius-md);
  background: rgba(255, 248, 236, 0.1);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
  color: var(--text-on-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.peek-song-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(60, 200, 180, 0.2);
  color: #b9fff3;
  font-size: 0.79rem;
  font-weight: 600;
}

/* Creator Panel — Warm tactile parchment softly floating on the hearth stage */
.hearth-creator-column {
  background: var(--surface-paper-soft);
  color: var(--ink-dark);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}

.creator-kicker,
.panel-kicker {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-primary);
}

.creator-heading,
.panel-h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--ink-dark);
}

.creator-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.creator-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.creator-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-dark);
}

.creator-input,
.creator-select,
.creator-textarea {
  width: 100%;
  border-radius: 11px;
  border: 1.5px solid rgba(35, 21, 16, 0.2);
  background: #fffdf9;
  color: var(--ink-dark);
  padding: 10px 13px;
  font-size: 0.96rem;
  font-family: inherit;
}

.creator-input:focus,
.creator-select:focus,
.creator-textarea:focus {
  outline: 2px solid var(--accent-warm);
  border-color: transparent;
}

.spec-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.spec-pill {
  border-radius: 12px;
  border: 1.5px solid rgba(35, 21, 16, 0.18);
  background: #fffdf9;
  color: var(--ink-dark);
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: inherit;
}

.spec-pill strong {
  font-size: 0.92rem;
}

.spec-pill span {
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.spec-pill.is-active {
  border-color: var(--accent-primary);
  background: rgba(182, 50, 43, 0.09);
  box-shadow: inset 0 0 0 1px var(--accent-primary);
}

.theme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1.5px solid rgba(35, 21, 16, 0.18);
  background: #fffdf9;
  color: var(--ink-dark);
  padding: 6px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.theme-chip.is-active {
  border-color: var(--ink-dark);
  background: #efe2cd;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.swatch--hearth { background: linear-gradient(135deg, #b6322b, #e07a38); }
.swatch--aurora { background: linear-gradient(135deg, #0e2439, #3cc8b4); }
.swatch--postcard { background: linear-gradient(135deg, #233a2f, #d49b38); }

.btn-primary {
  border: none;
  border-radius: 12px;
  background: var(--accent-primary);
  color: #fffdf9;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.12s ease;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
}

.btn-secondary {
  border: 1.5px solid rgba(35, 21, 16, 0.22);
  border-radius: 11px;
  background: #fffdf9;
  color: var(--ink-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.83rem;
}

.btn-block {
  width: 100%;
}

.btn-story-poster {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2b1812 0%, #5c281c 100%);
  color: #fff8ec;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
}

.creator-microcopy {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tz-pill {
  font-weight: 600;
  color: var(--ink-dark);
}

/* Variant B: Glowing Townhouse Windows Architecture */
.hero-stage--townhouse {
  background: radial-gradient(circle at 50% 8%, rgba(240, 180, 76, 0.16), transparent 52%),
    linear-gradient(180deg, #0d182b 0%, #162642 62%, #0d1524 100%);
}

.townhouse-panorama {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  margin: 0 auto;
}

.townhouse-building {
  margin-top: 12px;
}

.roof-svg {
  width: 100%;
  height: 72px;
  display: block;
}

.townhouse-facade-body {
  background: linear-gradient(180deg, #1b2b46 0%, #142036 100%);
  padding: 20px 24px 24px;
  border-left: 2px solid rgba(255, 224, 153, 0.22);
  border-right: 2px solid rgba(255, 224, 153, 0.22);
}

.sample-wall-header--townhouse {
  text-align: center;
  margin-bottom: 16px;
}

.townhouse-window-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.townhouse-window-grid--24 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.town-window {
  background: transparent;
  border: none;
  padding: 0;
  color: #fff9ed;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.window-arch-num {
  font-size: 0.73rem;
  font-weight: 700;
  color: #c5d4eb;
}

.window-pane {
  position: relative;
  width: 100%;
  height: 78px;
  border-radius: 26px 26px 6px 6px;
  border: 2px solid rgba(197, 212, 235, 0.35);
  background: rgba(10, 18, 34, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.townhouse-window-grid--24 .window-pane {
  height: 64px;
}

.town-window.is-lit .window-pane {
  background: radial-gradient(circle at 50% 58%, #ffe39f 0%, #e79c3c 78%, #b8661f 100%);
  border-color: #ffe099;
  box-shadow: 0 0 22px rgba(240, 180, 76, 0.42);
}

.window-mullion {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 48.5%, rgba(24, 38, 59, 0.45) 48.5%, rgba(24, 38, 59, 0.45) 51.5%, transparent 51.5%),
    linear-gradient(180deg, transparent 48%, rgba(24, 38, 59, 0.45) 48%, rgba(24, 38, 59, 0.45) 52%, transparent 52%);
}

.window-silhouette svg {
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 1;
}

.window-dark-star {
  color: rgba(255, 224, 153, 0.55);
  font-size: 1.3rem;
}

.window-sill {
  width: 100%;
  background: rgba(238, 246, 250, 0.14);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.townhouse-doorstep-bar {
  background: #fbf3e4;
  color: var(--ink-dark);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 20px 24px 24px;
  box-shadow: var(--shadow-soft);
}

.stoop-lamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--ink-dark);
  font-size: 0.95rem;
}

.lamp-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f0b44c;
  box-shadow: 0 0 10px #f0b44c;
}

.creator-form--stoop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  align-items: end;
}

/* Subtle Ambient Motion (respecting prefers-reduced-motion) */
.ambient-layer,
.snow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ember,
.flake {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(247, 215, 148, 0.35);
  animation: floatUp 11s linear infinite;
}
.flake {
  background: rgba(255, 255, 255, 0.45);
  animation-name: snowFall;
}
.e1, .f1 { left: 10%; top: 75%; animation-delay: 0s; }
.e2, .f2 { left: 26%; top: 82%; animation-delay: 2s; }
.e3, .f3 { left: 45%; top: 70%; animation-delay: 4s; }
.e4, .f4 { left: 64%; top: 86%; animation-delay: 1.5s; }
.e5, .f5 { left: 79%; top: 76%; animation-delay: 3.5s; }
.e6, .f6 { left: 91%; top: 84%; animation-delay: 5s; }

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.9); opacity: 0; }
  25% { opacity: 0.65; }
  100% { transform: translateY(-240px) scale(1.2); opacity: 0; }
}

@keyframes snowFall {
  0% { transform: translateY(-220px); opacity: 0; }
  25% { opacity: 0.75; }
  100% { transform: translateY(240px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ember,
  .flake {
    animation: none;
  }
}

/* Personal Board Layout */
.board-stage {
  padding: 16px 24px 64px;
  background: linear-gradient(180deg, var(--bg-hero-top) 0%, var(--bg-hero-bottom) 100%);
  min-height: calc(100vh - 80px);
}

.webview-claim-banner,
.pending-claim-banner,
.outbox-status-banner {
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: #fff4d6;
  color: #38210a;
  border: 2px solid #e09b3d;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.webview-claim-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
}

.webview-claim-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.board-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.board-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.board-kicker {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.board-h1 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.board-progress-line {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
}

.board-code-badge {
  background: rgba(255, 248, 236, 0.12);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 13px;
  text-align: right;
  display: flex;
  flex-direction: column;
}

.board-code-badge span {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.board-code-badge strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  color: var(--accent-gold);
}

.owner-share-card,
.friend-composer-card,
.friend-success-card,
.friend-own-pocket-modal {
  background: var(--surface-paper-soft);
  color: var(--ink-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.friend-own-pocket-modal {
  margin-top: 14px;
}

.panel-desc {
  margin: -6px 0 2px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.share-url-box {
  display: flex;
  gap: 8px;
}

.quick-share-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.owner-toolkit-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.owner-pocket-reader {
  background: #fffdf9;
  border: 1.5px solid rgba(35, 21, 16, 0.14);
  border-radius: 14px;
  padding: 15px;
}

.reader-placeholder,
.reader-locked {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.unsealed-letter-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.letter-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.letter-body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--ink-dark);
  white-space: pre-wrap;
}

.music-card-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  background: #1a2634;
  color: #fff8ec;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.owner-danger-zone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(35, 21, 16, 0.12);
  font-size: 0.82rem;
}

.text-subtle-link {
  color: var(--ink-muted);
}

.btn-danger-link {
  background: none;
  border: none;
  color: #99231d;
  text-decoration: underline;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.selected-slot-banner {
  background: rgba(182, 50, 43, 0.09);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.sticker-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sticker-option {
  border-radius: 12px;
  border: 1.5px solid rgba(35, 21, 16, 0.16);
  background: #fffdf9;
  padding: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticker-option svg {
  width: 34px;
  height: 34px;
}

.sticker-option.is-active {
  border-color: var(--accent-primary);
  background: rgba(182, 50, 43, 0.1);
  box-shadow: inset 0 0 0 1px var(--accent-primary);
}

.label-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.anon-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  cursor: pointer;
}

.char-counter {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.field-help {
  margin: 2px 0 0;
  font-size: 0.79rem;
  color: var(--ink-muted);
}

.circle-friends-box {
  border-top: 1px solid rgba(35, 21, 16, 0.14);
  padding-top: 12px;
}

.circle-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.circle-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.circle-friend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 11px;
  background: #fffdf9;
  border: 1px solid rgba(35, 21, 16, 0.14);
  text-decoration: none;
  font-size: 0.88rem;
}

.circle-sticker svg {
  width: 26px;
  height: 26px;
  display: block;
}

.circle-go {
  margin-left: auto;
  font-weight: 700;
  color: var(--accent-primary);
}

.cross-promo-card {
  border-radius: 12px;
  padding: 12px;
  background: #f3e6cf;
  font-size: 0.84rem;
}
.cross-promo-title {
  margin: 0 0 4px;
  font-weight: 700;
}
.cross-promo-desc {
  margin: 0;
  color: var(--ink-muted);
}

/* Editorial SEO Body & Prompt Cards (Warm Cream Readability Layer) */
.editorial-main {
  background: #fbf5ea;
  color: var(--ink-dark);
  padding: 52px 24px 68px;
}

.editorial-container {
  max-width: 1040px;
  margin: 0 auto;
}

.editorial-section {
  margin-bottom: 44px;
}

.editorial-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  margin: 0 0 14px;
  color: var(--ink-dark);
}

.editorial-section h3 {
  font-size: 1.12rem;
  margin: 0 0 8px;
  color: var(--ink-dark);
}

.editorial-section p {
  margin: 0 0 14px;
  color: #3d2c24;
  max-width: 78ch;
}

.steps-grid,
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.info-card {
  background: #fffdf9;
  border: 1px solid rgba(35, 21, 16, 0.12);
  border-radius: 16px;
  padding: 18px;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.prompt-card {
  background: #fffdf9;
  border: 1px solid rgba(35, 21, 16, 0.13);
  border-radius: 14px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.prompt-quote {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-dark);
}

.prompt-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.inline-seed-cta {
  background: linear-gradient(135deg, #2b1610 0%, #4a2118 100%);
  color: #fff8ec;
  border-radius: 18px;
  padding: 22px 24px;
  margin: 28px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fffdf9;
  border: 1px solid rgba(35, 21, 16, 0.13);
  border-radius: 14px;
  padding: 16px 18px;
}

/* Code Lookup & Compliance Pages */
.narrow-card-shell {
  max-width: 680px;
  margin: 36px auto 64px;
  padding: 0 24px;
}

.code-entry-card {
  background: var(--surface-paper-soft);
  color: var(--ink-dark);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
}

.code-big-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.55rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: lowercase;
}

.error-callout {
  color: #99231d;
  background: rgba(182, 50, 43, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Footer (uses <p class="footer-heading"> — never h4/h5 so heading hierarchy stays pure) */
.site-footer {
  background: #140d0a;
  color: var(--text-on-dark-muted);
  border-top: 1px solid rgba(255, 248, 236, 0.1);
  padding: 40px 24px 56px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.bookmark-nudge {
  background: rgba(255, 248, 236, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--accent-gold);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.footer-heading {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.88rem;
}

.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
  color: var(--text-on-dark);
}

.footer-legal-line {
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 0;
}

/* My Calendars Modal Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 6, 4, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.drawer-backdrop[hidden] {
  display: none !important;
}

.drawer-panel {
  width: 100%;
  max-width: 480px;
  background: #fbf3e4;
  color: var(--ink-dark);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.drawer-cal-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.drawer-cal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #fffdf9;
  border: 1px solid rgba(35, 21, 16, 0.15);
  text-decoration: none;
}

.drawer-cal-item div {
  display: flex;
  flex-direction: column;
}
.drawer-cal-item span {
  font-size: 0.79rem;
  color: var(--ink-muted);
}

.drawer-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(47, 122, 88, 0.14);
  color: #1f5c3f;
}

/* Floating Prototype Switcher Bar (Dev-only, per .agents/skills/prototype/UI.md) */
.proto-floating-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  background: #10131a;
  color: #f8fafc;
  border: 2px solid #38bdf8;
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  max-width: calc(100vw - 24px);
}

.proto-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.proto-status-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
  font-size: 0.82rem;
}

.proto-pill-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
}

.proto-state-dump {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Global Toast */
.global-toast {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  z-index: 99;
  background: #1d1410;
  color: #fff8ec;
  border: 1.5px solid var(--accent-gold);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.global-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .hero-hearth-inner,
  .board-layout {
    grid-template-columns: 1fr;
  }
  .pocket-cord-grid--24,
  .townhouse-window-grid--24 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .pocket-cord-grid,
  .townhouse-window-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-header {
    padding: 12px 16px;
  }
  .hero-stage,
  .board-stage,
  .editorial-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}
