:root{color-scheme:light;--field:#fff;--card:#fff;--focus:#6c8d52}
:root[data-theme=dark]{color-scheme:dark;--bg:#111611;--panel:#1a221a;--line:#344034;--ink:#e4ecdf;--muted:#acb8a5;--green:#b0ce93;--light:#263622;--accent:#38512c;--field:#141c15;--card:#1a221a;--focus:#a0c879}
.preferences-page{max-width:1100px}.preference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.preference-card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:22px;min-width:0}.preference-card h2{font-size:18px;font-weight:600;margin:0 0 18px}.preference-card h3{font-size:16px}.preference-card p{color:var(--muted);line-height:1.8;font-size:13px}.preference-card label{display:flex;flex-direction:column;gap:8px;margin:12px 0;font-size:13px}.preference-card input:not([type=checkbox]),.preference-card select,.preference-card textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--field);color:var(--ink);font:inherit}.preference-card textarea{min-height:100px}.preference-card .account-check{flex-direction:row;align-items:flex-start}.theme-options{display:flex;gap:18px}.theme-options>button{display:grid;gap:10px;text-align:center;padding:10px;border:2px solid transparent;border-radius:12px;min-width:112px}.theme-options>button.selected{border-color:var(--focus);background:var(--light)}.theme-swatch{width:105px;height:65px;border:1px solid #87927c;border-radius:8px;padding:12px;display:grid;gap:6px}.theme-swatch i{height:4px;border-radius:3px;background:#c1cbb5}.theme-swatch.light{background:#f7f9f3}.theme-swatch.dark{background:#1c271d}.theme-swatch.dark i{background:#65785b}.email-code-row{display:flex;align-items:center;gap:8px}.email-code-row>input{flex:1;min-width:90px;margin:0!important}.email-code-row>button{flex:none;white-space:nowrap}.account-warning{padding:12px;background:#fff3d9;border:1px solid #ecce8f;border-radius:8px;color:#85631e!important;line-height:1.8}.account-recovery-links{display:flex;gap:20px;justify-content:space-between;font-size:13px;margin-top:20px}.account-recovery-links button{color:var(--green);text-decoration:underline}.points-overview{background:var(--light);border:1px solid var(--line);border-radius:16px;padding:28px;margin-bottom:24px}.points-overview>span{color:var(--muted);font-size:13px}.points-overview strong{display:block;font-size:40px;font-weight:550;margin:14px 0}.points-overview strong small{font-size:14px}.points-overview p{font-size:12px;color:var(--muted)}.point-rules{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:14px}.point-rules>div{background:var(--bg);border:1px solid var(--line);padding:15px;border-radius:9px}.point-rules span,.point-rules strong{display:block;font-size:13px}.point-rules strong{margin-top:12px;color:var(--green)}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:15px}.panel-title h2{margin:0}.point-model{display:block;font-size:11px;overflow-wrap:anywhere;color:var(--muted)}.site-system-settings{margin:24px 0}.mail-test-form{border-top:1px solid var(--line);margin-top:22px;padding-top:15px}.system-message{white-space:pre-wrap;overflow-wrap:anywhere}.sidebar nav{flex:none;max-height:48dvh;overflow-y:auto;overscroll-behavior:contain}.sidebar .history{min-height:36px}.sidebar-bottom{flex:none}.preferences-page .account-security-card form{max-width:600px}.sign-out-card{margin-top:24px}
html[dir=rtl] .sidebar{left:auto;right:0;border-left:1px solid var(--line);border-right:0}html[dir=rtl] .shell>main{margin-left:0;margin-right:248px}html[dir=rtl] .model-menu{left:auto;right:0}html[dir=rtl] .nav-item,html[dir=rtl] .history-item{text-align:right}html[dir=rtl] .message.user .message-text{border-radius:12px 0 12px 12px}html[dir=rtl] .new-chat>span,html[dir=rtl] .tiny{margin-left:0;margin-right:auto}
[data-theme=dark] body{background:var(--bg);color:var(--ink)}[data-theme=dark] .sidebar{background:#171e17;border-color:var(--line)}[data-theme=dark] :is(.topbar,.setup-page,.messages,.page){background:var(--bg)}[data-theme=dark] :is(.setup-card,.preference-card,.provider-form,.provider-choice,.provider-list,.model-card,.plan-card,.record-panel,.modal,.model-menu,.composer,.suggestions button,.version-list button,.attachment,.quota-card,.stats>div){background:var(--card);border-color:var(--line);color:var(--ink)}[data-theme=dark] :is(.new-chat,.nav-item.selected,.history-item.active,.tag.live-tag,.account-tabs,.account-tabs .on,.settings-scope-note,.info-box,.official-explainer>div,.pricing-note,.thinking-explainer,.theme-options>button.selected,.recovery-code,.message.user .message-text){background:#273822;border-color:#43573c;color:#d9e8ce}[data-theme=dark] :is(.provider-choice.is-active,.provider-choice .selected,.version-list button:hover,.tabs .on){background:#2e4027;color:#e0efd4}[data-theme=dark] :is(input,select,textarea,.search,.account-card input:not([type=checkbox])){background:var(--field);border-color:var(--line);color:var(--ink)}[data-theme=dark] :is(input,textarea)::placeholder{color:#8e9a87}[data-theme=dark] :is(.welcome>p,.page-heading p,.composer-footer,.variant-note,.message-meta small,.empty-history,.profile small,.history-heading,.settings-retention-note,.composer-toolbar,.account-card p,.preference-card p){color:#adb9a5}[data-theme=dark] :is(.message-text,.provider-form label,.preference-card label,.breadcrumb,.grouped-model-text b,.plan-name,.model-card h2){color:var(--ink)}[data-theme=dark] :is(.demo-banner,.station-session){background:#293321;color:#c5d0b8;border-color:var(--line)}[data-theme=dark] :is(.secondary,.icon-btn,.account-entry,.provider-actions .secondary){border-color:#53614d;color:#dce7d3}[data-theme=dark] .primary{background:#718f55;color:#fff}[data-theme=dark] .account-warning{background:#3a3020;color:#ead79c!important;border-color:#6c5931}[data-theme=dark] .error-banner,[data-theme=dark] .sync-notice{background:#392b20;color:#f0d4b4}[data-theme=dark] .message-avatar{background:#31402a;color:#daebca}[data-theme=dark] .account-brand{color:#dceacd}[data-theme=dark] .account-error{color:#ffa69a!important}[data-theme=dark] table td,[data-theme=dark] table th{border-color:var(--line);color:var(--ink)}[data-theme=dark] .integrated-frame{color-scheme:dark}
/* The creative tools are in a same-origin frame and share these preferences. */
[data-theme=dark] body.embedded{background:transparent}[data-theme=dark] body>main>section{background:var(--card);border-color:var(--line)}[data-theme=dark] :is(#notice,.task){background:var(--panel);border-color:var(--line);color:var(--ink)}[data-theme=dark] body>header,[data-theme=dark] body>main>nav button{background:var(--bg);border-color:var(--line);color:var(--ink)}[data-theme=dark] .result,[data-theme=dark] body>main :is(p,small,label){color:#bac7af}
@media(max-width:760px){.preference-grid{grid-template-columns:1fr}.preference-card{padding:20px}.site-system-settings .preference-grid{gap:4px}.theme-options>button{min-width:105px}.points-overview{padding:22px}.email-code-row>button{padding:10px;font-size:12px}.sidebar nav{max-height:45dvh}html[dir=rtl] .shell>main{margin-right:0}html[dir=rtl] .sidebar{transform:translateX(100%)}html[dir=rtl] .sidebar.open{transform:translateX(0)}}

.sidebar nav{max-height:44dvh}.sidebar-bottom .profile{padding-top:12px;padding-bottom:12px}@media(max-width:760px){.sidebar nav{max-height:40dvh}}
