:root{color-scheme:dark;--bg:#0d0d0d;--surface:#141414;--line:#2e2e2e;--yellow:#fdc800;--muted:#777;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#eee;background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,[contenteditable]{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:transparent;color:inherit}button:disabled{opacity:.4;cursor:wait}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:2px solid var(--yellow);outline-offset:4px}a{color:inherit;text-decoration:none}svg{width:18px;height:18px;vertical-align:middle;flex-shrink:0}button:hover{color:#fff}input,select,textarea{background:#141414;color:#eee;border:1px solid var(--line);outline:none}input:focus,textarea:focus,select:focus{border-color:#887127}button.primary{background:var(--yellow);color:#000;font-weight:500}.primary:hover{background:#ffdb4a}.pill{padding:9px 20px;border-radius:30px;white-space:nowrap;font-size:14px}.outline{border:1px solid var(--line)}.icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;color:#999}.icon:hover{background:#252525;color:#fff}.active{background:var(--yellow)!important;color:#000!important}.muted{color:var(--muted)}.flex{display:flex;align-items:center;gap:12px}.spread{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:9px;font-size:22px;font-weight:800;letter-spacing:-1px;white-space:nowrap}.brand img{width:30px;height:30px}.brand small{font-size:10px;font-weight:400;letter-spacing:1px;color:#777;margin-left:9px}.topbar{height:64px;border-bottom:1px solid #ffffff08;background:#0d0d0dcc;backdrop-filter:blur(14px);position:fixed;inset:0 0 auto;z-index:20}.bar-inner{max-width:1280px;margin:auto;padding:0 24px;height:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}.search{border-radius:30px;padding:10px 14px 10px 36px;width:216px;font-size:13px;background:#141414}.search-wrap{position:relative}.search-wrap svg{position:absolute;left:12px;top:11px;width:15px;color:#666}.hero{height:min(56vw,calc(100svh - 320px));min-height:290px;position:relative;overflow:hidden;background:#222}.hero video{width:100%;height:100%;object-fit:cover}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0002 35%,#0d0d0d 100%)}.hero-copy{position:absolute;left:50%;top:50%;transform:translate(-50%,-42%);z-index:1;text-align:left;white-space:nowrap}.hero-copy h1{font-size:32px;line-height:1.5;font-weight:800;letter-spacing:3px;margin:0;text-shadow:0 2px 20px #0007}.hero-copy p{font-size:11px;letter-spacing:3px;color:#ddd;margin:10px 0 0}.library{max-width:1280px;margin:auto;padding:40px 24px 90px}.library h2{font-size:18px;margin:0}.badge{display:inline-block;font-size:12px;border:1px solid #fdc80033;background:#fdc8000b;color:#eacb50;padding:5px 12px;border-radius:20px}.count{font-size:12px;color:#777;margin-top:12px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:32px}.card{border:1px solid #262626;background:#171717a0;padding:24px;border-radius:24px;min-height:245px;display:flex;flex-direction:column;transition:transform .25s,border-color .25s;position:relative;cursor:pointer}.card:hover{transform:translateY(-4px);border-color:#fdc80066}.card-icon{display:inline-flex;background:#262626;border-radius:8px;padding:9px;color:#999}.card-tools{display:flex;gap:2px;opacity:0}.card:hover .card-tools,.card:focus-within .card-tools{opacity:1}.card h3{font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:16px 0 8px}.card p{font-size:14px;line-height:1.65;color:#777;margin:0 0 22px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex:1}.card footer{border-top:1px solid #292929;padding-top:16px;color:#666;font-size:10px;display:flex;align-items:center;justify-content:space-between}.card footer span:last-child{color:var(--yellow);font-size:12px;opacity:0}.card:hover footer span:last-child{opacity:1}.empty{text-align:center;padding:80px 0;color:#777}.empty h3{color:#eee}.bottom-note{text-align:center;color:#555;font-size:11px;line-height:2}.editor{height:100svh;display:flex;flex-direction:column}.editor-header{height:64px;flex-shrink:0;border-bottom:1px solid var(--line);padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.editor-meta{font-size:11px;color:#777;margin-top:5px}.editor-heading{font-size:14px;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-scroll{overflow:auto;flex:1}.paper{max-width:816px;margin:40px auto;padding:0 24px}.title-input{width:100%;background:transparent;border:0;padding:0 0 24px;font-size:36px;font-weight:700}.title-input::placeholder{color:#444}.toolbar{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid #292929;padding:10px 0;margin-bottom:20px}.toolbar button,.toolbar select{border:0;border-radius:7px;background:#191919;font-size:13px;min-height:34px;padding:6px 10px}.toolbar button:hover{background:#333}.writing{font-size:18px;line-height:1.8;min-height:55vh;outline:0;color:#ccc;overflow-wrap:anywhere}.writing:empty:before{content:attr(data-placeholder);color:#555;pointer-events:none}.writing p{margin:.6em 0}.writing a{text-decoration:underline}.writing blockquote{border-left:3px solid var(--yellow);padding-left:15px}.drawer-shade{position:fixed;inset:0;background:#000a;z-index:60}.drawer{position:fixed;inset:0 0 0 auto;width:384px;max-width:100%;background:#0a0a0a;border-left:1px solid #ffffff0d;z-index:61;display:flex;flex-direction:column}.drawer header{height:65px;padding:0 24px;border-bottom:1px solid #222;flex-shrink:0}.drawer h2{font-size:16px;margin:0}.drawer-body{padding:24px;overflow:auto;flex:1}.setting-box{background:#141414;border:1px solid #2e2e2e;border-radius:16px;padding:16px;margin-bottom:20px;font-size:14px}.setting-box label{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;color:#aaa}.setting-box p{font-size:12px;color:#777;line-height:1.8}.setting-box input[type=range]{accent-color:var(--yellow);width:100%;margin:4px 0 15px}.presets{display:flex;gap:8px;flex-wrap:wrap}.presets button{font-size:12px;border:1px solid var(--line);border-radius:8px;padding:7px 10px}.setting-box textarea{width:100%;height:210px;resize:vertical;line-height:1.8;padding:12px;border-radius:10px}.setting-box select{padding:8px;border-radius:8px;max-width:100%}.prompter{height:100svh;background:#000;position:relative;overflow:hidden}.prompt-header{position:absolute;inset:0 0 auto;z-index:15;height:70px;padding:0 24px;background:linear-gradient(#000c,transparent)}.prompt-title{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#888}.prompt-info{font-size:12px;color:#777}.scroll-area{height:100%;overflow:auto;scrollbar-width:none;overscroll-behavior:contain;overflow-wrap:anywhere}.scroll-area::-webkit-scrollbar{display:none}.prompt-text{padding-top:80vh;padding-bottom:80vh}.prompt-text p{margin:0 0 .5em}.prompt-text span{cursor:pointer;border-radius:3px}.prompt-text span:hover{background:#ffffff20}.prompt-text span.read{color:#bca440}.reading-box{position:absolute;border:2px solid var(--yellow);pointer-events:none;z-index:10}.reading-box label{position:absolute;left:16px;top:-8px;background:#000;padding:0 8px;color:var(--yellow);font-size:10px;letter-spacing:2px}.controls{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:25;display:flex;align-items:center;gap:4px;border:1px solid #ffffff20;border-radius:50px;padding:8px;background:#090909cc;backdrop-filter:blur(15px);white-space:nowrap;max-width:calc(100% - 16px)}.controls .icon{width:40px;height:40px}.divider{height:24px;border-left:1px solid #333;margin:0 6px}.speed{font-size:12px;padding:8px}.live-caption{position:absolute;bottom:100px;left:50%;transform:translateX(-50%);max-width:90%;padding:14px 20px;border:1px solid #ffffff15;background:#080808e8;border-radius:18px;font-size:13px;color:#aaa;z-index:30;text-align:center}.live-caption:empty{display:none}dialog{max-width:calc(100% - 32px);width:440px;border:1px solid #333;border-radius:24px;background:#101010;color:#eee;padding:26px}dialog::backdrop{background:#000b}dialog h2{font-size:20px;margin:0 0 14px}dialog p{font-size:14px;line-height:1.8;color:#999}dialog .actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}dialog textarea{width:100%;height:180px;border-radius:12px;padding:14px;resize:vertical}dialog select{width:100%;padding:10px;border-radius:10px}.danger{color:#f77;border:1px solid #663333}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:100;background:#262115;border:1px solid #8e7326;color:#f5d678;border-radius:12px;padding:12px 22px;font-size:13px;max-width:90%;display:none}.mobile-only{display:none}.hidden{display:none!important}.language{font-size:12px;min-width:52px}.range-value{color:#fff;font-family:monospace}.guide{max-width:760px;padding:35px 24px 80px;margin:0 auto;line-height:1.9}.guide h1{font-size:30px}.guide h2{margin-top:36px;font-size:18px}.guide p,.guide li{color:#aaa;font-size:14px}.select-color{width:34px;height:34px;padding:4px;border:0;border-radius:7px}.save-status{color:#777;font-size:11px}.import-input{display:none}.key{border:1px solid #444;padding:1px 5px;border-radius:4px;font-size:11px}.mirror{transform:scaleX(-1)}
@media(min-width:1600px){.hero{height:calc(100svh - 320px)}}@media(max-width:1023px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand small{display:none}.search{width:175px}.bar-inner{gap:10px}.top-help{display:none}}@media(max-width:767px){.bar-inner{padding:0 16px;gap:8px}.brand{font-size:18px;letter-spacing:0}.brand img{width:26px;height:26px}.desktop-only{display:none!important}.mobile-only{display:initial}.topbar .flex{gap:4px}.topbar .pill{padding:9px 13px;font-size:12px}.hero{height:340px;min-height:0}.hero-copy h1{font-size:27px}.hero-copy p{font-size:9px}.library{padding:30px 18px 60px}.grid{grid-template-columns:1fr;gap:16px;margin-top:22px}.card{min-height:235px;padding:22px}.card-tools{opacity:1}.card footer span:last-child{opacity:1}.mobile-search{margin-top:20px}.mobile-search .search{width:100%}.drawer{width:100%}.editor-header{padding:0 12px;gap:6px}.editor-header .flex{gap:4px}.editor-header .pill{padding:9px 13px;font-size:12px}.editor-heading{max-width:100px;font-size:12px}.editor-meta{font-size:10px}.paper{margin:28px auto}.title-input{font-size:28px}.writing{font-size:17px}.prompt-header{padding:0 12px}.prompt-title{max-width:130px}.prompt-info{display:none}.controls{bottom:max(16px,env(safe-area-inset-bottom));padding:6px;gap:0;flex-wrap:wrap;justify-content:center;border-radius:22px;width:max-content}.controls .icon{width:34px;height:36px}.controls .divider{margin:0 3px}.speed{padding:7px 5px;font-size:11px}.live-caption{bottom:112px;width:90%;font-size:12px}.library-title{align-items:flex-start}.library-title .flex{gap:8px}.brand small{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.hero video{display:none}.hero{background:linear-gradient(135deg,#394044,#615735 55%,#171917)}}
.brand-short{display:none}.toolbar button{font-family:inherit}.prompt-text h1,.prompt-text h2,.prompt-text h3{margin:.4em 0;line-height:1.4}.prompt-text blockquote{border-left:3px solid var(--yellow);padding-left:.4em}.prompt-text li{margin:.2em 0}
@media(max-width:900px){.topbar .search-wrap{display:none}.mobile-search{display:block;margin-top:18px}.mobile-search .search{width:100%}}
@media(max-width:767px){.brand-full{display:none}.brand-short{display:inline}.topbar [data-action=new]{font-size:0;width:38px;height:38px;padding:0;display:flex;align-items:center;justify-content:center}.topbar [data-action=new]:before{content:'+';font-size:26px;font-weight:400}.editor-header>.flex:first-child{min-width:0}.editor-header .editor-heading{max-width:80px}.editor-header .editor-meta{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-header [data-action=prompt]{font-size:0;width:38px;height:38px;padding:0;display:flex;align-items:center;justify-content:center}.editor-header .language{font-size:11px;padding:8px;min-width:50px}.editor-header [data-action=export]{display:none}.hero-copy{max-width:calc(100% - 40px)}.hero-copy h1{font-size:clamp(22px,6.5vw,27px);letter-spacing:1px}.controls .flex{gap:0!important}}
@media(max-width:359px){.brand{font-size:16px}.brand img{width:24px;height:24px}.bar-inner{padding:0 12px;gap:5px}.topbar .language{padding:8px 9px;min-width:50px}.topbar .icon{width:32px}.editor-header .editor-heading{max-width:64px}.editor-header .editor-meta{max-width:64px}.editor-header .pill{padding:8px 10px}}
@media(min-width:360px) and (max-width:767px){.editor-header [data-action=export]{display:inline-flex;width:30px}.editor-header .editor-heading,.editor-header .editor-meta{max-width:70px}}
.login-page{min-height:100svh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 0,#292414 0,transparent 55%),#0d0d0d}.login-card{width:100%;max-width:420px;border:1px solid #333;background:#101010;border-radius:24px;padding:36px}.login-card h1{font-size:24px;margin-top:32px}.login-card p{font-size:13px;line-height:1.8;color:#888}.login-card form{display:flex;flex-direction:column;gap:14px;margin-top:28px}.login-card label{font-size:12px;color:#999}.login-card input{font-family:monospace;font-size:30px;letter-spacing:12px;padding:14px 20px;text-align:center;border-radius:12px;width:100%}.login-card form .primary{font-size:15px;padding:13px}.login-language{margin-top:20px;text-align:right}#loginError{color:#e9b055;min-height:24px;margin:0}.sync-state{font-size:12px;color:#c8af5c;max-width:100%;white-space:normal}.drawer #voiceEngine{width:100%;font-size:12px;white-space:normal}@media(max-width:400px){.login-card{padding:26px}.login-card h1{font-size:21px}}
/* Refined instrument controls and editor */
.icon svg{width:19px;height:19px}.icon:hover{background:#ffffff0a;color:#fdc800}.editor-header{background:#0f0f0f}.editor-heading{font-weight:550}.editor-meta [data-sync-status]{color:#a9924e}.paper{max-width:840px}.title-input{letter-spacing:-.04em}.title-input:focus{border-color:transparent}.toolbar{gap:5px;padding:10px 0 16px;border-bottom-color:#ffffff0a}.toolbar button,.toolbar select{background:#191a1d;color:#aaa;transition:background .15s,color .15s}.toolbar button:hover{background:#2b2d31;color:#fff}.toolbar .icon{min-width:34px;width:34px;height:34px;padding:0;border-radius:9px}.toolbar-divider{height:22px;width:1px;background:#333;align-self:center;margin:0 5px}.toolbar .ai-tool{color:#e5ba3c;margin-left:auto}.writing{caret-color:#fdc800;min-height:55svh}.writing:focus{outline:none}.save-status{border-top:1px solid #ffffff08;padding-top:18px;margin-top:30px;font-size:11px}.exit-actions{display:grid;gap:10px;margin-top:22px}.exit-actions button{min-height:42px}.engine-label{font-size:10px;white-space:nowrap;color:#a5a7ad;padding:0 6px}.controls{background:#17181be6;border-color:#ffffff14;box-shadow:0 12px 50px #0008}.controls .speed{color:#c5c7ca;font-variant-numeric:tabular-nums;border-radius:14px}.controls .speed:hover{background:#ffffff09}.reading-box{border-radius:2px}
.speed-popover{position:fixed;z-index:80;display:flex;flex-direction:column;padding:8px;background:#292e36;border:1px solid #4b5059;border-radius:24px;box-shadow:0 20px 65px #0009;color:#a1a5ad;animation:popover-in .14s ease-out;overflow:hidden}.speed-popover header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;margin:0 4px;padding:8px 12px 10px;border-bottom:1px solid #ffffff0c;font-size:12px;font-weight:600;letter-spacing:1px}.speed-popover header .icon{width:25px;height:25px}.speed-options{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#555a62 transparent;padding:6px 0}.speed-option{width:100%;display:flex;align-items:flex-start;justify-content:space-between;text-align:left;padding:16px 18px;border-radius:20px;gap:12px;transition:background .15s}.speed-option>span{min-width:0}.speed-option strong{display:block;font-size:17px;font-weight:650;letter-spacing:.1px;color:#b9bcc2}.speed-option small{display:block;font-size:12px;color:#787d85;line-height:1.5;margin-top:5px}.speed-option em{white-space:nowrap;font:600 14px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;color:#888d95}.speed-option em span{font-size:11px}.speed-option:hover{background:#ffffff0a}.speed-option:hover strong{color:#f0f1f3}.speed-option.selected{background:#fdc80012}.speed-option.selected strong{color:#fdc800}.speed-option.selected small,.speed-option.selected em{color:#b39225}.speed-popover footer{flex-shrink:0;display:flex;align-items:center;gap:14px;padding:15px 20px 12px;background:#292e36}.speed-popover input{width:100%;accent-color:#fdc800;cursor:pointer}.speed-popover footer span{font:12px ui-monospace,monospace;color:#c0a23d;min-width:24px}.mic-live{min-height:90px;padding:18px;border:1px solid #333;border-radius:14px;color:#bfc1c6;font-size:15px;line-height:1.8;background:#17181c}.garbage-summary{font-variant-numeric:tabular-nums}.garbage-list{max-height:40svh;overflow:auto;border-top:1px solid #2e2e2e;border-bottom:1px solid #2e2e2e}.garbage-row{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #222;cursor:pointer}.garbage-row input{accent-color:#fdc800;flex-shrink:0;align-self:flex-start;margin-top:4px}.garbage-row span{min-width:0}.garbage-row strong{display:block;font-size:13px;overflow-wrap:anywhere}.garbage-row small{display:block;color:#777;font-size:11px;margin:5px 0}.garbage-row code{display:block;font-size:9px;color:#555;overflow-wrap:anywhere}.garbage-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.garbage-actions .pill{font-size:12px;padding:9px 14px}.login-card h1{letter-spacing:-.02em}.login-card #loginPassword{letter-spacing:3px}.login-card label{color:#a3a3a3}.login-card .login-language{padding-top:12px;border-top:1px solid #ffffff08}
@keyframes popover-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:767px){.toolbar{gap:4px}.toolbar button{padding:6px 8px}.toolbar .ai-tool{margin-left:0}.speed-option{padding:14px 16px}.speed-option strong{font-size:16px}.speed-option em{font-size:12px}.speed-popover{border-radius:22px}.engine-label{font-size:9px;padding:0 3px}.controls .icon{width:32px}.paper{padding:0 22px}}

/* Keep the tagline adjacent to the brand at every viewport. */
.brand-group{display:flex;align-items:center;gap:12px;min-width:0;flex-shrink:1}.brand-tag{white-space:nowrap;flex-shrink:0}.brand-group .brand{flex-shrink:0}.bar-inner>.flex{margin-left:auto;flex-shrink:0}
@media(max-width:1023px){.brand-group{gap:8px}.brand-tag{font-size:10px;padding:4px 7px}}
@media(max-width:767px){.brand-group{gap:6px}.brand-group .brand{font-size:17px}.brand-tag{font-size:9px;padding:3px 5px}.brand-group .brand img{width:24px;height:24px}.topbar .bar-inner{flex-wrap:wrap;height:auto;min-height:72px;padding-top:12px;padding-bottom:12px;row-gap:10px}.brand-group{flex-grow:1}.bar-inner>.flex{margin-left:auto}}
@media(max-width:480px){.brand-group{width:100%;justify-content:flex-start}.bar-inner>.flex{width:100%;justify-content:flex-end}.topbar{height:auto}.brand-tag{font-size:10px}.brand-group .brand{font-size:18px}}

/* Compact speed settings: match the existing settings cards. */
.speed-popover{padding:6px;background:#141414;border-color:#2e2e2e;border-radius:16px;color:#aaa;box-shadow:0 16px 48px #0009}
.speed-popover header{margin:0;padding:6px 10px 9px;font-size:12px;letter-spacing:0;border-bottom-color:#2e2e2e}
.speed-options{padding:4px 0;scrollbar-color:#444 transparent}
.speed-option{align-items:center;padding:8px 12px;border-radius:10px;gap:8px}
.speed-option strong{font-size:14px;line-height:1.25;font-weight:600;color:#bbb}
.speed-option small{font-size:10.5px;line-height:1.4;margin-top:3px;color:#777}
.speed-option em{font-size:12px;line-height:1.5;color:#888}
.speed-option em span{font-size:9px}
.speed-popover footer{padding:10px 12px 8px;gap:10px;background:#141414;border-top:1px solid #2e2e2e}
.speed-popover footer input{min-width:0}
.card-tools{gap:2px}.card-tools .icon{width:34px;height:34px}
.setting-box .pill svg{margin-right:7px}

.library>.bottom-note{margin-top:36px}
.sync-settings{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.sync-settings>label{margin-bottom:0}
.drawer-sync-status{line-height:1.7;overflow-wrap:anywhere}

.card{min-width:0}
