/* VTLT book app. "Glass" style, values from maket/maket.css and the Glass design file. Day mode only. */
@font-face { font-family: Geist; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/geist-latin.woff2) format("woff2"); }
:root {
  --ink: #12181B; --t2: #465056; --t3: #59636A; --ok: #0A7A50; --card: #FFFFFF; --me: #12181B; --on-me: #FFFFFF;
  --hair: rgba(18, 24, 27, .1); --soft: rgba(18, 24, 27, .06);
  --glass: rgba(255, 255, 255, .72); --glass-line: rgba(255, 255, 255, .8); --glass-top: rgba(255, 255, 255, .95);
  --glass-shadow: 0 1px 1px rgba(18, 24, 27, .05), 0 16px 36px -16px rgba(18, 24, 27, .3);
  --clear: rgba(255, 255, 255, .6); --lift: 0 1px 1px rgba(18, 24, 27, .04), 0 10px 24px -14px rgba(18, 24, 27, .28);
  --field: radial-gradient(120% 70% at 92% -8%, #C9E6D9 0%, rgba(201, 230, 217, 0) 62%), radial-gradient(120% 75% at -10% 104%, #EDD9BE 0%, rgba(237, 217, 190, 0) 64%), #ECEFF0;
  --stop: #B3261E; --stop-soft: #F8EBEA;
  --ease: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--field) fixed; color: var(--ink); font-family: Geist, system-ui, sans-serif; font-size: 17px; line-height: 1.45; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
::selection { background: rgba(10, 122, 80, .25); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
.nojs { padding: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { max-width: 480px; height: 100vh; height: 100dvh; margin: 0 auto; }
.view { height: 100%; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }

/* Glass panels: top bar and bottom dock */
.g { background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-top), var(--glass-shadow); }
@media (prefers-reduced-transparency: reduce) { .g { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.bar { flex: none; display: flex; gap: 8px; padding: 6px 12px 10px; }
.x { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; }
.ttl { flex: 1; min-width: 0; height: 56px; padding: 0 20px; border-radius: 28px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ttl b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ttl span { flex: none; white-space: nowrap; color: var(--t2); }
.ic svg { display: block; width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.page { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 2px 16px 20px; }
.page > * { flex: none; min-width: 0; }
.page h1 { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.page h1:focus { outline: none; }
.page h2 { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.page h3 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.page p, .page li { overflow-wrap: break-word; }
.lede { color: var(--t2); text-wrap: pretty; }
.kicker { font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }
.brand { font-weight: 700; letter-spacing: .16em; font-size: 15px; }
.small { font-size: 13px; line-height: 1.3; color: var(--t3); }
.err { padding: 10px 14px; border-radius: 18px; background: var(--stop-soft); color: var(--stop); font-weight: 600; font-size: 15px; line-height: 1.3; }

/* Card base */
.wg { padding: 16px; border-radius: 24px; background: var(--card); box-shadow: var(--lift); display: grid; gap: 12px; }
.wg > small { font-size: 13px; line-height: 1.3; color: var(--t3); }
.more { min-height: 48px; margin: 0 -16px -16px; padding: 0 16px; border: 0; border-top: 1px solid var(--hair); background: none; width: calc(100% + 32px); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; text-align: left; text-decoration: none; border-radius: 0 0 24px 24px; }
.more .ic svg, .chev svg { width: 20px; height: 20px; color: var(--t3); }

/* Dock and buttons */
.dock { flex: none; margin: 0 8px 6px; padding: 10px; border-radius: 34px; display: flex; flex-direction: column; gap: 10px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn { min-height: 56px; padding: 0 16px; border: 0; border-radius: 28px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; text-decoration: none; text-align: center; transition: transform 120ms var(--ease); }
.btn:active { transform: scale(.97); }
.btn.sec { background: var(--clear); box-shadow: inset 0 0 0 1px var(--glass-line), 0 1px 2px rgba(18, 24, 27, .07); }
.btn.pri { background: var(--me); color: var(--on-me); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 20px -10px rgba(18, 24, 27, .6); }
.btn:disabled { opacity: .5; cursor: default; }
.btn .ic svg { width: 20px; height: 20px; }
.textbtn { align-self: center; min-height: 48px; padding: 0 16px; border: 0; background: none; color: var(--t2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Sign-in */
.cover { position: relative; overflow: hidden; border-radius: 14px; color: #fff; padding: 14px 12px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(90% 60% at 90% 0%, rgba(201, 230, 217, .55) 0%, rgba(201, 230, 217, 0) 70%), #12181B; box-shadow: 0 14px 24px -14px rgba(18, 24, 27, .6); }
.cover .rings { position: absolute; right: -34px; bottom: -34px; width: 150px; height: 150px; }
.cover .rings svg { width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; }
.cover small { position: relative; font-size: 13px; letter-spacing: .16em; font-weight: 700; }
.cover b { position: relative; font-size: 17px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cover.sm { width: 84px; height: 112px; padding: 10px 8px; }
.cover.md { width: 96px; height: 128px; }
.field { display: grid; gap: 6px; }
.field label { margin-left: 4px; font-size: 15px; font-weight: 600; }
.field input { width: 100%; height: 48px; padding: 0 16px; border: 0; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 42%, transparent); }
.field input::placeholder { color: var(--t3); opacity: 1; }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Home */
.home { grid-template-columns: 96px minmax(0, 1fr); align-items: center; column-gap: 14px; }
.home > div:not(.more) { display: grid; gap: 8px; min-width: 0; }
.home .more { grid-column: 1 / -1; }
.big { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.prog { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.prog i { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 13%, transparent); }
.prog i.done { background: var(--ok); }
.prog i.now { background: var(--ink); }
.secs { list-style: none; padding: 4px 16px; border-radius: 24px; background: var(--card); box-shadow: var(--lift); }
.secs a { display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; align-items: center; gap: 10px; min-height: 58px; padding: 6px 0; text-decoration: none; }
.secs.plain a { grid-template-columns: minmax(0, 1fr) 20px; min-height: 52px; }
.secs li + li { border-top: 1px solid var(--hair); }
.secs em { font-style: normal; font-weight: 600; color: var(--t3); }
.secs b { display: block; font-weight: 600; line-height: 1.25; }
.secs small { display: block; font-size: 13px; line-height: 1.3; color: var(--t3); }

/* Book text */
.page ul.list { list-style: none; padding: 0; display: grid; gap: 8px; }
.bullet { position: relative; padding-left: 20px; }
.bullet::before { content: ""; position: absolute; left: 4px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--t3); }
.bullet.num { padding-left: 0; }
.bullet.num::before { display: none; }
.body { color: var(--ink); }
p.small-text { font-size: 15px; line-height: 1.4; color: var(--t2); }
.page h2.head { margin-top: 6px; }
.callout { padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: inset 4px 0 0 var(--ink), var(--lift); display: grid; gap: 4px; }
.callout b { font-weight: 700; }
.callout p { color: var(--t2); }
.callout.stop { grid-template-columns: 22px minmax(0, 1fr); gap: 12px; background: var(--stop-soft); box-shadow: inset 4px 0 0 var(--stop); }
.callout.stop > div { display: grid; gap: 4px; }
.callout.stop .ic svg { width: 22px; height: 22px; color: var(--stop); }
.callout.stop b { color: var(--stop); }
.callout.stop p { color: var(--ink); }
.strip { display: flex; gap: 6px; }
.strip > div { flex: 1 1 0; min-width: 0; padding: 10px 8px; border-radius: 14px; background: var(--card); box-shadow: var(--lift); font-size: 13px; line-height: 1.3; color: var(--t2); overflow-wrap: anywhere; }
.strip > div b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.strip i { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-bottom: 4px; border-radius: 50%; background: var(--soft); color: var(--ink); font-style: normal; font-weight: 600; }
.toc { list-style: none; padding: 4px 16px; border-radius: 24px; background: var(--card); box-shadow: var(--lift); }
.toc a { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 10px; min-height: 58px; padding: 6px 0; text-decoration: none; }
.toc li + li { border-top: 1px solid var(--hair); }
.toc b { display: block; font-weight: 600; line-height: 1.25; }
.toc small { display: block; font-size: 13px; line-height: 1.3; color: var(--t3); }
.numbered { list-style: none; padding: 0; display: grid; gap: 8px; }
.numbered li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; align-items: start; }
.numbered em { font-style: normal; font-weight: 700; color: var(--t3); }
.weeks { display: grid; gap: 10px; }
.weeks .wg { gap: 6px; }
.weeks h3 { font-size: 17px; }
.diary { display: grid; gap: 10px; }
.diary .wg { gap: 4px; }
.diary ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.diary li { font-size: 15px; color: var(--t2); padding: 8px 0; border-bottom: 1px dashed var(--hair); }
.sources { list-style: none; padding: 0; display: grid; gap: 12px; }
.sources li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; font-size: 15px; line-height: 1.4; }
.sources a { color: var(--t2); overflow-wrap: anywhere; }

/* Exercise list and screen */
.secs a.exrow { grid-template-columns: 28px minmax(0, 1fr) 24px; }
.exrow b { display: block; font-weight: 600; line-height: 1.25; }
.exrow small { display: block; font-size: 13px; line-height: 1.3; color: var(--t3); }
.tick { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.tick svg { width: 14px; height: 14px; stroke-width: 3; }
.frame { display: block; width: 100%; height: clamp(150px, 26vh, 200px); border-radius: 24px; object-fit: contain; background: #FDFBF5; box-shadow: var(--lift); }
.lad > small { display: block; margin: 0 4px 6px; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt { min-height: 48px; padding: 0 4px; border: 0; border-radius: 18px; background: var(--card); box-shadow: var(--lift); font-weight: 600; }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink), var(--lift); }
.lvl { margin: 8px 4px 0; color: var(--t2); }
.lvl ol { padding-left: 22px; display: grid; gap: 4px; }
.line { color: var(--t2); }
.line b { color: var(--ink); font-weight: 600; }
.stopn { padding: 12px 14px; border-radius: 18px; background: var(--stop-soft); display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.4; }
.stopn .ic svg { width: 20px; height: 20px; color: var(--stop); }
.stopn b { color: var(--stop); font-weight: 700; }
.timer { display: grid; gap: 10px; padding: 12px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--lift); }
.timer .top { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.timer .top .ic svg { width: 22px; height: 22px; }
.timer output { margin-left: auto; font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.timer .pair .btn { min-height: 48px; border-radius: 24px; background: var(--soft); }
.nav { display: grid; gap: 8px; }
.rowbtn { min-height: 56px; padding: 8px 18px; border-radius: 18px; background: var(--card); box-shadow: var(--lift); display: flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; border: 0; width: 100%; text-align: left; }
.rowbtn span { min-width: 0; overflow-wrap: anywhere; }
.rowbtn .chev { margin-left: auto; flex: none; }

/* Week plan */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tab { min-height: 48px; border: 0; border-radius: 18px; background: var(--card); box-shadow: var(--lift); font-weight: 600; }
.tab[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink), var(--lift); }
.days { padding: 0 16px; border-radius: 24px; background: var(--card); box-shadow: var(--lift); }
.day { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 10px; min-height: 64px; padding: 8px 0; border: 0; background: none; text-align: left; }
.day + .day { border-top: 1px solid var(--hair); }
.day b { display: block; font-weight: 600; line-height: 1.25; }
.day small { display: block; font-size: 13px; line-height: 1.3; color: var(--t3); }
.day > span { font-size: 13px; color: var(--t2); }
.day .box { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 42%, transparent); display: grid; place-items: center; }
.day[aria-pressed="true"] .box { background: var(--ok); box-shadow: none; color: #fff; }
.day .box svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.day[aria-pressed="true"] .box svg { opacity: 1; }
.day[aria-pressed="true"] b { color: var(--ok); }
.free { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 64px; padding: 8px 0; }
.free + .free { border-top: 1px solid var(--hair); }
.free b { display: block; font-weight: 600; line-height: 1.25; }
.free small { display: block; font-size: 13px; line-height: 1.3; color: var(--t3); }
.free .acts { display: flex; gap: 6px; }
.mini { min-width: 64px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 22px; background: var(--soft); font-weight: 600; }
.mini.on { background: var(--me); color: var(--on-me); }
.mini:disabled { opacity: .45; cursor: default; }
.legend { display: grid; gap: 4px; }
.legend p { color: var(--t2); }
.legend b { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
@media (max-width: 340px) {
  .page { padding-left: 12px; padding-right: 12px; }
  .bar { padding-left: 8px; padding-right: 8px; }
  .ttl { padding: 0 14px; }
  .strip { flex-direction: column; }
}
