:root{color-scheme:dark;--bg:#0c0c0d;--panel:#151516;--panel-raised:#1b1b1d;--line:#2a2a2d;--text:#f0efed;--muted:#919196;--model-border:#303034;--sidebar:222px;--radius:16px;font-family:Inter,'Segoe UI','Noto Sans CJK SC','PingFang SC','Microsoft YaHei',sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{color:inherit}button{border:0;background:none;cursor:pointer}a{text-decoration:none}button:disabled{opacity:.4;cursor:not-allowed}button,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid #bcbcc3}button,a,summary{transition:background .18s,color .18s,border-color .18s,transform .18s}button:hover{color:#fff}svg{width:20px;height:20px;flex-shrink:0}i[data-icon]{display:inline-flex;width:20px;height:20px;font-style:normal;flex-shrink:0}i svg{width:100%;height:100%}[hidden]{display:none!important}::selection{background:#555;color:white}.muted{color:var(--muted);font-size:12px;line-height:1.8}h1,h2,h3,p{margin-top:0}h2{font-size:18px;font-weight:560}input,select,textarea{border:1px solid var(--line);background:#111112;color:var(--text);border-radius:9px;padding:11px 13px;min-width:0}input::placeholder,textarea::placeholder{color:#6e6e74}input[type=checkbox]{accent-color:#ddd;width:16px;height:16px}select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#888 50%),linear-gradient(135deg,#888 50%,transparent 50%);background-position:calc(100% - 15px) 52%,calc(100% - 11px) 52%;background-size:4px 4px;background-repeat:no-repeat;padding-right:29px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.eyebrow{font-size:10px;letter-spacing:2px;color:#8d8d93;display:block;margin-bottom:14px}.primary-button,.generate-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:#e9e8e5;color:#151515;border:1px solid #e9e8e5;border-radius:10px;padding:11px 17px;font-size:12px;font-weight:550;white-space:nowrap}.primary-button:hover,.generate-button:hover{background:white;color:#111}.primary-button svg,.generate-button svg{width:16px;height:16px}.quiet-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#171719;border:1px solid #323236;border-radius:10px;padding:10px 14px;font-size:12px;color:#c4c4ca}.quiet-button:hover{background:#242427}.quiet-button svg{width:15px;height:15px}.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:36px;height:36px;border-radius:9px;color:#a6a6ad}.icon-button:hover{background:#242426}.danger-button{border:1px solid #633c3c;color:#edacac;background:#2c1b1b;border-radius:9px;padding:10px 16px;font-size:12px}.text-danger{color:#cf9d9d!important}
.sidebar{width:var(--sidebar);position:fixed;inset:0 auto 0 0;border-right:1px solid #232326;background:#101011;padding:29px 16px 16px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:650;letter-spacing:-1px;padding:0 10px}.brand-symbol{font-size:33px;line-height:1}.brand-caption{font-size:8px;letter-spacing:1px;color:#74747b;margin-top:6px}.new-project{display:flex;align-items:center;gap:9px;margin:32px 0 24px;padding:12px 10px;border:1px solid #333338;border-radius:10px;background:#1c1c1f;font-size:12px;text-align:left;white-space:nowrap}.new-project svg{width:17px;height:17px}.new-project kbd{margin-left:auto;font:10px inherit;color:#777}.nav-caption{font-size:10px;color:#67676e;padding:4px 13px;margin:8px 0 10px;letter-spacing:1px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:9px;margin:3px 0;color:#929298;font-size:12px;text-align:left;line-height:20px}.nav-item:hover{background:#19191b;color:#ddd}.nav-item.active{color:#f2f1ee;background:#252528}.nav-item svg{width:18px;height:18px}.nav-mini-badge{margin-left:auto;font-size:8px;letter-spacing:.5px;padding:0 5px;border:1px solid #37373c;border-radius:4px;color:#8e8e96}.nav-lock{margin-left:auto;width:12px!important;height:12px!important;opacity:.55}.sidebar nav+.nav-caption{margin-top:29px}.sidebar-bottom{margin-top:auto;padding-top:28px}.sidebar-bottom>a>span:last-child{margin-left:auto}.profile-button{display:flex;align-items:center;gap:10px;border-top:1px solid #242428;margin-top:18px;padding:18px 9px 2px;width:100%;text-align:left}.user-avatar{display:flex;align-items:center;justify-content:center;width:33px;height:33px;border-radius:50%;background:#303034;border:1px solid #404046;font-size:12px;flex-shrink:0}.profile-button>span:nth-child(2){font-size:12px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-button small{display:block;font-size:9px;color:#6f6f77;margin-top:5px}.profile-button>svg{width:13px}.main-shell{margin-left:var(--sidebar);min-height:100dvh}.topbar{height:80px;display:flex;align-items:center;gap:18px;padding:0 32px;position:relative;z-index:15;border-bottom:1px solid transparent}.top-actions{display:flex;align-items:center;gap:20px;margin-left:auto}.top-actions>#page-label{font-size:11px;color:#707078}.login-button{font-size:11px;min-height:32px;padding:7px 14px;border-radius:30px;border:1px solid #35353a;color:#c8c8ce}.mobile-menu,.sidebar-backdrop{display:none}#header-context{display:flex;flex:1;min-width:0}.chat-toolbar{display:flex;width:100%;align-items:center;gap:14px}.chat-toolbar-right{margin-left:auto;display:flex;align-items:center;gap:10px}.privacy-badge{font-size:10px;color:#85858d;border:1px solid #2b2b30;padding:5px 8px;border-radius:7px}.native-model-proxy{display:none}.model-selector{position:relative}#model-picker{position:relative}#model-picker>summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;min-width:160px;padding:7px 4px}summary::-webkit-details-marker{display:none}.model-brand{width:34px;height:34px;border-radius:10px;border:1px solid #333338;display:flex;align-items:center;justify-content:center;background:#19191c}.model-brand svg{width:19px;height:19px}#model-picker summary small{font-size:9px;color:#74747d;display:block;margin-bottom:4px}#model-picker summary strong{font-size:14px;font-weight:520;white-space:nowrap}#model-picker summary>svg{width:13px;color:#8c8c96;margin-left:9px}.model-menu{position:absolute;top:61px;left:0;width:350px;border:1px solid #36363b;background:#171719;border-radius:17px;padding:14px;box-shadow:0 25px 80px #0009;z-index:60;animation:panelIn .16s ease}.model-menu-title{display:flex;justify-content:space-between;align-items:center;font-size:12px;padding:3px 4px 14px}.model-menu-title>span{font-size:10px;color:#777780}.model-search{display:flex;align-items:center;gap:9px;border:1px solid #333338;background:#101012;border-radius:9px;padding:0 10px}.model-search svg{width:15px;color:#7e7e88}.model-search input{border:0;padding:10px 0;background:none;width:100%;font-size:12px;outline:none}.model-menu-list{max-height:350px;overflow-y:auto;padding-top:7px}.model-menu-list button{display:flex;width:100%;align-items:center;gap:12px;text-align:left;padding:12px 9px;border-radius:9px}.model-menu-list button:hover,.model-menu-list button[aria-selected=true]{background:#28282c}.provider-mark{width:33px;height:33px;display:flex;align-items:center;justify-content:center;border:1px solid #3a3a40;background:#202024;border-radius:10px;font-size:17px}.model-menu-list button>span:nth-child(2){flex:1}.model-menu-list button strong{font-size:12px;font-weight:500}.model-menu-list button small{font-size:10px;color:#83838d;display:block;margin-top:5px}.model-menu-list button>svg{width:15px}.model-picker-empty{text-align:center;color:#7e7e89;font-size:12px;padding-top:18px}
.chat-page{max-width:900px;margin:0 auto;min-height:calc(100dvh - 80px);display:flex;flex-direction:column;padding:0 34px 24px;position:relative}.workspace-banner{display:flex;align-items:center;justify-content:space-between;padding:23px 0 10px;gap:15px}.workspace-banner>div>span{font-size:12px;color:#9e9ea7}.workspace-banner p{font-size:9px;color:#63636d;display:flex;align-items:center;gap:4px;margin:7px 0 0}.workspace-banner p svg{width:10px;height:10px}.workspace-banner>button{padding:8px 10px;font-size:10px;background:transparent;border-color:#28282d}.chat-content{flex:1;display:flex;flex-direction:column;justify-content:center;padding:25px 0;min-height:250px}.chat-welcome{text-align:center;padding:28px 0 40px;animation:arrive .4s ease}.welcome-symbol{font-size:46px;line-height:1.1;color:#dddcd8;margin-bottom:23px}.chat-welcome h1{font-size:38px;font-weight:500;letter-spacing:-1.5px;line-height:1.4;margin-bottom:16px}.chat-welcome>p{font-size:12px;color:#87878f;letter-spacing:.2px}.chat-composer-dock{padding-bottom:10px}.chat-input-box{position:relative;border:1px solid #39393f;background:#19191c;border-radius:21px;box-shadow:0 4px 24px #0002;transition:border-color .2s}.chat-input-box:focus-within{border-color:#585861}.chat-input-box.dragging{border-color:#eee;outline:4px solid #ffffff10}.chat-input-box>textarea{width:100%;resize:none;background:transparent;border:0;padding:22px 23px 14px;min-height:95px;max-height:200px;outline:none;font-size:15px;line-height:1.7}.composer-divider{height:1px;background:#ffffff05;margin:0 19px}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 12px 17px}.workspace-options{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}.chat-input-bottom{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}.chat-storage-control{display:flex;align-items:center;gap:4px}.chat-storage-control>svg{width:11px;height:11px;color:#74747d}.chat-storage-control select{font-size:9px;color:#83838d;max-width:98px;background-color:transparent;border:0;padding:4px 20px 4px 2px;background-position:calc(100% - 9px) 53%,calc(100% - 5px) 53%}#chat-send{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e9e8e5;color:#111;transition:transform .2s}#chat-send:hover{transform:translateY(-2px);background:#fff}#chat-send svg{width:22px;height:22px}.has-messages .chat-content{justify-content:flex-start;padding-top:32px;flex:none}.has-messages .chat-composer-dock{position:sticky;bottom:0;z-index:12;margin-top:auto;padding:20px 0 9px;background:linear-gradient(transparent,var(--bg) 20px)}.chat-message{display:flex;gap:15px;margin-bottom:33px;animation:arrive .25s ease;min-width:0}.chat-message.user{justify-content:flex-end}.chat-message.user .message-body{background:#252528;border:1px solid #2d2d32;border-radius:20px 20px 5px 20px;padding:12px 18px;max-width:85%}.chat-message.assistant .message-body{flex:1;min-width:0}.assistant-avatar{height:30px;width:30px;border:1px solid #35353b;background:#1b1b1e;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}.message-content{font-size:14px;line-height:1.95;overflow-wrap:anywhere;white-space:pre-wrap}.message-body>img,.message-body>video{display:block;width:auto;max-width:100%;max-height:620px;border-radius:14px;margin-top:10px}.message-actions{display:flex;align-items:center;gap:14px;font-size:10px;color:#72727c;margin-top:14px}.message-actions button{padding:0;font-size:10px;color:#8b8b95}.message-actions button:hover{color:#eee}.message-actions span{margin-left:auto;font-size:9px}.chat-message.user .message-actions{justify-content:flex-end;margin-top:5px;opacity:.6}.chat-busy{display:flex;align-items:center;gap:11px;color:#92929b;font-size:12px;padding:0 0 20px}.chat-busy>span:first-child{font-size:25px;animation:breathe 1.7s ease infinite}.thinking-dots{animation:breathe 1.5s ease infinite}.chat-error{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#dbabab;font-size:12px;padding:12px 3px}.chat-error button{white-space:nowrap;text-decoration:underline}.reference-history-image{max-width:150px!important;max-height:150px!important}
.control-popover{position:relative}.control-popover>summary{list-style:none;display:flex;align-items:center;gap:7px;border:1px solid #36363b;background:#232326;border-radius:9px;padding:7px 9px;min-height:33px;cursor:pointer;font-size:11px;color:#c2c2c9;white-space:nowrap}.control-popover>summary>svg{width:11px;height:11px;color:#74747d}.control-popover>summary[aria-disabled=true]{pointer-events:none;opacity:.4}.control-popover[open]>summary{background:#343438;border-color:#5b5b64;color:white}.control-glyph{display:flex;align-items:center;justify-content:center;width:19px;height:18px}.control-glyph svg{width:20px;height:20px}.choice-panel{position:absolute;bottom:calc(100% + 13px);left:0;width:380px;background:#1b1b1e;border:1px solid #414148;border-radius:18px;padding:18px;box-shadow:0 20px 70px #0009;z-index:70;animation:panelIn .18s ease}.choice-panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;font-size:12px;gap:10px}.choice-panel-heading>span{font-size:10px;color:#85858e}.ratio-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.ratio-choice{border:1px solid #35353c;background:#222226;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:83px;gap:5px;padding:8px 3px;color:#92929d}.ratio-choice svg{width:29px;height:29px}.ratio-choice strong{font-size:10px;font-weight:500}.ratio-choice small{font-size:8px;color:#72727c}.ratio-choice:hover{background:#2c2c31;border-color:#62626c}.ratio-choice.selected{background:#39393f;border-color:#d3d3da;color:#f0f0f2}.ratio-choice.selected small{color:#aaaab5}.choice-footnote{font-size:9px;color:#74747e;margin:15px 0 0}.value-grid{display:grid;gap:7px}.value-choice{display:flex;align-items:center;gap:11px;border:1px solid #35353b;border-radius:10px;padding:12px;color:#a0a0ab}.value-choice>span{display:flex;width:29px;height:29px;align-items:center;justify-content:center;border-radius:8px;background:#2a2a2f}.value-choice strong{flex:1;text-align:left;font-size:12px;font-weight:500}.value-choice>svg{width:15px;opacity:0}.value-choice.selected{background:#303035;color:#eee;border-color:#777780}.value-choice.selected>svg{opacity:1}.model-option{display:flex;align-items:center;gap:6px;font-size:10px;color:#9999a3}.model-option input{max-width:75px;padding:7px;border-radius:7px}.model-option select{font-size:10px;padding:7px 25px 7px 9px;background-color:#232326;max-width:150px}.model-capability-note{display:none}
#reference-tools{padding:14px 18px 0}.creation-mode-switch{display:inline-flex;gap:3px;padding:3px;border:1px solid #35353b;border-radius:10px;background:#111114;margin-bottom:10px}.creation-mode-switch button{display:flex;align-items:center;gap:6px;color:#888893;font-size:10px;padding:7px 11px;border-radius:7px}.creation-mode-switch button svg{width:13px;height:13px}.creation-mode-switch button.active{background:#36363c;color:#efeff2}.reference-dropzone{width:100%;border:1px dashed #4b4b55;border-radius:12px;background:#202024;padding:19px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;margin-bottom:3px;color:#b4b4bd}.reference-dropzone>svg{width:23px;height:23px;color:#898996}.reference-dropzone strong{font-size:12px;font-weight:500}.reference-dropzone>span{font-size:9px;color:#73737f}.reference-dropzone:hover{background:#2a2a2f;border-color:#888894}.reference-attached{display:flex;align-items:center;gap:13px;border:1px solid #3e3e46;background:#232328;padding:9px;border-radius:12px}.reference-attached img{width:55px;height:55px;object-fit:cover;border-radius:7px}.reference-attached>div{flex:1;min-width:0}.reference-attached strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.reference-attached span{font-size:9px;color:#8e8e9a;display:block;margin-top:6px}.reference-attached>button{display:flex;padding:6px}.reference-attached>button svg{width:15px}
.content-page{max-width:1200px;margin:0 auto;padding:42px 44px 65px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:34px}.page-heading h1{font-size:32px;font-weight:530;letter-spacing:-1px;margin:0 0 13px;line-height:1.3}.page-heading p{font-size:12px;line-height:1.7;color:#868691;margin:0}.heading-lock{display:inline-flex;align-items:center;gap:4px;font-size:9px;font-weight:400;letter-spacing:0;color:#9999a5;border:1px solid #34343b;border-radius:7px;padding:5px 7px;margin-left:12px;vertical-align:middle}.heading-lock svg{width:11px;height:11px}.segmented{display:inline-flex;align-items:center;gap:3px;padding:4px;background:#151518;border:1px solid #2c2c33;border-radius:11px;flex-wrap:wrap}.segmented button{padding:8px 13px;font-size:11px;color:#82828f;border-radius:7px;white-space:nowrap}.segmented button.active{background:#35353c;color:#eeeeef;box-shadow:0 1px 5px #0003}.segmented button:hover{color:#eee}.collection-toolbar,.community-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.collection-private{font-size:10px;color:#73737f;display:flex;align-items:center;gap:6px}.collection-private svg{width:12px;height:12px}.search-input{display:flex;align-items:center;gap:9px;background:#17171b;border:1px solid #34343b;border-radius:10px;padding:0 12px;min-width:0}.search-input>svg{width:15px;color:#858590}.search-input input{border:0;background:transparent;width:100%;font-size:11px;outline:0;padding:12px 0}.community-controls>.search-input{max-width:280px;flex:1}.community-privacy-note{font-size:10px;color:#747480;margin:-8px 0 25px}.works-grid,.community-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.work-card,.community-card{background:#151519;border:1px solid #29292f;border-radius:15px;overflow:hidden;min-width:0;transition:transform .2s,border-color .2s}.work-card:hover,.community-card:hover{border-color:#4a4a55;transform:translateY(-3px)}.work-cover,.community-card-open{display:block;width:100%;padding:0;background:#1a1a20;aspect-ratio:4/3;position:relative;overflow:hidden;text-align:left}.work-cover img,.work-cover video,.community-card-open img,.community-card-open video{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}.work-cover:hover img,.community-card-open:hover img{transform:scale(1.035)}.work-play,.community-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#0002}.work-play svg{width:36px;height:36px;filter:drop-shadow(0 3px 8px #000)}.work-kind,.community-kind{position:absolute;top:11px;left:11px;font-size:9px;background:#18181cba;border:1px solid #ffffff20;backdrop-filter:blur(8px);padding:5px 7px;border-radius:6px;color:#d9d9e0}.work-card-info,.community-card-meta{padding:15px}.work-card-info>strong,.community-card-meta>button:first-child{font-size:12px;font-weight:500;display:block;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;margin-bottom:11px;padding:0}.work-card-info>div,.community-card-meta>div{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:9px;color:#757582;line-height:1.5}.work-card-info>div>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-visibility{display:flex;align-items:center;gap:3px;flex-shrink:0;color:#9696a3}.work-visibility svg{width:10px;height:10px}.work-publish{display:flex;align-items:center;justify-content:space-between;width:100%;font-size:10px;color:#a5a5b1;border-top:1px solid #29292f;padding:11px 0 0;margin-top:13px}.work-publish svg{width:13px;height:13px}.work-text{padding:22px;display:flex;flex-direction:column;height:100%;background:linear-gradient(135deg,#232329,#18181e)}.work-text>svg{width:23px;height:23px;color:#9393a1}.work-text p,.community-text-excerpt{font-size:12px;line-height:1.9;color:#b6b6c2;overflow:hidden;overflow-wrap:anywhere}.work-text p{margin-top:20px}.community-text-excerpt{padding:25px;height:100%;background:linear-gradient(135deg,#25252b,#18181d);display:flex;align-items:center}.community-withdraw{font-size:10px;color:#b2a0a0;margin-top:15px}.community-play{font-size:36px}.community-more,#works-more,#admin-works-more{display:block;margin:25px auto 0}.empty-state{grid-column:1/-1;text-align:center;padding:75px 20px;border:1px dashed #2f2f37;border-radius:16px;color:#8a8a98}.empty-state>span{display:inline-flex;width:52px;height:52px;background:#202027;border:1px solid #303039;border-radius:16px;align-items:center;justify-content:center;margin-bottom:20px}.empty-state h2{font-size:19px;color:#c7c7d1;font-weight:500}.empty-state p{font-size:12px;line-height:1.8;margin:0 0 22px}.empty-state button{margin-top:3px}.empty-state.compact{padding:35px 16px;border:0}.loading-note{padding:35px;text-align:center;color:#999;font-size:12px}.inline-detail{background:#151519;border:1px solid #34343e;border-radius:16px;padding:28px;margin-top:30px;scroll-margin-top:25px}.inline-detail-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.inline-detail-heading h2{margin-bottom:8px}.inline-detail-heading p{font-size:11px;color:#8b8b99}.detail-actions{display:flex;gap:9px;margin-bottom:23px}
.history-page-controls{display:flex;gap:12px;margin-bottom:20px}.history-page-controls>.search-input{flex:1}.history-storage-control select{font-size:11px;background-color:#17171b;min-height:40px}.thread-filter-bar{display:flex;justify-content:space-between;align-items:center;color:#737380;font-size:10px;margin-bottom:25px}.thread-filter-bar>span:first-child{display:flex;gap:5px;align-items:center}.thread-filter-bar svg{width:11px;height:11px}.thread-date-group{margin-bottom:28px}.thread-date-group h2{font-size:10px;font-weight:500;color:#737381;margin-bottom:10px}.thread-row{display:flex;align-items:center;border-bottom:1px solid #27272f;gap:8px}.thread-open{display:flex;align-items:center;gap:14px;flex:1;min-width:0;padding:20px 6px;text-align:left}.thread-kind-icon{width:38px;height:38px;background:#212127;border:1px solid #34343e;border-radius:11px;display:flex;align-items:center;justify-content:center;color:#9696a5}.thread-kind-icon svg{width:18px;height:18px}.thread-row-copy{display:flex;flex-direction:column;gap:8px;min-width:0}.thread-row-copy strong{font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-row-copy>span{color:#767685;font-size:10px}.thread-meta-dot{margin:0 7px}.thread-open-arrow{margin-left:auto;color:#6e6e7c;font-size:15px}.thread-row-actions{display:flex;gap:3px}.thread-row-actions button{display:flex;align-items:center;justify-content:center;width:31px;height:33px;border-radius:8px;color:#747483}.thread-row-actions button:hover{background:#28282f;color:#ddd}.thread-row-actions svg{width:15px;height:15px}.thread-empty{padding:65px 20px;text-align:center;color:#8c8c9a}.thread-empty>svg{width:32px;height:32px;margin-bottom:20px}.thread-empty h2{font-size:19px;color:#c9c9d3}.thread-empty p{font-size:12px}.thread-empty button{padding:10px 15px;border:1px solid #41414d;border-radius:9px;margin-top:15px;font-size:12px}
.account-tabs{margin-bottom:25px}.account-card,.admin-card{border:1px solid #2d2d35;background:#151519;border-radius:16px;padding:26px;margin-bottom:22px;min-width:0}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.card-heading h2{margin-bottom:9px}.card-heading p{font-size:11px;line-height:1.8;color:#838391;margin-bottom:0}.card-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;background:#24242d;border:1px solid #363642;border-radius:12px;color:#b1b1c2}.inline-create{display:flex;align-items:center;gap:10px;margin:18px 0 24px;flex-wrap:wrap}.inline-create>input{flex:1;min-width:170px;font-size:12px}.key-reveal{background:#1c2224;border:1px solid #465155;border-radius:12px;padding:20px;margin-bottom:25px}.key-reveal strong{font-size:13px}.key-reveal p{font-size:11px;margin-top:9px;color:#a5b4b9}.key-reveal>div{display:flex;gap:7px;flex-wrap:wrap}.key-reveal input{flex:1;min-width:180px;font:11px monospace}.api-example{padding:8px 2px;color:#898995;font-size:12px}.api-example>span{display:block;font-size:10px;margin-bottom:10px}.api-example code{font:13px monospace;color:#c2c2ce}.api-example p{font-size:10px;margin-top:12px;color:#686877}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #2a2a33;font-size:12px;margin-bottom:18px}.setting-row small{display:block;color:#7e7e8d;font-size:10px;line-height:1.8;margin-top:8px}.setting-row select{font-size:11px;max-width:210px}.form-grid,.create-user-form{display:grid;grid-template-columns:1fr 1fr auto;gap:15px;align-items:end}.form-grid>label,.create-user-form>label{font-size:11px;color:#8e8e9d;display:flex;flex-direction:column;gap:10px}.account-actions{display:flex;align-items:center;gap:15px}.table-scroll{overflow-x:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:11px;min-width:560px}th{text-align:left;font-size:10px;color:#7c7c8b;font-weight:400;padding:11px 12px 15px;border-bottom:1px solid #33333e}td{padding:19px 12px;border-bottom:1px solid #292932;color:#b3b3c2}td:last-child{text-align:right}td code{font-size:10px;color:#9494a5;white-space:nowrap}.table-user{display:flex;align-items:center;gap:10px}.table-user>span{width:31px;height:31px;display:flex;align-items:center;justify-content:center;background:#2c2c37;border-radius:50%;color:#b6b6c5}.table-user strong{font-weight:400;font-size:11px}.table-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;white-space:nowrap}.table-actions button{padding:0;font-size:10px;color:#a0a0b1}.role-badge{display:inline-block;border:1px solid #3d3d49;border-radius:6px;padding:4px 7px;font-size:9px;color:#a3a3b4}
.admin-mode .app-shell{display:none}.admin-shell{display:flex;min-height:100dvh;background:#0f0f12}.admin-sidebar{width:230px;position:fixed;inset:0 auto 0 0;border-right:1px solid #292932;background:#141418;padding:30px 17px;display:flex;flex-direction:column;z-index:20}.admin-brand-label{font-size:9px;color:#8a8a9a;font-weight:400;letter-spacing:.5px;margin-top:7px}.admin-sidebar .nav-caption{margin:44px 0 14px}.admin-sidebar nav{display:flex;flex-direction:column;gap:6px}.admin-sidebar nav a{display:flex;align-items:center;gap:12px;border-radius:9px;padding:12px 14px;font-size:12px;color:#9494a4}.admin-sidebar nav a svg{width:17px;height:17px}.admin-sidebar nav a.active{color:#eeedf5;background:#2c2c36;border:1px solid #3b3b49;padding:11px 13px}.admin-sidebar nav a:hover{background:#24242e;color:#eee}.admin-return{display:flex;gap:9px;align-items:center;color:#818193;font-size:11px;margin-top:auto;padding:20px 12px 0}.admin-return svg{width:16px;transform:rotate(180deg)}.admin-main{margin-left:230px;width:calc(100% - 230px);min-width:0}.admin-topbar{height:76px;border-bottom:1px solid #282831;padding:0 38px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8b8b9e}.admin-topbar>span{display:flex;gap:8px;align-items:center}.admin-topbar svg{width:15px;height:15px}.admin-topbar>a{font-size:10px}.admin-body{padding:44px 38px;max-width:1400px;margin:auto}.admin-body>.page-heading{margin-bottom:30px}.admin-body .page-heading h1{font-size:30px}.admin-card h2{font-size:16px;font-weight:500}.admin-card>.muted{margin-bottom:25px}#admin-status:not(:empty){font-size:12px;color:#b5b5c8;line-height:1.8;margin-bottom:20px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:30px}.stat-card{border:1px solid #343440;background:#19191f;border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:12px}.stat-card>svg{color:#85859b;width:19px;height:19px}.stat-card>span{color:#89899e;font-size:10px}.stat-card>strong{font-size:31px;font-weight:500}.admin-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.admin-quick-grid>a{display:flex;gap:10px;align-items:center;border:1px solid #363643;padding:17px 14px;font-size:11px;border-radius:10px;color:#b7b7ca;background:#1c1c24}.admin-quick-grid>a>svg:first-child{width:18px;height:18px;color:#9292a8}.admin-quick-grid>a>svg:last-child{margin-left:auto;width:14px;height:14px}#admin-works-owner{font-size:11px;margin-left:12px;max-width:230px}#admin-work-filters{flex-shrink:0}.admin-body .works-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-card .collection-toolbar>label{font-size:11px;color:#9999ad}.admin-card .primary-button{margin-top:2px}.admin-card>form .primary-button{margin-bottom:1px}
dialog{color:var(--text);background:#18181d;border:1px solid #41414c;border-radius:21px;box-shadow:0 30px 100px #000c;padding:32px;max-width:calc(100vw - 32px)}dialog::backdrop{background:#0009;backdrop-filter:blur(6px)}dialog[open]{animation:panelIn .2s ease}dialog h2{font-size:23px;letter-spacing:-.5px;font-weight:500}.dialog-close{position:absolute;right:15px;top:13px;width:28px;height:28px;font-size:23px;color:#9292a1;z-index:2}.auth-dialog{width:750px;padding:0;overflow:hidden}.auth-dialog[open]{display:grid;grid-template-columns:280px 1fr}.auth-art{padding:36px;background:#27272f;display:flex;flex-direction:column;min-height:490px}.auth-art>span{font-size:55px;color:#cccbd5}.auth-art h2{font-size:39px;line-height:1.3;margin-top:70px}.auth-art em{font-style:normal;color:#9999a9}.auth-art p{font-size:8px;letter-spacing:2px;color:#777789;margin-top:auto}.auth-form-wrap{padding:45px 35px 30px}.auth-form-wrap h2{font-size:24px;margin-bottom:12px}.auth-form-wrap>p{font-size:11px;color:#818192;line-height:1.7}.auth-form-wrap form{margin-top:27px}.auth-form-wrap form>label{display:flex;flex-direction:column;gap:9px;font-size:11px;color:#9494a7;margin-bottom:15px}.auth-form-wrap input{font-size:12px;padding:12px;background:#111116}.auth-form-wrap .generate-button{width:100%;margin-top:7px}.toggle-auth{font-size:10px;color:#8e8ea4;display:block;margin:20px auto 0}.auth-note{font-size:9px!important;text-align:center;margin-top:22px!important;color:#646478!important}.form-error{font-size:11px!important;color:#d0a3a3!important}.share-dialog{width:640px}.share-notice{color:#9292a7;font-size:11px;line-height:1.8}.share-field{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#aaaabc;margin:16px 0}.share-field input,.share-field select{font-size:12px}.share-check{display:flex;gap:9px;align-items:flex-start;font-size:11px;line-height:1.8;color:#a4a4b7;margin:14px 0}.share-check input{margin-top:3px;flex-shrink:0}.share-preview{background:#111116;border:1px solid #31313d;border-radius:12px;padding:17px;max-height:300px;overflow-y:auto;margin-top:18px}.share-preview-message>span{font-size:9px;color:#77778b}.share-preview-message p{font-size:11px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.share-preview-message img,.share-preview-message video{max-width:100%;max-height:210px;display:block;border-radius:9px;margin:10px 0}.share-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.share-form-actions>button{padding:11px 15px;border:1px solid #3d3d4a;border-radius:9px;font-size:11px}.share-form-actions>button[type=submit]{background:#e2e1e8;color:#111}.share-form-actions>button[disabled]{opacity:.35}.public-dialog{width:780px;max-height:90dvh;overflow-y:auto}.public-dialog header>span{font-size:10px;color:#88889e}.public-dialog header h2{margin-top:12px}.public-message{padding:18px 0;border-top:1px solid #31313d}.public-message>span{font-size:10px;color:#7e7e94}.public-message p{font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.public-message img,.public-message video{max-width:100%;max-height:520px;display:block;border-radius:10px;margin-top:12px}.public-dialog footer{border-top:1px solid #33333f;padding-top:20px;display:flex;gap:12px;flex-direction:column}.public-dialog footer>label{display:flex;flex-direction:column;font-size:10px;color:#8e8ea5;gap:9px}.public-dialog footer input{font-size:11px}.public-dialog footer>div{display:flex;gap:8px}.public-dialog footer button{padding:10px 14px;border:1px solid #3c3c49;border-radius:9px;font-size:11px}.thread-dialog{width:430px}.thread-dialog p{color:#9090a6;font-size:12px;line-height:1.8}.thread-dialog form>label{font-size:11px;display:block;margin-bottom:10px;color:#9999b0}.thread-dialog input{width:100%;font-size:12px}.thread-dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.thread-dialog-actions>button{padding:10px 14px;border:1px solid #424250;border-radius:9px;font-size:11px}.delete-thread-button{background:#3a2428;color:#e0afb8}.inline-citation{color:#c5d6ee;text-decoration:underline;text-underline-offset:3px}.search-result-state{display:block;font-size:10px;color:#7d7d94;margin-top:12px}.message-sources{font-size:11px;color:#9393aa;margin-top:11px}.message-sources summary{cursor:pointer}.message-sources a{display:flex;gap:9px;font-size:11px;color:#adbdd4;line-height:1.8;margin-top:7px;overflow-wrap:anywhere}.message-sources a>span{color:#74748c}.toast{position:fixed;bottom:28px;left:calc(50% + var(--sidebar)/2);transform:translate(-50%,12px);max-width:min(480px,calc(100vw - 32px));padding:12px 18px;border:1px solid #4a4a58;border-radius:11px;background:#292931;box-shadow:0 10px 40px #0006;font-size:12px;line-height:1.6;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:200}.toast.visible{opacity:1;transform:translate(-50%,0)}.admin-mode .toast{left:50%}
@keyframes arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes panelIn{from{opacity:0;transform:translateY(5px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes breathe{0%,100%{opacity:.4}50%{opacity:1}}
@media(min-width:1550px){.chat-page{max-width:1000px}.chat-input-box>textarea{font-size:16px}.chat-welcome h1{font-size:43px}}
@media(max-width:1100px){:root{--sidebar:195px}.sidebar{padding-left:12px;padding-right:12px}.new-project{font-size:11px}.new-project kbd{display:none}.brand{font-size:22px}.brand-caption{display:none}.topbar{padding:0 24px}.chat-page{padding:0 28px 20px}.content-page{padding:32px 28px}.works-grid,.community-grid{gap:13px}.admin-body{padding:32px 25px}.admin-sidebar{width:200px;padding:26px 12px}.admin-main{margin-left:200px;width:calc(100% - 200px)}.admin-quick-grid{grid-template-columns:1fr}.admin-body .works-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-grid{gap:10px}.stat-card{padding:17px}.stat-card>strong{font-size:27px}.create-user-form{grid-template-columns:1fr 1fr}.create-user-form button{grid-column:1/-1;justify-self:start}}
@media(max-width:760px){:root{--sidebar:0px}.sidebar{width:245px;transform:translateX(-100%);transition:transform .22s ease;padding:25px 16px 20px}.sidebar.mobile-open{transform:translateX(0)}.sidebar.mobile-open+.sidebar-backdrop{display:block;position:fixed;inset:0;background:#0009;z-index:25}.sidebar .brand-caption{display:block}.main-shell{margin-left:0}.topbar{height:74px;padding:0 17px;gap:13px}.mobile-menu{display:flex;align-items:center;justify-content:center;color:#91919e;width:22px;padding:0}.mobile-menu svg{width:20px;height:20px}.top-actions{gap:0}.top-actions>#page-label{display:none}.login-button{font-size:9px;padding:6px 10px;min-height:29px;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#model-picker summary{min-width:0;gap:8px;padding:0}#model-picker summary>svg{margin-left:0;width:10px}.model-brand{display:none}#model-picker summary strong{font-size:12px;max-width:140px;overflow:hidden;display:block;text-overflow:ellipsis}#model-picker summary small{font-size:8px}.model-menu{width:300px;left:-32px;top:45px}.chat-toolbar-right{display:none}.chat-page{min-height:calc(100dvh - 74px);padding:0 17px 21px}.workspace-banner{padding:18px 0 6px}.workspace-banner>div>span{font-size:10px}.workspace-banner p{font-size:8px}.workspace-banner>button{font-size:9px;padding:7px 8px}.workspace-banner>button svg{width:12px;height:12px}.chat-content{padding:24px 0;min-height:210px}.chat-welcome{padding:20px 0 40px}.welcome-symbol{font-size:37px;margin-bottom:22px}.chat-welcome h1{font-size:29px;letter-spacing:-.7px}.chat-welcome>p{font-size:11px;padding:0 15px;line-height:1.8}.chat-input-box{border-radius:19px}.chat-input-box>textarea{padding:18px 17px 9px;font-size:14px;min-height:88px}.composer-bottom{padding:9px 10px 11px;gap:7px;align-items:flex-end}.workspace-options{gap:5px;flex:1}.control-popover>summary{padding:6px 7px;gap:5px;font-size:10px;min-height:31px}.control-glyph{width:16px;height:16px}.control-glyph svg{width:18px;height:18px}.control-popover>summary>svg{width:9px;height:9px}.chat-input-bottom{gap:5px}.chat-storage-control{display:none}#chat-send{width:32px;height:32px}#chat-send svg{width:20px;height:20px}.choice-panel{position:fixed;left:16px;right:16px;bottom:140px;width:auto;max-height:64dvh;overflow-y:auto;padding:16px;box-shadow:0 25px 90px #000d}.ratio-grid{gap:7px}.ratio-choice{min-height:76px}.ratio-choice svg{width:27px;height:27px}.ratio-choice strong{font-size:10px}.ratio-choice small{font-size:8px}.choice-panel-heading{font-size:12px}.choice-panel-heading>span{font-size:9px}.has-messages .chat-content{padding-top:25px}.chat-message{gap:10px;margin-bottom:26px}.assistant-avatar{width:25px;height:25px;font-size:18px}.message-content{font-size:13px;line-height:1.9}.chat-message.user .message-body{padding:10px 15px;border-radius:17px 17px 4px 17px}.message-actions{gap:12px;font-size:9px}.message-actions button{font-size:9px}.chat-error{font-size:10px}.chat-busy{font-size:11px}.has-messages .chat-composer-dock{padding-top:15px;background:linear-gradient(transparent,var(--bg) 15px)}.content-page{padding:27px 18px 50px}.page-heading{gap:14px;align-items:flex-start;margin-bottom:27px;flex-wrap:wrap}.page-heading h1{font-size:27px;margin-bottom:12px}.page-heading p{font-size:11px;line-height:1.8}.eyebrow{font-size:8px;letter-spacing:1.6px}.page-heading>.primary-button{padding:9px 11px;font-size:10px;margin-top:20px}.primary-button,.generate-button{font-size:11px;padding:10px 13px}.quiet-button{font-size:10px;padding:9px 11px}.segmented{padding:3px;gap:1px}.segmented button{font-size:10px;padding:7px 10px}.collection-toolbar{gap:11px;flex-wrap:wrap;margin-bottom:20px}.collection-private{font-size:9px}.collection-toolbar>.collection-private{width:100%;margin-top:2px}.works-grid,.community-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.work-card,.community-card{border-radius:12px}.work-card-info,.community-card-meta{padding:12px 10px}.work-card-info>strong,.community-card-meta>button:first-child{font-size:10px;margin-bottom:9px}.work-card-info>div,.community-card-meta>div{font-size:8px;gap:4px}.work-visibility{font-size:8px}.work-visibility svg{width:9px;height:9px}.work-publish{font-size:9px;padding-top:10px}.work-text{padding:15px}.work-text p{font-size:10px;line-height:1.8;margin-top:13px}.work-text>svg{width:18px;height:18px}.work-kind,.community-kind{font-size:8px;top:8px;left:8px;padding:4px 5px}.community-controls{flex-wrap:wrap;gap:12px}.community-controls>.search-input{max-width:none;flex-basis:100%}.community-view-switch{margin-top:0}.community-privacy-note{font-size:9px}.community-text-excerpt{font-size:10px;padding:16px}.empty-state{padding:50px 18px}.empty-state h2{font-size:17px}.empty-state p{font-size:11px}.empty-state>span{width:45px;height:45px;margin-bottom:17px}.inline-detail{padding:20px 16px}.inline-detail-heading h2{font-size:18px}.detail-actions{gap:8px}.history-page-controls{gap:8px}.history-storage-control select{font-size:10px;max-width:105px}.search-input input{font-size:10px}.thread-open{gap:10px;padding:16px 2px}.thread-kind-icon{width:30px;height:30px;border-radius:9px;flex-shrink:0}.thread-kind-icon svg{width:14px;height:14px}.thread-row-copy strong{font-size:11px}.thread-row-copy>span{font-size:9px}.thread-open-arrow{display:none}.thread-row-actions{gap:0}.thread-row-actions button{width:25px}.thread-row-actions svg{width:13px;height:13px}.account-card,.admin-card{padding:19px 16px;border-radius:13px}.card-heading{gap:13px}.card-heading h2,.admin-card h2{font-size:16px}.card-heading p{font-size:10px}.inline-create{gap:8px}.inline-create>input{font-size:11px;min-width:140px}.setting-row{gap:12px;align-items:flex-start;flex-wrap:wrap}.setting-row select{font-size:10px;max-width:100%}.setting-row small{font-size:9px}.form-grid,.create-user-form{grid-template-columns:minmax(0,1fr)}.form-grid button,.create-user-form button{justify-self:start}.key-reveal{padding:15px}.key-reveal>div{gap:8px}.key-reveal input{flex-basis:100%;min-width:0}.account-actions{flex-wrap:wrap}.admin-shell{display:block}.admin-sidebar{width:100%;position:sticky;top:0;inset:auto;padding:15px 16px 10px;border-right:0;border-bottom:1px solid #30303c;display:block}.admin-sidebar .brand{padding:0;font-size:21px;height:31px}.admin-sidebar .brand-symbol{font-size:28px}.admin-sidebar .nav-caption,.admin-return{display:none}.admin-sidebar nav{display:flex;flex-direction:row;gap:4px;overflow-x:auto;margin-top:17px;padding-bottom:3px;scrollbar-width:none}.admin-sidebar nav a{font-size:10px;padding:9px 11px;gap:6px;white-space:nowrap;flex-shrink:0}.admin-sidebar nav a.active{padding:8px 10px}.admin-sidebar nav a svg{width:14px;height:14px}.admin-main{margin-left:0;width:100%}.admin-topbar{height:52px;padding:0 18px;font-size:9px}.admin-topbar>a{font-size:9px}.admin-topbar svg{width:13px}.admin-body{padding:28px 17px}.admin-body .page-heading h1{font-size:26px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.stat-card{padding:18px;gap:10px}.stat-card>strong{font-size:29px}.admin-body .works-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-card .collection-toolbar>label{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:10px}#admin-works-owner{margin-left:0;max-width:220px;font-size:10px}.auth-dialog[open]{display:block}.auth-art{display:none}.auth-form-wrap{padding:40px 25px 27px}.auth-dialog{max-width:360px}.auth-form-wrap h2{font-size:24px}.share-dialog{padding:27px 20px}.share-dialog h2{font-size:20px}.share-check{font-size:10px}.share-preview{max-height:260px;padding:13px}.public-dialog{padding:28px 19px}.public-dialog h2{font-size:21px}.public-message p{font-size:12px}.thread-dialog{padding:27px 22px}.thread-dialog h2{font-size:21px}.toast{left:50%;font-size:11px;bottom:25px}.model-option{font-size:9px}.model-option>span{display:none}.model-option select{max-width:135px;font-size:10px}#reference-tools{padding:12px 13px 0}.creation-mode-switch button{font-size:9px;padding:7px 9px}.reference-dropzone{padding:16px 12px;gap:8px}.reference-dropzone strong{font-size:11px}.reference-dropzone>span{font-size:8px}.reference-attached img{width:45px;height:45px}.reference-attached strong{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
:root{--model-border:#303030}
.model-config-card{border:1px solid var(--model-border);border-radius:16px;padding:20px;background:#141414;margin-bottom:16px;min-width:0}.model-config-heading{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:20px}.model-config-heading strong{flex:1;min-width:120px}.model-config-heading label,.model-network-settings>label,.search-provider-card>label{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#bcbcbc}.model-config-card button,.model-save-actions>button,.parameter-template-row button{padding:8px 12px;border:1px solid #3a3a3a;border-radius:8px;background:#222;color:#ddd;cursor:pointer}.model-config-card button:disabled{opacity:.5;cursor:wait}.model-config-grid,.parameter-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.model-config-grid>label,.parameter-editor-grid>label,.parameter-select-fields>label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#aaa;min-width:0}.model-config-card input:not([type=checkbox]),.model-config-card select,.model-config-card textarea,.search-provider-card input:not([type=checkbox]){width:100%;min-width:0;box-sizing:border-box;background:#1c1c1c;border:1px solid #393939;border-radius:8px;padding:9px 11px;color:#eee;font:inherit}.model-config-card input[type=checkbox],.search-provider-card input[type=checkbox]{accent-color:#ddd}.model-config-card textarea{resize:vertical;min-height:65px}.model-config-card summary{cursor:pointer;font-size:13px;color:#d0d0d0}.model-parameters-details,.model-network-settings{margin-top:20px;border-top:1px solid #2a2a2a;padding-top:16px}.model-network-settings>label{margin:0 18px 8px 0}.model-config-card .admin-hint{line-height:1.8;margin:12px 0}.parameter-template-row,.model-connection-actions,.model-save-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}.model-connection-actions span{font-size:11px;color:#888}.parameter-template-row select{width:auto;max-width:100%}.parameter-editor{margin-top:14px;border:1px solid #393939;border-radius:12px;padding:16px;min-width:0}.parameter-editor legend{font-size:12px;color:#aaa;padding:0 7px}.parameter-editor .parameter-editable{flex-direction:row;align-items:center}.parameter-select-fields,.parameter-number-fields{margin-top:14px}.parameter-remove{margin-top:12px}.model-test-result{border:1px solid #353535;border-radius:10px;margin-top:16px;padding:14px;overflow-wrap:anywhere;font-size:13px;line-height:1.7;white-space:pre-wrap}.model-test-result p{margin:0}.model-save-actions{position:sticky;bottom:12px;z-index:2;background:#171717;border:1px solid #383838;border-radius:12px;padding:12px}.model-save-actions [role=status],#search-provider-status{font-size:12px;color:#bcbcbc}.search-provider-card{margin-top:24px}.search-provider-card .model-config-grid{margin:16px 0}.model-test-result:empty{display:none}
@media(max-width:650px){.model-config-card{padding:15px}.model-config-grid,.parameter-editor-grid{grid-template-columns:minmax(0,1fr)}.model-option{font-size:11px}.model-option select{max-width:150px}.model-save-actions{bottom:8px}.model-save-actions button{flex:1}.parameter-editor{padding:12px}}
.message-reference{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:10px;color:#9292a0}.message-reference img{width:50px;height:50px;object-fit:cover;border-radius:8px;border:1px solid #44444f}.model-reference-protocol{display:flex;align-items:center;gap:12px;margin-top:18px;font-size:12px;color:#a5a5b2}.model-reference-protocol select{max-width:300px}.model-menu-list button:disabled{opacity:.45}.model-menu-list button:disabled small{color:#b59c9c}
.ratio-choice strong{font-size:11px}.ratio-choice small{font-size:9px}.ratio-choice svg{width:30px;height:30px}.model-health{font-size:9px;color:#8c8c9b;padding:4px 7px;border:1px solid #3b3b48;border-radius:6px}.model-health.unavailable{color:#c6a8a8;border-color:#634848}
@media(max-width:760px){.ratio-choice strong{font-size:11px}.ratio-choice small{font-size:9px}.table-scroll .responsive-table{min-width:0;display:block}.responsive-table thead{display:none}.responsive-table tbody{display:block}.responsive-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:13px 15px;border:1px solid #34343f;background:#19191f;border-radius:12px;margin-top:12px;padding:15px}.responsive-table td{display:block;padding:0;border:0;min-width:0;font-size:11px;overflow-wrap:anywhere}.responsive-table td:first-child{grid-column:1/-1}.responsive-table td[data-label]::before{content:attr(data-label);display:block;font-size:8px;color:#77778a;margin-bottom:6px}.responsive-table td:last-child{grid-column:1/-1;border-top:1px solid #33333f;padding-top:13px;text-align:left}.responsive-table .table-actions{justify-content:space-between;flex-wrap:wrap;gap:12px}.responsive-table td code{font-size:10px}.responsive-table .table-user strong{white-space:normal;overflow-wrap:anywhere}}
 .message-content .markdown-code{white-space:pre-wrap;background:#0b0b0d;border:1px solid #303038;border-radius:9px;padding:12px 14px;margin:10px 0;overflow:auto;font:12px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace}.message-content .markdown-inline{background:#28282d;border-radius:4px;padding:2px 5px;font:12px ui-monospace,SFMono-Regular,Menlo,monospace}.message-content .markdown-heading{display:block;font-size:15px;margin:8px 0}.message-content .markdown-list{display:block;padding-left:12px}
 .sidebar-create-actions{display:grid;gap:6px;padding:0 8px 14px}.sidebar-create-actions button{padding:10px 11px;text-align:left;border-radius:9px;background:#202023;color:#c9c9cf;font-size:11px}.sidebar-create-actions button:hover{background:#2a2a2e}.sidebar [data-page="videos"],body[data-page="videos"]{display:none!important}html[data-theme="light"]{color-scheme:light;--bg:#f5f5f4;--panel:#fff;--panel-raised:#f0f0ee;--line:#dededb;--text:#202022;--muted:#68686d}html[data-theme="light"] body{background:var(--bg);color:var(--text)}html[data-theme="light"] .sidebar,html[data-theme="light"] .topbar,html[data-theme="light"] .chat-input-box,html[data-theme="light"] .account-card,html[data-theme="light"] .admin-card{background:#fff;color:#202022;border-color:#dededb}html[data-theme="light"] input,html[data-theme="light"] textarea,html[data-theme="light"] select{background-color:#fff;color:#202022;border-color:#d8d8d5}html[data-theme="light"] .chat-message.user .message-body{background:#ececea;color:#202022;border-color:#dededb}html[data-theme="light"] .nav-item{color:#55555a}html[data-theme="light"] .nav-item.active{background:#e9e9e7;color:#161618}
/* 左侧历史列表 */
.sidebar-history-head{display:flex;align-items:center;justify-content:space-between;padding:16px 13px 6px;font-size:10px;color:#67676e;letter-spacing:1px}
.sidebar-history-head button{font-size:12px;color:#8a8a92;padding:2px 5px;border-radius:5px;line-height:1}
.sidebar-history-head button:hover{background:#232326;color:#fff}
.sidebar-history{display:flex;flex-direction:column;gap:2px;max-height:min(36vh,300px);overflow-y:auto;padding:0 4px 10px;scrollbar-width:thin;scrollbar-color:#3a3a40 transparent}
.sidebar-history::-webkit-scrollbar{width:6px}.sidebar-history::-webkit-scrollbar-thumb{background:#3a3a40;border-radius:3px}
.sidebar-history-row{display:flex;align-items:center;gap:9px;width:100%;padding:8px 9px;border-radius:8px;color:#9a9aa2;font-size:11px;text-align:left;min-width:0}
.sidebar-history-row:hover{background:#1b1b1e;color:#e4e4e8}
.sidebar-history-row.selected{background:#26262b;color:#f2f1ee}
.sidebar-history-icon{display:flex;flex-shrink:0;opacity:.65}
.sidebar-history-icon svg{width:13px;height:13px}
.sidebar-history-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.sidebar-history-empty{font-size:10px;color:#5f5f66;padding:8px 12px;margin:0;line-height:1.7}
/* Markdown 正文 */
.message-content p{margin:0 0 10px;line-height:1.75}
.message-content p:last-child{margin-bottom:0}
.message-content h1.markdown-heading,.message-content h2.markdown-heading,.message-content h3.markdown-heading,.message-content h4.markdown-heading{display:block;font-size:15px;font-weight:600;line-height:1.45;margin:15px 0 8px}
.message-content h1.markdown-heading{font-size:19px}.message-content h2.markdown-heading{font-size:17px}
.message-content ul.markdown-list,.message-content ol.markdown-list{display:block;margin:8px 0;padding-left:22px}
.message-content ul.markdown-list>li{list-style:disc;display:list-item;padding:2px 0;line-height:1.7}
.message-content ol.markdown-list>li{list-style:decimal;display:list-item;padding:2px 0;line-height:1.7}
.message-content .markdown-quote{margin:10px 0;padding:6px 14px;border-left:2px solid #4a4a52;color:#a9a9b3}
.message-content hr{border:0;border-top:1px solid #33333a;margin:16px 0}
.message-content a{color:#8ab4f8;text-decoration:underline;text-underline-offset:2px}
.message-content .markdown-image{max-width:100%;border-radius:10px;margin:8px 0}
.markdown-table-wrap{overflow-x:auto;margin:12px 0}
.markdown-table{border-collapse:collapse;width:100%;font-size:12px}
.markdown-table th,.markdown-table td{border:1px solid #33333a;padding:7px 10px;text-align:left;vertical-align:top}
.markdown-table th{background:#1e1e22;font-weight:600}
/* 浅色主题完整覆盖 */
html[data-theme="light"] body{background:#f6f6f5;color:#1d1d1f}
html[data-theme="light"] .sidebar,html[data-theme="light"] .topbar,html[data-theme="light"] .admin-sidebar,html[data-theme="light"] .admin-shell{background:#fbfbfa;border-color:#e3e3df;color:#1d1d1f}
html[data-theme="light"] .nav-item{color:#5b5b60}
html[data-theme="light"] .nav-item:hover{background:#ececeb;color:#1a1a1c}
html[data-theme="light"] .new-project,html[data-theme="light"] .sidebar-create-actions button{background:#fff;border-color:#dededa;color:#333}
html[data-theme="light"] .new-project:hover,html[data-theme="light"] .sidebar-create-actions button:hover{background:#f0f0ee}
html[data-theme="light"] .sidebar-history-head{color:#7a7a80}
html[data-theme="light"] .sidebar-history-row{color:#55555a}
html[data-theme="light"] .sidebar-history-row:hover{background:#eeeef0;color:#1a1a1c}
html[data-theme="light"] .sidebar-history-row.selected{background:#e6e6e4;color:#111}
html[data-theme="light"] .sidebar-history-empty{color:#909096}
html[data-theme="light"] .chat-input-box{background:#fff;border-color:#dcdcd8;box-shadow:0 4px 20px #0000000d}
html[data-theme="light"] .chat-message.assistant .message-body,html[data-theme="light"] .chat-message.user .message-body{background:#fff;border-color:#e4e4e0;color:#1d1d1f}
html[data-theme="light"] .account-card,html[data-theme="light"] .admin-card,html[data-theme="light"] .work-card,html[data-theme="light"] .community-card,html[data-theme="light"] .thread-row,html[data-theme="light"] .model-config-card{background:#fff;border-color:#e4e4e0}
html[data-theme="light"] .thread-date-group h2,html[data-theme="light"] .thread-row-copy>span{color:#7a7a80}
html[data-theme="light"] .thread-kind-icon{background:#f1f1ef;border-color:#e2e2de;color:#6a6a70}
html[data-theme="light"] .segmented{background:#ececea;border-color:#e0e0dc}
html[data-theme="light"] .segmented button{color:#66666b}
html[data-theme="light"] .segmented button.active{background:#fff;color:#111;box-shadow:0 1px 4px #00000012}
html[data-theme="light"] dialog{background:#fff;color:#1d1d1f;border-color:#e0e0dc}
html[data-theme="light"] .control-popover>summary{background:#f2f2f0;border-color:#dcdcd8;color:#3a3a3e}
html[data-theme="light"] .choice-panel{background:#fff;border-color:#e2e2de;box-shadow:0 18px 50px #0000001f}
html[data-theme="light"] .ratio-choice,html[data-theme="light"] .value-choice{background:#f5f5f3;border-color:#e0e0dc;color:#4c4c52}
html[data-theme="light"] .ratio-choice.selected{background:#e8e8e6;border-color:#b9b9b4;color:#111}
html[data-theme="light"] .message-content .markdown-code{background:#f4f4f2;border-color:#e2e2de;color:#242427}
html[data-theme="light"] .message-content .markdown-inline{background:#efefed;color:#333}
html[data-theme="light"] .message-content .markdown-quote{border-left-color:#cfcfca;color:#5c5c62}
html[data-theme="light"] .message-content hr{border-top-color:#e2e2de}
html[data-theme="light"] .message-content a{color:#1a56c4}
html[data-theme="light"] .markdown-table th,html[data-theme="light"] .markdown-table td{border-color:#e2e2de}
html[data-theme="light"] .markdown-table th{background:#f4f4f2}
html[data-theme="light"] .primary-button,html[data-theme="light"] .generate-button{background:#1d1d1f;border-color:#1d1d1f;color:#fff}
html[data-theme="light"] .primary-button:hover,html[data-theme="light"] .generate-button:hover{background:#333}
html[data-theme="light"] .search-input{background:#fff;border-color:#dcdcd8}
html[data-theme="light"] ::selection{background:#c9d8f5;color:#111}
html[data-theme="light"] .model-brand{background:#efefed;border-color:#e0e0dc;color:#4a4a50}
html[data-theme="light"] .provider-mark{background:#f1f1ef;border-color:#e2e2de;color:#3a3a40}
html[data-theme="light"] .model-option select{background-color:#f7f7f5;color:#3a3a3e;border-color:#dededa}
html[data-theme="light"] .model-menu{background:#fff;border-color:#e2e2de;box-shadow:0 20px 50px #0000001a}
html[data-theme="light"] .model-menu-list button{color:#3a3a3e}
html[data-theme="light"] .model-menu-list button:hover{background:#f2f2f0}
html[data-theme="light"] .model-menu-list button[aria-selected="true"]{background:#ececea}
html[data-theme="light"] .model-menu-title>span,html[data-theme="light"] #model-picker summary small{color:#7a7a80}
html[data-theme="light"] .privacy-badge{border-color:#dededa;color:#66666b}
html[data-theme="light"] .chat-storage-control select{color:#66666b}
html[data-theme="light"] .chat-storage-control>svg{color:#8a8a90}
html[data-theme="light"] .quiet-button,html[data-theme="light"] .icon-button{border-color:#dededa;color:#55555a}
html[data-theme="light"] .workspace-banner>div>span{color:#5f5f65}
html[data-theme="light"] .eyebrow{color:#7a7a80}
html[data-theme="light"] .thread-row{border-bottom-color:#e8e8e4}
html[data-theme="light"] .thread-open{color:#2a2a2e}
html[data-theme="light"] .thread-row-actions button{color:#7a7a80}
html[data-theme="light"] .thread-row-actions button:hover{background:#f0f0ee;color:#222}
html[data-theme="light"] .search-input>svg{color:#8a8a90}
html[data-theme="light"] .settings-admin,html[data-theme="light"] .sidebar-bottom{border-color:#e4e4e0}
html[data-theme="light"] .profile-button{border-top-color:#e8e8e4}
html[data-theme="light"] .user-avatar{background:#ececea;border-color:#dededa;color:#3a3a3e}
html[data-theme="light"] .workspace-options select,html[data-theme="light"] .workspace-options .model-option select,html[data-theme="light"] #chat-search{background:#f2f2f0!important;color:#4a4a50!important;border:1px solid #dededa!important;opacity:1}
html[data-theme="light"] .workspace-options .model-option{color:#5f5f65}
html[data-theme="light"] .chat-storage-control select{color:#66666b!important;background:transparent!important;border:0!important}
html[data-theme="light"] .select-trigger{background:#f2f2f0;border-color:#dededa;color:#3a3a3e}
html[data-theme="light"] .select-trigger:hover,html[data-theme="light"] .select-trigger[aria-expanded="true"]{background:#e9e9e7;border-color:#c9c9c4}
html[data-theme="light"] .select-trigger>svg{color:#6a6a70}
html[data-theme="light"] .select-panel,html[data-theme="light"] .select-overlay>div{background:#fff;border-color:#e2e2de;color:#2a2a2e}
