:root{font-family:"Segoe UI",Arial,sans-serif;color:#293d37;background:#f5f7f6;font-synthesis:none;font-size:16px;--green:#176b5b;--muted:#6f7f79;--border:#dfe6e2;--yellow:#e4b641;letter-spacing:0}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #dba931;outline-offset:4px}input:focus,select:focus{outline:2px solid #88b9a7;outline-offset:1px}button{color:inherit}a{color:var(--green)}[hidden]{display:none!important}svg.lucide{width:18px;height:18px;stroke-width:1.7;flex-shrink:0}h1,h2,p{margin:0}h1{font-size:30px;font-weight:600;line-height:1.25}h2{font-size:17px;font-weight:600}.app-header{height:84px;background:white;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:20px}.brand{display:flex;align-items:center;gap:11px;font-size:25px;font-weight:700;color:#265745;text-decoration:none;white-space:nowrap}.brand-mark{width:34px;height:36px;display:grid;place-items:center;background:#e8f1eb;border-radius:7px}.brand-mark svg{width:23px;height:23px}.brand-divider{height:24px;width:1px;background:var(--border);margin:0 10px}.brand-subtitle{font-size:14px;font-weight:400;color:var(--muted)}nav{display:flex;align-items:center;gap:12px}.nav-button{border:0;background:none;display:flex;align-items:center;gap:9px;padding:12px 14px;font-size:14px;border-radius:6px;color:#728079}.nav-button.active{background:#edf4ef;color:var(--green);font-weight:600}.count{background:#e4ece7;padding:2px 6px;font-size:11px;border-radius:4px}.app-shell{display:grid;grid-template-columns:250px 1fr;min-height:calc(100vh - 132px)}.letter-sidebar{padding:32px 22px 24px;border-right:1px solid var(--border);background:#fff;display:flex;flex-direction:column}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:23px}.eyebrow{font-size:11px;font-weight:700;color:#6c8175}.small-count{font-size:11px;color:#91a097}.segmented{display:flex;padding:4px;background:#f0f3f1;border-radius:6px;margin-bottom:23px}.segmented button{border:0;background:transparent;color:var(--muted);padding:9px 6px;flex:1;font-size:14px;border-radius:4px}.segmented button.selected{color:var(--green);background:white;box-shadow:0 1px 4px #183e2012;font-weight:600}.field-label{display:block;font-size:12px;font-weight:500;margin:0 0 8px;color:#718177}select,input[type=text],.sequence-input-row input{width:100%;min-width:0;background:#fff;border:1px solid var(--border);border-radius:5px;padding:11px 10px;color:#3c4e44;font-size:13px}select{padding-right:23px}.alphabet{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:23px 0 18px}.letter-button{height:45px;border:1px solid #e3e9e5;background:#fff;border-radius:6px;position:relative;padding:2px}.letter-button svg{height:39px;width:100%;color:#425b4c}.letter-button:hover{background:#eff5f1;border-color:#acccba}.letter-button.active{border-color:var(--green);background:var(--green)}.letter-button.active svg{color:white}.text-action{display:inline-flex;justify-content:center;align-items:center;gap:7px;background:transparent;border:0;padding:8px 0;color:var(--green);font-size:12px;font-weight:600}.text-action svg{width:16px;height:16px}.full-alphabet{border-top:1px solid var(--border);padding:18px 0;margin-bottom:35px}.sidebar-bottom{margin-top:auto;display:flex;gap:10px;padding:18px 0 0;border-top:1px solid var(--border);color:#627a6b}.sidebar-bottom>svg{color:#9b803d;width:23px;height:23px}.sidebar-bottom strong{font-size:12px;font-weight:600}.sidebar-bottom p{font-size:11px;line-height:1.6;margin-top:6px;color:#87918b}.main-workspace{padding:32px 32px 30px;min-width:0}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:26px}.workspace-heading .eyebrow{margin-bottom:10px}.lesson-navigation{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--muted)}.icon-button{width:32px;height:32px;flex-shrink:0;border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;border-radius:5px}.icon-button:hover{background:#e7ede8}.lesson-navigation .icon-button{border:1px solid var(--border);background:#fff}.workspace-columns{display:grid;grid-template-columns:minmax(0,1fr) 258px;gap:28px;align-items:start}.lesson-column{min-width:0}.player{border:1px solid #d8e4db;border-radius:8px;overflow:hidden;background:white;box-shadow:0 3px 12px #20382c04}.writing-stage{position:relative;aspect-ratio:16/9;background:#fcfdfb;overflow:hidden}.stage-heading{position:absolute;left:5%;right:5%;top:7%;display:flex;justify-content:space-between;align-items:center;gap:8px;z-index:1;font-size:14px;font-weight:600}.stage-heading>span:first-child{display:flex;align-items:center;gap:8px}.stage-heading>span:first-child:before{content:"";width:6px;height:6px;border-radius:50%;background:#d1ad53}.stage-meta{font-size:11px;font-weight:400;color:#849286}.writing-stage>svg{display:block;width:100%;height:100%}.stage-caption{position:absolute;left:7%;right:7%;bottom:5.5%;text-align:center;font-size:14px;line-height:1.5;color:#446050;text-wrap:pretty}.practice-countdown{position:absolute;right:8%;top:23%;display:flex;flex-direction:column;align-items:center;color:var(--green)}.practice-countdown strong{font-size:26px}.practice-countdown span{font-size:10px;color:var(--muted)}.encouragement{position:absolute;inset:30% 5% 26%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px}.encouragement strong{font-size:38px;color:var(--green)}.encouragement span{font-size:15px;color:var(--muted)}.player-controls{padding:15px 18px 10px;border-top:1px solid #e4ece5}.playback-row{display:flex;gap:9px;align-items:center}.play-button{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--green);color:white;border:0;border-radius:5px;padding:10px 13px;min-width:130px;font-size:12px;font-weight:600}.play-button:hover,.generate-button:hover{background:#105848}.play-button svg{width:15px;height:15px;fill:currentColor;stroke-width:1}.playback-time{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.control-spacer{flex:1}input[type=range]{appearance:none;width:100%;height:3px;background:#e5eae5;accent-color:var(--green);margin:15px 0 6px;cursor:pointer;border-radius:0}input[type=range]::-webkit-slider-thumb{appearance:none;background:var(--green);width:9px;height:9px;border-radius:50%}.lesson-steps{display:flex;align-items:center;gap:9px;padding:22px 9px 25px;color:#95a196}.lesson-steps>span{display:flex;align-items:center;gap:7px;font-size:11px;white-space:nowrap}.lesson-steps>span>span{border-radius:50%;height:21px;width:21px;display:grid;place-items:center;background:#e7ede8;color:#809284;font-size:10px}.lesson-steps>div{flex:1;height:1px;background:#dfe6df;min-width:7px}.lesson-steps .current{color:var(--green);font-weight:600}.lesson-steps .current>span{background:#dcece0;color:var(--green)}.sequence-section{border-top:1px solid var(--border);padding-top:22px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:17px}.section-heading>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.section-heading h2{font-size:15px}.section-heading>div>span{font-size:11px;color:#8b988e}.sequence{display:flex;flex-wrap:wrap;gap:8px;min-height:54px;align-items:center}.sequence-item{display:flex;align-items:center;gap:2px;padding:4px 4px 4px 7px;border:1px solid #dbe5dc;border-radius:5px;background:white}.sequence-item>svg{width:25px;height:33px;color:#3b6150}.sequence-item>span{font-size:10px;color:var(--muted);padding-right:4px}.sequence-item .icon-button{width:21px;height:24px}.sequence-item .icon-button svg{height:12px;width:12px}.sequence-empty{font-size:13px;color:var(--muted);padding:10px 0}.sequence-input-row{display:flex;gap:7px;margin-top:14px;align-items:center}.sequence-input-row input{max-width:300px;font-size:12px;background:transparent;padding:10px}.sequence-input-row .icon-button{border:1px solid var(--border);background:white;width:35px;height:35px}.formation-notes{margin-top:22px;padding-top:16px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}.formation-notes summary{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:11px}.formation-notes summary svg{width:14px;height:14px}.formation-notes p{line-height:1.7;margin-top:10px}.settings-panel{border-left:1px solid var(--border);padding-left:25px}.settings-title{display:flex;gap:8px;align-items:center;margin-bottom:25px}.settings-title>svg{width:16px;height:16px;color:#7e8d80}.settings-title h2{font-size:15px}fieldset{border:0;padding:0 0 20px;margin:0 0 19px;border-bottom:1px solid var(--border);min-width:0}legend{font-size:12px;font-weight:600;padding:0 0 18px}.number-field{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:13px;font-size:12px}.number-field>div{display:flex;align-items:center;gap:7px}.number-field input{border:1px solid var(--border);border-radius:4px;width:50px;height:31px;background:white;padding-left:8px;font-size:12px;color:#4e6253}.number-field>div>span{width:27px;font-size:11px;color:var(--muted)}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:13px;font-size:11px;margin-top:17px;line-height:1.5;cursor:pointer}.toggle-row input{appearance:none;flex-shrink:0;width:29px;height:17px;border-radius:14px;background:#d6ded7;position:relative;cursor:pointer;margin:0}.toggle-row input:before{content:"";position:absolute;width:11px;height:11px;top:3px;left:3px;border-radius:50%;background:white;transition:transform .15s}.toggle-row input:checked{background:var(--green)}.toggle-row input:checked:before{transform:translateX(12px)}.provider-status{font-size:10px;color:#839184;line-height:1.6;margin:9px 0 17px}.settings-panel .field-label{font-size:11px;margin-top:14px}.settings-panel select,.settings-panel input[type=text]{font-size:11px;padding:10px 8px}.generate-button{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;border:0;background:var(--green);color:white;border-radius:5px;padding:13px 8px;font-size:12px;font-weight:600}.generate-button>svg{width:17px;height:17px}.export-note{display:flex;align-items:center;justify-content:center;gap:10px;font-size:10px;color:#89968c;margin-top:12px}.export-note>span+span{border-left:1px solid #d2dbd3;padding-left:10px}.job-status{margin-top:22px;padding-top:18px;border-top:1px solid var(--border);font-size:12px}.job-status>div:first-child{display:flex;gap:10px;justify-content:space-between;font-size:11px}.job-status progress{width:100%;height:5px;accent-color:var(--green);margin:12px 0}.job-status p{font-size:11px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}.result-link{display:flex;align-items:center;gap:7px;margin-top:12px;font-size:12px}.result-link svg{width:15px;height:15px}.app-footer{height:48px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 34px;color:#95a196;font-size:10px}.app-footer>span:first-child{font-weight:700;color:#7e9586}.global-error{padding:12px 30px;background:#fff3d9;color:#785a22;font-size:13px}.field-error{font-size:12px;margin-top:8px;color:#a34732}.library-view{padding:38px;min-height:calc(100vh - 132px);max-width:1500px;margin:auto}.library-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:32px}.library-heading .eyebrow{margin-bottom:10px}.secondary-button{display:flex;align-items:center;gap:8px;padding:10px 14px;background:white;border:1px solid var(--border);border-radius:5px;font-size:13px}.library-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}.video-card{border:1px solid var(--border);border-radius:7px;overflow:hidden;background:white}.video-card .video-preview{display:block;aspect-ratio:16/9;width:100%;padding:0;border:0;background:#e8f0e9;position:relative}.video-preview>img{display:block;width:100%;height:100%;object-fit:cover}.video-preview .video-play-icon{position:absolute;inset:0;display:grid;place-items:center;color:var(--green)}.video-play-icon svg{width:38px;height:38px;padding:10px;background:#ffffffec;border-radius:50%}.video-card-info{padding:15px}.video-card-info h2{font-size:16px}.video-card-info>p{font-size:12px;color:var(--muted);margin:6px 0 15px}.video-card-actions{display:flex;align-items:center;justify-content:space-between;font-size:12px}.library-empty{padding:60px 0;display:flex;align-items:flex-start;gap:20px;grid-column:1/-1}.library-empty>svg{width:40px;height:40px;color:#89a694}.library-empty p{margin-top:10px;font-size:14px;color:var(--muted)}dialog{border:1px solid var(--border);border-radius:8px;padding:20px;width:min(960px,95vw);color:inherit}dialog::backdrop{background:#182a25b8}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}dialog video{display:block;width:100%;max-height:75vh;background:#f8faf9}#rendered-video{width:100%;aspect-ratio:16/9;display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.player:fullscreen{display:flex;flex-direction:column;justify-content:center;background:#f8faf9;border-radius:0}.player:fullscreen .writing-stage{max-height:85vh;flex:1}.player:fullscreen .player-controls{max-height:90px}.player:fullscreen .stage-caption{font-size:24px}
@media(min-width:1550px){.app-shell{grid-template-columns:280px 1fr}.letter-sidebar{padding:36px 28px}.main-workspace{padding:38px 44px}.workspace-columns{grid-template-columns:minmax(0,1fr) 300px;gap:38px}.settings-panel{padding-left:30px}.stage-caption{font-size:19px}.stage-heading{font-size:18px}.stage-meta{font-size:13px}.settings-panel select,.settings-panel input[type=text],.number-field,.toggle-row{font-size:13px}.settings-panel .field-label,legend,.settings-title h2{font-size:13px}.lesson-steps>span{font-size:13px}.letter-button{height:50px}}
@media(max-width:1150px){.app-shell{grid-template-columns:210px 1fr}.letter-sidebar{padding:28px 16px}.main-workspace{padding:27px 23px}.workspace-columns{grid-template-columns:minmax(0,1fr)}.settings-panel{border-left:0;border-top:1px solid var(--border);padding:25px 0 0;margin-top:8px}.settings-panel form{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-panel fieldset{margin:0}.settings-panel fieldset:nth-child(3){grid-column:1}.generate-button{grid-column:2;align-self:end;margin-bottom:20px}.settings-title{margin-bottom:20px}.export-note{justify-content:flex-end}.brand-subtitle,.brand-divider{display:none}.alphabet{gap:7px}.letter-button{height:40px}.letter-button svg{height:34px}.small-count{display:none}}
@media(max-width:700px){.app-header{height:69px;padding:0 16px;gap:10px}.brand{font-size:21px;gap:7px}.brand-mark{width:27px;height:29px}.brand-mark svg{width:20px}.nav-button{padding:9px;font-size:12px;gap:6px}.nav-button svg{width:16px}nav{gap:2px}.count{display:none}.app-shell{display:flex;flex-direction:column}.letter-sidebar{border-right:0;border-bottom:1px solid var(--border);padding:20px 18px 16px;display:grid;grid-template-columns:1fr 1fr;gap:10px 17px}.sidebar-heading{grid-column:1/-1;margin:0 0 3px}.small-count{display:block}.segmented{margin:0}.letter-sidebar>.field-label{display:none}.letter-sidebar>select{align-self:stretch}.alphabet{grid-column:1/-1;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px;margin:5px 0 0}.letter-button{height:36px}.letter-button svg{height:31px}.full-alphabet{grid-column:1/-1;border:0;margin:0;padding:6px 0 0;justify-content:flex-end;font-size:11px}.sidebar-bottom{display:none}.main-workspace{padding:24px 18px 30px}.workspace-heading{margin-bottom:20px}.workspace-heading .eyebrow{font-size:10px;margin-bottom:7px}h1{font-size:26px}.lesson-navigation{font-size:11px;gap:7px}.lesson-navigation .icon-button{width:28px;height:28px}.workspace-columns{gap:22px}.stage-heading{font-size:11px}.stage-meta{font-size:10px}.stage-caption{font-size:11px;line-height:1.3;bottom:4%;left:5%;right:5%}.playback-time{font-size:10px}.play-button{font-size:11px;min-width:111px;padding:10px 9px}.player-controls{padding:10px 10px 8px}.playback-row{gap:5px}.playback-row .icon-button{width:28px;height:28px}.practice-countdown strong{font-size:20px}.practice-countdown span{font-size:9px}.lesson-steps{padding:17px 0 22px;gap:7px}.lesson-steps>span{font-size:10px;gap:5px}.lesson-steps>span>span{width:17px;height:17px;font-size:9px}.section-heading h2{font-size:14px}.section-heading>div{gap:7px}.sequence-section{padding-top:19px}.settings-panel form{gap:22px 16px}.settings-panel select,.settings-panel input[type=text]{font-size:12px}.toggle-row{font-size:12px}.settings-title h2{font-size:16px}.settings-panel fieldset{min-width:0}.number-field{font-size:11px}.number-field input{width:42px}.number-field>div{gap:4px}.number-field>div>span{width:22px;font-size:10px}.brand-subtitle{display:none}.app-footer{padding:0 18px}.library-view{padding:24px 18px}.library-heading{align-items:flex-start}.secondary-button{font-size:11px;padding:8px}.library-list{grid-template-columns:1fr}.encouragement strong{font-size:28px}.encouragement span{font-size:12px}}
@media(max-width:370px){.nav-button{font-size:0;gap:0;padding:10px}.nav-button svg{width:20px}.alphabet{grid-template-columns:repeat(7,minmax(0,1fr))}.settings-panel form{grid-template-columns:1fr}.settings-panel fieldset:nth-child(3),.generate-button{grid-column:1}.number-field{font-size:13px}.lesson-steps>span{font-size:9px}.playback-time{display:none}}
.field-label,.text-action,.section-heading>div>span,.lesson-navigation,.settings-panel .field-label,.number-field,.toggle-row,legend,.settings-panel select,.settings-panel input[type=text],.generate-button,.sequence-input-row input{font-size:14px}.eyebrow,.small-count,.stage-meta,.export-note,.provider-status,.playback-time,.sidebar-bottom p,.formation-notes summary,.app-footer{font-size:12px}.number-field input{font-size:14px;width:54px}.number-field>div>span{font-size:12px}.sidebar-bottom strong{font-size:14px}.settings-title h2,.section-heading h2{font-size:16px}.play-button{font-size:14px;min-width:140px}.lesson-steps>span{font-size:12px}.stage-caption{font-size:16px}.letter-sidebar{background:#fdfdfc}.settings-panel legend{color:#5b5846}.sequence-section .section-heading>div>span{font-size:12px}.formation-notes{font-size:14px}.job-status p,.result-link{font-size:13px}.settings-panel form input::placeholder{font-size:12px}.provider-status{line-height:1.5}
@media(max-width:700px){.stage-caption{font-size:12px}.stage-heading{font-size:12px}.stage-meta,.eyebrow{font-size:10px}.field-label,.text-action,.settings-panel .field-label,.number-field,.toggle-row,legend,.settings-panel select,.settings-panel input[type=text],.generate-button,.sequence-input-row input{font-size:13px}.play-button{font-size:12px;min-width:119px}.playback-time{font-size:10px}.lesson-steps>span{font-size:10px}.lesson-navigation{font-size:12px}.number-field input{width:46px;font-size:13px}.number-field>div>span{font-size:11px}.number-field>div{gap:4px}.section-heading>div{display:block}.section-heading>div>span{display:inline-block;margin-top:5px}.full-alphabet{font-size:12px}.app-footer{font-size:10px}.provider-status{font-size:12px}}
.fixed-voice{display:flex;gap:10px;align-items:center;color:var(--green)}.fixed-voice>svg{width:24px;height:24px}.fixed-voice>div{display:flex;flex-direction:column;gap:4px}.fixed-voice strong{font-size:14px;font-weight:600}.fixed-voice span{font-size:12px;color:var(--muted)}.preview-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;min-height:24px;font-size:12px;color:var(--muted)}.preview-status-row .text-action{font-size:12px}.playback-only .workspace-columns{grid-template-columns:minmax(0,1fr);max-width:1100px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.settings-panel form{display:block}.settings-panel fieldset{margin:0;padding:0;border:0}.number-field>strong{font-size:14px;font-weight:500;color:var(--green)}.app-footer a{text-decoration:none;font-weight:600}.preview-status-row{min-height:32px}.formation-notes{margin-top:0}.video-card-info>p{margin-bottom:0}
@media(max-width:1150px){.settings-panel{max-width:440px;width:100%}.settings-panel .number-field{font-size:14px}.settings-panel .toggle-row{font-size:14px}}
