@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Libre+Caslon+Display&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#edf2ef;background:#0d272b;font-synthesis:none;color-scheme:dark;--muted:#a9c0bc;--accent:#e7c591;--border:#355155;--panel:#153337;--serif:'Libre Caslon Display',Georgia,serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 20% 40%,#24474a80,transparent 65%);min-height:100svh}button,input,select{font:inherit}button,a,input,summary,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;transition:background .18s,transform .18s}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:5px}.skip-link{position:absolute;left:15px;top:-60px;background:var(--accent);color:#102d30;padding:12px;z-index:4}.skip-link:focus{top:12px}.shell{max-width:1240px;margin:auto;padding:30px 48px 24px}header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:26px;border-bottom:1px solid #35515599}.brand{color:#edf2ef;text-decoration:none;font-size:1.0625rem;font-weight:500;display:flex;align-items:center;gap:12px}.brand-mark{color:var(--accent);font-size:2rem;line-height:1}.header-note{color:var(--muted);font-size:.875rem}main{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:clamp(32px,6vw,80px);align-items:start;padding:24px 0 36px}.meditation{text-align:center;min-width:0}.eyebrow{font-size:.75rem;letter-spacing:.16em;color:var(--accent);font-weight:600}h1{font-family:var(--serif);font-weight:400;font-size:clamp(2.7rem,4.2vw,3.5rem);line-height:1.05;letter-spacing:-.02em;margin:17px 0 14px}.intro{color:var(--muted);margin:0;font-size:1rem;line-height:1.6}.practice{margin-top:16px}.timer-face{position:relative;width:min(100%,250px);aspect-ratio:1;margin:auto;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,#2f505328,transparent 70%)}.ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);fill:none;stroke-width:.8}.ring-track{stroke:#527073}.ring-progress{stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0;transition:stroke-dashoffset .25s linear}.timer-content{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px}.timer-caption{font-size:.75rem;letter-spacing:.12em;color:var(--muted)}#countdown{font-size:clamp(3.25rem,5vw,4.5rem);font-weight:400;letter-spacing:-.055em;line-height:1.12;font-variant-numeric:tabular-nums}#timer-note{font-size:.875rem;color:var(--muted)}.session-status{font-size:.9375rem;color:var(--muted);min-height:1.5em;margin:12px 0}.actions{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:100px}.primary{background:var(--accent);border:1px solid transparent;border-radius:999px;color:#173234;font-weight:600;min-height:54px;padding:14px 32px;display:inline-flex;align-items:center;justify-content:center;gap:12px}.primary:hover{background:#f5dab2;box-shadow:0 5px 25px #e7c59114}.actions .primary{min-width:240px}.secondary-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.text-button{background:none;border:0;color:var(--muted);font-size:.875rem;min-height:44px;padding:8px 0;text-decoration:underline;text-underline-offset:5px}.text-button:hover{color:#fff}.preferences{min-width:0;max-width:470px;width:100%;justify-self:end}.sound-panel{background:linear-gradient(125deg,#1b3b3e,#133236);border:1px solid #426064;border-radius:22px;padding:26px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading .eyebrow{font-size:.75rem}h2{font-family:var(--serif);font-weight:400;font-size:2rem;margin:7px 0 0;line-height:1.15}.quiet-button{background:transparent;border:1px solid #537073;color:#dce9e4;border-radius:8px;padding:8px 10px;font-size:.875rem;min-height:44px;white-space:nowrap}.quiet-button:hover{background:#ffffff0b}.panel-intro{color:var(--muted);font-size:.875rem;line-height:1.6;margin:14px 0 22px}.sound-item{border-top:1px solid var(--border)}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:19px 0}.setting-row label{font-size:.9375rem;font-weight:500;cursor:pointer}.setting-row p{font-size:.875rem;line-height:1.5;margin:5px 0 0;color:var(--muted)}.tag{font-size:.75rem;font-weight:600;letter-spacing:.04em;color:var(--accent);border:1px solid #766c5266;border-radius:4px;padding:2px 4px;vertical-align:middle;margin-left:5px}input[role=switch]{appearance:none;flex-shrink:0;width:48px;height:32px;border:0;border-radius:30px;background:#516a6c;position:relative;cursor:pointer;margin:6px 0;box-shadow:0 0 0 6px transparent}input[role=switch]::after{content:'';position:absolute;width:24px;height:24px;border-radius:50%;background:#d9e3df;top:4px;left:4px;transition:transform .2s}input[role=switch]:checked{background:var(--accent)}input[role=switch]:checked::after{transform:translateX(16px);background:#163438}.voice-choice,.sound-options{padding:0 0 18px}.small-label{font-size:.875rem;display:flex;justify-content:space-between;color:var(--muted);margin-bottom:8px}select,input[type=number]{background:#0f2a2e;border:1px solid #557175;color:#edf2ef;border-radius:9px;padding:11px;font-size:.875rem;min-height:44px}select{width:100%;max-width:100%;text-overflow:ellipsis}input[type=range]{width:100%;accent-color:var(--accent);cursor:pointer;min-height:44px;margin:0}.range-row{display:flex;align-items:center;gap:16px}.range-row input{min-width:0}.saved-note{color:var(--muted);font-size:.75rem;border-top:1px solid var(--border);padding-top:16px;line-height:1.6;margin:0}.rhythm-panel{margin-top:16px;border:1px solid var(--border);border-radius:14px;padding:0 20px}.rhythm-panel summary{display:flex;align-items:center;gap:12px;min-height:66px;cursor:pointer;list-style:none;font-size:.875rem}.rhythm-panel summary::-webkit-details-marker,.help-panel summary::-webkit-details-marker{display:none}#rhythm-summary{color:var(--muted);font-size:.8125rem;margin-left:auto;text-align:right}.expand-icon{color:var(--accent);font-size:1.2rem;line-height:1;transition:transform .2s}details[open]>summary .expand-icon{transform:rotate(45deg)}.details-content{color:var(--muted);font-size:.875rem;line-height:1.7;padding-bottom:20px}.details-content>p{margin:0 0 16px}.duration-row{display:flex;align-items:center;gap:10px;color:#edf2ef}.duration-row label{flex:1}.duration-row label span{display:block;color:var(--muted);font-size:.8125rem}input[type=number]{width:74px;font-size:1rem}.small-button{background:#2d4b4e;border:1px solid #567275;color:#edf2ef;border-radius:9px;min-height:44px;padding:10px 14px}.small-button:hover{background:#3a5a5d}.fine-print{font-size:.75rem;color:var(--muted);line-height:1.6;margin:9px 0 0}.restart-row{border-top:1px solid var(--border);margin-top:16px;padding-top:15px}.restart-row p{margin:0}.feedback{font-size:.875rem;color:var(--accent);line-height:1.6;margin:16px 0}.feedback:empty{display:none}.help-panel{margin:14px 4px 0}.help-panel summary{cursor:pointer;list-style:none;font-size:.875rem;color:var(--muted);min-height:44px;display:flex;align-items:center;gap:12px}.help-panel .details-content{font-size:.875rem}.help-panel p:last-child{margin-bottom:0}footer{border-top:1px solid #35515599;padding-top:22px;display:flex;justify-content:space-between;gap:20px;color:#a0b9b4;font-size:.75rem}footer span:first-child{font-family:var(--serif);font-size:1.125rem}dialog{border:1px solid #587373;border-radius:20px;background:#18373b;color:#edf2ef;max-width:460px;width:calc(100% - 32px);padding:30px}dialog::backdrop{background:#061416cc;backdrop-filter:blur(4px)}dialog p{color:var(--muted);line-height:1.7}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.dialog-actions .primary{min-height:44px;padding:11px 18px;font-size:.875rem}[hidden]{display:none!important}
@media(min-width:1000px){main{min-height:calc(100svh - 180px)}}
@media(max-width:800px){.shell{padding:24px}main{grid-template-columns:1fr;padding:28px 0;gap:26px}.preferences{max-width:520px;justify-self:center}.header-note{font-size:.75rem}h1{font-size:clamp(2.6rem,8vw,3.6rem)}.timer-face{width:250px;max-width:100%}#countdown{font-size:4.4rem}.practice{margin-top:18px}.actions{min-height:95px}.sound-panel{padding:24px}.intro{font-size:.9375rem}}
@media(max-width:380px){.shell{padding:20px 16px}.header-note{display:none}.sound-panel{padding:20px}.panel-heading{align-items:flex-start}.panel-heading h2{font-size:1.8rem}.quiet-button{font-size:.8125rem;padding:8px}.duration-row{flex-wrap:wrap}.timer-caption{font-size:.75rem}#countdown{font-size:4rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.technique-panel{padding:24px 26px;border:1px solid #718174;border-radius:22px;background:linear-gradient(145deg,#254345,#163438);margin-bottom:18px;text-align:left}.technique-panel h2{margin-bottom:22px}.technique-panel select{font-size:1rem}.technique-guide{border-top:1px solid var(--border);margin-top:18px;padding-top:14px}.technique-meta{font-size:.8125rem;line-height:1.5;color:var(--accent);margin:0 0 12px}.technique-guide ol{margin:0;padding-left:24px;font-size:1rem;line-height:1.65}.technique-guide li{padding-left:4px;margin:0 0 10px}.technique-guide li::marker{color:var(--accent)}.technique-tip{font-size:.875rem;line-height:1.6;color:var(--muted);margin:16px 0 10px}.technique-panel a{color:var(--accent);text-underline-offset:4px;font-size:.875rem}.technique-about{margin-top:18px;border-top:1px solid var(--border);padding-top:6px}.technique-about summary{cursor:pointer;font-size:.875rem;color:var(--muted);padding:12px 0}.technique-about p{font-size:.875rem;line-height:1.7;color:var(--muted)}select:disabled{opacity:.7;cursor:not-allowed}.meditation h1{overflow-wrap:break-word}
@media(max-width:800px){.meditation{display:contents}main{gap:0}.meditation>.eyebrow,.meditation>h1,.meditation>.intro,.meditation>.practice{text-align:center}.meditation>.eyebrow{grid-row:1}.meditation>h1{grid-row:2}.meditation>.intro{grid-row:3}.meditation>.practice{grid-row:5;margin-bottom:24px}.preferences{display:contents}.technique-panel{grid-row:4;max-width:520px;width:100%;justify-self:center;margin:24px 0 8px}.sound-panel,.rhythm-panel,.help-panel,.feedback{max-width:520px;width:100%;justify-self:center}.technique-panel{padding:22px}.technique-guide ol{font-size:1rem}}


input[role=switch]{height:44px;margin:0;background:transparent}input[role=switch]::before{content:"";position:absolute;inset:6px 0;border-radius:30px;background:#516a6c}input[role=switch]::after{top:10px}input[role=switch]:checked{background:transparent}input[role=switch]:checked::before{background:var(--accent)}
.technique-panel-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.library-badge{font-size:.75rem;padding:5px 8px;border:1px solid #748679;border-radius:20px;color:var(--accent);white-space:nowrap}.browse-button{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:10px;padding:12px 14px;border:1px solid #778776;border-radius:9px;background:#345251;color:#f3dfbc;font-size:.9375rem;min-height:46px}.browse-button:hover{background:#45635c}.technique-guide h3{font-size:1rem;font-weight:500;margin:0 0 14px}.library-dialog{max-width:1000px;width:calc(100% - 32px);max-height:90svh;padding:28px;overflow:auto}.library-header{display:flex;justify-content:space-between;gap:20px;align-items:start}.library-header h2{font-size:2.5rem}.library-intro{max-width:650px;font-size:1rem;margin:18px 0 24px}.library-filters{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:12px;align-items:end}.library-filters>div{min-width:0}.library-search input{font:inherit;background:#0f2a2e;border:1px solid #557175;border-radius:9px;padding:11px;color:#edf2ef;width:100%;min-height:44px}.library-toolbar{display:flex;justify-content:space-between;align-items:center;margin:12px 0;gap:15px}.library-toolbar p{margin:0;font-size:.875rem}.library-results{display:grid;grid-template-columns:1fr 1fr;gap:12px}.library-card{display:flex;align-items:flex-start;text-align:left;gap:14px;padding:18px;border:1px solid #436165;background:#153337;border-radius:12px;color:#edf2ef;min-width:0;width:100%;line-height:1.5}.library-card:hover{background:#244649;border-color:var(--accent)}.library-number{font-size:.875rem;color:var(--accent);font-variant-numeric:tabular-nums;padding-top:3px}.library-card-body{display:flex;flex-direction:column;gap:6px;min-width:0}.library-card-title{font-family:var(--serif);font-size:1.5rem;line-height:1.2}.library-card-meta{font-size:.75rem;color:var(--accent)}.library-card-focus{font-size:.875rem;color:var(--muted)}.library-empty{padding:30px 0;text-align:center}.library-card:disabled:hover{background:#153337;border-color:#436165}
@media(max-width:650px){.library-dialog{padding:20px;max-height:92svh}.library-header h2{font-size:2rem}.library-filters{grid-template-columns:1fr 1fr}.library-search{grid-column:1/-1}.library-results{grid-template-columns:1fr}.library-header{gap:10px}.library-card{padding:16px}.library-filters select{padding:10px 8px}}
.visual-help{margin-top:20px;border:1px solid #789286;border-radius:14px;background:#102e32;overflow:hidden}.visual-help summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;min-height:52px;cursor:pointer;font-size:.9375rem;color:#f1dfbd}.visual-help summary::-webkit-details-marker{display:none}.visual-help small{color:var(--muted);font-size:.75rem;margin-left:8px}.visual-help figure{margin:0;padding:0 14px 12px}.visual-help svg{display:block;width:100%;height:auto;max-height:225px}.visual-help svg g{fill:none;stroke:#aec6bd;stroke-width:1.6;stroke-linecap:round}.visual-help svg text{fill:#d5e3db;stroke:none;font:15px 'DM Sans',system-ui,sans-serif}.visual-help .diagram-accent{stroke:var(--accent);fill:#e7c59125}.visual-help .diagram-soft{fill:#e7c59130}.visual-help .diagram-letter{font-size:40px}.visual-help .diagram-highlight{fill:var(--accent)}.visual-help .diagram-muted{fill:#8aa6a2}.visual-help figcaption{color:#b9ccc6;font-size:.875rem;line-height:1.65;padding:0 3px}.visual-footnote{border-top:1px solid var(--border);margin:0;padding:12px 17px;color:var(--muted);font-size:.75rem;line-height:1.6}.approach-label{display:inline-block;margin:18px 0 2px;padding:4px 8px;border-radius:5px;background:#d3c69813;color:#e7d4ae;font-size:.75rem}.source-context summary{cursor:pointer;padding:12px 0;font-size:.875rem;min-height:44px;color:var(--muted)}.source-context p{font-size:.875rem;line-height:1.7;color:var(--muted);margin:2px 0 14px}.source-context h4{font-size:.875rem;font-weight:500;margin:18px 0 10px;color:#f1dfbd}.source-context .fine-print{font-size:.75rem;margin-top:16px}.library-card-tags{display:flex;flex-wrap:wrap;gap:7px}.library-card-tags:empty{display:none}.library-card-tags>span{border:1px solid #4e6c64;border-radius:5px;padding:3px 6px;font-size:.6875rem;color:#d5d5b5}.visual-filter{display:flex;align-items:center;gap:10px;min-height:44px;font-size:.875rem;color:var(--muted);cursor:pointer;margin-top:12px}.visual-filter input{width:20px;height:20px;accent-color:var(--accent)}

.edition-note,.book-review{font-size:.8rem;line-height:1.6;color:var(--muted);max-width:65ch}.edition-note{padding-left:12px;border-left:2px solid #a68b58;margin:12px 0 18px}.book-review{font-weight:600}

#book-passages{margin:0;font-size:.875rem;line-height:1.8;color:#d2dedb}#book-passages p{margin:0 0 16px}.excerpt-gap{color:var(--muted);text-align:center}

.source-reading{display:inline-flex;gap:12px;align-items:center;color:var(--accent);font-size:.875rem;line-height:1.5;min-height:44px;margin-top:8px;text-underline-offset:4px}.source-reading:hover{color:#fff}
.practice-summary-label{font-size:.75rem;line-height:1.5;color:var(--muted);margin:-6px 0 18px}.technique-guide .technique-tip{border-left:2px solid #789286;padding-left:12px}.technique-guide ol:empty{display:none}#book-excerpt-details{margin-top:16px;border-top:1px solid var(--border)}
