/* ==========================================================
   Tai Chi Expert - ink-wash morning: fog, pine, one red seal
   ========================================================== */

:root {
  --fog: #EBF0EE;
  --paper: #F8FAF9;
  --ink: #14211F;
  --pine: #1D3832;
  --pine-2: #27493F;
  --jade: #2C6E5D;
  --mist: #D5DFDB;
  --line: #BFCDC8;
  --muted: #4F5F5B;
  --seal: #B3322A;
  --danger: #9B2B24;

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--jade); text-underline-offset: 3px; }
a:hover { color: var(--pine); }
:focus-visible { outline: 3px solid var(--jade); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.4vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; line-height: 1.6; max-width: 34em; color: #E3ECE9; }
.lead--dark { color: var(--muted); }
.fine { font-size: .875rem; color: var(--muted); max-width: 46em; }
.fine--wide { max-width: 60em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }
.wrap--form { max-width: 520px; }
.wrap--wide { max-width: 640px; }
.wrap--player { max-width: 960px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--tint { background: var(--paper); border-block: 1px solid var(--line); }
.section--pine { background: var(--pine); color: #fff; }
.section--mist { position: relative; isolation: isolate; }
.section--mist::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(20,48,42,.78), rgba(20,48,42,.9)), var(--mist, none) center / cover; }
.section__title { max-width: 16em; margin-bottom: 1em; }
.section__title--light { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(235, 240, 238, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin: 0; }
.brand__mark { width: 40px; height: 40px; flex: none; display: block; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a:not(.btn):hover { color: var(--jade); text-decoration: underline; }
.inline-form { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; font-size: .98rem; color: var(--ink); cursor: pointer; }
.linkbtn:hover { color: var(--jade); text-decoration: underline; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s; text-align: center; }
.btn--primary { background: var(--pine); color: #fff; }
.btn--primary:hover { background: var(--jade); color: #fff; }
.btn--ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn--ghost:hover { background: var(--pine); color: #fff; }
.btn--light { background: #fff; color: var(--pine); }
.btn--light:hover { background: var(--mist); color: var(--pine); }
.btn--danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; }
.btn--sm { padding: 8px 14px; font-size: .92rem; }
.btn--lg { padding: 15px 28px; font-size: 1.06rem; }
.btn--block { display: flex; width: 100%; }
.section--pine .btn--primary, .price-card .btn--primary { background: var(--seal); }
.section--pine .btn--primary:hover, .price-card .btn--primary:hover { background: #8F2620; }
.price-card--light .btn--primary { background: var(--pine); }
.price-card--light .btn--primary:hover { background: var(--jade); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--pine) center / cover no-repeat; color: #fff; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: blur(1.5px); transform: scale(1.03); }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,32,28,.82) 0%, rgba(13,32,28,.58) 48%, rgba(13,32,28,.32) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: clamp(56px, 9vw, 112px); }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 18px; }
.hero .btn--primary { background: var(--seal); }
.hero .btn--primary:hover { background: #8F2620; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn--ghost:hover { background: #fff; color: var(--pine); border-color: #fff; }
.hero .fine { color: #B8CBC5; }

/* Breathing circle: 4 seconds in, 4 seconds out */
.breath { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.breath__orb, .breath__ring { position: absolute; border-radius: 50%; }
.breath__orb { width: 62%; height: 62%; background: radial-gradient(circle at 38% 34%, #6FB09E 0%, #3A8672 45%, #27594C 100%); animation: breathe 8s ease-in-out infinite; box-shadow: 0 0 80px rgba(111,176,158,.28); }
.breath__ring { border: 1.5px solid rgba(255,255,255,.28); animation: breathe-ring 8s ease-in-out infinite; }
.breath__ring--mid { width: 82%; height: 82%; }
.breath__ring--outer { width: 100%; height: 100%; border-color: rgba(255,255,255,.14); animation-delay: -.5s; }
.breath__label { position: relative; z-index: 1; margin: 0; font-family: var(--serif); font-size: 1.35rem; color: #fff; display: grid; place-items: center; }
.breath__label span { grid-area: 1 / 1; opacity: 0; }
.breath__in { animation: label-in 8s ease-in-out infinite; }
.breath__out { animation: label-out 8s ease-in-out infinite; }
.breath__stamp { position: absolute; right: 2%; bottom: 6%; padding: 9px 14px; background: var(--seal); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1rem; letter-spacing: .02em; line-height: 1; border-radius: 5px; transform: rotate(-4deg); }

@keyframes breathe { 0%, 100% { transform: scale(.72); } 50% { transform: scale(1.06); } }
@keyframes breathe-ring { 0%, 100% { transform: scale(.92); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }
@keyframes label-in { 0% { opacity: 0; } 8%, 42% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes label-out { 0%, 50% { opacity: 0; } 58%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Home sections ---------- */
.duo { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: stretch; }
.panel { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); border-radius: 10px; display: flex; flex-direction: column; align-items: flex-start; min-height: 440px; }
.panel > :not(.panel__art) { position: relative; z-index: 1; max-width: 60%; }
.panel__art { position: absolute; right: -10px; bottom: 0; width: 46%; max-width: 280px; z-index: 0; }
/*.panel--dark .panel__art { color: #8FD0BC; }*/
/*.panel--light .panel__art { color: var(--pine); }*/
.panel__art svg { width: 100%; height: auto; display: block; }
.panel--photo { background: linear-gradient(180deg, rgba(13,32,28,.35), rgba(13,32,28,.85)), var(--photo) center / cover; color: #fff; justify-content: flex-end; }
.panel--photo > :not(.panel__art) { max-width: 34em; }
.panel--photo p { color: #E7F0ED; }
.panel--photo .btn--primary { background: var(--seal); }
.panel h3 { font-size: clamp(2rem, 4vw, 2.8rem); }
.panel p { max-width: 30em; }
.panel .btn { margin-top: auto; }
.panel--dark { 
    /*background: var(--pine-2); */
    color: #fff; 
}
.panel--dark p { color: #DCE8E4; }
/*.panel--light { background: var(--mist); }*/
.panel--light p { color: #fff; }

.ticks { list-style: none; margin: 0 0 28px; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 12px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-50%); }
.ticks--dark li::before { border-color: var(--jade); }
.panel--dark .ticks li::before { border-color: #8FD0BC; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.benefits { margin: 0; }
.benefits__item { padding: 20px 0; border-top: 1px solid var(--line); }
.benefits__item:last-child { border-bottom: 1px solid var(--line); }
.benefits dt { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; margin-bottom: 4px; }
.benefits dd { margin: 0; color: var(--muted); max-width: 34em; }
.benefits--compact .benefits__item { padding: 14px 0; }
.benefits--compact dt { font-size: 1.15rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--pine); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-weight: 700; font-size: 2.2rem; color: var(--seal); line-height: 1; margin-bottom: 10px; }
.steps h3 { font-size: 1.4rem; }
.steps p { color: var(--muted); max-width: 22em; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.price-card { background: #fff; color: var(--ink); border-radius: 10px; padding: clamp(28px, 4vw, 44px); }
.price-card--light { border: 1px solid var(--line); background: var(--paper); margin: 28px 0; }
.price { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; }
.price__amount { font-family: var(--serif); font-weight: 700; font-size: clamp(3.4rem, 8vw, 5rem); line-height: 1; }
.price__per { color: var(--muted); font-size: 1.1rem; }

.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; padding: 16px 36px 16px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.6rem; font-weight: 400; color: var(--jade); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); margin: 0 0 18px; max-width: 38em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C7D5D1; padding: 48px 0 36px; }
.site-footer .fine { color: #9FB2AD; }
.site-footer a { color: #E3ECE9; }
.site-footer__grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.site-footer__links { display: flex; gap: 24px; align-items: flex-start; }
.brand--footer { color: #fff; margin-bottom: 8px; }

/* ---------- Forms ---------- */
.auth { padding: clamp(40px, 7vw, 88px) 0; }
.auth__title { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.auth__alt { margin-top: 24px; color: var(--muted); }
.form { margin-top: 28px; }
.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(44,110,93,.35); border-color: var(--jade); }
.field.has-error input { border-color: var(--danger); }
.field--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: .875rem; color: var(--muted); margin: 6px 0 0; }
.field-error { color: var(--danger); font-size: .92rem; font-weight: 500; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form__row { display: flex; gap: 12px; flex-wrap: wrap; }

.notice { padding: 14px 18px; border-radius: var(--radius); margin: 16px 0; border-left: 4px solid var(--jade); background: #fff; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.notice--error { border-color: var(--danger); background: #FBEFEE; }
.notice--success { border-color: var(--jade); background: #E6F2EE; }
.notice--info { border-color: var(--pine); background: var(--paper); }
.flash { padding-top: 16px; }
.flash .notice { margin: 0 0 8px; }

/* Segmented control (units) */
.seg { display: inline-flex; border: 1.5px solid var(--pine); border-radius: var(--radius); overflow: hidden; }
.seg label { margin: 0; font-weight: 500; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 18px; }
.seg input:checked + span { background: var(--pine); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--jade); outline-offset: -3px; }

/* ---------- Onboarding wizard ---------- */
.wiz { margin-top: 8px; }
.wiz__head { margin-bottom: 32px; }
.wiz__count { font-weight: 600; margin-bottom: 8px; color: var(--muted); }
.wiz__bar { height: 4px; background: var(--mist); border-radius: 2px; overflow: hidden; }
.wiz__bar span { display: block; height: 100%; width: 33.33%; background: var(--seal); transition: width .35s ease; }
.wiz__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wiz__step.is-in { animation: step-in .35s ease both; }
.wiz__title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 2.6rem); line-height: 1.12; padding: 0; margin-bottom: 10px; outline: none; }
.wiz__sub { font-size: 1.4rem; margin-top: 32px; }
.wiz__nav { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.choices { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box { display: block; padding: 16px 18px 16px 52px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); font-weight: 500; position: relative; transition: border-color .15s, background-color .15s; }
.choice__box::before { content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid var(--pine); border-radius: 50%; background: #fff; }
.choice input:checked + .choice__box { border-color: var(--pine); background: #E6F2EE; }
.choice input:checked + .choice__box::before { background: radial-gradient(circle, var(--pine) 0 5px, #fff 6px); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--jade); outline-offset: 2px; }
.choice:hover .choice__box { border-color: var(--jade); }

/* ---------- Dashboard / practice ---------- */
.dash__title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.crumb { font-size: .95rem; margin-bottom: 18px; color: var(--muted); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0 48px; }
.door { display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; padding: 32px; border-radius: 10px; text-decoration: none; position: relative; overflow: hidden; transition: transform .2s ease; }
.door:hover { transform: translateY(-3px); }
.door--tai-chi { background: var(--pine-2); color: #fff; }
.door--yoga { background: var(--mist); color: var(--ink); }
.door--tai-chi:hover { color: #fff; }
.door--yoga:hover { color: var(--ink); }
.door__name { font-family: var(--serif); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.05; }
.door__tag { margin-top: 8px; max-width: 20em; opacity: .9; }
.door__meta { margin-top: 18px; font-weight: 600; font-size: .95rem; }
.door__art { position: absolute; right: 14px; top: 14px; width: min(46%, 190px); opacity: .9; }
.door--tai-chi .door__art { color: #8FD0BC; }
.door--yoga .door__art { color: var(--pine); }
.door__art svg { width: 100%; height: auto; display: block; }

.account { border-top: 1px solid var(--line); padding-top: 28px; max-width: 560px; }
.account__title { font-size: 1.5rem; }

.vlist { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.vrow { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: center; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.vrow:hover { border-color: var(--jade); color: var(--ink); }
.vrow__thumb { aspect-ratio: 16 / 9; border-radius: 6px; background: #1D3832 center / cover no-repeat; position: relative; display: block; }
.vrow__thumb--plain { background: linear-gradient(135deg, var(--pine) 0%, var(--jade) 100%); }
.vrow__play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.92); }
.vrow__play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 16px solid var(--pine); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.vrow__body { display: flex; flex-direction: column; gap: 4px; }
.vrow__title { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; line-height: 1.2; }
.vrow__desc { color: var(--muted); }
.vrow__meta { color: var(--muted); font-size: .92rem; font-weight: 600; }
.empty { margin-top: 32px; padding: 32px; background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; }

.player { aspect-ratio: 16 / 9; background: var(--ink); border-radius: 10px; overflow: hidden; margin-bottom: 24px; }
.player iframe, .player video { width: 100%; height: 100%; border: 0; background: #000; }
.player__empty { height: 100%; display: grid; place-items: center; color: #C7D5D1; font-family: var(--serif); font-size: 1.4rem; text-align: center; padding: 24px; }
.player__empty p { margin: 0; }
.watch__title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 6px; }
.watch__desc { max-width: 40em; color: var(--muted); margin-top: 14px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(28px, 5vw, 64px); margin-top: 32px; align-items: start; }
.admin h2 { font-size: 1.7rem; }
.admin__form { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.admin__form .form { margin-top: 12px; }
.alist { list-style: none; margin: 0 0 32px; padding: 0; }
.alist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.alist li > div:first-child { display: flex; flex-direction: column; }
.alist__actions { display: flex; gap: 8px; }
.alist__actions form { margin: 0; }

/* ---------- Legal ---------- */
.prose h1 { font-size: 2.4rem; margin-top: 1.4em; }
.prose p { max-width: 40em; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero__grid, .duo, .split, .pricing, .admin { grid-template-columns: 1fr; }
  .breath { width: min(78%, 320px); order: -1; }
  .hero__shade { background: rgba(13,32,28,.66); }
  .panel { min-height: 0; }
  .panel > :not(.panel__art) { max-width: none; }
  .panel__art { position: static; width: 150px; margin: 0 0 16px -6px; }
  .hero__grid { gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 200px; }
  .vrow { grid-template-columns: 150px 1fr; gap: 14px; }
  .vrow__play { width: 38px; height: 38px; }
  .vrow__play::after { left: 15px; top: 11px; border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }
  .vrow__title { font-size: 1.2rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--fog); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a:not(.btn), .site-nav .linkbtn { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
  .site-nav .btn { margin-top: 14px; }
  .inline-form { display: block; }
}

@media (max-width: 520px) {
  .vrow { grid-template-columns: 1fr; }
  .field--pair { grid-template-columns: 1fr 1fr; }
  .wiz__nav .btn { flex: 1 1 100%; }
  .pager .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breath__orb, .breath__ring, .breath__in, .breath__out, .wiz__step.is-in { animation: none !important; }
  .breath__orb { transform: scale(.9); }
  .hero__video { display: none; }
  .breath__in { opacity: 1; }
  .door, .btn, .wiz__bar span { transition: none; }
}

/* ---------- Program: months, weeks, days ---------- */
.now { margin: 28px 0 8px; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; max-width: 640px; }
.now__title { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; margin: 0 0 4px; }
.now__text { color: var(--muted); margin: 0 0 12px; }
.now .fine { margin: 12px 0 0; }
.bar { height: 8px; background: var(--mist); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--jade); border-radius: 4px; }

.prog { margin-top: 28px; display: grid; gap: 12px; }
.acc { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.acc__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
summary.acc__head { cursor: pointer; list-style: none; }
summary.acc__head::-webkit-details-marker { display: none; }
summary.acc__head::after { content: ""; flex: none; width: 10px; height: 10px; margin: 0 4px 4px 4px; border-right: 2px solid var(--pine); border-bottom: 2px solid var(--pine); transform: rotate(45deg); transition: transform .2s ease; }
details[open] > summary.acc__head::after { transform: rotate(-135deg); margin-bottom: -2px; }
summary.acc__head:hover .acc__title { color: var(--jade); }
.acc__title { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; line-height: 1.2; margin-right: auto; }
.acc__title--week { font-size: 1.25rem; }
.acc__meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .95rem; font-weight: 500; text-align: right; }
.acc__body { padding: 0 22px 22px; }
.acc--week { background: #fff; margin-top: 10px; }
.acc--week .acc__head { padding: 14px 18px; }
.acc--week .acc__body { padding: 0 18px 18px; }
.acc--locked { background: transparent; border-style: dashed; color: var(--muted); }
.acc--locked .acc__title { color: var(--muted); }
.acc--locked .lock { flex: none; }
.acc--week.acc--locked { margin-top: 10px; }

.facts { display: grid; gap: 4px; margin: 0 0 8px; color: var(--ink); }
.soon { margin: 8px 0 0; color: var(--muted); }

.days { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.day { border-bottom: 1px solid var(--line); }
.day:last-child { border-bottom: 0; }
.day__link { display: grid; grid-template-columns: 56px 1fr auto 30px; gap: 16px; align-items: center; padding: 14px 4px; color: var(--ink); text-decoration: none; }
a.day__link:hover .day__title { color: var(--jade); text-decoration: underline; }
.day__no { font-weight: 600; color: var(--muted); }
.day__title { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.day__learns { display: block; margin-top: 2px; color: var(--muted); font-size: .95rem; }
.day__dur { font-weight: 600; font-size: .92rem; color: var(--muted); white-space: nowrap; }
.day__state { width: 26px; height: 26px; border: 2px solid var(--line); border-radius: 50%; position: relative; justify-self: end; }
.is-done .day__state { background: var(--jade); border-color: var(--jade); }
.is-done .day__state::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.day--empty .day__link { opacity: .65; }
.day--empty .day__state { visibility: hidden; }

.complete { margin: 24px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.complete form { margin: 0; }
.complete .fine { margin: 0; }
.complete__done { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; color: var(--jade); }
.tick { width: 24px; height: 24px; border-radius: 50%; background: var(--jade); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.player__empty strong { font-size: 1.6rem; }

/* Admin: program editor */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; border: 1.5px solid var(--pine); border-radius: var(--radius); color: var(--pine); font-weight: 600; text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--pine); color: #fff; }
.weekmap { display: grid; gap: 8px; margin: 24px 0 8px; }
.weekmap__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.weekmap__month { width: 78px; font-weight: 600; }
.chip { display: inline-flex; flex-direction: column; padding: 6px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.25; }
.chip small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.chip:hover { border-color: var(--jade); }
.chip.is-full { background: #E6F2EE; }
.chip.is-on { outline: 3px solid var(--jade); outline-offset: 1px; }
.admin__h { font-size: 1.8rem; margin: 32px 0 12px; }
.form--program { max-width: 720px; }
.dayform { border: 1px solid var(--line); border-radius: 10px; padding: 8px 18px 4px; margin: 0 0 18px; background: var(--paper); }
.dayform legend { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; padding: 0 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: .95rem; }
.check input { margin-top: 5px; }

@media (max-width: 640px) {
  .acc__head { padding: 16px; flex-wrap: wrap; }
  .acc__body { padding: 0 16px 16px; }
  .acc__title { font-size: 1.4rem; flex: 1 1 0; min-width: 0; }
  .acc__title--week { font-size: 1.2rem; }
  .acc--week .acc__head { padding: 14px; }
  .acc--week .acc__body { padding: 0 14px 14px; }
  .acc__meta { flex-basis: 100%; order: 3; text-align: left; }
  summary.acc__head::after { order: 2; }
  .day__link { grid-template-columns: 1fr 28px; gap: 4px 12px; }
  .day__no { grid-column: 1; font-size: .85rem; }
  .day__main { grid-column: 1; }
  .day__dur { grid-column: 1; }
  .day__state { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .weekmap__month { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  summary.acc__head::after { transition: none; }
}

.now__admin { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.now__admin .fine { margin: 0; }
