@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
body.chat-v3{--frame:#121212;--ink:#0e0f0d;--muted:#a9aaa2;--text:#f3f3ef;--border:#ffffff16;--accent:#d9f87f;--accent2:#a8eac2;--panel:linear-gradient(172deg,#dcf98c 0%,#c3f09a 38%,#a2e3b4 72%,#8fdcc6 100%);background:var(--frame)!important;color:#f3f3ef;font-family:Manrope,'Segoe UI',sans-serif!important;font-size:14px;line-height:1.45}
.chat-v3 *, .chat-v3 button,.chat-v3 input,.chat-v3 textarea,.chat-v3 select{font-family:inherit!important}.chat-v3 #shader-bg{display:none}.chat-v3 .body{display:grid!important;grid-template-columns:244px minmax(0,1fr);height:100dvh!important;padding:12px 12px 12px 0;overflow:hidden}.chat-v3 .sidebar{width:auto!important;display:flex!important;flex-direction:column;background:transparent!important;border:0!important;padding:10px 14px 4px 18px;min-height:0;gap:12px}.chat-v3 .work{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--panel)!important;border-radius:36px;color:var(--ink);isolation:isolate;overflow:hidden}.chat-v3 .work:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(#0e0f0d1c 1.1px,transparent 1.5px);background-size:9px 9px;mask-image:radial-gradient(ellipse 55% 45% at 62% 40%,#000,transparent 75%)}
.chat-v3 .v3-brand{display:flex;align-items:center;height:44px;font-size:22px;font-weight:800;color:#f3f3ef!important;letter-spacing:-.04em;text-decoration:none!important}.chat-v3 .v3-brand:before{content:'R';background:var(--panel);color:#121212;border-radius:9px;width:29px;height:29px;display:grid;place-items:center;margin-right:10px;font-size:16px}.chat-v3 .new-chat-btn-full{width:100%;flex-shrink:0;height:44px;border-radius:99px;background:var(--panel)!important;color:#121212!important;border:0!important;font-size:13px;font-weight:700;margin:0}.v3-history-search{width:100%;min-width:0;height:38px;padding:0 14px;border-radius:99px;border:1px solid #ffffff16;background:#1b1b1b;color:#f3f3ef;font-size:12px}.chat-v3 .sidebar-divider{display:none}.chat-v3 #sidebarHistory{flex:1;overflow-y:auto;min-height:0;padding:0}.v3-history-date{font-size:10px;color:#8b8b82;letter-spacing:.08em;padding:12px 8px;text-transform:uppercase}.v3-history-row>button{width:100%;border:0;background:none;border-radius:14px;text-align:left;padding:10px;color:#f3f3ef;cursor:pointer;display:grid;gap:4px}.v3-history-row>button:hover{background:#252525}.v3-history-row span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px}.v3-history-row small{color:#92928b;font-size:10px}.v3-side-foot{border-top:1px solid #ffffff16;display:grid;gap:6px;padding:10px 0}.v3-side-foot a{padding:7px 10px;color:#aaa!important;text-decoration:none;font-size:13px}.v3-side-foot a:hover{color:#fff!important}
.chat-v3 .v3-panel-top{height:64px;min-height:64px;position:relative;display:flex!important;justify-content:flex-end;background:none!important;border:0!important;padding:0 18px}.v3-notch{position:absolute;top:0;left:50%;transform:translateX(-50%);width:260px;height:44px;background:#121212;border-radius:0 0 22px 22px;color:#e8e8df;display:flex;align-items:center;justify-content:center;font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:0 20px}.v3-notch:before{content:'';width:6px;height:6px;border-radius:50%;background:#d9f87f;margin-right:9px;flex-shrink:0}.chat-v3 .topbar-right{gap:10px;flex-wrap:nowrap}.chat-v3 .topbar-right>.topbar-link{display:none}.chat-v3 .topbar-right>.topbar-link[href="library.html"]{display:block;color:#254c32!important;border:0!important;background:none!important}.v3-balance{display:flex;align-items:center;gap:10px;padding:5px 5px 5px 12px;background:#121212;border-radius:99px;color:#f3f3ef!important;text-decoration:none;font-size:12px}.chat-v3 .balance-chip{background:none!important;border:0!important;padding:0!important;font-size:12px;color:#fff!important}.v3-balance>span{background:#242424;border-radius:99px;padding:7px 10px}.v3-sidebar-toggle{display:none}
.chat-v3 #paramsBar,.chat-v3 #mobileHeader,.chat-v3 .hf-chat-host{display:none!important}.chat-v3 .messages{flex:1;min-height:0;padding:20px max(24px,calc((100% - 880px)/2));background:none!important;color:#121212!important;overflow-y:auto}.chat-v3 .msg{max-width:880px;margin:0 auto 24px;background:transparent!important;border:0!important;color:#121212!important}.chat-v3 .msg.user{background:#121212!important;border-radius:22px 22px 6px 22px;padding:14px 18px;color:#eee!important;max-width:75%;margin-left:auto;margin-right:0}.chat-v3 .msg.user .msg-meta{color:#a9a9a1}.chat-v3 .msg.bot .msg-meta{color:#284c34}.chat-v3 .msg-text,.chat-v3 .message-content{color:inherit!important}.chat-v3 .message-content pre{background:#121212!important;color:#f3f3ef!important;padding:16px;border-radius:16px}.chat-v3 .message-content code{font-family:Consolas,monospace!important}.chat-v3 .msg img,.chat-v3 .msg video{max-width:100%;border-radius:18px}.chat-v3 .msg a{color:#235a39!important}.chat-v3 .thinking{background:#ffffff36!important;color:#121212!important}.chat-v3 .welcome-cards,.chat-v3 .empty-hint{display:none!important}
.chat-v3 .input-area{flex-shrink:0;width:min(928px,100%);margin:0 auto;padding:0 24px 22px!important;background:none!important;border:0!important}.chat-v3.v3-empty .messages{display:none!important}.chat-v3.v3-empty .input-area{flex:1;display:flex;flex-direction:column;justify-content:center;padding-bottom:8vh!important;overflow-y:auto;min-height:0}.v3-hero{display:none;margin-bottom:26px}.v3-empty .v3-hero{display:block}.v3-hero h1{font-size:clamp(38px,5.3vw,68px);font-weight:500;line-height:1.05;letter-spacing:-.055em;color:#121212!important;margin:0}.v3-hero p{font-size:14px;color:#2e5038;margin:14px 0 0}.chat-v3 .v3-categories{align-self:flex-start;display:flex!important;width:auto;padding:4px;gap:4px;border:1px solid #12121222;background:#ffffff40;border-radius:99px;margin:0 0 12px;transform:none!important;position:static!important}.chat-v3 .cat-btn{border:0!important;background:none!important;color:#2b4a33!important;padding:9px 16px!important;border-radius:99px;font-size:12px;font-weight:600;min-width:0}.chat-v3 .cat-btn.active{background:#121212!important;color:#fff!important;box-shadow:none!important}
.v3-composer{background:#0f0f0f;border-radius:28px;box-shadow:0 25px 55px #19462d38,inset 0 0 0 1px #ffffff13;color:#eee;position:relative;padding:5px}.chat-v3 #chatInput{display:block;width:100%;min-height:62px;max-height:210px;resize:vertical;background:none!important;color:#eee!important;border:0!important;box-shadow:none!important;padding:16px 14px 8px;font-size:15px;line-height:1.5;border-radius:20px!important}.chat-v3 #chatInput::placeholder{color:#787872}.v3-action-row{display:flex;align-items:flex-end;gap:7px;padding:5px 6px 6px;flex-wrap:wrap}.v3-model-trigger{border:1px solid #404039;border-radius:99px;padding:8px 12px;color:#f3f3ef;background:#151515;font-size:12px;cursor:pointer;white-space:nowrap}.v3-model-trigger:after{content:'⌄';margin-left:8px;color:#858578}.chat-v3 .v3-controls{width:auto!important;display:flex!important;flex:1;min-width:0;flex-wrap:wrap;gap:6px;align-items:center;padding:0!important;overflow:visible!important;border:0!important;background:none!important;color:#ddd!important}.chat-v3 .tp-model-header{display:none}.chat-v3 .tp-section{margin:0;padding:0;border:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px}.chat-v3 .tp-label{font-size:10px;color:#8e8e86;margin:0 4px 0 0}.chat-v3 .tp-toggle-wrap,.chat-v3 .tp-select,.chat-v3 .tp-file-btn,.chat-v3 .tp-btn-group{background:#222!important;border:1px solid #383832!important;color:#d5d5cc!important;border-radius:99px;padding:7px 9px;font-size:11px;min-height:31px;width:auto!important;margin:0;gap:4px}.chat-v3 .tp-toggle-label{font-size:11px}.chat-v3 .tp-btn{font-size:10px;padding:4px 6px;color:#aaa!important;background:none!important;border:0!important;border-radius:99px}.chat-v3 .tp-btn.active{background:#d9f87f!important;color:#111!important}.chat-v3 .tp-range-wrap{max-width:160px;margin:0}.chat-v3 .tp-section>span{display:none!important}.chat-v3 .send-btn{border:0!important;border-radius:99px!important;padding:11px 17px!important;background:var(--panel)!important;color:#111!important;font-size:12px;white-space:nowrap;height:auto;min-height:42px;margin-left:auto}.chat-v3 .send-btn:disabled{background:#292929!important;color:#777!important;box-shadow:none;cursor:not-allowed}.chat-v3 .clip-btn{margin:0!important;width:32px;height:32px;min-width:32px;border-radius:50%;background:#242424!important;color:#ccc;border-color:#393939!important}.chat-v3 .input-footer{padding:9px 5px 0!important;display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between;color:#35553e!important;font-size:10px}.chat-v3 #costHint{color:#35553e!important}.chat-v3 #errorLine{color:#6c2424!important}.chat-v3 #imageModelHint{color:#35553e!important}.chat-v3 .file-preview{background:#242424!important;margin:8px;color:#ddd}
.v3-suggestions{display:none;flex-wrap:wrap;gap:7px;margin-top:18px}.v3-empty .v3-suggestions{display:flex}.v3-suggestions button{background:none;border:1px solid #12121277;color:#153321;border-radius:99px;font-size:11px;font-weight:600;padding:9px 14px;cursor:pointer}.v3-suggestions button:hover{background:#121212;color:#fff}.v3-suggestions .v3-gallery-button{border-style:dashed}.v3-key-hint{font-size:10px;color:#35553e99;margin:10px 0 0}.chat-v3:not(.v3-empty) .v3-key-hint{display:none}
.v3-model-dialog{background:#141414;color:#f3f3ef;border:1px solid #30302b;border-radius:24px;width:460px;max-width:calc(100vw - 24px);max-height:78dvh;padding:12px;box-shadow:0 24px 80px #0008;overflow:auto}.v3-model-dialog::backdrop{background:#0006;backdrop-filter:blur(4px)}.v3-dialog-head{display:flex;justify-content:space-between;align-items:center;padding:7px 7px 12px;gap:12px}.v3-dialog-head button{background:#292929;border:0;color:#bbb;border-radius:99px;padding:8px 12px;cursor:pointer}.chat-v3 .model-browser-tools input,.chat-v3 .model-browser-tools select{background:#242424;color:#eee;border-color:#383833;border-radius:12px}.chat-v3 .model-browser-tools small{color:#92928a}.chat-v3 .model-choice-copy strong{color:#eee;font-size:13px}.chat-v3 .model-choice-copy small{color:#a4a499}.chat-v3 .model-choice-copy .recommendation-reason{color:#e7c784}.chat-v3 .model-choice.selected{background:#d9f87f14;border-color:#b6d36f}.chat-v3 .sidebar-group-label{color:#919187;font-size:11px}.chat-v3 .model-choice-actions button{color:#c1c1af}.chat-v3 .model-star[aria-pressed=true]{color:#f5cb6b}.v3-sidebar-veil{display:none}.chat-v3 .hf-chip{display:flex;align-items:center;gap:6px;background:#222;border:1px solid #383832;border-radius:12px;padding:6px 9px;font-size:11px;max-width:100%;flex-wrap:wrap}.hf-chip>span{color:#aaa}.hf-chip input:not([type=checkbox]),.hf-chip select,.hf-chip textarea{width:130px;min-width:0;max-width:100%;background:#151515;color:#eee;border:1px solid #444;border-radius:7px;padding:5px;font-size:11px}.hf-chip input[type=number]{width:64px}.hf-chip input[type=checkbox]{accent-color:#d9f87f}.hf-chip input[type=file]{width:180px}.chat-v3 .hf-job{background:#ffffff32!important;border-radius:20px;padding:18px}.hf-job button{border:1px solid #284c34;background:transparent;border-radius:99px;padding:7px 12px;margin:8px 8px 8px 0;cursor:pointer;color:#284c34}
@media(max-width:1100px){.v3-notch{left:32%;width:200px}.chat-v3 .body{grid-template-columns:220px minmax(0,1fr)}.chat-v3 .topbar-right>.topbar-link{display:none!important}.v3-hero h1{font-size:48px}.v3-action-row{align-items:center}}
@media(max-width:760px){.chat-v3 .body{display:block!important;padding:6px;height:100dvh!important}.chat-v3 .work{height:100%;border-radius:24px}.chat-v3 .sidebar{position:fixed;inset:0 auto 0 0;width:min(280px,85vw)!important;z-index:120;background:#121212!important;transform:translateX(-105%);transition:transform .2s;padding:18px!important}.chat-v3.v3-sidebar-open .sidebar{transform:none}.v3-sidebar-open .v3-sidebar-veil{display:block;position:fixed;inset:0;z-index:110;border:0;background:#0008}.v3-sidebar-toggle{display:block;border:0;background:none;color:#121212;width:36px;height:36px;font-size:22px;margin-right:auto}.v3-notch{display:none}.chat-v3 .v3-panel-top{height:56px;min-height:56px;padding:0 10px}.v3-balance{gap:5px;font-size:10px}.v3-balance>span{padding:6px;font-size:10px}.chat-v3 .balance-chip{font-size:10px}.chat-v3 .input-area{padding:0 12px 14px!important}.chat-v3.v3-empty .input-area{padding-bottom:4vh!important;justify-content:center}.v3-hero{margin-bottom:20px}.v3-hero h1{font-size:38px}.v3-hero p{font-size:12px}.chat-v3 .v3-categories{width:100%;justify-content:space-between;gap:0}.chat-v3 .cat-btn{padding:8px 12px!important;font-size:11px;flex:1}.chat-v3 #chatInput{font-size:14px;padding:13px 11px;min-height:68px}.v3-action-row{gap:6px}.chat-v3 .v3-controls{flex-basis:100%;order:3}.chat-v3 .send-btn{min-height:40px;padding:9px 13px!important}.chat-v3 .messages{padding:18px 14px}.chat-v3 .msg.user{max-width:90%}.v3-suggestions{gap:6px;margin-top:13px}.v3-suggestions button{font-size:10px;padding:8px 11px}.v3-model-dialog{width:calc(100vw - 12px);max-width:none;max-height:86dvh;margin:auto auto 6px;border-radius:24px 24px 18px 18px}.hf-chip{width:100%;justify-content:space-between}.chat-v3 .tp-file-btn{max-width:100%}.chat-v3 .input-footer{font-size:10px}}
.chat-v3 .v3-action-row{align-items:center;flex-wrap:nowrap}
.chat-v3 .v3-controls{flex-direction:row!important;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-self:center;flex:1 1 0;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;scrollbar-color:#45453b transparent;padding-bottom:3px!important}
.chat-v3 .v3-controls>.tp-section,.chat-v3 .v3-controls>.hf-chip{flex:0 0 auto;flex-wrap:nowrap;width:auto;max-width:none}
.chat-v3 .v3-controls>.tp-section{white-space:nowrap}
.chat-v3 .v3-controls>.tp-section:empty,.chat-v3 .tp-file-name:empty{display:none}
.chat-v3 .v3-controls .tp-label{white-space:nowrap}
.chat-v3 .v3-controls .tp-btn-group{flex-wrap:nowrap}
.chat-v3 .v3-model-trigger,.chat-v3 .clip-btn,.chat-v3 .send-btn{flex-shrink:0}
@media(max-width:760px){.chat-v3 .v3-action-row{flex-wrap:wrap}.chat-v3 .v3-controls{flex-basis:100%;order:3}.chat-v3 .v3-controls>.hf-chip{width:auto;justify-content:flex-start}}
.chat-v3 .input-area,.chat-v3.v3-empty .input-area{width:100%;max-width:1480px;flex:0 0 auto;margin:0 auto;display:block;overflow:visible;padding:0 28px 20px!important}
.chat-v3 .v3-hero{width:100%;max-width:1480px;margin:0 auto;padding:30px 40px;min-height:0}
.chat-v3.v3-empty .v3-hero{display:flex;flex:1;flex-direction:column;justify-content:center}
.chat-v3 .v3-hero p,.chat-v3 .v3-key-hint{color:#31543c!important}
.chat-v3 .messages{padding:24px max(36px,calc((100% - 1400px)/2))}
.chat-v3 .msg{max-width:1200px}
.chat-v3 #chatInput{min-height:90px;max-height:180px}
.chat-v3 .v3-action-row{flex-wrap:wrap;align-items:center;gap:10px;padding:8px 10px 10px}
.chat-v3 .v3-controls{flex-wrap:wrap;overflow:visible!important;gap:8px;padding-bottom:0!important}
.chat-v3 .v3-controls>.tp-section,.chat-v3 .v3-controls>.hf-chip{max-width:100%;white-space:normal}
.chat-v3 .hf-more-button{border:1px solid #47473c;border-radius:99px;background:#222;color:#e2e2d6;padding:9px 12px;font-size:12px;cursor:pointer}
.hf-settings-dialog{width:min(880px,calc(100vw - 24px));max-height:85dvh;background:#151515;color:#eee;border:1px solid #404035;border-radius:24px;padding:20px}
.hf-settings-dialog::backdrop{background:#0008;backdrop-filter:blur(4px)}
.hf-settings-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:12px}
.chat-v3 .hf-settings-fields .hf-chip{border-radius:16px;align-items:flex-start;flex-direction:column;width:100%;max-width:none;min-width:0}
.chat-v3 .hf-settings-fields .hf-chip input:not([type=checkbox]),.chat-v3 .hf-settings-fields .hf-chip select,.chat-v3 .hf-settings-fields .hf-chip textarea{width:100%}
.chat-v3 .hf-settings-fields .hf-chip textarea{min-height:76px}
.hf-settings-note{font-size:12px;color:#aaa;line-height:1.5;margin:0 0 18px}
@media(max-width:1000px){.chat-v3 .v3-controls{flex-basis:100%;order:3}.chat-v3 .input-area,.chat-v3.v3-empty .input-area{padding:0 16px 14px!important}.chat-v3 .v3-hero{padding:20px 26px}.chat-v3 .messages{padding:20px 24px}}
@media(max-width:760px){.chat-v3 .input-area,.chat-v3.v3-empty .input-area{padding:0 12px 12px!important}.chat-v3 .v3-hero{padding:16px 20px}.chat-v3 .v3-hero h1{font-size:32px}.chat-v3 #chatInput{min-height:72px;max-height:120px}.chat-v3 .v3-controls>.tp-section{flex-wrap:wrap}.chat-v3 .v3-action-row{padding:6px;gap:6px}.chat-v3 .v3-suggestions{margin-top:10px}.chat-v3 .messages{padding:16px}.chat-v3 .tp-label{font-size:9px}.chat-v3 .hf-chip input:not([type=checkbox]),.chat-v3 .hf-chip select{width:110px}.hf-settings-dialog{padding:14px}}
@media(max-height:700px){.chat-v3 .v3-key-hint{display:none}.chat-v3 .v3-hero h1{font-size:36px}.chat-v3 .v3-hero{padding-top:12px;padding-bottom:12px}.chat-v3 .v3-hero p{margin-top:8px}.chat-v3 .v3-suggestions{margin-top:8px}.chat-v3 #chatInput{min-height:64px}}
.chat-v3 #chatInput{min-height:90px!important;max-height:180px!important}
@media(max-width:760px){.chat-v3 .sidebar{position:fixed!important}.chat-v3 #chatInput{min-height:72px!important;max-height:120px!important}.chat-v3 .v3-controls .tp-label{display:none}.chat-v3 .v3-suggestions button{padding:6px 9px}.chat-v3 .v3-controls{gap:5px}}
@media(max-height:700px){.chat-v3 #chatInput{min-height:64px!important}}
.chat-v3 .model-choice-copy .recommendation-reason{color:#a4b49e}
@media(prefers-reduced-motion:reduce){.chat-v3 *{transition:none!important;animation:none!important}}
/* Homepage atmosphere, independently themed controls below. */
.chat-v3 .work{background:radial-gradient(ellipse at 0% 0%,#52216b88,transparent 65%),radial-gradient(ellipse at 100% 0%,#66532b55,transparent 60%),radial-gradient(ellipse at 100% 100%,#70253266,transparent 60%),linear-gradient(135deg,#181126,#081323 65%,#201321)!important;color:#f5f3ff}
.chat-v3 .work:before{background-image:radial-gradient(#c0c7ff20 1px,transparent 1.5px);opacity:.4}
.chat-v3 .v3-hero h1,.chat-v3 .messages,.chat-v3 .msg{color:#f5f3ff!important}
.chat-v3 .v3-hero p,.chat-v3 .v3-key-hint,.chat-v3 .input-footer,.chat-v3 #costHint,.chat-v3 #imageModelHint{color:#c0c7ff!important}
.chat-v3 .msg.bot .msg-meta{color:#c0c7ff}
.chat-v3 .msg a{color:#8cd9ff!important}
.chat-v3 #errorLine{color:#ffacae!important}
.chat-v3 .v3-categories{background:linear-gradient(135deg,#dcf98c,#a2e3b4)}
.chat-v3 .v3-suggestions button{color:#e2edcf;border-color:#d9f87f66}
.chat-v3 .v3-suggestions button:hover{background:#d9f87f20;color:#fff}
.chat-v3 .v3-sidebar-toggle,.chat-v3 .thinking{color:#f5f3ff!important}
.chat-v3 .hf-job button{color:#e2edcf;border-color:#d9f87f66}
.chat-v3 .v3-library-link{display:flex;align-items:center;justify-content:center;min-height:42px;flex-shrink:0;border:1px solid #ffffff24;border-radius:99px;color:#f3f3ef;text-decoration:none;background:#1b1b1b;font-size:13px;font-weight:600}
.chat-v3 .v3-library-link:hover{border-color:#d9f87f88;background:#252822}
/* Shared generation controls: model/actions, then wrapping parameter rows. */
.chat-v3 .work{overflow-y:auto}
.chat-v3:not(.v3-empty) .messages{min-height:120px}
.chat-v3 .v3-controls>.hf-chip.hf-chip-upload{flex:0 1 340px;display:grid;grid-template-columns:auto minmax(0,1fr)}
.chat-v3 .hf-chip-upload input:not([type=checkbox]){width:100%!important;min-width:0}
.chat-v3 .hf-chip-upload input[type=file]{grid-column:1/-1}
.chat-v3 .v3-controls>.hf-chip.hf-chip-wide{flex:1 1 300px;align-items:flex-start}
.chat-v3 .hf-chip-wide textarea{flex:1;min-width:150px;width:100%;min-height:58px}
.chat-v3 #chatInput{height:360px;min-height:180px!important;max-height:480px!important}
.chat-v3 .v3-action-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.chat-v3 .v3-controls{flex:1 0 100%!important;order:3;display:flex!important;flex-wrap:wrap!important;gap:8px!important;overflow:visible!important;align-items:flex-start;padding-top:4px!important}
.chat-v3 .v3-controls>.tp-section,.chat-v3 .v3-controls>.hf-chip{display:flex;align-items:center;gap:8px;flex:0 1 auto;flex-wrap:wrap;min-height:42px;min-width:0;max-width:100%;padding:7px 9px;border:1px solid #383832;border-radius:12px;background:#222;color:#eee}
.chat-v3 .v3-controls .tp-label,.chat-v3 .v3-controls .hf-chip>span{display:block!important;color:#e1e1d9;font-size:11px;font-weight:500;text-transform:none;letter-spacing:normal;margin:0;white-space:nowrap}
.chat-v3 .v3-controls .tp-select,.chat-v3 .v3-controls .tp-file-btn,.chat-v3 .hf-chip select,.chat-v3 .hf-chip input:not([type=checkbox]),.chat-v3 .hf-chip textarea{background:#151515!important;border:1px solid #444!important;color:#eee!important;border-radius:7px!important;padding:5px 8px!important;font-size:11px;min-height:28px;max-width:100%;box-sizing:border-box}
.chat-v3 .v3-controls .tp-select{min-width:82px}
.chat-v3 .v3-controls .tp-toggle-wrap{border:0!important;background:transparent!important;padding:0!important;border-radius:0!important;min-height:26px}
.chat-v3 .tp-file-name{flex-basis:100%;max-width:240px;overflow-wrap:anywhere;font-size:11px}
.chat-v3 .hf-more-button{min-height:42px;border-radius:12px;background:#222;border-color:#383832}
.chat-v3 .hf-schema-notice{margin:0;padding:10px 12px;background:#222;border:1px solid #383832;border-radius:12px;color:#c7c7bd;font-size:12px;line-height:1.5;max-width:680px}
.chat-v3 .v3-controls>.tp-section:has(>span:only-child){display:none}
.chat-v3 .v3-composer{box-shadow:0 20px 45px #0003,inset 0 0 0 1px #ffffff13}
@media(max-height:850px){.chat-v3 #chatInput{height:180px;min-height:180px!important;max-height:360px!important}.chat-v3 .v3-hero{padding-top:12px;padding-bottom:12px}}
@media(max-width:760px){.chat-v3 #chatInput{height:144px;min-height:144px!important;max-height:240px!important}.chat-v3 .v3-controls>.tp-section,.chat-v3 .v3-controls>.hf-chip{flex:1 1 180px}.chat-v3 .v3-controls .tp-label{display:block!important}.chat-v3 .work{overflow-y:auto}.chat-v3 .messages{flex:1 0 120px}.chat-v3 .v3-hero{flex-shrink:0!important}.chat-v3 .hf-more-button{width:100%}}
/* Approved Deep Petrol palette: quiet strip, color on actions and selection. */
body.chat-v3{background:#05050c!important}
.chat-v3 #shader-bg{display:block;opacity:.3!important}
.chat-v3 .work{background:transparent!important}
.chat-v3 .work:before{display:none}
.chat-v3 .sidebar{background:#121212!important}
body.chat-v3{--accent:#214b53;--accent2:#356f70;--panel:linear-gradient(110deg,#214b53,#356f70);--petrol-border:#537e83;--petrol-text:#b9dcdf}
.chat-v3 .v3-categories{background:#1c1929!important;border:1px solid #ffffff22}
.chat-v3 .cat-btn{color:#cec9dd!important}
.chat-v3 .cat-btn.active{background:var(--panel)!important;color:#fff!important}
.chat-v3 .new-chat-btn-full,.chat-v3 .send-btn:not(:disabled),.chat-v3 .v3-brand:before{background:var(--panel)!important;color:#fff!important}
.chat-v3 .new-chat-btn-full:hover,.chat-v3 .send-btn:not(:disabled):hover{filter:brightness(1.12)}
.chat-v3 .v3-notch:before{background:#73b4b9}
.chat-v3 .v3-balance>span{background:#214b534d;color:#c8e4e6}
.chat-v3 .model-choice.selected{background:#214b533d;border-color:var(--petrol-border)}
.chat-v3 .tp-btn.active{background:var(--panel)!important;color:#fff!important}
.chat-v3 .tp-toggle-input:checked+.tp-toggle{background:#356f70;border-color:var(--petrol-border)}
.chat-v3 input[type=checkbox],.chat-v3 input[type=range]{accent-color:#356f70}
.chat-v3 .v3-suggestions button,.chat-v3 .hf-job button{color:var(--petrol-text);border-color:#537e8366}
.chat-v3 .v3-suggestions button:hover,.chat-v3 .hf-job button:hover{background:#214b5366;color:#fff}
.chat-v3 .v3-library-link:hover{border-color:var(--petrol-border);background:#1d3033}
.chat-v3 button:focus-visible,.chat-v3 a:focus-visible,.chat-v3 select:focus-visible,.chat-v3 input:focus-visible,.chat-v3 textarea:focus-visible{outline:2px solid #8cd0d5;outline-offset:3px}
/* Grow only the prompt; generation controls keep their natural height. */
.chat-v3 #chatInput{box-sizing:border-box;height:180px;min-height:180px!important;max-height:360px!important;resize:none;overflow-y:hidden}
@media(max-height:850px){.chat-v3 #chatInput{height:90px;min-height:90px!important;max-height:180px!important}}
@media(max-width:760px){.chat-v3 #chatInput{height:72px;min-height:72px!important;max-height:144px!important}}
html.vk-mini.vk-keyboard .chat-v3 #chatInput{height:48px;min-height:48px!important;max-height:96px!important}
/* Mobile controls must size to their labels, not legacy icon-button widths. */
.chat-v3 .insp-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 1 auto;width:auto;height:auto;min-height:44px;max-width:100%;padding:9px 12px;margin:0;border:1px solid #537e8366;border-radius:99px;background:#214b534d;color:#b9dcdf;font-size:12px;line-height:1.5;white-space:normal}
.chat-v3 .insp-btn:hover{background:#356f7066;border-color:#537e83}
@media(max-width:760px){
 .chat-v3 .v3-panel-top{height:auto;min-height:56px;flex-shrink:0;gap:8px;flex-wrap:wrap}
 .chat-v3 .topbar-right{min-width:0;max-width:100%;flex-wrap:wrap}
 .chat-v3 .v3-balance{max-width:100%;flex-wrap:wrap}
 .chat-v3 .v3-sidebar-toggle{flex:0 0 44px;height:44px}
 .chat-v3.v3-empty .v3-hero{flex:1 0 auto;justify-content:center}
 .chat-v3 .v3-hero h1{font-size:clamp(28px,8vw,36px);line-height:1.15;overflow-wrap:anywhere}
 .chat-v3 .v3-hero p{line-height:1.5;overflow-wrap:anywhere}
 .chat-v3 .v3-categories{flex-shrink:0;flex-wrap:wrap}
 .chat-v3 .cat-btn{min-height:40px;padding:8px!important}
 .chat-v3 .v3-composer{flex-shrink:0;min-width:0}
 .chat-v3 #chatInput{font-size:16px}
 .chat-v3 .v3-model-trigger{flex:1 1 140px;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5;min-height:44px;text-align:left}
 .chat-v3 .send-btn{width:auto!important;max-width:100%;min-width:100px;min-height:44px!important;flex:0 1 auto;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
 .chat-v3 .clip-btn{width:44px;height:44px;min-width:44px}
 .chat-v3 .v3-controls>.tp-section,.chat-v3 .v3-controls>.hf-chip{flex:1 1 160px;min-width:0;max-width:100%;height:auto}
 .chat-v3 .v3-controls .tp-label,.chat-v3 .v3-controls .hf-chip>span,.chat-v3 .tp-toggle-label{white-space:normal;overflow-wrap:anywhere;line-height:1.5;min-width:0}
 .chat-v3 .tp-toggle-wrap{max-width:100%;min-width:0}
 .chat-v3 .tp-range-wrap{display:flex;align-items:center;gap:8px;width:100%;max-width:100%;min-width:0}
 .chat-v3 .tp-range{flex:1 1 0;width:0;min-width:0}
 .chat-v3 .tp-range-val{flex:0 0 auto}
 .chat-v3 .v3-controls .tp-select,.chat-v3 .v3-controls .tp-file-btn{min-width:0;max-width:100%;min-height:40px;white-space:normal;overflow-wrap:anywhere}
 .chat-v3 .v3-controls>.hf-chip.hf-chip-upload{grid-template-columns:minmax(0,1fr)}
 .chat-v3 .hf-chip-wide textarea{min-width:0}
 .chat-v3 .input-footer{height:auto;line-height:1.5;align-items:flex-start}
 .chat-v3 #costHint,.chat-v3 #errorLine,.chat-v3 #imageModelHint{max-width:100%;overflow-wrap:anywhere}
 .chat-v3 .msg{min-width:0;overflow-wrap:anywhere}
 .chat-v3 .msg pre{max-width:100%;overflow-x:auto;white-space:pre}
 .chat-v3 .msg audio{max-width:100%}
 .chat-v3 .model-choice-main{grid-template-columns:24px minmax(0,1fr);min-width:0}
 .chat-v3 .model-choice-price{grid-column:2;text-align:left;max-width:none}
 .chat-v3 .v3-dialog-head{gap:8px;flex-wrap:wrap}
 .chat-v3 .v3-key-hint{display:none}
}
