/* TOUCH Parenting Roleplay
   Shares its look with the Family Love Language Map.
   Brand colours from the TOUCH Communications Toolkit (Oct 2026) */
:root {
  --red: #E1251B;
  --red-dark: #C81F16;
  --slate: #455560;
  --cream: #EFE9DD;
  --blue: #7991A6;
  --pink: #F4BCAA;
  --pink-soft: #FCE3DA;
  --white: #FFFFFF;
  --card: #FFFDF8;
  --line: #DDD4C3;
  --soft: #F7F2E8;
  --muted: #6A7782;
  --green: #2F7D5B;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(69, 85, 96, .08), 0 4px 16px rgba(69, 85, 96, .06);
  --font: "Red Hat Display", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tap: 44px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  color: var(--slate);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--red); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3, .h3, .h4 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-weight: 900; font-size: clamp(2rem, 7.5vw, 2.8rem); color: var(--red); letter-spacing: -.01em; }
h2 { font-weight: 900; font-size: clamp(1.5rem, 5.5vw, 2rem); color: var(--red); }
.h3 { font-weight: 700; font-size: 1.25rem; color: var(--slate); margin-top: 1.6em; }
.h4 { font-weight: 700; font-size: 1.05rem; color: var(--slate); }
p { margin: 0 0 .8em; }
.lead { font-size: 1.12rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue); margin: 0 0 .4em; }

/* ---------- Icons ---------- */
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.with-ico { display: flex; align-items: center; gap: 8px; }
.with-ico > .ico { color: var(--red); }
.btn .ico { width: 20px; height: 20px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { display: block; padding: 8px 0; }
.brand img { height: 34px; width: auto; }
.topbar-title { margin: 0; font-weight: 900; font-size: 1.1rem; color: var(--slate); }
.icon-btn, .icon-btn-spacer { flex: none; width: var(--tap); height: var(--tap); }
.icon-btn {
  display: grid; place-items: center; background: none; border: 0; border-radius: 50%;
  cursor: pointer; color: var(--slate); text-decoration: none; margin-left: -8px;
}
.icon-btn .ico { width: 24px; height: 24px; }
.icon-btn:hover { background: rgba(69, 85, 96, .08); }

/* ---------- Layout ---------- */
.panel { padding-top: 24px; padding-bottom: 64px; }
.hero { padding-bottom: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 18px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; text-align: center;
  transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 2px; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--white); color: var(--slate); border-color: var(--slate); }
.btn-secondary:hover { background: var(--soft); }
.btn-quiet { background: transparent; color: var(--slate); }
.btn-quiet:hover { background: rgba(69, 85, 96, .08); }
.btn-sm { white-space: nowrap; min-height: 38px; padding: 6px 14px; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: 14px 24px; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.cta-row { display: grid; gap: 10px; margin: 24px 0 12px; }
@media (min-width: 560px) { .cta-row { grid-template-columns: auto auto; justify-content: start; } }
.privacy { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }

/* ---------- How it works ---------- */
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.how li { display: flex; gap: 12px; background: var(--white); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.how-num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-weight: 900; }
.how strong { display: block; }
.how div > span { color: var(--muted); font-size: .95rem; }

/* ---------- Quick picks ---------- */
.quick { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .quick { grid-template-columns: 1fr 1fr; } }
.quick-card {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  background: var(--white); border: 1px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; cursor: pointer; transition: border-color .15s ease;
}
.quick-card:hover { border-color: var(--line); }
.quick-card strong { display: block; line-height: 1.3; }
.quick-card .meta { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.quick-card .go { margin-left: auto; color: var(--red); align-self: center; }

.temp-ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--white); background: var(--tc, var(--slate));
}
.temp-ico .ico { width: 22px; height: 22px; }

/* ---------- History ---------- */
.history { display: grid; gap: 10px; }
.hist-item { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 8px 12px 14px; }
.hist-main { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: flex; gap: 12px; align-items: center; }
.hist-text { min-width: 0; }
.hist-text strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-text span { display: block; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-pill { flex: none; font-weight: 900; font-size: .9rem; border-radius: 999px; padding: 4px 10px; background: var(--soft); color: var(--slate); border: 1px solid var(--line); }
.score-pill.done { background: var(--slate); color: var(--white); border-color: var(--slate); }
.hist-item .icon-btn { margin: 0; color: var(--muted); }
.hist-item .icon-btn .ico { width: 20px; height: 20px; }

.note { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 28px; }
.note.gentle { background: var(--white); }
.note p:last-child { margin-bottom: 0; }

/* ---------- Setup ---------- */
.panel.setup { padding-bottom: 140px; }
.field-label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.hint-text { font-size: .85rem; color: var(--muted); margin: 6px 0 0; font-weight: 500; }
.text-input {
  width: 100%; min-height: 48px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); padding: 10px 14px; font-weight: 700; font-size: 1.05rem; resize: vertical;
}
textarea.text-input { font-weight: 500; font-size: 1rem; line-height: 1.45; }
.text-input:focus { outline: none; border-color: var(--slate); }

.age-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; }
.age-row .field-label { margin: 0; }
.age-val { font-size: .95rem; color: var(--muted); }
.age-val b { font-size: 1.5rem; font-weight: 900; color: var(--red); }
.range { width: 100%; margin: 10px 0 4px; height: 32px; background: transparent; -webkit-appearance: none; appearance: none; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--red) var(--p, 35%), var(--line) var(--p, 35%)); }
.range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--line); }
.range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--red); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--white); border: 3px solid var(--red); box-shadow: var(--shadow); cursor: pointer; }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 3px solid var(--red); cursor: pointer; }
.range-ticks { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); font-weight: 700; }

.temps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .temps { grid-template-columns: repeat(4, 1fr); } }
.temp {
  display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer;
  background: var(--white); border: 2px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px; position: relative; min-height: 120px;
}
.temp strong { line-height: 1.2; font-size: .98rem; }
.temp span.d { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.temp .temp-ico { width: 34px; height: 34px; border-radius: 10px; }
.temp .temp-ico .ico { width: 19px; height: 19px; }
.temp[aria-checked="true"] { border-color: var(--slate); background: var(--card); }
.temp[aria-checked="true"]::after, .scn[aria-checked="true"]::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--slate) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.scenarios { display: grid; gap: 8px; }
.scn {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--white); border: 2px solid transparent; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 12px 44px 12px 14px;
}
.scn strong { display: block; line-height: 1.3; }
.scn span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.scn[aria-checked="true"] { border-color: var(--slate); background: var(--card); }
.scn.own strong { display: flex; align-items: center; gap: 8px; color: var(--red); }
.custom-scn { margin-top: 10px; }

.more { margin-top: 24px; padding: 4px 16px; }
.more summary { cursor: pointer; font-weight: 700; min-height: var(--tap); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--muted); }
.more[open] summary::after { content: "–"; }
.more-body { padding: 4px 0 16px; }
.more-body .field-label { margin-top: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 14px; min-height: 38px;
  font-weight: 700; font-size: .92rem; cursor: pointer; color: var(--slate);
}
.chip[aria-checked="true"] { background: var(--slate); border-color: var(--slate); color: var(--white); }

.seg { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 16px; min-height: 38px; font-weight: 700; font-size: .92rem; cursor: pointer; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--slate); color: var(--white); }

.toggle { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s ease; margin-top: 2px; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); transition: transform .15s ease; }
.toggle input:checked + .toggle-ui { background: var(--red); }
.toggle input:checked + .toggle-ui::after { transform: translateX(20px); }
.toggle input:focus-visible + .toggle-ui { outline: 3px solid var(--slate); outline-offset: 2px; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(239, 233, 221, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.summary-line { flex: 1; min-width: 0; margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.3; }
.summary-line b { color: var(--slate); }
.bottom-inner .btn { flex: none; }

/* ---------- Chat ---------- */
.chat-view { position: fixed; inset: 0; display: flex; flex-direction: column; height: 100dvh; background: var(--cream); }
.chat-head { flex: none; background: var(--cream); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.chat-head-inner { display: flex; align-items: center; gap: 8px; min-height: 60px; }
.who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.who-text { min-width: 0; line-height: 1.25; }
.who-text strong { display: block; font-weight: 900; font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-text span { display: block; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: var(--tc, var(--slate)); font-weight: 900; }
.avatar .ico { width: 20px; height: 20px; }

.mood-wrap { padding-bottom: 10px; }
.mood { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.mood-label { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.mood-track { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mood-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--muted); transition: width .5s ease, background .5s ease; }
.mood-text { flex: none; min-width: 96px; text-align: right; font-weight: 700; }

.chat-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.chat-list { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; padding-bottom: 16px; }

.scene {
  align-self: center; text-align: center; max-width: 520px; background: var(--white); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow); font-size: .92rem; margin-bottom: 4px;
}
.scene b { display: block; color: var(--red); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }

.starter { text-align: center; padding: 20px 8px; }
.starter p { color: var(--muted); max-width: 440px; margin: 0 auto 14px; }
.starter .btn { margin: 4px; }

.msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; word-wrap: break-word; white-space: pre-wrap; animation: pop .18s ease-out; }
.msg.parent { align-self: flex-end; background: var(--slate); color: var(--white); border-bottom-right-radius: 6px; }
.msg.child { align-self: flex-start; background: var(--white); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.msg .act { display: block; font-style: italic; color: var(--muted); font-size: .92rem; margin-bottom: 2px; }
.msg-mood { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--muted); margin: -4px 0 2px 6px; }
.msg-mood i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--mc); }
.msg.system { align-self: center; background: var(--pink-soft); font-size: .9rem; text-align: center; max-width: 92%; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

.coach {
  align-self: stretch; background: var(--white); border-left: 5px solid var(--red); border-radius: var(--radius-sm);
  padding: 12px 14px; box-shadow: var(--shadow); font-size: .95rem; animation: pop .18s ease-out;
}
.coach b.lbl { display: flex; align-items: center; gap: 6px; color: var(--red); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.coach p { margin: 0 0 6px; }
.coach .say { background: var(--soft); border-radius: var(--radius-sm); padding: 8px 12px; font-style: italic; }
.coach .btn { margin-top: 6px; padding-left: 0; color: var(--red); min-height: 36px; }

.typing { align-self: flex-start; background: var(--white); border-radius: 18px; border-bottom-left-radius: 6px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; gap: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.composer { flex: none; background: var(--cream); border-top: 1px solid var(--line); padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); }
.composer-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; min-height: 34px; font-size: .85rem; font-weight: 700; cursor: pointer; color: var(--slate);
}
.tool-btn .ico { width: 16px; height: 16px; color: var(--red); }
.tool-btn[disabled] { opacity: .5; cursor: not-allowed; }
.composer-box { display: flex; align-items: flex-end; gap: 8px; background: var(--white); border: 2px solid var(--line); border-radius: 24px; padding: 6px 6px 6px 16px; }
.composer-box:focus-within { border-color: var(--slate); }
.composer-box textarea {
  flex: 1; border: 0; background: transparent; resize: none; outline: none; padding: 8px 0; max-height: 140px;
  font-size: 16px; line-height: 1.4;
}
.send-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--red); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.send-btn .ico { width: 20px; height: 20px; margin-left: -2px; }
.send-btn[disabled] { background: var(--line); cursor: not-allowed; }

/* ---------- Review ---------- */
.rv-top { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.ring { width: 96px; height: 96px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.ring .num b { font-size: 2rem; font-weight: 900; color: var(--slate); display: block; }
.ring .num small { font-size: .75rem; color: var(--muted); font-weight: 700; }
.rv-top h1 { font-size: clamp(1.4rem, 5.5vw, 1.9rem); margin: 0 0 4px; }
.rv-top p { margin: 0; font-size: .9rem; color: var(--muted); }

.journey { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-top: 12px; }
.journey svg { width: 100%; height: 90px; display: block; overflow: visible; }
.journey-legend { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); font-weight: 700; }

.rv-summary { margin-top: 16px; font-size: 1.05rem; }
.rv-list { display: grid; gap: 10px; }
.rv-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; border-left: 6px solid var(--lc, var(--blue)); }
.rv-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.rv-card p { margin: 0 0 6px; }
.rv-card p:last-child { margin-bottom: 0; }
.rv-card .quote { color: var(--muted); font-style: italic; font-size: .95rem; }
.rv-card .try { background: var(--soft); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 8px; font-size: .95rem; }
.rv-card .try b, .takeaway b.lbl { display: flex; align-items: center; gap: 6px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 2px; }
.rv-card .try b .ico, .takeaway b.lbl .ico { width: 15px; height: 15px; }
.takeaway { background: var(--slate); color: var(--white); border-radius: var(--radius); padding: 16px; margin-top: 20px; font-size: 1.05rem; }
.takeaway b.lbl { color: var(--pink); }
.takeaway p { margin: 0; }
.rv-actions { display: grid; gap: 10px; margin: 24px 0 8px; }
@media (min-width: 560px) { .rv-actions { grid-template-columns: 1fr 1fr; } }
.rv-mini { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0 0; }
.transcript { margin-top: 20px; }
.transcript summary { cursor: pointer; font-weight: 700; min-height: var(--tap); display: flex; align-items: center; }
.transcript .t-line { margin: 0 0 8px; font-size: .95rem; }
.transcript .t-line b { color: var(--slate); }
.cta-box { background: var(--pink-soft); border-radius: var(--radius); padding: 16px; margin-top: 24px; }
.cta-box p { margin-bottom: 10px; }

.loading { text-align: center; padding: 60px 16px; }
.loading .typing { display: inline-flex; margin-bottom: 12px; }

/* ---------- Sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(40, 50, 58, .45); display: flex; align-items: flex-end; justify-content: center; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 560px) { .sheet-backdrop { align-items: center; } }
.sheet { background: var(--card); border-radius: 20px; padding: 20px; width: 100%; max-width: 420px; box-shadow: 0 10px 40px rgba(0,0,0,.2); animation: pop .2s ease-out; }
.sheet h2 { font-size: 1.2rem; }
.sheet-actions { display: grid; gap: 8px; margin-top: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 70;
  background: var(--slate); color: var(--white); border-radius: 999px; padding: 10px 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: calc(100% - 32px); font-size: .95rem; text-align: center;
}

/* ---------- Footer ---------- */
.footer { background: var(--slate); color: var(--white); padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer a { color: var(--white); }
.footer-logo { height: 40px; width: auto; margin-bottom: 14px; }
.footer .small { opacity: .85; }
.footer .with-ico > .ico { color: var(--white); }

/* ---------- Print (review) ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .topbar, .rv-actions, .rv-mini, .cta-box, .toast { display: none !important; }
  .rv-card, .rv-top, .journey { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .takeaway { background: #fff; color: var(--slate); border: 2px solid var(--slate); }
  .transcript { display: block; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

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