*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#0b0d10;color:#f7f7f8}button,input,textarea,select{font:inherit}button,a{color:inherit}body{overflow:hidden}#app{height:100%;display:flex}.sidebar{width:276px;background:#111318;border-right:1px solid #20232a;display:flex;flex-direction:column;padding:12px;flex:none;z-index:30}.side-top{height:42px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-weight:750;letter-spacing:-.02em}.brand-mark{width:46px;height:46px;border-radius:15px;background:linear-gradient(135deg,#fff,#a8b0bd);color:#0b0d10;display:grid;place-items:center;font-weight:900;box-shadow:0 10px 40px #0008}.brand-mark.small{width:28px;height:28px;border-radius:9px;font-size:13px}.new-chat{width:100%;margin:10px 0 8px;border:1px solid #2a2e36;background:#171a20;border-radius:11px;padding:10px 11px;text-align:left;display:flex;gap:9px;align-items:center;cursor:pointer}.new-chat:hover,.side-link:hover,.chat-item:hover{background:#1d2027}.new-chat kbd{margin-left:auto;color:#777;font-size:10px;border:1px solid #333;padding:2px 5px;border-radius:5px}.side-search{display:flex;align-items:center;gap:6px;background:#0d0f13;border:1px solid #20242b;border-radius:10px;padding:7px 9px}.side-search input{width:100%;background:transparent;border:0;outline:0;color:#ddd;font-size:13px}.chat-list{overflow:auto;padding:8px 0;flex:1}.chat-item{display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;padding:8px 10px;border-radius:9px;color:#cfd3da;text-align:left;cursor:pointer;font-size:13px}.chat-item.active{background:#242830;color:#fff}.chat-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.chat-delete{opacity:0;border:0;background:transparent;cursor:pointer;color:#9aa0aa}.chat-item:hover .chat-delete{opacity:1}.side-bottom{border-top:1px solid #20232a;padding-top:9px}.side-link{display:block;text-decoration:none;border-radius:9px;padding:9px 10px;font-size:13px;color:#cfd3da}.profile{display:flex;gap:9px;align-items:center;padding:10px 7px 3px}.avatar{width:34px;height:34px;border-radius:10px;background:#303641;display:grid;place-items:center;font-weight:700}.profile-copy{min-width:0;flex:1}.profile-copy strong,.profile-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-copy strong{font-size:12px}.profile-copy span{font-size:10px;color:#777e89;margin-top:2px}.logout{text-decoration:none;color:#7b828d}.main{position:relative;flex:1;min-width:0;background:radial-gradient(circle at 50% -25%,#1b1f27 0,#0b0d10 35%);height:100%;display:flex;flex-direction:column}.topbar{height:58px;padding:0 18px;display:flex;justify-content:space-between;align-items:center;position:relative;z-index:20}.top-left{display:flex;align-items:center;gap:8px;position:relative}.model-picker,.icon-btn{border:0;background:transparent;cursor:pointer}.model-picker{font-weight:650;display:flex;gap:8px;align-items:center;padding:8px 10px;border-radius:9px}.model-picker:hover{background:#171a20}.model-menu{position:absolute;top:44px;left:0;background:#171a20;border:1px solid #2b3039;border-radius:14px;padding:6px;width:260px;box-shadow:0 20px 60px #0009}.model-menu button{display:block;width:100%;border:0;background:transparent;color:#eee;text-align:left;padding:10px;border-radius:10px;cursor:pointer}.model-menu button:hover{background:#232832}.model-menu small{display:block;color:#89919d;margin-top:3px}.usage-pill{font-size:11px;color:#a5abb4;border:1px solid #2a2f37;background:#12151a;padding:6px 9px;border-radius:999px}.conversation{flex:1;overflow:auto;padding-bottom:160px}.welcome{min-height:calc(100vh - 230px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px}.hero-logo{width:56px;height:56px;border-radius:18px;background:#f5f5f5;color:#101216;display:grid;place-items:center;font-weight:900;font-size:24px;box-shadow:0 15px 50px #0008;margin-bottom:17px}.welcome h1{font-size:30px;letter-spacing:-.04em;margin:0}.welcome p{color:#8e95a0;margin:9px 0 24px}.suggestions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:min(620px,100%)}.suggestions button{padding:13px 14px;border:1px solid #282d35;background:#12151a;border-radius:13px;color:#c9cdd4;text-align:left;cursor:pointer}.suggestions button:hover{background:#191d23}.messages{max-width:820px;margin:0 auto;padding:28px 24px}.msg{margin:0 0 30px}.msg-user{display:flex;justify-content:flex-end}.msg-user .bubble{max-width:78%;background:#22262d;border:1px solid #2b3039;padding:10px 14px;border-radius:18px 18px 4px 18px;white-space:pre-wrap}.msg-ai{display:grid;grid-template-columns:28px 1fr;gap:13px}.ai-dot{width:28px;height:28px;border-radius:9px;background:#eee;color:#111;display:grid;place-items:center;font-weight:900;font-size:12px}.ai-body{line-height:1.66;color:#e6e8eb;overflow-wrap:anywhere}.ai-body pre{background:#0d0f12;border:1px solid #252932;border-radius:12px;padding:14px;overflow:auto}.ai-body code{font-family:"SFMono-Regular",Consolas,monospace}.ai-body p:first-child{margin-top:0}.typing:after{content:"";display:inline-block;width:7px;height:15px;background:#eee;margin-left:2px;animation:blink 1s infinite;vertical-align:-2px}@keyframes blink{50%{opacity:0}}.composer-wrap{position:absolute;left:0;right:0;bottom:0;padding:10px 20px 13px;background:linear-gradient(transparent,#0b0d10 27%,#0b0d10)}.composer{max-width:820px;margin:0 auto;background:#171a20;border:1px solid #30353e;border-radius:20px;padding:10px 11px;box-shadow:0 20px 50px #0007}.composer:focus-within{border-color:#434a55}.composer textarea{display:block;width:100%;max-height:180px;resize:none;border:0;background:transparent;color:#f3f4f6;outline:0;padding:4px 5px 10px;line-height:1.5}.composer-bottom{display:flex;justify-content:space-between;align-items:center}.tools{display:flex;gap:5px}.tool-btn{height:31px;border:0;background:transparent;color:#a8afb9;border-radius:9px;padding:0 8px;display:flex;align-items:center;gap:5px;cursor:pointer;font-size:12px}.tool-btn:hover,.tool-btn.active{background:#292f38;color:#fff}.send-btn{width:34px;height:34px;border:0;border-radius:10px;background:#f5f5f5;color:#111;font-weight:900;cursor:pointer}.send-btn:disabled{opacity:.35}.composer-note{text-align:center;font-size:10px;color:#666d77;margin-top:7px}.attachment-tray{max-width:820px;margin:0 auto 7px;display:flex;gap:6px;overflow:auto}.attachment-chip{background:#181c22;border:1px solid #303640;border-radius:11px;padding:7px 9px;font-size:11px;display:flex;gap:6px;align-items:center}.attachment-chip button{border:0;background:transparent;color:#aaa;cursor:pointer}.hidden{display:none!important}.mobile-only{display:none}.auth-page{height:100%;overflow:auto;display:grid;place-items:center;background:radial-gradient(circle at 50% 20%,#242a35,#0a0c0f 45%);padding:25px}.auth-card{width:min(420px,100%);background:#11141a;border:1px solid #2c313a;border-radius:22px;padding:34px;box-shadow:0 30px 90px #0009}.auth-card .brand-mark{margin:auto}.auth-card h1{text-align:center;margin:16px 0 5px}.auth-card>p,.auth-card>small{text-align:center;color:#848c97;display:block;margin-bottom:23px}.auth-card label,.stack label{display:block;font-size:12px;color:#aab0b8;margin-bottom:13px}.auth-card input,.stack input,.stack select{margin-top:6px;width:100%;border:1px solid #303640;background:#0c0f13;color:#fff;border-radius:10px;padding:11px;outline:none}.btn{display:inline-block;border:1px solid #303640;background:#181c22;text-decoration:none;padding:10px 13px;border-radius:10px;cursor:pointer}.btn.primary{background:#f2f2f2;color:#111;border-color:#fff;font-weight:700}.btn.full{width:100%;text-align:center}.alert{border-radius:10px;padding:10px 12px;margin:10px 0 15px;font-size:13px}.alert.bad{background:#3a1719;border:1px solid #6c292d}.alert.good{background:#153424;border:1px solid #286044}.admin-page{overflow:auto;background:#0b0d10}.admin-shell{max-width:1300px;margin:0 auto;padding:30px}.admin-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.admin-head h1{font-size:36px;margin:25px 0 4px}.admin-head p{margin:0;color:#858d97}.admin-grid{display:grid;grid-template-columns:330px 1fr;gap:15px}.panel{background:#111419;border:1px solid #272c34;border-radius:18px;padding:20px}.panel h2{margin-top:0}.stack{display:flex;flex-direction:column}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th,td{padding:11px 8px;text-align:left;border-bottom:1px solid #23272e}td small{display:block;color:#818995;margin-top:3px}.status{font-size:10px;padding:4px 7px;border-radius:999px}.status.on{background:#163b27;color:#8ee0ac}.status.off{background:#3a2020;color:#e59a9a}.inline{display:flex;gap:5px}.mini-input{width:75px;border:1px solid #303640;background:#0d1014;color:#fff;border-radius:7px;padding:6px}.mini-btn{border:1px solid #303640;background:#181c22;color:#ddd;border-radius:7px;padding:6px 8px;cursor:pointer}
@media(max-width:800px){.sidebar{position:fixed;left:-290px;top:0;bottom:0;transition:.2s}.sidebar.open{left:0}.mobile-only{display:block}.usage-pill{display:none}.welcome{padding:25px}.suggestions{grid-template-columns:1fr}.messages{padding:22px 14px}.composer-wrap{padding-left:10px;padding-right:10px}.tool-btn span{display:none}.msg-user .bubble{max-width:88%}.admin-grid{grid-template-columns:1fr}.admin-head{gap:12px}.admin-shell{padding:16px}}


.v2{font-size:8px;letter-spacing:.12em;color:#6f7783;border:1px solid #2a3038;border-radius:5px;padding:2px 4px}
.workspace-nav{display:flex;flex-direction:column;gap:2px;margin:4px 0 9px}.nav-item{border:0;background:transparent;color:#aeb5bf;display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:9px;cursor:pointer;text-align:left}.nav-item:hover,.nav-item.active{background:#191d23;color:#fff}.section-label{font-size:9px;color:#5f6671;font-weight:750;letter-spacing:.12em;padding:11px 10px 3px}
.chat-glyph{width:18px;color:#858e9a}.chat-title{min-width:0}.picker-wrap{position:relative}.context-pill{border:1px solid #2d333c;background:#14181e;color:#cdd2d9;border-radius:999px;padding:6px 9px;display:flex;align-items:center;gap:6px;font-size:11px;cursor:pointer}.context-pill b{color:#737b86;font-weight:400}.top-actions{display:flex;align-items:center;gap:8px}.icon-action,.voice-btn{border:1px solid #2b3038;background:#14171c;color:#c9cfd7;border-radius:9px;height:32px;cursor:pointer}.icon-action{width:34px}.voice-btn{padding:0 10px;font-size:11px}.voice-btn:hover,.icon-action:hover{background:#20252c}
.welcome-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:min(680px,100%)}.welcome-grid button{position:relative;border:1px solid #282e36;background:linear-gradient(145deg,#13171c,#101318);color:#dce0e6;border-radius:16px;padding:16px;text-align:left;cursor:pointer;min-height:100px}.welcome-grid button:hover{transform:translateY(-1px);border-color:#3c444f;background:#181c22}.welcome-grid b,.welcome-grid small{display:block}.welcome-grid small{color:#777f8a;margin-top:5px;line-height:1.35}.card-icon{display:block;font-size:18px;margin-bottom:12px;color:#fff}
.modal-backdrop{position:fixed;inset:0;background:#0009;backdrop-filter:blur(8px);display:grid;place-items:center;z-index:80;padding:18px}.modal{width:min(760px,100%);max-height:min(760px,90vh);overflow:auto;background:#101318;border:1px solid #303640;border-radius:20px;box-shadow:0 40px 120px #000;padding:18px}.modal-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;padding:3px 4px 16px}.modal-head h2{margin:0;font-size:20px}.modal-head p{margin:5px 0 0;color:#7e8792;font-size:12px}.icon-btn{color:#aeb4bd;font-size:18px}.entity-grid{display:flex;flex-direction:column;gap:7px}.entity-card{border:1px solid #272d35;background:#15191f;border-radius:13px;padding:12px;display:grid;grid-template-columns:40px 1fr 20px;align-items:center;color:#fff;text-align:left;cursor:pointer}.entity-card:hover{background:#1d222a}.entity-icon{width:36px;height:36px;border-radius:10px;background:#242a32;display:grid;place-items:center}.entity-card b,.entity-card small{display:block}.entity-card small{color:#7f8792;margin-top:3px}.agent-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.agent-card{border:1px solid #292f37;background:#15191f;border-radius:15px;padding:16px;color:#fff;text-align:left;cursor:pointer}.agent-card:hover{background:#1c2128}.agent-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#f0f1f2;color:#111;font-weight:800;margin-bottom:15px}.agent-card b,.agent-card small{display:block}.agent-card small{color:#7f8792;min-height:34px;margin-top:5px}.agent-tools{display:flex;gap:4px;margin-top:12px}.agent-tools i,.tool-tag{font-style:normal;font-size:9px;border:1px solid #333a44;background:#20252c;color:#aeb6c1;border-radius:999px;padding:3px 6px}.tool-tags{display:flex;gap:4px;margin-top:8px}.generated-image{display:block;width:min(620px,100%);border-radius:16px;border:1px solid #2a3038;margin-top:12px}.empty-state{padding:30px;text-align:center;color:#747c87}
.voice-overlay{position:fixed;inset:0;background:radial-gradient(circle at 50% 40%,#222937,#080a0d 55%);z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center}.voice-orb{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;position:relative;background:#eef0f2;color:#111;box-shadow:0 0 100px #b7c7e333}.voice-c{font-size:42px;font-weight:900;z-index:2}.voice-wave{position:absolute;inset:-18px;border:1px solid #8996a955;border-radius:50%;animation:pulse 1.7s infinite}@keyframes pulse{50%{transform:scale(1.12);opacity:.25}}.voice-overlay h2{margin:34px 0 7px}.voice-overlay p{color:#89919c}.voice-stop{margin-top:25px;border:1px solid #633;background:#321619;color:#f0b8b8;border-radius:999px;padding:11px 18px;cursor:pointer}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:120;background:#f1f2f3;color:#111;padding:9px 13px;border-radius:999px;font-size:12px;box-shadow:0 12px 40px #0008}
.share-page{overflow:auto;background:#0b0d10}.share-shell{max-width:900px;margin:auto;padding:25px}.share-head{display:flex;justify-content:space-between;align-items:center}.share-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:45px}.share-meta span{font-size:10px;border:1px solid #2d333c;padding:5px 8px;border-radius:999px;color:#8f97a2}.share-shell h1{font-size:36px;letter-spacing:-.04em}.share-messages{padding-left:0;padding-right:0}
@media(max-width:800px){.welcome-grid,.agent-grid{grid-template-columns:1fr}.top-actions .voice-btn{font-size:0;width:34px}.top-actions .voice-btn:first-letter{font-size:12px}.context-pill{max-width:120px}.context-pill span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.share-shell h1{font-size:28px}}

.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.metric{background:linear-gradient(145deg,#13171c,#101318);border:1px solid #282e36;border-radius:16px;padding:18px}.metric small{color:#6f7782;font-size:9px;font-weight:750;letter-spacing:.08em}.metric b{display:block;font-size:27px;margin-top:10px;letter-spacing:-.04em}.admin-grid-v2{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stack textarea{margin-top:6px;width:100%;border:1px solid #303640;background:#0c0f13;color:#fff;border-radius:10px;padding:10px;resize:vertical}.stack select[multiple]{height:auto}.check{display:flex!important;align-items:center;gap:8px}.check input{width:auto!important;margin:0!important}.admin-section{margin-top:12px}.agent-card.static{cursor:default}.agent-card.static:hover{background:#15191f;transform:none}
@media(max-width:1000px){.metric-grid{grid-template-columns:1fr 1fr}.admin-grid-v2{grid-template-columns:1fr}}
@media(max-width:600px){.metric-grid{grid-template-columns:1fr}}

.entity-row{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:stretch}.knowledge-link{display:grid;place-items:center;text-decoration:none;border:1px solid #2b3139;background:#15191f;color:#9ea6b1;border-radius:12px;padding:0 12px;font-size:10px}.knowledge-link:hover{background:#20252c;color:#fff}


/* CRAS AI v3 */
body{background:#080a0e}.main{background:
radial-gradient(900px 450px at 50% -180px,rgba(84,104,146,.22),transparent 70%),
radial-gradient(700px 400px at 85% 10%,rgba(60,76,105,.08),transparent 70%),#090b0f}
.model-picker.premium{border:1px solid #2a3038;background:rgba(18,22,28,.78);backdrop-filter:blur(14px);padding:7px 11px}.model-dot{width:7px;height:7px;border-radius:50%;background:#dfe6ef;box-shadow:0 0 10px #fff8}
.hero-logo{position:relative;overflow:hidden;background:linear-gradient(135deg,#fff,#8793a7)}.hero-logo:after{content:"";position:absolute;inset:-40%;background:linear-gradient(90deg,transparent,#fff9,transparent);transform:rotate(35deg);animation:heroShine 5s infinite}@keyframes heroShine{0%,70%{left:-150%}100%{left:180%}}.hero-logo span{z-index:2}.eyebrow{font-size:9px;font-weight:800;letter-spacing:.2em;color:#697281;margin-bottom:10px}.welcome h1{font-size:38px}.welcome>p{max-width:690px;line-height:1.6}.v3-grid{grid-template-columns:repeat(3,1fr);width:min(850px,100%)}.v3-grid button{min-height:118px}
.mode-banner{max-width:820px;margin:0 auto 6px;font-size:9px;letter-spacing:.12em;color:#9ba7b7;padding:0 8px}.composer{background:rgba(20,24,30,.92);backdrop-filter:blur(20px);border-color:#343b46;box-shadow:0 20px 60px #0009}.composer textarea{font-size:15px}.tool-btn.round{border:1px solid #303742;border-radius:50%;width:31px;padding:0;justify-content:center}.send-btn{border-radius:50%;width:35px;height:35px}
.answer-shell{min-width:0}.answer-top{font-size:9px;color:#69727e;text-transform:uppercase;letter-spacing:.09em;margin:1px 0 7px}.ai-body{font-size:14.5px}.ai-body h1,.ai-body h2,.ai-body h3{letter-spacing:-.025em}.ai-body pre{padding:0}.code-head{display:flex;justify-content:space-between;align-items:center;padding:8px 11px;border-bottom:1px solid #252a32;color:#7d8794;font-size:10px}.copy-code{border:0;background:transparent;color:#9da6b3;cursor:pointer}.ai-body pre code{display:block;padding:15px;white-space:pre;overflow:auto}.sources{margin-top:14px;border-top:1px solid #20252d;padding-top:10px;display:flex;flex-wrap:wrap;gap:6px}.sources-label{width:100%;font-size:8px;letter-spacing:.12em;color:#68717c}.sources a,.sources span{font-size:10px;color:#aab4c2;border:1px solid #29313a;background:#12171d;border-radius:8px;padding:5px 7px;text-decoration:none;max-width:100%;overflow:hidden;text-overflow:ellipsis}.sources a:hover{border-color:#46515f;color:#fff}.fallback-note{margin-top:10px;font-size:9px;color:#8893a0;background:#12161c;border-left:2px solid #66758a;padding:7px 9px;border-radius:4px}.runtime-status,.research-progress{display:flex;align-items:center;gap:8px;color:#8d97a4;font-size:12px}.spinner{width:12px;height:12px;border-radius:50%;border:2px solid #3b424d;border-top-color:#d8dde4;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-answer{border:1px solid #5a2b31;background:#241216;border-radius:12px;padding:12px}.error-answer b{color:#f0b7be}.error-answer p{margin:5px 0;color:#d6a4aa}.error-answer small{color:#866f74}
.modal-large{width:min(900px,96vw)}.model-auto-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.model-auto-row button{border:1px solid #2b323c;background:linear-gradient(145deg,#171c23,#11151b);color:#fff;border-radius:13px;padding:12px;text-align:left;cursor:pointer}.model-auto-row b,.model-auto-row small{display:block}.model-auto-row small{color:#75808d;margin-top:4px}.model-search input{width:100%;border:1px solid #2b323c;background:#0b0e12;color:#fff;border-radius:11px;padding:11px;margin-bottom:14px}.model-group{margin:14px 0}.model-group h3{font-size:10px;color:#7b8490;letter-spacing:.12em}.model-group h3 span{color:#4f5761}.model-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}.model-row{border:1px solid #252c35;background:#12161c;color:#fff;border-radius:11px;padding:10px;display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer;gap:8px}.model-row:hover{background:#1a2028;border-color:#39424e}.model-row b,.model-row small{display:block}.model-row b{font-size:12px}.model-row small{font-size:9px;color:#6d7681;margin-top:3px}.model-row>span{font-size:8px;color:#59616c;text-transform:uppercase}
.studio-tabs{display:flex;gap:5px;margin-bottom:15px}.studio-tabs button{border:1px solid #2d343e;background:#15191f;color:#bbc2cb;border-radius:9px;padding:8px 10px;cursor:pointer}.studio-form{display:flex;flex-direction:column;gap:11px}.studio-form label{font-size:11px;color:#8f98a4}.studio-form input,.studio-form textarea,.studio-form select{display:block;width:100%;margin-top:5px;border:1px solid #303844;background:#0c1015;color:#fff;border-radius:10px;padding:10px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.result-card,.loading-card{margin-top:14px;border:1px solid #2a323c;background:#11161c;border-radius:13px;padding:14px}.result-card textarea{width:100%;height:240px;background:#090c10;color:#dce1e7;border:1px solid #29313a;border-radius:9px;padding:10px;margin:8px 0}.result-card audio,.result-card video{width:100%;max-height:520px;margin-bottom:10px}.progress{height:7px;background:#090c10;border-radius:999px;overflow:hidden;margin:9px 0}.progress i{display:block;height:100%;background:#cbd3de}
@media(max-width:900px){.v3-grid{grid-template-columns:1fr 1fr}.model-list{grid-template-columns:1fr}}
@media(max-width:600px){.v3-grid,.model-auto-row{grid-template-columns:1fr}.welcome h1{font-size:30px}.tool-btn span{display:none}.model-picker.premium{max-width:155px}.model-picker.premium #modelLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.form-row{grid-template-columns:1fr}}

.admin-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.admin-head-actions form{margin:0}

/* ===================================================================
   CRAS AI v4 — ChatGPT-style interaction shell
   =================================================================== */
body.v4{--bg:#212121;--sidebar:#171717;--sidebar-hover:#212121;--panel:#2f2f2f;--panel2:#303030;--line:#424242;--text:#ececec;--muted:#a6a6a6;background:var(--bg);color:var(--text)}
.v4 #app{background:var(--bg)}
.v4 .sidebar{width:260px;background:var(--sidebar);border-right:0;padding:8px 10px}
.sidebar-header{height:40px;display:flex;align-items:center;justify-content:space-between;padding:0 3px}
.brand-button{border:0;background:transparent;color:#ececec;display:flex;align-items:center;gap:9px;font-weight:600;cursor:pointer;padding:6px;border-radius:8px}
.brand-button:hover{background:#222}.cras-glyph{width:25px;height:25px;border-radius:7px;background:#fff;color:#171717;display:grid;place-items:center;font-weight:900}
.sidebar-icon{border:0;background:transparent;color:#cfcfcf;cursor:pointer;border-radius:8px;padding:7px}.sidebar-icon:hover{background:#2a2a2a}
.new-chat-v4,.side-action{width:100%;border:0;background:transparent;color:#e7e7e7;display:flex;align-items:center;gap:10px;border-radius:8px;padding:9px 10px;cursor:pointer;text-align:left;font-size:13px}
.new-chat-v4:hover,.side-action:hover{background:#252525}.new-icon{font-size:18px;width:20px}.side-action kbd{margin-left:auto;background:transparent;border:0;color:#686868;font-size:10px}
.side-main-nav{margin-top:4px}.history-title{padding:18px 10px 6px;color:#8b8b8b;font-size:11px;font-weight:600}
.v4 .chat-list{padding:0;overflow:auto}.chat-row{display:flex;align-items:center;border-radius:8px;position:relative}.chat-row:hover,.chat-row.active{background:#252525}.chat-open{flex:1;min-width:0;border:0;background:transparent;color:#d9d9d9;text-align:left;padding:8px 8px 8px 10px;cursor:pointer}.chat-open span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px}.chat-menu-btn{opacity:0;border:0;background:transparent;color:#999;cursor:pointer;padding:7px}.chat-row:hover .chat-menu-btn{opacity:1}
.admin-link{text-decoration:none}.profile-v4{width:100%;border:0;border-top:1px solid #2a2a2a;background:transparent;color:#fff;display:grid;grid-template-columns:32px 1fr 28px;gap:9px;align-items:center;text-align:left;padding:11px 6px 4px;cursor:pointer}.profile-v4 strong,.profile-v4 small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-v4 strong{font-size:12px}.profile-v4 small{font-size:10px;color:#8e8e8e}.profile-more{color:#858585}
.v4 .main{background:var(--bg);background-image:none}.v4-topbar{height:56px;background:rgba(33,33,33,.92);backdrop-filter:blur(14px);padding:0 14px}.model-picker-v4{border:0;background:transparent;color:#ececec;padding:8px 10px;border-radius:9px;font-weight:600;cursor:pointer;font-size:14px}.model-picker-v4:hover{background:#2b2b2b}.chev{color:#9c9c9c;margin-left:5px}.top-text-btn,.top-round-btn{border:0;background:transparent;color:#dedede;cursor:pointer;border-radius:9px}.top-text-btn{padding:8px 10px}.top-text-btn:hover,.top-round-btn:hover{background:#2d2d2d}.top-round-btn{width:34px;height:34px}.v4 .usage-pill{background:transparent;border-color:#3b3b3b;color:#999}
.v4 .conversation{padding-bottom:150px}.v4-welcome{min-height:calc(100vh - 230px);padding:20px}.welcome-mark{width:34px;height:34px;border-radius:10px;background:#fff;color:#111;display:grid;place-items:center;font-weight:900;margin-bottom:19px}.v4-welcome h1{font-size:28px;font-weight:600;letter-spacing:-.03em}.v4-welcome p,.v4-welcome .eyebrow,.v4-welcome .welcome-grid{display:none}
.v4-messages{max-width:768px;padding:24px 20px 30px}.v4 .msg{margin-bottom:28px}.v4 .msg-user{justify-content:flex-end}.user-stack{max-width:82%;display:flex;flex-direction:column;align-items:flex-end}.v4 .msg-user .bubble{max-width:100%;background:#303030;border:0;padding:10px 15px;border-radius:18px;line-height:1.5;font-size:14px}.v4 .msg-ai{grid-template-columns:26px 1fr;gap:12px}.v4 .ai-dot{width:25px;height:25px;border-radius:7px;background:#fff;color:#171717;font-size:11px}.v4 .ai-body{font-size:14.5px;line-height:1.72;color:#ececec}.v4 .ai-body pre{background:#171717;border-color:#383838}.v4 .answer-top{display:none}
.message-actions{display:flex;gap:2px;min-height:27px;margin-top:7px;opacity:.7}.message-actions button{border:0;background:transparent;color:#919191;border-radius:7px;width:29px;height:27px;cursor:pointer}.message-actions button:hover{background:#2f2f2f;color:#ddd}.user-actions{justify-content:flex-end;opacity:0}.msg-user:hover .user-actions{opacity:.7}
.v4 .sources{border-top:0;padding-top:5px}.v4 .sources-label{font-size:10px;text-transform:none;letter-spacing:0;color:#8e8e8e}.v4 .sources a,.v4 .source-chip{border:1px solid #414141;background:#292929;border-radius:12px;padding:6px 9px}
.v4-composer-wrap{padding:8px 18px 12px;background:linear-gradient(transparent,var(--bg) 24%,var(--bg))}.v4-composer{max-width:768px;border:1px solid #484848;background:#303030;border-radius:26px;padding:10px 11px 8px;box-shadow:none}.v4-composer:focus-within{border-color:#555}.v4-composer textarea{padding:5px 7px 12px;font-size:15px;line-height:1.5}.composer-left,.composer-right{display:flex;align-items:center;gap:5px}.plus-btn,.mic-btn{border:0;background:transparent;color:#c5c5c5;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:20px}.plus-btn:hover,.mic-btn:hover{background:#3b3b3b}.mic-btn{font-size:16px}.v4-send{width:32px;height:32px;border-radius:50%;background:#fff;color:#222}.v4 .composer-note{color:#777;font-size:10px}
.active-tool-chip{border:1px solid #555;background:#373737;color:#e6e6e6;border-radius:999px;padding:6px 9px;font-size:11px;cursor:pointer}.active-tool-chip:hover{background:#414141}
.tools-popover{position:absolute;bottom:105px;left:max(18px,calc(50% - 384px));width:310px;background:#2b2b2b;border:1px solid #444;border-radius:15px;padding:6px;box-shadow:0 16px 50px #0008;z-index:60}.tools-popover button{width:100%;border:0;background:transparent;color:#eee;display:grid;grid-template-columns:32px 1fr;gap:8px;text-align:left;padding:9px;border-radius:10px;cursor:pointer}.tools-popover button:hover{background:#383838}.tools-popover button>span{width:30px;height:30px;display:grid;place-items:center}.tools-popover b,.tools-popover small{display:block}.tools-popover b{font-size:12px}.tools-popover small{font-size:10px;color:#999;margin-top:3px}
.attachment-tray{max-width:768px}.attachment-chip{background:#2c2c2c;border-color:#454545;border-radius:13px;padding:8px 10px}.attachment-chip div b,.attachment-chip div small{display:block}.attachment-chip div b{font-size:10px}.attachment-chip div small{font-size:9px;color:#888}
.thinking-line{display:flex;align-items:center;gap:9px;color:#a8a8a8}.thinking-dots{display:flex;gap:3px}.thinking-dots i{width:5px;height:5px;border-radius:50%;background:#aaa;animation:thinkingDot 1.2s infinite}.thinking-dots i:nth-child(2){animation-delay:.15s}.thinking-dots i:nth-child(3){animation-delay:.3s}@keyframes thinkingDot{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}.partial-output:not(:empty){margin-top:0}.thinking-line.hidden+.partial-output{margin-top:0}
.error-card{border:0;background:transparent;padding:0;color:#dedede}.error-card b{color:#e7a2a2}.error-card p{color:#b7b7b7}.error-card button{border:1px solid #4a4a4a;background:#2c2c2c;color:#ddd;border-radius:8px;padding:7px 10px;cursor:pointer}
.mini-popover{position:fixed;width:165px;background:#2b2b2b;border:1px solid #444;border-radius:10px;padding:5px;z-index:100;box-shadow:0 12px 40px #0008}.mini-popover button{width:100%;border:0;background:transparent;color:#ddd;padding:8px 9px;text-align:left;border-radius:7px;cursor:pointer}.mini-popover button:hover{background:#393939}.mini-popover .danger{color:#f0a2a2}
.search-results{display:flex;flex-direction:column;gap:3px;max-height:500px;overflow:auto}.search-result{border:0;background:transparent;color:#ddd;text-align:left;padding:10px;border-radius:8px;cursor:pointer}.search-result:hover{background:#333}
.v4 .modal{background:#282828;border-color:#444}.v4 .modal-backdrop{background:#0007}.v4 .model-row,.v4 .model-auto-row button,.v4 .agent-card,.v4 .entity-card{background:#303030;border-color:#444}.v4 .model-row:hover,.v4 .agent-card:hover,.v4 .entity-card:hover{background:#393939}
@media(max-width:800px){.v4 .sidebar{width:270px;left:-285px}.v4-messages{padding-left:13px;padding-right:13px}.v4-composer-wrap{padding-left:9px;padding-right:9px}.tools-popover{left:9px;right:9px;width:auto}.top-text-btn span{display:none}.user-stack{max-width:90%}}

/* CRAS AI v4.1 */
.history-group-label{padding:15px 9px 5px;color:#777;font-size:10px;font-weight:600;user-select:none}
.edit-message-box{width:min(620px,80vw);background:#303030;border-radius:18px;padding:10px}
.edit-message-box textarea{width:100%;min-height:95px;max-height:280px;resize:vertical;border:0;outline:0;background:transparent;color:#eee;font:inherit;line-height:1.5;padding:5px}
.edit-message-box>div{display:flex;justify-content:flex-end;gap:7px}
.edit-message-box button{border:1px solid #4a4a4a;background:#292929;color:#ddd;border-radius:999px;padding:7px 12px;cursor:pointer}
.edit-message-box .save-edit{background:#fff;color:#222;border-color:#fff;font-weight:600}
.edit-message-box button:disabled{opacity:.4}
.msg-user[data-message-id]:hover .user-actions{opacity:.75}
.pending-job .answer-shell{min-height:34px}
body.v4 .conversation{scrollbar-color:#555 transparent}
body.v4 .chat-list{scrollbar-width:thin;scrollbar-color:#3a3a3a transparent}

/* CRAS AI v4.2 */
.chat-mode-icon{display:inline-block;width:16px;color:#8a8a8a}.temporary-btn{border:0;background:transparent;color:#aaa;padding:7px 9px;border-radius:9px;cursor:pointer}.temporary-btn:hover,.temporary-btn.active{background:#303030;color:#fff}.notification-btn{position:relative}.notification-dot{position:absolute;width:7px;height:7px;background:#fff;border:2px solid #212121;border-radius:50%;right:4px;top:4px}.side-badge{margin-left:auto;min-width:17px;height:17px;padding:0 5px;border-radius:999px;background:#343434;color:#bbb;display:grid;place-items:center;font-size:9px}.project-picker-row{display:grid;grid-template-columns:1fr 34px;gap:5px}.project-picker-row>a{display:grid;place-items:center;color:#999;text-decoration:none;border-radius:8px}.project-picker-row>a:hover{background:#353535}.settings-tabs{display:flex;flex-direction:column;gap:19px}.settings-tabs section{border-bottom:1px solid #3c3c3c;padding-bottom:16px}.settings-tabs h3{margin:0 0 12px;font-size:13px}.settings-tabs label{display:block;margin:10px 0;color:#ccc;font-size:12px}.settings-tabs textarea,.settings-tabs select,.settings-tabs input[type=text],.memory-add input{width:100%;background:#202020;border:1px solid #464646;border-radius:9px;color:#eee;padding:9px;margin-top:6px}.switch-row{display:flex!important;justify-content:space-between;align-items:center}.memory-list{display:flex;flex-direction:column;gap:5px}.memory-list>div{display:flex;gap:8px;align-items:center;padding:8px;border-radius:9px;background:#303030}.memory-list span{flex:1;font-size:11px}.memory-list button{border:0;background:transparent;color:#999;cursor:pointer}.memory-add{display:flex;gap:6px;margin-top:8px}.memory-add button{border:0;border-radius:8px;padding:0 12px}.notification-list{display:flex;flex-direction:column;gap:3px;max-height:520px;overflow:auto;margin-bottom:12px}.notification-list a{display:grid;grid-template-columns:28px 1fr;gap:7px;text-decoration:none;color:#eee;padding:10px;border-radius:9px;background:#303030}.notification-list a.read{opacity:.55}.notification-list b,.notification-list p,.notification-list small{display:block;margin:0}.notification-list p{font-size:11px;color:#aaa;margin:3px 0}.notification-list small{font-size:9px;color:#777}.task-create{border:1px solid #444;border-radius:13px;padding:12px;margin-bottom:14px}.task-create input,.task-create textarea,.task-create select{width:100%;background:#202020;border:1px solid #464646;color:#eee;border-radius:8px;padding:8px;margin-bottom:7px}.task-list{display:flex;flex-direction:column;gap:5px}.task-list>div{display:flex;align-items:center;gap:6px;background:#303030;padding:9px;border-radius:9px}.task-list section{flex:1}.task-list b,.task-list small{display:block}.task-list small{font-size:9px;color:#888;margin-top:3px}.task-list button{border:0;background:#242424;color:#aaa;border-radius:7px;padding:6px 8px;cursor:pointer}.work-new{width:100%;display:grid;grid-template-columns:42px 1fr;gap:9px;text-align:left;background:#303030;border:1px solid #444;color:#fff;border-radius:14px;padding:13px;cursor:pointer}.work-new>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#fff;color:#111}.work-new b,.work-new small{display:block}.work-new small{color:#999;margin-top:4px}.work-list{display:flex;flex-direction:column;gap:4px;margin-top:12px}.work-list button{border:0;background:transparent;color:#ddd;text-align:left;padding:9px;border-radius:8px;cursor:pointer}.work-list button:hover{background:#333}.work-list b,.work-list small{display:block}.work-list small{font-size:9px;color:#777}.profile-popover{position:fixed;width:220px;background:#2b2b2b;border:1px solid #444;border-radius:11px;padding:5px;z-index:100}.profile-popover button,.profile-popover a{display:block;width:100%;border:0;background:transparent;text-align:left;color:#ddd;text-decoration:none;padding:9px;border-radius:7px;cursor:pointer}.profile-popover button:hover,.profile-popover a:hover{background:#3a3a3a}.dragging-file:after{content:"Ispusti datoteke za upload";position:fixed;inset:15px;border:2px dashed #8c8c8c;background:#171717dd;z-index:200;display:grid;place-items:center;border-radius:20px;font-size:24px;color:#ddd}.studio-launch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.studio-launch-grid button{border:1px solid #444;background:#303030;color:#eee;border-radius:13px;padding:20px;cursor:pointer}.studio-launch-grid b{display:block;margin-top:9px}
/* project workspace */
.project-page{background:#212121;color:#ececec;overflow:auto}.project-shell{max-width:1120px;margin:auto;padding:24px}.project-top{display:flex;align-items:center;gap:20px}.project-back{color:#aaa;text-decoration:none}.project-title{display:flex;align-items:center;gap:12px;flex:1}.project-title>span{width:45px;height:45px;border-radius:12px;background:#333;display:grid;place-items:center;font-size:21px}.project-title h1{font-size:24px;margin:0}.project-title p{color:#999;margin:3px 0 0}.project-tabs{display:flex;gap:18px;border-bottom:1px solid #3a3a3a;margin-top:28px}.project-tabs a{color:#999;text-decoration:none;padding:11px 2px;border-bottom:2px solid transparent}.project-tabs a.active{color:#fff;border-color:#fff}.project-content{padding:25px 0}.project-section-head h2{margin:0}.project-section-head p{color:#888}.project-chat-list,.project-files,.member-list{display:flex;flex-direction:column;gap:5px}.project-chat-list>a{display:grid;grid-template-columns:28px 1fr 20px;gap:8px;text-decoration:none;color:#eee;padding:11px;border-radius:10px}.project-chat-list>a:hover{background:#2e2e2e}.project-chat-list b,.project-chat-list small,.project-files b,.project-files small,.member-list b,.member-list small{display:block}.project-chat-list small,.project-files small,.member-list small{font-size:9px;color:#777;margin-top:3px}.project-upload{display:flex;gap:8px;background:#2b2b2b;padding:12px;border-radius:12px;margin:14px 0}.project-upload input{flex:1}.project-files>div,.member-list>div{display:flex;gap:10px;align-items:center;padding:10px;border-bottom:1px solid #343434}.project-files section,.member-list section{flex:1}.member-list i{font-size:10px;color:#888}.settings-form{max-width:760px}.settings-form label{display:block;margin-bottom:17px;color:#aaa}.settings-form textarea,.settings-form select{display:block;width:100%;background:#292929;border:1px solid #444;color:#eee;border-radius:10px;padding:10px;margin-top:6px}.settings-form small{display:block;color:#777;margin-top:5px}
/* light theme */
html[data-theme="light"] body.v4,html[data-theme="light"] .v4 .main{--bg:#fff;--sidebar:#f9f9f9;--text:#171717;background:#fff;color:#171717}html[data-theme="light"] .v4 .sidebar{background:#f7f7f7}html[data-theme="light"] .v4-topbar{background:#fffffff0}html[data-theme="light"] .v4-composer{background:#f4f4f4;border-color:#ddd}html[data-theme="light"] .v4 .msg-user .bubble{background:#f4f4f4;color:#171717}html[data-theme="light"] .v4 .ai-body{color:#171717}html[data-theme="light"] .brand-button,html[data-theme="light"] .side-action,html[data-theme="light"] .new-chat-v4,html[data-theme="light"] .model-picker-v4{color:#222}html[data-theme="light"] .chat-row:hover,html[data-theme="light"] .chat-row.active{background:#ececec}
@media(max-width:700px){.temporary-btn span{display:none}.project-shell{padding:14px}.project-top{align-items:flex-start;flex-wrap:wrap}.studio-launch-grid{grid-template-columns:1fr}}

.studio-launch-grid.five{grid-template-columns:repeat(5,1fr)}.studio-launch-grid small{display:block;color:#888;font-size:9px;margin-top:4px}@media(max-width:850px){.studio-launch-grid.five{grid-template-columns:1fr 1fr}}
