:root{--rail-height:64px;background:#242424;color:#f3f3f3}body{background:#242424;padding-bottom:calc(var(--rail-height) + 8px)}header{background:#272727;border-color:#444}.logo{background:#504459;color:#fff}.brand{color:#fff}.device,.eyebrow,.intro,.card p,.tip p,.tip span,.textbutton,.settings output,#gainInfo,footer{color:#d2d2d2}.studio{background:#242424;border-color:#4a4a4a}.studio-head{background:#2b2b2b;border-color:#444;color:#eee}.card{background:#2e2e2e;border-color:#494949}.segmented{background:#202020}.segmented .selected,button[aria-pressed=true]{background:#4d4058!important;color:#fff!important}button{background:#333;border-color:#555;color:#eee}.primary{background:#4d4058;color:#fff}.textbutton{background:none}input[type=range],input[type=checkbox]{accent-color:#756580}.tip{border-color:#494949}.reader-wrap,.focused .reader-wrap,.light .reader-wrap,.light.focused .reader-wrap{background:#000!important}.light #script,.light #script .current,#script,#script .current{color:#ffe96a}.light #script .read,#script .read{color:#55e5ff}.guide{background:#ffffff05;border-color:#81708d}.reading-tag{color:#bbb}.status,.focused .status{background:#252525;color:#ddd}.track{background:#444}.track div{background:#81708d}.heard{color:#ccc}.timer{color:#bbb}.legend span:first-child{color:#55e5ff}.legend span:last-child{color:#ffe96a}#controlRail{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 14px;padding:6px max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#272727;border-top:1px solid #444}#dock,.focused #dock{position:static;left:auto;bottom:auto;display:flex;flex-shrink:0;border:0;padding:0;margin:0;background:none;box-shadow:none;gap:6px}#viewTools,.focused #viewTools{position:static;left:auto;right:auto;top:auto;bottom:auto;display:flex;flex:1 1 auto;justify-content:flex-end;align-items:center;flex-wrap:wrap;background:none;border:0;padding:0;margin:0;gap:5px;border-radius:0}#viewTools button,.focused #viewTools button{min-height:40px;font-size:14px;padding:7px 10px;white-space:nowrap}#viewTools #viewMode{min-width:90px;background:#4d4058;color:#fff}#viewTools #reset,.focused #viewTools #reset{margin-left:14px;background:#303030;border-color:#555;color:#ddd;width:36px;min-height:36px;padding:4px}#dock button{min-height:44px}#dock #start{min-width:136px}.focused{padding-bottom:0}.focused main{height:100dvh;padding:0}.focused .studio{display:flex;flex-direction:column;height:100dvh;max-width:none!important;padding-bottom:var(--rail-height);background:#242424;overflow:hidden}.focused .reader-wrap{flex:1 1 auto;min-height:0;position:relative}.focused #reader{height:100%!important;min-height:0!important;width:100%}.focused .status,.focused .track,.focused .heard{flex:0 0 auto}.focused .heard{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0;padding:4px 10px;min-height:25px;line-height:17px;font-size:12px;background:#252525;text-align:left}.focused .status{padding:5px 10px;min-height:27px;line-height:17px;font-size:12px}.focused .controls{display:none}body[data-layout=portrait]:not(.focused) .studio{max-width:800px}body[data-layout=portrait].focused #reader{max-width:800px;margin:auto}dialog{background:#2b2b2b;border-color:#666;color:#fff;padding:18px}dialog p,.note,.formatbar span{color:#ddd}dialog input:not([type=file]),textarea,select{background:#171717!important;border:1px solid #666!important;color:#fff!important}select{font:inherit;width:100%;padding:10px;margin-top:8px;border-radius:7px}#rawSpeech{display:block;min-height:60px;border:1px solid #555;background:#151515;color:#ffe96a;padding:12px;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}#speechDialog{max-height:85dvh;overflow:auto}.light{background:#303030}.light header,.light #controlRail{background:#353535}
@media(max-width:720px){#controlRail{gap:6px;padding-top:6px}#dock{flex:1 0 100%}#viewTools,.focused #viewTools{justify-content:flex-end;flex:1 0 100%;gap:5px}#viewTools button,.focused #viewTools button{font-size:13px;min-height:38px;padding:6px 8px}#viewTools #viewMode{min-width:83px;margin-right:auto}#viewTools #reset,.focused #viewTools #reset{margin-left:8px;width:32px;min-height:34px}#dock #start{min-width:136px}#reader{min-height:280px}.focused #reader{min-height:0}.brand{font-size:17px}.header-actions button{padding:7px;font-size:12px}.focused #script{padding-bottom:75vh}.status{overflow-wrap:anywhere}.focused .status{max-height:44px;overflow:hidden}}
@media(max-width:370px){#viewTools button,.focused #viewTools button{padding:5px 6px;font-size:12px}#viewTools #viewMode{min-width:74px}#viewTools #reset,.focused #viewTools #reset{margin-left:5px;width:29px}}
[hidden]{display:none!important}

.guide{top:var(--reading-y,32%)}.reading-tag{top:var(--reading-y,32%);right:0;width:32px;min-height:74px;display:flex;align-items:center;justify-content:center;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:ns-resize;z-index:5;color:#eee;font-size:12px;border-radius:5px;background:#222b}.reading-tag.adjusting{background:#564363;color:#fff;outline:2px solid #d7bee8}.reading-tag:focus-visible{outline:2px solid #d7bee8}#reader{padding-right:36px!important}


/* Attribute survives progress painting, which replaces span class names. */
#script span[data-emphasis],.light #script span[data-emphasis]{color:#ff77c8}
#script span[data-emphasis].read,.light #script span[data-emphasis].read{color:#80ff99}
.legend{flex-wrap:wrap;row-gap:4px}.legend .emphasis-read{color:#80ff99}.legend .emphasis-unread{color:#ff77c8}.studio-head{flex-wrap:wrap}
