:root{color-scheme:dark;--bg:#212121;--side:#171717;--panel:#303030;--hover:#2b2b2b;--line:#ffffff12;--text:#ececec;--muted:#9b9b9b;--green:#89cbb7;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button{color:inherit;border:0;background:transparent;cursor:pointer}button:disabled{cursor:default;opacity:.35}button,input,textarea{outline:none}button:focus-visible,a:focus-visible{outline:2px solid #bababa;outline-offset:3px}input:focus,textarea:focus{border-color:#888}svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}a{color:inherit}button,article,.nav-item{transition:background .16s,color .16s,opacity .16s}button:hover{background:var(--hover)}[hidden]{display:none!important}#shell{display:flex;height:100dvh;overflow:hidden}#sidebar{width:260px;flex:none;background:var(--side);display:flex;flex-direction:column;overflow:hidden;transition:width .22s}#sidebar>header{padding:16px 17px 12px;display:flex;align-items:center;justify-content:space-between}.brand{font-size:25px;letter-spacing:-2px;font-weight:750;padding:0 7px}.brand span{font-size:21px;color:#c2dacf;margin-left:3px}.icon{width:34px;height:34px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;flex:none;padding:7px}#nav{padding:3px 10px 15px}.nav-item{width:100%;border-radius:9px;display:flex;align-items:center;gap:12px;text-align:left;padding:10px 12px;font-size:14px}.nav-item.active{background:#303030}.nav-item .badge{margin-left:auto;font-size:10px;border:1px solid #ffffff25;border-radius:4px;padding:1px 4px;color:#a8a8a8}.side-section{padding:4px 10px}.section-title{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:600;min-height:34px;padding:0 11px}.section-title .icon{width:25px;height:25px}.history-section{flex:1;overflow:auto;scrollbar-width:thin;scrollbar-color:#444 transparent}.history-row{position:relative;display:flex;align-items:center;border-radius:8px}.history-row.active{background:#303030}.history-row>button:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;padding:10px 12px;flex:1;min-width:0;border-radius:8px}.history-row .row-more{opacity:0;width:26px;height:28px;position:absolute;right:5px;background:var(--side);border-radius:5px}.history-row:hover .row-more,.history-row:focus-within .row-more{opacity:1}.history-row:hover{background:#252525}.history-row .row-more:hover{background:#444}.project-header{width:100%;display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:8px;text-align:left}.project-header span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-header small{color:#aaa}.project-children{padding-left:20px}.project-children button{font-size:12px}#sidebar>footer{padding:10px;border-top:1px solid var(--line)}#settings{display:flex;width:100%;gap:11px;padding:8px;border-radius:10px;text-align:left;align-items:center}#settings b,#settings small{display:block}#settings b{font-weight:500}#settings small{color:var(--muted);font-size:11px;margin-top:3px}.avatar{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#637d78;color:#fff;font-size:13px}.ellipsis{margin-left:auto;color:#999}main{min-width:0;flex:1;display:flex;flex-direction:column}#topbar{height:65px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:12px 22px}.top-leading,.top-actions{display:flex;align-items:center;gap:8px}.model-top{font-size:19px;font-weight:600;display:flex;align-items:center;gap:10px;padding:7px 9px;border-radius:8px}.model-top span{font-size:17px;color:#aaa}.private-label{font-size:12px;color:#999;margin-right:10px}#project-badge{font-size:12px;color:#bbb;border-left:1px solid #555;padding-left:13px;max-width:200px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}#expand{display:none}.collapsed #sidebar{width:0}.collapsed #expand{display:inline-flex}#work-area{display:flex;flex:1;min-height:0}#conversation-pane{flex:1;min-width:0;display:flex;flex-direction:column}#scroll{flex:1;overflow:auto;scrollbar-width:thin;scrollbar-color:#454545 transparent;scroll-behavior:smooth}#welcome{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:36px 24px 50px;animation:appear .28s ease}#welcome h1{font-size:31px;font-weight:550;letter-spacing:-.8px;margin:14px 0 10px}.welcome-symbol{font-size:35px;color:#d8e3dc;line-height:1}#welcome-caption{color:#999;font-size:14px;margin:0 0 25px;text-align:center}#suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;max-width:630px}#suggestions button{border:1px solid #ffffff14;padding:11px 15px;border-radius:22px;color:#bababa;font-size:12px;display:flex;gap:8px;align-items:center}#suggestions svg{width:15px;height:15px}#messages{max-width:800px;margin:0 auto;padding:20px 26px 40px;width:100%;animation:appear .22s ease}.message{margin:8px 0 30px;line-height:1.75;font-size:15px}.message.user{display:flex;flex-direction:column;align-items:flex-end}.bubble{background:#303030;border-radius:24px;padding:11px 19px;max-width:85%;white-space:pre-wrap;overflow-wrap:anywhere}.message.assistant .content{padding:2px 3px;overflow-wrap:anywhere;min-height:20px}.content p{white-space:pre-wrap;margin:0 0 14px}.content pre{margin:14px 0;background:#171717;border:1px solid var(--line);border-radius:12px;overflow:hidden}.code-head{display:flex;justify-content:space-between;padding:5px 12px;font:11px ui-sans-serif;color:#aaa;border-bottom:1px solid var(--line)}.content pre code{font:12px/1.7 Consolas,monospace;display:block;padding:16px;white-space:pre;overflow:auto}.message-tools{display:flex;gap:3px;margin-top:7px;color:#919191}.message-tools .icon{width:28px;height:28px}.message-tools svg{width:15px;height:15px}.thinking{font-size:13px;color:#aaa;display:flex;align-items:center;gap:8px;padding:7px 3px}.thinking::before{content:'';width:7px;height:7px;border-radius:50%;background:#d2d2d2;animation:pulse 1s infinite}.media-output{display:block;border-radius:14px;margin:12px 0;max-width:100%;max-height:480px}.message audio{width:min(100%,430px);margin:10px 0}.file-link{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid var(--line);border-radius:9px;font-size:12px;margin:4px;text-decoration:none}#composer-dock{padding:12px 25px 13px;max-width:830px;margin:0 auto;width:100%;flex:none}#composer{background:#303030;border:1px solid #ffffff08;border-radius:25px;box-shadow:0 5px 20px #00000009;padding:7px 10px 8px;position:relative}#prompt{display:block;width:100%;resize:none;color:#eee;border:0;background:transparent;line-height:1.6;max-height:190px;min-height:49px;padding:11px 11px 4px;font-size:15px}#prompt::placeholder{color:#a1a1a1}.composer-bottom{display:flex;align-items:center;justify-content:space-between}.composer-right{display:flex;align-items:center;gap:3px}.pill{border-radius:18px;padding:7px 9px;font-size:11px;color:#bbb;white-space:nowrap}.pill span{margin-left:5px}#send{width:34px;height:34px;background:#eee;color:#252525;border-radius:50%;display:grid;place-items:center;margin:1px 1px 1px 4px}#send:hover{background:#d5d5d5}#send:disabled{background:#626262;color:#aaa;opacity:1}#caption{font-size:10px;text-align:center;color:#888;margin:10px 0 0}#attachment-list{display:flex;gap:7px;flex-wrap:wrap}#attachment-list:not(:empty){padding:8px 8px 0}.chip{display:flex;align-items:center;gap:9px;border:1px solid #ffffff18;border-radius:12px;background:#282828;padding:7px 8px;max-width:260px}.chip img{width:35px;height:35px;object-fit:cover;border-radius:5px}.chip b{font-size:11px;display:block;font-weight:500;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip small{color:#888;font-size:10px}.chip .icon{width:23px;height:23px}#context-line{color:#aaa;font-size:11px;padding:0 13px 8px}#recording{display:flex;align-items:center;gap:12px;padding:11px 10px}.record-dot{width:8px;height:8px;border-radius:50%;background:#ef7a79;animation:pulse 1s infinite}.wave{flex:1;letter-spacing:6px;text-align:center;color:#bbb;font-size:17px}#record-time{font-size:12px}.recording #prompt{display:none}#code-panel{width:350px;background:#1b1b1b;border-left:1px solid var(--line);display:flex;flex-direction:column}#code-panel>header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line);font-size:12px}#file-tree{max-height:35%;overflow:auto;padding:10px}#file-tree button{display:flex;width:100%;gap:8px;padding:7px 8px;text-align:left;border-radius:6px;font:11px Consolas,monospace;overflow:hidden}.code-title{padding:10px 16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:11px;color:#999}#file-content{font:11px/1.7 Consolas,monospace;padding:16px;margin:0;overflow:auto;flex:1;color:#c8d1ca;white-space:pre}dialog{border:1px solid #ffffff15;background:#262626;color:var(--text);border-radius:18px;box-shadow:0 25px 100px #0007;width:min(510px,calc(100vw - 32px));padding:25px}dialog::backdrop{background:#0008;backdrop-filter:blur(4px)}dialog h2{font-size:19px;margin:0 0 15px;font-weight:550;letter-spacing:-.3px}dialog p{color:#aaa;line-height:1.6;font-size:13px}label{display:block;color:#bcbcbc;font-size:12px;margin:14px 0}label input,label select,dialog textarea{display:block;width:100%;border:1px solid #ffffff20;background:#1d1d1d;color:#eee;border-radius:9px;padding:11px;margin-top:7px}dialog textarea{resize:vertical}.primary{background:#ececec;color:#222;padding:10px 17px;border-radius:9px;font-weight:550}.primary:hover{background:#d5d5d5}.secondary{border:1px solid #ffffff25;border-radius:9px;padding:9px 14px}.danger{background:#813d3d;color:#fff;border-radius:9px;padding:9px 14px}.actions{display:flex;gap:8px;justify-content:flex-end;margin-top:20px}.muted{color:#aaa;font-size:12px}.dialog-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px;border-radius:8px}.dialog-row button{flex:1;text-align:left;padding:5px}.dialog-row:hover{background:#333}.dialog-search{width:100%;padding:12px;border:1px solid #ffffff20;background:#1c1c1c;border-radius:10px;color:#eee;margin-bottom:12px}#popover{position:fixed;min-width:220px;max-width:320px;background:#2f2f2f;border:1px solid #ffffff18;border-radius:13px;z-index:20;box-shadow:0 15px 50px #0005;padding:6px;animation:appear .12s ease}#popover button{display:flex;align-items:center;gap:12px;padding:11px;width:100%;border-radius:8px;text-align:left;font-size:12px}#popover button small{color:#aaa;display:block;font-size:10px;margin-top:3px}#popover button.active{background:#414141}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);padding:13px 20px;max-width:90vw;background:#3c3c3c;box-shadow:0 10px 35px #0005;border:1px solid #ffffff19;border-radius:12px;z-index:50;font-size:13px}#login{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 40%,#2b3430,#191b1b 55%)}.login-card{width:350px;padding:35px 15px}.brand-mark{font-weight:750;letter-spacing:-3px;font-size:45px}.brand-mark span{color:#c4e3d5;letter-spacing:0;margin-left:5px}.login-card h1{font-size:25px;font-weight:500;letter-spacing:-.6px;margin:20px 0 8px}.login-card>p{font-size:13px;color:#aaa}.login-card>.primary{width:100%;display:flex;justify-content:space-between;margin:24px 0}.login-card>small{display:block;text-align:center;font-size:11px;color:#888}#login-error{color:#f1a8a8}#page{padding:28px 35px;max-width:1050px;margin:0 auto;animation:appear .2s ease}#page h1{font-size:27px;font-weight:550;letter-spacing:-.7px;margin:8px 0}#page>p{color:#999;line-height:1.6}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:25px}.card{padding:21px;border:1px solid var(--line);border-radius:16px;background:#252525}.card h3{font-size:15px;font-weight:550;margin:13px 0 7px}.card p{font-size:12px;color:#aaa;line-height:1.6}.card>button,.card>a{margin-top:10px}.card svg{color:#c3d6ca}.online{color:#a7d0b5}.offline{color:#dbaf9d}.task-card{background:#282828;border:1px solid #ffffff16;border-radius:14px;padding:17px;margin-top:14px}.task-card h3{font-size:14px;margin:0 0 7px}.task-card pre{font:11px/1.7 Consolas,monospace;white-space:pre-wrap;max-height:280px;overflow:auto;background:#191919;padding:12px;border-radius:8px}.task-card p{font-size:12px;color:#bbb}.task-card button{margin:5px 8px 0 0}.search-results{max-height:50vh;overflow:auto}#scrim{position:fixed;inset:0;background:#0009;z-index:29}#mic.recording{color:#ffb3ab;background:#633c3c}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{50%{opacity:.3}}@media(min-width:1500px){#sidebar{width:280px}#composer-dock{max-width:850px}}@media(max-width:1100px){#code-panel{width:290px}.private-label{display:none}#effort{font-size:10px}}@media(max-width:800px){#sidebar{position:fixed;inset:0 auto 0 0;width:260px;z-index:30;transform:translateX(-100%);transition:transform .2s}.mobile-open #sidebar{transform:translateX(0)}#expand{display:inline-flex}#topbar{padding:10px 12px}#composer-dock{padding:10px 12px 13px}#messages{padding:16px 20px}#welcome h1{font-size:27px}.pill{font-size:10px;padding:7px}#code-panel{position:fixed;inset:65px 0 0 auto;width:80vw;z-index:12;box-shadow:-20px 0 60px #0007}#code-panel:not(.open){display:none}#page{padding:20px}.top-actions{gap:0}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.modal-head h2{margin:0}.modal-head .icon{margin-top:-5px}

.brand img{display:block;width:43px;height:38px;object-fit:contain}.brand-mark img{width:80px;height:70px;display:block}.welcome-symbol img{display:block;width:66px;height:58px;object-fit:contain}

#popover{max-height:min(70dvh,520px);overflow-y:auto;scrollbar-width:thin}


.team-bar{display:flex;flex-wrap:wrap;gap:6px;max-width:920px;margin:0 auto 10px;padding:0 12px}.team-bar[hidden]{display:none}.team-bar .pill{font-size:11px;border:1px solid #ffffff1a;padding:6px 9px;white-space:normal}.team-bar small{width:100%;font-size:10px;color:#999}

#sidebar-scroll{flex:1;min-height:0;overflow-y:scroll;overflow-x:hidden;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#686868 #202020}#sidebar-scroll::-webkit-scrollbar{width:8px}#sidebar-scroll::-webkit-scrollbar-thumb{background:#626262;border-radius:10px}#sidebar-scroll .history-section{overflow:visible;flex:none}#sidebar>header,#sidebar>footer{flex-shrink:0}.brand{border:1px solid #ffffff16;border-radius:12px;background:linear-gradient(135deg,#ffffff12,#ffffff03);box-shadow:inset 0 1px #ffffff10;padding:4px 9px!important}

.saved-api-list{margin-top:24px;border-top:1px solid #ffffff20;padding-top:12px}.saved-api-card{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-top:12px;padding:16px;background:#1d1d1d;border:1px solid #ffffff16;border-radius:12px}.saved-api-card p{overflow-wrap:anywhere;margin:6px 0}.saved-api-card small{display:block;color:#aaa;line-height:1.8}.saved-api-card .actions{margin:0;flex-wrap:wrap}.card input:not([type=checkbox]),.card select{max-width:100%}.card pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}@media(max-width:650px){.saved-api-card{flex-direction:column}.actions{flex-wrap:wrap}}

.project-row{display:flex;align-items:center;gap:1px;border-radius:9px}.project-header{min-width:0;flex:1;gap:7px}.project-header svg{width:15px;height:15px}.project-row>.icon{width:24px;height:27px;padding:5px;opacity:.55}.project-row:hover>.icon,.project-row:focus-within>.icon{opacity:1}.project-row>.icon svg{width:15px;height:15px}.current-project>.project-row{background:#ffffff08}.project-children{margin-left:17px;padding-left:8px;border-left:1px solid #ffffff18}.empty-project{display:block;font-size:10px;color:#777;padding:8px}.history-row.active:before{content:"";width:5px;height:5px;background:#a4c9b5;border-radius:50%;position:absolute;left:2px}.history-row.active>button:first-child{padding-left:13px}#sidebar-organize{margin-left:auto;width:25px;height:25px;font-size:18px}

/* Comfortable spacing for settings and connection dialogs. */
#page{width:100%}#page>.card{margin-top:24px;padding:26px}.card h3:first-child{margin-top:0}.card p{line-height:1.8}.card label{margin:20px 0}.card label:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:10px;line-height:1.7}.card input[type=checkbox]{width:16px;height:16px;flex:none;margin:3px 0 0;padding:0}.actions{flex-wrap:wrap;gap:10px}.saved-api-card{padding:20px;flex-wrap:wrap}.saved-api-card>div:first-child{min-width:0;flex:1 1 260px}.saved-api-card .actions{justify-content:flex-start;flex:1 1 250px}.saved-api-card button{min-height:38px}dialog{max-height:calc(100dvh - 40px);overflow-y:auto;padding:28px}#dialog-content>label{margin:22px 0 14px}#dialog-content>.actions{margin:20px 0 16px}#dialog-content>button{margin:8px 8px 0 0}dialog input{min-height:44px}dialog .secondary,dialog .primary{min-height:40px}@media(max-width:650px){#page>.card{padding:20px}.saved-api-card .actions{flex-basis:auto}dialog{padding:22px}}

#dictation-language{max-width:120px;background:#242424;color:#ddd;border:1px solid #ffffff20;border-radius:8px;padding:6px;font-size:11px}#recording .wave{overflow:hidden;white-space:nowrap;min-width:0}@media(max-width:500px){#recording{gap:6px}.wave{letter-spacing:2px}}

/* Each tool owns its expandable conversation history. Projects keep their own threads. */
.function-group{margin:2px 0 5px}.function-row{display:flex;align-items:center;gap:2px}.function-row>.nav-item{flex:1;min-width:0}.function-row>.nav-item>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-toggle{display:flex;align-items:center;justify-content:center;gap:5px;flex:none;min-width:34px;min-height:32px;border-radius:8px;color:#aaa;padding:5px}.history-toggle:hover,.history-toggle[aria-expanded=true]{background:#ffffff08;color:#ddd}.history-count{font-size:10px;color:#999}.function-history{margin:3px 4px 8px 21px;padding-left:9px;border-left:1px solid #ffffff18}.function-history .history-row>button:first-child{font-size:12px;padding:9px 30px 9px 9px;line-height:1.4}.function-history .history-row.active>button:first-child{padding-left:12px}.function-history .row-more{opacity:.65;position:absolute;background:transparent;font-size:16px}.function-history .history-row:hover .row-more{opacity:1;background:#252525}.function-history .history-row.active .row-more{background:#303030}
.knowledge-toolbar{display:flex;gap:12px;margin:24px 0 12px;flex-wrap:wrap}.knowledge-toolbar input{flex:1;min-width:180px}.knowledge-toolbar select{width:auto;min-width:170px}.knowledge-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:18px;padding-bottom:28px}.knowledge-list .card{margin:0;min-width:0;padding:22px}.knowledge-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#aaa;font-size:11px}.knowledge-status{border:1px solid #ffffff20;border-radius:20px;padding:3px 8px}.knowledge-status.failed{color:#eeb8aa}.knowledge-status.passed{color:#a6d3b8}.knowledge-card p{overflow-wrap:anywhere}.knowledge-content{white-space:pre-wrap;overflow-wrap:anywhere;background:#191919;border-radius:12px;padding:18px;max-height:45vh;overflow:auto;font:13px/1.8 ui-monospace,monospace}.knowledge-check{display:flex;gap:10px;align-items:flex-start}.knowledge-check input{width:16px!important;min-height:16px;margin-top:3px}#dialog-content textarea{min-height:190px;width:100%;resize:vertical;line-height:1.6}.knowledge-intro .muted{max-width:75ch}
.knowledge-toolbar input,.knowledge-toolbar select{background:#292929;border:1px solid #ffffff24;border-radius:10px;color:var(--text);padding:12px 14px;min-height:44px}.knowledge-toolbar input:focus{border-color:#aaa}

.knowledge-topics{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.knowledge-topics button{min-height:36px;padding:8px 14px}.knowledge-intro+.knowledge-list{margin-top:20px}

.login-card>.relogin{width:100%;margin:-12px 0 20px;background:transparent;color:#ccc;font-size:13px;cursor:pointer}
.login-card>.relogin:hover{color:#fff;border-color:#ffffff50}

.gen-card{position:relative;overflow:hidden;border-radius:14px;border:1px solid var(--line,#3334);background:var(--panel,#8881);margin:10px 0;max-width:360px;display:flex;align-items:flex-end}
.gen-card.square{aspect-ratio:1/1}.gen-card.portrait,.gen-card.tall{aspect-ratio:2/3;max-width:260px}.gen-card.landscape{aspect-ratio:3/2;max-width:420px}.gen-card.wide{aspect-ratio:16/9;max-width:440px}.gen-card.audio{aspect-ratio:auto;min-height:120px;max-width:440px}
.gen-shimmer{position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.14) 50%,transparent 70%);background-size:220% 100%;animation:gen-move 1.6s linear infinite}
@keyframes gen-move{from{background-position:120% 0}to{background-position:-120% 0}}
.gen-info{position:relative;display:flex;flex-direction:column;gap:6px;padding:14px;width:100%;box-sizing:border-box}
.gen-eta{font-size:.92em}.gen-bar{height:6px;border-radius:3px;background:rgba(127,127,127,.25);overflow:hidden}.gen-bar i{display:block;height:100%;width:3%;background:var(--accent,#7c5cff);transition:width 1s linear}
@media (prefers-reduced-motion:reduce){.gen-shimmer{animation:none}}

.pl{border:1px solid var(--line,#3334);border-radius:12px;padding:10px;margin:8px 0;max-width:640px;background:var(--panel,#8881);outline:none}
.pl:focus-visible{box-shadow:0 0 0 2px #7c5cff88}
.pl.video video{width:100%;border-radius:8px;display:block;background:#000}
.pl:fullscreen{max-width:none;display:flex;flex-direction:column;justify-content:center;background:#000}
.pl:fullscreen video{max-height:calc(100vh - 70px);object-fit:contain}
.pl-name{font-size:.9em;margin-bottom:6px;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px}
.pl-btn{border:1px solid var(--line,#3334);background:transparent;color:inherit;border-radius:8px;padding:4px 9px;font:inherit;font-size:.85em;cursor:pointer;text-decoration:none;min-width:34px;text-align:center}
.pl-btn:hover{background:var(--hover,#8882)}.pl-btn.on{background:#7c5cff33;border-color:#7c5cff}
.pl-seek{flex:1 1 180px;min-width:120px;accent-color:#7c5cff}
.pl-time{font-variant-numeric:tabular-nums;font-size:.85em;opacity:.85;min-width:92px;text-align:center}
.pl-speed{background:transparent;color:inherit;border:1px solid var(--line,#3334);border-radius:8px;padding:3px}
.pl-vol-wrap{display:inline-flex;align-items:center;gap:4px;font-size:.85em}.pl-vol{width:80px;accent-color:#7c5cff}

.check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:6px;margin:6px 0 10px}.check{display:flex;align-items:center;gap:6px;font-size:.92em}

.pre-wrap{white-space:pre-wrap}.steps{max-height:340px;overflow:auto;font-size:.88em;display:flex;flex-direction:column;gap:4px;margin-top:6px}.step b{color:#9d8cff}.step.comando span{font-family:ui-monospace,monospace}

.studio-tracks{display:flex;flex-direction:column;gap:6px;margin-top:10px;max-height:52vh;overflow:auto}.studio-row{display:grid;grid-template-columns:1fr auto auto 110px;gap:6px;align-items:center;padding:6px 8px;border:1px solid var(--line,#3334);border-radius:8px}.studio-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-sections{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}

.logout-top{width:auto!important;padding:0 10px;font-size:.85em;border:1px solid var(--line,#3334);border-radius:8px}

.choice-list{display:flex;flex-direction:column;gap:8px;max-height:46vh;overflow:auto;margin:8px 0}.choice{display:flex;gap:10px;align-items:flex-start;text-align:left;padding:12px;border:1px solid var(--line,#3334);border-radius:12px;background:transparent;color:inherit;font:inherit;cursor:pointer;min-height:48px}.choice span{display:flex;flex-direction:column;gap:2px}.choice small{opacity:.75}.choice.on{border-color:#7c5cff;background:#7c5cff22;box-shadow:0 0 0 2px #7c5cff55}.choice:focus-visible{outline:2px solid #7c5cff}
