/* TANADI web app styles.
   Layout: "The Daily Form". Dark charcoal is home; content stacks in even bars like the symbol;
   lime marks only "today" (the one next action). Always dark (approved 2026-11-05): one look for web and app. Lime Deep #71900F is only for light print/materials. */
:root {
  --bg: #171B1F;          /* Deep Charcoal */
  --surface: #2B3239;     /* Slate */
  --surface-2: #222830;
  --line: #3A424B;
  --fg: #F3F4F1;          /* Bone */
  --muted: #9AA3AC;
  --accent: #C5F03C;      /* Lime: on dark only */
  --accent-soft: rgba(197, 240, 60, .10);
  --btn-bg: #C5F03C;
  --btn-fg: #171B1F;
  --logo-body: #F3F4F1;
  --chip-on-bg: #F3F4F1;
  --chip-on-fg: #171B1F;
  --panel-bg: #2B3239;
  --panel-fg: #F3F4F1;
  --panel-accent: #C5F03C;
  --head: "Sora", "Noto Sans Georgian", system-ui, sans-serif;
  --body: "Inter", "Noto Sans Georgian", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Noto Sans Georgian", ui-monospace, monospace;
  --serif: "Noto Serif Georgian", Georgia, serif;
  --glass: rgba(43, 50, 57, .55);
  --glass-line: rgba(243, 244, 241, .07);
  --glow: rgba(197, 240, 60, .10);
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box }
[hidden] { display: none !important }  /* sections toggled with the hidden attribute must stay hidden even when they set display */
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 56px;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg) }
.wrap { max-width: 920px; margin: 0 auto }
h1, h2, h3 { font-family: var(--head); text-wrap: balance; margin: 0; line-height: 1.12; letter-spacing: -.01em }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 700 }
h2 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 600 }
h3 { font-size: 18px; font-weight: 600 }
.eyebrow { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted) }
.num { font-variant-numeric: tabular-nums }
button, input { font: inherit; color: inherit }
button { cursor: pointer }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.small { font-size: 13px; color: var(--muted) }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)) }
.top .wrapin { max-width: 920px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px }
.logo { display: block; height: 28px; width: auto }
.logo .body { fill: var(--logo-body) }
.logo .head { fill: var(--accent) }
.top-cta { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; text-decoration: none; color: var(--fg) }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--btn-bg); color: var(--btn-fg); border: 0; border-radius: 12px; padding: 14px 22px; font-weight: 600; font-size: 16px; text-decoration: none; min-height: 50px }
.btn:hover { filter: brightness(1.06) }
.btn:disabled { opacity: .45; cursor: not-allowed }
.btn.block { width: 100% }
.ghost { background: transparent; border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; font-weight: 600; min-height: 46px }
.ghost:disabled { opacity: .4; cursor: not-allowed }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; padding-block: 40px 44px }
.hero p.lead { color: var(--muted); max-width: 48ch; margin: 16px 0 22px; font-size: 17px }
.hero h1 .hl { color: var(--accent) }
.pills-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px }
.features { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; max-width: 560px }
.features li { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 12px; position: relative }
.features li::before { content: ""; position: absolute; top: 0; left: 0; width: 22px; height: 4px; border-radius: 1px; background: var(--accent) }
.features b { font-weight: 600; font-size: 15px }
.features span { font-size: 13px; color: var(--muted); line-height: 1.45 }
@media (max-width: 359px) { .features { grid-template-columns: 1fr } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px }
.pill { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line) }
.pill.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600 }
.stack { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 20px; background: var(--surface); border-radius: 20px; min-width: 0 }
.stack .bar { height: 46px; border-radius: 4px; background: var(--surface-2); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 14px; animation: grow .6s cubic-bezier(.2, .7, .2, 1) both }
.stack .bar span:first-child { color: var(--muted) }
.stack .bar b { font-variant-numeric: tabular-nums; font-weight: 600 }
.stack .bar.step { justify-content: flex-start; gap: 12px; height: auto; min-height: 46px; padding-block: 8px; line-height: 1.3 }
.stack .bar.step span { font-family: var(--head); font-weight: 600; color: var(--accent); min-width: 1ch }
.stack .bar.step b { font-weight: 500 }
.stack .bar.today { width: auto; max-width: 100%; height: auto; min-height: 46px; padding: 8px 18px; text-align: center; line-height: 1.3; background: var(--accent); color: var(--btn-fg); justify-content: center; font-weight: 600 }
.stack .bar:nth-child(2) { width: 100%; animation-delay: .05s }
.stack .bar:nth-child(3) { width: 88%; animation-delay: .1s }
.stack .bar:nth-child(4) { width: 78%; animation-delay: .15s }
.stack .bar:nth-child(5) { width: 70%; animation-delay: .2s }
.stack .cap { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center }
.stack .cap.strong { font-size: 14px; color: var(--fg); font-weight: 500; margin-top: 10px; max-width: 34ch }
.stack .bar.step.result { justify-content: center; text-align: center }
.stack .bar.step.result b { color: var(--accent); font-weight: 600 }
.stack .bar.goal { border: 1.5px solid transparent; color: var(--fg); font: inherit; cursor: pointer; justify-content: space-between; text-align: left; min-height: 52px }
.stack .bar.goal b { font-weight: 600; font-size: 15px }
.stack .bar.goal .go { color: var(--muted); transition: transform .15s, color .15s }
.stack .bar.goal:hover { border-color: var(--line) }
.stack .bar.goal:hover .go { color: var(--accent); transform: translateX(3px) }
.stack .bar.goal[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft) }
.stack .bar.goal[aria-pressed="true"] .go { color: var(--accent) }
@keyframes grow { from { transform: scaleX(.7) } to { transform: scaleX(1) } }

/* Quiz */
.quiz { background: var(--surface); border-radius: 20px; padding: 26px clamp(18px, 4vw, 36px); margin-block: 8px 44px; scroll-margin-top: 80px }
.segs { display: flex; gap: 4px; margin-bottom: 22px }
.segs i { flex: 1; height: 6px; border-radius: 2px; background: var(--line) }
.segs i.done { background: var(--fg); opacity: .55 }
.segs i.now { background: var(--accent); opacity: 1 }
.quiz h2 { margin: 6px 0 6px }
.quiz .sub { color: var(--muted); margin: 0 0 18px; min-height: 1.6em }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px }
.opt { text-align: left; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 56px }
.opt b { font-size: 16px; font-weight: 600 }
.opt small { color: var(--muted); font-size: 13px; line-height: 1.4 }
.opt:hover { border-color: var(--line) }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft) }
.numin { display: flex; align-items: center; gap: 10px; max-width: 280px }
.numin input { flex: 1; min-width: 0; font-family: var(--head); font-size: 30px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); font-variant-numeric: tabular-nums }
.numin input:focus { border-color: var(--accent); outline: none }
.numin span { color: var(--muted); font-size: 18px }
.err { color: #FF8A7A; font-size: 14px; min-height: 22px; margin-top: 8px }
.qnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; flex-wrap: wrap }
.check { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 12px; padding: 14px 16px; max-width: 62ch }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none }

/* Plan */
.plan { display: flex; flex-direction: column; gap: 44px; scroll-margin-top: 80px }
.plan-head { display: flex; flex-direction: column; gap: 12px }
.chips { display: flex; flex-wrap: wrap; gap: 6px }
.chip { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted) }
.chip.focus { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600 }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden }
.stat { padding: 14px 16px; background: var(--surface); min-width: 0 }
.stat .v { font-family: var(--head); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2 }
.stat .v small { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 500 }
.stat .l { font-size: 13px; color: var(--muted) }
.stat.today .v { color: var(--accent) }
.note { color: var(--muted); font-size: 14px; max-width: 72ch; margin: 0 }
.callout { background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; font-size: 14px }
.callout b { color: var(--accent) }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-block: 14px 18px }
.wd { text-align: center; padding: 8px 2px; border-radius: 8px; background: var(--surface); font-size: 13px }
.wd.on { background: var(--chip-on-bg); color: var(--chip-on-fg); font-weight: 600 }
.wd small { display: block; font-size: 11px; opacity: .75; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
@media (max-width: 480px) { .wd small { display: none } .wd { padding-block: 10px } }

.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px }
.day { background: var(--surface); border-radius: var(--r); overflow: hidden; min-width: 0 }
.day header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line) }
.day header .eyebrow { white-space: nowrap }
.ex { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; width: 100%; cursor: pointer }
.ex:hover { background: var(--accent-soft) }
.ex .vid { width: 44px }
.ex:last-child { border-bottom: 0 }
.vid { width: 56px; aspect-ratio: 1; max-width: 100%; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); border: 0; padding: 0; text-decoration: none }
.vid svg { width: 20px; height: 20px }
.vid.has { color: var(--accent) }
.ex .nm { font-weight: 600; line-height: 1.3; min-width: 0 }
.ex .nm small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px }
.ex .nm small b { color: var(--accent); font-weight: 600 }
.ex .rx { text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600 }
.ex .rx small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400 }
.finisher { padding: 10px 16px; font-size: 13.5px; background: var(--accent-soft) }

.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px }
.phase { background: var(--surface); border-radius: 12px; padding: 14px }
.phase .eyebrow { display: block; margin-bottom: 4px }
.phase p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted) }

.meals { display: flex; flex-direction: column; gap: 14px }
.mealday { background: var(--surface); border-radius: var(--r); overflow: hidden }
.mealday > header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 14px 16px; border-bottom: 1px solid var(--line) }
.meal { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: start }
.meal:last-child { border-bottom: 0 }
.meal .mt { font-weight: 600; font-size: 14px }
.meal ul { list-style: none; margin: 0; padding: 0; font-size: 14px; min-width: 0 }
.meal li { display: flex; justify-content: space-between; gap: 10px }
.meal li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap }
.meal .kc { font-size: 13px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600 }
.meal .kc small { display: block; color: var(--muted); font-weight: 400 }

.lockwrap { position: relative }
.lockwrap.locked .lockbody { filter: blur(6px); pointer-events: none; user-select: none; max-height: 420px; overflow: hidden }
.lockwrap .lockcover { display: none }
.lockwrap.locked .lockcover { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; flex-direction: column; gap: 12px; text-align: center; padding: 16px; background: linear-gradient(to bottom, transparent, var(--bg) 70%) }
.lockcover p { margin: 0; font-weight: 600; font-size: 16px }


/* Offer panel: always charcoal, so bright lime is allowed here */

/* Purchased plan */
.owned { background: var(--surface); border-radius: 20px; padding: 22px clamp(18px, 4vw, 30px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; scroll-margin-top: 80px }
.owned > div:first-child { min-width: 0; flex: 1 1 320px }
.owned h3 { margin: 4px 0 6px }
.owned .eyebrow { color: var(--accent) }
.owned .small { margin: 0 }
.offer-next { margin: 0; color: var(--fg); font-size: 15px; font-variant-numeric: tabular-nums }
.owned .offer-act { display: grid; gap: 6px; justify-items: center }
.owned .offer-act small, .offer-cancel { color: var(--muted); font-size: 12.5px }
.lockcard .offer-cancel { display: block; margin-top: 8px }
.confirm { flex: 1 1 100%; background: var(--surface-2); border-radius: 12px; padding: 14px 16px }
.confirm p { margin: 0 0 12px; font-size: 14px }
.confirm .row { display: flex; flex-wrap: wrap; gap: 10px }
.demo-link { flex: 1 1 100%; background: none; border: 0; padding: 0; margin-top: 10px; text-align: left; font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px }
.qleft { display: flex; gap: 10px; flex-wrap: wrap }
.stack .bar.step .k { color: var(--muted); font-size: 13px; min-width: 64px }
.stack a.bar.open { text-decoration: none }
footer { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 10px }
footer .logo { height: 22px }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block: 28px 32px }
  .stats { grid-template-columns: repeat(2, 1fr) }
  .stat:last-child { grid-column: 1 / -1 }
  .days { grid-template-columns: 1fr }
  .meal { grid-template-columns: 1fr auto }
  .meal .mt { grid-column: 1 / -1 }
  .week { gap: 4px }
  .wd { font-size: 12px }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important } }

/* ===== Motion layer: ambient light, glass, live dashboard ===== */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .8; will-change: transform }
.aurora i:nth-child(1) { width: 46vmax; height: 46vmax; right: -14vmax; top: 4vh; background: radial-gradient(circle, rgba(197,240,60,.22), transparent 65%); animation: drift1 26s ease-in-out infinite alternate }
.aurora i:nth-child(2) { width: 38vmax; height: 38vmax; left: -16vmax; top: 55vh; background: radial-gradient(circle, rgba(113,144,15,.30), transparent 65%); animation: drift2 32s ease-in-out infinite alternate }
.aurora i:nth-child(3) { width: 30vmax; height: 30vmax; right: 10vmax; top: 120vh; background: radial-gradient(circle, rgba(197,240,60,.12), transparent 65%); animation: drift1 38s ease-in-out infinite alternate-reverse }
@keyframes drift1 { to { transform: translate(-12vmax, 10vh) scale(1.15) rotate(25deg) } }
@keyframes drift2 { to { transform: translate(14vmax, -12vh) scale(.9) rotate(-20deg) } }
.top, main, footer { position: relative; z-index: 1 }
.top { z-index: 5; background: rgba(23, 27, 31, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--glass-line) }

.glass, .stack, .quiz, .day, .mealday, .phase, .stats, .owned {
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(120%); -webkit-backdrop-filter: blur(18px) saturate(120%);
}
.glass { position: relative; border-radius: 20px; overflow: hidden }
.glass::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 45%) }
.glass:hover::before { opacity: 1 }
.glass:hover { border-color: rgba(197, 240, 60, .18) }

/* Showcase */
.showcase { padding-block: 16px 48px }
.sc-head { margin-bottom: 18px }
.sc-head .tag { margin-bottom: 10px }
.sc-head p { margin: 0; color: var(--muted); font-size: 15px; max-width: 40ch }
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 5px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); margin-bottom: 14px }
.tag i, .chip-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent) }
.showcase h2 { font-size: clamp(26px, 3.8vw, 36px); font-weight: 600 }
.showcase h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent) }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px }
.bento .glass { padding: 18px; min-width: 0; display: flex; flex-direction: column; gap: 14px }
.lbl { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap }
.lbl span { color: var(--fg); opacity: .8 }
.foot { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: auto }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px }
.cal .col { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.cal b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-bottom: 2px }
.cal .today b { color: var(--fg) }
.cal .today b em { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite }
.cal .blk { display: block; height: 30px; border-radius: 6px; background: rgba(243,244,241,.10) }
.cal .blk.now { background: var(--accent); box-shadow: 0 0 24px rgba(197,240,60,.35) }
.cal .sk { display: block; height: 10px; border-radius: 3px; background: linear-gradient(90deg, rgba(243,244,241,.05), rgba(243,244,241,.12), rgba(243,244,241,.05)); background-size: 200% 100%; animation: shimmer 2.6s linear infinite }
.cal .sk.s { width: 60% }
.chip-live { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(197,240,60,.35); color: var(--fg) }
.chip-live i { animation: pulse 1.8s ease-in-out infinite }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8) } }
@keyframes shimmer { to { background-position: -200% 0 } }

.card-ring { align-items: center; text-align: center }
.card-ring .lbl { align-self: stretch }
.ring { width: 116px; height: 116px; transform: rotate(-90deg); max-width: 100% }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round }
.ring .track { stroke: rgba(243,244,241,.08) }
.ring .fill { stroke: var(--accent); stroke-dasharray: 314.16; stroke-dashoffset: 103.7; filter: drop-shadow(0 0 6px rgba(197,240,60,.45)); transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1) }
.ring-num { margin-top: -86px; margin-bottom: 44px; font-family: var(--head); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums }
.ring-num b { font-weight: 600 }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px }
.ticks li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; font-size: 14px }
.ticks li span { font-family: var(--mono); font-size: 12px; color: var(--muted) }
.ticks li i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line); position: relative; transition: background .3s, border-color .3s }
.ticks li.done i { background: var(--accent); border-color: var(--accent) }
.ticks li.done i::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px; border: solid #171B1F; border-width: 0 2px 2px 0; transform: rotate(45deg) }
.ticks li.done { color: var(--muted) }

.mac { display: grid; grid-template-columns: 92px 1fr 48px; align-items: center; gap: 10px; font-size: 13px }
.mac em { font-style: normal; font-family: var(--mono); font-size: 12px; text-align: right; color: var(--muted) }
.mac .bar { height: 6px; border-radius: 3px; background: rgba(243,244,241,.08); overflow: hidden }
.mac .bar i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 3px; background: var(--accent); transition: width 1.1s cubic-bezier(.2,.7,.2,1) }
.mac:nth-of-type(n+3) .bar i { background: rgba(243,244,241,.55) }
.mono { font-family: var(--mono) }

.streak { display: flex; align-items: baseline; gap: 10px }
.streak b { font-family: var(--head); font-size: 44px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums }
.streak span { color: var(--muted); font-size: 14px }
.layers { display: flex; flex-direction: column; align-items: center; gap: 5px }
.layers i { height: 7px; border-radius: 2px; background: rgba(243,244,241,.85) }
.layers i.h { width: 26%; background: var(--accent) }
.layers i:nth-child(2) { width: 100% } .layers i:nth-child(3) { width: 81% } .layers i:nth-child(4) { width: 67% } .layers i:nth-child(5) { width: 57% }
.sc-note { margin: 14px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted) }

/* play-on-view: the start state is only set by JS (.arm), so the page is complete without it */
.arm .ring .fill { stroke-dashoffset: 314.16 }
.arm .mac .bar i { width: 0 }
.arm .ticks li.done i { background: transparent; border-color: var(--line) }
.arm .ticks li.done i::after { opacity: 0 }
.play .ticks li.done i { transition-delay: calc(var(--d, 0) * 1s) }
.play .ticks li:nth-child(1) { --d: .3 } .play .ticks li:nth-child(2) { --d: .6 } .play .ticks li:nth-child(3) { --d: .9 }
.ticks li.done i::after { transition: opacity .2s; transition-delay: inherit }
.bento .glass { transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s }
.bento .glass:hover { transform: translateY(-3px) }

@media (max-width: 760px) {
  /* phones: a swipeable strip instead of a tall stack */
  .bento { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; scrollbar-width: none;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)) }
  .bento::-webkit-scrollbar { display: none }
  .bento .glass { flex: 0 0 78%; scroll-snap-align: center }
}
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none } }

/* ===== App view (after the plan exists) ===== */
.app { padding-block: 24px 8px; display: flex; flex-direction: column; gap: 22px }
.seg { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px) }
.seg button { border: 0; background: transparent; padding: 9px 18px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted) }
.seg button[aria-selected="true"] { background: var(--fg); color: var(--bg) }
.today { display: flex; flex-direction: column; gap: 18px }
.promo { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(197,240,60,.35); background: var(--accent-soft); font-size: 14px }
.promo b { color: var(--accent) }
.t-head { display: flex; justify-content: space-between; align-items: center; gap: 16px }
.t-head h2 { margin-top: 4px }
.mini-ring { position: relative; width: 64px; height: 64px; flex: none }
.mini-ring svg { width: 100%; height: 100%; transform: rotate(-90deg) }
.mini-ring circle { fill: none; stroke-width: 6; stroke-linecap: round }
.mini-ring .track { stroke: rgba(243,244,241,.10) }
.mini-ring .fill { stroke: var(--accent); stroke-dasharray: 163.4; transition: stroke-dashoffset .6s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 0 4px rgba(197,240,60,.4)) }
.mini-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 500 }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px }
.wk { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line) }
.wk span { font-size: 11.5px; color: var(--muted) }
.wk b { font-family: var(--head); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums }
.wk i { width: 6px; height: 6px; border-radius: 50% }
.wk.plan i { background: var(--muted) }
.wk.done i { background: var(--accent); box-shadow: 0 0 8px var(--accent) }
.wk.now { border-color: var(--accent); background: var(--accent-soft) }
.wk.past:not(.done) { opacity: .55 }
.t-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: start }
.tcard { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0 }
.tcard h3 { font-size: 20px; margin-top: 4px }
.tcard p { margin: 0 }
.t-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px }
.chk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column }
.chk li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding-block: 8px; border-top: 1px solid var(--glass-line) }
.meals-chk li { grid-template-columns: 30px 1fr auto }
.chk .vid { width: 44px }
.chk .nm { min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.3 }
.chk .nm em { font-style: normal; font-size: 11.5px; color: var(--accent); font-weight: 600 }
.chk .nm b { font-weight: 600 }
.chk .nm small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px }
.chk .rx { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; text-align: right; line-height: 1.3 }
.chk .rx small { font-size: 11px; opacity: .8 }
.tick { width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--line); background: transparent; display: grid; place-items: center; padding: 0; transition: background .2s, border-color .2s, transform .15s }
.tick:active { transform: scale(.9) }
.tick i { width: 7px; height: 12px; border: solid transparent; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px) }
.tick.on { background: var(--accent); border-color: var(--accent) }
.tick.on i { border-color: #171B1F }
.chk li:has(.tick.on) .nm { color: var(--muted) }
.chk li:has(.tick.on) .nm > b, .chk li:has(.tick.on) .nm-go, .chk li:has(.tick.on) .nm small:not(.coach) { text-decoration: line-through; text-decoration-color: rgba(154,163,172,.5) }
.done-chip { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; background: var(--accent); color: #171B1F }
.mbar { height: 8px; border-radius: 4px; background: rgba(243,244,241,.08); overflow: hidden }
.mbar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .5s cubic-bezier(.2,.7,.2,1) }
.lockcard { border-color: rgba(197,240,60,.3) }
.lockcard .btn { align-self: flex-start }
@media (max-width: 760px) {
  .t-grid { grid-template-columns: 1fr }
  .t-head h2 { font-size: 22px }
  .wk { padding: 8px 0 } .wk b { font-size: 15px }
  .seg { align-self: stretch } .seg button { flex: 1 }
}

/* English exercise name under the Georgian one */
.nm small.en { font-family: var(--mono); font-size: 11.5px; color: var(--muted); opacity: .85; letter-spacing: .01em }

.meal li.tip { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.45 }

/* Meal swap */
.swap { display: inline-flex; margin-top: 6px; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 500; cursor: pointer }
.swap:hover { color: var(--accent); border-color: var(--accent) }
.swap.sm { margin: 0 0 0 6px; padding: 0 7px; font-size: 13px; line-height: 20px; vertical-align: middle }
.meal .mt { display: flex; flex-direction: column; align-items: flex-start }

/* Meal rows: portion text may wrap instead of running under the calories */
.meal li span:last-child { white-space: normal !important; text-align: right; max-width: 42%; flex-shrink: 0 }
.meal ul { padding-right: 4px }
.meal li { min-width: 0 }
.meal li span:first-child { min-width: 0; overflow-wrap: anywhere }

/* App navigation: 4 sections. Desktop: segmented control on top; phones: a bottom tab bar like a native app. */
.seg button { display: inline-flex; align-items: center; gap: 7px }
.seg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0 }
.install { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--glass) }
.install h3 { margin: 4px 0 6px }
@media (max-width: 760px) {
  .in-app .app { padding-bottom: calc(84px + env(safe-area-inset-bottom)) }
  .in-app footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)) }
  .app .seg { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; align-self: auto; margin: 0; border-radius: 0; border-width: 1px 0 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(23, 27, 31, .86); gap: 0 }
  .app .seg button { flex: 1; flex-direction: column; gap: 3px; padding: 7px 2px 5px; font-size: 11.5px; font-weight: 600; border-radius: 10px }
  .app .seg button[aria-selected="true"] { background: transparent; color: var(--accent) }
  .app .seg svg { width: 22px; height: 22px }
}

/* Paywall sheet: opens over any tab when the person meets locked content */
body.pw-open { overflow: hidden }
.pw-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px }
.pw-back { position: absolute; inset: 0; background: rgba(10, 12, 14, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px) }
.pw { position: relative; width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--glass-line);
  border-radius: 22px; padding: 28px 24px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: pwIn .22s ease-out }
@keyframes pwIn { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
.pw { text-align: center }
.pw h2 { margin: 8px 0 4px; padding-inline: 34px; font-size: 28px; line-height: 1.2; letter-spacing: -.01em }
.pw h2 em { font-style: normal; color: var(--accent); white-space: nowrap }
.pw-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--fg); font-size: 22px; line-height: 1; cursor: pointer }
.pw-who { margin: 0 0 20px; font-size: 14px; color: var(--muted) }
.pw-goal { display: grid; gap: 2px; margin-bottom: 18px }
.pw-goal b { font-family: var(--head); font-size: 40px; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.02em }
.pw-goal span { font-size: 13px; color: var(--muted) }
.pw-weeks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; height: 60px }
.pw-track { position: relative; padding-top: 34px }
.pw-flag { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--accent); color: var(--btn-fg); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pw-flag::after { content: ""; position: absolute; right: 18px; bottom: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--accent) }
.pw-flag svg { width: 14px; height: 14px }
.pw-weeks i { display: block; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line) }
.pw-weeks i.now { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px rgba(197, 240, 60, .4) }
.pw-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--muted) }
.pw-axis span:first-child { color: var(--accent); font-weight: 600 }
.pw-push { margin: 14px 0 0; font-size: 14.5px; color: var(--fg) }
.pw-push b { color: var(--accent) }
.pw-what { margin: 10px 0 4px; font-size: 14px; color: var(--muted) }
.pw-what b { color: var(--fg); font-variant-numeric: tabular-nums }
.pw-foot { position: sticky; bottom: -22px; margin: 0 -24px -22px; padding: 14px 24px 18px; background: linear-gradient(to bottom, rgba(43, 50, 57, 0), var(--surface) 18px) }
.pw-cta { justify-content: space-between; padding-inline: 22px; min-height: 58px; font-size: 17px; box-shadow: 0 10px 30px rgba(197, 240, 60, .22) }
.pw-cta b { font-family: var(--head); font-size: 21px; font-variant-numeric: tabular-nums }
.pw-cta:disabled { box-shadow: none }
.pw-sub { margin: 10px 0 0; font-size: 12.5px; color: var(--muted) }
.pw-sub svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px }
.pw-note { margin: 6px 0 0; font-size: 12px; color: var(--muted) }
.upsell .btn { flex: none }
@media (max-width: 760px) {
  .pw-wrap { align-items: flex-end; padding: 0 }
  .pw { max-width: none; border-radius: 22px 22px 0 0; max-height: 94dvh; padding: 26px 18px 22px; animation-name: pwUp }
  .pw h2 { font-size: 25px }
  .pw-foot { margin-inline: -18px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)) }
  @keyframes pwUp { from { transform: translateY(40px); opacity: 0 } to { transform: none; opacity: 1 } }
}

/* Workout mode */
.go-sess { min-height: 54px; font-size: 16.5px }
.nm-go { all: unset; cursor: pointer; font: inherit; color: inherit }
.nm-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px }
.chk .nm small.coach { font-family: var(--mono); font-size: 12px; color: var(--fg); margin-top: 3px }
.chk .nm small.coach.up { color: var(--accent) }
.chk .nm small.coach.new { color: var(--muted) }
.chk .nm small.coach.done { color: var(--accent); text-decoration: none }
.sx-wrap { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; justify-content: center }
.sx { width: 100%; max-width: 560px; height: 100dvh; display: flex; flex-direction: column }
.sx-top { display: flex; align-items: center; gap: 14px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px; border-bottom: 1px solid var(--glass-line) }
.sx-top > div { flex: 1; min-width: 0 }
.sx-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--fg); font-size: 22px; line-height: 1; flex: none; cursor: pointer }
.sx-dots { display: flex; gap: 4px; margin-top: 6px }
.sx-dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface) }
.sx-dots i.ok { background: rgba(197, 240, 60, .45) }
.sx-dots i.on { background: var(--accent) }
.sx-body { flex: 1; overflow: auto; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 14px }
.sx-ex { display: flex; gap: 12px; align-items: center }
.sx-ex .vid { width: 64px; flex: none }
.sx-ex h2 { font-size: 21px; line-height: 1.25; margin: 0 }
.sx-ex small { color: var(--muted); font-size: 12.5px }
.sx-coach { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line) }
.sx-coach > b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-family: var(--mono); font-size: 13px }
.sx-coach.up { border-color: rgba(197, 240, 60, .45); background: linear-gradient(135deg, rgba(197, 240, 60, .12), rgba(197, 240, 60, .02)) }
.sx-coach.up > b { background: var(--accent); color: var(--btn-fg) }
.sx-coach p { margin: 0; font-size: 14px; line-height: 1.45 }
.sx-coach small { display: block; margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 12px }
.sx-hint { margin: -4px 0 0; font-size: 12.5px; color: var(--muted) }
.sx-sets { display: flex; flex-direction: column; gap: 8px }
.sx-h, .sx-row { display: grid; grid-template-columns: 26px 1fr 1fr 44px; gap: 8px; align-items: center }
.sx-sets:not(:has(.stp + .stp)) .sx-h, .sx-sets:not(:has(.stp + .stp)) .sx-row { grid-template-columns: 26px 1fr 44px }
.sx-h { font-size: 11.5px; color: var(--muted); padding-inline: 2px }
.sx-row { padding: 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid transparent }
.sx-row.cur { border-color: rgba(197, 240, 60, .5); background: var(--surface) }
.sx-row.done { opacity: .6 }
.sx-n { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: center }
.stp { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; background: var(--bg); border-radius: 10px; min-width: 0 }
.stp button { height: 40px; border: 0; background: transparent; color: var(--fg); font-size: 20px; cursor: pointer }
.stp input { width: 100%; min-width: 0; height: 40px; border: 0; background: transparent; color: var(--fg); text-align: center; font-family: var(--head); font-size: 18px; font-variant-numeric: tabular-nums }
.stp input:focus { outline: 2px solid var(--accent); border-radius: 8px }
.sx-row .tick { width: 44px; height: 44px; border-radius: 12px }
.sx-toast { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13.5px }
.sx-feel { padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(197, 240, 60, .35) }
.sx-feel p { margin: 0 0 8px; font-weight: 600 }
.sx-feel div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px }
.sx-feel button { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--fg); font-weight: 600; font-size: 13.5px; cursor: pointer }
.sx-feel button.on { border-color: var(--accent); background: var(--accent-soft) }
.sx-pain { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 138, 122, .1); color: #FFB4A8; font-size: 13.5px }
.sx-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center }
.sx-tools .swap.on { border-color: #FF8A7A; color: #FFB4A8 }
.sx-rest { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--glass-line); position: relative }
.sx-rest .bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: transparent }
.sx-rest .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear }
.sx-rest .tm { font-family: var(--head); font-size: 17px; font-variant-numeric: tabular-nums }
.sx-rest.go .tm { color: var(--accent) }
.sx-rest button { border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); border-radius: 10px; padding: 8px 12px; font-weight: 600; cursor: pointer }
.sx-nav { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--glass-line) }
.sx-nav .ghost { min-height: 52px; font-size: 18px }
.sx-nav .btn { min-height: 52px }
.sx-end .sx-body { justify-content: center; text-align: center; gap: 16px }
.sx-end h2 { font-size: 28px; margin: 0 }
.sx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px }
.sx-stats div { background: var(--surface); border-radius: 14px; padding: 14px 8px; display: grid; gap: 2px }
.sx-stats b { font-family: var(--head); font-size: 26px; color: var(--accent); font-variant-numeric: tabular-nums }
.sx-stats span { font-size: 12px; color: var(--muted) }
.sx-prs { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid rgba(197, 240, 60, .4); background: var(--accent-soft) }
.sx-prs span { font-size: 14px }
.day .go-sess { margin: 4px 0 10px }
.ex .nm small.coach { display: block; font-family: var(--mono); font-size: 12px; color: var(--fg); margin-top: 2px }
.ex .nm small.coach.up { color: var(--accent) }
.ex .nm small.coach.new { color: var(--muted) }
.ex .nm small.coach.done { color: var(--accent) }

/* Cycle (train tab), weekly check-in, coach rows in the paywall */
.cycle h2 { margin: 4px 0 6px }
.cyc { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; height: 64px; margin: 14px 0 10px; max-width: 420px }
.cyc i { display: block; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line) }
.cyc i.past { background: rgba(197, 240, 60, .3); border-color: rgba(197, 240, 60, .3) }
.cyc i.now { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(197, 240, 60, .35) }
.pw-coach { list-style: none; padding: 0; margin: 16px 0 4px; display: grid; gap: 8px; text-align: left }
.pw-coach li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px }
.pw-coach li:last-child { border-bottom: 0 }
.pw-coach b { color: var(--accent); font-weight: 600; white-space: nowrap }
.pw-coach span { color: var(--fg); text-align: right }
.pw-cta b { white-space: nowrap }
.pw-cta b small { font-size: 13px; font-weight: 600; opacity: .75 }
.wkcard { grid-column: 1 / -1; margin-bottom: 14px; border-color: rgba(197, 240, 60, .35) }
.wk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px }
.wk-stats div { background: var(--surface-2); border-radius: 12px; padding: 10px; display: grid; gap: 2px; text-align: center }
.wk-stats b { font-family: var(--head); font-size: 22px; color: var(--accent); font-variant-numeric: tabular-nums }
.wk-stats span { font-size: 12px; color: var(--muted) }
.wk-why { margin: 0; font-size: 14px; line-height: 1.5 }
.wk-why b { color: var(--accent) }
.wk-w { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600 }
.wk-w span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500 }
.wk-w input { width: 96px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--fg); text-align: center; font-family: var(--head); font-size: 20px }
.wkcard .btn, .wkcard .ghost { align-self: flex-start }

/* Progress tab */
.pg-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px }
.pg-tiles div { background: var(--surface); border-radius: 14px; padding: 14px 10px; display: grid; gap: 2px; text-align: center }
.pg-tiles b { font-family: var(--head); font-size: 26px; color: var(--fg); font-variant-numeric: tabular-nums }
.pg-tiles span { font-size: 12px; color: var(--muted) }
.pg-card { padding: 18px; margin-bottom: 14px }
.pg-card h3 { margin: 0 0 10px }
.chart { position: relative }
.chart svg { width: 100%; height: auto; display: block; touch-action: pan-y }
.chart .gl { stroke: var(--line); stroke-width: 1 }
.chart .ref { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4 }
.chart .yl, .chart .xl { fill: var(--muted); font: 11px var(--mono) }
.chart .yl { text-anchor: end }
.chart .xl { text-anchor: middle }
.chart .dl { fill: var(--fg); font: 600 13px var(--head) }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round }
.chart .mk { fill: var(--accent); stroke: var(--surface); stroke-width: 2 }
.chart .bp { fill: var(--accent); opacity: .55 }
.chart .bn { fill: var(--accent) }
.chart .b0 { fill: var(--line) }
.chart .xh { stroke: var(--muted); stroke-width: 1 }
.chart .tip { position: absolute; pointer-events: none; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: 12.5px; white-space: nowrap; color: var(--fg) }
.tbl { margin-top: 8px; font-size: 13px; color: var(--muted) }
.tbl summary { cursor: pointer }
.tbl table { width: 100%; border-collapse: collapse; margin-top: 6px }
.tbl th, .tbl td { text-align: left; padding: 4px 0; border-top: 1px solid var(--line); font-weight: 400; color: var(--fg) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
.pg-recs { list-style: none; margin: 0; padding: 0 }
.pg-recs > li { border-top: 1px solid var(--glass-line) }
.pg-recs summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; list-style: none }
.pg-recs summary::-webkit-details-marker { display: none }
.pg-recs .nm { font-weight: 600; font-size: 14.5px; min-width: 0 }
.pg-recs .nm small { display: block; font-weight: 400; color: var(--muted); font-size: 12px }
.pg-recs summary b { font-family: var(--mono); font-size: 13.5px; color: var(--accent); white-space: nowrap }
.pg-recs ol { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px }
.pg-recs ol li { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--muted) }
@media (max-width: 480px) { .pg-tiles { grid-template-columns: repeat(2, 1fr) } }

/* Owner test tools */
#qa { position: fixed; left: 12px; bottom: 12px; z-index: 70; font-size: 13px }
.qa-fab { border: 1px dashed var(--accent); background: var(--bg); color: var(--accent); border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 12px; cursor: pointer }
.qa-box { position: absolute; left: 0; bottom: 42px; width: min(320px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5) }
.qa-row { display: flex; justify-content: space-between; align-items: center; gap: 8px }
.qa-row button { border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); border-radius: 8px; padding: 6px 9px; font-weight: 600; font-size: 12.5px; cursor: pointer; margin-left: 4px }
.qa-box small { color: var(--muted); font-size: 11.5px }
@media (max-width: 760px) { #qa { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) } }

/* Exercise card */
.exc { text-align: left }
.exc h2 { font-size: 22px; margin: 4px 40px 10px 0; line-height: 1.25 }
.exc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px }
.exc-chips span { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--fg); border: 1px solid rgba(197, 240, 60, .25) }
.exc-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 14px; padding: 12px 6px; margin-bottom: 12px }
.exc-stats div { display: grid; gap: 2px; text-align: center }
.exc-stats div + div { border-left: 1px solid var(--line) }
.exc-stats b { font-family: var(--head); font-size: 20px; font-variant-numeric: tabular-nums }
.exc-stats span { font-size: 12px; color: var(--muted) }
.exc-coach { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); margin-bottom: 12px; font-size: 13px }
.exc-coach b { font-family: var(--mono); font-size: 14px }
.exc-coach.up b { color: var(--accent) }
.exc-coach span { color: var(--muted) }
.bm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--surface-2); border-radius: 14px; padding: 12px 8px 8px; max-width: 380px; margin: 0 auto }
.bm-fig { margin: 0; text-align: center }
.bm svg { width: 100%; height: auto; max-height: 340px; display: block }
.bm figcaption { font-size: 12px; color: var(--muted); margin-top: 4px }
.bm .b { fill: #343C44 }
.bm .h { fill: #2A3037 }
.bm .m { fill: #4A545F; transition: fill .2s }
.bm .m.s { fill: rgba(197, 240, 60, .45) }
.bm .m.p { fill: var(--accent) }
.exc-mus { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 12px }
.exc-mus span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(197, 240, 60, .12); color: var(--fg) }
.exc-mus span.p { background: var(--accent); color: var(--btn-fg); font-weight: 600 }
.exc-novid { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 0 0 12px }
.exc-novid svg, .exc-vid svg { width: 16px; height: 16px }
.exc-vid { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; text-decoration: none; color: var(--fg) }
.exc-foot { display: grid; grid-template-columns: 1fr auto; gap: 8px; position: sticky; bottom: -22px; margin: 0 -24px -22px; padding: 12px 24px 18px; background: linear-gradient(to bottom, rgba(43, 50, 57, 0), var(--surface) 14px) }
.exc-foot:empty { display: none }
.exc-foot .btn:only-child, .exc-foot .ghost:only-child { grid-column: 1 / -1 }
@media (max-width: 760px) { .exc-foot { margin-inline: -18px; padding: 10px 18px calc(14px + env(safe-area-inset-bottom, 0px)) } }
.wkcard .wk-note { display: block; margin-top: 8px; color: var(--muted); font-size: 13px }
/* quieter secondary info (declutter) */
.minis { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 2px 0; color: var(--muted); font-size: 13.5px }
.minis b { color: var(--fg); font-weight: 600 }
.tip { margin: 12px 2px 0; color: var(--muted); font-size: 13.5px }
.h-note { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 8px; font-family: var(--body, inherit) }
.swap.ic { width: 30px; height: 30px; padding: 0; display: inline-grid; place-items: center; font-size: 15px }
.wk-feel { border: 0; padding: 0; background: transparent; min-width: 0 }
.wk-feel p { margin: 0 0 8px; font-weight: 600 }
.wkcard.check { display: grid; gap: 16px; min-width: 0 }
.wkcard.check > * { min-width: 0 }
.wkcard.check .btn { justify-self: start }
.wkcard.check .wk-note { margin-top: -8px }
#food .stats { grid-template-columns: 1fr 1fr }
#food .stats .stat { grid-column: auto }
.meal .mt { flex-direction: row; align-items: center; gap: 8px }
.pw-goal { margin-top: 14px }
/* Workout mode, one set at a time (2026-11-20) */
.sx-focus { background: var(--surface-2); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: grid; gap: 16px }
.sx-fh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap }
.sx-fh b { font-family: var(--head); font-size: 15px }
.sx-fh span { font-size: 12.5px; color: var(--muted) }
.sx-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.sx-vals.one { grid-template-columns: 1fr }
.sx-val { background: var(--bg); border-radius: 16px; padding: 10px 8px 12px; display: grid; justify-items: center; gap: 2px; min-width: 0 }
.sx-val input { width: 100%; max-width: 150px; border: 0; background: transparent; color: var(--fg); text-align: center; font-family: var(--head); font-size: 46px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; padding: 0 }
.sx-val input:focus { outline: none; color: var(--accent) }
.sx-val span { font-size: 12px; color: var(--muted) }
.sx-val .pm { display: flex; gap: 10px; margin-top: 8px }
.sx-val .pm button { width: 46px; height: 38px; border-radius: 11px; border: 0; background: var(--surface); color: var(--fg); font-size: 22px; line-height: 1 }
.sx-val .pm button:active { transform: scale(.94) }
.sx-done { height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 17px }
.sx-done svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 3; fill: none }
.sx-pills { display: flex; gap: 8px }
.sx-pills button { flex: 1; min-width: 0; border-radius: 12px; padding: 8px 2px; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--muted); background: var(--surface-2); border: 1px solid transparent }
.sx-pills small { display: block; font-family: var(--body); font-size: 10.5px; margin-bottom: 2px }
.sx-pills .cur { border-color: var(--accent); color: var(--fg) }
.sx-pills .ok { background: rgba(197, 240, 60, .12); color: var(--accent) }
.sx-links { display: flex; gap: 18px; justify-content: center }
.sx-links button { border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 6px 2px }
.sx-links button.on { color: var(--accent) }
.sx-focus.rest { justify-items: center; gap: 10px }
.sx-ring { position: relative; width: 150px; height: 150px }
.sx-ring svg { width: 150px; height: 150px; transform: rotate(-90deg) }
.sx-ring circle { fill: none; stroke-width: 10 }
.sx-ring .bg { stroke: var(--surface) }
.sx-ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .25s linear }
.sx-ring .tm { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-size: 38px; font-weight: 700; font-variant-numeric: tabular-nums }
.sx-ring.go .tm { color: var(--accent) }
.sx-next { margin: 0; font-size: 14px; color: var(--muted); text-align: center }
.sx-next b { color: var(--fg) }
.sx-restb { display: flex; gap: 10px }
.sx-restb button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; background: transparent; color: var(--fg); font-size: 14px }
.sx-focus.fin { gap: 14px }
.sx-focus.fin .sx-feel { border: 0; padding: 0; background: transparent }
.sx-pr { margin: 0; text-align: center; color: var(--accent); font-size: 14px; font-weight: 600 }
.sx-rest-line { margin: 0; text-align: center; color: var(--muted); font-size: 13px }
.sx-rest-line button { border: 0; background: transparent; color: var(--fg); text-decoration: underline; font-size: 13px }
.sx-nav [data-sx="next"].ghost, .sx-nav [data-sx="finish"].ghost { font-size: 15px; font-family: var(--head); font-weight: 600 }
.exc-meta { margin: -4px 0 0; color: var(--muted); font-size: 13.5px }
@media (max-width: 760px) { #sample { display: none } }   /* the quiz right below asks the same question */
.owned h3.on { color: var(--accent) }
.wkcard.check .err:empty { display: none }
@media (min-width: 761px) { .quiz.pre { display: none } }   /* the same goal question is in the hero panel */
.cyc-praise { margin: -4px 0 12px; font-size: 16px; font-weight: 600; color: var(--accent) }
.cyc-weeks { display: grid; gap: 6px; margin: 0 0 14px }
.cyc-weeks .b { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; height: 78px }
.cyc-weeks i { display: block; border-radius: 6px 6px 3px 3px; background: var(--accent) }
.cyc-weeks i.part { background: rgba(197, 240, 60, .45) }
.cyc-weeks i.miss { background: var(--line) }
.cyc-weeks .l { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; text-align: center; font-family: var(--mono); font-size: 10.5px; color: var(--muted) }

/* ---------- Levels (badges from js/rankart.js; --tier = the level's colour) ---------- */
.rk-em { position: relative; display: block; aspect-ratio: 1; isolation: isolate }
.rk-em > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; z-index: 1 }
.rank-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 4px; font: 600 13px var(--head); color: var(--fg); cursor: pointer }
.rank-chip .rk-em { width: 28px }
/* rank names are English: Latin headline font, capitals */
.rk-name, .rk-top h3, .ru-n, .rk-row b { font-family: var(--head); text-transform: uppercase; letter-spacing: .05em }
.rk-top h3 { font-weight: 700 }
.rank-card { overflow: hidden; background: radial-gradient(90% 70% at 18% 20%, color-mix(in srgb, var(--tier) 16%, transparent), transparent 70%), var(--glass) }
.rk-top { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center }
.rk-top .rk-em { width: 132px }
.rk-top h3 { font-size: 26px; line-height: 1.1; margin: 2px 0 0 }
.rk-top h3 span { color: var(--tier) }
.rk-pts { margin: 6px 0 0; font-family: var(--mono); color: var(--muted); font-variant-numeric: tabular-nums }
.rk-pts b { color: var(--fg); font-size: 20px }
.rk-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 14px }
.rk-bar i { display: block; height: 100%; border-radius: 99px; background: var(--tier) }
.rk-next { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 0 0; font-size: 13.5px; color: var(--muted) }
.rk-next b { color: var(--fg); font-weight: 600 }
.rk-week { margin: 10px 0 0; font-size: 13.5px; color: var(--muted) }
.rk-week .p { color: var(--accent) } .rk-week .m { color: #FF9466 }
.rk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px }
.rk-acts .ghost { min-height: 40px; padding: 8px 14px; font-size: 14px }
.rk-all { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px }
.rk-all summary { cursor: pointer; color: var(--muted); font-size: 14px }
.rk-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 12px 0 8px }
.rk-row > div { display: grid; justify-items: center; text-align: center; gap: 2px; border-radius: 12px; padding: 6px 2px }
.rk-row > div.me { background: rgba(255, 255, 255, .05) }
.rk-row .rk-em { width: 100%; max-width: 72px }
.rk-row b { font: 600 11px var(--head) }
.rk-row small { font: 500 10.5px var(--mono); color: var(--muted) }
@media (max-width: 520px) { .rk-row { grid-template-columns: repeat(3, minmax(0, 1fr)) } .rk-top { grid-template-columns: 112px 1fr } .rk-top .rk-em { width: 112px } }
.sx-rank { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; text-align: left; background: var(--surface-2); border-radius: 16px; padding: 10px 14px; margin: 4px 0 8px }
.sx-rank .rk-em { width: 76px }
.sx-rank b { display: block; font: 700 22px var(--head); color: var(--accent) }
.sx-rank span { color: var(--muted); font-size: 14px }
.rankup { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(6, 8, 10, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: calc(24px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)) }
.ru-box { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px }
.ru-glow { position: absolute; width: 520px; height: 520px; max-width: 100vw; left: 50%; top: 140px; transform: translate(-50%, -50%); background: radial-gradient(circle, color-mix(in srgb, var(--tier) 30%, transparent), transparent 62%); pointer-events: none }
.ru-pulse { position: absolute; left: 50%; top: 140px; width: 230px; height: 230px; margin: -115px 0 0 -115px; border-radius: 50%; border: 2px solid var(--tier); opacity: 0; animation: ruPulse 1.4s .5s ease-out both; pointer-events: none }
.ru-box .rk-em { width: min(280px, 72vw); animation: ruPop .8s cubic-bezier(.2, 1.3, .3, 1) both }
.ru-eb { font: 600 13px var(--mono); color: var(--tier); letter-spacing: .14em; text-transform: uppercase; animation: ruFade .5s .5s both }
.ru-n { font: 700 40px/1.1 var(--head); animation: ruFade .5s .6s both }
.ru-row { display: flex; gap: 10px; margin-top: 14px; animation: ruFade .5s .75s both }
@keyframes ruPop { 0% { transform: scale(.6); opacity: 0; filter: brightness(2.4) } 60% { filter: brightness(1.4) } 100% { transform: scale(1); opacity: 1; filter: none } }
@keyframes ruPulse { 0% { transform: scale(.9); opacity: .9 } 100% { transform: scale(1.9); opacity: 0 } }
@keyframes ruFade { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .ru-box .rk-em, .ru-eb, .ru-n, .ru-row { animation: none } .ru-pulse { display: none } }
