*{box-sizing:border-box} :root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#e9ede7;background:#101311;font-size:16px}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;color:inherit;background:#242a25;border:1px solid #3b443c;border-radius:10px;padding:12px 18px;min-height:44px}button:hover{filter:brightness(1.15)}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #c5ed94;outline-offset:4px}header{height:94px;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;border-bottom:1px solid #2a302b}.brand{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:650;text-decoration:none;color:inherit}.brand small{font-size:14px;font-weight:400;color:#9da89e}.logo{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#c5ed94;color:#223419;font-size:22px}.header-actions{display:flex;align-items:center;gap:12px}.device{font-size:14px;color:#8e9a90;margin-right:20px}main{max-width:1600px;margin:auto;padding:36px 4vw;display:grid;grid-template-columns:270px minmax(0,1fr);gap:40px}.eyebrow{font-size:12px;letter-spacing:2px;color:#9ca98e}h1{font-size:36px;line-height:1.5;letter-spacing:-1px;font-weight:500;margin:20px 0 12px}.intro{color:#9da69e;font-size:15px;line-height:1.8;margin-bottom:30px}.label{font-size:14px;margin-bottom:12px}.card{border:1px solid #333d33;border-radius:14px;padding:16px;background:#191f1a}.segmented{display:flex;padding:4px;background:#101611;border-radius:9px}.segmented button{padding:10px 6px;border:0;background:transparent;flex:1;font-size:14px}.segmented .selected{background:#c5ed94;color:#23351b}.card p,.tip p{font-size:14px;line-height:1.7;color:#9ea99f;margin-bottom:0}.settings{padding:24px 0}.settings label{display:block;font-size:14px;margin-bottom:23px}.settings output{float:right;color:#b9c6b6;font-variant-numeric:tabular-nums}input[type=range]{width:100%;margin-top:18px;accent-color:#c5ed94;height:5px}.settings .switchrow{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}input[type=checkbox]{accent-color:#c5ed94;width:22px;height:22px}.tip{border-top:1px solid #303830;padding-top:18px}.tip span{font-size:14px;color:#c5ed94}.textbutton{padding-left:0;background:none;border:0;font-size:14px;color:#aab5aa;margin-top:10px}.studio{background:#191e1a;border:1px solid #3a443a;border-radius:20px;min-width:0;overflow:hidden;align-self:start;box-shadow:0 24px 70px #0003}.studio-head{display:flex;justify-content:space-between;padding:22px 26px;color:#b9c4b8;font-size:14px;border-bottom:1px solid #333b32}.studio-head>div{display:flex;align-items:center;gap:10px}.live-icon{width:7px;height:7px;border:1px solid #badb9a;border-radius:50%}#wordcount{color:#83917f}.reader-wrap{position:relative;background:#0d100d;isolation:isolate}.guide{position:absolute;top:32%;left:0;right:0;height:82px;background:linear-gradient(90deg,#c5ed9415,#c5ed9407);border-left:3px solid #c5ed94;pointer-events:none;z-index:-0}#reader{height:480px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;position:relative;padding:0 9%;scroll-behavior:auto}#reader::-webkit-scrollbar{display:none}#script{font-size:44px;line-height:1.85;font-weight:550;letter-spacing:1px;padding:154px 0 350px;white-space:pre-wrap;overflow-wrap:anywhere;color:#7a8777}#script span{cursor:pointer}#script .read{color:#b4bfae}#script .current{color:#d4f4ae;background:#c5ed9410;border-radius:3px}.reading-tag{position:absolute;top:calc(32% + 28px);right:13px;color:#849e70;font-size:11px;writing-mode:vertical-rl;pointer-events:none}.status{display:flex;justify-content:space-between;gap:10px;padding:17px 26px;color:#bbd1ac;font-size:14px}.track{height:2px;background:#30392d}.track div{height:2px;width:0;background:#c5ed94}.controls{display:flex;align-items:center;justify-content:space-between;padding:24px 26px 12px}.controls>button:first-child{background:transparent;border:0;color:#a6b29e}.primary{background:#c5ed94;color:#22351a;border:0;font-weight:600}.controls .primary{min-width:210px;font-size:18px;padding:15px 28px}.timer{width:82px;text-align:right;font-variant-numeric:tabular-nums;color:#a6b29e;font-size:18px}.heard{font-size:13px;color:#85917e;text-align:center;padding:0 26px;min-height:20px;margin-bottom:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}footer{max-width:1600px;margin:auto;padding:0 4vw 24px;display:flex;justify-content:space-between;color:#697568;font-size:12px;letter-spacing:1px}dialog{background:#1d251e;color:#e4ecdf;border:1px solid #4d5d47;border-radius:20px;padding:28px;width:min(620px,92vw);max-height:90dvh}dialog::backdrop{background:#000a;backdrop-filter:blur(6px)}dialog h2{font-weight:500;margin:0 0 20px}dialog p{line-height:1.8;color:#b4c0ad}dialog label{display:block;font-size:14px}dialog input:not([type=file]),textarea{display:block;width:100%;padding:14px;margin:10px 0 18px;color:#e7edde;background:#101711;border:1px solid #3b4a35;border-radius:8px}textarea{line-height:1.7;resize:vertical}.dialog-head,.dialog-actions{display:flex;justify-content:space-between;align-items:center}.dialog-head button{background:none;border:0}.import{cursor:pointer;padding:12px;border:1px solid #58624d;border-radius:8px}.note{font-size:13px}.light .reader-wrap{background:#eff3e8}.light #script{color:#6b7365}.light #script .read{color:#424c39}.light #script .current{color:#1f4b09;background:#c5ed9466}.focused aside,.focused header,.focused footer,.focused .studio-head{display:none}.focused main{display:block;padding:14px}.focused #reader{height:calc(100dvh - 208px)}.focused .studio{max-width:1300px;margin:auto}.focused #focus{display:block}.mirrored #script{transform:scaleX(-1)}@media(max-width:1050px){main{grid-template-columns:225px minmax(0,1fr);gap:24px;padding:26px 3vw}h1{font-size:30px}#reader{height:440px}header{padding:0 3vw}.device{display:none}.controls{padding:22px 16px 10px}.controls .primary{min-width:180px}}@media(max-width:720px){header{height:76px}.brand{font-size:21px}.brand small{display:none}.header-actions button{padding:9px 12px}main{display:flex;flex-direction:column;padding:18px;gap:20px}aside{display:contents}aside h1,aside .intro,.eyebrow,.tip,.textbutton{display:none}.card{padding:12px;order:0}.card .label,.card p{display:none}.studio{order:1;width:100%}.settings{order:2;display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;padding:8px}.settings label{margin-bottom:8px}#reader{height:420px}#script{font-size:36px}footer{padding:0 18px 20px}footer span:last-child{display:none}.controls .primary{min-width:160px}.timer{width:62px}.controls>button:first-child span{display:none}}
/* Bright reading colors and always-reachable controls */
body{padding-bottom:100px}#script{color:#ffe96a;font-weight:500}#script .read{color:#55e5ff}#script .current{color:#ffe96a;background:#ffeb6612}.light #script,.light #script .current{color:#744c00}.light #script .read{color:#006a85}.legend{display:flex;gap:12px;font-size:13px}.legend span:first-child{color:#55e5ff}.legend span:last-child{color:#ffe96a}.studio-head{flex-wrap:wrap;gap:12px}#dock{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:20;display:flex;gap:10px;padding:8px;border-radius:14px;border:1px solid #55634e;background:#172017f2;box-shadow:0 4px 24px #0008}#dock button{min-height:52px;font-size:17px}#dock #start{min-width:155px}#viewTools{position:sticky;bottom:0;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 4vw;background:#101311;z-index:10}#viewTools button[aria-pressed=true]{background:#c5ed94;color:#213319}.focused{padding-bottom:0;overflow:hidden}.focused main{padding:0;height:100dvh}.focused .studio{height:100dvh;max-width:none;border:0;border-radius:0}.focused #reader{height:calc(100dvh - 170px)}.focused .controls,.focused .heard{display:none}.focused #viewTools{position:fixed;top:max(10px,env(safe-area-inset-top));right:10px;bottom:auto;padding:6px;border-radius:12px;background:#172017eb}.focused .status{padding:12px 24px}.focused #script{padding-top:32vh;padding-bottom:70vh}.focused .reader-wrap{padding-top:0}body[data-layout=portrait] .studio{max-width:650px;margin-left:auto;margin-right:auto}body[data-layout=portrait].focused .studio{max-width:720px}body[data-layout=landscape] .studio{max-width:none}.formatbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.formatbar span{font-size:13px;color:#bed0b4;flex:1;min-width:170px}.library-item{display:block;width:100%;text-align:left;margin:12px 0;overflow-wrap:anywhere}#newScript{margin-top:16px}#distance{margin:12px 0}#micLevel{display:block;width:100%;height:28px;margin-top:12px}.focused #script span{scroll-margin-top:150px}@media(max-width:720px){#viewTools{padding:12px 18px;justify-content:flex-start}#dock{left:8px;bottom:max(8px,env(safe-area-inset-bottom));gap:6px;padding:6px}#dock button{font-size:15px;padding:10px}#dock #start{min-width:130px}#distance{order:3}#viewTools button{font-size:14px;padding:9px}.focused #viewTools{left:8px;right:8px;justify-content:center;gap:4px}.legend{font-size:12px}.focused #reader{height:calc(100dvh - 170px)}}
/* maia: compact grey-purple tablet layout; all controls retained. */
:root{background:#484152;color:#f5efff}body{background:#484152;padding-bottom:82px}header{height:58px;padding:0 16px;border-color:#72677e}.brand{font-size:22px;gap:8px}.logo{width:30px;height:30px;border-radius:8px;background:#d8c3f2;color:#3c2c51}.device{margin-right:4px;color:#eee1ff}.header-actions button{padding:8px 12px}main{padding:10px 12px;gap:14px;grid-template-columns:205px minmax(0,1fr);max-width:none}h1{font-size:25px;line-height:1.35;margin:10px 0}.eyebrow{font-size:11px;letter-spacing:1px;color:#e0d1ed}.intro{margin:8px 0 14px;font-size:14px;line-height:1.6;color:#e0d5ea}.card{padding:10px;background:#51485d;border-color:#7b6d8c;border-radius:9px}.card p,.tip p{color:#e3d8ed;font-size:13px}.card .label{margin-bottom:8px}.segmented{background:#393240}.segmented .selected{background:#d8c3f2;color:#322340}.settings{padding:14px 0 4px}.settings label{margin-bottom:17px}.settings output{color:#e9dcfa}.settings .switchrow{margin-bottom:9px}input[type=range],input[type=checkbox]{accent-color:#d8c3f2}.tip{padding-top:10px;border-color:#7b6d8c}.tip span,.textbutton{color:#eee1ff}.textbutton{margin:4px 0}.studio{background:#41384c;border-color:#8d7c9e;border-radius:10px;box-shadow:none}.studio-head{padding:9px 12px;gap:6px;color:#eee1ff;border-color:#73647f}.reader-wrap{background:#39323f}#reader{padding:0 3%;height:calc(100dvh - 240px);min-height:380px;touch-action:pan-y;-webkit-overflow-scrolling:touch;overflow-anchor:none}#script{padding-top:calc((100dvh - 240px)*.32);padding-bottom:70vh;line-height:1.65;letter-spacing:0}#script span{touch-action:pan-y}.guide{background:#e0bfff0a;border-left-width:2px;border-left-color:#e0bfff;height:74px}.reading-tag{right:4px;color:#d8c4ec}.status{padding:8px 12px;font-size:13px;color:#f1e4ff;min-height:34px}.controls{padding:4px 12px;justify-content:flex-end}.timer{font-size:14px;color:#dfd2eb}.heard{font-size:12px;padding:0 12px;margin:4px 0 8px;color:#dfd2eb}.track{background:#65556f}footer{padding:4px 12px;color:#e0d0ee;max-width:none}button{background:#5a4e67;border-color:#8a779b}.primary{background:#dfc5fa;color:#33243f}.textbutton{background:transparent}#dock{padding:4px;gap:6px;border-radius:10px;border-color:#a18bae;background:#493d55f5;left:max(8px,env(safe-area-inset-left));bottom:max(8px,env(safe-area-inset-bottom));box-shadow:0 3px 10px #0003}#dock button{min-height:46px;font-size:16px;padding:10px 14px}#dock #start{min-width:146px}#viewTools{background:#484152;padding:6px 12px;gap:5px}#viewTools button{padding:8px 10px;font-size:14px;min-height:40px}#viewTools button[aria-pressed=true]{background:#dec3fa;color:#342442}#viewTools #reset{margin-left:20px;padding:6px;width:36px;min-height:36px;font-size:20px;background:#51445e;color:#f1e2ff;border-color:#8c769e}#gainInfo{font-size:12px;line-height:1.6;color:#e7d8f4;margin:8px 0}#distance{margin:6px 0;font-size:14px;padding:8px 10px}.focused main{padding:0}.focused .studio{border:0;border-radius:0;background:#39323f}.focused #reader{height:calc(100dvh - 101px);min-height:0}.focused #script{padding-top:32vh;padding-bottom:75vh}.focused .status{padding:6px 10px;min-height:30px}.focused #viewTools{top:max(5px,env(safe-area-inset-top));right:5px;padding:4px;background:#493d55ed;gap:4px;border:1px solid #7c6b88;border-radius:8px}.focused #viewTools #reset{margin-left:20px}.focused .reader-wrap{background:#39323f}.focused #dock{bottom:max(5px,env(safe-area-inset-bottom))}body[data-layout=portrait] .studio{max-width:800px}body[data-layout=portrait].focused .studio{max-width:none}body[data-layout=portrait] #reader{padding-left:4%;padding-right:4%}dialog{background:#51445e;color:#fff4ff;border-color:#ac90bf;padding:18px}dialog p{color:#f0defd}dialog input:not([type=file]),textarea{background:#39303f;border-color:#947aa6;color:#fff7ff;font-size:18px;caret-color:#fff;touch-action:auto;-webkit-user-select:text;user-select:text}textarea{min-height:240px;max-height:55dvh;overflow:auto}.formatbar span{color:#ead7f8}.dialog-head{gap:8px}dialog h2{font-size:22px}.note{color:#f0defd}.light .reader-wrap,.light.focused .reader-wrap{background:#e3d8ed}.light #script,.light #script .current{color:#704600}.light #script .read{color:#00536e}.focused #viewTools button{white-space:nowrap}
@media(max-width:1050px){main{grid-template-columns:185px minmax(0,1fr);gap:10px;padding:8px}header{padding:0 10px}h1{font-size:23px}#reader{height:calc(100dvh - 235px)}.controls{padding:4px 10px}.legend{font-size:12px;gap:8px}}
@media(max-width:720px){header{height:auto;min-height:54px;gap:8px;padding:6px 8px}.brand{font-size:18px;gap:5px}.brand .logo{width:26px;height:26px}.header-actions{gap:5px}.header-actions button{font-size:13px;padding:8px;min-height:38px}main{padding:6px;gap:8px}.card{padding:6px}.studio{border-radius:6px}.settings{gap:8px 18px;padding:8px 4px}.settings label{margin-bottom:9px}#reader{height:calc(100dvh - 240px);min-height:310px;padding:0 4%}#script{padding-top:120px}.studio-head{padding:7px 9px}.legend{gap:8px}.heard{margin-bottom:6px}#viewTools{justify-content:flex-end;padding:6px;gap:4px;padding-bottom:68px}#viewTools button{font-size:13px;min-height:38px;padding:7px}#viewTools #reset{margin-left:12px}#dock button{font-size:15px;min-height:44px;padding:8px 12px}#dock #start{min-width:134px}.focused #viewTools{left:4px;right:4px;padding:3px;justify-content:flex-end}.focused #viewTools button{font-size:12px;padding:6px;min-height:36px}.focused #viewTools #reset{margin-left:8px;width:30px;min-height:32px}.focused #reader{height:calc(100dvh - 104px)}#gainInfo{grid-column:1/-1;margin:0}footer{padding:4px 8px}.focused #script{padding-top:32vh}#editLibrary{margin-top:10px;width:100%}}
