:root {
  --ink: #211e35;
  --muted: #5e596f;
  --paper: #ffffff;
  --surface: #f6f4fb;
  --line: #7f788e;
  --line-soft: #ded9e9;
  --accent: #5b4d9b;
  --accent-dark: #403373;
  --accent-soft: #ece8fa;
  --danger: #9c2f36;
  --danger-soft: #fff0f1;
  --warm: #6b4a05;
  --warm-soft: #fff6dc;
  --success: #245f42;
  --shadow: 0 18px 50px rgba(35, 28, 67, 0.1);
  --radius: 22px;
}

body[data-accent="ocean"] {
  --accent: #0b6477;
  --accent-dark: #064653;
  --accent-soft: #dff4f6;
}

body[data-accent="forest"] {
  --accent: #356346;
  --accent-dark: #244a32;
  --accent-soft: #e3f1e8;
}

body[data-accent="sunset"] {
  --accent: #9e3d39;
  --accent-dark: #762a28;
  --accent-soft: #fae7e3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, var(--accent-soft), transparent 26rem),
    linear-gradient(180deg, #fbfaff 0%, var(--surface) 100%);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

button, input, textarea, select { font: inherit; }

button, a, input, textarea, select { outline-offset: 3px; }

:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-180%);
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
}

.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup { display: flex; align-items: center; gap: 0.8rem; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.65rem;
}

.brand-name { margin: 0; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }

.eyebrow {
  margin: 0 0 0.22rem;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.local-badge {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

main { max-width: 960px; margin: 0 auto; padding: 0 1.25rem 4rem; }

.setup-shell { max-width: 920px; margin: 1rem auto 4rem; }

.setup-card, .card, .dialog-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.setup-card { padding: clamp(1.4rem, 4vw, 3rem); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; }
h1 { margin: 0.25rem 0 0.75rem; font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { margin: 0.2rem 0 0.65rem; font-size: clamp(1.35rem, 3vw, 1.85rem); }

.lede { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.06rem; }

.field-grid { display: grid; gap: 1rem; }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.field, .field-group { margin-top: 1.25rem; }

.field label, .field-group legend, .plain-fieldset legend, .compact-label {
  color: var(--ink);
  font-weight: 800;
}

.field label { display: block; margin-bottom: 0.4rem; }

input[type="text"], input[type="tel"], input[type="time"], input[type="number"], textarea, select, .field input:not([type]) {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0.72rem 0.8rem;
}

textarea { resize: vertical; min-height: 84px; }

input:focus, textarea:focus, select:focus { border-color: var(--accent); }

.field-help, .card-copy, .fine-print { color: var(--muted); }
.field-help { margin: 0.35rem 0 0; font-size: 0.86rem; }
.fine-print { font-size: 0.82rem; }
.optional { color: inherit; font-weight: 500; font-size: 0.85em; }

fieldset { border: 0; padding: 0; min-width: 0; }
.field-group { border-top: 1px solid var(--line-soft); padding-top: 1.2rem; }
.field-group legend { padding: 0 0.35rem 0 0; }
.plain-fieldset { margin: 0; }
.spaced-group { margin-top: 1.5rem; }

.option-row, .check-grid, .chip-grid, .segmented, .form-actions, .dialog-actions, .storm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.option-row, .check-grid { margin-top: 0.75rem; }

.radio-card, .check-card, .segmented label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.65rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.radio-card:has(input:checked), .check-card:has(input:checked), .segmented label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

input[type="checkbox"], input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button:disabled { opacity: 0.48; cursor: not-allowed; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--accent-dark); }
.button-secondary { border-color: var(--accent); background: #fff; color: var(--accent-dark); }
.button-secondary:hover:not(:disabled) { background: var(--accent-soft); }
.button-danger { background: var(--danger); color: #fff; }
.button-wide { width: 100%; margin-top: 1.6rem; min-height: 52px; }

.text-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  padding: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.danger-text { color: var(--danger); }

.notice {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.notice-error { border-color: var(--danger); background: var(--danger-soft); color: #651b22; }
.notice-warm { border-color: #9b6b05; background: var(--warm-soft); color: var(--warm); }
.notice-neutral { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.app-notice { margin-bottom: 1rem; }
.notice-copy { margin: 0 0 0.7rem; }

.connection-banner {
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 1rem;
  text-align: center;
  font-weight: 700;
}

.hero {
  min-height: 230px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 15%, var(--accent-soft));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.weather-orb {
  width: clamp(110px, 22vw, 180px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  padding: 16px;
  background: linear-gradient(145deg, #fff, var(--accent-soft));
  box-shadow: inset -18px -18px 36px rgba(0, 0, 0, 0.08), 0 22px 50px rgba(37, 32, 68, 0.15);
}

.weather-orb span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.88;
}

.tab-list {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 0.35rem;
  margin: 1rem 0;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px rgba(35, 28, 67, 0.08);
}

.tab-list button {
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.tab-list button[aria-selected="true"] { background: var(--accent); color: #fff; }

.tab-panel { scroll-margin-top: 5rem; }
/* Suppress the ring only for pointer focus; keyboard focus on a tabindex="0"
   panel must stay visible or arrow-key tab navigation lands nowhere. */
.tab-panel:focus:not(:focus-visible) { outline: none; }

.card { margin-top: 1rem; padding: clamp(1.2rem, 4vw, 2rem); }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.current-card { border-color: var(--accent); }
.current-weather { margin: 0; font-size: 1.2rem; font-weight: 800; }

.letter-card #letterBody {
  margin-top: 0.85rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.day-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0.15rem;
}

.day-dock .button {
  flex: 1 1 12rem;
  min-height: 52px;
}

.storm-dock {
  position: sticky;
  top: 4.8rem;
  z-index: 20;
  margin: 0.75rem 0;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.storm-button {
  pointer-events: auto;
  min-height: 52px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(33, 30, 53, 0.25);
}

.chip-grid { margin-top: 0.65rem; }

.chip {
  min-width: 92px;
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }

.segmented { margin-top: 0.65rem; }
.segmented label { flex: 1 1 130px; justify-content: center; }


.dial-list { display: grid; gap: 1rem; margin-top: 1rem; }
.dial-row { border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.dial-row:first-child { border-top: 0; padding-top: 0; }
.include-label { min-height: 44px; display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; }
.range-label { display: block; margin: 0.35rem 0; color: var(--muted); }
input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--accent); }

.form-actions { margin-top: 1.25rem; align-items: center; }
.file-button { cursor: pointer; }

.share-preview {
  min-height: 130px;
  margin: 1rem 0;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 1rem;
  color: var(--ink);
  font-family: inherit;
  white-space: pre-wrap;
}

.table-scroll { overflow-x: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { border-bottom: 1px solid var(--line); padding: 0.8rem 0.65rem; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.82rem; }
.compact-label { display: grid; gap: 0.25rem; min-width: 120px; }
.compact-label select { min-height: 44px; }
.table-action { min-height: 44px; border: 2px solid var(--danger); border-radius: 9px; background: #fff; color: var(--danger); cursor: pointer; padding: 0.45rem 0.7rem; }

.empty-state { color: var(--muted); font-style: italic; }

.crisis-card { border-color: var(--accent); }
.danger-card { border-color: #d38d93; }

.inline-form { display: flex; align-items: end; gap: 0.75rem; }
.grow { flex: 1 1 auto; }
.editable-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.editable-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem; }
.editable-item p { margin: 0; }
.item-meta { color: var(--muted); font-size: 0.82rem; }
.editable-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.edit-action { border-color: var(--accent); color: var(--accent-dark); }

.summary-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1rem; }
.summary-list dt { font-weight: 800; }
.summary-list dd { margin: 0; }

dialog {
  width: min(620px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  color: var(--ink);
  overflow: auto;
}

dialog::backdrop { background: rgba(22, 18, 42, 0.76); backdrop-filter: blur(5px); }
.dialog-card { padding: clamp(1.3rem, 4vw, 2rem); box-shadow: none; }
.dialog-actions { justify-content: flex-end; margin-top: 1.4rem; }

.storm-dialog {
  width: min(760px, 100%);
  max-width: none;
  min-height: 100%;
  max-height: 100%;
  border-radius: 0;
  background: #18152d;
  color: #fff;
}

.storm-dialog-inner { width: min(680px, 100%); margin: 0 auto; padding: max(2rem, env(safe-area-inset-top)) 1.25rem max(2rem, env(safe-area-inset-bottom)); }
.light-eyebrow { color: #d9d1ff; }
.light-copy { color: #e4e0f1; }

.breathing-orb {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 2rem auto 1rem;
  border-radius: 50%;
  background: #d6ccff;
  box-shadow: 0 0 60px rgba(214, 204, 255, 0.4);
  animation: breathe 11s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathe { 0%, 100% { transform: scale(0.78); opacity: 0.68; } 50% { transform: scale(1.08); opacity: 1; } }

.storm-pace, .storm-timer { text-align: center; }
.storm-timer { font-size: 2.4rem; font-variant-numeric: tabular-nums; margin: 0.4rem 0 1.6rem; }
.storm-helper-fieldset { margin-top: 1rem; }
.dark-checks .check-card { border-color: #9b95af; background: #211e38; color: #fff; }
.dark-checks .check-card:has(input:checked) { background: #41396d; border-color: #d6ccff; }
.dark-field label { color: #fff; }
.dark-field textarea { background: #211e38; color: #fff; border-color: #9b95af; }
.storm-resource { margin-top: 1.5rem; border-top: 1px solid #6d6682; padding-top: 1.2rem; }
.button-light { background: #fff; color: #201b3e; }
.button-outline-light { border-color: #fff; background: transparent; color: #fff; }
.storm-actions { justify-content: space-between; margin-top: 2rem; position: relative; z-index: 1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 100;
  transform: translateX(-50%);
  max-width: min(92vw, 620px);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
  font-weight: 700;
}

footer { max-width: 960px; margin: 0 auto; padding: 1rem 1.25rem 3rem; color: var(--muted); font-size: 0.82rem; text-align: center; }
.noscript { padding: 1rem; background: var(--danger-soft); color: var(--danger); }

@media (max-width: 760px) {
  .two-column, .three-column { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; }
  .local-badge { max-width: 135px; text-align: center; }
  .hero { min-height: 185px; }
  .weather-orb { width: 95px; }
  .tab-list { grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); overflow-x: auto; }
  .tab-list button { font-size: 0.8rem; padding: 0.4rem; }
  .storm-dock { top: 4.6rem; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .form-actions .button, .form-actions a.button { flex: 1 1 180px; }
}

@media (max-width: 500px) {
  main { padding-left: 0.8rem; padding-right: 0.8rem; }
  .site-header { padding-left: 0.9rem; padding-right: 0.9rem; }
  .brand-mark { width: 42px; height: 42px; }
  .hero { padding: 1.2rem; }
  .weather-orb { width: 72px; }
  .chip { flex: 1 1 42%; }
  .storm-actions .button { width: 100%; }
  .editable-item { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .breathing-orb { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --line: #5d5868; --line-soft: #8a8496; }
  .card, .setup-card { box-shadow: none; }
}

/* Weather Station visual restoration — v2.1 */
:root {
  color-scheme: dark;
  --night: #17142d;
  --night-deep: #0f0d20;
  --dusk: #4a3f78;
  --sky: #f4f2fb;
  --card: #262241;
  --card-raised: #2e294d;
  --ink: #f8f6ff;
  --muted: #b9b4d0;
  --line: #5f587d;
  --line-soft: #403a5d;
  --gold: #f2c66d;
  --coral: #ff897b;
  --sage: #83c9a4;
  --peri: #afa5ff;
  --accent: #afa5ff;
  --accent-dark: #c8c1ff;
  --accent-ink: #18142f;
  --accent-soft: rgba(175, 165, 255, 0.14);
  --danger: #ff928f;
  --danger-soft: rgba(232, 106, 94, 0.14);
  --warm: #f2c66d;
  --warm-soft: rgba(242, 184, 75, 0.13);
  --success: #83c9a4;
  --shadow: 0 22px 60px rgba(4, 3, 13, 0.34);
  --radius: 20px;
}

body[data-accent="ocean"] {
  --accent: #67cfe3;
  --accent-dark: #9be4f0;
  --accent-ink: #092b34;
  --accent-soft: rgba(103, 207, 227, 0.14);
}

body[data-accent="forest"] {
  --accent: #83c9a4;
  --accent-dark: #afe0c5;
  --accent-ink: #112d20;
  --accent-soft: rgba(131, 201, 164, 0.14);
}

body[data-accent="sunset"] {
  --accent: #ff897b;
  --accent-dark: #ffb3a9;
  --accent-ink: #3c1513;
  --accent-soft: rgba(255, 137, 123, 0.14);
}

html {
  min-width: 0;
  background: var(--night-deep);
  scrollbar-color: var(--line) var(--night-deep);
}

body {
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -8%, rgba(139, 127, 212, 0.31), transparent 31rem),
    radial-gradient(circle at 93% 7%, rgba(242, 184, 75, 0.1), transparent 24rem),
    linear-gradient(180deg, #1e1a39 0%, var(--night) 38%, var(--night-deep) 100%);
  background-attachment: fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image:
    radial-gradient(circle at 20% 22%, rgba(255,255,255,.7) 0 1px, transparent 1.4px),
    radial-gradient(circle at 74% 18%, rgba(255,255,255,.55) 0 1px, transparent 1.3px),
    radial-gradient(circle at 88% 58%, rgba(255,255,255,.42) 0 1px, transparent 1.3px),
    radial-gradient(circle at 32% 78%, rgba(255,255,255,.36) 0 1px, transparent 1.3px);
  background-size: 23rem 19rem, 31rem 27rem, 37rem 32rem, 43rem 38rem;
}

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline-color: var(--gold); }

.skip-link {
  border: 1px solid var(--gold);
  background: var(--night-deep);
  color: var(--ink);
  font-weight: 800;
}

.connection-banner {
  border-bottom: 1px solid rgba(242, 198, 109, 0.5);
  background: #332b1d;
  color: #fff3d7;
}

.site-header {
  max-width: 1120px;
  padding: max(1.2rem, env(safe-area-inset-top)) 1.5rem 1.1rem;
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 32% 28%, #fff6d8 0 5%, transparent 6%),
    linear-gradient(145deg, var(--gold), var(--peri));
  color: var(--night);
  box-shadow: 0 0 0 6px rgba(175, 165, 255, 0.06), 0 8px 28px rgba(2, 1, 10, 0.32);
}

.brand-name {
  color: #fff;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.eyebrow { color: var(--accent-dark); letter-spacing: 0.14em; }

.local-badge {
  position: relative;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(20, 17, 38, 0.64);
  padding-left: 1.8rem;
  color: var(--muted);
  box-shadow: 0 10px 30px rgba(4, 3, 13, 0.2);
  backdrop-filter: blur(14px);
}

.local-badge::before {
  position: absolute;
  left: 0.78rem;
  top: 50%;
  width: 0.48rem;
  height: 0.48rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(131, 201, 164, 0.12);
  content: "";
}

main { max-width: 1080px; }
.setup-shell { max-width: 940px; }

.setup-card, .card, .dialog-card {
  position: relative;
  overflow: hidden;
  border-color: var(--line-soft);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 42%),
    linear-gradient(180deg, var(--card-raised), var(--card));
}

.setup-card::before, .card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent 74%);
  content: "";
}

.setup-card {
  border-top-color: rgba(175, 165, 255, 0.42);
  padding: clamp(1.5rem, 4.5vw, 3.25rem);
}

.setup-card::after {
  position: absolute;
  top: -7rem;
  right: -6rem;
  width: 18rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
  content: "";
}

h1, h2, h3 {
  color: #fff;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.028em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.lede { color: #d3cee3; }

.field label, .field-group legend, .plain-fieldset legend, .compact-label { color: #f5f2ff; }

input[type="text"], input[type="tel"], input[type="time"], input[type="number"], textarea, select, .field input:not([type]) {
  border-width: 1px;
  border-color: var(--line);
  background: rgba(13, 11, 29, 0.55);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

input::placeholder, textarea::placeholder { color: #9993ae; opacity: 1; }

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: rgba(13, 11, 29, 0.76);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.radio-card, .check-card, .segmented label {
  border-width: 1px;
  border-color: var(--line);
  background: rgba(14, 12, 30, 0.38);
  color: #eeeaf9;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.radio-card:hover, .check-card:hover, .segmented label:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.radio-card:has(input:checked), .check-card:has(input:checked), .segmented label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #fff;
}

.accent-violet { box-shadow: inset 0 3px 0 #afa5ff; }
.accent-ocean { box-shadow: inset 0 3px 0 #67cfe3; }
.accent-forest { box-shadow: inset 0 3px 0 #83c9a4; }
.accent-sunset { box-shadow: inset 0 3px 0 #ff897b; }

.button { border-width: 1px; transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }

.button-primary {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 9px 24px var(--accent-soft);
}

.button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #fff, var(--accent));
  box-shadow: 0 12px 30px var(--accent-soft);
}

.button-secondary {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.button-secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.09); }
.button-danger { background: var(--coral); color: #31100e; }
.text-button { color: var(--accent-dark); text-decoration-color: rgba(255, 255, 255, 0.3); }
.danger-text { color: var(--danger); }

.notice-error { border-color: var(--coral); background: var(--danger-soft); color: #ffd4cf; }
.notice-warm { border-color: var(--gold); background: var(--warm-soft); color: #ffe7ad; }
.notice-neutral { border-color: var(--accent); background: var(--accent-soft); color: #ebe8f7; }

.hero {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-color: rgba(175, 165, 255, 0.24);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 38%),
    radial-gradient(circle at 86% 24%, var(--accent-soft), transparent 19rem),
    linear-gradient(135deg, #302951 0%, #211c3e 55%, #17142d 100%);
}

.hero::before {
  position: absolute;
  right: 16%;
  bottom: -55%;
  width: 28rem;
  height: 18rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: rotate(-12deg);
  content: "";
}

.hero > div:first-child { position: relative; z-index: 1; }

.weather-orb {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.025));
  box-shadow: inset -16px -18px 42px rgba(0, 0, 0, 0.22), 0 24px 60px rgba(4, 3, 13, 0.4);
  animation: station-float 8s ease-in-out infinite;
}

.weather-orb::after {
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.weather-orb span {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.82), transparent 8%),
    linear-gradient(145deg, var(--accent-dark), var(--accent) 58%, var(--dusk));
  box-shadow: 0 0 45px var(--accent-soft);
}

.weather-orb span::before {
  position: absolute;
  width: 68%;
  height: 26%;
  left: -8%;
  top: 49%;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  filter: blur(3px);
  content: "";
}

@keyframes station-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.tab-list {
  top: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  overflow-x: auto;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(19, 16, 36, 0.88);
  box-shadow: 0 12px 34px rgba(2, 1, 9, 0.34);
  scrollbar-width: none;
}

.tab-list::-webkit-scrollbar { display: none; }

.tab-list button { position: relative; color: var(--muted); }

.tab-list button::after {
  position: absolute;
  right: 28%;
  bottom: 0.35rem;
  left: 28%;
  height: 2px;
  transform: scaleX(0);
  border-radius: 2px;
  background: var(--accent);
  content: "";
  transition: transform 160ms ease;
}

.tab-list button:hover { color: #fff; background: rgba(255, 255, 255, 0.045); }

.tab-list button[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.tab-list button[aria-selected="true"]::after { transform: scaleX(1); }

.tab-panel { --section-accent: var(--accent); }
#panelToday { --section-accent: var(--gold); }
#panelToolkit { --section-accent: var(--coral); }
#panelNote { --section-accent: var(--peri); }

.tab-panel > .card::before, .tab-panel > form > .card::before {
  background: linear-gradient(180deg, var(--section-accent), transparent 74%);
}

.card:hover { border-color: rgba(255, 255, 255, 0.17); }

.current-card {
  border-color: rgba(242, 198, 109, 0.46);
  background:
    radial-gradient(circle at 92% 10%, rgba(242, 198, 109, 0.13), transparent 16rem),
    linear-gradient(180deg, #302b4b, #27223f);
}

.current-weather { color: #fff2cf; }

.letter-card {
  border-color: rgba(242, 198, 109, 0.32);
  background:
    radial-gradient(circle at 8% 0%, rgba(242, 198, 109, 0.1), transparent 18rem),
    linear-gradient(180deg, #302b4b, #27223f);
}

.letter-card #letterBody { color: #efe8d6; }

.day-dock .button-primary {
  box-shadow: 0 12px 28px rgba(3, 2, 12, 0.32);
}

.storm-button {
  border-color: rgba(242, 198, 109, 0.4);
  background: linear-gradient(135deg, #302a52, #17142d);
  color: #fff3d5;
  box-shadow: 0 14px 34px rgba(3, 2, 12, 0.42);
}

.storm-button::before { margin-right: 0.5rem; color: var(--gold); content: "◌"; }

.chip {
  border-width: 1px;
  border-color: var(--line);
  background: rgba(13, 11, 29, 0.43);
  color: #e9e5f4;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.chip:hover { border-color: var(--accent); transform: translateY(-1px); }

.chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 7px 20px var(--accent-soft);
}

.include-label { color: #f3effd; }

.share-preview {
  min-height: 145px;
  border-width: 1px;
  border-left: 3px solid var(--peri);
  background: rgba(12, 10, 26, 0.62);
  color: #f5f2ff;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  line-height: 1.65;
}

.table-scroll {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(12, 10, 26, 0.28);
}

th, td { border-color: var(--line-soft); }
th { color: var(--sage); letter-spacing: 0.08em; text-transform: uppercase; }
tbody tr:hover { background: rgba(131, 201, 164, 0.055); }

.table-action {
  border-width: 1px;
  border-color: var(--coral);
  background: rgba(232, 106, 94, 0.09);
  color: #ffaaa0;
}

.crisis-card {
  border-color: rgba(255, 137, 123, 0.44);
  background:
    radial-gradient(circle at 94% 10%, rgba(255, 137, 123, 0.12), transparent 16rem),
    linear-gradient(180deg, var(--card-raised), var(--card));
}

.danger-card {
  border-color: rgba(255, 137, 123, 0.38);
  background:
    linear-gradient(145deg, rgba(255, 137, 123, 0.06), transparent 38%),
    linear-gradient(180deg, #302341, #251d35);
}

.editable-item {
  border-color: var(--line-soft);
  background: rgba(12, 10, 26, 0.28);
}

.edit-action { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.summary-list dt { color: var(--accent-dark); }

dialog {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0,0,0,.58);
}

dialog::backdrop { background: rgba(7, 5, 18, 0.84); }

.storm-dialog {
  border: 0;
  background:
    radial-gradient(circle at 50% 14%, rgba(242, 198, 109, 0.11), transparent 22rem),
    linear-gradient(180deg, #1c1836, #0e0c1d);
}

.light-eyebrow { color: var(--gold); }
.light-copy { color: #d4cfe2; }

.breathing-orb {
  border: 1px solid rgba(242, 198, 109, 0.72);
  background:
    radial-gradient(circle, rgba(242, 198, 109, 0.5), rgba(175, 165, 255, 0.14) 54%, transparent 57%);
  box-shadow: 0 0 72px rgba(242, 198, 109, 0.2);
}

.breathing-orb::after {
  position: absolute;
  inset: -11px;
  border: 1px solid rgba(175, 165, 255, 0.26);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.storm-timer {
  color: #fff1c9;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 2.7rem;
}

.dark-checks .check-card { border-color: #625b82; background: rgba(30, 26, 54, 0.72); }
.dark-checks .check-card:has(input:checked) { border-color: var(--gold); background: rgba(242, 198, 109, 0.12); }
.dark-field textarea { border-color: #625b82; background: rgba(19, 16, 37, 0.84); }
.button-light { background: var(--gold); color: #35270a; }
.button-outline-light { border-color: #dcd6ed; color: #fff; }

.toast {
  border: 1px solid rgba(255,255,255,.15);
  background: var(--night-deep);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.44);
}

footer { max-width: 1080px; color: #9d97b4; }
.noscript { background: #4a2028; color: #ffe0dc; }

@media (max-width: 760px) {
  .site-header { padding-inline: 1rem; }
  main { padding-inline: 1rem; }
  .hero { min-height: 210px; }
  .tab-list { grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); }
}

@media (max-width: 500px) {
  .brand-name { font-size: 1.13rem; }
  /* 12px floor: below it, uppercase tracking turns labels into texture. */
  .site-header .eyebrow { font-size: 0.75rem; }
  .local-badge { max-width: 130px; padding-left: 1.65rem; font-size: 0.78rem; }
  .local-badge::before { left: 0.65rem; }
  .setup-card, .card { border-radius: 17px; }
  .hero { min-height: 198px; gap: 0.7rem; border-radius: 20px; }
  .hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .hero .lede { font-size: 0.92rem; }
  .tab-list { top: 0.35rem; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); }
  .storm-button { width: 100%; }
  .day-dock { flex-direction: column; }
  .day-dock .button { width: 100%; flex-basis: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .button, .form-actions a.button { width: 100%; flex-basis: auto; }
  .editable-item { align-items: flex-start; flex-direction: column; }
  .editable-actions { width: 100%; }
  .summary-list { grid-template-columns: 1fr; gap: 0.15rem; }
  .summary-list dd { margin-bottom: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .weather-orb { transform: none; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #e0dced;
    --line: #a8a0c2;
    --line-soft: #736b91;
  }

  .card, .setup-card, .dialog-card, .tab-list { box-shadow: none; }
}

/* Recipient's first open — the screen gives before it asks, and records nothing.
   Deliberately free of animation and transition: this view must be identical under reduced motion. */
.first-open-shell, .departed-shell { max-width: 720px; margin: 1rem auto 4rem; }

.first-open-card, .departed-card { padding: clamp(1.5rem, 5vw, 3rem); }

.first-open-parable {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  line-height: 1.34;
  text-wrap: pretty;
}

.first-open-parable-tail {
  margin: 0.9rem 0 0;
  max-width: 46ch;
  color: var(--ink);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.6;
}

.first-open-facts {
  max-width: 62ch;
  margin-top: clamp(1.6rem, 5vw, 2.4rem);
  padding-top: clamp(1.4rem, 4vw, 1.9rem);
  border-top: 1px solid var(--line-soft);
}

.first-open-facts p { margin: 0 0 1rem; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.first-open-facts p:last-child { margin-bottom: 0; }

.first-open-actions { margin-top: clamp(1.6rem, 5vw, 2.3rem); }

/* When a letter was left, it is the first thing they see. Markup still
   leads with the parable (tests pin that). Visual order is letter, doors,
   then the house/sky as a breath. */
.first-open-card.has-gift-letter {
  display: flex;
  flex-direction: column;
}
.first-open-card.has-gift-letter .first-open-letter {
  order: -3;
  margin-top: 0;
  margin-bottom: 1.2rem;
  padding: clamp(1.3rem, 4vw, 2rem);
  border-color: rgba(242, 198, 109, 0.28);
  background: linear-gradient(180deg, #2c2742 0%, #241f38 100%);
}
.first-open-card.has-gift-letter .first-open-letter::before { content: none; }
.first-open-card.has-gift-letter .first-open-letter #firstOpenLetter {
  font-size: 1.2rem;
  line-height: 1.75;
}
.first-open-card.has-gift-letter #firstOpenError { order: -2; }
.first-open-card.has-gift-letter .first-open-actions {
  order: -1;
  margin-top: 0.2rem;
  margin-bottom: 1.8rem;
}
.first-open-card.has-gift-letter .first-open-parable {
  margin-top: 0.4rem;
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
}
.first-open-card.has-gift-letter::before,
.first-open-card.has-gift-letter::after { content: none; }

.departed-card h1 { margin: 0; font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.departed-card h1:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.departed-card .lede { margin-top: 0.85rem; }

/* The header badge claims data is stored here; after the decline that is no longer true. */
body.is-departed .site-header { display: none; }

@media (max-width: 500px) {
  .first-open-parable, .first-open-facts, .first-open-parable-tail { max-width: none; }
}

@media (orientation: landscape) and (max-height: 540px) {
  .first-open-shell, .departed-shell { margin: 0.5rem auto 2rem; }
  .first-open-card, .departed-card { padding: clamp(1.1rem, 3.5vw, 1.8rem); }
  .first-open-parable { max-width: 54ch; font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
  .first-open-parable-tail { margin-top: 0.6rem; max-width: none; font-size: 1rem; }
  .first-open-facts { max-width: none; margin-top: 1.1rem; padding-top: 1rem; }
  .first-open-facts p { margin-bottom: 0.7rem; font-size: 0.95rem; line-height: 1.55; }
  .first-open-actions { margin-top: 1.2rem; }
}

/* The shelf: static parables in the Toolkit. Borders, not boxes, so seven short pieces
   read as one quiet column rather than competing cards. Lives in the active theme
   layer on purpose — rules above the v2.1 restoration block read dead tokens. */
.parable { color: var(--ink); border-top: 1px solid var(--line-soft); padding-top: 0.9rem; margin: 0.9rem 0 0; max-width: 62ch; }

/* Notes from the giver: rendered only on deliberate navigation. No date, no
   time, no counter, and nothing here may animate into attention. */
.note-attribution { margin: 0 0 0.5rem; font-size: 1.15rem; }
.note-bank-line { margin: 0.35rem 0; font-size: 1.15rem; max-width: 62ch; }
.note-giver-line { margin: 0.35rem 0 0; color: var(--ink); max-width: 62ch; }
.note-card .fine-print { margin: 1rem 0 0; }
.note-replace-warning { margin: 0.9rem 0 0; color: var(--warm); }
.note-disable-foot { margin-top: 2rem; }

/* One word back: its own block below the note area, never adjacent to the daily
   reading. Eight chips of identical weight — no ordering cue, no severity
   colour, nothing that animates into attention. */
.signal-enable { margin-top: 1.2rem; }
.signal-enable .check-card { justify-content: flex-start; text-align: left; }
.signal-block { margin-top: 1.5rem; }
.signal-copy { margin: 0 0 0.4rem; max-width: 62ch; color: var(--ink); }
.signal-chips { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
/* Held while a send is in flight, so a tap that has not resolved is visible
   without claiming an outcome it does not have yet. */
.signal-chips .chip:disabled { opacity: 0.55; cursor: default; }

/* Give-side restorations: cards that offer something before they ask. */
.give-card .give-line {
  margin: 0.7rem 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.55;
}

.weather-mirror {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.storm-ledger {
  margin: 0.7rem 0 0;
  color: var(--gold);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.05rem;
}

.item-list { display: grid; gap: 0.65rem; margin-top: 0.85rem; }
.item-list:empty { display: none; }
.item-meta { color: var(--muted); font-size: 0.85rem; }

.crisis-risk { margin: 0.75rem 0 0.2rem; }

.sandbox-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
}

.banner-link {
  color: inherit;
  font-weight: 800;
}

.storm-pace {
  margin: 0.15rem 0 1.2rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2rem, 8vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.storm-sounds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 0 0 1.2rem;
}

body[data-sandbox="1"] .site-header { border-bottom: 2px solid var(--gold); }

/* Front door. Shown only to unconfigured visitors. A configured station never
   paints this surface — the view starts hidden and JS leaves it that way. */
.landing-shell { max-width: 720px; margin: 1rem auto 4rem; padding: 0 1rem; }
.landing-hero { margin: 0.5rem 0 1.6rem; }
.landing-hero .lede { max-width: 46ch; }
.landing-actions { margin: 1.4rem 0 0.6rem; align-items: center; }
.landing-canon-line,
#landingCookies {
  max-width: 52ch;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.landing-letter {
  margin: 0 0 1.6rem;
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid rgba(242, 198, 109, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #2c2742 0%, #241f38 100%);
}
.landing-letter::before { display: none; }
.landing-letter h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #efe8d6;
}
.landing-sample {
  margin: 0.85rem 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.7;
  color: #efe8d6;
}
.landing-quiet-line {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 52ch;
}
.landing-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 0.4rem;
}
.landing-code-row input {
  max-width: 16rem;
  min-height: 44px;
  flex: 1 1 12rem;
}
.landing-code-row .button {
  min-height: 44px;
}
.landing-return { margin: 0 0 0.8rem; }
body.is-landing .local-badge { display: none !important; }
body.is-landing {
  background: linear-gradient(180deg, #1a1730 0%, var(--night-deep) 100%);
}
body.is-landing::before { opacity: 0.08; }
body.is-landing .brand-mark {
  background: var(--accent);
  box-shadow: none;
  color: var(--accent-ink);
}

#claimView .setup-card::before,
#claimView .setup-card::after { content: none; }

.claim-sheet {
  padding: clamp(1.5rem, 5vw, 2.6rem);
  border: 1px solid rgba(242, 198, 109, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, #2c2742 0%, #241f38 100%);
}
.claim-sheet h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
}
.claim-sheet .lede {
  margin: 0.7rem 0 0;
  max-width: 28ch;
  color: #efe8d6;
}
.claim-code-field { margin-top: 1.5rem; }
.claim-code-field label {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  color: #efe8d6;
}
.claim-code-field input {
  min-height: 56px;
  border-color: rgba(239, 232, 214, 0.28);
  background: rgba(12, 10, 26, 0.28);
  color: #efe8d6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.15rem, 3.6vw, 1.45rem);
  letter-spacing: 0.12em;
}
.claim-age {
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
}
.claim-age legend {
  padding: 0;
  color: #efe8d6;
  font-size: 1rem;
}
.claim-age .field-help { margin: 0.35rem 0 0.7rem; color: var(--muted); }
.claim-sheet .radio-card {
  background: transparent;
  border-color: rgba(239, 232, 214, 0.22);
}
.claim-sheet .form-actions { margin-top: 1.4rem; }

@media (max-width: 500px) {
  .landing-shell { margin: 0.5rem auto 2rem; }
}

/* One word back: its own block below the note area, never adjacent to the daily
   reading. Eight chips of identical weight — no ordering cue, no severity
   colour, nothing that animates into attention. */
.signal-enable { margin-top: 1.2rem; }
.signal-enable .check-card { justify-content: flex-start; text-align: left; }
.signal-block { margin-top: 1.5rem; }
.signal-copy { margin: 0 0 0.4rem; max-width: 62ch; color: var(--ink); }
.signal-chips { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
/* Held while a send is in flight, so a tap that has not resolved is visible
   without claiming an outcome it does not have yet. */
.signal-chips .chip:disabled { opacity: 0.55; cursor: default; }
.signal-sent { margin: 1rem 0 0; font-size: 1.1rem; }
.signal-failed { margin: 1rem 0 0; color: var(--muted); max-width: 62ch; }
.signal-foot { margin-top: 1.75rem; }

.first-open-letter {
  margin: 1.4rem 0 0;
  padding: clamp(1.1rem, 3vw, 1.6rem);
}
.first-open-letter #firstOpenLetter {
  margin-top: 0.6rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.7;
  white-space: pre-wrap;
  color: #efe8d6;
}
