/* Studio v2: Google AI Studio style. Higher contrast, clear buttons, blue accent, light motion. Loaded last. */
:root,html body{--ink:#eef0fb;--muted:#c6cbe6;--mute:#c6cbe6;--green:#9aa7ff;--gold:#9aa7ff;--acc:#9aa7ff;--acc2:#c3caff;--line:#343a63;--panel:#181c33;--panel2:#222746;--bg:#0f1220;--paper:#0f1220;--surface:#181c33;--sidebar:#12152a}
#sideSites{display:none!important}
html body .hint,html body .sideCaption,html body label,html body summary,html body .pill,html body footer,html body footer a{color:var(--muted)}
html body h1,html body h2,html body h3,html body .messageBody,html body .userMessage,html body #prompt,html body select,html body input,html body textarea{color:var(--ink)}
html body #chatWelcome h1{color:#e8eaed}
html body #chatWelcome p{color:var(--muted)}
html body .assistantMessage .messageLabel{color:#c3caff}
html body #prompt::placeholder,html body input::placeholder,html body textarea::placeholder{color:#a3a9cc}
/* buttons: clear shape, border, contrast */
html body button.subtle,html body .appTop button,html body #menuToggle,html body #langToggle,html body .messageActions button,html body .actions button,html body #sideTools button,html body .sideBottom button{background:var(--panel2);color:var(--ink);border:1px solid #4c5388}
html body .appTop button,html body #langToggle{color:var(--ink)}
html body #sideTools button,html body .sideBottom button{border-color:transparent;background:transparent}
html body #sideTools button i,html body .sideBottom button i{color:#c3caff}
html body button.subtle:hover,html body .appTop button:hover,html body .messageActions button:hover,html body .actions button:hover,html body #sideTools button:hover,html body .sideBottom button:hover{background:#2d3359;color:#fff;border-color:#9aa7ff}
html body #sideTools button.active{background:#2c3262;color:#dfe3ff}
html body #saveKey,html body #unlock,html body #addSite,html body #saveResult{background:#e8b4a0;color:#241410;border:1px solid #e8b4a0;font-weight:600}
html body #run,html body .composer #run{background:linear-gradient(135deg,#f0c2ae,#e0a28e)!important;color:#241410!important;border:0}
html body #run:disabled,html body .composer #run:disabled{background:#222746!important;color:#a3a9cc!important;background:#222746;color:#a3a9cc;border:1px solid #343a63}
html body .newChat,html body #newChat{background:#2c3262!important;color:#dfe3ff!important;border:1px solid #9aa7ff!important}
html body .danger{background:#3b1f1f;color:#ffb4a9;border:1px solid #8c4a43}
html body .tab{color:var(--muted)}html body .tab.selected{background:#2c3262;color:#dfe3ff}
html body .upBtn{color:#c6cbe6;border:1px solid transparent}
html body .upBtn:hover{color:#fff;background:#2d3359;border-color:#4c5388}
html body input:not([type=checkbox]),html body select,html body textarea{background:#141830;border:1px solid #4c5388}
html body input:focus,html body textarea:focus,html body select:focus{outline:2px solid #9aa7ff;outline-offset:2px}
html body input[type=checkbox]{accent-color:#9aa7ff}
html body a{color:#c3caff}
html body .composer{border:1px solid #4c5388;background:#181c33}
html body .composer:focus-within{border-color:#9aa7ff;box-shadow:0 0 0 3px #9aa7ff33,0 4px 28px #000a}
html body .userMessage{background:#2c3262;color:#eef0ff}
/* subtle motion */
html body button{transition:background-color .2s,border-color .2s,color .2s,transform .18s cubic-bezier(.2,.7,.2,1),box-shadow .2s}
html body button:active{transform:scale(.97)}
html body .card,html body #settings,html body #workspacePanel{animation:s2in .3s cubic-bezier(.2,.7,.2,1) both}
html body details[open]>*:not(summary){animation:s2in .25s cubic-bezier(.2,.7,.2,1) both}
html body #run:not(:disabled){animation:s2pulse 3.2s ease-in-out infinite}
@keyframes s2in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes s2pulse{0%,100%{box-shadow:0 0 0 0 #e8b4a000}50%{box-shadow:0 0 0 6px #e8b4a033}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
html body .messageActions button,html body .messageActions button *{color:#e8eaed!important;border-color:#4c5388!important}
html body .messageActions button:hover{background:#2d3359!important;border-color:#9aa7ff!important}
html body #status,html body #status *,html body .messageMeta,html body .timing{color:#c6cbe6}
html body #settings{scroll-margin-top:84px}html body .adv>summary{font-size:15px;padding:6px 0}html body #customPanel{margin-top:12px}
html body #palette,html body label[for=palette],html body #modelInventory,html body #updateNote{display:none!important}

html body,html body main,html body .appShell,html body .appMain{background:#0f1220}
html body #sidebar,html body .appShell #sidebar{background:#12152a}
html body label:has(#darkMode){display:none}
html body #chatWelcome>*:first-child{color:#c3caff}
html body input[type=checkbox]{accent-color:#e8b4a0}
html body .sideBrand img,html body .brand img{border-radius:10px}
/* Voices library */
#voicesPanel{position:fixed;inset:0;background:#05060fcc;z-index:70;display:flex;align-items:flex-end;justify-content:center;backdrop-filter:blur(4px)}
#voicesPanel[hidden]{display:none}
.vSheet{width:100%;max-width:640px;max-height:90dvh;overflow:auto;background:#141830;border:1px solid #343a63;border-radius:24px 24px 0 0;padding:18px 16px 22px;animation:s2in .28s cubic-bezier(.2,.7,.2,1) both}
.vTop{display:flex;align-items:center;justify-content:space-between;gap:12px}
.vTop strong{font-size:20px;color:#eef0fb}
.vSub{color:#c6cbe6;font-size:14px;line-height:1.7;margin:8px 0 12px}
.vSegs{display:flex;gap:8px;margin:8px 0}
.vSeg{flex:1;background:#222746;color:#eef0fb;border:1px solid #4c5388;border-radius:999px;padding:8px 6px;min-height:40px;font-size:14px;font-weight:600}
.vSeg.sel{background:#2c3262;border-color:#9aa7ff;color:#dfe3ff}
.vCount{color:#a3a9cc;font-size:12px;margin:10px 2px 6px}
.vList{display:flex;flex-direction:column;gap:8px}
.vCard{display:flex;align-items:center;gap:10px;background:#181c33;border:1px solid #343a63;border-radius:16px;padding:10px 12px}
.vCard.chosen{border-color:#e8b4a0;background:#221f35}
.vText{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.vText strong{color:#eef0fb;font-size:15px}
.vText span{color:#c6cbe6;font-size:12.5px;line-height:1.5}
.vPlay{min-height:40px;padding:6px 14px;font-size:13px;min-width:64px}
.vPlay.on{background:#2c3262;border-color:#9aa7ff}
.vUse{min-height:40px;padding:6px 12px;font-size:13px;background:#e8b4a0;color:#241410;border:1px solid #e8b4a0;font-weight:600;border-radius:11px}
.vCard.chosen .vUse{background:transparent;color:#e8b4a0}
#sideVoiceChat,#companionPanel .hint{display:none!important}
/* Agents in the side menu */
#sideAgents{margin:4px 0 8px}
#agentList{display:flex;flex-direction:column;gap:4px}
#agentList button{display:flex;align-items:center;gap:12px;width:100%;text-align:start;padding:9px 12px;border-radius:14px;background:transparent;border:1px solid transparent;color:#eef0ff;min-height:48px;transition:background .18s,border-color .18s}
#agentList button:hover,#agentList button.active{background:rgba(154,167,255,.14);border-color:rgba(154,167,255,.35)}
#agentList button i{font-style:normal;display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:rgba(232,180,160,.16);color:#e8b4a0;font-size:16px;flex:none}
#agentList button em{font-style:normal;display:flex;flex-direction:column;min-width:0}
#agentList button span{font-weight:600;color:#fff;font-size:15px}
#agentList button small{color:#b9c0ee;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
