:root{--surface:#fff;--page:#fff;--sidebar:#f8f8f8;--border:#e7e7e7;--text:#252525;--text-muted:#858585;--user-bubble:#f0f0f0;--accent:#15745b;--accent-soft:rgba(21,116,91,.1);--profile-accent:rgba(21,116,91,.15);--popup-shadow:0 8px 24px rgba(0,0,0,.08);--danger:#B3412E;--logo-bg:transparent;color-scheme:light}
:root[data-theme=dark]{--surface:#252525;--page:#202020;--sidebar:#181818;--border:#3a3a3a;--text:#ececec;--text-muted:#a0a0a0;--user-bubble:#343434;--accent:#7cc7af;--accent-soft:rgba(124,199,175,.1);--profile-accent:rgba(124,199,175,.15);--popup-shadow:0 8px 24px rgba(0,0,0,.4);--danger:#E07A63;--logo-bg:#fafafa;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--text);font:14px/1.55 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;background:none;border:0;color:inherit}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button[hidden],[hidden]{display:none!important}svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;display:block}.iconButton{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:var(--text-muted)}.iconButton:hover{background:var(--user-bubble);color:var(--text)}.srOnly{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}.muted,.footnote{color:var(--text-muted)}.small{font-size:13px}.footnote{font-size:11px;line-height:1.7}.wide{width:100%}
aside{position:fixed;inset:0 auto 0 0;width:260px;background:var(--sidebar);padding:12px 8px 8px;display:flex;flex-direction:column;z-index:30}.sideTop{display:flex;justify-content:flex-end;padding:0 7px}.new{display:flex;align-items:center;gap:10px;padding:12px;width:100%;border-radius:10px;text-align:left;font-weight:550}.new:hover{background:var(--user-bubble)}.sideLabel{font-size:11px;color:var(--text-muted);padding:25px 12px 10px}#history{flex:1;min-height:0;overflow:auto}#history button{display:block;width:100%;text-align:left;border-radius:8px;padding:10px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}#history button.active,#history button:hover{background:var(--user-bubble)}.sideActions{border-top:1px solid var(--border);padding:8px 0}.sideActions button{width:100%;display:flex;gap:10px;align-items:center;font-size:12px;text-align:left;border-radius:8px;padding:8px 12px}.sideActions button:hover{background:var(--user-bubble)}.sideActions svg{width:16px;height:16px}.profileWrap{position:relative}.profile{width:100%;height:52px;border-radius:10px;display:flex;align-items:center;gap:10px;padding:8px;text-align:left}.profile:hover{background:var(--user-bubble)}.avatar{width:32px;height:32px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:var(--profile-accent);color:var(--accent);font-size:14px;font-weight:600}.profileText{min-width:0;flex:1;display:flex;flex-direction:column;line-height:1.5}.profileText b{font-weight:500;font-size:14px}.profileText small{font-size:12px;color:var(--text-muted)}.profileText b,.profileText small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile>svg,.profile>span:last-child svg{width:16px;height:16px;color:var(--text-muted)}
main{margin-left:260px;height:100dvh;display:flex;flex-direction:column}header{height:65px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:12px}.modelPicker{margin-right:auto;max-width:70%}.modelPicker select{padding:7px 24px 7px 0;border:0;max-width:100%;background:transparent;color:var(--text);font-size:15px;font-weight:550;cursor:pointer}.headerActions{display:flex;gap:4px}#mobileMenu{display:none}.workspace{flex:1;overflow:auto;padding:30px;scroll-behavior:smooth}.welcome{max-width:800px;margin:11vh auto 40px;text-align:center}.welcomeEyebrow{font-size:11px;letter-spacing:.1px;color:var(--text-muted)}.welcome h1{font-size:31px;font-weight:620;letter-spacing:-1.1px;margin:18px 0 12px}.welcome p{font-size:14px;color:var(--text-muted);margin:0}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:35px}.cards button{padding:19px 15px;display:flex;flex-direction:column;gap:15px;text-align:left;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.cards button:hover{background:var(--user-bubble)}.cards svg{color:var(--text-muted)}.cards b{font-size:12px;font-weight:500;white-space:nowrap}.messages{max-width:800px;margin:auto}.message{padding:20px 0;line-height:1.9;overflow-wrap:anywhere;content-visibility:auto;contain-intrinsic-size:auto 150px}.message.user{text-align:right}.bodyText{white-space:pre-wrap}.message.user .bodyText{display:inline-block;text-align:left;max-width:85%;background:var(--user-bubble);padding:10px 20px;border-radius:22px}.messageName{font-size:10px;letter-spacing:.7px;font-weight:600;color:var(--text-muted);margin-bottom:10px}.messageTools{display:flex;align-items:center;gap:6px;margin-top:10px}.messageTools button{color:var(--text-muted);font-size:11px;display:flex;align-items:center;gap:5px;padding:5px}.messageTools svg{height:14px;width:14px}.userAttachments{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:0 0 8px auto;max-width:85%}.userAttachments img{width:96px;height:96px;object-fit:cover;border-radius:10px;cursor:zoom-in}.userFile{height:56px;border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;gap:10px;padding:10px;max-width:270px;text-align:left;font-size:12px}.userFile span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.userFile small{color:var(--text-muted);display:block}.message.error{color:var(--danger);font-size:13px;background:var(--user-bubble);padding:15px;border-radius:12px}.generatedImage{position:relative;width:fit-content;max-width:100%;border-radius:12px;overflow:hidden;margin:10px 0;background:var(--user-bubble)}.generatedImage>img{display:block;max-width:100%;max-height:560px;cursor:zoom-in;object-fit:contain}.imageActions{position:absolute;right:10px;top:10px;display:flex;gap:5px;opacity:0;transition:opacity .12s}.generatedImage:hover .imageActions,.generatedImage:focus-within .imageActions{opacity:1}.imageActions button{background:rgba(0,0,0,.6);color:#fff;border-radius:7px}.skeleton{width:min(512px,100%);aspect-ratio:1;background:linear-gradient(100deg,var(--user-bubble) 25%,var(--surface) 50%,var(--user-bubble) 75%);background-size:200% 100%;animation:shimmer 1.8s ease-in-out infinite;border:1px solid var(--border);border-radius:12px;display:flex;align-items:flex-end;padding:20px;color:var(--text-muted);font-size:12px}@keyframes shimmer{from{background-position:200% 0}to{background-position:-200% 0}}.thinking{display:flex;gap:5px;padding:13px 0}.thinking i{width:5px;height:5px;background:var(--text-muted);border-radius:50%;animation:pulse 1s ease-in-out infinite}.thinking i:nth-child(2){animation-delay:.15s}.thinking i:nth-child(3){animation-delay:.3s}@keyframes pulse{50%{opacity:.2}}
.composerArea{padding:15px 30px 17px;flex-shrink:0}.composer{max-width:800px;margin:auto;border:1px solid var(--border);border-radius:24px;background:var(--sidebar);padding:15px 16px 12px;position:relative;box-shadow:0 3px 18px rgba(0,0,0,.025)}.composer textarea{width:100%;min-height:62px;max-height:170px;resize:none;border:0;outline:none;background:transparent;color:var(--text);font-size:15px;padding:2px 2px 9px;display:block}.composer textarea::placeholder{color:var(--text-muted)}.composerBottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.tools{display:flex;align-items:center;gap:8px}.addWrap{position:relative}.addButton{width:32px;height:32px;border-radius:50%;border:1px solid var(--border);display:grid;place-items:center;background:var(--surface)}.addButton:hover{background:var(--user-bubble)}.addButton svg{height:18px;width:18px;transition:transform 120ms ease-out}.addButton[aria-expanded=true] svg{transform:rotate(45deg)}.modeChip{height:28px;display:flex;gap:6px;align-items:center;padding:4px 8px;border-radius:20px;background:var(--accent-soft);color:var(--accent);font-size:12px}.modeChip svg{width:14px;height:14px}.send{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--text);color:var(--surface)}.send:disabled{opacity:.3}.send svg{width:20px;height:20px}.caption{font-size:10px;color:var(--text-muted);text-align:center;padding-top:11px}.popover{position:absolute;z-index:50;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--popup-shadow);padding:6px;animation:popIn 120ms ease-out;transform-origin:bottom left}@keyframes popIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.addMenu{left:-4px;bottom:calc(100% + 10px);width:240px}.accountMenu{left:0;bottom:calc(100% + 8px);width:244px}.menuItem{width:100%;height:40px;border-radius:8px;display:flex;gap:10px;align-items:center;padding:4px 8px;text-align:left;font-size:14px;line-height:1.1}.menuItem>span:first-child{display:flex;align-items:center}.menuItem:hover,.menuItem:focus-visible{background:var(--user-bubble)}.menuItem:disabled,.menuItem[aria-disabled=true]{opacity:.4}.menuCopy{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.menuCopy>span{font-size:14px;color:var(--text)}.menuCopy small{font-size:12px;color:var(--text-muted);line-height:1.1}.check{margin-left:auto;color:var(--accent)}.check svg{width:15px;height:15px}.popover hr{border:0;border-top:1px solid var(--border);margin:4px 0}.menuEmail{font-size:12px;color:var(--text-muted);padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.themeRow{display:flex;align-items:center;gap:8px;height:40px;padding:4px 8px;font-size:12px}.themeRow>span:first-child{display:flex}.themeRow svg{width:18px;height:18px}.segments{display:flex;background:var(--user-bubble);border-radius:6px;padding:2px;margin-left:auto;gap:1px}.segments button{font-size:10px;padding:4px 5px;border-radius:4px;white-space:nowrap}.segments button[aria-pressed=true]{background:var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.1);color:var(--accent)}.danger{color:var(--danger)}.attachmentStrip{display:flex;gap:9px;flex-wrap:wrap}.attachmentStrip:empty{display:none}.attachment{height:56px;margin:0 0 13px;position:relative;flex-shrink:0}.attachment.file{display:flex;align-items:center;gap:10px;border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:9px 13px;min-width:150px;max-width:225px}.attachment.file>.fileIcon{display:grid;place-items:center;width:30px;height:34px;border-radius:7px;background:var(--user-bubble);flex-shrink:0}.fileInfo{min-width:0;display:flex;flex-direction:column;gap:2px;padding-right:10px}.fileInfo b{font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fileInfo small{font-size:10px;color:var(--text-muted)}.attachment.image{width:56px}.attachment.image img{display:block;width:56px;height:56px;border-radius:10px;object-fit:cover;border:1px solid var(--border)}.removeAttachment{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;width:19px;height:19px;background:var(--surface);border:1px solid var(--border);border-radius:50%;opacity:0;transition:opacity .1s;z-index:2}.removeAttachment svg{width:12px;height:12px}.attachment:hover .removeAttachment,.attachment:focus-within .removeAttachment{opacity:1}.progress{position:absolute;left:0;top:0;height:2px;right:0;border-radius:10px;overflow:hidden;background:var(--border)}.progress>span{display:block;height:100%;background:var(--accent);transition:width .2s}.composer.dragging{border:1px dashed var(--accent)}.dropOverlay{position:absolute;inset:0;border-radius:23px;background:var(--surface);opacity:.96;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;pointer-events:none;color:var(--accent);z-index:20}.dropOverlay svg{width:23px;height:23px}.dropOverlay small{font-size:11px;font-weight:400;color:var(--text-muted)}
dialog{border:1px solid var(--border);border-radius:18px;padding:28px;max-width:500px;width:calc(100% - 32px);max-height:88dvh;overflow:auto;background:var(--surface);color:var(--text);box-shadow:0 20px 80px rgba(0,0,0,.15)}dialog::backdrop{background:rgba(0,0,0,.4);backdrop-filter:blur(4px)}h2{font-size:20px;font-weight:600;margin:0 0 12px}h3{font-size:14px;font-weight:600;margin:23px 0 8px}dialog p{color:var(--text-muted);font-size:14px;line-height:1.7;margin:0 0 14px}.dialogHead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.dialogHead h2{margin:0 0 8px}.dialogHead>.iconButton{margin-top:-5px}input{border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);padding:10px;width:100%}label{font-size:12px}input[type=checkbox]{width:15px;height:15px;accent-color:var(--accent)}.registration input{font-size:24px;text-align:center;padding:12px;margin:8px 0}.primary,.dangerFilled{background:var(--text);color:var(--surface);padding:10px 17px;border-radius:9px;font-size:13px;font-weight:500}.dangerFilled{background:#B3412E;color:#fff}.primary:disabled,.dangerFilled:disabled{opacity:.45}.textButton{font-size:12px;padding:8px;border-radius:6px}.textButton:hover{background:var(--user-bubble)}.status{font-size:12px!important;color:var(--text-muted);min-height:16px}.logoutDialog{width:400px;max-width:calc(100% - 32px);border-radius:16px}.logoutDialog h2{font-size:17px}.logoutDialog p{font-size:14px}.logoutDialog .footnote{font-size:11px}.checkLabel{display:flex;align-items:center;gap:9px;margin:22px 0;font-size:13px}footer{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin-top:24px}.settingAccount{padding-top:9px;display:flex;flex-direction:column;gap:3px}.settingAccount small{font-size:12px;color:var(--text-muted)}.statGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.stat{padding:14px;background:var(--sidebar);border-radius:12px;color:var(--text-muted);font-size:11px}.stat b{display:block;color:var(--text);font-size:23px;font-weight:550}.connection{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:12px 0;font-size:13px;color:var(--text-muted)}.note{background:var(--sidebar);border-radius:9px;padding:12px;font-size:11px;color:var(--text-muted)}.adminDialog{width:1000px;max-width:94vw}.adminTable{overflow:auto;max-height:50vh;margin-top:14px}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}td,th{padding:12px;border-bottom:1px solid var(--border);text-align:right}td:first-child,th:first-child{text-align:left}th{color:var(--text-muted);font-weight:500}.lightbox{border:0;background:transparent;box-shadow:none;padding:48px 20px 20px;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;overflow:hidden}.lightbox[open]{display:flex;align-items:center;justify-content:center}.lightbox::backdrop{background:rgba(0,0,0,.85);backdrop-filter:blur(8px)}.lightbox>img{display:block;max-width:100%;max-height:calc(100dvh - 80px);object-fit:contain;box-shadow:0 15px 80px rgba(0,0,0,.25);border-radius:8px}.lightboxToolbar{position:absolute;top:16px;right:22px;display:flex;gap:8px}.lightboxToolbar .iconButton{background:#ffffff1f;color:#fff;border-radius:50%}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;background:var(--text);color:var(--surface);padding:11px 20px;border-radius:10px;font-size:13px;box-shadow:var(--popup-shadow);animation:toastIn .15s ease-out}.toast.leaving{opacity:0;transition:opacity .2s}@keyframes toastIn{from{opacity:0;transform:translate(-50%,4px)}to{opacity:1;transform:translate(-50%,0)}}
body.collapsed aside{width:64px}body.collapsed main{margin-left:64px}body.collapsed .new{justify-content:center;padding:12px 0}body.collapsed .profileWrap{margin-top:auto}body.collapsed .profile{padding:8px;justify-content:center}body.collapsed .accountMenu{left:0;width:244px}body.collapsed .sideTop{justify-content:center;padding:0}
@media(hover:none){.removeAttachment,.imageActions{opacity:1}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-width:760px){aside{width:250px;transform:translateX(-100%);transition:transform .15s ease}body.menuOpen aside{transform:translateX(0);box-shadow:12px 0 60px #0003}body.collapsed aside{width:250px}body.collapsed .profileText{display:flex}body.collapsed .new>span:last-child,body.collapsed .sideLabel,body.collapsed #history{display:block}body.collapsed .sideActions{display:block}body.collapsed .profileWrap{margin-top:0}main,body.collapsed main{margin-left:0}header{padding:0 15px;gap:9px}#mobileMenu{display:flex}header .modelPicker{max-width:calc(100% - 120px)}.workspace{padding:20px 17px}.welcome{margin-top:10vh}.welcome h1{font-size:26px}.welcome p{font-size:12px}.welcomeEyebrow{font-size:10px}.cards{grid-template-columns:1fr 1fr;gap:9px}.cards button{padding:16px 14px;gap:12px}.cards b{font-size:11px}.composerArea{padding:10px 12px 14px}.caption{font-size:9px}.accountMenu{width:234px}.message.user .bodyText{max-width:92%}.userAttachments{max-width:92%}.attachment.file{max-width:190px;min-width:135px}.send{width:32px;height:32px}.message{font-size:14px}.skeleton{width:100%}.headerActions #print{display:none}}
@media print{aside,header,.composerArea,.messageTools,.imageActions,dialog,.toast{display:none!important}main,body.collapsed main{margin:0;height:auto}.workspace{overflow:visible;padding:0}.welcome{display:none}.messages{max-width:none}.message{content-visibility:visible;break-inside:avoid}.bodyText{white-space:pre-wrap}.message.user .bodyText{background:#f0f0f0;color:#222}body{background:white;color:#222}}
/* Stage 1 — conversation controls, using the existing surface tokens. */
.modelPicker select option{background:var(--surface);color:var(--text)}.modelPicker select{color-scheme:inherit}.historySearch{margin:17px 7px 5px;position:relative;display:flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text-muted)}.historySearch>span{display:flex}.historySearch svg{height:14px;width:14px}.historySearch input{padding:0;border:0;border-radius:0;outline:none;background:none;font-size:12px;min-width:0}.historySearch kbd{font-size:9px;white-space:nowrap;color:var(--text-muted);font-family:inherit}.historyGroup{font-size:10px!important;font-weight:500!important;color:var(--text-muted);padding:12px 12px 4px;margin:0!important}.historyRow{display:flex;align-items:center;position:relative;border-radius:9px;padding-left:1px;gap:0}.historyRow.active,.historyRow:hover,.historyRow:focus-within{background:var(--user-bubble)}#history .historyTitle{font-size:12px;min-width:0;flex:1;padding:9px 10px;background:transparent;border-radius:0}#history .historyMore{width:28px;height:28px;padding:4px;margin-right:5px;flex-shrink:0;display:grid;place-items:center;opacity:0}#history .historyMore svg{width:17px;height:17px}.historyRow:hover .historyMore,.historyRow:focus-within .historyMore{opacity:1!important}.favoriteMark{width:11px;height:11px;color:var(--accent);margin-left:10px;fill:var(--accent-soft)}.historyEmpty{font-size:11px;color:var(--text-muted);padding:15px}.conversationMenu{position:fixed;width:180px;z-index:60;transform-origin:top left}.conversationMenu .menuItem{font-size:12px;height:35px}.conversationMenu .menuItem svg{width:16px;height:16px}.messageTools{opacity:0;transition:opacity .1s;min-height:26px}.message:hover .messageTools,.message:focus-within .messageTools{opacity:1}.message.user .messageTools{justify-content:flex-end}.messageTools .iconButton{padding:4px;width:28px;height:26px}.messageTools .iconButton:disabled{opacity:.3}.messageTools:has(.branchNav){opacity:1}.branchNav{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--text-muted);margin-right:4px}.branchNav .iconButton{width:22px;height:24px}.branchNav svg{width:13px;height:13px}.branchNav span{min-width:34px;text-align:center;font-variant-numeric:tabular-nums}.thinkingToggle{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--text-muted);border-radius:20px;padding:6px 9px;height:28px;border:1px solid transparent}.thinkingToggle svg{height:15px;width:15px}.thinkingToggle:hover{background:var(--user-bubble)}.thinkingToggle[aria-pressed=true]{color:var(--accent);background:var(--accent-soft);border-color:var(--profile-accent)}.thinkingToggle:disabled{opacity:.4}.reasoningBox{margin:0 0 16px;border:1px solid var(--border);border-radius:10px;background:var(--sidebar);font-size:12px;max-width:540px}.reasoningBox summary{cursor:pointer;display:flex;align-items:center;gap:8px;padding:10px 12px;list-style:none;color:var(--text-muted)}.reasoningBox summary::-webkit-details-marker{display:none}.reasoningBox summary:after{content:'⌄';margin-left:4px;transition:transform .12s}.reasoningBox[open] summary:after{transform:rotate(180deg)}.reasoningBox summary svg{height:14px;width:14px;color:var(--accent)}.reasoningBox summary small{margin-left:auto;font-size:10px}.reasoningBox p{padding:0 13px 12px;margin:0;font-size:11px;line-height:1.8;color:var(--text-muted)}.continueButton{display:flex;align-items:center;gap:6px;border:1px solid var(--border);background:var(--surface);padding:7px 11px;border-radius:8px;font-size:12px;color:var(--accent);margin-top:10px}.continueButton svg{width:14px;height:14px}.continueButton:hover{background:var(--accent-soft)}#editText{width:100%;resize:vertical;min-height:150px;max-height:45vh;border:1px solid var(--border);border-radius:10px;padding:12px;font-size:14px;background:var(--surface);color:var(--text);line-height:1.8}.message.user .bodyText:empty{display:none}body.collapsed .historySearch{display:none}@media(hover:none){#history .historyMore,.messageTools{opacity:1}}@media(max-width:760px){body.collapsed .historySearch{display:flex}.historySearch kbd{display:none}.thinkingToggle{padding:5px 7px}.thinkingToggle span:last-child{font-size:10px}.messageTools{opacity:1}}@media print{.messageTools,.continueButton,.reasoningBox{display:none!important}}
#messages>.message:nth-last-child(-n+8),.message.error{content-visibility:visible;contain-intrinsic-size:none}

.logo-slot{margin:6px 8px 12px;flex-shrink:0;max-width:200px;align-self:flex-start;line-height:0}.logo-group{display:inline-flex;flex-direction:column;align-items:stretch;gap:8px;width:200px;max-width:100%;line-height:normal}.logo-row{display:flex;align-items:center;gap:5px;min-width:0}.logo-row img{display:block;height:auto;min-width:0;max-height:18px;object-fit:contain;flex-grow:0;flex-shrink:1}.logo-university{width:calc(18px * 1600 / 281);aspect-ratio:1600/281}.logo-bmc{width:calc(18px * 1600 / 212);aspect-ratio:1600/212}.logo-divider{display:block;width:1px;height:12px;background:var(--border);flex:0 0 1px}.logo-wide{display:block;width:100%;height:auto;aspect-ratio:1600/216;object-fit:contain}.app-icon{display:none;width:28px;height:28px;color:var(--accent)}.app-icon svg{width:28px;height:28px}:root[data-theme=dark] .logo-group{background:transparent;border-radius:0;outline:0}:root[data-theme=dark] .logo-divider{background:#d7d7d7}body.collapsed .logo-group{display:none}body.collapsed .logo-slot{margin:10px auto 12px}body.collapsed .app-icon{display:block}@media(max-width:760px){.logo-slot{max-width:180px}.logo-group{width:180px}body.collapsed .logo-group{display:inline-flex}body.collapsed .logo-slot{margin:6px 8px 12px}body.collapsed .app-icon{display:none}}
.modelPicker{position:relative;min-width:0}.modelTrigger{display:flex;align-items:center;gap:5px;padding:8px 2px;max-width:100%;white-space:nowrap}.modelTrigger b{font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis}.modelTrigger small{font-size:13px;color:var(--text-muted)}.modelChevron{color:var(--text-muted);margin-left:5px}.modelPopover{position:absolute;top:calc(100% + 8px);left:0;z-index:65;width:300px;max-width:calc(100vw - 34px);border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:var(--popup-shadow);padding:8px;animation:popIn .12s ease-out}.modelPanelHead{display:flex;align-items:center;justify-content:space-between;padding:4px 3px 6px}.modelPanelHead b{font-size:13px}.modelBack{font-size:14px;font-weight:550}.modelPopover input[type=search]{font-size:12px;padding:8px 10px;border-radius:8px;background:var(--sidebar);margin-bottom:7px}.modelPanelBody{max-height:min(60dvh,520px);overflow:auto;overscroll-behavior:contain}.modelPanelBody h4{font-size:10px;font-weight:500;color:var(--text-muted);margin:10px 8px 3px}.modelFamily{display:flex;align-items:center;gap:10px;padding:10px 8px;width:100%;border-radius:9px;text-align:left}.modelFamily:hover,.modelOption:hover{background:var(--user-bubble)}.providerMark{width:20px;height:20px;display:grid;place-items:center;font-size:16px;color:var(--accent);font-weight:700}.modelFamily>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:2px}.modelFamily b{font-size:14px;font-weight:500}.modelFamily small{font-size:12px;color:var(--text-muted)}.modelFamily>span:last-child{color:var(--text-muted);font-size:20px}.modelOption{display:flex;align-items:center;border-radius:8px}.modelSelectOption{min-width:0;flex:1;padding:10px 8px;text-align:left;display:flex;flex-direction:column;gap:3px}.modelTitle{display:flex;align-items:center;gap:5px;width:100%}.modelTitle b{font-size:12px;font-weight:550}.modelSelectOption>small{font-size:10px;line-height:1.4;color:var(--text-muted)}.modelBadge{border-radius:4px;padding:1px 4px;font-size:8px;background:var(--accent-soft);color:var(--accent)}.modelCheck{margin-left:auto;color:var(--accent)}.modelFavorite{font-size:17px;padding:6px;color:var(--text-muted)}.modelFavorite[aria-pressed=true]{color:var(--accent)}.modelPanelSlide{animation:slideModels .15s ease-out}@keyframes slideModels{from{transform:translateX(10px);opacity:.4}to{transform:translateX(0);opacity:1}}.reasoningControl{border-top:1px solid var(--border);padding:12px 8px 6px;margin-top:7px}.reasoningLabel{display:flex;align-items:center;gap:5px;margin-bottom:10px}.reasoningLabel b{font-size:11px;font-weight:550}.reasoningLabel small{font-size:11px;color:var(--text-muted)}.reasoningTrack{--fill:50%;height:28px;border-radius:18px;position:relative;background:linear-gradient(to right,var(--accent) var(--fill),var(--user-bubble) var(--fill));padding:0 10px}.reasoningTrack input{appearance:none;width:100%;height:28px;padding:0;border:0;background:transparent;position:relative;z-index:2;margin:0;cursor:pointer}.reasoningTrack input::-webkit-slider-thumb{appearance:none;width:20px;height:20px;border-radius:50%;background:white;box-shadow:0 1px 6px #0003}.reasoningTrack input::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:white;box-shadow:0 1px 6px #0003;border:0}.reasoningDots{position:absolute;inset:0 10px;pointer-events:none}.reasoningDots span{position:absolute;top:12px;width:4px;height:4px;background:var(--text-muted);border-radius:50%;transform:translateX(-50%)}.reasoningNames{display:flex;justify-content:space-between;font-size:8px;color:var(--text-muted);margin:4px 4px 8px}.reasoningHint{display:block;font-size:12px;color:var(--text-muted);padding-top:3px}.loginLogo{width:100%;max-width:220px;height:auto;margin:0 0 24px}.loginDialog{width:380px;text-align:left;max-width:calc(100vw - 32px);padding:28px;border-radius:18px}.loginDialog h2{font-size:21px}.loginDialog input{font-size:21px;letter-spacing:1px;text-align:center;margin:8px 0}.loginDialog .status{color:var(--danger);margin:4px 0 12px}.sidebarSkeleton{height:32px;border-radius:7px;margin:7px 10px;background:var(--user-bubble);animation:pulse 1s ease-in-out infinite}.settingPreference{display:flex;align-items:center;gap:9px;font-size:12px;margin:12px 0}.menuItem a{color:inherit;text-decoration:none}

body.collapsed .new>span:last-child,body.collapsed .sideLabel,body.collapsed #history,body.collapsed .sideActions,body.collapsed .profileText,body.collapsed .profile>span:last-child{display:none}body.collapsed .new{justify-content:center;padding:12px 0}@media(max-width:760px){body.collapsed .new>span:last-child,body.collapsed .sideLabel,body.collapsed #history,body.collapsed .sideActions{display:block}body.collapsed .profileText{display:flex}body.collapsed .new{justify-content:flex-start;padding:12px}}

.logo-slot,.logo-group,.logo-row{overflow:visible}.logo-wide{max-width:100%;object-position:left center}:root[data-theme=dark] .logo-group img{filter:brightness(0) invert(1)}.logo-group{padding:0}.logo-row img{object-position:left center}

.providerMark img{width:20px;height:20px;object-fit:contain;border-radius:3px}.providerMark:has(img){background:transparent}

.reportFormats{display:flex;gap:6px;margin:10px 0;flex-wrap:wrap}.reportDownload{display:flex;align-items:center;gap:5px;padding:6px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text-muted);font-size:12px;cursor:pointer}.reportDownload:hover{color:var(--text);background:var(--user-bubble)}.reportDownload svg{width:14px;height:14px}.reportDownload:disabled{opacity:.5}

.providerLogo{display:block;width:20px;height:20px;background:var(--accent);mask-size:contain;mask-position:center;mask-repeat:no-repeat}.providerMark:has(.providerLogo){background:transparent}

/* Compact transparent BMC identity, centered as one group. */
.logo-slot{align-self:center;width:calc(100% - 16px);max-width:232px;margin:8px auto 18px;line-height:normal;overflow:visible}.logo-group.brand-lockup{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;width:100%;max-width:232px;padding:0;background:transparent;line-height:1.3}.brand-symbol{position:relative;display:block;flex:0 0 68px;width:68px;height:32px;overflow:hidden}.brand-symbol img{display:block;width:calc(32px * 1600 / 212);max-width:none;height:32px;object-fit:contain;position:absolute;left:0;top:0}.brand-copy{display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center;min-width:0;height:32px;gap:0}.brand-copy strong{display:block;font-size:15px;line-height:18px;letter-spacing:-.7px;font-weight:900;font-family:CenterBrand, sans-serif;font-synthesis:none;-webkit-text-stroke:0;white-space:nowrap;color:var(--text)}.brand-copy small{display:block;font-size:10.5px;line-height:12px;font-weight:600;letter-spacing:.35px;white-space:nowrap;color:var(--text-muted)}:root[data-theme=dark] .brand-lockup img{filter:none}body.collapsed .logo-group.brand-lockup{display:none}body.collapsed .logo-slot{width:28px;max-width:28px;margin:10px auto 12px}.app-icon img{display:block;width:28px;height:28px;border-radius:7px}@media(max-width:760px){.logo-slot{max-width:232px}body.collapsed .logo-slot{width:calc(100% - 16px);max-width:232px;margin:8px auto 18px}body.collapsed .logo-group.brand-lockup{display:flex}body.collapsed .app-icon{display:none}}

@font-face{font-family:CenterBrand;src:url(/assets/brand-bold.otf) format("opentype");font-weight:900;font-style:normal;font-display:swap}.loginNotice{font-size:11px;line-height:1.65;color:var(--text-muted);text-align:center;margin:12px 0 0}.loginNotice span{display:block;margin-top:3px}
/* Shared model typography and inline reasoning accordion. */
@font-face{font-family:Pretendard;src:url(/assets/pretendard-regular.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Pretendard;src:url(/assets/pretendard-semibold.woff2) format('woff2');font-weight:600;font-style:normal;font-display:swap}
.model-label{display:inline-flex;align-items:center;white-space:nowrap;max-width:100%;min-width:0;font-family:Pretendard,sans-serif;letter-spacing:-.01em;line-height:1;gap:0}
.model-label-name{font-size:14px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;min-width:0}
.model-label-dot{font-size:13px;font-weight:400;color:var(--text-muted);margin:0 4px;flex-shrink:0}
.model-label-level{font-size:13px;font-weight:400;color:var(--text-muted);flex-shrink:0}
.modelTrigger{display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 10px;border-radius:8px;line-height:1;max-width:100%}
.modelTrigger:hover{background:var(--user-bubble)}
.modelChevron{display:block;width:14px;height:14px;flex:0 0 14px;margin:0;color:var(--text-muted);fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform 180ms ease-out}
.modelTrigger[aria-expanded=true] .modelChevron{transform:rotate(180deg)}
.modelRow{min-width:0}.reasoningAccordion{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows 180ms ease-out,opacity 180ms ease-out}.reasoningAccordion.is-open{grid-template-rows:1fr;opacity:1}.reasoningAccordionInner{min-height:0;overflow:hidden}
.reasoningControl{border:0;background:var(--user-bubble);border-radius:10px;padding:12px;margin:4px 3px 8px;min-width:0}
.reasoningLabel{margin:0 0 12px;gap:0}
.reasoningTrack{height:28px;padding:0;border-radius:18px;background:linear-gradient(to right,var(--accent) var(--fill),var(--surface) var(--fill))}
.reasoningTrack input{position:absolute;inset:0;width:100%;height:28px;padding:0;margin:0;touch-action:pan-y}
.reasoningDots{position:absolute;inset:0 10px;pointer-events:none}
.reasoningDots span{top:12px;width:4px;height:4px}
.reasoningNames{position:relative;display:block;height:14px;margin:6px 10px 0;font-family:Pretendard,sans-serif;font-size:11px;line-height:14px;color:var(--text-muted)}
.reasoningNames span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.reasoningHint{font-family:Pretendard,sans-serif;font-size:13px;line-height:1.5;color:var(--text-muted);padding-top:9px}
@media(prefers-reduced-motion:reduce){.reasoningAccordion,.modelChevron{transition:none}}

.loginDialog p{letter-spacing:-.025em;word-break:break-all;overflow-wrap:anywhere;text-wrap:pretty;white-space:normal;overflow:visible;max-height:none}.loginNotice{font-size:11px;line-height:1.65;height:auto}.loginNotice span{letter-spacing:-.025em;word-break:break-all;overflow-wrap:anywhere;text-wrap:pretty}#registerStatus:empty{display:none}#registerStatus{height:auto;white-space:normal;word-break:break-all;overflow-wrap:anywhere;letter-spacing:-.025em}

.brand-lockup .brandVector{display:block;width:100%;height:32px;stroke:none;fill:none;color:var(--text);overflow:visible}.brandVector path{fill:currentColor;stroke:none}.brandVector .brandSubtitle{color:var(--text-muted)}
.modelPopover{max-height:min(var(--popover-room,calc(100dvh - 90px)),900px);overflow:hidden}.modelPanelBody{max-height:calc(var(--popover-room,100dvh - 90px) - 90px)}.modelSelectOption{padding:8px;gap:2px}.modelPopover.is-compact{width:280px;padding:12px;border-radius:16px}.modelPopover.is-compact .reasoningControl{margin:0;padding:12px 0 0;background:transparent}.modelPopover.is-compact .reasoningLabel{display:none}.compactHead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:0 2px}.compactHeading{min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:3px;flex:1}.compactLevel{font-family:Pretendard,sans-serif;font-size:16px;font-weight:600;line-height:1.2}.compactModel{font-family:Pretendard,sans-serif;font-size:12px;line-height:1.3;color:var(--text-muted);padding:2px 3px;max-width:100%;white-space:normal;word-break:break-all;letter-spacing:-.02em}.compactModel:hover{color:var(--text)}.compactReset{width:22px;height:22px;padding:3px;color:var(--text-muted)}.compactHead svg{width:16px;height:16px}.compactBolt{color:var(--text-muted);padding-top:3px}.modelPopover.is-compact .reasoningHint{font-size:12px}.modelPopover.is-compact .reasoningNames{font-size:10px}@media(max-height:700px){.modelSelectOption{padding:6px 8px}.modelSelectOption>small{font-size:9px}.modelFamily{padding:7px 8px}}

body{font-family:Pretendard,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}.welcome h1{font-family:Pretendard,sans-serif;font-weight:600;line-height:1.3;letter-spacing:-.035em;-webkit-text-stroke:0;text-shadow:none}.welcomeEyebrow{font-family:Pretendard,sans-serif;letter-spacing:-.025em;word-break:keep-all}.loginLogo{padding:0;background:transparent;border-radius:0}

.model-label-level{margin-left:6px}

.loginLogo{width:112px;max-width:100%;height:auto;background:transparent;padding:0}

.loginLogo{width:76px;margin-bottom:20px}
