:root{--paper:#F4F1E8;--surface:#fffefa;--ink:#22252d;--muted:#686566;--wine:#6f2d40;--wine-dark:#542030;--wine-soft:#f3e7e8;--gold:#987224;--navy:#172b37;--border:#ddd7cb;--green:#3e6657;--danger:#a32c39;--shadow:0 14px 55px #3427210a;--radius:22px;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;line-height:1.6}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--wine);text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #af8430;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.16}h1,h2,.serif{font-family:Georgia,"Times New Roman",serif;font-weight:400}h1{font-size:clamp(2.8rem,5.2vw,4.8rem);letter-spacing:-.045em;margin-bottom:1.1rem}h2{font-size:clamp(2rem,3.1vw,3rem);letter-spacing:-.025em;margin-bottom:1rem}h3{font-size:1.08rem;font-weight:650}p{margin-bottom:1rem}small,.small{font-size:.85rem;color:var(--muted)}svg{width:22px;height:22px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.skip{position:fixed;left:12px;top:-80px;background:white;padding:12px;z-index:20}.skip:focus{top:12px}.topbar{height:91px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 max(24px,calc((100vw - 1280px)/2));background:#f4f1e8f5}.brand{display:flex;align-items:center;gap:12px;background:none;border:0;padding:0;color:var(--ink);text-align:left;min-height:48px}.brandmark{width:42px;height:42px;display:grid;place-items:center;background:var(--wine);border-radius:50%;color:var(--paper)}.brandmark svg{width:26px;height:26px}.brandname{line-height:1.3;font-weight:650;font-size:.98rem;letter-spacing:-.02em}.brandname span{display:block;color:var(--muted);font-weight:450;font-size:.77rem;letter-spacing:.11em;margin-top:4px}.nav{display:flex;align-items:center;gap:10px}.nav button{background:none;border:0;color:var(--muted);padding:12px 16px;border-radius:12px;min-height:46px;font-size:.91rem}.nav button.active{color:var(--wine);background:#e9e2d9}.nav .install-link{display:flex;gap:7px;align-items:center;color:var(--ink)}.app-main{max-width:1280px;margin:0 auto;padding:48px 24px 40px;min-height:calc(100svh - 180px)}.eyebrow{font-size:.76rem;letter-spacing:.15em;text-transform:uppercase;font-weight:650;color:var(--wine);margin-bottom:22px}.badge{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:30px;padding:5px 11px;font-size:.77rem;color:var(--muted);white-space:nowrap}.badge.wine{background:var(--wine-soft);color:var(--wine);border-color:transparent}.badge.dark{background:#ffffff12;color:#ecebe5;border-color:#ffffff25}.intro-grid{display:grid;grid-template-columns:1fr .94fr;gap:72px;align-items:start;padding:22px 0 48px}.intro-text{padding:20px 0}.intro-text h1 em{color:var(--wine);font-weight:400}.lede{font-size:1.12rem;line-height:1.75;max-width:470px;color:#555058}.meta-line{display:flex;gap:21px;flex-wrap:wrap;margin:26px 0 36px;color:var(--muted);font-size:.85rem}.meta-line span{display:flex;align-items:center;gap:7px}.meta-line svg{width:18px;height:18px}.quote{border-left:3px solid var(--wine);padding:3px 0 3px 19px;margin:0;color:#4a4446;font-size:1rem;max-width:400px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:30px;box-shadow:var(--shadow)}.panel h2{font-size:1.7rem}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.panel-head h2,.panel-head h3{margin:0}.field{display:block;margin-bottom:18px}.field>span,.field-label{font-size:.88rem;font-weight:600;display:block;margin-bottom:8px}.field small{display:block;margin-top:6px;line-height:1.5}input[type=text],input[type=number],textarea,select{width:100%;border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:#fffefa;color:var(--ink);min-height:48px}textarea{resize:vertical;line-height:1.6}select{padding-right:25px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:15px}.check-row{display:flex;gap:12px;align-items:flex-start;cursor:pointer;margin:14px 0;font-size:.92rem}.check-row input{width:20px;height:20px;accent-color:var(--wine);margin:3px 0 0;flex-shrink:0}.check-row strong{font-size:.92rem;font-weight:600}.check-row small{display:block;margin-top:3px}.audio-option{padding:14px 17px;border:1px solid var(--border);border-radius:14px;margin:20px 0}.audio-option .check-row{margin:0}.btn{min-height:50px;border-radius:12px;border:1px solid var(--border);padding:12px 20px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:600;font-size:.94rem;line-height:1.3;text-decoration:none;background:var(--surface);color:var(--ink)}.btn.primary{background:var(--wine);border-color:var(--wine);color:#fffaf5}.btn.primary:hover{background:var(--wine-dark)}.btn.secondary{background:#ede7dc;border-color:transparent}.btn.ghost{border-color:transparent;background:transparent;color:var(--wine)}.btn.danger{color:var(--danger);background:#fff5f5;border-color:#e4c4c8}.btn.full{width:100%}.btn.small{min-height:42px;font-size:.85rem;padding:10px 15px}.btn.light{color:var(--navy);background:#f4f1e8;border-color:transparent}.button-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.setup-note{font-size:.78rem;color:var(--muted);line-height:1.55;text-align:center;margin:13px 6px 0}.section-top{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--border);padding-top:29px;margin-bottom:23px}.section-top h2{font-family:inherit;letter-spacing:0;font-weight:600;font-size:1rem;margin:0}.journey{display:grid;grid-template-columns:repeat(var(--journey-count,5),1fr);gap:13px;margin-bottom:32px}.journey-card{padding:22px 17px;border:1px solid var(--border);border-radius:16px;background:#f8f5ed}.journey-card .num{font-family:Georgia,serif;color:var(--wine);font-size:1.65rem;line-height:1;display:block;margin-bottom:28px}.journey-card h3{font-size:.95rem;margin-bottom:9px}.journey-card p{font-size:.81rem;color:var(--muted);margin:0;line-height:1.5}.bottom-note{display:flex;justify-content:space-between;align-items:start;gap:32px;padding-top:16px;color:var(--muted);font-size:.82rem;line-height:1.6}.bottom-note p{max-width:620px}.text-link{background:none;border:0;padding:0;color:var(--wine);text-decoration:underline;text-underline-offset:4px;font:inherit}.footer{max-width:1280px;margin:auto;padding:22px 24px calc(24px + env(safe-area-inset-bottom));border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:22px;color:var(--muted);font-size:.77rem}.footer span:last-child{white-space:nowrap}.back-btn{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--muted);padding:4px 0;min-height:44px;font-size:.88rem;margin-bottom:18px}.page-heading{margin-bottom:30px}.page-heading p{color:var(--muted);max-width:680px}.prepare-layout{display:grid;grid-template-columns:1.15fr .8fr;gap:27px}.stack{display:flex;flex-direction:column;gap:20px}.notice{border-radius:13px;padding:15px 18px;background:#eee8de;font-size:.87rem;line-height:1.65;margin:16px 0;color:#504a45}.notice.danger{background:#f8e9eb;color:#852b39}.notice.green{background:#e8efea;color:#315746}.notice.compact{padding:11px 14px;font-size:.83rem}.notice p:last-child{margin-bottom:0}.rating{display:flex;gap:5px;flex-wrap:wrap;margin:13px 0 5px}.rating button{flex:1;min-width:32px;min-height:44px;padding:6px 0;border:1px solid var(--border);background:#fffefa;border-radius:9px;font-size:.93rem}.rating button.selected{background:var(--wine);border-color:var(--wine);color:white}.rating-caption{display:flex;justify-content:space-between;font-size:.75rem;color:var(--muted)}.range-field{margin:17px 0}.range-field label{display:flex;justify-content:space-between;gap:10px;font-size:.85rem;margin-bottom:8px}input[type=range]{width:100%;accent-color:var(--wine);min-height:24px}details{margin:18px 0}summary{cursor:pointer;color:var(--wine);font-size:.91rem;font-weight:550;padding:9px 0}details>div{padding-top:15px}.session-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;align-items:start}.session-sidebar{position:sticky;top:24px}.session-sidebar h2{font-size:1.3rem;margin:14px 0 8px}.steps{list-style:none;padding:0;margin:29px 0}.steps li{position:relative;display:flex;gap:13px;align-items:center;margin-bottom:21px;line-height:1.4;font-size:.86rem;color:var(--muted)}.step-num{width:30px;height:30px;display:grid;place-items:center;border:1px solid #cfc7b9;border-radius:50%;font-size:.8rem;flex-shrink:0;background:var(--paper)}.steps li.active{font-weight:650;color:var(--wine)}.steps li.active .step-num{background:var(--wine);border-color:var(--wine);color:white}.steps li.done .step-num{color:var(--green);background:#e5ece5;border-color:#b7cab9}.session-card{background:var(--surface);border:1px solid var(--border);border-radius:24px;overflow:hidden}.stage-header{padding:27px 32px 0}.stage-header .eyebrow{margin-bottom:10px}.stage-header h1{font-size:clamp(2rem,3.5vw,3rem);margin-bottom:17px;letter-spacing:-.025em}.stage-instruction{font-size:1.05rem;line-height:1.8;color:#4f4a4e;max-width:720px}.prompts{padding-left:20px;color:var(--muted);font-size:.9rem;line-height:1.7;margin-bottom:22px}.prompts li{margin:6px 0}.stage-body{padding:0 32px 26px}.record-surface{position:relative;min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--navy);color:#f4f1e8;border-radius:17px;padding:28px;text-align:center;overflow:hidden}.record-surface .camera-ring{border:1px solid #ffffff32;border-radius:50%;width:66px;height:66px;display:grid;place-items:center;margin-bottom:19px}.record-surface .camera-ring svg{width:29px;height:29px}.record-surface p{font-size:1rem;margin:0 0 6px}.record-surface small{color:#b7c0c4;max-width:310px}.record-status{position:absolute;left:16px;top:13px;display:flex;align-items:center;gap:8px;font-size:.75rem;color:#cbd2d1}.record-status .dot{width:7px;height:7px;background:#aeacaa;border-radius:50%}.record-status.running .dot{background:#e0a0a1}.record-status.running{color:#f1d1d1}.video-frame{background:#15232b;border-radius:16px;overflow:hidden;min-height:150px;position:relative}.video-frame video{display:block;width:100%;max-height:380px;min-height:180px;background:#15232b;object-fit:contain}.video-frame .video-caption{padding:10px 14px;color:#c8ced1;font-size:.76rem}.hint{font-size:.83rem;color:var(--muted);line-height:1.65;margin:14px 2px}.timerbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 32px;border-top:1px solid var(--border);background:#faf7ef}.timerblock{display:flex;align-items:center;gap:16px}.clock{font-size:2.05rem;font-variant-numeric:tabular-nums;font-weight:500;letter-spacing:-.06em;line-height:1.1}.clock-label{font-size:.75rem;color:var(--muted);margin-top:4px}.progress-track{height:3px;background:#e5dfd3}.progress-track>div{height:100%;width:0;background:var(--wine);transition:width .2s}.bilateral-strip{display:flex;align-items:center;justify-content:center;gap:15px;padding:9px 12px;color:var(--muted);font-size:.76rem}.ear-indicator{display:flex;align-items:center;gap:7px;min-width:55px}.ear-indicator i{width:9px;height:9px;border:1px solid #bfa3aa;border-radius:50%;background:transparent}.ear-indicator.lit i{background:var(--wine);border-color:var(--wine)}.ear-indicator.lit{color:var(--wine)}.session-subactions{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:18px;flex-wrap:wrap}.stop-button{min-height:44px;border:1px solid #d9b7bc;border-radius:11px;padding:9px 13px;background:transparent;color:var(--danger);font-size:.85rem;display:inline-flex;align-items:center;gap:7px}.notes-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:23px}.notes-grid .field{margin:0}.notes-grid .field:last-child{grid-column:1/-1}.notes-grid textarea{font-size:.89rem;min-height:110px}.notes-title{margin:24px 0 0;display:flex;justify-content:space-between;gap:10px;align-items:center}.notes-title h3{margin:0}.note-snapshot{margin:18px 0;padding:16px 18px;background:#f0ece3;border-radius:13px;font-size:.89rem}.note-snapshot p{margin:8px 0}.rest-view{background:#eceae1;border-radius:17px;min-height:200px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:15px;padding:25px}.rest-view svg{width:34px;height:34px;color:var(--green)}.rest-view p{max-width:430px;margin:0;color:var(--muted)}.page-narrow{max-width:870px;margin:auto}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:25px 0}.stat{border:1px solid var(--border);border-radius:15px;padding:21px;background:var(--surface)}.stat .value{font-family:Georgia,serif;font-size:2.25rem;color:var(--wine);line-height:1.2;margin-bottom:9px}.stat .label{font-size:.81rem;color:var(--muted)}.document-list{display:flex;flex-direction:column;gap:15px}.document-card{background:var(--surface);border:1px solid var(--border);border-radius:17px;padding:23px}.document-card h3{font-size:1rem;margin-bottom:9px}.document-card p{color:var(--muted);font-size:.93rem;margin-bottom:0}.empty{text-align:center;padding:65px 24px;background:var(--surface);border:1px dashed #c5bfb3;border-radius:22px}.empty svg{width:38px;height:38px;color:var(--wine);margin-bottom:15px}.empty h2{font-size:1.8rem}.empty p{color:var(--muted);max-width:450px;margin:0 auto 24px}.history-row{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:23px;border:1px solid var(--border);border-radius:16px;background:var(--surface);margin-bottom:13px}.history-row h3{margin-bottom:6px;font-size:1rem}.history-row p{font-size:.84rem;color:var(--muted);margin:0}.history-row .button-row{justify-content:flex-end}.install-steps{padding-left:23px;color:var(--muted);line-height:1.9}.install-steps li{padding-left:6px;margin:8px 0}.statusline{margin-top:14px;color:var(--green);font-size:.84rem;min-height:24px}.statusline.error{color:var(--danger)}#toast{position:fixed;bottom:calc(24px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:min(90vw,600px);padding:14px 21px;background:#25382f;color:#fff;border-radius:13px;box-shadow:0 8px 35px #0002;z-index:50;display:none;font-size:.92rem}#toast.show{display:block}dialog{border:1px solid var(--border);border-radius:22px;padding:30px;background:var(--surface);color:var(--ink);max-width:min(560px,calc(100vw - 28px));width:100%;max-height:calc(100svh - 36px);overflow:auto;box-shadow:0 25px 100px #0003}dialog::backdrop{background:#14212980;backdrop-filter:blur(3px)}dialog h2{font-size:2rem}dialog p{color:var(--muted);font-size:.96rem}dialog .button-row{justify-content:flex-end;margin-top:25px}.modal-rating{margin-top:22px}.modal-error{color:var(--danger);font-size:.88rem}.help-steps{padding-left:22px;line-height:1.8;color:var(--muted)}.pilot-label{color:var(--gold);font-size:.82rem}.fallback{padding:50px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1400px){.app-main{padding-top:60px}.intro-grid{gap:100px}}
@media(max-width:1000px){.intro-grid{gap:32px}.session-layout{grid-template-columns:175px minmax(0,1fr);gap:20px}.prepare-layout{grid-template-columns:1fr 1fr}.stage-header{padding:25px 24px 0}.stage-body{padding:0 24px 22px}.timerbar{padding:22px 24px}.timerbar .button-row{gap:7px}.timerbar .btn{font-size:.85rem;padding:11px 14px}.journey-card{padding:18px 13px}.journey-card h3{font-size:.88rem}}
@media(max-width:760px){.topbar{height:auto;min-height:78px;padding:15px 20px;gap:12px;flex-wrap:wrap}.brandname{font-size:.86rem}.brandname span{font-size:.75rem}.brandmark{width:36px;height:36px}.nav{gap:3px}.nav button{font-size:.8rem;padding:10px 11px;min-height:42px}.nav .install-link{padding:10px}.nav .install-link span{display:none}.app-main{padding:27px 20px 32px}.intro-grid{grid-template-columns:1fr;gap:27px;padding:0 0 33px}.intro-text{padding:5px 0}.intro-text h1{font-size:3.35rem;max-width:560px}.lede{font-size:1rem;max-width:none}.eyebrow{margin-bottom:17px}.meta-line{margin:22px 0;gap:16px}.quote{display:none}.panel{padding:25px;border-radius:19px}.journey{grid-template-columns:repeat(var(--journey-count,5),155px);overflow-x:auto;gap:10px;padding-bottom:8px;scroll-snap-type:x proximity}.journey-card{scroll-snap-align:start}.journey-card .num{margin-bottom:23px}.bottom-note{flex-direction:column;gap:6px;padding:0}.footer{padding:20px 20px calc(23px + env(safe-area-inset-bottom));font-size:.75rem;flex-direction:column;gap:7px}.prepare-layout{grid-template-columns:1fr;gap:20px}.session-layout{display:block}.session-sidebar{position:static}.session-sidebar>h2,.session-sidebar>.small,.session-sidebar>.notice{display:none}.session-sidebar>.badge{margin-bottom:15px}.steps{display:flex;gap:7px;margin:0 0 22px}.steps li{flex:1;flex-direction:column;gap:7px;text-align:center;font-size:.75rem;margin:0;line-height:1.3}.step-num{width:28px;height:28px;font-size:.76rem}.stage-header{padding:23px 20px 0}.stage-header h1{font-size:2.25rem}.stage-instruction{font-size:.98rem;line-height:1.75}.stage-body{padding:0 20px 21px}.prompts{font-size:.86rem}.record-surface{min-height:220px;padding:25px 19px}.record-surface small{font-size:.78rem}.timerbar{padding:19px 20px;align-items:start;gap:17px;flex-direction:column}.timerbar .button-row{width:100%}.timerbar .btn{flex:1;min-height:49px;font-size:.91rem}.timerblock{width:100%;justify-content:space-between}.clock{font-size:2.1rem}.clock-label{display:inline;margin-left:10px}.notes-grid{grid-template-columns:1fr}.notes-grid .field:last-child{grid-column:auto}.notes-grid textarea{min-height:93px}.summary-grid{gap:9px}.stat{padding:16px 12px}.stat .value{font-size:1.9rem}.stat .label{font-size:.75rem}.history-row{flex-direction:column;padding:20px}.history-row .button-row{justify-content:flex-start}.section-top{padding-top:24px}.session-subactions{align-items:stretch}.session-subactions .stop-button{margin-left:auto}.page-heading{margin-bottom:22px}dialog{padding:24px}.rating{gap:4px}.rating button{min-width:26px;font-size:.86rem}.two-col{gap:11px}}
@media(max-width:520px){.topbar{align-items:flex-start;flex-direction:column}.brandmark{flex-shrink:0}.nav{width:100%;justify-content:space-between}}
@media(max-width:390px){.topbar{padding:13px 15px}.nav button{padding:8px;font-size:.76rem}.brandname span{font-size:.75rem}.app-main{padding-left:15px;padding-right:15px}.intro-text h1{font-size:3rem}.panel{padding:21px}.two-col{grid-template-columns:1fr}.rating button{min-width:23px}.steps li{font-size:.75rem}.stage-header h1{font-size:2rem}.session-subactions{flex-direction:column}.session-subactions .stop-button{margin:0;justify-content:center}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.topbar,.footer,.btn,.nav,.back-btn,.session-subactions{display:none}.app-main{padding:0}body{background:white}.panel{box-shadow:none;break-inside:avoid}}

[hidden]{display:none!important}
@media(max-width:760px){.journey{grid-auto-flow:column;grid-auto-columns:155px}}

/* Guided prompts stay legible while session controls remain within reach. */
.guidance{margin:24px 0}.guidance-label{font-size:.78rem;font-weight:650;letter-spacing:.06em;color:var(--wine);margin-bottom:12px}.guidance-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.guide-card{display:flex;gap:13px;padding:18px;border:1px solid var(--border);border-radius:16px;background:#f8f5ee}.guide-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#eee0e3;color:var(--wine);flex-shrink:0}.guide-icon svg{width:22px;height:22px}.guide-card h3{font-size:.96rem;line-height:1.35;margin:0 0 7px}.guide-card p{font-size:.87rem;line-height:1.65;color:#555058;margin:0 0 10px}.guide-number{float:right;margin-left:10px;color:#8a7a78;font-size:.71rem;font-variant-numeric:tabular-nums}.sentence-starter{font-size:.87rem;line-height:1.55;color:var(--wine);font-weight:550}.optional-guide{font-size:.88rem;margin-bottom:0}.optional-guide p{color:var(--muted);margin:5px 0 0}.note-help{margin:0 0 9px!important}.notes-grid textarea::placeholder{color:#777070;opacity:1}.session-card{overflow:visible}.record-surface p{font-family:Georgia,serif;font-size:1.45rem;line-height:1.5;max-width:470px}.record-surface small{max-width:430px;line-height:1.7}.timerbar{border-radius:0 0 20px 20px}.timerbar .button-row{justify-content:flex-end}.timerbar .btn{font-size:.85rem;padding:12px 14px}#stage-finish{border-color:#b9909a;color:var(--wine)}
.scale-cards{display:grid;gap:13px;margin:18px 0}.scale-card{padding:20px;border:1px solid var(--border);border-radius:15px;background:#faf7f0}.scale-card h3{margin-bottom:7px}.scale-card p{font-size:.85rem;color:var(--muted);line-height:1.6}.scale-card-top{display:flex;justify-content:space-between;align-items:start;gap:15px}.scale-score{width:86px!important;padding-left:4px!important;padding-right:4px!important;text-align:center;font-size:1.35rem!important;font-weight:600!important;color:var(--wine)!important;background:var(--surface)!important;flex-shrink:0}.scale-card .btn{min-height:44px}.scale-state{display:block;font-size:.8rem;color:var(--muted);margin-bottom:12px}.scale-score-label{display:block;font-size:.68rem;text-align:center;color:var(--muted);margin-bottom:4px}.scale-disclaimer{font-size:.8rem!important;margin:12px 0 0!important}.scale-modal{max-width:min(720px,calc(100vw - 24px));padding:0;overflow:auto}.scale-modal header{padding:24px 26px 16px;border-bottom:1px solid var(--border)}.scale-modal h2{font-size:1.75rem;margin:6px 0 10px}.scale-modal .scale-intro{font-size:.88rem;line-height:1.6;margin:0}.scale-modal .source-warning{font-size:.78rem;background:#eee8de;border-radius:9px;padding:10px 12px;margin:12px 0 0;color:#605445}.scale-question{padding:23px 26px;margin:0;border:0;min-width:0}.scale-question legend{float:left;width:100%;font-size:1.1rem;font-weight:650;line-height:1.6;margin-bottom:15px}.scale-options{display:grid;gap:9px;clear:both}.scale-option{display:flex;gap:12px;align-items:flex-start;cursor:pointer;padding:13px 15px;border:1px solid var(--border);border-radius:12px;font-size:.96rem;line-height:1.6}.scale-option:has(input:checked){border-color:var(--wine);background:var(--wine-soft)}.scale-option input{margin:5px 0 0;width:19px;height:19px;accent-color:var(--wine);flex-shrink:0}.scale-modal footer{position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--border);padding:17px 26px;box-shadow:0 -5px 18px #34272108}.scale-modal .button-row{margin:0;justify-content:space-between}.scale-modal .scale-progress{height:4px;background:#e9dfd5;border-radius:4px;overflow:hidden;margin:13px 0 0}.scale-modal .scale-progress span{display:block;height:100%;background:var(--wine)}.scale-question-count{display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--wine);font-size:.8rem;font-weight:600}.scale-question-count button{font-size:.8rem}.scale-optional-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:13px}.scale-optional-actions button{font-size:.78rem;min-height:35px}.scale-results{width:100%;border-collapse:collapse;font-size:.9rem}.scale-results th,.scale-results td{text-align:left;border-bottom:1px solid var(--border);padding:12px 8px}.scale-results th{color:var(--muted);font-weight:550}.scale-results td:first-child{font-weight:600}.scale-result-note{font-size:.8rem!important;color:var(--muted);margin-top:13px}.scale-risk-note{margin:0 26px 20px;font-size:.84rem}.scale-risk-note[hidden]{display:none}
@media(max-width:760px){.guidance-grid{grid-template-columns:1fr}.guide-card{padding:15px}.guide-icon{width:35px;height:35px}.guide-card p{font-size:.85rem}.record-surface{min-height:210px}.timerbar{position:sticky;bottom:0;z-index:10;padding:12px 16px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px #33222212;gap:10px}.timerbar .button-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.timerbar .btn{min-height:44px;font-size:.86rem}.timerbar #stage-finish{grid-column:1/-1}.timerbar .clock{font-size:1.65rem}.timerbar .badge{font-size:.7rem;white-space:normal}.timerbar .clock-label{font-size:.7rem}.scale-modal header{padding:20px 18px 13px}.scale-modal h2{font-size:1.5rem}.scale-question{padding:20px 18px}.scale-modal footer{padding:14px 18px calc(14px + env(safe-area-inset-bottom))}.scale-option{font-size:.91rem}.scale-modal .btn{padding:11px 14px;font-size:.87rem}.scale-risk-note{margin-left:18px;margin-right:18px}.scale-card{padding:17px}.scale-score{width:80px!important}}

.scale-source-label{font-size:.74rem!important;color:#756450!important;margin:8px 0 0}.scale-instructions{border:0;padding:0;margin:6px 0 0}.scale-instructions summary{font-size:.78rem;color:var(--wine);padding:3px 0}.scale-instructions>div{padding:9px 0 0}.scale-instructions p{font-size:.84rem;line-height:1.6}.scale-modal .scale-risk-note{scroll-margin-bottom:180px}

/* Short narrated teaching guides, with the full source-based instructions available underneath. */
.learn-entry{margin:22px 0 27px}.learn-launch{width:100%;display:flex;align-items:center;gap:15px;text-align:left;padding:18px;border:1px solid #d6bec4;border-radius:15px;background:#f3e7e9;color:var(--wine)}.learn-launch strong{display:block;font-size:.98rem}.learn-launch small{display:block;margin-top:4px;color:#755762;font-size:.8rem}.learn-play{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border-radius:50%;background:var(--wine);color:white;font-size:1.7rem}.learn-arrow{margin-left:auto;font-size:1.5rem}.learn-entry details{margin:10px 0 0}.learn-entry summary{font-size:.86rem;line-height:1.55}.learn-entry details>div{padding:15px 0 4px}.learn-steps{padding-left:25px;margin:0}.learn-steps li{padding-left:6px;margin-bottom:22px}.learn-steps li::marker{font-family:Georgia,serif;color:var(--wine);font-size:1.2rem}.learn-steps h3{font-size:.96rem;margin-bottom:8px}.learn-steps p,.learn-background p{font-size:.91rem;line-height:1.8;color:var(--muted)}.learn-example{border-left:3px solid var(--gold);padding:16px 19px;background:#f5f0e6;border-radius:0 12px 12px 0}.learn-example>span{font-size:.64rem;letter-spacing:.09em;font-weight:650;color:#826520;line-height:1.65;display:block}.learn-example p{font-family:Georgia,serif;font-size:1.03rem;line-height:1.7;margin:8px 0 0}.learn-source{font-size:.73rem;color:var(--muted);margin:12px 0 0;line-height:1.65}.learn-background h3{font-size:.98rem}.learn-background .small{font-size:.78rem}.coach-modal{max-width:min(810px,calc(100vw - 24px));padding:0;border:0;overflow:auto}.coach-heading{display:flex;justify-content:space-between;align-items:start;gap:15px;padding:26px 28px 19px}.coach-heading .eyebrow{font-size:.68rem;margin-bottom:10px}.coach-heading h2{font-size:1.9rem;margin:0}.coach-heading #coach-close{font-size:.81rem;white-space:nowrap;padding:5px;min-height:35px}.coach-body{display:grid;grid-template-columns:1fr 1fr;align-items:center;background:#f5f0e7;border-block:1px solid #e7dfd2}.coach-visual{position:relative;padding:13px 5px 25px;overflow:hidden}.coach-art{display:block;width:100%;height:auto;stroke:#764151;stroke-width:1.7;fill:none;max-height:240px}.coach-art .coach-halo{fill:#eae0d2;stroke:none}.coach-art .coach-orbit{stroke:#d7c7b9;stroke-dasharray:2 8}.coach-art .coach-ground{stroke:#d1bfaf}.coach-phone>rect{fill:#7a3e50;stroke:#7a3e50;stroke-width:2}.coach-phone .coach-screen{fill:#fffdf7;stroke:#dfced2}.coach-phone>path{stroke:#e7cbd2}.coach-person{stroke:#a77664;stroke-width:2.2}.coach-person circle{fill:#e7cfc1}.coach-person>path:first-of-type{fill:#e0c2bc}.coach-smile{stroke:#875952}.coach-paper{display:none;stroke:#a88655;stroke-width:3;stroke-linecap:round}.coach-visual[data-visual=pen] .coach-person{display:none}.coach-visual[data-visual=pen] .coach-paper{display:block}.coach-bubble>path{fill:#fdfbf6;stroke:#cbb2b7}.coach-symbol{stroke:#884957;stroke-width:1.2}.coach-note rect{fill:#e5d5b5;stroke:#cbb890}.coach-note path{stroke:#a18a5f;stroke-width:2.3}.coach-scene-label{position:absolute;bottom:13px;left:0;right:0;text-align:center;font-size:.65rem;letter-spacing:.2em;color:#957466}.coach-caption{padding:25px 28px 25px 12px}.coach-caption-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#eadde0;color:var(--wine);margin-bottom:13px}.coach-caption h3{font-size:1.1rem;line-height:1.4;margin-bottom:10px}.coach-caption p{font-size:.94rem;line-height:1.8;color:#625452;margin:0}.coach-scene-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;padding:15px 26px 4px}.coach-scene-tabs button{border:1px solid transparent;border-radius:11px;background:#f6f3ed;text-align:left;padding:11px 10px;font-size:.76rem;line-height:1.4;color:var(--muted);min-height:58px}.coach-scene-tabs button>span{display:block;font-size:.62rem;letter-spacing:.12em;margin-bottom:4px}.coach-scene-tabs button.selected{background:var(--wine-soft);color:var(--wine);border-color:#d8bdc5}.coach-controls{padding:17px 28px 22px}.coach-time{display:flex;justify-content:space-between;font-size:.76rem;color:var(--muted);margin-bottom:8px}.coach-progress{height:4px;background:#e9e0d8;border-radius:8px;overflow:hidden}.coach-progress>span{display:block;height:100%;background:var(--wine);width:0;transition:width .2s linear}.coach-controls .button-row{justify-content:space-between;gap:10px;margin-top:17px}.coach-controls .btn{font-size:.86rem;flex:1}.coach-controls #coach-status{font-size:.76rem;line-height:1.6;margin:12px 0 0}.coach-transcript{border:0;padding:0;margin:8px 0 0}.coach-transcript summary{font-size:.78rem}.coach-transcript>div{padding:12px 0 0}.coach-transcript p{font-size:.88rem;line-height:1.75}.is-playing .coach-bubble{animation:coachFloat 2.5s ease-in-out infinite;transform-origin:center}.is-playing .coach-note{animation:coachFloat 3.5s ease-in-out infinite reverse}.is-playing .coach-paper{stroke-dasharray:60;animation:coachWrite 3s ease-in-out infinite}.is-playing .coach-caption-icon{animation:coachGlow 2.6s ease-in-out infinite}@keyframes coachFloat{50%{transform:translateY(-4px)}}@keyframes coachWrite{0%{stroke-dashoffset:60}70%,100%{stroke-dashoffset:0}}@keyframes coachGlow{50%{background:#dfc6cf}}
@media(max-width:760px){.learn-launch{padding:15px;gap:11px}.learn-launch strong{font-size:.88rem}.learn-launch small{font-size:.74rem}.learn-play{width:37px;height:37px;font-size:1.45rem}.learn-entry summary{font-size:.82rem}.coach-heading{padding:20px 19px 16px}.coach-heading h2{font-size:1.45rem;line-height:1.2}.coach-heading .eyebrow{font-size:.6rem}.coach-body{display:block}.coach-visual{padding:5px 0 16px}.coach-art{height:155px;max-height:155px}.coach-scene-label{bottom:4px;font-size:.6rem}.coach-caption{padding:10px 23px 19px;min-height:130px}.coach-caption-icon{display:none}.coach-caption h3{font-size:1.03rem;margin-bottom:6px}.coach-caption p{font-size:.88rem;line-height:1.7}.coach-scene-tabs{gap:5px;padding:12px 17px 3px}.coach-scene-tabs button{padding:9px 8px;font-size:.69rem;min-height:62px}.coach-controls{padding:13px 19px calc(19px + env(safe-area-inset-bottom))}.coach-controls .btn{font-size:.79rem;padding:12px 10px;min-height:45px}.coach-controls #coach-status{font-size:.72rem}.coach-time{font-size:.7rem}.learn-steps p{font-size:.88rem}.learn-example p{font-size:.96rem}}
@media(prefers-reduced-motion:reduce){.coach-modal *{animation:none!important;transition:none!important}}

.learn-context{font-size:.88rem;line-height:1.65;color:var(--muted);padding:12px 16px;background:#f4f0e7;border-radius:12px}.coach-context{margin:14px 24px 0}

.footer-links{display:flex;flex-wrap:wrap;gap:8px 18px;flex-shrink:0}.footer-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--wine);text-underline-offset:3px}

/* Readable results and questionnaire progress use neutral, non-diagnostic visuals. */
.result-overview,.result-scales{margin:22px 0}.result-scale-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px}.result-scale{min-width:0;padding:20px;border:1px solid #e3d9cb;border-radius:16px;background:#fcfaf5}.result-scale h3{font-size:1.05rem;line-height:1.45}.result-phase{border-top:1px solid #e3d9cb;padding-top:14px;margin-top:17px}.result-phase h4{font-weight:600;font-size:.76rem;line-height:1.5;color:var(--muted);margin:0}.result-number{font:1.5rem/1.35 Georgia,serif;margin:8px 0 12px;overflow-wrap:anywhere}.answer-progress,.distress-bar{height:6px;background:#e8e1d5;border-radius:8px;overflow:hidden;margin:9px 0 12px}.answer-progress>span,.distress-bar>span{display:block;height:100%;background:var(--wine)}.result-timing{font-size:.75rem;line-height:1.65;color:var(--wine);margin-top:10px}.distress-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:22px 0 12px}.distress-pair>div>span{color:var(--muted);font-size:.84rem}.distress-pair strong{display:block;font:1.65rem/1.4 Georgia,serif;margin:5px 0}.result-journey{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;list-style:none;padding:10px 0 0;margin:0}.result-journey li{display:flex;gap:12px;font-size:.88rem;line-height:1.5}.journey-dot{display:grid;place-items:center;flex-shrink:0;width:27px;height:27px;border-radius:50%;background:#eee8dd;color:var(--muted)}.result-journey .done .journey-dot{background:var(--wine-soft);color:var(--wine)}.result-journey small{display:block;font-size:.74rem;color:var(--muted);margin-top:3px}.export-options{margin-top:20px}.export-options summary{font-size:.88rem}.export-options .button-row{margin:14px 0}.session-sidebar #session-scales{margin:0 0 17px}.scale-cards .scale-card{min-width:0}.scale-card-top{flex-wrap:wrap}#summary-scales{margin-bottom:24px}dialog .result-scales,dialog .result-overview{padding:16px}dialog .result-scale-grid{grid-template-columns:1fr}dialog .scale-cards{grid-template-columns:1fr}
@media(max-width:760px){.result-scale-grid{grid-template-columns:1fr}.result-scale{padding:17px}.result-journey{grid-template-columns:1fr}.distress-pair{gap:16px}.distress-pair strong{font-size:1.35rem}.session-sidebar #session-scales{display:flex;width:auto;margin:12px 0}.result-number{font-size:1.4rem}}

/* Keep phone gestures on one vertical reading path; preserve pinch zoom and controls. */
html{overflow-x:hidden;overscroll-behavior-x:none}
body{max-width:100%;overflow-x:clip;overscroll-behavior-x:none}
@supports(overflow:clip){html{overflow-x:clip}}
#app,.app-main{width:100%;min-width:0}
.intro-grid>*,.prepare-layout>*,.session-layout>*,.guidance-grid>*,.guide-card>*,.two-col>*,.notes-grid>*,.coach-body>*,.coach-heading>*,.learn-launch>*,.steps li{min-width:0}
.app-main,dialog{overflow-wrap:anywhere}
.learn-arrow{flex-shrink:0}
button,input,textarea,select,video{max-width:100%}
input[type=range]{margin-inline:0}
dialog{overflow-x:hidden;overscroll-behavior:contain}
.page-scroll-position{position:fixed;right:max(3px,env(safe-area-inset-right,0px));top:12px;width:3px;height:calc(100dvh - 24px);padding:0!important;margin:0!important;background:#6f2d4020;border-radius:8px;pointer-events:none;z-index:60;contain:strict}
.page-scroll-position>span{display:block;width:100%;background:#6f2d40a6;border-radius:8px;will-change:transform}
@media(max-width:760px){
 .journey{grid-template-columns:minmax(0,1fr);grid-auto-flow:row;grid-auto-columns:auto;overflow:visible;scroll-snap-type:none;padding-bottom:0;gap:10px}
 .journey-card{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:14px;align-items:center;padding:16px 18px;scroll-snap-align:none}
 .journey-card .num{grid-column:1;grid-row:1/3;margin:0;font-size:1.35rem}
 .journey-card h3{grid-column:2;margin:0 0 4px;font-size:.94rem}
 .journey-card p{grid-column:2;font-size:.8rem}
 .section-top{flex-wrap:wrap;gap:9px}
 .footer span:last-child{white-space:normal}
 .steps{gap:5px}.steps li{overflow-wrap:anywhere}
}
@media print{.page-scroll-position{display:none!important}}
.scale-card .button-row{margin-top:10px}.scale-flow-note{margin-bottom:12px}
