/* TideSpeaker crew page. Matches design/screens 01 and 02. Flat colours, no gradients. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400-latin.woff") format("woff"); unicode-range: U+0020-017F, U+2013-2026, U+2192, U+2122; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600-latin.woff") format("woff"); unicode-range: U+0020-017F, U+2013-2026, U+2192, U+2122; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-700-latin.woff") format("woff"); unicode-range: U+0020-017F, U+2013-2026, U+2192, U+2122; }

:root {
  --navy: #0B2A6B; --navy-ink: #C9DBF5; --navy-line: rgba(255, 255, 255, 0.32); --navy-fill: rgba(255, 255, 255, 0.14);
  --magenta: #E11D74; --magenta-ink: #C0135F; --magenta-tint: #FFE4EF;
  --red: #DC2626; --red-ink: #B91C1C;
  --ink: #0F172A; --muted: #55657A; --faint: #94A3B8;
  --line: #E4E8EE; --bg: #F5F7FA; --surface: #FFFFFF;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased; caret-color: var(--magenta);
}
::selection { background: var(--magenta-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; border-radius: 10px; }
.hero :focus-visible { outline-color: #FFFFFF; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { width: 100%; max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }

/* Loading (static in index.html, replaced once the script runs) */
.boot { min-height: 100vh; min-height: 100dvh; background: var(--navy); color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; }
.boot img { width: 112px; height: auto; }
.boot-name { margin-top: 16px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.boot-tag { color: var(--navy-ink); font-size: 14px; }

/* Hero */
.hero { background: var(--navy); color: #FFFFFF; padding: calc(20px + env(safe-area-inset-top)) 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.tools { display: flex; gap: 8px; }
.lang, .icon-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; border: 1px solid var(--navy-line); background: var(--navy-fill); border-radius: 10px; color: #FFFFFF; }
.lang { padding: 0 12px; position: relative; font-size: 13px; font-weight: 600; cursor: pointer; }
.lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; }
.lang:focus-within { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.lang option { color: var(--ink); }
.icon-btn { width: 40px; justify-content: center; padding: 0; }
.icon-btn:hover, .lang:hover { background: rgba(255, 255, 255, 0.22); }
.company { display: flex; align-items: center; gap: 10px; }
.company-logo { width: 40px; height: 40px; flex: none; border-radius: 10px; background: #FFFFFF; color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; letter-spacing: 0.02em; }
.company-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.company-name { font-size: 14px; font-weight: 600; }
.ship { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--navy-ink); }
.live-dot { width: 6px; height: 6px; border-radius: 999px; background: #4ADE80; flex: none; }
.test-chip { align-self: flex-start; font-size: 12px; font-weight: 600; color: #FFFFFF; border: 1px solid var(--navy-line); border-radius: 999px; padding: 3px 10px; }
.hero h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.lead { margin: -4px 0 0; font-size: 14px; line-height: 1.5; color: var(--navy-ink); max-width: 60ch; }
.sos { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; width: 100%; border: 0; border-radius: 12px; background: var(--red); color: #FFFFFF; font-size: 15px; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms; }
.sos:hover { background: var(--red-ink); }
.sos:active { transform: scale(0.98); }

/* Topics */
.topics { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.topic { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 14px; text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); transition: border-color 160ms, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.topic:hover { border-color: #CBD5E1; }
.topic:active { transform: scale(0.99); }
.topic-icon { width: 40px; height: 40px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.tone-red { background: #FEE2E2; color: var(--red); }
.tone-green { background: #DCFCE7; color: #16A34A; }
.tone-amber { background: #FEF3C7; color: #B45309; }
.tone-teal { background: #CCFBF1; color: #0F766E; }
.tone-navy { background: #E2E8F5; color: var(--navy); }
.tone-slate { background: #F1F5F9; color: #475569; }
.topic-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.topic-title { font-size: 15px; font-weight: 600; }
.topic-hint { font-size: 13px; color: var(--muted); }
.chev { color: var(--faint); flex: none; }
[dir="rtl"] .chev { transform: scaleX(-1); }

.notice { margin: 14px 20px 0; min-height: 0; font-size: 13px; color: var(--magenta-ink); font-weight: 600; opacity: 0; transition: opacity 200ms; }
.notice.show { opacity: 1; }

/* Bottom dock */
.dock { position: sticky; bottom: 0; margin-top: auto; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.06); display: flex; flex-direction: column; gap: 4px; }
.track { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 600; }
.track:hover { border-color: #CBD5E1; }
.rights { min-height: 40px; border: 0; background: transparent; color: var(--magenta-ink); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(192, 19, 95, 0.35); }
.fine { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- Inner pages (design screens 04 to 14) ---------------------------------------------------------------- */
.page { background: var(--bg); }
.topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 20px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar h1 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.topbar span { font-size: 12px; color: var(--muted); }
.square { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0; cursor: pointer; }
.square:hover { border-color: #CBD5E1; }
.square.light { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.35); color: #FFFFFF; }
.square.magenta { background: var(--magenta); border-color: var(--magenta); color: #FFFFFF; }
[dir="rtl"] .chev-back { transform: scaleX(-1); }
.sticky-top { position: sticky; top: 0; z-index: 2; }
.sticky-top .topbar { position: static; border-bottom: 0; }
.steps { display: flex; gap: 4px; padding: 0 20px 12px; background: var(--surface); border-bottom: 1px solid var(--line); margin-top: -1px; }
.steps span { flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
.steps span.on { background: var(--magenta); }
.content { flex: 1; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.card h2, h2.label { margin: 0; font-size: 14px; font-weight: 600; }
h2.label { padding: 4px 2px 0; }
.card p { margin: 0; font-size: 14px; }
.meta { margin: 0; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.note { margin: 0; font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; }
.proc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.45; color: #334155; }
.proc li { display: flex; gap: 10px; align-items: flex-start; }
.num { width: 24px; height: 24px; flex: none; border-radius: 999px; background: #F1F5F9; color: var(--ink); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.num.hot { background: var(--magenta-tint); color: var(--magenta-ink); }
.danger-box { background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.danger-box p { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #7F1D1D; }
.danger-box p svg { color: var(--red); flex: none; }
.danger-box b { color: var(--red-ink); }
.danger-box.soft { padding: 12px; }
.options { display: flex; flex-direction: column; gap: 8px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.option.small { padding: 10px 12px; }
.option input { margin: 2px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--magenta); }
.option span { display: flex; flex-direction: column; gap: 2px; }
.option b { font-size: 15px; font-weight: 600; }
.option.small b { font-size: 14px; }
.option span span { font-size: 13px; color: var(--muted); }
.option:has(input:checked) { border: 2px solid var(--magenta); background: #FFF7FA; padding: 13px; }
.option.small:has(input:checked) { padding: 9px 11px; }
.field-label { font-size: 13px; font-weight: 600; }
textarea, .name-input, .code-input { width: 100%; font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink); background: #F8FAFC; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
textarea { min-height: 150px; resize: vertical; }
textarea:focus-visible, .name-input:focus-visible, .code-input:focus-visible { outline: 2px solid var(--magenta); outline-offset: 0; border-color: transparent; border-radius: 10px; }
.code-input { font-size: 18px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #E2E8F0; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.add { border: 1px dashed #CBD5E1; background: #F8FAFC; color: var(--magenta); cursor: pointer; }
.thumb-x { position: absolute; top: 4px; inset-inline-end: 4px; width: 24px; height: 24px; border-radius: 999px; border: 0; background: rgba(15, 23, 42, 0.7); color: #FFFFFF; font-size: 15px; line-height: 1; padding: 0; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 600; padding: 0 16px; transition: background-color 160ms, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--magenta); border-color: var(--magenta); color: #FFFFFF; }
.btn.primary:hover { background: #C8155F; }
.btn.red { background: var(--red); border-color: var(--red); color: #FFFFFF; min-height: 46px; }
.btn.red:hover { background: var(--red-ink); }
.btn.white { background: #FFFFFF; color: var(--ink); min-height: 42px; font-size: 14px; }
.btn.ghost { border: 0; background: transparent; color: var(--muted); min-height: 40px; font-size: 14px; }
.btn.busy, .square.busy { opacity: 0.6; pointer-events: none; }
.btn[disabled] { cursor: progress; }
.dock .btn + .btn { margin-top: 4px; }
.dock.reply { flex-direction: row; align-items: flex-end; gap: 8px; }
.dock.reply textarea { min-height: 52px; height: 52px; flex: 1; }
.done-mark { width: 64px; height: 64px; border-radius: 999px; background: #DCFCE7; color: #16A34A; display: flex; align-items: center; justify-content: center; margin: 24px auto 4px; }
.done-mark svg { width: 30px; height: 30px; }
.done-mark.white { background: rgba(255, 255, 255, 0.2); color: #FFFFFF; margin: 0 0 4px; }
.done-mark.warn { background: #FEF3C7; color: #B45309; }
.sent h1, .blocked h1 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.code-card { background: var(--navy); color: #FFFFFF; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16); }
.code-card p { margin: 0; font-size: 13px; color: var(--navy-ink); }
.code-label { font-size: 12px; font-weight: 600; color: var(--navy-ink); }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.code { font-size: 24px; font-weight: 700; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 14px; font-weight: 600; color: #94A3B8; }
.timeline li { display: flex; align-items: center; gap: 12px; }
.timeline .dot { width: 24px; height: 24px; flex: none; border-radius: 999px; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: #FFFFFF; }
.timeline li.done { color: var(--ink); }
.timeline li.done .dot { background: #16A34A; border-color: #16A34A; }
.timeline li.now { color: var(--magenta-ink); }
.timeline li.now .dot { border-color: var(--magenta); box-shadow: inset 0 0 0 4px #FFFFFF, inset 0 0 0 10px var(--magenta); }
.thread { display: flex; flex-direction: column; gap: 10px; }
.bubble { align-self: flex-start; max-width: 85%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.bubble.mine { align-self: flex-end; background: var(--ink); color: #FFFFFF; border-color: var(--ink); border-radius: 14px 14px 4px 14px; }
.bubble.outcome { border-color: #86EFAC; background: #F0FDF4; }
.human { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; }
.human:empty { display: none; }
.bubble.auto { background: #EEF2F8; border-color: #D5DEEC; }
.bubble .who { font-size: 11px; font-weight: 600; color: var(--muted); }
.bubble.mine .who { color: #94A3B8; }
.bubble p { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-photo { display: block; max-width: 220px; max-height: 260px; border-radius: 10px; }
.navy-card { background: var(--navy); color: #FFFFFF; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.navy-card span { font-size: 13px; line-height: 1.5; color: var(--navy-ink); }
.rights-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.5; color: #334155; }
.rights-list li { display: flex; gap: 10px; }
.rights-list svg { color: #16A34A; flex: none; margin-top: 3px; }
.contact { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid #F1F5F9; }
.contact:first-of-type { border-top: 0; }
.contact span { font-size: 13px; color: var(--muted); }
.faq details { border-top: 1px solid #F1F5F9; padding: 10px 0; }
.faq details:first-child { border-top: 0; }
.faq summary { font-size: 14px; font-weight: 600; cursor: pointer; }
.faq p { margin-top: 8px; color: #334155; font-size: 13px; }
.red-hero { background: var(--red); color: #FFFFFF; padding: calc(24px + env(safe-area-inset-top)) 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.red-hero h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.red-hero p { margin: 0; font-size: 14px; color: #FEE2E2; }
.call { flex-direction: row; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.call svg { color: var(--red); flex: none; }
.call span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.call b { font-size: 15px; color: var(--ink); }
.hint-box { margin: 0; background: #EEF2FA; border: 1px solid #D5DEEF; color: var(--navy); border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.5; }
.old-poster { margin: 0; background: #FEF3C7; color: #78350F; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.warn-dot { width: 6px; height: 6px; border-radius: 999px; background: #FBBF24; flex: none; }
.link { color: var(--magenta-ink); font-weight: 600; }
.card.tight { gap: 6px; }
.rights.quiet { color: var(--muted); font-weight: 600; }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 600; cursor: pointer; }
.check-row input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--magenta); }
.card.tight .meta { display: block; line-height: 1.6; }
button.link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.sos-who { display: flex; flex-direction: column; gap: 6px; }
.sos-who .name-input { margin: 0 0 6px; }
.meta.sealed { display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.meta.sealed svg { flex: none; margin-top: 2px; }
.plain { margin: 0; padding-inline-start: 18px; font-size: 13px; line-height: 1.5; color: #475569; display: flex; flex-direction: column; gap: 6px; }
.sheet { border: 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); width: 100%; max-width: 560px; margin: auto auto 0; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; gap: 14px; }
.sheet:not([open]) { display: none; }
.sheet[open] { max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
.sos-anon { display: block !important; margin: 0; line-height: 1.7; text-align: center; }
.sheet::backdrop { background: rgba(15, 23, 42, 0.6); }
.sheet h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 19px; }
.sheet h2 svg { color: var(--red); width: 26px; height: 26px; }
.sheet .notice { margin: 0; }
.content .notice, .dock .notice { margin: 0; }

/* Even line breaks: headings, buttons and centred lines are balanced; longer text never leaves one word alone */
h1, h2, h3, .btn, .option b, .check-row span, .topic-title, .center, .code-label, .fine, .sos-anon, .danger-box b { text-wrap: balance; }
p, li, .option span span, .topic-hint, .meta, .note, .hint-box, .bubble p { text-wrap: pretty; }

/* "Treated badly because you reported?": quiet until it is needed */
.quiet-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: transparent; border-style: dashed; }
.quiet-card .fine { margin: 0; }
.quiet-card #vic { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.quiet-card #vic[hidden] { display: none; }
.quiet-card p { margin: 0; font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.quiet-card textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 15px; border: 1px solid var(--line, #E4E8EE); border-radius: 12px; resize: vertical; }
.quiet-card .row-btns { display: flex; gap: 10px; justify-content: flex-end; width: 100%; }
.quiet-card .row-btns .btn { flex: 1; }
.quiet-card .fine { justify-content: flex-start; text-align: start; } .quiet-card { box-shadow: none; }
.quiet-card .row-btns .btn.ghost { flex: 0 0 auto; padding: 0 16px; }
img.company-logo.has-logo { object-fit: contain; padding: 3px; box-sizing: border-box; }

/* ---- Ask TideSpeaker (help chat) ---- */
.ask-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ask-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: #FFFFFF; }
.ask-head > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.ask-head b { font-size: 16px; }
.ask-head > span:last-child > span { font-size: 13px; color: #C9DBF5; }
.ask-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; flex: none; }
.ask-msgs { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; max-height: 360px; overflow-y: auto; background: #F8FAFC; }
.ask-msgs:empty { display: none; }
.ask-me, .ask-ai { margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; max-width: 88%; white-space: pre-line; text-wrap: pretty; }
.ask-me { align-self: flex-end; background: var(--magenta); color: #FFFFFF; border-bottom-right-radius: 6px; }
.ask-ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.ask-ai.wait { color: var(--muted); }
.ask-row { display: flex; gap: 10px; padding: 12px 16px 6px; border-top: 1px solid var(--line); }
.ask-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 12px; }
.ask-row input:focus-visible { outline: 2px solid var(--magenta); outline-offset: 0; border-color: transparent; }
.ask-fine { padding: 0 16px 14px; justify-content: flex-start; text-align: start; }

/* ---- Your privacy: the link in the footer and on Help, and the page itself ---- */
.fine { flex-wrap: wrap; }
.fine-link { min-height: 32px; font-size: 12px; color: var(--muted); text-decoration-color: rgba(100, 116, 139, 0.45); }
.link-card { flex-direction: row; align-items: center; gap: 14px; width: 100%; text-align: start; font: inherit; color: inherit; cursor: pointer; }
.link-card > svg:first-child { color: var(--navy); flex: none; }
.link-card > span { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.link-card b { font-size: 15px; color: var(--ink); }
.link-card .chev { color: var(--muted); flex: none; }
.link-card:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.privacy .card h2 { margin: 0; font-size: 15px; }
.privacy .card p { margin: 0; font-size: 14px; line-height: 1.55; color: #334155; }

/* ---- No signal: the first-time screen, and the note above the topics ---- */
.done-mark.grey { background: #E2E8F0; color: var(--navy); }
.net-note { margin: 16px 20px 0; padding: 12px 14px; border-radius: 12px; background: #E8EEF9; color: var(--navy); font-size: 13.5px; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; }
.net-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

/* ---- The seafarer's own copy of the case: a button, and a print layout that keeps only the case ---- */
.copy-row { margin: 0; display: flex; justify-content: center; }
.copy-row .btn { width: auto; padding: 0 18px; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 44px; }
.print-only { display: none; }
@media print {
  body { background: #FFFFFF; }
  .topbar .square, .copy-row, #vic-card, .dock, .notice, .test-chip { display: none !important; }
  .shell, .content { padding: 0 !important; min-height: 0 !important; }
  .card, .bubble { box-shadow: none !important; break-inside: avoid; }
  .print-only { display: block; margin: 16px 0 0; font-size: 12px; color: #334155; }
}

/* ---- Readability: no running text under 13px; body and lists at 14–15px with room to breathe ---- */
.topic-hint { font-size: 14.5px; line-height: 1.4; }
.ship, .topbar span, .fine, .fine-link, .code-label { font-size: 13px; }
.meta { font-size: 13.5px; line-height: 1.45; }
.note, .option span span, .code-card p, .contact span, .link-card > span, .call span, .navy-card span, .ask-head > span:last-child > span { font-size: 14px; line-height: 1.5; }
.field-label, .rights { font-size: 14.5px; }
.proc, .rights-list, .plain { font-size: 15px; line-height: 1.55; gap: 12px; }
.danger-box p, .faq p, .old-poster, .hint-box { font-size: 14.5px; line-height: 1.5; }
.bubble .who { font-size: 12.5px; }
.bubble p { font-size: 15.5px; line-height: 1.5; }
/* More options on the case page: a bottom sheet */
.topbar .square + .square { margin-inline-start: -4px; }
.sheet h2 { margin: 0; font-size: 17px; }
.sheet-item { width: 100%; justify-content: flex-start; gap: 12px; padding: 0 16px; min-height: 52px; border: 1px solid var(--line) !important; background: var(--surface) !important; color: var(--ink) !important; font-size: 15px; font-weight: 600; border-radius: 12px; }
.sheet-item svg { flex: none; color: var(--navy); }
.sheet #vic p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; }
.sheet #vic textarea { width: 100%; box-sizing: border-box; }
.sheet-notice { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--magenta-ink); min-height: 0; }
.sheet .row-btns { margin-top: 10px; display: flex; }
.sheet .row-btns .btn { flex: 1; }
.victim-note { justify-content: flex-start; text-align: start; }
.sheet [hidden] { display: none !important; }
