/* Speaker Guide: the client's look. A cream page, white cards, navy ink and a blue accent under a navy header; DM Sans
   throughout (bold for the big lines) and IBM Plex Mono for a few small labels. A conversation with Bill W. or Dr. Bob
   (The Parking Lot's History & Archives) keeps his portrait full screen and his words on a lined notepad. shell.css
   (loaded last) draws the header, the bottom navigation, the mini player and the full player. */
/* The client's palette: navy, blue, gold, cream, gray. Light (cream) is the usual look; the navy look is the choice
   in App Settings > Look. Same token names as before (every CSS file uses them): --clay is the blue accent,
   --clay-dark the blue for text and links, --peach the gold. */
:root {
  --navy: #0b1e3a; --blue: #2e7bff; --gold: #f2c460; --cream-brand: #f8f4e9; --gray: #6b7480;
  --bg: #f8f4e9;        /* the page: cream */
  --paper: #ffffff;     /* cards, rows, sheets */
  --paper-2: #f1ece0;   /* a row's hover/pressed, inputs */
  --line: #e2dccd;      /* hairlines */
  --ink: #0b1f3b;       /* text: navy */
  --ink-2: #6b7480;     /* secondary text: gray */
  --bar: #0b1f3b;       /* the header, dark pills */
  --bar-ink: #f8f4e9;   /* text on the header: cream */
  --bar-line: rgba(248, 244, 233, 0.28);
  --clay: #2e7bff;      /* the blue accent: buttons, the tab you're on, highlights (Signal Blue) */
  --clay-dark: #1f6fb3; /* blue for text and links on white and cream */
  --peach: #f2c460;     /* gold: small highlights, the lit word */
  --mint: #dcefe3;      /* status pills */
  --mint-ink: #1f4a36;
  --help: #d8372c;      /* red: the crisis notice, warnings, the month on event badges */
  --display: 'DM Sans', -apple-system, system-ui, sans-serif;  /* big lines: the same sans, bold */
  --sans: 'DM Sans', -apple-system, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --clay-soft: #4dd2ff;
  --line-strong: #cfc8b8;
  --shadow: 0 1px 2px rgba(11, 31, 59, 0.05), 0 10px 28px rgba(11, 31, 59, 0.08);
  --rule: rgba(84, 120, 160, 0.26);
  --glow-warm: rgba(242, 196, 96, 0.16);
  --glow-page: rgba(59, 167, 249, 0.07);
  --glow-cool: rgba(242, 196, 96, 0.1);
  --cream: #f8f4e9;
  --peach-on-dark: #f2c460;
  --glass: rgba(255, 255, 255, 0.78);
  --faint: #8e95a3;
  --letter-em: #7a5a3c;
  --vvh: 100dvh;
  --vv-top: 0px;
  --dock-h: 84px;
  color-scheme: light;
}
/* The navy look (App Settings > Look > Dark): a navy page and cards, cream ink, the same blue and gold. */
:root[data-theme="dark"] {
  --bg: #0b1f3b;
  --paper: #122b4f;
  --paper-2: #1a3660;
  --line: rgba(248, 244, 233, 0.12);
  --ink: #f8f4e9;
  --ink-2: #a3adbd;
  --bar: #071529;
  --bar-ink: #f8f4e9;
  --bar-line: rgba(248, 244, 233, 0.16);
  --clay: #2e7bff;
  --clay-dark: #7cc4ff; /* blue for text and links on navy */
  --peach: #f2c460;
  --mint: #163b31;
  --mint-ink: #9fdcbb;
  --help: #e2493d;
  --clay-soft: #7cc4ff;
  --line-strong: rgba(248, 244, 233, 0.22);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --rule: rgba(150, 180, 220, 0.14);
  --glow-warm: rgba(59, 167, 249, 0.12);
  --glow-page: rgba(59, 167, 249, 0.1);
  --glow-cool: rgba(242, 196, 96, 0.06);
  --glass: rgba(18, 43, 79, 0.8);
  --faint: #7f8a9b;
  --letter-em: #f2c460;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  min-height: 100%; /* not a fixed height: the top bar sticks within body, all the way down */
  margin: 0;
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  background-color: var(--bg);
  /* A breath of blue from the top right, of gold low on the left. */
  background-image:
    radial-gradient(ellipse 85% 55% at 100% 0%, var(--glow-page), transparent 70%),
    radial-gradient(ellipse 70% 45% at 0% 100%, var(--glow-cool), transparent 70%);
  background-attachment: fixed;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--clay-dark); }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

/* Every screen sits under the header (which takes the phone's top edge), but a conversation, which has the whole
   screen to itself. */
.screen {
  min-height: 100dvh;
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 16px calc(env(safe-area-inset-bottom) + 24px);
}

/* ---------- Shared pieces ---------- */
/* The logo (a navy square, a cream L and a blue play mark) and its name. */
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: inherit; text-decoration: none; }
.brand .logo { display: block; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
.brand-name { font: 700 24px/1 var(--display); letter-spacing: -0.015em; white-space: nowrap; }

/* Small uppercase labels, typed: LYGHT PLAYER MEMBER LIBRARY. */
.mono-kicker { margin: 0; font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
/* A root page's heading: a blue line over the big one. */
.page-title { margin: 22px 0 18px; }
.eyebrow { margin: 0 0 2px; font: 400 20px/1.25 var(--sans); color: var(--clay-dark); }
.display { margin: 0; font: 700 40px/1.02 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.page-lede { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }
.mono { font-family: var(--mono); }

.icon-btn {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 2px rgba(27, 31, 34, 0.06);
}
a.icon-btn { color: var(--ink); }

.panel {
  padding: 20px 18px; margin-bottom: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.panel h3 { margin: 0 0 10px; font: 700 23px/1.15 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.panel p { margin: 0 0 12px; }
.hint { font-size: 15px; color: var(--ink-2); }
.hint:empty { display: none; }
.error { color: var(--help); font-size: 15px; margin: 8px 0 0; }
.error:empty { display: none; }
.fineprint { font-size: 13px; color: var(--ink-2); text-align: center; margin: 22px 0 8px; line-height: 1.5; }
.fineprint a, .prose a { color: var(--clay-dark); }

/* Buttons: blue pills with navy words (they read on cream and on navy alike); ghost ones outlined; danger in red. */
.btn {
  display: block; width: 100%; padding: 14px 18px;
  border: 1px solid var(--blue); border-radius: 999px;
  background: var(--blue);
  color: var(--navy); font: 600 16px/1.2 var(--sans); letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(31, 111, 179, 0.22);
}
.btn:active { transform: translateY(1px); filter: brightness(1.08); }
.btn:disabled { opacity: 0.5; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn.danger { background: var(--help); border-color: var(--help); color: #fff; box-shadow: none; }
.btn + .btn { margin-top: 10px; }
.danger-text { color: var(--help) !important; }
.link-btn {
  display: block; margin: 12px auto 0; padding: 4px 8px; border: 0; background: none;
  color: var(--clay-dark); font: 500 15px var(--sans); text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--clay-dark) 40%, transparent); text-underline-offset: 3px;
}
.pill {
  align-self: center; margin: 0 0 8px; padding: 9px 18px;
  border: 1px solid var(--bar-line); border-radius: 999px;
  background: rgba(28, 37, 43, 0.78); color: var(--bar-ink); font: 500 14px var(--sans);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

input[type=email], input[type=password], input[type=text] {
  display: block; width: 100%; margin: 4px 0 10px;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper-2); color: var(--ink);
  font: 16px var(--sans);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 22%, transparent); }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); margin-bottom: 12px; border: 1px solid var(--line); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: 10px 4px; border-radius: 999px; color: var(--ink-2); font: 500 15px var(--sans); }
.segmented input:checked + span { background: var(--bar); color: var(--bar-ink); font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--clay); }

.plain-head { display: flex; align-items: center; gap: 12px; padding: 6px 0 16px; }
.plain-head h1 { flex: 1; margin: 0; font: 700 32px/1.08 var(--display); letter-spacing: -0.02em; color: var(--ink); }

/* ---------- The hero card (the Library) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 26px 24px 22px; margin: 18px 0 18px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
/* Faint circles, like sound spreading out. */
.hero::before, .hero::after {
  content: ''; position: absolute; z-index: -1; border-radius: 50%; border: 1.5px solid rgba(203, 191, 173, 0.55);
}
.hero::before { width: 420px; height: 420px; right: -170px; top: 34%; }
.hero::after { width: 250px; height: 250px; right: 34px; top: 30%; }
.hero-title { margin: 14px 0 0; font: 700 50px/0.94 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.hero-title em { display: block; margin-top: 2px; font-style: italic; color: var(--clay-dark); letter-spacing: -0.035em; }
.hero-lede { position: relative; margin: 16px 0 0; max-width: 470px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
/* A rubber stamp: MEMBER ARCHIVE · VOICES HELD WITH CARE. */
.stamp {
  display: inline-block; margin: 22px 0 0; padding: 3px;
  border: 1px solid rgba(27, 31, 34, 0.32); transform: rotate(-1.2deg);
  background: var(--glass);
}
.stamp span {
  display: block; padding: 8px 14px; border: 2px solid rgba(27, 31, 34, 0.6);
  font: 600 12px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #2c3236;
}
@media (max-width: 430px) { .stamp span { padding: 7px 10px; font-size: 9.5px; letter-spacing: 0.12em; } }
.hero-wave { height: 92px; margin-top: 14px; }
.wave { display: block; height: 100%; width: auto; max-width: 100%; margin-left: auto; }
.wave rect { fill: var(--clay); transform-box: fill-box; transform-origin: center; }
/* While a talk plays, the bars move. */
.hero.live .wave rect { animation: wave 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.137s); }
@keyframes wave { from { transform: scaleY(1); } to { transform: scaleY(0.42); } }
@media (prefers-reduced-motion: reduce) { .hero.live .wave rect { animation: none; } }
@media (min-width: 720px) {
  .hero { padding: 38px 40px 30px; }
  .hero-title { font-size: 76px; }
  .hero-wave { height: 120px; margin-top: -40px; }
  .hero::before { width: 560px; height: 560px; right: -160px; top: 18%; }
  .hero::after { width: 330px; height: 330px; right: 90px; top: 22%; }
}

/* ---------- The signed-out screens (#welcome: the welcome slides, Create Your Account, Welcome Back) are shell.css's;
   the new-password form and the 18+ step stay plain ---------- */
#reset input { margin-top: 0; }
#age .panel p { margin-bottom: 14px; }
#age strong { color: var(--ink); font-weight: 700; }

/* ---------- A conversation (The Parking Lot › History & Archives): him, full screen ---------- */
#chat {
  position: fixed; left: 0; right: 0; top: var(--vv-top);
  height: var(--vvh); min-height: 0; max-width: 600px; margin: 0 auto;
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #000;
}
.stage { position: absolute; inset: 0; overflow: hidden; }
.stage .layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 15%;
  opacity: 0; transition: opacity 500ms ease;
}
.stage .layer.on { opacity: 1; }
.stage .photo { z-index: 1; }
.stage .base { z-index: 2; }
.stage .still { z-index: 3; }
.stage .reaction { z-index: 4; transition-duration: 250ms; }
.stage-shade {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(28, 37, 43, 0.78) 0, rgba(28, 37, 43, 0) 18%),
    linear-gradient(to top, rgba(28, 37, 43, 0.95) 0, rgba(28, 37, 43, 0.45) 30%, rgba(28, 37, 43, 0) 52%),
    radial-gradient(ellipse 120% 100% at 50% 40%, transparent 60%, rgba(10, 14, 17, 0.45) 100%);
}
.chat-head {
  position: absolute; left: 0; right: 0; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 0;
}
.chat-head .icon-btn {
  border-color: var(--bar-line); background: rgba(28, 37, 43, 0.55); color: var(--bar-ink);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: none;
}
.chat-title { flex: 1; min-width: 0; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85); }
.chat-kicker { margin: 0; font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--peach-on-dark); }
.chat-title h2 { margin: 0; font: 700 27px/1.08 var(--display); letter-spacing: -0.01em; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title p:last-child { margin: 2px 0 0; font-size: 13px; color: var(--bar-ink); opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.moment { position: relative; z-index: 6; padding: 0 12px 8px; }
.you-wrote {
  margin: 0 4px 6px; font-size: 14px; font-style: italic; color: var(--bar-ink);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.you-wrote:empty { display: none; }
/* His words, on a lined notepad: blue rules and a terracotta margin. */
.letter {
  max-height: calc(var(--vvh) * 0.32);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 12px 16px 13px 30px; border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 21px, rgba(200, 100, 75, 0.55) 21px 22px, transparent 22px),
    repeating-linear-gradient(to bottom, transparent 0 26px, var(--rule) 26px 27px),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  background-position: 0 0, 0 12px, 0 0;
  background-attachment: local;
  color: var(--ink);
  font: 17px/27px var(--sans);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.letter:empty { display: none; }
.letter em { color: var(--letter-em); }
.letter.typing { width: 82px; padding: 12px 16px 12px 30px; }
.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 3px; border-radius: 50%; background: var(--clay); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.letter.note { font: 15px/1.45 var(--sans); padding: 12px 16px; background: rgba(28, 37, 43, 0.92); color: var(--bar-ink); border: 1px solid var(--bar-line); }
.letter.note button { margin: 8px 0 0; padding: 7px 16px; border: 1px solid var(--peach-on-dark); border-radius: 999px; background: none; color: var(--peach-on-dark); font-weight: 600; }
.letter.note .bar { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: rgba(241, 214, 184, 0.25); overflow: hidden; }
.letter.note .bar i { display: block; height: 100%; background: var(--clay-soft); }
.moment-tools { display: flex; justify-content: space-between; padding: 0 2px; }
.moment-tools .link-btn { margin: 6px 0 0; color: var(--bar-ink); text-decoration-color: rgba(243, 236, 224, 0.4); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95); font-size: 14px; }

.composer {
  position: relative; z-index: 6;
  display: flex; gap: 10px; align-items: flex-end;
  padding: 10px 12px calc(env(safe-area-inset-bottom) + 10px);
  background: rgba(28, 37, 43, 0.95);
  border-top: 1px solid var(--bar-line);
}
.composer textarea {
  flex: 1; resize: none; max-height: 120px;
  padding: 12px 16px; border-radius: 22px;
  border: 1px solid var(--bar-line);
  background: var(--paper); color: var(--ink);
  font: 16px/1.35 var(--sans);
}
#send {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%;
  border: 0; background: var(--clay); color: var(--navy);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
#send:disabled { opacity: 0.45; }
/* Questions to start with (an empty conversation; app.js): chips just above the box, in the same dark glass as the
   pills, 48px to tap. They wrap; past about three rows they scroll. While he's answering they wait, faded. */
.sh-starters { position: relative; z-index: 6; padding: 0 12px 6px; }
.sh-starters-lead {
  margin: 0 4px 6px; font-size: 14px; color: var(--bar-ink); opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}
.sh-starter-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start;
  max-height: min(176px, calc(var(--vvh) * 0.27)); overflow-y: auto; overscroll-behavior: contain;
  padding: 2px 2px 4px; scrollbar-width: thin;
}
.sh-starter {
  min-height: 48px; max-width: 100%; padding: 10px 16px;
  border: 1px solid var(--bar-line); border-radius: 24px;
  background: rgba(28, 37, 43, 0.82); color: var(--cream);
  font: 500 16px/1.25 var(--sans); text-align: left;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.sh-starter:active { background: var(--clay); border-color: var(--clay); color: var(--navy); }
.sh-starters.busy .sh-starter { opacity: 0.55; }
/* Keyboard up: keep more of him in view. */
#chat.keyboard .letter { max-height: calc(var(--vvh) * 0.22); font-size: 16px; line-height: 24px; background-size: auto, 100% 24px, auto; }
#chat.keyboard .moment-tools, #chat.keyboard .you-wrote { display: none; }
#chat.keyboard .chat-head { padding-top: 8px; }
#chat.keyboard .chat-title p { display: none; }
#chat.keyboard .sh-starters-lead { display: none; }
#chat.keyboard .sh-starter-row { max-height: 108px; }

/* ---------- Sheets ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(28, 37, 43, 0.5); }
.sheet {
  width: min(600px, 100%); max-width: 100%; margin: auto auto 0; padding: 10px 18px calc(env(safe-area-inset-bottom) + 18px);
  border: 0; border-radius: 26px 26px 0 0;
  background: var(--paper);
  box-shadow: 0 -12px 40px rgba(28, 37, 43, 0.22);
}
/* A grab handle at the top. */
.sheet::before { content: ''; display: block; flex: 0 0 auto; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: var(--line-strong); }
.sheet[open] { animation: sheet-up 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet form { display: grid; gap: 10px; }
.sheet form .btn + .btn { margin-top: 0; }
.sheet.tall { height: 84dvh; display: none; flex-direction: column; }
.sheet.tall[open] { display: flex; }
/* On a computer: a card in the middle. */
@media (min-width: 720px) {
  .sheet { margin: auto; border-radius: 26px; }
  .sheet::before { display: none; }
  .sheet.tall { height: min(82dvh, 760px); }
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h3 { margin: 0; font: 700 25px/1.15 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.sheet-head .link-btn { margin: 0; }
.log { flex: 1; overflow-y: auto; padding: 10px 0; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.him { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); border-radius: 4px 16px 16px 16px; font-size: 16px; }
.msg.him em { color: var(--letter-em); }
.msg.me { align-self: flex-end; background: var(--bar); color: var(--bar-ink); border-radius: 16px 4px 16px 16px; font: 15px/1.4 var(--sans); }

/* ---------- Privacy & terms page ---------- */
.prose .plain-head { justify-content: space-between; }
.prose h2 { margin: 0 0 10px; font: 700 23px/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.prose ul { margin: 0 0 10px; padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose p:last-child, .prose ul:last-child { margin-bottom: 0; }
.panel.draft { border-color: var(--clay); background: #fdf1e6; }
.draft strong { color: var(--clay-dark); }
.todo { padding: 0 5px; border-radius: 4px; background: var(--peach); color: var(--ink); }
a.btn { text-align: center; text-decoration: none; }

/* ---------- Disclaimer, real help, the basket ---------- */
.disclaimer p { font-size: 16px; line-height: 1.55; }
.disclaimer .age-line { margin: 18px 0 10px; color: var(--ink-2); font-size: 15px; }
/* Red, only in a conversation's crisis notice (Call 988, Text 988): the first thing you see when you need it. */
.btn.help-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--help); border-color: var(--help); color: #fff;
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.25);
}

.basket-lead { margin: 10px 0 14px; }
.basket-ways { display: grid; gap: 10px; }
.basket-ways .btn { margin: 0; }
.basket-none { margin: 0; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--ink-2); font-size: 15px; }
.letter.note .pass { display: block; margin-bottom: 8px; font: 16px/1.45 var(--sans); color: var(--bar-ink); }
.letter.note .pass em { color: var(--peach-on-dark); }
.letter.note .after { display: block; font-size: 14px; color: rgba(243, 236, 224, 0.72); }
.letter.note:has(.pass) { max-height: calc(var(--vvh) * 0.5); }

/* The red Get help pill is gone (the client asked): Help & Support is in the More menu (#help). One left in a page
   stays out of sight. */
.help-pill { display: none !important; }

/* The app's own crisis notice in a conversation: real help, outside the story. It stays up with the keyboard too. */
.notice {
  position: relative; z-index: 7; margin: 0 12px 8px; padding: 12px 38px 12px 14px;
  border: 1px solid var(--help); border-radius: 14px;
  background: rgba(28, 37, 43, 0.96); color: var(--bar-ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.notice[data-kind="crisis"] { background: rgba(84, 22, 16, 0.97); border-color: #ff8f7a; }
.notice p { margin: 0 0 10px; font-size: 15px; line-height: 1.4; }
.notice strong { color: #fff; }
.notice .btn { margin: 0; padding: 11px 12px; }
.notice .row { display: flex; gap: 10px; }
.notice .row .btn { flex: 1; text-align: center; }
.notice .link-btn { margin: 8px auto 0; color: var(--peach-on-dark); }
.notice-close { position: absolute; top: 4px; right: 6px; width: 32px; height: 32px; border: 0; background: none; color: rgba(243, 236, 224, 0.7); font-size: 24px; line-height: 1; }

/* ---------- Buttons used by Account Settings (settings.js) ---------- */
.btn.ghost.danger { background: transparent; border-color: color-mix(in srgb, var(--help) 50%, transparent); color: var(--help); }
.btn.danger-fill { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--help); border-color: var(--help); color: #fff; }
