:root {
  --ink: #002d3d;
  --teal: #0a3e49;
  --teal-2: #0b3d3f;
  --teal-soft: #e3ecec;
  --gold: #a57e3c;
  --gold-2: #c6a85b;
  --gold-3: #d9b26d;
  --gold-grad: linear-gradient(135deg, #a57e3c 0%, #c6a85b 55%, #d9b26d 100%);
  --cream: #f7f3ec;
  --paper: #ffffff;
  --line: #e7e0d3;
  --muted: #55666b;
  --danger: #9b2c2c;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(0, 45, 61, .06), 0 8px 24px rgba(0, 45, 61, .07);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs: 17px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
html.large-text { --fs: 20px; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans); font-size: var(--fs); line-height: 1.5; color: var(--ink);
  background: var(--cream); -webkit-font-smoothing: antialiased; min-height: 100vh;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 1.85em; } h2 { font-size: 1.35em; } h3 { font-size: 1.1em; }
p { margin: 0 0 .8em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 8px; }

/* App frame: phone-width column, centered on desktop */
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--cream); }
@media (min-width: 700px) {
  body { background: #ebe5d9; }
  #app { box-shadow: 0 0 60px rgba(0,45,61,.10); }
}
.screen { padding: 12px 20px calc(110px + var(--safe-b)); animation: fade .25s ease; }
.screen.no-nav { padding-bottom: 40px; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px; background: rgba(247,243,236,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topbar .brand img { height: 34px; width: auto; }
.topbar .back { background: none; border: 0; padding: 8px 4px; display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; min-height: 44px; }
.help-pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; min-height: 40px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .88em; cursor: pointer; }
.help-pill svg { color: var(--gold); }

/* Bottom nav */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + var(--safe-b)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted);
  font-size: .72em; font-weight: 500; padding: 6px 0; min-height: 52px; justify-content: center; border-radius: 12px; }
.tabbar a.active { color: var(--ink); }
.tabbar a.active svg { color: var(--gold); }
.tabbar svg { width: 24px; height: 24px; }

/* Cards and layout */
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.dark { background: var(--teal-2); color: #f7f1e5; position: relative; overflow: hidden; }
.card.dark h1, .card.dark h2, .card.dark h3 { color: #fff; }
.card.dark p { color: #d9e3e1; }
.card.dark .watermark { position: absolute; right: -60px; top: -60px; width: 220px; opacity: .18; pointer-events: none; }
.eyebrow { font-size: .74em; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: .88em; }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 0 10px; }
.section-title h2 { margin: 0; font-size: 1.2em; }
.section-title a { font-size: .88em; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; text-decoration: none; font-size: 1em; transition: transform .1s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.gold { background: var(--gold-grad); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.15); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.light { background: #fff; color: var(--ink); }
.btn.outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn.block { width: 100%; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .9em; }
.btn[disabled] { opacity: .45; cursor: default; }
.linkbtn { background: none; border: 0; padding: 8px 0; color: var(--teal); text-decoration: underline; cursor: pointer; font-weight: 500; }

/* Feeling chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { text-decoration: none; color: inherit; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 10px 16px; min-height: 46px;
  cursor: pointer; font-weight: 500; text-align: left; }
.chip:hover { border-color: var(--gold-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 2px 20px 6px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chip { flex: none; }
.chips.feel { display: grid; grid-template-columns: 1fr 1fr; }
.chips.feel .chip { display: flex; align-items: center; padding: 10px 14px; line-height: 1.25; }
.card.dark .chip { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.card.dark .chip:hover { border-color: var(--gold-3); background: rgba(255,255,255,.14); }

/* Mood scale */
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mood { border: 1.5px solid var(--line); background: var(--paper); border-radius: 16px; padding: 10px 2px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .8em; font-weight: 500; min-height: 76px; justify-content: center; }
.mood .dot { width: 26px; height: 26px; border-radius: 50%; }
.mood.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* Tool list item */
.tool { display: flex; gap: 14px; align-items: center; background: var(--paper); border-radius: var(--radius-sm); padding: 14px 16px;
  box-shadow: var(--shadow); text-decoration: none; color: inherit; margin-bottom: 10px; min-height: 72px; border: 0; width: 100%; text-align: left; cursor: pointer; }
.tool .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--teal-soft); display: grid; place-items: center; flex: none; color: var(--teal); }
.tool .ic svg { width: 24px; height: 24px; }
.tool .t, .tool .d { display: block; }
.tool .t { font-weight: 600; line-height: 1.3; }
.tool .d { font-size: .86em; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.tool .meta { margin-left: auto; text-align: right; font-size: .78em; color: var(--muted); flex: none; }
.badge { display: inline-block; font-size: .7em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.badge.plus { background: var(--gold-grad); color: #fff; }
.badge.free { background: var(--teal-soft); color: var(--teal); }
.badge.saved { background: #f3ead6; color: var(--gold-text, #7c5c22); }

.hero-rec { border-radius: var(--radius); padding: 22px; background: var(--paper); box-shadow: var(--shadow); margin-bottom: 14px; border: 2px solid var(--gold-2); }

/* Tool runner */
.runner { min-height: calc(100vh - 70px); display: flex; flex-direction: column; padding: 8px 22px 32px; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0 22px; }
.progress > i { display: block; height: 100%; background: var(--gold-grad); transition: width .3s; }
.step-text { font-family: var(--serif); font-size: 1.4em; line-height: 1.35; margin: 10px 0 20px; }
.runner .spacer { flex: 1; }
.breath { position: relative; width: 240px; height: 240px; margin: 10px auto 18px; display: grid; place-items: center; }
.breath img { width: 100%; height: 100%; transition: transform var(--bdur, 4s) ease-in-out; transform: scale(.62); }
.breath.in img { transform: scale(1); }
.breath .label { position: absolute; font-weight: 600; font-size: 1.05em; color: var(--ink); background: rgba(255,255,255,.85); padding: 4px 12px; border-radius: 99px; }
.timer { font-family: var(--serif); font-size: 3em; text-align: center; margin: 10px 0; font-variant-numeric: tabular-nums; }
textarea, input[type=text], input[type=email], input[type=password], input[type=time], input[type=tel], select {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 16px; min-height: 52px; }
textarea { min-height: 110px; resize: vertical; }
textarea.long { min-height: 180px; }
textarea:focus, input:focus, select:focus { border-color: var(--gold-2); outline: none; box-shadow: 0 0 0 3px rgba(198,168,91,.25); }
label.field { display: block; font-weight: 500; margin: 14px 0 6px; font-size: .92em; }

/* Welcome / auth */
.welcome { min-height: 100vh; background: var(--teal-2); color: #fff; display: flex; flex-direction: column; padding: 28px 24px calc(28px + var(--safe-b)); position: relative; overflow: hidden; }
.welcome .art { position: absolute; width: 520px; left: 50%; top: 42%; transform: translate(-50%, -50%); opacity: .12; pointer-events: none; }
.welcome .logo { width: 210px; margin: 6vh auto 0; position: relative; }
.welcome .content { margin-top: auto; position: relative; }
.welcome h1 { color: #fff; font-size: 2.05em; }
.welcome p { color: #d9e3e1; }
.welcome .fine { font-size: .8em; color: #b9c9c6; text-align: center; margin-top: 16px; }
.auth { padding: 8px 22px 40px; }
.auth .logo { width: 180px; margin: 10px auto 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #ece6da; border-radius: 999px; padding: 4px; margin-bottom: 8px; }
.tabs button { border: 0; background: none; padding: 10px; border-radius: 999px; font-weight: 600; cursor: pointer; min-height: 44px; }
.tabs button.on { background: #fff; box-shadow: var(--shadow); }
.pw { position: relative; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--teal); font-weight: 600; cursor: pointer; padding: 8px; }
.error { color: var(--danger); font-size: .9em; margin-top: 8px; min-height: 1.2em; }
.note { background: var(--teal-soft); border-radius: 14px; padding: 12px 14px; font-size: .88em; color: var(--teal); }

/* Help screen */
.helpline { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 10px;
  box-shadow: var(--shadow); text-decoration: none; color: inherit; min-height: 72px; }
.helpline .num { margin-left: auto; font-weight: 700; color: var(--ink); white-space: nowrap; }
.helpline.urgent { background: var(--ink); color: #fff; }
.helpline.urgent .num { color: var(--gold-3); }

/* Grow pillars with brand art */
.pillar-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.pillar-card img { height: 54px; width: auto; object-fit: contain; object-position: left; }
.pillar-card .t { font-weight: 600; }
.pillar-card .d { font-size: .84em; color: var(--muted); line-height: 1.35; }

/* Bars */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 6px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars .b i { display: block; width: 100%; border-radius: 8px 8px 4px 4px; background: var(--gold-grad); min-height: 4px; }
.bars .b i.empty { background: var(--line); }
.bars .b span { font-size: .7em; color: var(--muted); }
.hbar { margin: 10px 0; }
.hbar .lbl { display: flex; justify-content: space-between; font-size: .9em; font-weight: 500; }
.hbar .track { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.hbar .track i { display: block; height: 100%; background: var(--gold-grad); border-radius: 99px; }

/* Scale buttons for wellness check */
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.scale button { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 4px; min-height: 58px; cursor: pointer; font-size: .82em; font-weight: 500; }
.scale button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Plans */
.plan { border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; margin-bottom: 14px; position: relative; }
.plan.featured { border-color: var(--gold-2); box-shadow: var(--shadow); }
.plan .price { font-family: var(--serif); font-size: 1.8em; }
.plan ul { padding-left: 0; list-style: none; margin: 12px 0 16px; }
.plan li { padding: 5px 0 5px 28px; position: relative; font-size: .94em; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 12px; height: 7px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }
.toggle-wrap { display: flex; justify-content: center; margin-bottom: 16px; }

/* Journal */
.entry { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 10px; }
.entry .date { font-size: .78em; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.entry .txt { white-space: pre-wrap; margin-top: 6px; }

/* Lists in Me */
.list a, .list button { display: flex; align-items: center; justify-content: space-between; padding: 15px 2px; border: 0; border-bottom: 1px solid var(--line);
  background: none; width: 100%; text-decoration: none; color: inherit; cursor: pointer; min-height: 54px; text-align: left; }
.list a:last-child, .list button:last-child { border-bottom: 0; }
.list .danger { color: var(--danger); }
.switch { width: 50px; height: 30px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--teal); }
.switch.on::after { transform: translateX(20px); }

/* Toast + sheet */
.toast { position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 999px; z-index: 60; font-weight: 500; font-size: .92em; box-shadow: var(--shadow); max-width: 90vw; text-align: center; }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,30,40,.45); z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--cream); width: 100%; max-width: 560px; border-radius: 26px 26px 0 0; padding: 22px 22px calc(26px + var(--safe-b)); animation: up .25s ease; max-height: 90vh; overflow: auto; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.done-art { width: 120px; margin: 20px auto 6px; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.safety { background: #fff6e6; border: 1px solid #ecd9ae; border-radius: 16px; padding: 14px 16px; margin: 12px 0; font-size: .92em; }
.lock { display: inline-flex; vertical-align: -3px; }
footer.disclaimer { font-size: .78em; color: var(--muted); text-align: center; margin: 28px 0 0; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition-duration: .01s !important; }

/* ---------- v2: accessibility contrast for gold text ---------- */
:root { --gold-text: #7c5c22; }
.eyebrow { color: var(--gold-text); }
.badge.plus { background: linear-gradient(135deg, #8a6a2f, #a57e3c); }

/* ---------- Week day buttons ---------- */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.day { aspect-ratio: 1 / 1.15; min-height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 600; font-size: .85em; color: var(--ink); padding: 0; }
.day svg { width: 16px; height: 16px; }
.day.today { border-color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--gold-2); }
.day.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.day[disabled] { opacity: .35; cursor: default; }
.days.dark .day { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.days.dark .day.on { background: var(--gold-grad); border-color: transparent; color: #fff; }
.days.dark .day.today { border-color: #d9b26d; }

/* ---------- Squads ---------- */
.squads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.squad { border-radius: var(--radius); padding: 16px; background: #fff; box-shadow: var(--shadow); border: 2px solid transparent; }
.squad.sq-A { background: linear-gradient(160deg, #fbf4e3, #fff); }
.squad.sq-B { background: linear-gradient(160deg, #e3ecec, #fff); }
.squad.mine { border-color: var(--gold-2); }
.squad .score { font-family: var(--serif); font-size: 2.2em; line-height: 1.1; margin-top: 6px; }
.member { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
details .member { box-shadow: none; border: 1px solid var(--line); }
.sheet .member { box-shadow: none; border: 1px solid var(--line); flex-wrap: wrap; }
.member .mn { flex: 1; min-width: 0; line-height: 1.3; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-grad); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.avatar.alt { background: var(--teal); }
details summary { cursor: pointer; min-height: 32px; list-style-position: outside; }
details[open] summary { margin-bottom: 10px; }
.sheet .tool { box-shadow: none; border: 1px solid var(--line); }
.sheet h3 { margin-top: 14px; }
.sheet .member .mact { display: flex; gap: 8px; width: 100%; padding-left: 50px; }

/* ---------- v3: Life Batteries ---------- */
.me-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.me-btn svg { width: 22px; height: 22px; }
.minibats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 4px; margin-top: 12px; }
.mb { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: .66em; font-weight: 600; padding: 4px 0; min-height: 48px; }
.modechip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .78em; font-weight: 600; }
.m-green { background: #e3efe5; color: #2f6b3c; }
.m-yellow { background: #f6ecd2; color: #6f5418; }
.m-red { background: var(--ink); color: #fff; }
.batrow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; min-height: 60px; }
.batrow:last-child { border-bottom: 0; }
.batrow .bn { flex: 1; line-height: 1.3; }
.ladder { display: grid; gap: 8px; }
.rung { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.rung .rl { flex: none; width: 58px; font-weight: 700; color: var(--gold-text); font-size: .85em; padding-top: 2px; }
.checkrow { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; min-height: 52px; font-size: .95em; }
.checkrow .box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; margin-top: 1px; }
.checkrow .box svg { width: 16px; height: 16px; }
.checkrow.on { border-color: var(--ink); }
.checkrow.on .box { background: var(--ink); border-color: var(--ink); color: #fff; }
label.checkrow input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.scale.five { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale.five button { font-size: .72em; padding: 8px 2px; min-height: 54px; line-height: 1.2; }
.linkbtn.on-skip { color: var(--gold-text); font-weight: 600; }
.weekdots { display: flex; gap: 6px; align-items: center; }
.weekdots i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-block; }
.weekdots i.on { background: var(--gold-grad); border-color: transparent; }
.weekdots i.today { box-shadow: 0 0 0 2px var(--cream), 0 0 0 3.5px var(--gold-2); }
.weekdots span { margin-left: 8px; }
.card.restart { border: 2px solid var(--gold-2); }
.modestrip { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin-top: 8px; }
.ms { aspect-ratio: 1; border-radius: 6px; background: var(--line); display: grid; place-items: center; font-size: .7em; font-weight: 700; }
@media (max-width: 360px) { .mb span { font-size: .9em; } .scale.five button { font-size: .66em; } }
.btn.nowrap { white-space: nowrap; padding: 0 6px; font-size: .84em; }
h1[tabindex="-1"]:focus { outline: none; }
.growth { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; text-align: center; }
.growth strong { display: block; font-family: var(--serif); font-size: 1.6em; line-height: 1.1; }
.growth span { font-size: .72em; color: var(--muted); line-height: 1.2; display: block; }
.donecard { border: 2px solid var(--gold-2); }
.scale.five button { font-size: .76em; min-height: 58px; }

/* Reminders */
.rem-sub { padding: 2px 2px 16px; border-bottom: 1px solid var(--line); }
.rem-sub input[type=time], .rem-sub select { max-width: 220px; }
.rem-preview { margin-top: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; line-height: 1.4; }
.rem-ch { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rem-ch:last-child { border-bottom: 0; padding-bottom: 2px; }
.rem-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: .9em; line-height: 1.4; }
.rem-consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--teal); }

.rem-cal { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rem-cal .btn.small { padding: 10px 14px; min-height: 44px; }

.rem-alarm { margin-top: 14px; background: var(--cream); border-radius: 14px; padding: 12px 14px; }
.rem-alarm summary { cursor: pointer; min-height: 32px; }
.rem-alarm ol { margin: 8px 0 0; padding-left: 20px; }
.list .chips .chip { display: inline-flex; width: auto; justify-content: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; min-height: 46px; }
.list .chips .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* v5: battery charge bars */
.chargebar { display: block; height: 8px; border-radius: 6px; background: #e6e1d6; margin: 6px 0 2px; overflow: hidden; }
.chargebar i { display: block; height: 100%; border-radius: 6px; background: #0a3e49; }
.card.dark .chargebar { background: rgba(255,255,255,.25); }
.card.dark .chargebar i { background: #d9b26d; }
.focusbadge { display: inline-block; font-size: .72em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #0a3e49; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }

/* v5.1: "I need help with…" */
.pickrow { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: #fff; border: 1.5px solid #e6e1d6; border-radius: 14px; padding: 12px 14px; font: inherit; color: inherit; min-height: 48px; cursor: pointer; }
.pickrow.on { border-color: #0a3e49; background: #eef4f3; }
.pickrow .tick { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid #0a3e49; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.pickrow.on .tick { background: #0a3e49; }
.stepnum { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: #0a3e49; color: #fff; font-size: .8em; font-weight: 700; align-items: center; justify-content: center; margin-right: 8px; vertical-align: 1px; }
.role { display: inline-block; font-size: .74em; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; margin-top: 4px; padding: 2px 8px; border-radius: 999px; }
.role.qw { background: #f3ead6; color: #6b5317; }
.role.bi { background: #0a3e49; color: #fff; }
.role.bn { background: #ece9e2; color: #3c3a35; }
.card.start { border: 2px solid #0a3e49; }

/* v5.2: Support Plans */
.spbats summary { cursor: pointer; }
.spbats li.inplan { font-weight: 500; }
.printonly { display: none; }
.writeline { border-bottom: 1px solid #999; padding: 18px 0 4px; margin: 0; }

@media print {
  @page { margin: 16mm; }
  html, body, #app, .app, .screen { background: #fff !important; }
  body { color: #000; font-size: 11.5pt; }
  .topbar, .tabbar, .noprint, .toast, .sheet-bg, .skip, .disclaimer, footer { display: none !important; }
  .printonly { display: block !important; }
  .printhead { border-bottom: 2px solid #0a3e49; padding-bottom: 6px; margin-bottom: 10px; font-size: 13pt; }
  .screen, main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .card, .safety, .card.flat, .card.dark { background: #fff !important; color: #000 !important; border: 1px solid #bbb !important; box-shadow: none !important; break-inside: avoid; page-break-inside: avoid; margin: 0 0 10px !important; }
  .card.start { border: 2px solid #000 !important; }
  .eyebrow { color: #333 !important; }
  .chargebar { border: 1px solid #999; }
  .chargebar i { background: #333 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .role, .focusbadge, .stepnum { border: 1px solid #000; background: #fff !important; color: #000 !important; }
  details > summary { list-style: none; }
  h1 { font-size: 20pt; margin: 4px 0; }
  a { color: #000; text-decoration: none; }
}

/* v5.3: WCAG 2.2 target size (24px minimum) for small links and text buttons */
.linkbtn { min-height: 24px; }
a.small, .small > a, p.small a, .muted.small a { display: inline-block; min-height: 24px; padding-block: 2px; }
.section-title > a { display: inline-block; min-height: 24px; padding-block: 2px; }
/* v5.4: compact chips for "Tailor ThriveLife" (still 36px+ tall) */
.chips.compact { gap: 6px; }
.chips.compact .chip { padding: 7px 13px; min-height: 36px; font-size: .93em; }
