/* SWM entry, experiment workspace and account surfaces. */
:root{color:#17273e;background:#f4f6fa;--line:#dce3ee;--muted:#65758e;--accent:#234fc4;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
body>header{position:fixed;inset:0 auto 0 0;width:228px;height:100vh;padding:30px 22px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:35px;background:#14243c;border:0}
.brand{position:relative;flex-wrap:wrap;gap:10px;color:#fff;font-size:27px;letter-spacing:.08em}.mark{width:41px;height:41px;background:none;border-radius:9px}.subbrand{display:block;flex-basis:100%;border:0;padding:0;color:#acbdd8;font-size:10px;letter-spacing:.1em}
header nav{flex-direction:column;align-items:stretch;gap:9px}header nav a{padding:11px 12px;border-radius:6px;color:#c6d5ec}header nav a:hover{background:#233b5c;color:#fff}header nav button.secondary{background:transparent;color:#bdcde5;border-color:#40536e}
.brand-statement{margin-top:auto;padding-bottom:22px;color:#b5c8e7}.brand-statement span{font-size:12px;letter-spacing:.1em}.brand-statement h2{font-size:31px;line-height:1.6;color:white;font-weight:600;margin:18px 0}.brand-statement p{font-size:12px;line-height:2;color:#a4b8d9}
main{margin-left:228px;padding:46px 42px 70px;max-width:1700px}h1{font-size:30px;line-height:1.4;color:#17273e}h2,h3{color:#17273e}p{color:#65758e}.intro{align-items:flex-start;padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:25px}.intro p{max-width:700px}.eyebrow{letter-spacing:.12em;color:#52709f;font-size:11px}
.card{background:white;border:1px solid var(--line);border-radius:8px;box-shadow:none;padding:25px}.grid{grid-template-columns:1fr;gap:12px}.study-card{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;min-height:145px}.study-card .tag,.study-card h2,.study-card p{grid-column:1}.study-card h2{margin-top:12px!important}.study-card .row{grid-column:2;grid-row:1/4;align-self:center;padding:0;margin:0}.study-card p{margin-bottom:0}
button,.button{background:#234fc4;border-color:#234fc4;color:white;border-radius:6px;min-height:42px}button:hover,.button:hover{background:#1d43a5}button.secondary,.button.secondary{background:#fff;border-color:#cbd6e7;color:#314a70}button.danger{background:#a73842;border-color:#a73842;color:white}
input,select,textarea{background:#fff;color:#17273e;border-color:#c4d0e1;border-radius:6px}label{color:#445a77}input:focus,select:focus,textarea:focus{outline-color:#7197ed}.tag{color:#315da8;background:#edf3ff;border-color:#ccdcf5}.notice{background:#eaf1ff;color:#34527f;border-left-color:#4678db}.warning{color:#8a630f}.error{color:#ae3443}
.auth{max-width:490px;margin:9vh auto;padding:38px}.auth h1{font-size:28px}.workspace{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:24px}.chat{height:min(820px,calc(100vh - 120px));min-height:500px}.message{background:#f0f4fa;border-radius:6px}.message.user{background:#e9f0ff}.message.system{color:#607a9e}.message.error{color:#a92b3d;border-color:#d59aa4}.metrics strong{color:#234fc4}.status{color:#486083}.status.completed{color:#207856}.status.failed{color:#a92b3d}
dialog{background:#fff;color:#17273e;border-color:#d2ddeb;border-radius:10px}dialog::backdrop{background:#14243c70}#toast{background:#14243c;color:#fff}details{border-color:var(--line)}summary{color:#314a70}.job{border-color:var(--line)}
.job pre,.status.interrupted{color:#a92b3d}.status.running,.status.queued{color:#80600d}
@media(max-width:1150px){body>header{width:190px;padding:26px 18px}main{margin-left:190px;padding:32px 25px}.workspace{grid-template-columns:1fr}.chat{position:static;height:620px}.study-card{display:flex}.study-card .row{margin-top:18px}.brand-statement h2{font-size:27px}}
@media(max-width:700px){body>header{position:static;width:100%;height:auto;padding:17px 20px;flex-direction:row;align-items:center;gap:18px;justify-content:space-between}.brand{font-size:23px;gap:8px;flex-wrap:nowrap}.mark{width:32px;height:32px}.subbrand,.brand-statement{display:none}header nav{flex-direction:row;gap:4px;align-items:center}header nav a{padding:8px;font-size:12px}header nav button.secondary{font-size:12px;padding:6px 9px;min-height:32px}main{margin-left:0;padding:25px 16px 45px}.intro{flex-direction:column;gap:15px}h1{font-size:24px}.auth{padding:26px;margin:35px auto}.card{padding:20px}.fields{grid-template-columns:1fr}.row{gap:8px}.button{white-space:normal}.workspace{display:block}.chat{margin-top:20px}.metrics{flex-wrap:wrap}}
