/* Notice Period — client area */
.app-body { background: var(--paper); font-size: 16px; overscroll-behavior-y: none; }
.app { min-height: 100dvh; }
.side { display: none; }
.main { padding: 0 16px calc(96px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 22px 4px 18px; }
html.embedded .top { padding-top: 58px; }
.top-sub { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.top h1 { font-size: 32px; line-height: 1.05; margin-top: 2px; outline: none; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--hi); display: grid; place-items: center; font-weight: 700; font-size: 14.5px; text-decoration: none; transition: transform 140ms var(--ease-out); }
.avatar:active { transform: scale(0.94); }
.avatar.big { width: 56px; height: 56px; font-size: 18px; }
.view.enter { animation: view-in 240ms var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.narrow { max-width: 640px; }

/* Tab bar */
.tabs { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border-top: 1px solid var(--line-2); --i: 0; }
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; min-height: 54px; text-decoration: none; color: var(--ink-3); font-size: 11.5px; font-weight: 650; -webkit-tap-highlight-color: transparent; transition: color 180ms ease, transform 140ms var(--ease-out); }
.tab:active { transform: scale(0.94); }
.tab.on { color: var(--blue); }
.tab.dot::after, .side-nav a.dot::after { content: ""; position: absolute; top: 6px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--stamp); box-shadow: 0 0 0 2px #fff; }
.tab-pill { position: absolute; top: 6px; left: 8px; width: calc((100% - 16px) / 5); height: 36px; pointer-events: none; transform: translateX(calc(var(--i) * 100%)); transition: transform 320ms var(--ease-out); }
.tab-pill::before { content: ""; position: absolute; left: 50%; top: 2px; width: 56px; height: 32px; margin-left: -28px; border-radius: 16px; background: var(--blue-soft); }

/* Cards and blocks */
.card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-1); }
.block { margin-top: 26px; }
.block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px; margin-bottom: 10px; }
.block-h h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.block-h a { font-size: 14.5px; font-weight: 650; color: var(--blue); text-decoration: none; padding: 6px 0; }
.count { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.chat-note { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 12px; }
.empty { text-align: center; color: var(--ink-2); padding: 28px 16px; }

/* Today */
.hero-card { background: var(--blue); color: #fff; padding: 20px; position: relative; overflow: hidden; box-shadow: 0 18px 34px -18px rgba(36, 64, 230, 0.75); }
.hero-card::before { content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(238, 242, 75, 0.34), transparent 68%); }
.hc-top { display: flex; align-items: center; gap: 16px; position: relative; }
.hc-k { font-size: 13.5px; font-weight: 650; color: rgba(255, 255, 255, 0.8); }
.hc-k.dark { color: var(--ink-3); }
.hero-card h2 { font-size: 28px; margin-top: 2px; }
.hc-b { margin-top: 14px; color: rgba(255, 255, 255, 0.88); font-size: 15.5px; line-height: 1.45; position: relative; }
.hc-btn { margin-top: 16px; width: 100%; background: #fff; color: var(--ink); justify-content: flex-start; padding: 0 16px; min-height: 52px; font-size: 15.5px; }
.hc-btn span { overflow: hidden; text-overflow: ellipsis; }
.hc-btn svg { color: var(--blue); flex: none; }
.hc-done { margin-top: 14px; font-weight: 650; color: var(--hi); }
.ring { flex: none; }
.ring-v { transition: stroke-dashoffset 700ms var(--ease-out); }

.tasks { padding: 4px 16px; }
.task { display: flex; align-items: center; gap: 14px; padding: 13px 0; }
.task + .task { border-top: 1px solid var(--line-2); }
.task b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; transition: color 200ms ease; }
.task small { color: var(--ink-3); font-size: 13.5px; }
.task.done b { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(19, 26, 51, 0.3); }
.task > div { flex: 1; min-width: 0; }
.task-go { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-3); margin-right: -10px; }

.ck { flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px #b9bdcc; display: grid; place-items: center; position: relative; transition: background-color 180ms ease, box-shadow 180ms ease, transform 140ms var(--ease-out); }
.ck::after { content: ""; position: absolute; inset: -9px; }
.ck:active { transform: scale(0.88); }
.ck .tk { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 260ms var(--ease-out) 60ms; }
.ck.on { background: var(--green); box-shadow: none; }
.ck.on .tk { stroke-dashoffset: 0; }
.ck.locked { box-shadow: none; background: var(--paper-2); color: var(--ink-3); }

.strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.mini { position: relative; aspect-ratio: 5 / 7; min-width: 0; border-radius: 3px 3px 7px 7px; background: #fff; box-shadow: var(--shadow-1); display: grid; place-items: center; padding-top: 6px; text-decoration: none; font-family: var(--display); font-weight: 750; font-size: 13.5px; color: var(--ink-3); transition: transform 160ms var(--ease-out); }
.mini::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: 3px 3px 0 0; background: #c5c8d6; }
.mini:active { transform: scale(0.92); }
.mini.done { color: var(--green); }
.mini.done::before { background: var(--green); }
.mini.done i { position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.mini.open { color: var(--ink); } .mini.open::before { background: var(--amber); }
.mini.now { background: var(--hi); color: var(--ink); transform: translateY(-4px) rotate(-3deg); box-shadow: var(--shadow-2); }
.mini.now::before { background: var(--ink); }

.session { display: flex; gap: 16px; padding: 16px; align-items: center; }
.session + .session { margin-top: 10px; }
.cal { flex: none; width: 60px; border-radius: 4px 4px 10px 10px; overflow: hidden; text-align: center; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.cal span { display: block; background: var(--stamp); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 0; }
.cal.alt span { background: var(--blue); }
.cal b { display: block; font-size: 26px; padding: 5px 0 7px; }
.session-t { min-width: 0; flex: 1; }
.session-t b { display: block; font-size: 16px; }
.session-t small { display: block; color: var(--ink-2); font-size: 14px; margin: 2px 0 10px; line-height: 1.35; }
.nudge { display: grid; grid-template-columns: 1fr 20px; gap: 4px 8px; padding: 16px; text-decoration: none; align-items: center; transition: transform 140ms var(--ease-out); }
.nudge:active { transform: scale(0.985); }
.nudge .chip { justify-self: start; grid-column: 1 / -1; margin-bottom: 4px; }
.nudge b { font-size: 16.5px; grid-column: 1; }
.nudge small { color: var(--ink-3); font-size: 13.5px; grid-column: 1; }
.nudge svg { grid-column: 2; grid-row: 2 / span 2; color: var(--ink-3); }

/* Programme */
.prog-top { padding: 18px; }
.pt-row { display: flex; align-items: center; gap: 14px; }
.pt-row b { font-size: 46px; line-height: 1; font-variation-settings: "wdth" 78; }
.pt-row span { font-weight: 650; line-height: 1.3; }
.pt-row small { color: var(--ink-3); font-weight: 500; font-size: 13.5px; }
.bar { position: relative; height: 10px; border-radius: 5px; background: var(--paper-2); margin-top: 16px; }
.bar i { position: absolute; inset: 0; border-radius: 5px; background: linear-gradient(90deg, var(--blue), #4a63ff); transform-origin: left; transition: transform 600ms var(--ease-out); }
.bar em { position: absolute; top: -4px; width: 3px; height: 18px; border-radius: 2px; background: var(--ink); }
.bar.light { margin-top: 12px; }
.bar-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.phase { margin-top: 28px; }
.phase-h { padding: 0 4px; margin-bottom: 10px; }
.phase-h h2 { font-family: var(--display); font-variation-settings: "wdth" 84; font-size: 22px; letter-spacing: -0.02em; }
.phase-h p { color: var(--ink-3); font-size: 14.5px; }
.tl { position: relative; display: grid; gap: 8px; }
.wk { background: #fff; border-radius: 18px; box-shadow: var(--shadow-1); transition: box-shadow 200ms ease; }
.wk.locked { background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px var(--line-2); }
.wk-h { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 14px; text-align: left; min-height: 68px; border-radius: 18px; }
.wk-n { flex: none; position: relative; width: 38px; height: 46px; border-radius: 3px 3px 8px 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; padding-top: 7px; font-family: var(--display); font-weight: 750; font-size: 18px; }
.wk-n::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; border-radius: 3px 3px 0 0; background: #c5c8d6; }
.wk.done .wk-n::before { background: var(--green); }
.wk.now .wk-n { background: var(--hi); box-shadow: none; transform: rotate(-4deg); }
.wk.now .wk-n::before { background: var(--ink); }
.wk.locked .wk-n { color: var(--ink-3); }
.wk-t { flex: 1; min-width: 0; }
.wk-t b { display: block; font-size: 16.5px; line-height: 1.25; }
.wk-t small { color: var(--ink-3); font-size: 13.5px; }
.wk.done .wk-t small { color: var(--green); font-weight: 650; }
.wk.now .wk-t small { color: var(--blue); font-weight: 650; }
.wk-chev { color: var(--ink-3); transition: transform 220ms var(--ease-out); display: grid; }
.wk.open .wk-chev { transform: rotate(90deg); }
.wk-lock { color: var(--ink-3); display: grid; }
.wk-b { padding: 0 14px 12px; animation: view-in 240ms var(--ease-out) both; }
.wk-b > p { color: var(--ink-2); font-size: 15px; padding: 0 2px 10px; }
.lesson { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line-2); padding: 4px 2px; }
.lesson-b { flex: 1; text-align: left; padding: 10px 0; min-height: 52px; }
.lesson-b b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.lesson-b small { color: var(--ink-3); font-size: 13.5px; }
.lesson.done .lesson-b b { color: var(--ink-2); }
.lesson-b[disabled] { cursor: default; }
.lesson-b[disabled] b { color: var(--ink-3); }

/* Check-in form */
.form { padding: 20px 18px; }
.form-intro { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; }
.fld { margin-bottom: 22px; }
.fld > label, .fld > .lab { display: flex; justify-content: space-between; align-items: baseline; font-weight: 650; font-size: 15.5px; margin-bottom: 10px; }
.fld > label output { font-family: var(--display); font-size: 22px; font-weight: 750; color: var(--blue); }
.fld > small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 6px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 48px; height: 48px; border-radius: 14px; background: var(--paper); font-size: 24px; font-weight: 500; line-height: 1; transition: transform 120ms var(--ease-out), background-color 150ms ease; }
.stepper button:active { transform: scale(0.92); background: var(--paper-2); }
.stepper output { min-width: 56px; text-align: center; font-family: var(--display); font-size: 28px; font-weight: 750; }
.stepper span { color: var(--ink-3); font-size: 14.5px; margin-left: 6px; }
.money { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.money:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.money span { font-weight: 700; color: var(--ink-3); font-size: 18px; }
.money input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; min-height: 50px; font-size: 20px; font-weight: 650; padding: 0 8px; }
.form textarea, .composer textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 16px; resize: none; background: #fff; transition: border-color 150ms ease, box-shadow 150ms ease; }
.form textarea:focus, .composer textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; --p: 50%; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--blue) var(--p), var(--paper-2) var(--p)); }
.range::-moz-range-track { height: 10px; border-radius: 5px; background: var(--paper-2); }
.range::-moz-range-progress { height: 10px; border-radius: 5px; background: var(--blue); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--blue), 0 4px 10px rgba(19, 26, 51, 0.25); transition: transform 140ms var(--ease-out); }
.range::-moz-range-thumb { width: 28px; height: 28px; border: 2px solid var(--blue); border-radius: 50%; background: #fff; }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range-l { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-top: -4px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 42px; padding: 0 14px; border-radius: 21px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 14.5px; background: #fff; transition: transform 120ms var(--ease-out), background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.pill:active { transform: scale(0.95); }
.pill.on { background: var(--ink); color: #fff; box-shadow: none; }
.filter { margin-bottom: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px; }
.filter::-webkit-scrollbar { display: none; }
.filter .pill { flex: none; }

.building { padding: 44px 20px; text-align: center; display: grid; gap: 4px; justify-items: center; }
.building small { color: var(--ink-3); }
.build-dots { display: flex; gap: 6px; margin-bottom: 12px; }
.build-dots i, .typing i { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); animation: bob 900ms ease-in-out infinite; }
.build-dots i:nth-child(2), .typing i:nth-child(2) { animation-delay: 120ms; }
.build-dots i:nth-child(3), .typing i:nth-child(3) { animation-delay: 240ms; }
@keyframes bob { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

.sum { padding: 20px 18px; }
.sum.fresh > * { animation: view-in 380ms var(--ease-out) both; }
.sum.fresh > *:nth-child(2) { animation-delay: 60ms; } .sum.fresh > *:nth-child(3) { animation-delay: 120ms; } .sum.fresh > *:nth-child(4) { animation-delay: 180ms; } .sum.fresh > *:nth-child(5) { animation-delay: 240ms; } .sum.fresh > *:nth-child(n+6) { animation-delay: 300ms; }
.sum-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sum-h .auto { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; color: var(--blue); }
.sum h2 { font-size: 27px; margin: 12px 0 14px; text-wrap: balance; }
.sum-l li { position: relative; padding: 9px 0 9px 20px; border-top: 1px solid var(--line-2); font-size: 15.5px; line-height: 1.4; }
.sum-l li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.sum-win { margin-top: 10px; background: var(--hi-soft); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.chart { margin: 18px 0 4px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.caxis { stroke: var(--line); stroke-width: 1; }
.cbar { fill: var(--blue-soft); transform-box: fill-box; transform-origin: bottom; animation: bar-up 520ms var(--ease-out) both; }
@keyframes bar-up { from { transform: scaleY(0.2); opacity: 0; } }
.cnum { font-size: 11px; font-weight: 700; fill: var(--blue-deep); font-family: var(--body); }
.cline { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cdot { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.clab { font-size: 11px; fill: var(--ink-3); font-family: var(--body); font-weight: 600; }
.chart figcaption { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.chart figcaption i { display: inline-block; vertical-align: middle; margin-right: 6px; }
.k1 { width: 12px; height: 12px; border-radius: 3px; background: var(--blue-soft); box-shadow: inset 0 0 0 1px #b9c3ff; }
.k2 { width: 16px; height: 3px; border-radius: 2px; background: var(--ink); }
.focus { margin-top: 16px; border-radius: 14px; background: var(--ink); color: #fff; padding: 14px 16px; }
.focus b { font-size: 13.5px; color: var(--hi); }
.focus p { font-size: 15.5px; line-height: 1.45; margin-top: 4px; }
.sum-foot { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; }
.sum-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hist { padding: 2px 16px; }
.hist details { border-top: 1px solid var(--line-2); border-bottom: 0; }
.hist details:first-child { border-top: 0; }
.hist summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; min-height: 52px; }
.hist summary::-webkit-details-marker { display: none; }
.hist-w { font-weight: 650; }
.hist .sum-win { margin: 8px 0 14px; }

/* Messages */
.chat { display: flex; flex-direction: column; }
.thread { padding: 14px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100dvh - 300px - var(--note-h)); min-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.day { text-align: center; font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin: 6px 0 2px; }
.msg { max-width: 84%; }
.msg p { padding: 10px 14px; border-radius: 18px; font-size: 15.5px; line-height: 1.4; overflow-wrap: anywhere; }
.msg .who { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--ink-3); margin: 0 0 3px 12px; }
.msg.coach p { background: var(--paper); border-bottom-left-radius: 6px; }
.msg.auto p { background: var(--blue-soft); color: #14217a; border-bottom-left-radius: 6px; }
.msg.auto .who { color: var(--blue); }
.msg.me { align-self: flex-end; }
.msg.me p { background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg:last-of-type:not(.typing), .msg.typing:not([hidden]) { animation: view-in 260ms var(--ease-out) both; }
.typing p { display: flex; gap: 5px; padding: 14px; }
.typing[hidden] { display: none; }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.composer textarea { border-radius: 24px; min-height: 48px; padding: 11px 16px; }
.send { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; transition: transform 140ms var(--ease-out); }
.send:active { transform: scale(0.92); }

/* Library */
.res { padding: 2px 6px; }
.res li + li { border-top: 1px solid var(--line-2); }
.res-b { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 10px; text-align: left; min-height: 64px; color: var(--ink-3); border-radius: 14px; transition: background-color 150ms ease; }
.res-b:active { background: var(--paper); }
.res-t { flex: 1; min-width: 0; color: var(--ink); }
.res-t b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.res-t small { color: var(--ink-3); font-size: 13.5px; }
.res-b[data-locked] .res-t b { color: var(--ink-3); }
.kind { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 750; background: var(--blue-soft); color: var(--blue-deep); }
.k-spreadsheet { background: var(--green-soft); color: var(--green); }
.k-pdf { background: var(--stamp-soft); color: #a92a17; }
.k-audio, .k-replay { background: var(--hi-soft); color: #5a5c00; }

/* Booking */
.book { padding: 16px; }
.daypick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.day-b { border-radius: 14px; padding: 8px 0 10px; display: grid; gap: 0; background: var(--paper); min-height: 62px; transition: transform 120ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
.day-b span { font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.day-b b { font-family: var(--display); font-size: 22px; font-weight: 750; }
.day-b:active { transform: scale(0.95); }
.day-b.on { background: var(--ink); color: #fff; } .day-b.on span { color: rgba(255, 255, 255, 0.72); }
.slotgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.slot-b { min-height: 48px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 650; font-variant-numeric: tabular-nums; transition: transform 120ms var(--ease-out), background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.slot-b:active { transform: scale(0.95); }
.slot-b.on { background: var(--blue); color: #fff; box-shadow: none; }
.slot-b[disabled] { box-shadow: none; background: var(--paper); color: #9da2b6; text-decoration: line-through; cursor: default; }
.booked { position: relative; padding: 22px 18px; }
.booked .stamp { position: absolute; right: 14px; top: 14px; font-size: 16px; }
.bk-when { font-size: 28px; max-width: 9ch; }
.booked p + p { color: var(--ink-2); font-size: 15px; margin-top: 10px; }

/* Billing */
.plan { padding: 20px 18px; background: var(--ink); color: #fff; }
.plan-h { display: flex; justify-content: space-between; align-items: flex-start; }
.plan h2 { font-size: 34px; }
.plan-p { margin-top: 12px; color: rgba(255, 255, 255, 0.8); }
.plan-p b { color: #fff; font-size: 19px; }
.plan .bar { background: rgba(255, 255, 255, 0.16); }
.plan .bar i { background: var(--hi); }
.plan-n { font-size: 14px; color: rgba(255, 255, 255, 0.76); margin-top: 10px; }
.pays { padding: 2px 16px; }
.pays li { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-height: 64px; }
.pays li + li { border-top: 1px solid var(--line-2); }
.pays div { flex: 1; }
.pays b { display: block; font-size: 15.5px; }
.pays small { color: var(--ink-3); font-size: 13.5px; }
.pays span.num { font-weight: 700; }
.mem { padding: 4px 16px; }
.mem-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.mem-row.sub { border-top: 1px solid var(--line-2); animation: view-in 240ms var(--ease-out) both; }
.mem-row div { flex: 1; }
.mem-row b { display: block; font-size: 16px; }
.mem-row small { color: var(--ink-2); font-size: 14px; line-height: 1.35; display: block; margin-top: 2px; }
.switch { flex: none; width: 54px; height: 32px; border-radius: 16px; background: #c5c8d6; position: relative; transition: background-color 200ms ease; }
.switch::after { content: ""; position: absolute; inset: -6px; }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(19, 26, 51, 0.3); transition: transform 220ms var(--ease-out); }
.switch.on { background: var(--green); }
.switch.on i { transform: translateX(22px); }

/* More */
.me { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 14px; }
.me b { display: block; font-size: 17px; } .me small { color: var(--ink-3); font-size: 13.5px; }
.menu { padding: 2px 6px; }
.menu li + li { border-top: 1px solid var(--line-2); }
.menu a { display: flex; align-items: center; gap: 14px; padding: 12px 10px; min-height: 62px; text-decoration: none; color: var(--ink-3); border-radius: 14px; }
.menu a:active { background: var(--paper); }
.menu a > svg:first-child { color: var(--blue); flex: none; }
.menu span { flex: 1; color: var(--ink); }
.menu b { display: block; font-size: 16px; font-weight: 600; } .menu small { color: var(--ink-3); font-size: 13.5px; }
.reset-b { margin-top: 28px; }
.reset-b.armed, .reset.armed { color: #a92a17 !important; box-shadow: inset 0 0 0 1.5px var(--stamp) !important; }

/* Bottom sheet */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(19, 26, 51, 0.5); opacity: 0; transition: opacity 240ms ease; }
.scrim.on { opacity: 1; }
.bsheet { position: fixed; z-index: 101; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 26px 26px 0 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; transform: translateY(100%); transition: transform 360ms var(--ease-drawer); box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.25); }
.bsheet.on { transform: none; }
.bsheet[hidden], .scrim[hidden] { display: none; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: #d0d3de; margin: 0 auto 16px; }
.bsheet h2 { font-size: 26px; margin: 4px 0 16px; }
.player { aspect-ratio: 16 / 8; border-radius: 16px; background: linear-gradient(135deg, var(--ink), #27306a); color: #fff; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 12px; }
.player span { width: 56px; height: 56px; border-radius: 50%; background: var(--hi); color: var(--ink); display: grid; place-items: center; }
.player small { color: rgba(255, 255, 255, 0.76); font-size: 13px; }
.bs-p { color: var(--ink-2); font-size: 15px; margin: 14px 0 18px; }

/* ---------- Desktop ---------- */
@media (min-width: 980px) {
  .app { display: grid; grid-template-columns: 264px 1fr; }
  .tabs { display: none; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; padding: 28px 18px 84px; border-right: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.5); }
  .side .logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-variation-settings: "wdth" 84; font-weight: 750; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; padding: 0 10px 28px; }
  .side-nav { display: grid; gap: 2px; }
  .side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 46px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15.5px; color: var(--ink-2); transition: background-color 150ms ease, color 150ms ease; }
  .side-nav a svg { width: 21px; height: 21px; }
  .side-nav a.on { background: var(--ink); color: #fff; }
  .side-nav a.dot::after { left: auto; right: 14px; top: 50%; margin-top: -4px; box-shadow: none; }
  .side-foot { margin-top: auto; display: grid; gap: 2px; padding: 0 12px; }
  .side-foot a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; padding: 7px 0; font-weight: 550; }
  .side-foot .reset { margin-top: 12px; text-align: center; min-height: 42px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 650; font-size: 14.5px; color: var(--ink-2); }
  .main { max-width: 1120px; width: 100%; margin: 0; padding: 20px 48px 96px; }
  .top { padding: 28px 0 28px; }
  .top h1 { font-size: 44px; }
  .grid-today { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
  .grid-today .col:last-child > .block:first-child { margin-top: 0; }
  .hero-card { padding: 28px; } .hero-card h2 { font-size: 36px; } .hc-btn { width: auto; padding-right: 22px; }
  .view[data-route="programme"] { max-width: 760px; }
  .bsheet { bottom: auto; top: 50%; left: 50%; right: auto; width: 520px; border-radius: 26px; padding: 26px 28px 28px; transform: translate(-50%, -46%) scale(0.97); opacity: 0; transition: transform 240ms var(--ease-out), opacity 200ms ease; }
  .bsheet.on { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .grab { display: none; }
  .thread { max-height: calc(100dvh - 330px); }
  .toast-wrap { bottom: 32px; }
  .app-body .demo-note { max-width: 232px; border-radius: 12px; }
  @media (hover: hover) and (pointer: fine) {
    .side-nav a:not(.on):hover { background: rgba(19, 26, 51, 0.06); color: var(--ink); }
    .side-foot a:hover { color: var(--ink); }
    .wk:not(.locked):hover { box-shadow: var(--shadow-2); }
    .res-b:hover, .menu a:hover { background: var(--paper); }
    .pill:not(.on):hover, .slot-b:not(.on):not([disabled]):hover, .day-b:not(.on):hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
  }
}
