/* Practice companion · The Soul & the Scale
   Day (lichen and moss) · Dusk (cave and sage) · Night (no blue light, for bed).
   Fonts are the site's own, self-hosted in /assets/fonts.
   Contrast (WCAG 2.1, Oct 31 2026): every text colour is at least 4.5:1 on the backgrounds it sits on, in all three lights. */
@font-face{font-family:"Marcellus";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/marcellus-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Marcellus";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/marcellus-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Literata";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts/literata-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Literata";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts/literata-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Literata";font-style:italic;font-weight:200 900;font-display:swap;src:url(/assets/fonts/literata-latin-wght-italic.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Karla";font-style:normal;font-weight:200 800;font-display:swap;src:url(/assets/fonts/karla-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Karla";font-style:normal;font-weight:200 800;font-display:swap;src:url(/assets/fonts/karla-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Praxis Marks Sans";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/praxis-marks-sans-400.woff2) format("woff2")}
@font-face{font-family:"Praxis Marks Sans";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/praxis-marks-sans-600.woff2) format("woff2")}
@font-face{font-family:"Praxis Marks Display";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/praxis-marks-display-400.woff2) format("woff2")}

:root,[data-theme=day]{
  --ground:#ECEFEA;--surface:#F6F7F3;--field:#FFFFFF;--ink:#1C2320;--muted:#56615A;--rule:#C7CEC5;
  --accent:#345346;--accent-soft:#DCE6DF;--on-accent:#FFFFFF;
  --sun:#7E5E1A;--sun-soft:#F1E8D2;--moon:#44507A;--moon-soft:#E4E7F1;--ember:#9B4433;--ember-soft:#F5E3DE;
  --c-moss:#345346;--c-rv:#345346;--c-sf:#6B4A7A;--c-wwp:#7A3E26;--c-ra:#353A86;--c-lh:#7E5E1A;--c-os:#2F5E66;--c-pl:#8A4F1E;--c-moon:#7E5E1A;--c-night:#44507A;--c-ember:#9B4433;
  color-scheme:light}
[data-theme=dusk]{
  --ground:#111513;--surface:#171C19;--field:#1D2320;--ink:#E3E6DF;--muted:#A0AAA3;--rule:#2F3833;
  --accent:#8FB5A2;--accent-soft:#1A2822;--on-accent:#111513;
  --sun:#D5B163;--sun-soft:#29231A;--moon:#AEB3F7;--moon-soft:#1D1F33;--ember:#EC9C88;--ember-soft:#2E1B18;
  --c-moss:#8FB5A2;--c-rv:#8FB5A2;--c-sf:#C9A6D8;--c-wwp:#E6A781;--c-ra:#AEB3F7;--c-lh:#D5B163;--c-os:#8CC6CF;--c-pl:#E2A86B;--c-moon:#D5B163;--c-night:#AEB3F7;--c-ember:#EC9C88;
  color-scheme:dark}
/* Night: no blue light. Warm reds and ambers on near-black. */
[data-theme=night]{
  --ground:#0B0706;--surface:#140C0A;--field:#1A0F0C;--ink:#E8A27A;--muted:#B87252;--rule:#3A1F18;
  --accent:#D9774E;--accent-soft:#2A140E;--on-accent:#0B0706;
  --sun:#E39A55;--sun-soft:#2A170C;--moon:#C9785A;--moon-soft:#22110C;--ember:#E5684A;--ember-soft:#2E120C;
  --c-moss:#D9774E;--c-rv:#D9774E;--c-sf:#D98A6A;--c-wwp:#E39A55;--c-ra:#C9785A;--c-lh:#E39A55;--c-os:#D98A6A;--c-pl:#E0904E;--c-moon:#E39A55;--c-night:#C9785A;--c-ember:#E5684A;
  color-scheme:dark}
:root{--display:"Marcellus","Praxis Marks Display","Palatino Linotype",Palatino,Georgia,serif;--body:"Literata",Georgia,serif;--ui:"Karla","Praxis Marks Sans","Helvetica Neue",Arial,sans-serif;--r:16px}

*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--body);font-size:1.0625rem;line-height:1.6;-webkit-font-smoothing:antialiased}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
a{color:var(--accent);text-underline-offset:3px}
:focus-visible{outline:2px solid var(--sun);outline-offset:3px;border-radius:6px}
h1,h2,h3{font-family:var(--display);font-weight:400;line-height:1.15;margin:0}
p{margin:.5rem 0}
button{font:inherit;color:inherit}
.skip{position:absolute;left:1rem;top:-4rem;z-index:100;background:var(--ink);color:var(--ground);font-family:var(--ui);font-weight:700;padding:.6rem 1rem;border-radius:999px;text-decoration:none}
.skip:focus{top:1rem}

.shell{max-width:560px;margin:0 auto;min-height:100vh;min-height:100dvh;padding:calc(env(safe-area-inset-top,0px) + 12px) max(18px,env(safe-area-inset-left,0px)) calc(96px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-right,0px))}
main{display:flex;flex-direction:column;gap:18px;outline:none}

/* Top bar */
.top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:8px 0 14px}
.top .when{display:flex;flex-direction:column;gap:2px;min-width:0}
.top .k{font-family:var(--ui);font-size:13px;font-weight:600;color:var(--muted)}
.top h1{font-size:30px;line-height:36px}
.top .acts{display:flex;gap:8px;flex:none}
.iconbtn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;border:1px solid var(--rule);background:var(--surface);color:var(--ink);cursor:pointer;text-decoration:none;flex:none}
.iconbtn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.iconbtn.ground{color:var(--ember)}
.pausebtn{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 14px 0 11px;border-radius:999px;border:1px solid var(--rule);background:var(--surface);color:var(--ember);font-family:var(--ui);font-size:14px;font-weight:700;cursor:pointer;flex:none}
.pausebtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.iconbtn .ini{font-family:var(--ui);font-weight:700;font-size:15px}

/* Bottom tabs */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;background:color-mix(in srgb,var(--surface) 94%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--rule);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px max(12px,calc((100vw - 560px)/2)) calc(10px + env(safe-area-inset-bottom,0px))}
.tabs a{display:flex;flex-direction:column;align-items:center;gap:3px;min-height:52px;justify-content:center;text-decoration:none;color:var(--muted);font-family:var(--ui);font-size:12px;font-weight:700;letter-spacing:.02em}
.tabs a svg{width:56px;height:30px;padding:4px 17px;border-radius:999px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.tabs a[aria-current=page]{color:var(--accent)}
.tabs a[aria-current=page] svg{background:var(--accent-soft)}

/* Cards and type */
.card{background:var(--surface);border:1px solid var(--rule);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:10px}
.card.flat{background:transparent}
.eyebrow{font-family:var(--ui);font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin:0}
.eyebrow.sun{color:var(--sun)}
.meta{font-family:var(--ui);font-size:13px;line-height:18px;font-weight:500;color:var(--muted);margin:0}
.lead{font-size:19px;line-height:30px;font-style:italic;margin:0}
.h2{font-size:22px;line-height:28px}
.h3{font-size:19px;line-height:24px}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:6px}
.sec-h h2{font-size:22px}
.rule{height:1px;background:var(--rule);border:0;margin:2px 0}
.row{display:flex;align-items:center;gap:12px}
.grow{flex:1;min-width:0}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.stat .l{font-family:var(--ui);font-size:13px;color:var(--muted);font-weight:500;display:block}
.stat .v{font-family:var(--ui);font-size:16px;font-weight:700;color:var(--sun)}
.stat .v.moon{color:var(--moon)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--rule);background:var(--surface);color:var(--ink);font-family:var(--ui);font-size:15px;font-weight:700;text-decoration:none;cursor:pointer}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.btn.small{min-height:36px;padding:0 14px;font-size:14px}
.btn.big{min-height:56px;border-radius:var(--r);font-size:16px}
.btn[disabled]{opacity:.5;cursor:default}
.btn svg{width:16px;height:16px;fill:currentColor}
.btns{display:flex;flex-wrap:wrap;gap:8px}
.pill{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-family:var(--ui);font-size:14px;font-weight:700;text-decoration:none;border:0;cursor:pointer;width:100%;text-align:left}
.tag{display:inline-block;font-family:var(--ui);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:3px 8px;border-radius:999px;background:var(--sun-soft);color:var(--sun);white-space:nowrap}
.tag.free{background:var(--accent-soft);color:var(--accent)}
.tag.lock{background:var(--ground);color:var(--muted);border:1px solid var(--rule)}
.tag.ember{background:var(--ember-soft);color:var(--ember)}
.tag.builder{background:var(--moon-soft);color:var(--moon)}
.note{font-family:var(--ui);font-size:13px;line-height:1.45;padding:10px 12px;border-radius:12px;background:var(--moon-soft);color:var(--ink);border-left:3px solid var(--moon)}
.note.care{background:var(--ember-soft);border-left-color:var(--ember)}
.empty{color:var(--muted);font-style:italic}

/* Sky */
.sky svg{display:block;width:100%;height:auto}
.sky{text-decoration:none;color:var(--ink)}
.moonline{display:flex;align-items:center;gap:8px}
.moonline svg{width:18px;height:18px;flex:none}

/* Practice tiles */
.tile{flex:none;width:76px;height:76px;border-radius:14px;display:block}
.tile.sm{width:56px;height:56px;border-radius:12px}
.tile.paint{background:var(--accent-soft) center/cover no-repeat}  /* a sound card's painting (renderLibrary, soundArt) */
.overlay.painted::before{content:"";position:fixed;inset:0;background:var(--art) center/cover no-repeat;opacity:.13;pointer-events:none}  /* phones: the whole screen */
.overlay.painted .in{position:relative;isolation:isolate}
[data-theme=night] .overlay.painted::before,[data-theme=night] .overlay.painted .in::before{display:none}  /* night keeps its no-blue-light rule */
.ring{flex:none;width:40px;height:40px}
.list{display:flex;flex-direction:column;gap:10px}
.item{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid var(--rule);border-radius:var(--r);background:var(--surface);text-decoration:none;color:var(--ink);cursor:pointer;text-align:left;width:100%}
.item .t{font-family:var(--display);font-size:19px;line-height:24px;display:block}
.item.locked .tile{opacity:.78}
.item.locked .t{color:var(--muted)}
.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;font-family:var(--ui);font-size:13px;font-weight:700;padding:7px 12px;border-radius:999px;border:1px solid var(--rule);background:var(--surface);color:var(--muted);cursor:pointer}
.chip[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}

/* Week strip */
.week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;text-align:center}
.week .d{font-family:var(--ui);font-size:11px;font-weight:700;color:var(--muted)}
.week .dot{width:26px;height:26px;margin:4px auto 0;border-radius:999px;border:1.5px dashed var(--rule);display:flex;align-items:center;justify-content:center;font-family:var(--ui);font-size:11px;font-weight:700}
.week .dot.on{border:0;background:var(--accent);color:var(--on-accent)}
.week .dot.today{outline:2px solid var(--sun);outline-offset:2px}

/* Path */
.seal{width:64px;height:64px;flex:none}
.seal.big{width:96px;height:96px}
.grade{display:flex;flex-direction:column;gap:10px;padding-top:6px}
.grade-h{display:flex;align-items:center;gap:12px}
.grade-h .n{font-family:var(--display);font-size:24px}
.bar{height:8px;border-radius:999px;background:var(--rule);overflow:hidden}
.bar>i{display:block;height:100%;background:var(--accent);border-radius:999px}
.days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.days button{aspect-ratio:1;border-radius:12px;border:1px solid var(--rule);background:var(--surface);font-family:var(--ui);font-weight:700;cursor:pointer;color:var(--muted)}
.days button.done{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.days button.next{outline:2px solid var(--sun);outline-offset:2px;color:var(--ink)}

/* Forms */
label.f{display:flex;flex-direction:column;gap:6px;font-family:var(--ui);font-size:14px;font-weight:700}
input[type=text],input[type=email],input[type=number],input[type=time],select,textarea{font:inherit;font-family:var(--body);font-size:16px;color:var(--ink);background:var(--field);border:1px solid var(--rule);border-radius:12px;padding:10px 12px;width:100%}
textarea{min-height:96px;resize:vertical;line-height:1.5}
.switch{display:flex;align-items:center;justify-content:space-between;gap:12px;font-family:var(--ui);font-size:15px;font-weight:600;padding:8px 0;cursor:pointer}
/* a small inline link keeps its line but gets a finger-sized hit area (36 px and more), by padding the margin back out */
a.tap{display:inline-block;padding:9px 4px;margin:-9px -4px}
.switch input{width:22px;height:22px;flex:none;accent-color:var(--accent)}

/* Journal */
.entry{border-left:2px solid var(--rule);padding:2px 0 2px 12px}
.entry .q{font-family:var(--ui);font-size:13px;color:var(--muted);font-weight:600}
.entry p{white-space:pre-wrap}

/* Overlay: player, sheets */
.overlay{position:fixed;inset:0;z-index:60;background:var(--ground);overflow-y:auto;padding:calc(env(safe-area-inset-top,0px) + 16px) max(18px,env(safe-area-inset-left,0px)) calc(24px + env(safe-area-inset-bottom,0px))}
.overlay .in{max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:16px;min-height:100%}
.ov-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.player{flex:1;display:flex;flex-direction:column;justify-content:center;gap:22px;min-height:60vh}
.player .line{font-size:clamp(22px,5.4vw,30px);line-height:1.4;font-style:italic;min-height:7em;display:flex;align-items:center}
.player .line.mark{font-style:normal;font-family:var(--ui);font-size:15px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.breath{width:180px;height:180px;margin:0 auto;border-radius:50%;background:radial-gradient(circle,var(--accent-soft) 0,var(--accent-soft) 40%,transparent 41%);border:2px solid var(--accent);display:flex;align-items:center;justify-content:center;font-family:var(--ui);font-size:20px;font-weight:700;color:var(--accent);transform:scale(.7);transition:transform 4s ease-in-out;font-variant-numeric:tabular-nums}
.breath.in{transform:scale(1)}
@media (prefers-reduced-motion:reduce){.breath,.breath.in{transform:none!important}}
.prog{height:4px;border-radius:999px;background:var(--rule);overflow:hidden}
.prog>i{display:block;height:100%;width:0;background:var(--sun);transition:width .4s}
.timer-face{font-family:var(--display);font-size:64px;text-align:center}

/* Toast */
.toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:80;background:var(--ink);color:var(--ground);font-family:var(--ui);font-weight:700;font-size:14px;padding:10px 16px;border-radius:999px;max-width:90vw}

@media print{
  .tabs,.top .acts,.noprint,.btn{display:none!important}
  body{background:#fff;color:#000}
  .card{border:0;padding:0}
}
.item .meta,.item .t{display:block}

/* A course opened inside the companion */
.overlay.framed{padding:0;display:flex;flex-direction:column;overflow:hidden}
.courseframe{flex:1;width:100%;border:0;background:var(--ground)}

/* Quiet one-line actions (calendar, the book) */
.item.quiet{padding:10px 12px;background:transparent}
.item.quiet .t{font-size:17px;line-height:22px}
.item .ic{flex:none;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent)}
.item .ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}

/* What brings you, and other choices */
fieldset{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:8px}
legend{padding:0;margin:0 0 6px}
.intake{display:flex;flex-direction:column;gap:16px}
.opts{display:grid;gap:8px}
.opt{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border:1px solid var(--rule);border-radius:12px;background:var(--field);cursor:pointer;font-family:var(--ui);font-size:15px}
.opt input{width:22px;height:22px;margin:1px 0 0;flex:none;accent-color:var(--accent)}
.opt b{display:block;font-weight:700}
.opt .meta{display:block}
.opt:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.seg label{position:relative;display:block}
.seg input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.seg span{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--rule);border-radius:999px;background:var(--surface);color:var(--ink);font-family:var(--ui);font-size:16px;font-weight:700}
.seg input:checked+span{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.seg input:focus-visible+span{outline:2px solid var(--sun);outline-offset:3px}
.intake-res{display:flex;flex-direction:column;gap:10px}
.intake-res .item{cursor:default;align-items:flex-start}

/* Keep for offline, transcripts */
.keep{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.transcript{border:1px solid var(--rule);border-radius:12px;background:var(--surface);padding:0 14px}
.transcript summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-family:var(--ui);font-size:15px;font-weight:700}
.transcript .tx{padding:0 0 12px;max-height:50vh;overflow:auto}
video{display:block;max-width:100%}

/* The Practitioner's Book: printing just the book */
@media print{
  body.book-open{overflow:visible!important;background:#fff}
  body.book-open .shell,body.book-open .toast{display:none!important}
  body.book-open .overlay{position:static!important;overflow:visible!important;padding:0!important;background:#fff!important}
  body.book-open .overlay .in{max-width:none;min-height:0;display:block}
}

a.wheel-link{display:block;border-radius:var(--r,16px)}
a.wheel-link:focus-visible{outline:2px solid var(--moon,var(--accent));outline-offset:4px}

/* Today's two groups (renderToday): one column on phones, as if the wrappers weren't there */
.tcols,.tmain,.tside,.path-fig,.path-tx{display:contents}
.tabs-brand{display:none}

/* ───────── Wide screens (1024 px and up): a side rail instead of the bottom tabs, a wider page, two columns where the content allows,
   and every player, timer and sheet as a large centred card over the dimmed page. Phones are unchanged. ───────── */
@media (min-width:1024px){
  .shell{max-width:1240px;display:grid;grid-template-columns:200px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:56px;align-items:start;padding:32px 40px 64px}
  .top{grid-column:2;padding:4px 0 22px}
  .top h1{font-size:40px;line-height:46px}
  main{grid-column:2;width:100%;max-width:960px}
  .tabs{grid-column:1;grid-row:1 / span 2;position:sticky;top:32px;left:auto;right:auto;bottom:auto;display:flex;flex-direction:column;gap:4px;padding:0;background:none;border:0;-webkit-backdrop-filter:none;backdrop-filter:none}
  .tabs-brand{display:block;margin:6px 14px 26px;font-family:var(--display);font-size:26px;line-height:1.1;color:var(--ink)}
  .tabs-brand span{display:block;margin-bottom:6px;font-family:var(--ui);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
  .tabs a{flex-direction:row;justify-content:flex-start;gap:12px;min-height:46px;padding:0 14px;border-radius:12px;font-size:15px;letter-spacing:0}
  .tabs a svg{width:22px;height:22px;padding:0;border-radius:0}
  .tabs a:hover{background:color-mix(in srgb,var(--accent-soft) 55%,transparent);color:var(--ink)}
  .tabs a[aria-current=page]{background:var(--accent-soft)}
  .tabs a[aria-current=page] svg{background:none}
  .toast{bottom:32px}

  /* Today: the practice and what's in progress on the left, the sky, timer and week on the right */
  .tcols{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px;align-items:start}
  .tmain,.tside{display:flex;flex-direction:column;gap:18px;min-width:0}
  main[data-v=today] .lead{font-size:20px}

  /* lists of tiles and rows: two columns */
  main[data-v=path] .grade > .list,main[data-v=library] > .list,main[data-v=path-item] > .list,main[data-v=today] > section.list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
  main[data-v=today] > section.list > h2{grid-column:1 / -1}
  main[data-v=path] .grade > .list > *,main[data-v=library] > .list > *,main[data-v=path-item] > .list > *{height:100%}
  .path-card{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px 40px;align-items:center;padding:28px 32px}
  .path-fig,.path-tx{display:flex;flex-direction:column;gap:10px;min-width:0}
  .path-tx .meta{font-size:15px}
  main[data-v=path-item] > section.card{padding:24px 28px}
  main[data-v=journal],main[data-v=sky]{max-width:760px}
  main[data-v=me]{max-width:760px}

  /* the overlay (players, the timer, sheets): a large centred card on a dimmed page; a course opened inside stays full screen */
  .overlay:not(.framed){display:flex;align-items:flex-start;justify-content:center;padding:6vh 32px;background:color-mix(in srgb,var(--ground) 40%,rgba(10,14,12,.62));-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
  .overlay:not(.framed) .in{width:100%;max-width:780px;min-height:0;margin:auto;padding:28px 40px 36px;border:1px solid var(--rule);border-radius:22px;background:var(--surface);box-shadow:0 28px 80px rgba(0,0,0,.28)}
  .overlay:not(.framed) .player{min-height:52vh}
  .overlay.painted::before{display:none}
  .overlay.painted .in::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--art) center/cover no-repeat;opacity:.15;pointer-events:none}
  .player .line{font-size:34px}
  .timer-face{font-size:84px}
}
@media (min-width:1024px) and (prefers-reduced-motion:no-preference){.overlay:not(.framed):not([hidden]) .in{animation:ovIn .26s cubic-bezier(.2,.8,.25,1)}}
@keyframes ovIn{from{opacity:0;transform:translateY(14px) scale(.985)}}
@media (min-width:1360px){.shell{column-gap:80px}}

/* typeface:start generated by tools/typeface.py from src/typeface.json. Do not edit. */
/* typeface:end */

/* Nick's paintings (src/core/art/, copied to /practice/art/ by build.py) */
.plate{margin:4px 0}
.plate img{display:block;height:min(60vh,26rem);width:auto;max-width:100%;object-fit:contain;margin:0 auto;border-radius:6px}
.plate figcaption{font-family:var(--ui);font-size:.8rem;color:var(--muted);text-align:center;margin-top:8px;line-height:1.45}
.pause-art{display:block;width:100%;height:64px;object-fit:cover;border-radius:6px}

/* The tile (C6): the courses' anatomy in Practice. 64 px art (the course's painting, else its glyph) · title · one meta line · one chip · a ring.
   The ring is drawn like the engine's (.ring in praxis-core.css): moss arc, a check when full. Locks keep their reason as the meta line. */
.ptile{position:relative;display:flex;align-items:center;gap:14px;width:100%;min-height:72px;padding:4px 12px 4px 4px;border:1px solid var(--rule);border-radius:14px;background:var(--surface);color:var(--ink);text-decoration:none;text-align:left;font:inherit;cursor:pointer}
div.ptile{cursor:default}
.card>.ptile{border:0;padding:0;background:none;min-height:64px}
.pt-art{flex:none;display:block;width:64px;height:64px;border-radius:10px;overflow:hidden;background:color-mix(in srgb,var(--accent) 16%,var(--surface)) center/cover no-repeat}
.pt-art.glyph{background:none}
.pt-art .tile{width:64px;height:64px;border-radius:10px}
.pt-art .pv-tile{padding:9px!important}
.pt-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pt-t{margin:0;font-family:var(--display);font-weight:400;font-size:19px;line-height:23px}
.pt-m{font-family:var(--ui);font-size:13px;line-height:17px;color:var(--muted)}
.pt-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.pt-chips .tag{align-self:flex-start}
a.ptile:hover .pt-t,button.ptile:hover .pt-t{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.ptile:focus-visible,.chip:focus-visible,.framebk:focus-visible,.skyline summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.ptile.locked .pt-art{opacity:.55}
.ptile.locked .pt-t{color:var(--muted)}
.chip.play{display:inline-flex;align-items:center;gap:6px;background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.chip.play svg{width:12px;height:12px;fill:currentColor}
.pring{flex:none;width:34px;height:34px}
.pring circle{fill:none;stroke-width:3}
.pring .pr-bg{stroke:var(--rule)}
.pring .pr-fg{stroke:var(--accent);stroke-linecap:round}
.pring:not(.part):not(.full) .pr-fg{opacity:0}
.pring .pr-ok{fill:none;stroke:var(--accent);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.pring.full .pr-ok{opacity:1}

/* First run: the sky folded to one line under today's practice; the full card opens beneath it */
.skyline{border:1px solid var(--rule);border-radius:var(--r);background:var(--surface)}
.skyline summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 14px;font-family:var(--ui);font-size:14px;font-weight:700;color:var(--ink);cursor:pointer;list-style:none;border-radius:var(--r)}
.skyline summary::-webkit-details-marker{display:none}
.skyline summary>svg{width:18px;height:18px;flex:none}
.skyline .sl-more svg{width:20px;height:20px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:block;transition:transform .2s}
.skyline[open] .sl-more svg{transform:rotate(180deg)}
.skyline>.card{border:0;border-top:1px solid var(--rule);border-radius:0 0 var(--r) var(--r)}
@media (prefers-reduced-motion:reduce){.skyline .sl-more svg{transition:none}}

/* The path circle's centre: a moss ring and fill, so it reads as the place to begin */
/* Grades still in development fold into one list (the courses' Later weeks idiom) */
.grade.later{gap:6px;padding-top:14px}
.grade.later .eyebrow{margin:0}
.grade.later .ll-why{margin:0 0 4px}
.grade.later .ll{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.grade.later .ll li{display:flex;align-items:flex-start;gap:12px;font-family:var(--ui);font-size:15px;line-height:1.4;color:var(--muted)}
.grade.later .ll b{color:var(--ink);font-weight:700}
.grade.later .ll-tx{display:flex;flex-direction:column;gap:2px}

/* A course open inside Practice: the course is the whole screen, Practice's tab bar steps aside, one Back to Practice button */
body.course-open .tabs{display:none}
.framebk{position:absolute;z-index:2;top:calc(env(safe-area-inset-top,0px) + 8px);left:max(8px,env(safe-area-inset-left,0px));display:inline-flex;align-items:center;gap:4px;min-height:44px;min-width:44px;padding:0 14px 0 10px;border-radius:999px;border:1px solid var(--rule);background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 1px 6px rgba(0,0,0,.12);color:var(--ink);font-family:var(--ui);font-size:14px;font-weight:700;cursor:pointer}
.framebk svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Touch targets (audit growth 5): 36 px or more for anything a finger presses; the week's day marks at 32 px with 8 px between */
.chip{min-height:36px}
.week{gap:8px}
.week .dot{width:32px;height:32px;font-size:12px}
.sec-h a.meta{display:inline-flex;align-items:center;min-height:36px}
.overlay.reading .framebk{display:none}  /* the course's reader is open (bridge.js): it has its own Close */
