:root{font:16px/1.6 system-ui,-apple-system,'Segoe UI',sans-serif;color:#e8edf7;background:#0b101d;color-scheme:dark}*{box-sizing:border-box}body{margin:0}header{height:78px;padding:0 5vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #283047}a{color:inherit;text-decoration:none}.brand{font-weight:750;font-size:24px}.brand span{color:#a48dff;margin-right:10px}.brand small{font-size:15px;font-weight:400;color:#9ba8bf;margin-left:12px}button,input{font:inherit}button{cursor:pointer;border:1px solid #34425f;border-radius:12px;background:#172035;color:#e8edf7;padding:10px 18px}button:disabled{opacity:.5;cursor:wait}.primary{background:#8c6cf0;border-color:#9c80f4;color:white}main{max-width:1250px;margin:8vh auto;padding:20px 5vw;display:grid;grid-template-columns:1.2fr 1fr;gap:70px;align-items:center}h1{font-size:clamp(32px,4vw,56px);line-height:1.3;letter-spacing:-1px;font-weight:650;margin:24px 0}.eyebrow{color:#b6a3f8;font-size:12px;letter-spacing:3px}.intro p{color:#a4b2c9;line-height:2}.tag{display:inline-block;background:#182338;padding:8px 16px;border-radius:30px;color:#c6d2ea;font-size:13px;margin-top:16px}.login{padding:30px;background:#141e30;border:1px solid #2c3851;border-radius:22px;box-shadow:0 24px 60px #0003}h2{margin:0 0 8px;font-size:24px}p{color:#aebbd0}.login p{font-size:14px}label{display:block;margin:16px 0;font-size:14px;color:#d2d9e7}input{display:block;width:100%;margin-top:8px;background:#0e1625;border:1px solid #35415b;border-radius:10px;color:white;padding:13px}.login .primary{width:100%;margin-top:12px}.hint{line-height:1.7}footer{text-align:center;color:#65748f;font-size:12px;padding:20px}#user{display:flex;gap:10px;align-items:center}#student{font-size:14px;color:#9ba8bf}nav{display:flex;gap:20px;align-items:center;padding:14px 25px;font-size:13px;color:#9caac0}.right{margin-left:auto}iframe{display:block;width:100%;height:calc(100dvh - 150px);border:0;background:#171923}#workMessage{padding:80px;text-align:center;color:#aebbd0}dialog{border:1px solid #3c4862;border-radius:20px;background:#131e30;color:#e8edf7;width:min(600px,94vw);max-height:85dvh;padding:26px}dialog::backdrop{background:#000a}dialog p{font-size:13px}.actions{display:flex;justify-content:flex-end;gap:14px;position:sticky;bottom:0;background:#131e30;padding-top:16px}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:90vw;background:#352a58;color:#fff;padding:14px 24px;border-radius:12px;z-index:20;box-shadow:0 4px 22px #0006}#tasks article{border-bottom:1px solid #33415c;padding:12px 0;font-size:14px;overflow-wrap:anywhere}#tasks code{font-size:12px;color:#a5b6d4}[hidden]{display:none!important}@media(max-width:800px){header{height:auto;min-height:70px;padding:15px;gap:12px;flex-wrap:wrap}.brand small{display:none}main{display:block;margin:16px auto;padding:20px}.intro h1{font-size:34px}.intro{margin-bottom:32px}.login{padding:24px}nav{flex-wrap:wrap;padding:12px}.right{display:none}#user{flex-wrap:wrap}#user button{padding:6px 9px;font-size:13px}iframe{height:calc(100dvh - 185px)}#workMessage{padding:40px 20px}}

.work-layout{display:flex;align-items:stretch}.work-main{flex:1;min-width:0}#queuePanel{width:230px;flex:0 0 230px;border-right:1px solid #30364d;padding:16px 12px;max-height:calc(100dvh - 145px);overflow:auto}.queue-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.queue-heading h2{font-size:18px;margin:0}.queue-heading button{font-size:12px;padding:6px 10px}#queuePanel p{font-size:12px;line-height:1.7}#queueCounts{padding:8px;border:1px solid #30364d;border-radius:9px;color:#bba8ff;font-size:13px;margin-bottom:12px}.project-card{border:1px solid #30364d;border-radius:12px;padding:9px;margin:10px 0;background:#141c2b}.project-card.selected{border-color:#b38cff;background:#201d38}.project-card>button:first-child{border:0;background:none;text-align:left;width:100%;padding:3px}.project-card strong,.project-card span,.project-card small,.project-card code{display:block;overflow-wrap:anywhere}.project-card strong{font-size:14px}.project-card span{font-size:12px;color:#cfbaff}.project-card small{font-size:11px;color:#9baac0;margin:4px 0}.project-card code{font-size:10px;color:#c5abff}.project-card>button{font-size:12px;padding:5px 8px}@media(max-width:1050px){.work-layout{display:block}#queuePanel{width:auto;max-height:240px;border-right:0;border-bottom:1px solid #30364d}#projectList{display:flex;gap:10px;overflow:auto}.project-card{min-width:190px;max-width:230px;margin:4px 0}#queuePanel p{margin:6px 0}#queueCounts{margin:5px 0}}

/* Web shell: a single navigation hierarchy and a secondary task rail. */
:root{--shell:#1a1a25;--surface:#242330;--line:#393543;--muted:#a39baf;--accent:#b587ef;background:var(--shell);color:#f1edf7;font-family:Inter,'Segoe UI','Microsoft YaHei',sans-serif}
body.signed-in{height:100dvh;overflow:hidden;display:flex;flex-direction:column}body.signed-in>footer{display:none}
.site-header{height:64px;min-height:64px;padding:0 24px;background:#20202b;border-bottom:1px solid var(--line);gap:24px}
.brand{display:flex;align-items:center;gap:11px;font-size:20px;white-space:nowrap}.brand .brand-mark{margin:0;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:#f0dcff;background:linear-gradient(145deg,#9561d0,#494384);font-size:24px}.brand small{margin:0 0 0 10px;padding-left:20px;border-left:1px solid #494252;font-size:13px;color:var(--muted)}
button{border-color:#494151;background:#2b2837;border-radius:9px;padding:8px 13px;font-size:13px;transition:background .15s,border-color .15s}button:hover{background:#3a3049;border-color:#8e6aaa}button:focus-visible,a:focus-visible{outline:2px solid #ce9bff;outline-offset:3px}.primary{background:linear-gradient(110deg,#b75be4,#7556ee);border-color:transparent;font-weight:600}.primary:hover{background:linear-gradient(110deg,#c56bee,#8868ff)}button.quiet{background:transparent;border-color:transparent;color:#bbb3c8}button.quiet:hover{background:#302b3c;color:white}#user{gap:8px}#student{font-size:12px;color:#a49bb2;margin-right:10px}
#workspace{flex:1;min-height:0;display:flex;flex-direction:column}.workspace-toolbar{height:60px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 22px;border-bottom:1px solid var(--line);background:#242330}.workspace-context,.workspace-actions{display:flex;align-items:center;gap:10px;min-width:0}.workspace-context{font-size:13px;color:#aaa0b9}.workspace-tab{background:transparent!important;border:0;color:#dfccf5;font-weight:650;padding:8px 0;font-size:14px}.crumb-divider{color:#625970;margin:0 3px}#currentProjectName{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-actions{flex-shrink:0}.workspace-actions button{min-height:36px}#queueToggle{display:flex;align-items:center;gap:7px}#queueToggle[aria-expanded=true]{background:#403151;border-color:#8f6aad;color:#edd9ff}#queueToggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5}#queueBadge{font-size:11px;background:#b987f6;color:#24182f;border-radius:5px;padding:0 5px}
.tools-wrap{position:relative}#workspaceTools{position:absolute;right:0;top:44px;width:170px;padding:7px;border:1px solid #574463;border-radius:12px;background:#2b2738;box-shadow:0 12px 35px #0006;z-index:40}#workspaceTools button{display:block;width:100%;text-align:left;border:0;background:transparent}#workspaceTools button:hover{background:#493653}#workspaceTools hr{border:0;border-top:1px solid #4a3c54;margin:5px}
.work-layout{display:flex;flex:1;min-height:0;position:relative;overflow:hidden;padding:0}.work-main{min-width:0;flex:1;position:relative;display:flex}#workFrame{height:100%;width:100%;flex:1;background:#242330}#workMessage{position:absolute;inset:0;display:grid;place-items:center;padding:30px;background:#252330;color:#c4b5d4;z-index:2}
#queuePanel{width:272px;flex:0 0 272px;max-height:none;border:0;border-left:1px solid #45394d;padding:22px 16px 0;display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(165deg,#292534,#211f2c);z-index:20}.queue-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.queue-heading .eyebrow{font-size:9px;letter-spacing:2px;color:#9d89ac}.queue-heading h2{font-size:18px;margin:4px 0 0;font-weight:650;letter-spacing:.5px}.queue-heading .icon-button{background:transparent;border:1px solid #4b3d55;color:#c4acd8;padding:0;width:30px;height:30px;font-size:24px;line-height:1}#queueCounts{display:grid;grid-template-columns:1fr 1fr;border:1px solid #4a3d54;background:#211e2b;padding:12px 0;border-radius:12px;margin:0 0 22px}#queueCounts>div{padding-left:18px}#queueCounts>div+div{border-left:1px solid #4a3d54}#queueCounts span{display:block;font-size:11px;color:#b1a4bc}#queueCounts strong{font-size:24px;font-weight:600;color:#eee4fa;line-height:1.5}.queue-section-label{display:flex;justify-content:space-between;color:#d6c9e3;font-size:12px;margin-bottom:8px}.queue-section-label span{color:#8f809f}#projectList{display:block;overflow:auto;flex:1;min-height:0;margin:0 -6px;padding:0 6px;scrollbar-width:thin;scrollbar-color:#675174 transparent}
.project-card{position:relative;border:1px solid #44394e;border-radius:12px;background:#2c2738;margin:8px 0;padding:0;min-width:0;max-width:none;overflow:hidden}.project-card.selected{background:linear-gradient(115deg,#463150,#30293f);border-color:#a075c5;box-shadow:inset 3px 0 #ba87eb}.project-card>button:first-child{display:flex;gap:11px;align-items:center;padding:14px 12px;min-height:87px;white-space:normal;border-radius:0}.project-icon{width:37px;height:44px;flex-shrink:0;display:grid!important;place-items:center;border:1px solid #665174;background:#3a3047;border-radius:8px}.project-icon svg{width:19px;height:19px;fill:none;stroke:#d7b8f4;stroke-width:1.5}.project-info{min-width:0;flex:1}.project-card strong{font-size:13px;color:#eee4f6;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-card .project-status{font-size:11px;margin-top:5px;color:#b6a6c4}.project-card small{font-size:10px;color:#9b8aaa;margin:3px 0 0}.project-card .job-message{padding:0 12px 12px 60px;line-height:1.6;font-size:11px;color:#c9a9bc}.project-card code{font-size:9px;padding:0 12px 10px;overflow-wrap:anywhere}.project-card>button.cancel-job{margin:0 12px 12px 60px;padding:4px 9px;font-size:11px}.project-card[data-state=completed] .project-status{color:#89c9ba}.project-card[data-state=running] .project-status,.project-card[data-state=queued] .project-status{color:#d2adff}.project-card[data-state=failed] .project-status,.project-card[data-state=needs_attention] .project-status{color:#eea1b2}.queue-foot{margin-top:14px;border-top:1px solid #403348;padding:16px 0;color:#a394b2;font-size:10px;display:flex;align-items:center;gap:6px}.status-dot{width:5px;height:5px;flex-shrink:0;border-radius:50%;background:#bb8ae9}
#queueBackdrop{position:absolute;inset:0;border:0;border-radius:0;background:#100b2080;z-index:19}dialog{background:#282333;border-color:#5d486c}.actions{background:#282333}input{background:#1e1b28;border-color:#50435e}.login{background:#262232;border-color:#51445d}.tag{background:#31273f}.intro p{color:#b4a7c1}#notice{z-index:70}
@media(max-width:1399px){#queuePanel{position:absolute;right:0;top:0;bottom:0;width:290px;box-shadow:-16px 0 50px #09041166}#queueBackdrop:not([hidden]){display:block}#currentProjectName{max-width:155px}}
@media(min-width:1400px){#queueBackdrop{display:none!important}}
@media(max-width:900px){.site-header{height:58px;min-height:58px;padding:0 16px;flex-wrap:nowrap}.brand small{display:none}.brand{font-size:18px}#user{flex-wrap:nowrap;gap:3px}#user button{font-size:12px;padding:7px}#student{margin-right:4px}.workspace-toolbar{height:56px;padding:0 12px;gap:10px}#currentProjectName,.crumb-divider{display:none}.workspace-actions{gap:6px}.workspace-actions button{padding:7px 9px;font-size:12px}#workFrame{height:100%}}
@media(max-width:600px){.site-header{gap:10px;padding:0 10px}.brand{font-size:16px;gap:7px}.brand .brand-mark{width:27px;height:27px;font-size:20px}#student{display:none}.workspace-toolbar{height:auto;min-height:88px;flex-wrap:wrap;gap:5px;padding:8px 10px}.workspace-context{width:100%}.workspace-actions{width:100%;justify-content:space-between}.workspace-actions button{padding:6px 8px;font-size:11px}#queuePanel{width:min(290px,90vw)}#user button{font-size:11px;padding:6px}main{margin:10px auto}.queue-foot{font-size:10px}}

.module-home{max-width:1440px;margin:36px auto;padding:0 40px 56px}.module-intro h1{font-size:32px;margin:12px 0}.module-intro p{font-size:15px;margin-bottom:30px}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.module-card{text-align:left;padding:26px;background:linear-gradient(135deg,#252438,#1b2030);border:1px solid #3c3652;border-radius:20px;min-height:230px;transition:transform .15s,border-color .15s}.module-card:hover{transform:translateY(-3px);border-color:#a889e7}.module-card h2{font-size:21px;margin:18px 0 6px}.module-card p{font-size:14px;margin:0 0 22px}.module-mark{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:13px;background:linear-gradient(135deg,#bd67df,#6c5ceb);font-size:22px;color:white}.module-enter{font-size:14px;color:#bca1ff}.module-card:disabled{cursor:default;opacity:.55}.signed-in:has(#moduleHome:not([hidden])){overflow:auto}@media(max-width:1000px){.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.module-home{padding:0 18px}.module-grid{grid-template-columns:1fr}.module-card{min-height:200px}.module-intro h1{font-size:27px}}

.model-external{display:flex;gap:16px;align-items:center;margin:24px 0;padding:20px 24px;border:1px solid #39354b;border-radius:16px;color:#dfd5ff;text-decoration:none;background:#232231}.model-external span{color:#a29daf;font-size:13px}@media(max-width:700px){.model-external{align-items:flex-start;flex-direction:column;gap:8px}}
