/* Waypoint prototype styles.
   Colours and shapes are set as variables at the top: one set for each combination of
   version (standard or youth) and appearance (dark or light). */
:root {
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 16px; --r-lg: 22px; --r-pill: 999px;
  --head-w: 700;
  /* Standard version, dark (default) */
  --bg: #0E1E38; --surface: #172C50; --surface-2: #1F3861; --line: #33507F;
  --ink: #F7F5EF; --ink-2: #BDCADD;
  --accent: #4FD6CE; --accent-fill: #20B7B0; --on-accent: #0B1A30;
  --go: #A3DB8A; --urgent: #FF9F87; --urgent-fill: #FF9F87; --on-urgent: #2A0E07;
  --door-bg: #172C50; --door-ink: #F7F5EF; --door-edge: #20B7B0; --door-line: #4FD6CE;
  --warn-bg: rgba(255, 159, 135, 0.12); --tint: rgba(79, 214, 206, 0.12);
  --shadow: 0 10px 30px rgba(3, 10, 24, 0.45);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F7F5EF; --surface: #FFFFFF; --surface-2: #F1EBDD; --line: #D5CCB8;
  --ink: #152B50; --ink-2: #4A5870;
  --accent: #0A6763; --accent-fill: #152B50; --on-accent: #FFFFFF;
  --go: #2E6B1A; --urgent: #A8231B; --urgent-fill: #A8231B; --on-urgent: #FFFFFF;
  --door-bg: #152B50; --door-ink: #FFFFFF; --door-edge: #152B50; --door-line: #4FD6CE;
  --warn-bg: #FBE9E5; --tint: #E3F5F3;
  --shadow: 0 10px 28px rgba(21, 43, 80, 0.12);
  color-scheme: light;
}
[data-edition="youth"] { --r: 20px; --r-lg: 28px; --head-w: 800; --door-bg: #20B7B0; --door-ink: #0B1A30; --door-edge: #20B7B0; --door-line: #0B1A30; }
[data-edition="youth"][data-theme="light"] { --bg: #F3ECDC; --surface: #FFFDF8; --surface-2: #E8DDC8; --line: #CDBF9F; }
[data-size="l"] { font-size: 112.5%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; min-height: 100vh; min-height: 100dvh; padding-bottom: 132px; -webkit-tap-highlight-color: transparent; }
body.is-gone { background: #fff; } body.is-gone > * { display: none !important; }
h1, h2, h3, legend, .door__t, .tile__t, .pick__t { font-family: var(--font-display); font-weight: var(--head-w); letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.6rem, 6vw, 2.05rem); margin: 6px 0 10px; text-wrap: balance; outline: none; }
h2 { font-size: 1.18rem; }
h3 { font-size: 1.06rem; }
p { margin: 0 0 12px; } p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 10px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 46ch; }
.fine { font-size: 0.86rem; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 12px; }
.fine .ic { width: 16px; height: 16px; }
.sub { margin: 28px 0 12px; }
.step { font-size: 0.88rem; font-weight: 600; color: var(--accent); margin: 0; }

/* ---------- Frame ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.mark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 1.14rem; color: var(--ink); text-decoration: none; }
.mark__dot { width: 14px; height: 14px; border-radius: 4px; transform: rotate(45deg); background: var(--accent-fill); box-shadow: 0 0 0 4px var(--tint); }
[data-theme="light"] .mark__dot { background: #20B7B0; }
.mark__tag { font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 8px; }
.top__acts { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 13px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 0.86rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pill .ic { width: 17px; height: 17px; }
.pill--urgent { border-color: var(--urgent); color: var(--urgent); background: none; }
#view { max-width: 600px; margin: 0 auto; padding: 18px 16px 28px; outline: none; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0); }
.lifeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 600px; margin: 0 auto; padding: 8px 12px 6px; }
.lifeline__label { display: none; }
.lifeline a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 3px 4px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; line-height: 1.15; }
.lifeline b { font-family: var(--font-display); font-size: 0.98rem; }
.lifeline span { font-size: 0.7rem; color: var(--ink-2); white-space: nowrap; }
.lifeline .life--911 { border-color: var(--urgent); } .lifeline .life--911 b { color: var(--urgent); }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 600px; margin: 0 auto; padding: 0 6px 4px; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; padding: 7px 2px 4px; color: var(--ink-2); text-decoration: none; font-size: 0.74rem; font-weight: 600; border-radius: 12px; }
.tabs a[aria-current="page"] { color: var(--accent); }
.tabs a[aria-current="page"] .ic { stroke-width: 2.3; }
body[data-view="welcome"] .tabs, body[data-view="welcome"] .pill--urgent { display: none; }
body[data-view="welcome"] { padding-bottom: 80px; }

@media (min-width: 960px) {
  body { padding: 0 0 40px 268px; }
  .dock { top: 0; right: auto; width: 268px; border-top: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: space-between; padding: 76px 16px 20px; }
  .lifeline { grid-template-columns: 1fr; margin: 0; padding: 0; max-width: none; }
  .lifeline__label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }
  .lifeline a { flex-direction: row; justify-content: space-between; padding: 8px 14px; }
  .lifeline span { font-size: 0.8rem; }
  .tabs { grid-template-columns: 1fr; gap: 4px; margin: 0; padding: 0; max-width: none; }
  .tabs a { flex-direction: row; gap: 12px; justify-content: flex-start; padding: 10px 14px; font-size: 0.98rem; min-height: 48px; }
  .tabs a[aria-current="page"] { background: var(--surface); }
  .top { position: fixed; left: 0; right: 0; z-index: 40; background: none; border: 0; pointer-events: none; padding: 12px 24px 12px 20px; }
  .top > * { pointer-events: auto; }
  #view { padding-top: 84px; max-width: 680px; }
  body[data-view="welcome"] .tabs { display: grid; visibility: hidden; }
}

/* ---------- Buttons and choices ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 18px; border-radius: var(--r-pill); border: 1.5px solid transparent; font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; line-height: 1.2; text-decoration: none; text-align: center; }
.btn .ic { width: 19px; height: 19px; }
.btn--primary { background: var(--accent-fill); color: var(--on-accent); }
.btn--ghost { background: none; color: var(--ink); border-color: var(--line); }
.btn--call { background: var(--accent-fill); color: var(--on-accent); }
.btn--urgent { background: var(--urgent-fill); color: var(--on-urgent); }
.btn--big { min-height: 56px; font-size: 1.06rem; padding-inline: 24px; width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.is-static { cursor: default; border-style: dashed; color: var(--ink-2); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link .ic { width: 17px; height: 17px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; background: none; border: 0; padding: 0; color: var(--ink-2); font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.back .ic { width: 18px; height: 18px; }
.stack { display: grid; gap: 12px; margin: 18px 0; } .stack--tight { gap: 4px; margin: 8px 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.bar { margin-top: 22px; }
.group { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.group > legend { font-size: 1.06rem; padding: 0; margin-bottom: 12px; }
.picks { display: grid; gap: 10px; }
.picks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.picks--needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; min-height: 72px; padding: 14px 40px 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.pick__t { font-size: 1rem; }
.pick__d { font-size: 0.86rem; color: var(--ink-2); line-height: 1.4; }
.pick__tick { position: absolute; right: 12px; top: 14px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); color: transparent; }
.pick__tick .ic { width: 14px; height: 14px; stroke-width: 3; }
.pick[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); }
.pick[aria-pressed="true"] .pick__tick { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.pick--row { min-height: 56px; justify-content: center; }
[data-edition="youth"] .pick--need[aria-pressed="true"] { background: #20B7B0; border-color: #20B7B0; color: #0B1A30; }
[data-edition="youth"] .pick--need:nth-child(3n+2)[aria-pressed="true"] { background: #85C76A; border-color: #85C76A; }
[data-edition="youth"] .pick--need:nth-child(3n)[aria-pressed="true"] { background: #2764A5; border-color: #2764A5; color: #fff; }
[data-edition="youth"] .pick--need[aria-pressed="true"] .pick__tick { background: #0B1A30; border-color: #0B1A30; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: thin; }
.chip { flex: none; min-height: 42px; padding: 8px 15px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 0.92rem; font-weight: 550; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); color: var(--accent); font-weight: 650; }
.chip.is-static { min-height: 0; padding: 5px 12px; font-size: 0.86rem; }
.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 550; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 28px; margin: 0; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--line); cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--ink-2); transition: transform .15s; }
.switch input:checked { background: var(--accent-fill); border-color: var(--accent-fill); }
.switch input:checked::after { transform: translateX(18px); background: var(--on-accent); }
.switch.is-off { opacity: 0.5; cursor: not-allowed; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); margin: 8px 0 16px; }
.seg button { min-height: 40px; padding: 6px 18px; border: 0; border-radius: var(--r-pill); background: none; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); }
select, textarea, input[type="search"] { width: 100%; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); }
textarea { resize: vertical; min-height: 56px; line-height: 1.45; }
select { min-height: 48px; }

/* ---------- Home ---------- */
.trust { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 550; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 13px; margin: 4px 0 18px; }
.trust .ic { width: 16px; height: 16px; color: var(--accent); }
.door { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px; margin-bottom: 12px; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; overflow: hidden; }
.door > .ic:first-child { width: 26px; height: 26px; color: var(--accent); }
.door > span { display: grid; gap: 3px; flex: 1; min-width: 0; }
.door__t { font-size: 1.1rem; display: block; }
.door__d { font-size: 0.9rem; color: var(--ink-2); line-height: 1.4; display: block; }
.door__go { width: 20px; height: 20px; color: var(--ink-2); }
.door--btn { margin: 0; }
.door--main { display: block; padding: 22px 20px 20px; min-height: 188px; background: var(--door-bg); color: var(--door-ink); border-color: var(--door-edge); }
.door--main .door__t { position: relative; font-size: 1.5rem; max-width: 12ch; margin-top: 82px; }
.door--main .door__d { position: relative; color: inherit; opacity: 0.86; max-width: 34ch; margin-top: 6px; }
.door__trail { position: absolute; right: -6px; top: 2px; width: 176px; height: auto; }
.trail-bed { stroke: currentColor; stroke-opacity: 0.16; stroke-width: 20; stroke-linecap: round; }
.trail-line { stroke: var(--door-line); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 9; }
.trail-dot { fill: var(--door-bg); stroke: var(--door-line); stroke-width: 3; }
.trail-dot--end { fill: var(--door-line); }
.door--resume { border-color: var(--accent); background: var(--tint); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.tile .ic { color: var(--accent); margin-bottom: 4px; }
.tile__t { font-size: 0.98rem; }
.tile__d { font-size: 0.84rem; color: var(--ink-2); line-height: 1.35; }
[data-edition="youth"] .tile:nth-child(3n+1) .ic { color: #20B7B0; }
[data-edition="youth"] .tile:nth-child(3n+2) .ic { color: #5DA143; }
[data-edition="youth"] .tile:nth-child(3n) .ic { color: #2764A5; }
[data-edition="youth"][data-theme="dark"] .tile:nth-child(3n) .ic { color: #7FB2EA; }
.welcome { position: relative; padding-top: 8px; }
.welcome__trail { display: block; width: 190px; height: auto; margin: 0 0 4px -6px; color: var(--ink); --door-bg: var(--bg); --door-line: var(--accent); }
.welcome .btn--big { margin-top: 26px; }

/* ---------- Cards, notes, panels ---------- */
.res { padding: 16px; margin: 12px 0; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); }
.res--sample { border-style: dashed; }
.res > p { font-size: 0.96rem; }
.res__name { font-size: 1.06rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 600; padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-2); }
.badge--open { border-color: var(--go); color: var(--go); }
.badge--sample { border-color: var(--urgent); color: var(--urgent); }
.badge--ai { color: var(--accent); border-color: var(--accent); margin-bottom: 14px; }
.badge--ai .ic { width: 15px; height: 15px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.acts .btn { min-height: 44px; font-size: 0.92rem; padding-inline: 15px; }
details.more { margin: 8px 0 2px; }
details.more summary, details.fold summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; }
details.more summary::-webkit-details-marker, details.fold summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; } details.more[open] summary::before { content: "– "; }
details.more p { margin-top: 8px; font-size: 0.94rem; color: var(--ink-2); }
details.fold { border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); padding: 0 16px; }
details.fold summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; color: var(--ink); font-family: var(--font-display); font-weight: 700; }
details.fold summary .ic { width: 18px; height: 18px; color: var(--ink-2); transition: transform .15s; }
details.fold[open] summary .ic { transform: rotate(90deg); }
details.fold p { color: var(--ink-2); } details.fold p:last-child { padding-bottom: 16px; }
.panel { padding: 18px 16px; margin: 16px 0; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--surface); }
.panel h2 { margin: 0 0 10px; } .panel h2:not(:first-child) { margin-top: 20px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 12px 0; border-radius: var(--r); background: var(--tint); font-size: 0.94rem; }
.note .ic { width: 19px; height: 19px; margin-top: 2px; color: var(--accent); }
.note--warn { background: var(--warn-bg); flex-wrap: wrap; } .note--warn .ic { color: var(--urgent); }
.note .row { width: 100%; margin: 8px 0 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; }
.ticks .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); stroke-width: 2.4; }
.steps { padding-left: 1.3em; margin: 14px 0; display: grid; gap: 10px; }
.steps li::marker { font-weight: 700; color: var(--accent); }

/* ---------- The map ---------- */
.trail { list-style: none; padding: 0; margin: 20px 0 8px; }
.stop { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding-bottom: 26px; }
.stop::before { content: ""; position: absolute; left: 16px; top: 36px; bottom: 0; border-left: 2.5px dotted var(--accent); opacity: 0.7; }
.stop:last-child::before { display: none; }
.stop__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; }
.stop--start .stop__mark { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.stop__mark .ic { width: 17px; height: 17px; stroke-width: 2.2; }
.stop__body h2 { margin: 5px 0 6px; font-size: 1.22rem; }
.stop__about { color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .trail.is-fresh .stop { opacity: 0; transform: translateY(10px); animation: arrive .5s ease forwards; }
  .trail.is-fresh .stop:nth-child(2) { animation-delay: .22s; } .trail.is-fresh .stop:nth-child(3) { animation-delay: .44s; }
  .trail.is-fresh .stop:nth-child(4) { animation-delay: .66s; } .trail.is-fresh .stop:nth-child(n+5) { animation-delay: .88s; }
  @keyframes arrive { to { opacity: 1; transform: none; } }
}

/* ---------- Guide ---------- */
.chat { display: grid; gap: 12px; }
.log { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 18px; border: 1.5px solid var(--line); font-size: 0.98rem; }
.msg__text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--you { align-self: flex-end; background: var(--surface-2); border-bottom-right-radius: 6px; }
.msg--guide { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.msg--crisis { max-width: 100%; display: flex; gap: 10px; border-color: var(--urgent); background: var(--warn-bg); }
.msg--crisis > .ic { color: var(--urgent); margin-top: 2px; }
.msg--note { max-width: 100%; background: var(--tint); border-color: transparent; }
.msg--note .btn { margin-top: 4px; }
.suggest { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.suggest p { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 4px; }
.typing { font-size: 0.88rem; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 4px; } .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }

/* ---------- Support list ---------- */
.search { position: relative; margin: 16px 0 6px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ink-2); pointer-events: none; }
.search input { padding-left: 42px; min-height: 50px; }
.listbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.listbar .fine { margin: 0; }

/* ---------- Check-in ---------- */
.scale { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.scale legend { font-size: 1.04rem; padding: 0; margin-bottom: 10px; }
.scale__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale--3 .scale__row { grid-template-columns: repeat(3, 1fr); }
.scale__row button { min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 650; }
.scale__row button[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.scale__ends { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-2); margin-top: 6px; }
.chart { margin: 0; padding: 14px 12px 12px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { font-size: 10px; fill: var(--ink-2); font-family: var(--font-body); }
.chart .ln { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chart .ln--mood { stroke: var(--accent); } .chart .ln--urge { stroke: var(--urgent); stroke-dasharray: 5 5; }
.chart .pt--mood { fill: var(--accent); } .chart .pt--urge { fill: var(--urgent); }
.chart figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.82rem; color: var(--ink-2); margin-top: 8px; }
.key::before { content: ""; display: inline-block; width: 18px; margin-right: 6px; vertical-align: middle; border-top: 3px solid var(--accent); }
.key--urge::before { border-top: 3px dashed var(--urgent); }

/* ---------- Skills ---------- */
.timer { text-align: center; padding: 18px; margin: 16px 0; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--surface); }
.timer__time { font-family: var(--font-display); font-weight: 800; font-size: 3rem; font-variant-numeric: tabular-nums; margin: 0; }
.timer .row { justify-content: center; margin-bottom: 0; }
.pacer { display: grid; place-items: center; height: 190px; margin: 10px 0; }
.pacer__ring { grid-area: 1 / 1; width: 150px; height: 150px; border-radius: 50%; background: var(--tint); border: 3px solid var(--accent); }
.pacer__text { grid-area: 1 / 1; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin: 0; }
@media (prefers-reduced-motion: no-preference) { .pacer__ring { animation: breathe 10s ease-in-out infinite; } @keyframes breathe { 0% { transform: scale(.62); } 40% { transform: scale(1); } 100% { transform: scale(.62); } } }
.quote { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; width: 100%; padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); }
.quote .ic { width: 18px; height: 18px; color: var(--ink-2); }

/* ---------- Share and settings ---------- */
.summary { white-space: pre-wrap; padding: 14px 16px; border-radius: var(--r); border: 1.5px dashed var(--line); background: var(--surface); font-size: 0.94rem; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.qrbox { margin-top: 6px; }
.qr { display: block; width: min(100%, 300px); height: auto; border-radius: 12px; margin: 0 auto 10px; }
.payload { margin: 12px 0; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); font-size: 0.82rem; line-height: 1.5; overflow-x: auto; white-space: pre; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

@media (max-width: 479px) {
  .top { padding-inline: 12px; gap: 6px; }
  .mark__tag { display: none; }
  .top__acts { gap: 6px; }
  .pill { padding: 6px 10px; font-size: 0.8rem; gap: 5px; }
  .pill .ic { width: 15px; height: 15px; }
}
@media (max-width: 379px) { .pill .ic { display: none; } .mark { font-size: 1.04rem; } }
@media (max-width: 359px) { .picks--2, .picks--needs, .tiles { grid-template-columns: minmax(0, 1fr); } .mark__tag { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  .top, .dock, .back, #share-tools .row, .group, #note-wrap, .lead { display: none !important; }
  body { background: #fff; color: #000; padding: 0; } .summary { border: 0; padding: 0; color: #000; background: none; } .qr { margin: 16px 0; }
}
