:root{--bg:#141114;--surface:#1e1a1f;--surface-2:#2a242b;--line:#3a333b;--ink:#f6f1e7;--muted:#a39b8f;--accent:#ffb547;--accent-ink:#1b1306;--ok:#7bd88f;--warn:#ffcf70;--danger:#ff7a6b;--radius:18px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;margin:0;font-family:ui-sans-serif,-apple-system,SF Pro Text,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}button,input,textarea{font:inherit;color:inherit}h1{margin:.4rem 0 0;font-size:1.7rem;line-height:1.15}h2{letter-spacing:.01em;margin:0;font-size:1.05rem}a{color:var(--accent)}.muted{color:var(--muted)}.small{font-size:.85rem}.warn{color:var(--warn)}.ok{color:var(--ok)}.row{align-items:center;gap:.75rem;display:flex}.row>*{flex:1}.row.between{justify-content:space-between}.stack{flex-direction:column;gap:.9rem;display:flex}.brand{letter-spacing:.01em;font-size:1.15rem;font-weight:800}.brand.small{font-size:1rem}.brand .mark{color:var(--accent)}.btn{border-radius:var(--radius);background:var(--surface-2);cursor:pointer;text-align:center;touch-action:manipulation;border:0;padding:.85rem 1.1rem;font-weight:650;text-decoration:none;transition:transform 80ms,background .15s;display:inline-block}.btn:active:not(:disabled){transform:scale(.97)}.btn:disabled{opacity:.4}.btn.primary{background:var(--accent);color:var(--accent-ink)}.btn.ghost{border:1.5px solid var(--line);background:0 0}.btn.danger{border:1.5px solid var(--danger);color:var(--danger);background:0 0}.btn.wide{width:100%}.btn.big{padding:1.05rem;font-size:1.1rem}.btn.small{padding:.45rem .9rem;font-size:.85rem}.btn.round{border-radius:50%;flex:none;width:64px;height:64px;padding:0;font-size:1.6rem}.btn.pulse{border-color:var(--accent);color:var(--accent);animation:1s infinite pulse}@keyframes pulse{50%{opacity:.55}}.join{max-width:440px;padding:2rem 1.25rem calc(2rem + env(safe-area-inset-bottom));flex-direction:column;justify-content:center;gap:1rem;min-height:100dvh;margin:0 auto;display:flex}.join form{flex-direction:column;gap:.8rem;display:flex}.code-input{letter-spacing:.18em;text-align:center;text-transform:uppercase;border-radius:var(--radius);border:2px solid var(--line);background:var(--surface);width:100%;padding:.9rem;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:2.2rem;font-weight:800}.code-input:focus{border-color:var(--accent);outline:none}.remote{max-width:520px;min-height:100dvh;padding-bottom:calc(76px + env(safe-area-inset-bottom));flex-direction:column;margin:0 auto;display:flex}.header{z-index:5;padding:calc(.7rem + env(safe-area-inset-top)) 1rem .7rem;background:color-mix(in srgb, var(--bg) 92%, transparent);backdrop-filter:blur(8px);justify-content:space-between;align-items:center;display:flex;position:sticky;top:0}.header-right{align-items:center;gap:.5rem;display:flex}.chip{border:1.5px solid var(--line);background:var(--surface);border-radius:999px;align-items:center;gap:.45rem;padding:.35rem .75rem;font-family:ui-monospace,SF Mono,Menlo,monospace;font-weight:700;display:flex}.dot{background:var(--warn);border-radius:50%;width:9px;height:9px}.dot.ok{background:var(--ok)}.timer{background:var(--surface-2);font-variant-numeric:tabular-nums;border-radius:999px;padding:.3rem .6rem;font-size:.8rem;font-weight:700}.timer.low{background:var(--warn);color:var(--accent-ink)}.menu{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;gap:.75rem;width:min(320px,100vw - 2rem);padding:1rem;display:flex;position:absolute;top:calc(100% - .2rem);right:1rem;box-shadow:0 12px 40px rgba(0,0,0,.45)}.notice{background:var(--surface);border-radius:14px;margin:.25rem 1rem 0;padding:.7rem .9rem;font-size:.92rem}.notice.warn{color:var(--warn);background:rgba(255,207,112,.12)}.notice.limit{border:1px solid var(--accent);background:rgba(255,181,71,.16)}.panel{flex:1;padding:1rem}.script-input{resize:vertical;border-radius:var(--radius);border:1.5px solid var(--line);background:var(--surface);width:100%;min-height:42vh;padding:.9rem;font-size:1rem;line-height:1.5}.script-input:focus{border-color:var(--accent);outline:none}.upsell{border-top:1px solid var(--line);padding-top:.8rem}.now-reading{background:var(--surface);border-radius:var(--radius);padding:.9rem 1rem 1rem}.progress{background:var(--surface-2);border-radius:99px;height:5px;overflow:hidden}.progress-bar{background:var(--accent);height:100%;transition:width .25s linear}.now-text{white-space:pre-line;max-height:7.3em;margin:.75rem 0 0;font-size:1.02rem;line-height:1.45;overflow:hidden}.transport{justify-content:center;align-items:center;gap:1.4rem;margin:.4rem 0;display:flex}.btn.play{background:var(--accent);width:116px;height:116px;color:var(--accent-ink);border-radius:50%;font-size:2.4rem;box-shadow:0 10px 30px rgba(255,181,71,.25)}.btn.play.is-playing{background:var(--ink)}.speed{background:var(--surface);border-radius:var(--radius);justify-content:space-between;align-items:center;padding:.6rem;display:flex}.speed-readout{flex-direction:column;align-items:center;display:flex}.speed-value{font-variant-numeric:tabular-nums;font-size:2.1rem;font-weight:800}.slider{width:100%;accent-color:var(--accent);height:32px}.field{flex-direction:column;gap:.4rem;display:flex}.field>span{justify-content:space-between;display:flex}.seg{background:var(--surface);border-radius:14px;grid-template-columns:repeat(4,1fr);gap:4px;padding:4px;display:grid}.seg button{background:0 0;border:0;border-radius:10px;padding:.6rem 0;font-weight:700}.seg button.on{background:var(--accent);color:var(--accent-ink)}.toggles{background:var(--surface);border-radius:var(--radius);flex-direction:column;display:flex}.toggle{text-align:left;border:0;border-bottom:1px solid var(--line);background:0 0;justify-content:space-between;align-items:center;padding:.9rem 1rem;display:flex}.toggle:last-child{border-bottom:0}.switch{background:var(--surface-2);border-radius:99px;flex:none;width:44px;height:26px;transition:background .15s;position:relative}.switch:after{content:"";background:var(--ink);border-radius:50%;width:20px;height:20px;transition:transform .15s;position:absolute;top:3px;left:3px}.toggle.on .switch{background:var(--accent)}.toggle.on .switch:after{background:var(--accent-ink);transform:translate(18px)}.lastkey{background:var(--surface);border-radius:14px;padding:.75rem 1rem}.keylist{background:var(--surface);border-radius:var(--radius);margin:0;padding:0;list-style:none}.keylist li{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:.75rem;padding:.8rem 1rem;display:flex}.keylist li:last-child{border-bottom:0}.tabs{max-width:520px;padding:.4rem .5rem calc(.4rem + env(safe-area-inset-bottom));background:color-mix(in srgb, var(--bg) 94%, transparent);backdrop-filter:blur(10px);border-top:1px solid var(--line);grid-template-columns:repeat(4,1fr);margin:0 auto;display:grid;position:fixed;bottom:0;left:0;right:0}.tab{color:var(--muted);background:0 0;border:0;flex-direction:column;align-items:center;gap:.15rem;padding:.35rem 0;font-size:.75rem;font-weight:650;display:flex}.tab-icon{font-size:1.2rem}.tab.on{color:var(--accent)}.flash{background:var(--accent);color:var(--accent-ink);pointer-events:none;border-radius:999px;padding:.8rem 1.3rem;font-weight:800;animation:.7s forwards flash;position:fixed;top:40%;left:50%;transform:translate(-50%,-50%)}@keyframes flash{0%{opacity:0;transform:translate(-50%,-40%)}20%{opacity:1;transform:translate(-50%,-50%)}to{opacity:0}}
