@font-face { font-family: 'Bricolage'; src: url(../fonts/bricolage.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/inter.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #F5F1EA; --bg2: #EDE6DA; --card: #FFFDF9; --ink: #1F2328; --ink2: #4A5059; --muted: #7B818A;
  --line: #E4DCCF; --stone: #8A8F98; --stone-l: #B5B9C0; --stone-d: #5C626B;
  --accent: #FF6A3D; --accent-d: #E0522A; --accent-soft: #FFE4D9; --gem: #FFB020; --ok: #1E9E66; --ok-soft: #DDF4E9; --danger: #C83A2B;
  --r: 18px; --r-sm: 12px; --shadow: 0 1px 0 rgba(31,35,40,.04), 0 8px 24px -12px rgba(31,35,40,.18);
  --display: 'Bricolage', 'Inter', system-ui, sans-serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}
/* Playwright / device tests can set html.sim-standalone to pretend iPhone home-indicator insets */
html.sim-standalone {
  --safe-top: 47px;
  --safe-right: 0px;
  --safe-bottom: 34px;
  --safe-left: 0px;
}
html { -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body { margin: 0; font: 16px/1.5 var(--body); color: var(--ink); background: var(--bg);
  background-image: radial-gradient(rgba(31,35,40,.045) 1px, transparent 1.2px); background-size: 14px 14px; min-height: 100vh; min-height: 100dvh;
  overscroll-behavior: none; }
/* iOS Safari zooms focused inputs under 16px; keep a floor on every text field */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), textarea, select { font-size: 16px; }
@media (display-mode: standalone), (display-mode: fullscreen) {
  html, body { background: var(--bg); overscroll-behavior: none; }
}
html.standalone, html.sim-standalone { background: var(--bg); }
html.standalone body, html.sim-standalone body { overscroll-behavior: none; }
[hidden] { display: none !important; }
a { color: var(--accent-d); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); }

/* wordmark */
.wordmark { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -.04em; line-height: 1; }
.wordmark span { color: var(--accent); margin-left: .08em; position: relative; }
.wordmark span::after { content: ''; position: absolute; right: -.18em; top: .05em; width: .16em; height: .16em; background: var(--gem); clip-path: polygon(50% 0, 100% 60%, 30% 100%, 0 40%); }
.wordmark.sm { font-size: 24px; }

/* buttons */
.btn { border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 700; font-size: 16px; transition: transform .12s, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 0 -2px var(--accent); }
.btn-primary:hover { background: #2b3038; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--stone-l); background: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-danger { background: #fff; color: var(--danger); border: 1.5px solid #f0c9c4; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: 17px; display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--stone-l); }

/* ================= onboarding ================= */
.onboard { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; align-items: stretch; }
.ob-card { width: 100%; max-width: 520px; display: flex; flex-direction: column; padding: max(16px, var(--safe-top)) 20px max(16px, var(--safe-bottom)); }
.ob-top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.ob-back { visibility: hidden; }
.ob-back.show { visibility: visible; }
.ob-spacer { width: 40px; }
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); transition: background .3s, width .3s; }
.ob-dots i.on { background: var(--accent); width: 34px; }
.ob-dots i.past { background: var(--ink); }
.ob-step { flex: 1; padding: 12px 0 20px; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.ob-step h2 { font-size: 30px; line-height: 1.1; margin-top: 8px; }
.sub { color: var(--ink2); margin: 8px 0 20px; }
.hint { color: var(--muted); font-size: 14px; }
.err { color: var(--danger); font-weight: 600; font-size: 14px; }
.ob-hero { text-align: center; padding: 28px 0 10px; }
.ob-logo { width: 112px; height: 112px; filter: drop-shadow(0 10px 14px rgba(31,35,40,.18)); animation: tap 2.4s ease-in-out infinite; }
@keyframes tap { 0%,70%,100% { transform: rotate(0); } 78% { transform: rotate(-6deg) translateY(2px); } 86% { transform: rotate(3deg); } }
.ob-hero .wordmark { font-size: 60px; margin-top: 10px; }
.lede { font-size: 19px; color: var(--ink2); max-width: 340px; margin: 14px auto 0; }
.ob-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.ob-points li { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px 12px 42px; position: relative; color: var(--ink2); }
.ob-points li::before { content: ''; position: absolute; left: 15px; top: 17px; width: 14px; height: 14px; background: var(--accent); clip-path: polygon(50% 0, 100% 45%, 75% 100%, 10% 90%, 0 35%); }
.privacy-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.ob-actions { position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(transparent, var(--bg) 30%); }
.ob-foot { text-align: center; font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input, .weight-row input { width: 100%; font: 600 20px var(--body); padding: 13px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card); color: var(--ink); outline: none; }
.field input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.weight-row { display: flex; gap: 10px; }
.weight-row input { flex: 1; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 10px 14px; font-weight: 600; font-size: 15px; transition: all .15s; }
.seg button.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg-sm { flex-wrap: nowrap; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg-sm button { border: 0; padding: 9px 14px; }

.choices { display: grid; gap: 10px; }
.choice { text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r); padding: 14px 16px 14px 52px; position: relative; transition: border-color .15s, box-shadow .15s, transform .1s; width: 100%; }
.choice b { display: block; font-size: 17px; }
.choice small { display: block; color: var(--ink2); font-size: 14px; margin-top: 2px; }
.choice::before { content: ''; position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--stone-l); background: #fff; transition: all .15s; }
.choices.multi .choice::before, .none-choice::before { border-radius: 7px; }
.choice.selected { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice.selected::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.choice .lvl { position: absolute; right: 14px; top: 14px; display: flex; gap: 3px; }
.choice .lvl i { width: 6px; height: 14px; border-radius: 2px; background: var(--line); }
.choice .lvl i.f { background: var(--accent); }
.none-choice { margin-top: 10px; padding-top: 12px; padding-bottom: 12px; }

.readiness { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: q; }
.readiness li { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 12px 12px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.readiness li.yes { border-color: #f1b9a6; background: #fff6f2; }
.readiness p { margin: 0; font-size: 15px; line-height: 1.35; }
.yn { display: flex; gap: 4px; flex-shrink: 0; }
.yn button { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 11px; font-weight: 700; font-size: 14px; min-width: 48px; }
.yn button.sel[data-v="no"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.yn button.sel[data-v="yes"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.flag-icon { font-size: 52px; margin-top: 18px; }
.flag-options { display: grid; gap: 10px; }

/* ================= app ================= */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: max(12px, var(--safe-top)) 18px 12px; max-width: 1120px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; }
.top-actions { display: flex; gap: 8px; }
.layout { max-width: 1120px; margin: 0 auto; padding: 0 16px 24px; display: grid; gap: 18px; }
.col-main { display: grid; gap: 12px; align-content: start; min-width: 0; }
.col-side { display: grid; gap: 14px; align-content: start; }

.hero { background: var(--ink); color: #fff; border-radius: 24px; padding: 20px; display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 30%, rgba(255,106,61,.35), transparent 55%); pointer-events: none; }
.hero-text { flex: 1; position: relative; min-width: 0; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gem); }
.hero-title { font-size: 28px; line-height: 1.05; margin-top: 6px; }
.hero-sub { margin: 6px 0 12px; color: #C9CDD3; font-size: 15px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.stone-wrap { width: 128px; flex-shrink: 0; position: relative; }
.stone { width: 100%; overflow: visible; }
.stone .piece { transition: transform .7s cubic-bezier(.3,1.4,.6,1), opacity .6s ease .1s; transform-box: fill-box; transform-origin: center; }
.stone .piece.gone { opacity: 0; }
.stone .gem { transition: transform .5s; transform-origin: 100px 88px; }
.stone.full .gem { animation: gemPop .8s ease both; }
@keyframes gemPop { 0% { transform: scale(.8); } 50% { transform: scale(1.18) rotate(-6deg); } 100% { transform: scale(1.05); } }
.stone-count { text-align: center; font-family: var(--display); font-size: 15px; color: #C9CDD3; margin-top: -4px; }
.stone-count b { font-size: 24px; color: #fff; }

.notice { background: var(--accent-soft); border: 1.5px solid #ffc9b5; border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.notice.calm { background: #EEF2F7; border-color: #d8e0ea; }
.notice .x { margin-left: auto; border: 0; background: none; font-size: 18px; line-height: 1; padding: 0 0 0 8px; color: var(--muted); }

.plan { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; position: relative; box-shadow: var(--shadow); transition: background .3s, border-color .3s; }
.card .slot { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card .slot .ico { font-size: 15px; filter: saturate(.9); }
.card .slot .tag { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--accent-d); background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; font-size: 11px; }
.card .name { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.15; margin-top: 2px; }
.card .target { display: flex; align-items: baseline; gap: 5px; margin-top: 2px; }
.card .target b { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--accent-d); line-height: 1; }
.card .target span { font-weight: 700; color: var(--ink2); font-size: 15px; }
.card .cue { grid-column: 1 / 2; margin: 6px 0 0; color: var(--ink2); font-size: 14.5px; line-height: 1.45; }
.card .tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 700; color: var(--ink2); display: inline-flex; align-items: center; gap: 5px; }
.chip-btn:hover:not(:disabled) { border-color: var(--stone-l); color: var(--ink); }
.chip-btn:disabled { opacity: .5; cursor: default; }
.card .alt { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.card .alt b { color: var(--ink2); }
.check { grid-column: 2; grid-row: 2 / span 3; align-self: center; width: 60px; height: 60px; border-radius: 50%; border: 2.5px dashed var(--stone-l); background: var(--bg); position: relative; display: grid; place-items: center; transition: all .2s; }
.check:hover { border-color: var(--accent); border-style: solid; }
.check svg { width: 28px; height: 28px; opacity: .25; transition: all .2s; }
.check .lbl { position: absolute; bottom: -18px; font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.card.done { background: #FBFFFC; border-color: #bfe6d2; }
.card.done .name { color: var(--ink2); }
.card.done .target b { color: var(--ok); }
.card.done .check { background: var(--ok); border: 2.5px solid var(--ok); }
.card.done.just .check { animation: thunk .45s cubic-bezier(.3,1.6,.5,1); }
.card.done .check svg { opacity: 1; stroke: #fff; }
.card.done .check .lbl { color: var(--ok); }
@keyframes thunk { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.card.swapping { animation: flip .5s ease; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(80deg); opacity: .4; } 100% { transform: rotateX(0); } }

.shard { position: fixed; z-index: 60; pointer-events: none; width: 10px; height: 10px; background: var(--stone); clip-path: polygon(50% 0, 100% 40%, 80% 100%, 10% 85%, 0 30%); animation: shard .75s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes shard { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
.chip-pop { position: fixed; z-index: 61; pointer-events: none; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--accent); animation: pop 1s ease-out forwards; text-shadow: 0 2px 0 #fff; white-space: nowrap; }
@keyframes pop { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 20% { transform: translate(-50%, -14px) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -54px) scale(1); opacity: 0; } }

.done-card { background: linear-gradient(135deg, #1F2328, #3a2a25); color: #fff; border-radius: 24px; padding: 24px 20px; text-align: center; position: relative; overflow: hidden; animation: rise .5s ease both; }
.done-card h2 { font-size: 30px; margin: 4px 0 6px; }
.done-card p { color: #D7DADF; margin: 0 0 14px; }
.done-burst { font-size: 46px; animation: gemPop .9s ease both; }
.share-preview { background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px; font: 600 15px/1.5 var(--body); white-space: pre-wrap; margin: 0 auto 16px; max-width: 320px; text-align: left; }
.done-card .btn-primary { background: var(--accent); box-shadow: 0 6px 0 -2px var(--gem); }
.partial-share { text-align: center; }

.panel { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.panel h3 { font-size: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 14px 8px; }
.stat b { display: block; font-family: var(--display); font-size: 30px; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat + .stat { border-left: 1.5px solid var(--line); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { text-align: center; }
.day .dn { font-size: 12px; font-weight: 700; color: var(--muted); }
.day .rock { margin: 6px auto 0; width: 34px; height: 46px; border-radius: 10px; background: var(--bg2); display: flex; flex-direction: column-reverse; padding: 3px; gap: 2px; position: relative; }
.day .rock i { flex: 1; border-radius: 3px; background: transparent; }
.day .rock i.f { background: var(--accent); }
.day.perfect .rock { background: var(--gem); }
.day.perfect .rock i.f { background: var(--accent-d); }
.day.today .dn { color: var(--ink); }
.day.today .rock { outline: 2px solid var(--ink); outline-offset: 2px; }
.day.future .rock { opacity: .45; }
.tips p { color: var(--ink2); font-size: 14.5px; margin: 8px 0 0; }

.footer { max-width: 1120px; margin: 0 auto; padding: 8px 20px 40px; font-size: 13px; color: var(--ink2); }
.footer p { margin: 6px 0; }

/* modals */
#app { position: relative; z-index: 0; }
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(20,22,26,.5); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--bg); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 24px 24px 0 0; padding: 18px 18px max(24px, var(--safe-bottom)); animation: up .28s cubic-bezier(.2,.9,.3,1); }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet-head h2 { font-size: 24px; }
.set-group { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.set-group h4 { font-size: 15px; margin-bottom: 8px; }
.set-group.danger { background: transparent; border-style: dashed; }
.set-group.danger small { display: block; text-align: center; margin-top: 6px; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row small { display: block; color: var(--muted); font-size: 13px; }
.profile-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 14px; margin-bottom: 12px; }
.profile-summary div span { display: block; color: var(--muted); font-size: 12px; }
.switch { position: relative; width: 50px; height: 30px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--stone-l); border-radius: 999px; transition: .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.faq details { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 8px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--ink2); font-size: 15px; margin: 8px 0 0; }

.timer-sheet { text-align: center; }
.timer-ring { position: relative; width: 220px; height: 220px; margin: 8px auto 18px; }
.timer-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 0; transition: stroke-dashoffset .25s linear; }
.timer-read { position: absolute; inset: 0; display: grid; place-content: center; }
.timer-read b { font-family: var(--display); font-size: 54px; line-height: 1; }
.timer-read small { color: var(--muted); font-weight: 700; margin-top: 6px; min-height: 20px; }
.timer-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.timer-actions .btn { min-width: 120px; }

.toast { position: fixed; left: 50%; bottom: max(22px, var(--safe-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; z-index: 70; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: rise .25s ease; max-width: calc(100% - 32px); text-align: center; }

/* ================= desktop ================= */
@media (min-width: 640px) {
  .hero { padding: 26px 28px; }
  .hero-title { font-size: 36px; }
  .stone-wrap { width: 170px; }
  .modal { align-items: center; }
  .sheet { border-radius: 24px; }
}
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 24px; padding-top: 6px; }
  .col-side { position: sticky; top: 16px; }
  .plan { grid-template-columns: 1fr; }
  .topbar { padding: 18px 24px; }
  .footer { padding: 8px 24px 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.card .slot .est { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 11.5px; color: var(--muted); background: var(--bg2); padding: 1px 8px; border-radius: 999px; }
.card .slot .tag + .est { margin-left: 6px; }

/* ---------- silhouettes on cards ---------- */
.card { grid-template-columns: 96px 1fr auto; }
.card .sil-btn { grid-column: 1; grid-row: 2 / span 3; align-self: start; border: 0; padding: 0; background: var(--bg); border-radius: 14px; cursor: zoom-in; width: 96px; height: 86px; overflow: hidden; }
.card .sil { width: 96px; height: 86px; display: block; }
.card .name, .card .target, .card .cue { grid-column: 2; }
.card .check { grid-column: 3; }
.card .target .sets { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--accent-d); }
.card.done .sil-btn { background: var(--ok-soft); }
.card .slot .tag.sub { background: #EEF2F7; color: var(--ink2); }
@media (max-width: 380px) { .card { grid-template-columns: 76px 1fr auto; } .card .sil-btn, .card .sil { width: 76px; height: 68px; } }

/* ---------- vote ---------- */
.card .vote { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--ink2); font-weight: 600; }
.card .vote button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; width: 38px; height: 32px; font-size: 16px; line-height: 1; }
.card .vote button[aria-pressed="true"] { border-color: var(--ok); background: var(--ok-soft); }
.card .vote button[data-vote="-1"][aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.card .vote small { color: var(--muted); font-weight: 500; }

/* ---------- how was today ---------- */
.feel { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; }
.feel small { display: block; color: var(--muted); font-size: 13px; }
.feel-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feel-btns button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 6px; font-weight: 700; font-size: 14px; }
.feel-btns button.sel { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ---------- precautions step ---------- */
.prec { display: grid; gap: 14px; margin-bottom: 12px; }
.prec-group h4 { font-size: 15px; margin: 0 0 8px; }
.prec-group h4 small { font-family: var(--body); font-weight: 500; font-size: 12px; letter-spacing: 0; }
.prec-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pchip { text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 9px 11px; transition: all .15s; }
.pchip b { display: block; font-size: 14.5px; line-height: 1.25; }
.pchip small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; margin-top: 2px; }
.pchip.selected { border-color: var(--ink); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
.note-field { margin-top: 12px; }
.note-field textarea { width: 100%; font: 500 16px var(--body); padding: 10px 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card); color: var(--ink); resize: vertical; }
.time-field { margin-top: 18px; }
.time-field .hint { display: block; margin-top: 6px; }

/* ---------- fitness check ---------- */
h2 .opt { font: 600 13px var(--body); color: var(--muted); letter-spacing: 0; vertical-align: middle; margin-left: 4px; }
.fit { display: grid; gap: 12px; margin-bottom: 12px; }
.fit-item { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 10px; }
.fit-head { display: flex; gap: 12px; align-items: center; }
.fit-head img { width: 76px; height: 68px; background: var(--bg); border-radius: 12px; flex: none; }
.fit-head small { display: block; color: var(--ink2); font-size: 13.5px; }
.fit-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fit-row input { width: 90px; font: 700 20px var(--body); padding: 8px 10px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff; }
.fit-row span { color: var(--ink2); font-weight: 600; font-size: 14px; }
.fit-clock { font-family: var(--display); font-weight: 800; color: var(--accent-d); }

/* ---------- settings additions ---------- */
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sliders { display: grid; gap: 6px; margin: 10px 0 12px; }
.slider-row { display: grid; grid-template-columns: 112px 1fr 34px; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.slider-row input { accent-color: var(--accent); width: 100%; }
.slider-row b { text-align: right; font-family: var(--display); }
.my-moves { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.my-moves li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.my-moves li img { width: 40px; height: 36px; background: var(--card); border-radius: 8px; }
.my-moves li span { flex: 1; }
.my-moves li button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; width: 36px; height: 30px; }
.my-moves li button[aria-pressed="true"] { border-color: var(--ink); background: var(--accent-soft); }
.my-moves li button.clear { color: var(--muted); }

/* ---------- move detail / timer ---------- */
.move-sil { width: 100%; max-width: 340px; display: block; margin: 4px auto 10px; background: var(--card); border-radius: 18px; aspect-ratio: 132 / 118; }
.move-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pill-l { background: var(--bg2); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.move-cue { font-size: 16px; line-height: 1.5; margin: 12px 0 6px; }
.timer-sil { width: 120px; height: 107px; display: block; margin: 0 auto 6px; background: var(--card); border-radius: 14px; }
/* today's time selector + multiplier */
.day-time { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.day-time > span { font-size: 13px; font-weight: 700; color: #C9CDD3; }
.seg-dark { flex-wrap: nowrap; gap: 2px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 3px; }
.seg-dark button { background: transparent; border: 0; color: #fff; padding: 6px 11px; font-size: 14px; min-width: 0; }
.seg-dark button.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill-mult { background: rgba(255,176,32,.18); border-color: rgba(255,176,32,.45); }
.card .slot .chipv { margin-left: 6px; background: var(--ok-soft); color: var(--ok); }
.fit-knee { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border-radius: 12px; padding: 10px; }
.fit-knee[hidden] { display: none; }
.fit-knee img { width: 76px; height: 68px; background: #fff; border-radius: 10px; flex: none; }
.fit-knee small { display: block; color: var(--ink2); font-size: 13px; margin-bottom: 6px; }
/* pregnancy stage note + temporary conditions */
.stage-note, .cond-banner { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-sm); padding: 12px 14px; font-size: 14.5px; margin-top: 10px; background: #F3EEFA; border: 1.5px solid #E1D6F2; }
.stage-note[hidden] { display: none; }
.stage-note .ico, .cond-banner .ico { font-size: 20px; line-height: 1.2; }
.stage-note p, .cond-banner p { margin: 0 0 6px; }
.cond-banner { background: #FFF6E5; border-color: #F6DFB0; }
.cond-banner.due { background: var(--accent-soft); border-color: #ffc9b5; }
.cond-banner.ease { background: var(--ok-soft); border-color: #bfe6d3; }
.cond-banner .stop { font-size: 13px; color: var(--ink2); }
.sn-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link, button.link { background: none; border: 0; padding: 4px 2px; color: var(--accent-d); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: 14px; }
.cond-add { display: block; width: 100%; margin-top: 10px; text-align: left; background: none; border: 1.5px dashed var(--line); border-radius: var(--r-sm); padding: 10px 14px; color: var(--ink2); font-size: 14.5px; cursor: pointer; }
.cond-add b { color: var(--accent-d); }
.cond-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.cond-list .pchip.selected { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.preg-form { margin-top: 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 14px; }
.preg-form[hidden] { display: none; }
.preg-form h4 { margin: 0 0 10px; }
.preg-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.preg-row .field { flex: 1 1 140px; margin: 0; }
.preg-row .or { padding-bottom: 14px; color: var(--muted); font-weight: 700; }
.check-row { display: flex; gap: 8px; align-items: center; margin: 10px 0 4px; font-weight: 600; }
.check-row input { width: 20px; height: 20px; }
.set-conds { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.set-conds li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.set-conds li > span { flex: 1; }
.set-conds small { display: block; color: var(--muted); }
.stop-list { margin: 4px 0 8px 18px; padding: 0; }
/* focus presets */
.focus-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.fchip { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 12px; font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.fchip.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.focus-list.sm .fchip { padding: 6px 10px; font-size: 13px; }
.set-focus { flex-wrap: wrap; }
.pill-focus { background: rgba(120,200,255,.16); border-color: rgba(120,200,255,.45); }
.pill-focus.paused { opacity: .8; }
.cond-banner.focus-paused { background: #EEF2F7; border-color: #d8e0ea; }
#modal-cond { z-index: 88; }

/* "Why these moves?" panel + sources */
#modal-why { z-index: 89; }
.why-sheet { max-height: 88vh; overflow-y: auto; }
.why-sum { margin: 4px 0 8px; padding-left: 20px; color: var(--ink2); font-size: 15px; }
.why-sum li { margin: 4px 0; }
#whyBody h4 { margin: 14px 0 6px; font-size: 15px; }
.why-list { list-style: none; padding: 0; margin: 0; }
.why-item { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; margin-bottom: 6px; background: var(--card); }
.why-item.mine { border-color: var(--accent); }
.why-item p { margin: 0; font-size: 14px; }
.why-item p.why-src { color: var(--ink2); font-size: 13px; margin-top: 4px; }
.why-badge { display: inline-block; background: #E7F3EC; color: #1E6B43; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; margin-right: 2px; }
.why-badge.app { background: #F3EFE7; color: #7A5A1E; }
.why-keys { padding-left: 18px; font-size: 13px; margin: 0; }
.why-keys li { margin: 3px 0; }
.why-disc { font-size: 13px; color: var(--ink2); background: var(--bg2); border-radius: var(--r-sm); padding: 8px 10px; margin-top: 12px; }
.why-row { margin: 8px 0 0; font-size: 14px; }
.move-why { margin-top: 8px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.check-row input { margin-top: 4px; width: 18px; height: 18px; }
.check-row small { display: block; color: var(--ink2); font-size: 13px; }
#sourcesList h5 { margin: 12px 0 4px; font-size: 14px; }
#sourcesList ul, #sourcesList ol { font-size: 13px; color: var(--ink2); padding-left: 20px; margin: 0; }
#sourcesList li { margin: 3px 0; }
.why-top { font-size: 13px; color: var(--ink2); margin: 0 0 6px; font-weight: 600; }

/* ---------- header avatar + diamond badge ---------- */
.avatar-btn { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }
.avatar { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #2B2F36; color: #fff; border: 2px solid var(--ink); font-family: var(--display); font-weight: 800; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar > svg { width: 62%; height: 62%; color: #C9CDD3; }
.avatar .ini { font-size: 16px; letter-spacing: .02em; }
.avatar.lg { width: 104px; height: 104px; border-width: 3px; }
.avatar.lg .ini { font-size: 38px; }
.dbadge { position: absolute; top: -9px; right: -12px; width: 30px; height: 27px; display: grid; place-items: center; }
.dbadge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dbadge b { position: relative; font: 800 11px/1 var(--display); color: #10313B; margin-top: 3px; }
.avatar.lg .dbadge { width: 50px; height: 45px; top: -10px; right: -16px; }
.avatar.lg .dbadge b { font-size: 17px; margin-top: 5px; }

/* ---------- diamond boulder ---------- */
.stone.boulder .wedge { transition: transform .8s cubic-bezier(.3,1.3,.6,1), opacity .7s ease .1s; transform-box: fill-box; transform-origin: center; }
.stone.boulder .wedge.gone { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(40deg) scale(.6); }
.stone.boulder .wedge.gone:not(.falling) { transition: none; }
.stone.boulder .glow { animation: glow 1.4s ease-in-out infinite; transform-origin: 100px 86px; }
@keyframes glow { 50% { opacity: .2; transform: scale(1.12); } }
.to-next { text-align: center; font-size: 12px; color: #C9CDD3; margin-top: 2px; line-height: 1.25; }

/* ---------- chipping animation ---------- */
.chip-anim { position: fixed; left: 50%; top: 22%; width: min(300px, 80vw); transform: translateX(-50%); z-index: 66; pointer-events: none; text-align: center; animation: caFade 1.25s ease forwards; }
.chip-anim .ca-svg { width: 100%; overflow: visible; filter: drop-shadow(0 10px 22px rgba(0,0,0,.35)); }
.chip-anim .ca-skip { display: inline-block; background: rgba(31,35,40,.75); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.ca-hammer { transform-box: view-box; transform-origin: 45px 92px; animation: hammer 1.2s ease-in-out forwards; }
.ca-chisel { animation: chisel 1.2s linear forwards; }
.ca-rock { transform-box: fill-box; transform-origin: center; animation: rock 1.2s linear forwards; }
.ca-crack { stroke-dasharray: 40; stroke-dashoffset: 40; animation: crack 1.2s linear forwards; }
.flake { opacity: 0; animation: flake .55s cubic-bezier(.2,.6,.4,1) forwards; }
.ca-pop { font: 800 26px var(--display); fill: var(--accent); stroke: #fff; stroke-width: 4px; paint-order: stroke; opacity: 0; animation: pop2 1.2s ease forwards; }
@keyframes caFade { 0% { opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hammer { 0% { transform: translate(0,0) rotate(-55deg); } 28% { transform: translate(12px,34px) rotate(8deg); } 40% { transform: translate(0,10px) rotate(-40deg); } 70% { transform: translate(12px,34px) rotate(8deg); } 100% { transform: translate(0,10px) rotate(-30deg); } }
@keyframes chisel { 0%, 27% { transform: translate(0,0); } 30% { transform: translate(4px,2px); } 36%, 69% { transform: translate(2px,1px); } 72% { transform: translate(6px,3px); } 100% { transform: translate(4px,2px); } }
@keyframes rock { 0%, 28% { transform: none; } 31% { transform: translateX(2px) rotate(.6deg); } 34% { transform: translateX(-1px); } 70% { transform: none; } 73% { transform: translateX(3px) rotate(.8deg); } 77%, 100% { transform: none; } }
@keyframes crack { 0%, 30% { stroke-dashoffset: 40; } 45% { stroke-dashoffset: 20; } 75%, 100% { stroke-dashoffset: 0; } }
@keyframes flake { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 30px)) rotate(var(--r)) scale(.7); } }
@keyframes pop2 { 0%, 30% { opacity: 0; transform: translateY(8px); } 45% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .chip-anim, .shard, .chip-pop { display: none !important; }
  .stone.boulder .wedge, .stone .piece { transition: none !important; }
  .stone.boulder .glow, .stone.full .gem { animation: none !important; }
}

/* ---------- profile ---------- */
.profile-sheet { max-height: 92vh; overflow-y: auto; }
.prof-top { display: flex; gap: 22px; align-items: center; margin: 8px 0 14px; }
.prof-id { flex: 1; min-width: 0; }
.prof-id .btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.prof-id label.btn { cursor: pointer; }
.prof-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sum-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.sum-card span { grid-row: span 2; font-size: 26px; }
.sum-card b { font: 800 22px/1.1 var(--display); color: var(--ink); }
.sum-card small { font-size: 15px; color: var(--ink2); font-weight: 600; }
.prof-boulder { display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; border-radius: 20px; padding: 12px 16px; margin: 14px 0; }
.prof-boulder svg { width: 120px; flex-shrink: 0; overflow: visible; }
.prof-boulder p { font: 700 18px/1.3 var(--display); margin: 0; }
.profile-sheet h3 { font-size: 19px; margin: 16px 0 8px; }
.btn.big { min-height: 56px; font-size: 17px; margin-top: 10px; }
.ach-list { list-style: none; padding: 0; margin: 0; }
.ach { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 12px; margin-bottom: 8px; }
.ach.got { border-color: #E9C46A; background: #FFFBEF; }
.ach-ico { font-size: 24px; line-height: 1; }
.ach div { flex: 1; min-width: 0; }
.ach b { display: block; font-size: 17px; }
.ach small { display: block; color: var(--ink2); font-size: 15px; }
.ach em, .goal em { display: block; font-style: normal; font-size: 14px; color: var(--ink2); margin-top: 4px; font-weight: 600; }
.bar { height: 12px; border-radius: 999px; background: #E9E3D8; overflow: hidden; margin-top: 8px; border: 1px solid #D8D0C2; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #FFB020); border-radius: 999px; }
details.grp { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-sm); margin: 10px 0; }
details.grp > summary { padding: 14px 16px; font: 700 18px var(--display); cursor: pointer; min-height: 52px; display: flex; justify-content: space-between; align-items: center; }
details.grp > summary .cnt { font: 600 14px var(--body, inherit); color: var(--ink2); }
details.grp > ul, details.grp > dl { padding: 0 12px 10px; margin: 0; }
details.grp dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); font-size: 16px; }
details.grp dt { color: var(--ink2); }
details.grp dd { margin: 0; font-weight: 700; text-align: right; }
details.grp dd small { display: block; font-weight: 500; color: var(--ink2); font-size: 13px; }
.goal-list { list-style: none; padding: 0; margin: 0; }
.goal { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 12px; margin-bottom: 8px; }
.goal div { flex: 1; } .goal b { font-size: 16px; } .goal small { display: block; color: var(--ink2); }
.goal.done { border-color: #7BC47F; }
.goal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.goal-form .btn-row { grid-column: 1 / -1; display: flex; gap: 8px; }
.goal-form select, .goal-form input { width: 100%; min-height: 48px; font-size: 16px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; }
.skin-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.skin { display: flex; gap: 10px; align-items: center; text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px; min-height: 56px; cursor: pointer; font-weight: 700; font-size: 14px; }
.skin.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.skin:disabled { opacity: .55; cursor: default; }
.skin i { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--ink); flex-shrink: 0; }
.skin small { display: block; font-weight: 500; color: var(--ink2); font-size: 12px; }
.small { font-size: 13px; }
.diamond-sheet { text-align: center; }
.diamond-sheet svg.big { width: 220px; margin: 6px auto 0; display: block; overflow: visible; }
.diamond-sheet .unlock { font-weight: 700; color: var(--accent-d); }

/* ---------- weekly challenge banner + leaderboards ---------- */
.challenge-banner { display: flex; gap: 12px; align-items: center; background: #FFF6E0; border: 1.5px solid #F1D79A; border-radius: var(--r-sm); padding: 10px 12px; margin: 14px 0 0; }
.challenge-banner .cb-ico { font-size: 24px; }
.challenge-banner div { flex: 1; min-width: 0; }
.challenge-banner b { display: block; font-size: 15px; }
.challenge-banner small { display: block; color: var(--ink2); font-size: 13px; line-height: 1.35; }
.cb-btn { border: 1.5px solid var(--ink); background: #fff; border-radius: 12px; padding: 8px 10px; font-weight: 700; font-size: 13px; min-height: 44px; cursor: pointer; text-align: center; line-height: 1.2; }
.cb-btn u { text-decoration: none; font-weight: 600; color: var(--accent-d); }
.lb-sheet { max-height: 92vh; overflow-y: auto; }
.lb-me { font-size: 15px; margin-bottom: 10px; }
.linkish { background: none; border: 0; color: var(--accent-d); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 6px 4px; font-size: inherit; }
.lb-theme { display: flex; gap: 10px; background: #FFF6E0; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.lb-theme span { font-size: 26px; } .lb-theme b { display: block; } .lb-theme small { color: var(--ink2); }
.tabs.big { display: flex; gap: 6px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 4px; margin-bottom: 12px; }
.tabs.big button { flex: 1; border: 0; background: none; border-radius: 12px; min-height: 48px; font-weight: 700; font-size: 16px; cursor: pointer; color: var(--ink); }
.tabs.big button[aria-selected="true"] { background: var(--ink); color: #fff; }
.seg.big button { min-height: 48px; font-size: 16px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.lb-where { margin-bottom: 10px; }
.lb-by select, .lb-join select, .lb-join input, .lg-forms input { width: 100%; min-height: 50px; font-size: 17px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; }
.lb-you { background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px; font-size: 17px; margin: 6px 0; }
.lb-rows { list-style: none; padding: 0; margin: 6px 0 12px; }
.lb-rows li { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); font-size: 17px; min-height: 56px; }
.lb-rows li.me { background: #FFF1E8; border-radius: 12px; font-weight: 700; }
.lb-rows .rk { width: 34px; text-align: right; font: 800 18px var(--display); color: var(--ink2); }
.lb-rows .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lb-rows .nm small { display: block; font-size: 13px; color: var(--ink2); font-weight: 500; }
.lb-rows .vl { font-weight: 800; white-space: nowrap; }
.lb-rows .lg-rm { border: 0; background: none; font-size: 18px; color: var(--ink2); min-width: 44px; min-height: 44px; cursor: pointer; }
.lb-empty { padding: 16px; text-align: center; color: var(--ink2); background: var(--card); border-radius: 14px; }
.lb-foot { margin-top: 14px; }
.privacy-box { background: #EEF6EE; border: 1.5px solid #B9D9BB; border-radius: 14px; padding: 12px 14px; margin: 10px 0 14px; font-size: 15px; }
.privacy-box ul { margin: 4px 0 10px 18px; padding: 0; } .privacy-box p { margin: 4px 0 0; }
.lb-join .lead { font-size: 17px; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.lg-list { list-style: none; padding: 0; margin: 8px 0; }
.lg-open { width: 100%; display: grid; grid-template-columns: 1fr auto; text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 14px; min-height: 60px; margin-bottom: 8px; cursor: pointer; font-size: 17px; }
.lg-open small { grid-column: 1; color: var(--ink2); font-size: 14px; } .lg-open span { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 24px; }
.lg-forms { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: end; }
.lg-title { margin: 6px 0; font-size: 22px; }
.lg-code { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 16px; margin-bottom: 8px; }
.lg-code b { font: 800 20px var(--display); letter-spacing: .12em; }

/* ---------- daily ring ---------- */
.day-ring { display: flex; align-items: center; gap: 14px; background: var(--card); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; margin: 14px 0 0; }
.day-ring .ring { width: 92px; height: 92px; flex-shrink: 0; }
.ring-n { font: 800 24px var(--display); fill: var(--ink); }
.ring-of { font: 600 11px var(--body, sans-serif); fill: #4B5058; }
.ring-text b { display: block; font-size: 17px; margin-bottom: 4px; }
.ring-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: #3D424A; }
.ring-legend li { display: flex; align-items: center; gap: 5px; }
.ring-legend i { width: 12px; height: 12px; border-radius: 3px; opacity: .35; }
.ring-legend li.on { font-weight: 700; color: var(--ink); } .ring-legend li.on i { opacity: 1; }

/* ---------- still "Chip!" frame (reduced motion / Simple view) ---------- */
.chip-static { position: fixed; left: 50%; top: 24%; transform: translateX(-50%); z-index: 66; pointer-events: none; background: #1F2328; color: #fff; border-radius: 18px; padding: 14px 22px; font: 700 20px var(--display); border: 3px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.chip-static b { color: #FFB38A; margin-right: 6px; }

/* ---------- medals ---------- */
.tiers { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tier { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); opacity: .45; background: #fff; }
.tier i { font-style: normal; font-weight: 600; } .tier.on { opacity: 1; border-color: #B8860B; background: #FFF6DA; }
.tier-name { font: 700 12px var(--body, sans-serif); background: #FFF0C2; border-radius: 999px; padding: 2px 8px; margin-left: 4px; vertical-align: middle; }
.ach .note { font-size: 12px; margin-top: 4px; }
.lim { font: 600 12px var(--body, sans-serif); background: #FCE8E1; color: #8A2B0E; border-radius: 999px; padding: 2px 8px; }
.hidden-note { text-align: center; margin: 6px 0 12px; }
.sentences { margin: 6px 0 4px 0; padding-left: 20px; font-size: 16px; line-height: 1.5; }
.sentences li { margin: 3px 0; }
.prof-story { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 12px 12px 12px 32px; margin-top: 10px; }
.stat-sec { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; margin: 10px 0; }
.stat-sec h4 { margin: 0 0 6px; font-size: 17px; }
.bar.big { height: 18px; }
.sum-card em { font-style: normal; font-size: 13px; font-weight: 500; color: #4B5058; }

/* ---------- recap ---------- */
.recap-sheet { max-height: 92vh; overflow-y: auto; }
.recap-dates { color: #4B5058; margin-top: 0; }
.recap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.recap-grid div { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.recap-grid b { display: block; font: 800 22px var(--display); } .recap-grid small { color: #4B5058; font-size: 14px; }
.recap-min { margin: 12px 0 6px; font-size: 16px; }
.recap-tip { background: #FFF6E0; border-radius: 14px; padding: 12px; font-size: 16px; }

/* ---------- team card, league badges, reports ---------- */
.team-card { display: flex; gap: 12px; align-items: center; background: #EEF3FB; border: 1.5px solid #BFD0EA; border-radius: var(--r-sm); padding: 10px 12px; margin: 10px 0 0; }
.team-card > span { font-size: 24px; } .team-card div { flex: 1; min-width: 0; } .team-card b { font-size: 15px; } .team-card small { color: #3D424A; font-size: 13px; }
.league-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; color: #3D424A; }
.lg-badge { font: 800 16px var(--display); padding: 6px 12px; border-radius: 999px; color: #fff; background: #6B7280; }
.lg-badge.t0 { background: #6B5B4B; } .lg-badge.t1 { background: #57606A; } .lg-badge.t2 { background: #7A4E3A; } .lg-badge.t3 { background: #5B6B8A; } .lg-badge.t4 { background: #0E7490; }
.lb-rows li.z-up { border-left: 4px solid #15803D; } .lb-rows li.z-down { border-left: 4px solid #B45309; }
.lb-rows .zone { color: #3D424A; }
.lb-rows .rep { border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 12px; min-height: 44px; min-width: 64px; cursor: pointer; color: #4B5058; }
.lb-note { background: #FFF6E0; border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.tabs.big { flex-wrap: wrap; } .tabs.big button { min-width: 30%; font-size: 15px; }
.team-list { list-style: none; padding: 0; margin: 10px 0; }
.team-list li { border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.team-list .nudges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.nudge { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; min-height: 44px; font-size: 14px; cursor: pointer; }
.team-goal { font-size: 17px; margin: 4px 0 6px; }
.chk { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; }
.chk input { width: 22px; height: 22px; }
.remind-opts { padding: 4px 0 10px 4px; border-bottom: 1px solid var(--line); }
.remind-opts input[type=time] { min-height: 48px; font-size: 17px; border: 2px solid var(--line); border-radius: 12px; padding: 6px 10px; }
.icon-btn .lbl { display: none; }

/* ---------- install hint ---------- */
.install-hint { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--r-sm); padding: 8px 12px; margin: 10px 0 0; font-size: 14px; }
.install-hint b { flex: 1; font-weight: 600; } .install-hint button, #installX { min-width: 44px; min-height: 44px; }
.update-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80; background: #1F2328; color: #fff; border: 0; border-radius: 999px; padding: 14px 22px; font: 700 16px var(--display); box-shadow: 0 8px 24px rgba(0,0,0,.3); cursor: pointer; min-height: 48px; }
.offline-pill { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 81; background: #4B5058; color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; }

/* ---------- Simple view (NIA / WCAG AAA): 20-24px text, >=44px targets, >=7:1 contrast, labels on icons ---------- */
body.simple { --ink2: #2B2F36; --muted: #2B2F36; }
body.simple #app, body.simple .modal .sheet { zoom: 1.25; }
body.simple #app small, body.simple .modal small, body.simple .muted, body.simple .small, body.simple .ring-legend, body.simple .ach small, body.simple .ach em, body.simple .sum-card small,
body.simple .lb-rows .nm small, body.simple .cb-btn, body.simple .tier, body.simple .tier-name, body.simple .lim, body.simple .to-next, body.simple .team-card small, body.simple .challenge-banner small,
body.simple .set-row small, body.simple .lb-rows .rep, body.simple .nudge, body.simple .chk, body.simple .sentences, body.simple .install-hint { font-size: 16px !important; line-height: 1.4; }
body.simple #app, body.simple .modal .sheet { font-size: 17px; }
body.simple .muted, body.simple small, body.simple .ring-legend, body.simple .ach small, body.simple .ach em, body.simple .lb-rows .zone { color: #2B2F36 !important; }
body.simple .to-next { color: #F3F4F6 !important; }
body.simple .icon-btn { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; min-height: 44px; }
body.simple .icon-btn .lbl { display: inline; font: 700 14px var(--display); }
body.simple button, body.simple .btn, body.simple a, body.simple input[type=checkbox] + span, body.simple select { min-height: 44px; }
body.simple .btn-primary { background: #9A3412; border-color: #9A3412; }
body.simple .chip-anim { display: none !important; }

/* ---------- Plus, ads, workplace ---------- */
.plus-sheet { max-height: 92vh; overflow-y: auto; }
.plus-lead { font-size: 17px; }
.plus-cols { display: grid; gap: 12px; }
.plus-box { border: 2px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: var(--card); }
.plus-box.plus { border-color: #C9A227; background: #FFFBEF; }
.plus-box h3 { margin: 0 0 6px; } .plus-box ul { margin: 0 0 10px 18px; padding: 0; line-height: 1.6; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.price { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px; text-align: center; }
.price b { display: block; font: 800 24px var(--display); } .price small { color: #4B5058; } .price span { display: block; font-size: 13px; font-weight: 600; margin-top: 4px; }
.dev-box { border: 2px dashed #9CA3AF; border-radius: 14px; padding: 10px 12px; margin-top: 10px; }
.ad-card { position: fixed; inset: 0; z-index: 90; background: rgba(20,22,26,.55); display: grid; place-items: end center; padding: 16px; }
.ad-card[hidden] { display: none; }
.ad-sheet { background: #fff; border-radius: 20px; padding: 16px 18px; width: min(460px, 100%); border: 3px solid #1F2328; }
.ad-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ad-label { font: 800 13px var(--display); background: #1F2328; color: #fff; border-radius: 6px; padding: 3px 8px; letter-spacing: .06em; }
.ad-top small { color: #4B5058; font-size: 13px; }
.ad-sheet h3 { margin: 6px 0; } .ad-close { margin-top: 12px; min-height: 52px; }
.ad-close:disabled { opacity: .55; }
body.simple .ad-close { min-height: 72px; font-size: 22px; }
body.simple .ad-sheet { zoom: 1.25; }
.wk-bars { list-style: none; padding: 0; } .wk-bars li { display: grid; grid-template-columns: 70px 1fr 50px; gap: 8px; align-items: center; margin: 6px 0; }
.wk-bars .bar { margin: 0; }
.code { font: 800 18px var(--display); letter-spacing: .1em; }
.wp-new textarea { width: 100%; font-size: 16px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.steps { padding-left: 22px; line-height: 1.6; }

/* Wordle-style daily interstitial (overrides the earlier card styles) */
.ad-card { position: fixed; inset: 0; z-index: 95; background: var(--bg, #F5F1EA); display: flex; align-items: center; justify-content: center; padding: 24px 18px; }
.ad-card[hidden] { display: none; }
.ad-card .ad-sheet { width: min(480px, 100%); min-height: min(640px, 92vh); display: flex; flex-direction: column; border-radius: 24px; padding: 22px 22px 18px; }
.ad-card #adContent { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; align-items: center; }
.ad-art { font-size: 72px; line-height: 1; margin-bottom: 12px; }
.ad-card #adContent h3 { font: 800 26px var(--display); } .ad-card #adContent p { font-size: 18px; }
.ad-count { text-align: center; font-size: 15px; color: #4B5058; margin: 10px 0 4px; }
.ad-foot { text-align: center; font-size: 13px; color: #4B5058; margin: 8px 0 0; }
body.ad-open { overflow: hidden; }
body.simple .ad-card .ad-sheet { zoom: 1; }
body.simple .ad-count { font-size: 22px; color: #1F2328; font-weight: 700; }
body.simple .ad-close { min-height: 80px; font-size: 26px; }
body.simple .ad-foot { font-size: 18px; color: #2B2F36; }
body.simple .ad-card #adContent h3 { font-size: 30px; } body.simple .ad-card #adContent p { font-size: 22px; color: #1F2328; }
@media (prefers-reduced-motion: reduce) { .ad-card, .ad-card * { transition: none !important; animation: none !important; } }

/* Simple view: every small label reaches >= 20px on screen (16px x 1.25 zoom) */
body.simple #app :is(.lbl, .eyebrow, .hero-sub, .pill, .est, .chip-btn, .cond-add, .cue, .seg button, .seg span, .check .lbl, .stat span, .stats span, .dose span, .unit, footer p, .foot p, .disclaimer) { font-size: 16px !important; }
body.simple #app [class*="time"] > span, body.simple #app .time-row span { font-size: 16px !important; }
body.simple #app footer a, body.simple #app .foot a, body.simple #app a[data-open] { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
body.simple #app :is(.target span, .tips p, .ico) { font-size: 16px !important; }
body.simple .topbar { flex-wrap: wrap; row-gap: 8px; }
body.simple .top-actions { gap: 8px; }
body.simple #app .hero { display: flex; flex-direction: column; }
body.simple #app .stone-wrap { display: flex; align-items: center; gap: 14px; width: 100%; justify-content: flex-start; margin-top: 8px; }
body.simple #app .stone-wrap svg.stone { width: 120px; height: auto; flex: none; }
body.simple #app .pill-row { flex-direction: column; align-items: flex-start; }
body.simple .layout { grid-template-columns: minmax(0, 1fr) !important; }
body.simple .col-main, body.simple .col-side, body.simple .hero-text { min-width: 0; }
body.simple .ring-legend { flex-wrap: wrap; }
body.simple .day-ring { flex-wrap: wrap; }
body.simple .card { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 12px; gap: 4px 8px; }
body.simple .card .sil-btn, body.simple .card .sil { width: 64px; height: 60px; }
body.simple .card .name { overflow-wrap: anywhere; }
body.simple .week { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
body.simple .day .dn { font-size: 16px; color: #2B2F36; }

/* Daily welcome summary + full-page ad (Wordle-style) */
.welcome { position: fixed; inset: 0; z-index: 96; background: var(--bg, #F5F1EA); display: flex; align-items: center; justify-content: center; padding: 24px 18px; overflow-y: auto; }
.welcome[hidden] { display: none; }
.welcome-sheet { width: min(480px, 100%); display: flex; flex-direction: column; gap: 14px; }
.wl-brand { display: flex; align-items: center; gap: 8px; } .wl-brand .brand-mark { width: 36px; height: 36px; }
.wl-date { font: 800 14px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #9A3412; margin: 8px 0 0; }
.wl-hi { font: 800 32px/1.1 var(--display); margin: 4px 0 6px; }
.wl-stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wl-stats li { background: var(--card, #fff); border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px 14px 60px; position: relative; }
.wl-stats li > span { position: absolute; left: 16px; top: 14px; font-size: 30px; }
.wl-stats b { display: block; font: 800 20px var(--display); } .wl-stats small { display: block; color: #4B5058; font-size: 15px; margin-top: 2px; }
.wl-stats .bar { display: block; margin-top: 8px; }
.wl-start { min-height: 64px; font-size: 22px; margin-top: 6px; }
.ad-card .ad-label { font-size: 14px; letter-spacing: .12em; padding: 4px 10px; }
.ad-note { text-align: center; font-size: 14px; color: #4B5058; margin: 8px 0 0; }
.ad-wait { min-height: 52px; margin: 12px 0 0; }
.ad-close[hidden] { display: none; }
body.simple .wl-hi { font-size: 38px; } body.simple .wl-date { font-size: 20px; }
body.simple .wl-stats b { font-size: 26px; } body.simple .wl-stats small { font-size: 21px; color: #1F2328; }
body.simple .wl-stats li { padding-left: 68px; } body.simple .wl-stats li > span { font-size: 36px; }
body.simple .wl-start { min-height: 84px; font-size: 28px; }
body.simple .ad-note { font-size: 20px; color: #1F2328; } body.simple .ad-card .ad-label { font-size: 20px; }
body.simple .ad-wait { min-height: 80px; }
@media (prefers-reduced-motion: reduce) { .welcome, .welcome * { transition: none !important; animation: none !important; } }

/* Fitness check: easier options shown right away */
.fit-alts { margin-top: 12px; border-top: 1.5px dashed var(--line); padding-top: 10px; }
.fit-alts-h { font: 800 13px var(--display); letter-spacing: .06em; text-transform: uppercase; color: #4B5058; margin: 0 0 8px; }
.fit-var { display: flex; flex-wrap: wrap; gap: 8px; }
.fit-alt { display: flex; align-items: center; gap: 8px; min-height: 56px; min-width: 44px; padding: 6px 12px 6px 6px; border-radius: 14px; border: 2px solid var(--line); background: var(--card, #fff); font: 700 15px var(--body, inherit); color: var(--ink, #1F2328); cursor: pointer; text-align: left; }
.fit-alt img { width: 44px; height: 40px; flex: none; }
.fit-alt:hover { border-color: #9A3412; }
.fit-alt.sel, .fit-alt[aria-pressed=true] { border-color: #9A3412; background: #FFF1E8; }
.fit-alt.fit-main { background: transparent; }
.fit-alt:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 2px; }
body.simple .fit-alt { min-height: 64px; font-size: 18px; } body.simple .fit-alt img { width: 52px; height: 46px; }
body.simple .fit-alts-h { font-size: 16px; color: #1F2328; }

/* ================= keyboard + mouse (all sizes) ================= */
:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 2px; border-radius: 10px; }
button, [role=button], a, label.switch { cursor: pointer; }
@media (hover: hover) {
  .btn:hover, .chip-btn:hover, .icon-btn:hover, .seg button:hover, .more-btn:hover, .link-btn:hover { filter: brightness(.96); }
  .card:hover { border-color: #CFC6B8; }
  .card .check:hover { transform: scale(1.04); }
  .card .row-main:hover .name { text-decoration: underline; text-underline-offset: 3px; }
  .start-btn:hover { background: #2b3038; }
}
body.simple .install-hint.dismissed { display: none !important; }

/* ================= casual home (UI review 10/20/2026) ================= */
.avatar-btn { min-width: 48px; min-height: 48px; }
.more-btn { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font: 700 17px var(--display); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.greet { padding: 4px 2px 0; }
.greet .hero-title { font-size: 30px; line-height: 1.12; margin: 0; color: var(--ink); }
.greet .hero-sub { color: #4A5059; font-size: 17px; margin: 4px 0 0; }
.focus-line { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: #4A5059; }
.focus-line[hidden] { display: none; }
.status-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st-tile { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.st-tile b { font: 800 26px/1.15 var(--display); color: var(--ink); white-space: nowrap; }
.st-tile small { font-size: 15px; color: #4A5059; line-height: 1.25; }
.st-dots { display: flex; gap: 5px; margin-top: 4px; }
.st-dots i { width: 10px; height: 10px; border-radius: 50%; background: #E0D8CB; }
.st-dots i.on { background: var(--ok); }
.bar.thin { height: 6px; width: 80%; margin-top: 6px; border: 0; display: block; }
.start-btn { width: 100%; min-height: 64px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 22px; gap: 2px; text-align: center; box-shadow: 0 6px 0 -2px var(--accent); }
.start-btn b { font: 800 20px/1.2 var(--display); }
.start-btn small { font: 600 15px/1.3 var(--body); color: #E5E7EB; }
.start-btn[hidden] { display: none; }
.plan { gap: 10px; }
#app .card { grid-template-columns: 72px minmax(0, 1fr) 56px; align-items: center; padding: 10px 12px; gap: 12px; box-shadow: none; }
#app .card .sil-btn { grid-column: 1; grid-row: auto; width: 72px; height: 64px; align-self: center; cursor: pointer; }
#app .card .sil { width: 72px; height: 64px; }
#app .card .row-main { grid-column: 2; border: 0; background: none; text-align: left; padding: 4px 0; display: flex; flex-direction: column; gap: 2px; min-height: 56px; justify-content: center; font: inherit; color: inherit; min-width: 0; }
#app .card .name { font-size: 19px; margin: 0; }
#app .card .target { margin: 0; gap: 4px; flex-wrap: wrap; align-items: baseline; }
#app .card .target b, #app .card .target .sets { font: 600 16px var(--body); color: #4A5059; }
#app .card .target span { font-size: 16px; font-weight: 600; color: #4A5059; }
#app .card .target .tag { font-style: normal; font-size: 14px; font-weight: 700; color: var(--accent-d); background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; margin-left: 4px; }
#app .card .target .tag.sub { background: #EEF2F7; color: #4A5059; }
#app .card .check { grid-column: 3; grid-row: auto; width: 56px; height: 56px; }
#app .card.done .name { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #8A8F98; }
#app .card.done .target b { color: #4A5059; }
#app .card.open { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.home-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.link-btn { min-height: 48px; border: 0; background: none; font: 700 17px var(--body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 0 4px; display: inline-flex; align-items: center; gap: 6px; }
.lb-line { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.lb-line[hidden] { display: none; }
.lb-line .linkish { min-height: 44px; }
.col-side { display: none; }
.footer { font-size: 14px; color: #4A5059; }
.footer a { color: inherit; font-weight: 700; display: inline-block; min-height: 44px; line-height: 44px; padding: 0 4px; }
.footer p { margin: 0; }
.notice { font-size: 16px; }
.notice .x { min-width: 44px; min-height: 44px; }
.stage-note, .cond-banner { font-size: 16px; }
.cond-banner .stop { font-size: 15px; }
.link, button.link { font-size: 15px; min-height: 44px; }
.cond-banner .chip-btn, .stage-note .chip-btn { min-height: 44px; font-size: 15px; }
.feel { font-size: 16px; }
.feel-btns button { min-height: 48px; }
/* sheets: More, Today's time, Sore or hurt? */
.more-list { display: grid; }
.more-list button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 14px; border: 0; border-bottom: 1.5px solid var(--line); background: none; text-align: left; font: 700 19px var(--display); color: var(--ink); }
.more-list button span { font-size: 22px; width: 30px; text-align: center; }
.more-list button[hidden] { display: none; }
.seg-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.seg-big button { min-height: 56px; font-size: 18px; border-radius: 14px; }
.time-est { font-size: 18px; font-weight: 700; margin: 14px 0 0; }
.time-mult { font-size: 18px; font-weight: 700; margin: 4px 0 8px; color: var(--accent-d); }
.time-sheet .muted, .sore-sheet p { font-size: 16px; color: #4A5059; }
.big-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); text-align: left; width: 100%; min-height: 64px; padding: 12px 14px; border: 1.5px solid var(--line); background: var(--card); border-radius: 16px; margin-bottom: 10px; gap: 2px 12px; align-items: center; color: var(--ink); }
.big-row > span { grid-row: span 2; font-size: 26px; }
.big-row b { font: 700 18px var(--display); }
.big-row small { font-size: 15px; color: #4A5059; }
.sore-sheet .set-conds li { font-size: 16px; }
/* move details: the only place for timer, swap, easier/harder and thumbs */
.move-actions { display: grid; gap: 10px; margin: 14px 0 6px; }
.move-actions .btn.big { margin-top: 0; }
.move-actions[hidden] { display: none; }
.move-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.move-tools .chip-btn { min-height: 48px; font-size: 16px; padding: 8px 16px; }
.move-actions .vote { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: #4A5059; flex-wrap: wrap; }
.move-actions .vote button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; min-width: 56px; min-height: 48px; font-size: 20px; }
.move-actions .vote button[aria-pressed="true"] { border-color: var(--ok); background: var(--ok-soft); }
.move-actions .vote button[data-vote="-1"][aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.move-actions .vote small { font-size: 15px; color: #4A5059; font-weight: 500; }
.move-alt { font-size: 16px; }
.move-alt[hidden] { display: none; }
.move-meta .pill-l { font-size: 15px; }
/* sign-up fixes: 44 px targets, Next bar never covers a question, precaution tiles */
.yn button { min-height: 44px; min-width: 56px; font-size: 16px; padding: 8px 12px; }
.readiness li { font-size: 16px; }
.ob-step { padding-bottom: 8px; }
.ob-step li, .ob-step .field, .ob-step .fit-item { scroll-margin-bottom: 120px; }
.ob-actions { position: static; background: var(--bg); padding: 14px 0 6px; } /* not sticky: it used to cover question 6 of the safety check */
.ob-foot { font-size: 14px; }
.ob-foot a { display: inline-block; min-height: 44px; line-height: 44px; }
.prec-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ptile { min-height: 72px; border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; text-align: left; color: var(--ink); }
.ptile span { font-size: 26px; flex: none; }
.ptile b { font: 700 17px/1.2 var(--display); }
.ptile.pmore { background: transparent; border-style: dashed; }
.ptile[hidden] { display: none; }
.prec-all { display: grid; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.prec-all[hidden] { display: none; }
.pchip { min-height: 44px; }
.pchip b { font-size: 16px; } .pchip small { font-size: 14px; color: #4A5059; }
.prec-group h4 { font-size: 16px; } .prec-group h4 small { font-size: 14px; }
.none-choice { min-height: 56px; margin-top: 10px; }
/* Settings groups */
.set-h { font-size: 20px; margin: 0 0 10px; }
.set-adv summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; flex-direction: column; justify-content: center; }
.set-adv summary::-webkit-details-marker { display: none; }
.set-adv summary .set-h { margin: 0; } .set-adv summary .set-h::after { content: ' ›'; }
.set-adv[open] summary .set-h::after { content: ' ⌄'; }
.set-adv summary small { font-size: 15px; color: #4A5059; }
.set-group h4 { font-size: 16px; margin: 14px 0 6px; }
/* Profile: trimmed top, the rest under More */
.prof-more { margin-top: 12px; border-top: 1.5px solid var(--line); padding-top: 8px; }
.prof-more > summary { min-height: 56px; display: flex; align-items: center; font: 700 18px var(--display); cursor: pointer; }
.prof-week-line { font-size: 16px; }
.profile-sheet .prof-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 480px) { .profile-sheet .prof-summary { grid-template-columns: 1fr; } }
/* feature-flag hooks for the [CUT] candidates (see js/features.js) */
.cut-chipDay .ach[data-id=chipday] { display: none; }
/* "Bigger text & buttons" (was Simple view): same screens, everything larger */
body.simple #app .card { grid-template-columns: 60px minmax(0, 1fr) 56px; gap: 8px; padding: 8px 10px; }
body.simple #app .card .sil-btn, body.simple #app .card .sil { width: 60px; height: 54px; }
body.simple #app .card .name { font-size: 18px; }
body.simple .st-tile b { font-size: 22px; } body.simple .st-tile small { font-size: 16px !important; color: #1F2328; }
body.simple .greet .hero-sub, body.simple .focus-line { font-size: 16px !important; color: #1F2328; }
body.simple .start-btn small { font-size: 16px !important; }
body.simple .start-btn b { font-size: 19px; }
body.simple .link-btn { font-size: 17px; }
body.simple .more-btn { font-size: 16px; padding: 0 12px; }
body.simple .home-links { flex-direction: column; align-items: flex-start; }
body.simple #app .card .target .tag { font-size: 16px !important; }

/* ================= tablet (768+) ================= */
@media (min-width: 768px) {
  .sheet { max-width: 640px; }
  #app > .topbar, #app > .layout, #app > .footer { max-width: 680px; }
}

/* ================= desktop (1024+): moves + Start on the left, 3 calm cards on the right ================= */
@media (min-width: 1024px) {
  body { font-size: 18px; }
  #app > .topbar { max-width: 1100px; padding: 20px 32px 10px; }
  #app > .layout { max-width: 1100px; padding: 0 32px 12px; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
  #app > .footer { max-width: 1100px; padding: 4px 32px 32px; }
  .status-strip { display: none; }
  .col-side { display: grid; gap: 14px; align-self: start; position: sticky; top: 16px; }
  .greet .hero-title { font-size: 32px; }
  .col-main { gap: 12px; }
  #app .card { padding: 6px 14px; grid-template-columns: 64px minmax(0, 1fr) 56px; }
  #app .card .sil-btn, #app .card .sil { width: 64px; height: 56px; }
  #app .card .name { font-size: 19px; }
  .start-btn { min-height: 60px; }
  .start-btn small { font-size: 16px; }
  .panel.calm { box-shadow: none; padding: 16px 18px; }
  .panel.calm h3 { font-size: 17px; margin: 0 0 6px; }
  .panel.calm .big-n { font: 800 32px/1.15 var(--display); margin: 0; }
  .panel.calm small { display: block; font-size: 16px; color: #4A5059; margin-top: 6px; }
  .panel.calm small:empty { display: none; }
  .panel.calm .bar { display: block; height: 10px; }
  .footer, .footer p { font-size: 16px; }
  .st-tile small, .focus-line, .link, button.link, .cond-banner .stop, .cond-banner .chip-btn, .stage-note .chip-btn, #app .card .target .tag, .move-meta .pill-l, .move-actions .vote small,
  .modal small, .modal em, .modal .muted, .modal .field span, .modal .lim, .modal .tier, .modal .note, .modal .ach small, .modal .lb-rows small, .modal .rep, .modal .set-row small, .modal .set-group h4,
  .modal #myMoves li, .modal #profileSummary div, .modal #profileSummary span, .modal #profileSummary b, .modal .slider-row b, .modal .slider-row span, .modal .skin span, .modal .fchip, .modal .chip-btn, .modal .tier-name,
  .modal .sum-card em, .modal .sentences li, .modal .challenge-banner small, .modal .challenge-banner b, .modal .cb-btn, .pchip small, .prec-group h4 small, .ob-foot, .toast, .install-hint, .install-hint *, .team-card small, .lb-line { font-size: 16px !important; }
  /* dialogs: wider, two columns where it helps */
  .modal { align-items: center; }
  .sheet { max-width: 720px; padding: 24px 28px; }
  .profile-sheet, #modal-lb .sheet, .plus-sheet { max-width: 1040px; }
  .profile-sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-content: start; }
  .profile-sheet > * { grid-column: 1 / -1; }
  .profile-sheet > .prof-boulder { grid-column: 1; } .profile-sheet > .prof-next { grid-column: 2; }
  .plus-cols { grid-template-columns: 1fr 1fr; }
  .toast { font-size: 17px; }
}
/* wide screens: a move's how-to opens docked in the right column, list stays in view */
@media (min-width: 1200px) {
  #modal-move.docked { position: fixed; inset: auto; top: 82px; right: max(32px, calc((100vw - 1100px) / 2 + 32px)); width: 340px; background: none; display: block; z-index: 40; animation: none; }
  #modal-move.docked[hidden] { display: none; }
  #modal-move.docked .sheet { max-width: none; width: 100%; max-height: calc(100vh - 100px); border-radius: 20px; padding: 16px 18px; border: 1.5px solid var(--line); background: var(--card); box-shadow: 0 12px 32px rgba(20,22,26,.14); animation: none; }
  #modal-move.docked .move-sil { max-width: 220px; }
  body:has(#modal-move.docked:not([hidden])) .col-side { visibility: hidden; }
}
#app .brand { min-height: 48px; display: inline-flex; align-items: center; }
.footer a { min-width: 44px; text-align: center; }
.ob-back, #obBack { width: 48px; height: 48px; }
.move-sheet .move-sil { max-width: 260px; }
@media (max-width: 480px) {
  .profile-sheet .prof-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .profile-sheet .sum-card { grid-template-columns: 1fr; text-align: center; padding: 10px 6px; }
  .profile-sheet .sum-card span { grid-row: auto; font-size: 24px; }
  .profile-sheet .sum-card b { font-size: 20px; }
  .profile-sheet .sum-card small { font-size: 14px; }
  .profile-sheet .sum-card em { display: block; margin-top: 2px; }
}
.sum-card em { font-size: 14px; }
body.simple .cond-banner .stop, body.simple .cond-banner p, body.simple .stage-note p, body.simple #app .link { font-size: 16px !important; }
.day .dn { font-size: 14px; }
@media (min-width: 1024px) { .modal .day .dn, .modal .seg button, .modal .week * { font-size: 16px !important; } }
body.simple .start-btn small { color: #F3F4F6 !important; }
@media (min-width: 1024px) { body.simple #app > .layout { grid-template-columns: minmax(0, 1fr) 300px !important; gap: 24px; } body.simple #app > .layout, body.simple #app > .topbar, body.simple #app > .footer { padding-left: 20px; padding-right: 20px; } }

/* row = one "how-to" button (picture + name + amount) and one check */
#app .card { grid-template-columns: minmax(0, 1fr) 56px; }
#app .card .row-main { grid-column: 1; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; padding: 0; }
#app .card .row-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#app .card .check { grid-column: 2; }
#app .card .sil-btn { display: block; border-radius: 14px; overflow: hidden; background: var(--bg); }
#app .card.done .sil-btn { background: var(--ok-soft); }
@media (min-width: 1024px) { #app .card { grid-template-columns: minmax(0, 1fr) 56px; } #app .card .row-main { grid-template-columns: 64px minmax(0, 1fr); } }
body.simple #app .card { grid-template-columns: minmax(0, 1fr) 56px; } body.simple #app .card .row-main { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; }

/* ---------- home boulder (signature, 10/20 round 2): third strip tile + desktop side card ---------- */
.st-boulder { position: relative; cursor: pointer; font: inherit; color: inherit; padding: 4px 6px 8px; justify-content: flex-end; overflow: visible; }
.st-boulder:hover { border-color: var(--accent); }
.st-boulder:focus-visible, .side-boulder .sb-row:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.st-boulder .stone { width: 66px; height: 56px; margin: 0; display: block; overflow: visible; }
.st-boulder small { font-weight: 700; }
.st-dia { position: absolute; top: 4px; right: 6px; font: 800 14px/1 var(--display); background: #E8F7FC; color: #145C73; border-radius: 999px; padding: 3px 6px; pointer-events: none; }
.stone.boulder { transition: transform .25s cubic-bezier(.3,1.4,.6,1); transform-origin: 50% 50%; position: relative; }
.stone.boulder.chipping { transform: translateX(var(--tx, 0px)) scale(var(--k, 1)); z-index: 65; filter: drop-shadow(0 6px 14px rgba(0,0,0,.3)); }
.stone.boulder .wedge.next { transition: transform .5s cubic-bezier(.3,1.3,.6,1), opacity .5s ease; transform: translate(calc(var(--fx) * var(--p) * .14), calc(var(--fy) * var(--p) * .08)) rotate(calc(var(--p) * 8deg)); opacity: calc(1 - var(--p) * .35); }
.chip-anim.on-boulder { transform: none; top: auto; animation: caFade 1.25s ease forwards; z-index: 66; }
.chip-anim.on-boulder .ca-svg { width: 100%; height: 100%; filter: none; overflow: visible; }
.chip-anim.on-boulder .ca-pop { font-size: 34px; }
.chip-static.at-boulder { transform: none; width: 150px; text-align: center; padding: 8px 10px; font-size: 18px; border-radius: 14px; }
.side-boulder:hover { border-color: var(--accent); }
.side-boulder .sb-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; border-radius: 12px; }
.side-boulder .stone { width: 120px; height: 102px; flex: none; margin: 0; overflow: visible; }
.side-boulder .big-n { display: block; }
.side-boulder .sb-dia { color: #145C73 !important; font-weight: 700; }
body.simple .st-boulder .stone { width: 62px; height: 53px; }
body.simple .st-dia { font-size: 16px !important; }
@media (prefers-reduced-motion: reduce) { .stone.boulder, .stone.boulder .wedge.next { transition: none !important; } .stone.boulder.chipping { transform: none; } }

.side-cards { display: grid; gap: 14px; }

/* ================= hybrid home (Jordan's markup, 10/20/2026 round 3): original header + dark hero on top, new tip/Start/rows below ================= */
.top-actions { display: flex; gap: 8px; align-items: center; }
.top-actions .icon-btn { width: 48px; height: 48px; font-size: 19px; }
#app .hero { display: grid; grid-template-columns: minmax(0, 1fr) 124px; grid-template-areas: "txt rock" "time time"; column-gap: 10px; row-gap: 10px; align-items: center; padding: 14px 16px 14px; border-radius: 22px; }
#app .hero-text { grid-area: txt; }
#app .hero .eyebrow { font-size: 14px; letter-spacing: .06em; }
#app .hero-title { font-size: 26px; line-height: 1.06; margin: 2px 0 0; color: #fff; }
#app .hero-sub { margin: 3px 0 8px; font-size: 15px; color: #D5D8DD; }
#app .pill-row { gap: 5px; flex-direction: column; align-items: flex-start; }
#app .pill { font-size: 14px; padding: 3px 10px; line-height: 1.35; }
#app .pill[hidden] { display: none; }
#app .stone-wrap { grid-area: rock; width: 124px; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; border-radius: 16px; position: relative; z-index: 1; }
#app .stone-wrap:focus-visible { outline: 3px solid var(--gem); outline-offset: 3px; }
#app .stone-wrap:hover .stone { filter: brightness(1.08); }
#app .stone-wrap .stone { width: 124px; height: 105px; display: block; overflow: visible; }
#app .stone-count { margin-top: -2px; font-size: 15px; color: #D5D8DD; }
#app .stone-count b { font-size: 24px; }
#app .to-next { font-size: 14px; color: #D5D8DD; text-align: center; line-height: 1.2; margin-top: 2px; }
#app .day-time { grid-area: time; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; position: relative; }
#app .day-time > span { font-size: 14px; color: #D5D8DD; white-space: nowrap; }
#app .seg-dark { padding: 2px; flex: 1; max-width: 240px; display: grid; grid-template-columns: repeat(4, 1fr); }
#app .seg-dark button { min-height: 44px; min-width: 44px; font: 700 16px var(--display); border-radius: 999px; padding: 0 6px; }
.side-tip:empty { display: none; }
.side-tip { display: grid; gap: 10px; }
.side-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 4px 0 0; }
.side-medal { list-style: none; margin: 0; padding: 0; }
.side-medal .ach { padding: 0; border: 0; background: none; }
#sideMedalCard[hidden] { display: none; }
/* Bigger text & buttons: hero stacks (text, then boulder row, then time), still no sideways scroll */
body.simple #app .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "txt" "rock" "time"; }
body.simple #app .stone-wrap { width: 100%; flex-direction: row; justify-content: flex-start; gap: 12px; text-align: left; flex-wrap: wrap; }
body.simple #app .stone-wrap .stone { width: 100px; height: 85px; }
body.simple #app .stone-wrap .to-next { text-align: left; flex: 1; min-width: 120px; }
body.simple #app .hero-title, body.simple #app .hero-sub, body.simple #app .stone-count, body.simple #app .to-next, body.simple #app .day-time > span, body.simple #app .eyebrow { color: #fff; }
body.simple #app .day-time { flex-wrap: wrap; }
body.simple #app .seg-dark { max-width: none; width: 100%; }
body.simple #app .pill { white-space: normal; }
@media (min-width: 1024px) {
  #app .hero { grid-template-columns: minmax(0, 1fr) 150px; padding: 16px 22px; row-gap: 8px; }
  #app .hero-title { font-size: 30px; }
  #app .hero-sub { font-size: 16px; margin-bottom: 8px; }
  #app .pill-row { flex-direction: row; flex-wrap: wrap; }
  #app .pill { font-size: 16px; }
  #app .stone-wrap { width: 150px; }
  #app .stone-wrap .stone { width: 140px; height: 119px; }
  #app .to-next, #app .day-time > span, #app .eyebrow { font-size: 16px; }
  #app .day-time { justify-content: flex-start; }
  .side-tip .notice { font-size: 16px; }
  body.simple #app .hero { grid-template-columns: minmax(0, 1fr) 150px; grid-template-areas: "txt rock" "time time"; }
  body.simple #app .stone-wrap { flex-direction: column; width: 150px; text-align: center; }
  body.simple #app .stone-wrap .to-next { text-align: center; }
}
/* tightened hero: date + title across the top, then pills beside the boulder, then today's time */
#app .hero-text { display: contents; }
#app .hero { grid-template-areas: "eb eb" "ttl ttl" "sub rock" "pills rock" "time time"; grid-template-rows: auto auto auto 1fr auto; row-gap: 0; }
#app .hero .eyebrow { grid-area: eb; position: relative; }
#app .hero-title { grid-area: ttl; position: relative; margin: 2px 0 0; }
#app .hero-sub { grid-area: sub; position: relative; margin: 2px 0 6px; align-self: start; }
#app .pill-row { grid-area: pills; position: relative; align-self: start; }
#app .stone-wrap { align-self: start; margin-top: -6px; }
#app .stone-wrap .stone { width: 116px; height: 96px; }
#app .day-time { margin-top: 10px; }
body.simple #app .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eb" "ttl" "sub" "pills" "rock" "time"; }
body.simple #app .stone-wrap { margin-top: 8px; }
@media (min-width: 1024px) {
  #app .hero { grid-template-columns: minmax(0, 1fr) 150px; grid-template-areas: "eb rock" "ttl rock" "sub rock" "pills rock" "time rock"; padding: 14px 22px; }
  #app .hero-title { font-size: 30px; }
  #app .stone-wrap { margin-top: 0; align-self: center; }
  #app .stone-wrap .stone { width: 140px; height: 116px; }
  #app .day-time { margin-top: 8px; }
  .col-main { gap: 10px; }
  #app .card { padding: 2px 14px; grid-template-columns: minmax(0, 1fr) 56px; min-height: 60px; }
  #app .card .row-main { grid-template-columns: 56px minmax(0, 1fr); }
  #app .card .sil-btn, #app .card .sil { width: 56px; height: 48px; }
  #app .plan { gap: 8px; }
  .start-btn { min-height: 56px; }
  body.simple #app .hero { grid-template-columns: minmax(0, 1fr) 150px; grid-template-areas: "eb rock" "ttl rock" "sub rock" "pills rock" "time time"; }
}
/* first-screen tightening (phones) */
#condBanners:empty, #stageNote[hidden], #lbLine[hidden], #teamCard[hidden], #installHint[hidden] { display: none; }
@media (max-width: 1023px) {
  #app > .topbar { padding-top: max(8px, var(--safe-top)); padding-bottom: 6px; }
  #app .hero { padding: 12px 16px; }
  #app .pill-row { gap: 4px; }
  #app .stone-wrap .stone { width: 108px; height: 90px; }
  #app .day-time { margin-top: 8px; }
}
.side-medal .tier { display: none; }
@media (min-width: 1024px) { .side-medal small, .side-medal b { font-size: 16px !important; } }
/* Bigger text on phones: keep the header on one line and the boulder row compact */
body.simple #app .stone-count, body.simple #app .to-next { font-size: 16px !important; }
body.simple #app .stone-count b { font-size: 24px !important; }
body.simple #app .stone-wrap { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; }
body.simple #app .stone-wrap .stone { width: 96px; height: 80px; grid-row: 1 / 3; }
body.simple #app .stone-wrap .stone-count { align-self: end; text-align: left; margin: 0; }
body.simple #app .stone-wrap .to-next { align-self: start; text-align: left; min-width: 0; }
@media (max-width: 480px) {
  body.simple #app > .topbar { flex-wrap: nowrap; gap: 6px; }
  body.simple #app .brand .wordmark { display: none; }
  body.simple #app .top-actions { gap: 6px; flex-wrap: nowrap; }
  body.simple #app .top-actions .icon-btn { padding: 0 9px; gap: 4px; }
}
body.simple #app .stone-wrap svg.stone { width: 96px; height: 80px; }
@media (min-width: 1024px) { body.simple #app .stone-wrap svg.stone { width: 130px; height: 108px; } body.simple #app .stone-wrap { display: flex; } body.simple #app .stone-wrap .stone-count, body.simple #app .stone-wrap .to-next { text-align: center; } }
@media (min-width: 1024px) { #app .hero .eyebrow, #app .stone-count, #app .side-week .dn { font-size: 16px; } }
body.simple #app .brand { min-width: 44px; }

/* share-details one-time choice */
.share-choice { display: grid; gap: 10px; margin-top: 12px; }
.share-choice .btn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; }
.share-choice .btn small { font-weight: 500; font-size: 14px; color: var(--muted, #5B616B); }

/* ================= Final round (11/2/2026): toasts sit above the tab bar; at the top while a sheet or a share preview is in the way ================= */
#app ~ .toast, .toast { bottom: calc(96px + var(--safe-bottom)); }
.toast.at-top { bottom: auto; top: calc(14px + var(--safe-top)); z-index: 90; }
@media (min-width: 1024px) { .toast { bottom: 24px; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* ================= Bottom tabs (final round): Apple Fitness-style floating tab bar (phones + tablets) ================= */
.tabbar { position: fixed; left: calc(12px + var(--safe-left)); right: calc(12px + var(--safe-right)); bottom: calc(8px + var(--safe-bottom)); max-width: 560px; margin: 0 auto; z-index: 55;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 5px; border-radius: 34px;
  background: rgba(252, 250, 247, .78); -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7);
  border: 1px solid rgba(31, 35, 40, .12); box-shadow: 0 10px 30px rgba(20, 22, 26, .18), 0 1px 0 rgba(255, 255, 255, .7) inset; }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) { .tabbar { background: rgba(252, 250, 247, .97); } }
.tabbar button { min-height: 58px; border: 0; background: transparent; border-radius: 28px; color: #474D56; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 700 13px/1.1 var(--display); cursor: pointer; padding: 4px 2px; min-width: 0; }
.tabbar button svg { width: 27px; height: 27px; flex: none; }
.tabbar button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tabbar button[aria-current="page"] { background: rgba(255, 106, 61, .16); color: #B63F10; }
.tabbar button[aria-current="page"] svg { color: #F05A26; }
.tabbar button:focus-visible { outline: 3px solid #F05A26; outline-offset: -3px; }
@media (hover: hover) { .tabbar button:not([aria-current]):hover { background: rgba(31, 35, 40, .06); } }
@media (max-width: 1023px) {
  body #app { padding-bottom: calc(92px + var(--safe-bottom)); }
}
/* tab views */
.tabview { max-width: 680px; margin: 0 auto; padding: 4px 18px 24px; }
.tabview[hidden], #app > main.layout[hidden] { display: none !important; }
.view-h { font: 800 30px/1.1 var(--display); margin: 6px 0 4px; }
.view-sub { color: #4A5059; margin: 0 0 14px; }
.share-card { margin-bottom: 14px; }
.share-card h2 { font: 800 20px var(--display); margin: 0 0 8px; }
#badgesBody > * { margin-bottom: 14px; }
#view-lb .lb-me, #view-lb .lb-theme { margin-bottom: 10px; }
/* Bigger text: undo the 1.25 zoom on the bar (keeps it inside 390 px) and use larger labels/icons instead */
body.simple #app .tabbar { zoom: .8; left: 6px; right: 6px; padding: 4px; gap: 0; }
body.simple #app .tabbar button { min-height: 66px; font-size: 15px; }
body.simple #app .tabbar button svg { width: 30px; height: 30px; }
@media (max-width: 1023px) { body.simple #app { padding-bottom: calc(84px + var(--safe-bottom)); } }
/* desktop: the same 4 items as a left sidebar */
@media (min-width: 1024px) {
  #app { padding-left: calc(220px + var(--safe-left)); }
  .tabbar { top: 0; bottom: 0; left: 0; right: auto; width: calc(220px + var(--safe-left)); max-width: none; margin: 0; display: flex; flex-direction: column; gap: 6px; padding: calc(92px + var(--safe-top)) 14px max(20px, var(--safe-bottom)); padding-left: max(14px, var(--safe-left));
    border-radius: 0; border: 0; border-right: 1.5px solid var(--line); background: var(--card); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tabbar button { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 56px; padding: 0 16px; border-radius: 16px; font-size: 18px; }
  .tabbar button svg { width: 28px; height: 28px; }
  body.simple #app .tabbar { zoom: 1; padding-top: 80px; }
  body.simple #app .tabbar button { font-size: 18px; min-height: 60px; }
  .tabview { max-width: 880px; padding: 0 32px 32px; }
  #modal-move.docked { right: 32px; }
}
@media (max-width: 1023px) {
  body.simple #app .tabbar { left: 4px; right: 4px; padding: 3px; }
  body.simple #app .tabbar button { padding: 4px 0; font-size: 14.5px; letter-spacing: -.01em; }
}
body.simple #app .seg-dark button small { color: #E6E8EB !important; opacity: 1; }
body.simple #app .seg-dark button.sel small { color: #fff !important; }
/* the weekly standings line duplicates the Leaderboard tab */
#app #lbLine { display: none !important; }


/* sheets (z 50+) always sit above the floating tab bar */
#app .tabbar { z-index: 45; }

/* ================= Final round: dark card = variant 13 "Hero + ring" (no date, centred boulder in a progress ring) ================= */
#app .hero.hero-ring { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 16px; }
#app .hero.hero-ring::before { background: radial-gradient(circle at 50% 36%, rgba(255,106,61,.38), transparent 52%); }
#app .hero.hero-ring > * { position: relative; }
#app .hero-ring .hero-title { font: 800 36px/1.05 var(--display); letter-spacing: -.02em; margin: 0 0 4px; text-wrap: balance; color: #fff; }
#app .hero-ring .ring-wrap { position: relative; width: 156px; height: 156px; flex: none; margin: 0; padding: 0; display: block; align-self: center; border-radius: 50%; }
#app .hero-ring .hero-ring-svg { position: absolute; inset: 0; width: 156px; height: 156px; overflow: visible; }
#app .hero-ring .ring-track { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 6; }
#app .hero-ring .ring-fill { fill: none; stroke: #FF6A3D; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 458.67; stroke-dashoffset: var(--ring-off, 458.67); transition: stroke-dashoffset .9s cubic-bezier(.3,.9,.4,1); }
#app .hero-ring .ring-fill.empty { stroke-linecap: butt; }
#app .hero-ring .ring-wrap .stone { position: absolute; left: 17px; top: 22px; width: 122px; height: 104px; margin: 0; }
#app .hero-ring .to-next { font: 500 15px/1.3 var(--body); color: #D5D8DD; margin: 0; text-align: center; }
#app .hero-ring .stone-dia { font: 700 15px var(--display); color: #A8E6F7; margin: 0; text-align: center; }
#app .hero-ring .pill-row { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 6px; }
#app .hero-ring .pill { font: 700 15px var(--body); padding: 5px 12px; }
#app .hero-ring .hero-sub { color: #fff; margin: 0; }
#app .hero-ring .day-time { width: 100%; margin: 0; display: block; }
#app .hero-ring .seg-dark { width: 100%; max-width: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); }
#app .hero-ring .seg-dark button { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; padding: 0; gap: 1px; border-radius: 999px; color: #fff; }
#app .hero-ring .seg-dark button b { font: 800 17px var(--display); }
#app .hero-ring .seg-dark button small { font: 700 14px var(--body); color: #D5D8DD; }
#app .hero-ring .seg-dark button.sel { background: var(--accent); color: var(--ink); }
#app .hero-ring .seg-dark button.sel small { color: var(--ink); }
#app .hero-ring .plan-line { font: 500 14px var(--body); color: #D5D8DD; margin: 2px 0 0; }
@media (prefers-reduced-motion: reduce) { #app .hero-ring .ring-fill { transition: none; } }
body.reduce-motion #app .hero-ring .ring-fill { transition: none; }
/* Bigger text (#app is zoomed 1.25): same stack, slightly smaller title so it stays on 2 lines, every label >= 16px */
body.simple #app .hero-ring .hero-title { font-size: 31px; }
body.simple #app .hero-ring :is(.to-next, .stone-dia, .plan-line, .pill) { font-size: 16px !important; color: #fff; }
body.simple #app .hero-ring .stone-dia { color: #BDEBF7; }
body.simple #app .hero-ring .seg-dark button small { font-size: 16px !important; color: #F3F4F6 !important; }
body.simple #app .hero-ring .seg-dark button.sel small { color: var(--ink) !important; }
body.simple #app .hero-ring .seg-dark button b { font-size: 17px; }
/* desktop: the ring on the left, the words and the picker beside it (keeps all five moves above the fold) */
@media (min-width: 1024px) {
  #app .hero.hero-ring { display: grid; grid-template-columns: 172px minmax(0, 1fr); grid-template-areas: "rock ttl" "rock tn" "rock dia" "rock pills" "time time" "plan plan"; grid-template-rows: auto auto auto 1fr auto auto;
    align-items: center; justify-items: start; text-align: left; column-gap: 20px; row-gap: 2px; padding: 16px 22px; }
  #app .hero.hero-ring::before { background: radial-gradient(circle at 16% 40%, rgba(255,106,61,.38), transparent 45%); }
  #app .hero-ring .ring-wrap { grid-area: rock; justify-self: center; }
  #app .hero-ring .hero-title { grid-area: ttl; font-size: 34px; margin: 0; align-self: end; }
  #app .hero-ring .to-next { grid-area: tn; text-align: left; font-size: 16px; }
  #app .hero-ring .stone-dia { grid-area: dia; text-align: left; font-size: 16px; }
  #app .hero-ring .pill-row { grid-area: pills; justify-content: flex-start; align-self: start; margin: 6px 0 4px; }
  #app .hero-ring .day-time { grid-area: time; margin-top: 8px; }
  #app .hero-ring .plan-line { grid-area: plan; justify-self: center; font-size: 15px; }
  body.simple #app .hero.hero-ring { grid-template-columns: 172px minmax(0, 1fr); }
}
/* tabs: the sidebar logo only on desktop; the leaderboard tab has no "Not now"; Badges always shows its medals */
#app .tabbar .side-brand { display: none; }
#view-lb #lbNot { display: none; }
#view-badges #toggleAch { display: none; }
@media (min-width: 1024px) {
  .tabbar { padding-top: 22px; }
  #app .tabbar .side-brand { display: flex; align-items: center; gap: 8px; padding: 4px 12px 22px; text-decoration: none; color: inherit; }
  .tabbar .side-brand .brand-mark { width: 40px; height: 40px; }
  .tabbar .side-brand .wordmark { font-size: 28px; }
  #app > .topbar .brand { visibility: hidden; }
  body.simple #app .tabbar { padding-top: 22px; }
}
body.simple #app .hero.hero-ring .pill-row { flex-direction: row !important; align-items: center !important; justify-content: center; }
@media (min-width: 1024px) { body.simple #app .hero.hero-ring .pill-row { justify-content: flex-start; } }
body.simple #app .hero-ring .ring-wrap { display: block !important; width: 156px; height: 156px; margin: 0; }
body.simple #app .hero-ring .ring-wrap .stone { grid-row: auto; width: 122px; height: 104px; }

/* tab labels: 14 px (>= 13 per spec) so every screen keeps a 14 px floor; "Leaderboard" still fits */
@media (max-width: 1023px) { #app .tabbar button { font-size: 14px; letter-spacing: -.01em; padding: 4px 1px; } }
/* desktop: the hero and the tab views keep the 16 px desktop floor (the old sheets got it from the .modal rules) */
@media (min-width: 1024px) {
  #app .hero-ring .pill { font-size: 16px; }
  #app .hero-ring .seg-dark button small { font-size: 16px; }
  #app .hero-ring .seg-dark button b { font-size: 18px; }
  #app .hero-ring .plan-line { font-size: 16px; }
  .tabview small, .tabview em, .tabview .muted, .tabview .small, .tabview .field span, .tabview .lim, .tabview .tier, .tabview .tier i, .tabview .note, .tabview .ach small,
  .tabview .lb-rows small, .tabview .rep, .tabview .cnt, .tabview .tier-name, .tabview .sentences li, .tabview pre, .tabview p, .tabview .lb-note, .tabview label span,
  .tabview .chip-btn, .tabview .fchip, .tabview .tabs button, .tabview li, .tabview .lb-you, .tabview .btn, .tabview .privacy-box b, .tabview label.chk { font-size: 16px !important; }
}
/* phone tab bar: give the long "Leaderboard" label a wider column so no label is ever cut off */
@media (max-width: 1023px) { #app .tabbar { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); } }
/* Settings rows: a long nickname or Bigger text never pushes the button off screen; it wraps under instead */
.set-row { flex-wrap: wrap; }
.set-row > div { flex: 1 1 150px; min-width: 0; overflow-wrap: anywhere; }
.set-row > .btn { margin-left: auto; max-width: 100%; }

/* first-day tip: a highlight ring (and a gentle pulse) on the first move's check; a small arrow points at it from above, never over the name */
.card.tip-target { margin-top: 12px; padding-top: 22px; }
#plan:has(.card.tip-target) { margin-top: 8px; }
.card.tip-target .check {
  border-color: #F05A26;
  border-style: solid;
  box-shadow: 0 0 0 4px rgba(240, 90, 38, .3);
  z-index: 1;
  animation: tip-pulse 1.8s ease-in-out infinite;
}
.card.tip-target .check::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%);
  width: 0; height: 0;
  border: 8px solid transparent;
  border-top: 0;
  border-bottom: 10px solid #F05A26;
  pointer-events: none;
}
@keyframes tip-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(240, 90, 38, .3); }
  50% { box-shadow: 0 0 0 9px rgba(240, 90, 38, .1); }
}
@media (prefers-reduced-motion: reduce) {
  .card.tip-target { margin-top: 12px; padding-top: 22px; }
#plan:has(.card.tip-target) { margin-top: 8px; }
.card.tip-target .check { animation: none; }
}
.lb-note { background: var(--accent-soft); border: 1.5px solid #ffc9b5; border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; margin: 0 0 12px; }
.legal-page { max-width: 720px; margin: 0 auto; padding: max(24px, var(--safe-top)) max(20px, var(--safe-right)) max(64px, var(--safe-bottom)) max(20px, var(--safe-left)); }
.legal-page header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.legal-page .draft { background: #FFF3D6; border: 1px solid #E8C46A; color: #5C4A12; border-radius: 10px; padding: 12px 14px; font-size: 15px; margin: 0 0 20px; }
.legal-page h1 { font-size: 32px; margin: 0 0 8px; }
.legal-page h2 { font-size: 22px; margin: 28px 0 8px; }
.legal-page p, .legal-page li { font-size: 16px; line-height: 1.55; color: var(--ink2); }
.legal-page ul { padding-left: 1.2em; }
.legal-page .meta { color: var(--muted); font-size: 14px; }
.legal-page a { color: var(--accent-d); }
.legal-page footer { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }

body.simple { overflow-x: hidden; }
@media (max-width: 1023px) {
  /* zoom 1.25 would otherwise paint wider than the viewport and allow sideways scrolling */
  body.simple #app { width: 80%; }
}

@media (display-mode: standalone), (display-mode: fullscreen) { #installHint { display: none !important; } }
html.standalone #installHint, html.sim-standalone #installHint { display: none !important; }

@media (min-width: 1024px) {
  /* first-day tip lives in the right column on desktop, so the list can sit higher */
  #plan:has(.card.tip-target) { margin-top: 0; }
  .card.tip-target { margin-top: 0; padding-top: 8px; }
}
