:root{color-scheme:dark;--bg:#101822;--surface:#151f2b;--raised:#1b2836;--line:#2b3947;--text:#e4ebf1;--muted:#99a9b8;--accent:#a5c7df;--accent-dark:#142a3c;--danger:#e9a8a8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.55}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}.shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;border-right:1px solid var(--line);padding:28px 18px 20px;display:flex;flex-direction:column;background:#111a24}.brand{display:flex;align-items:center;gap:12px;font-weight:650;letter-spacing:-.8px;font-size:25px;padding:0 8px;margin-bottom:38px}.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.15px;font-weight:400;margin-top:0}.accent{color:var(--accent)}nav{display:flex;flex-direction:column;gap:7px}.nav-button{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:12px 15px;border:1px solid transparent;border-radius:10px;background:none;color:var(--muted)}.nav-button span{font-size:20px;width:21px;text-align:center;line-height:1}.nav-button:hover{color:var(--text);background:#18232f}.nav-button.active{border-color:#354858;color:var(--text);background:#213142}.sidebar-bottom{margin-top:auto;display:grid;gap:12px;padding:20px 10px 0;font-size:12px;color:var(--muted)}.sidebar-bottom a{display:flex;justify-content:space-between}.sidebar-bottom a:hover{color:var(--text)}.sidebar-footnote{font-size:10px;margin-top:12px;color:#748697}.workspace{min-width:0}.topbar{height:96px;padding:22px 40px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}h1,h2,h3,p{margin-top:0}h1{font-size:21px;letter-spacing:-.5px;font-weight:550;line-height:1.2;margin:0}h2{font-size:26px;line-height:1.25;letter-spacing:-.8px;font-weight:550;margin-bottom:9px}h3{font-size:16px;font-weight:600;margin-bottom:9px}p{margin-bottom:16px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:var(--muted);font-weight:650;margin-bottom:6px}.account{display:flex;gap:9px;align-items:center;color:var(--muted);font-size:12px}.avatar{width:34px;height:34px;display:grid;place-items:center;border:1px solid #465a6b;border-radius:50%;background:#223244;color:var(--accent);margin-left:4px;font-weight:650}.connection-dot{width:6px;height:6px;border-radius:50%;background:#6c8091}.connected .connection-dot{background:#9ac7b2}main{max-width:1240px;margin:auto;padding:30px 40px 36px}.tab-panel{min-width:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}.section-heading p:last-child{color:var(--muted);margin-bottom:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:42px;padding:10px 17px;border-radius:8px;border:1px solid transparent;font-size:13px;font-weight:600;white-space:nowrap}.primary{background:var(--accent);color:#162332;border-color:var(--accent)}.primary:hover{background:#c0d7e7}.subtle{background:#1d2b38;color:var(--text);border-color:#3a4b59}.subtle:hover{background:#263748}.danger{color:var(--danger);background:#35292e;border-color:#62454c}.text-button{border:0;background:none;padding:6px 0;color:var(--muted);font-size:12px;text-align:inherit}.text-button:hover{color:var(--accent)}input,textarea,select{border:1px solid #374654;background:#101a25;color:var(--text);border-radius:8px;padding:11px 13px;min-width:0}input::placeholder,textarea::placeholder{color:#778b9d}input,textarea{width:100%}textarea{resize:vertical;line-height:1.6}label{display:block;font-size:12px;font-weight:550;margin:12px 0 7px}label:first-child{margin-top:0}select{font-size:12px;max-width:100%}.card{padding:23px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin-bottom:18px}.muted{color:var(--muted)}.small{font-size:12px}.badge{display:inline-flex;padding:3px 9px;border:1px solid #455768;border-radius:6px;color:#b1c5d7;background:#20303e;font-size:10px;font-weight:600;letter-spacing:.25px}.row-between{display:flex;align-items:center;justify-content:space-between;gap:16px}.row-between h3,.row-between p{margin-bottom:4px}.notice{max-width:1160px;margin:16px 40px 0;padding:12px 16px;border:1px solid #566572;background:#263746;border-radius:8px;font-size:13px;overflow-wrap:anywhere}.notice.error{border-color:#715459;background:#35292e;color:#f0c2c2}.login-panel{max-width:470px;margin:9vh auto 3vh;text-align:center}.login-panel img{margin-bottom:30px}.login-panel h2{font-size:34px;margin:12px 0 18px}.login-panel p:not(.eyebrow){color:var(--muted);font-size:15px;line-height:1.8}.login-panel .button{margin-top:15px;min-width:240px}.login-panel .text-button{display:block;margin:15px auto}.chat-panel{max-width:890px;margin:auto;display:flex;flex-direction:column;min-height:calc(100dvh - 162px)}.chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px}.chat-toolbar select{background:#1a2836;padding:8px 12px;border-color:#394c5d;max-width:75%}.model-note{font-size:11px;color:#899eaf;margin:10px 1px 0;line-height:1.5}.messages{flex:1;padding:26px 0 32px;min-height:300px;max-height:calc(100dvh - 350px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#4a5d6f transparent}.chat-welcome{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px}.welcome-mark{width:60px;height:60px;display:grid;place-content:center;grid-auto-flow:column;gap:1px;border:1px solid #466076;border-radius:20px;background:linear-gradient(140deg,#293e51,#162332);font-size:31px;font-weight:650;color:#c7dcea;box-shadow:0 8px 24px #0002;margin-bottom:24px}.welcome-mark span{color:#8daec7}.chat-welcome h2{font-size:29px}.chat-welcome p{font-size:13px;color:var(--muted);max-width:360px}.suggestions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:13px}.suggestions button{padding:9px 13px;background:#17232f;border:1px solid #364856;color:#b5c6d5;border-radius:8px;font-size:11px}.suggestions button:hover{border-color:#7795aa;background:#203040}.message{margin:0 0 22px;display:flex;flex-direction:column;align-items:flex-start;max-width:92%}.message.user{align-items:flex-end;margin-left:auto}.message-label{font-size:10px;font-weight:600;letter-spacing:.4px;color:#99aebf;margin-bottom:6px}.message-content{padding:13px 17px;background:#1b2a38;border:1px solid #2c4152;border-radius:3px 12px 12px 12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.75}.message.user .message-content{background:#263746;border-color:#3c5365;border-radius:12px 3px 12px 12px}.message.pending .message-content{color:var(--muted)}.message.error .message-content{color:#efbdbd;border-color:#694c53}.composer{padding:14px 16px 11px;border:1px solid #43576a;background:#172431;border-radius:13px;box-shadow:0 5px 22px #0001}.composer textarea{background:transparent;border:0;padding:4px 1px;min-height:58px;max-height:180px;resize:none;outline-offset:2px}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:7px}.composer-bottom>span{font-size:10px;color:#7f94a5}.composer .button{min-height:35px;padding:7px 13px;font-size:11px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:8px}.stat-label{font-size:11px;color:var(--muted);margin-bottom:7px}.stat-value{font-size:29px;letter-spacing:-1px;font-weight:550;margin-bottom:7px}.stat-detail{font-size:11px;color:#9bb0c1;overflow-wrap:anywhere}.technical summary{cursor:pointer;font-size:13px;color:var(--muted)}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.7;color:#b7c7d5}.bounded-output{max-height:300px;overflow:auto}.memory-compose textarea{margin-bottom:12px}.memory-list{display:grid;gap:12px}.memory-card{padding:19px 21px;border:1px solid var(--line);border-radius:10px;background:#141f2b}.memory-card p{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:9px}.memory-card .memory-meta{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}.empty-state{color:var(--muted);padding:26px;border:1px dashed #3a4c5c;border-radius:10px;text-align:center}.path-form{display:flex;gap:10px;margin-bottom:18px}.path-form input{font-family:ui-monospace,monospace;font-size:12px}.file-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.5fr);gap:18px}.file-browser{padding:18px 15px}.file-browser h3{font-size:13px}.file-list{margin-top:14px;max-height:500px;overflow:auto}.file-entry{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:10px 9px;text-align:left;border:0;border-radius:6px;background:none;color:var(--text);width:100%;font-size:12px;overflow-wrap:anywhere}.file-entry:hover{background:#243646}.file-entry .file-name{display:flex;gap:9px;min-width:0}.file-entry .file-name span{overflow-wrap:anywhere}.file-entry small{color:var(--muted);white-space:nowrap;font-size:10px}.editor{padding:20px}.editor textarea{font-family:ui-monospace,monospace;font-size:12px;min-height:280px;margin-bottom:14px;tab-size:2}.editor input{font-family:ui-monospace,monospace;font-size:11px}.training-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.training-layout .badge{margin-bottom:12px}.training-layout h3{margin-bottom:10px}.training-layout p{font-size:12px;line-height:1.7}.training-layout input[type=file]{font-size:11px;padding:10px}.training-layout input[type=number]{max-width:130px}.training-layout .button{margin-top:8px}.training-log{max-height:380px;min-height:150px;overflow:auto;padding:14px;background:#0e1822;border:1px solid var(--line);border-radius:8px}dialog{width:min(600px,calc(100% - 28px));max-height:85dvh;overflow:auto;background:#182431;color:var(--text);border:1px solid #4f6679;border-radius:14px;padding:26px;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#07111bcc;backdrop-filter:blur(4px)}dialog h2{font-size:23px;margin-top:12px}dialog pre{max-height:40dvh;overflow:auto;background:#0e1822;padding:17px;border-radius:8px;border:1px solid var(--line)}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.close-button{border:0;background:none;color:var(--muted);font-size:25px;line-height:1}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1500px){main{padding-top:40px}.topbar{padding-left:52px;padding-right:52px}}@media(max-width:1050px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.topbar{padding:20px 25px}main{padding:25px}.notice{margin-left:25px;margin-right:25px}.file-layout,.training-layout{grid-template-columns:1fr}.file-list{max-height:230px}.stats-grid{gap:10px}.stats-grid .card{padding:18px}.brand{font-size:23px;gap:9px}.sidebar-bottom{padding-left:4px;padding-right:4px}}@media(max-width:720px){.shell{display:flex;flex-direction:column}.sidebar{position:sticky;top:0;height:auto;z-index:10;padding:12px 16px 0;border-right:0;border-bottom:1px solid var(--line);background:#111a24f7}.brand{font-size:21px;margin:0 0 10px;padding:0;gap:9px}.brand img{width:31px;height:31px}.brand small{display:none}.sidebar-bottom{display:none}nav{flex-direction:row;gap:4px;overflow-x:auto;scrollbar-width:none;padding-bottom:10px}.nav-button{white-space:nowrap;width:auto;padding:9px 12px;gap:7px;font-size:11px;border-radius:7px}.nav-button span{font-size:15px;width:16px}.workspace{width:100%}.topbar{height:76px;padding:17px 19px;border-bottom:0}h1{font-size:19px}.eyebrow{font-size:8px}.account{font-size:11px;gap:6px}.account #account-label{max-width:120px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.avatar{width:30px;height:30px}main{padding:5px 17px 22px}.notice{margin:0 17px 14px;padding:10px 13px;font-size:12px}.chat-panel{min-height:calc(100dvh - 192px)}.chat-toolbar select{font-size:11px;padding:8px}.model-note{font-size:10px;margin-top:9px}.messages{min-height:260px;max-height:calc(100dvh - 375px);padding:18px 0;flex:1}.chat-welcome{min-height:245px;padding:16px 6px}.welcome-mark{width:49px;height:49px;border-radius:16px;font-size:25px;margin-bottom:20px}.chat-welcome h2{font-size:24px}.chat-welcome p{font-size:12px;max-width:300px}.suggestions{gap:6px;margin-top:9px}.suggestions button{font-size:10px;padding:8px 10px}.composer{padding:10px 12px;margin-bottom:env(safe-area-inset-bottom)}.composer textarea{min-height:44px;font-size:16px}.composer-bottom>span{font-size:8px;max-width:185px}.message{max-width:95%;margin-bottom:16px}.message-content{font-size:13px;padding:11px 13px}.section-heading{margin:8px 0 20px;align-items:flex-start;gap:12px}.section-heading h2{font-size:24px}.section-heading p:last-child{font-size:12px}.section-heading .button{font-size:10px;padding:7px 9px;min-height:34px}.card{padding:18px}.stats-grid{grid-template-columns:1fr 1fr;gap:10px}.stats-grid .card:last-child{grid-column:1/-1}.stat-value{font-size:25px}.stat-detail{font-size:10px}.row-between{gap:10px;align-items:flex-start}.row-between .button{font-size:10px;padding:8px 10px;min-height:34px}.memory-compose textarea{font-size:16px}.path-form{gap:7px}.path-form .button{padding:8px 11px;font-size:11px}.file-layout,.training-layout{gap:0}.editor .row-between{flex-direction:column;align-items:stretch}.editor .row-between .button{width:100%}.training-layout h3{font-size:15px}.login-panel{margin:6vh auto 5vh;padding:0 8px}.login-panel h2{font-size:28px}.login-panel p:not(.eyebrow){font-size:13px}.login-panel img{width:52px;height:52px;margin-bottom:25px}dialog{padding:21px}.dialog-actions .button{flex:1;font-size:12px}}@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s,color .15s,border-color .15s}.message{animation:appear .18s ease}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}}

.stat{display:flex;flex-direction:column}.message-review{display:block;color:var(--accent);font-size:12px;margin-top:10px;text-decoration:underline;text-underline-offset:3px}
.search-result{align-items:flex-start;flex-direction:column;gap:4px}.search-result small{white-space:normal;overflow-wrap:anywhere}
.model-identity{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}.model-identity strong{font-size:12px;font-weight:550}.model-identity .badge{font-size:9px}.status-orb{width:7px;height:7px;border-radius:50%;background:var(--accent)}.info-strip{padding:15px 18px;border:1px solid #3d5161;border-radius:10px;background:#192a39;color:#b6c8d6;font-size:12px;line-height:1.75;margin-bottom:20px}.learning-editor textarea{min-height:330px;font-size:13px;line-height:1.8;resize:vertical}.learning-editor>.row-between{margin-bottom:10px}.learning-editor>.row-between label{margin:0}.learning-tools{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:14px}.learning-tools>div{max-width:390px}.learning-tools p{margin:8px 0 0}.learning-tools input{font-size:11px}.learning-start{display:flex;align-items:center;justify-content:space-between;gap:24px}.learning-start p{margin:0;max-width:530px}.learning-start-controls{display:flex;gap:10px;align-items:center}.learning-start-controls input{width:85px}.source-tools{padding-bottom:17px}.source-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.source-shortcuts button{border:1px solid #3b5263;border-radius:7px;background:#1b2c3a;color:#c1d3e0;padding:8px 11px;font-family:ui-monospace,monospace;font-size:11px}.source-shortcuts button:hover{background:#2c4254;border-color:#7493aa}.code-help{font-size:11px;color:var(--muted);line-height:1.8}.code-help summary{cursor:pointer}.code-help p{margin:11px 0 0}.code-help strong{font-weight:500;color:#c3d3df}.training-layout select{width:100%}.run-heading{margin-top:24px;margin-bottom:16px}.run-heading h3{margin-bottom:5px}.training-runs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.run-card{margin:0;min-width:0}.run-card h3{font-size:13px}.run-card .row-between{align-items:flex-start;margin-bottom:16px}.run-card>.button{margin-top:4px}.run-card p{overflow-wrap:anywhere}.run-card>.small:last-child{margin-bottom:0}#active-model{overflow-wrap:anywhere}#restore-model{white-space:normal;text-align:center;max-width:260px}
@media(max-width:1050px){.learning-start,.learning-tools{align-items:flex-start;flex-direction:column;gap:16px}.learning-start-controls{width:100%}.learning-start-controls .button{flex:1}.learning-tools>div{max-width:none;width:100%}.learning-tools>.button{width:100%}}@media(max-width:720px){.model-identity{gap:7px;max-width:80%}.model-identity strong{font-size:11px}.model-identity .badge{font-size:8px}.chat-toolbar .text-button{font-size:10px}.learning-editor textarea{font-size:16px;min-height:330px}.learning-editor>.row-between{flex-direction:column;gap:5px}.learning-meta{font-size:10px}.learning-start-controls{align-items:stretch}.learning-start-controls input{width:75px;font-size:16px}.learning-start-controls .button{white-space:normal;font-size:11px}.info-strip{font-size:11px;padding:13px 15px}.training-runs{grid-template-columns:1fr}.source-shortcuts{gap:6px}.source-shortcuts button{font-size:10px;padding:8px}.source-tools>.row-between{align-items:center}.source-tools>.row-between h3{font-size:14px}.source-tools>.row-between .text-button{font-size:10px}.path-form #open-workspace{font-size:10px;padding:8px}.editor input,.path-form input{font-size:13px}#restore-model{font-size:10px;max-width:145px}.run-heading p{font-size:11px}.run-card .row-between{align-items:center}}
