/* Southern Heat parent website: one column, phone first (Android families). */
:root {
  --bg: #f7f4f4;
  --card: #ffffff;
  --fg: #1d1517;
  --muted: #64585b;
  --line: #e6dcde;
  --heat: #c20f2f;
  --heat-ink: #ffffff;
  --heat-soft: #fbeaed;
  --good: #17663a;
  --warn: #9a5b00;
  --bad: #a3162e;
  --radius: 12px;
  --font: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121011; --card: #1c1719; --fg: #f2ebec; --muted: #b6a8ab; --line: #372d30;
    --heat: #e2324f; --heat-soft: #3a1820; --good: #6fd39a; --warn: #f0b456; --bad: #ff8a9b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.5;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
a { color: var(--heat); }
button, input, select, textarea { font: inherit; }
.top { background: var(--heat); color: var(--heat-ink); position: sticky; top: 0; z-index: 5;
  padding-top: env(safe-area-inset-top, 0px); }
.top-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; }
.brand-mark { background: var(--heat-ink); color: var(--heat); border-radius: 50%; width: 32px; height: 32px;
  display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; }
.who { font-size: 14px; opacity: 0.95; text-align: right; }
.view { max-width: 720px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  display: grid; gap: 16px; }
h1 { font-size: 24px; margin: 4px 0 0; }
h2 { font-size: 18px; margin: 0; }
h3 { font-size: 16px; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; min-width: 0; }
.card.soft { background: var(--heat-soft); border-color: transparent; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 8px; }
.list { display: grid; gap: 0; }
.item { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.item:last-child { border-bottom: 0; }
label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--fg); }
textarea { min-height: 84px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--heat); outline-offset: 2px; }
.btn { appearance: none; border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 700; cursor: pointer;
  background: var(--heat); color: var(--heat-ink); text-align: center; text-decoration: none; display: inline-block; }
.btn.secondary { background: transparent; color: var(--heat); border: 1px solid var(--heat); }
.btn.quiet { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.block { width: 100%; }
.chip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700;
  background: var(--heat-soft); color: var(--heat); }
.chip.good { background: transparent; color: var(--good); border: 1px solid var(--good); }
.chip.warn { background: transparent; color: var(--warn); border: 1px solid var(--warn); }
.chip.bad { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 999px;
  padding: 6px 12px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--heat); color: var(--heat-ink); border-color: var(--heat); }
.bubble { padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); max-width: 88%; }
.bubble.mine { justify-self: end; background: var(--heat-soft); border-color: transparent; }
.reply { margin-left: 14px; padding-left: 10px; border-left: 2px solid var(--line); }
.error { color: var(--bad); font-size: 14px; }
.plan { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--card); color: var(--fg); text-align: left; }
.plan[aria-pressed="true"] { border-color: var(--heat); box-shadow: 0 0 0 1px var(--heat) inset; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--card); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs a { text-align: center; padding: 12px 4px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--heat); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-size: 14px; max-width: calc(100% - 32px); z-index: 9; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
code.copy { word-break: break-all; font-size: 13px; background: var(--bg); padding: 6px 8px; border-radius: 8px; display: block; }
@media (prefers-reduced-motion: no-preference) { .btn { transition: opacity .15s; } }

/* Round 16: empty states with a next step; message search */
.card.empty { text-align: center; justify-items: center; }
.card.empty .btn { justify-self: center; }
form[role="search"] { gap: 8px; margin: 4px 0 12px; }
form[role="search"] input[type="search"] { flex: 1; min-width: 0; }

/* Round 17 */
.stack.tight { gap: 2px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid3 input { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted, #6b6b6b); text-decoration: underline; cursor: pointer; justify-self: start; }

/* Round 18: waiver */
.waiver-text { max-height: 260px; overflow-y: auto; white-space: pre-wrap; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 14px; background: var(--bg); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { width: 22px; height: 22px; padding: 0; margin-top: 1px; flex: none; accent-color: var(--accent, #c8102e); }
label.check span { flex: 1; min-width: 0; }

/* Round 20: message attachments */
.files { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.file { font: inherit; font-size: 0.85rem; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line, #d0d5dd);
  background: var(--card, #fff); color: inherit; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file:hover { border-color: currentColor; }
