:root{color-scheme:dark;--bg:#0a0e17;--panel:#121826;--border:#29364b;--text:#eef2ff;--muted:#acb8ce;--accent:#4d9fff;--danger:#ff8585;--warn:#f2c675;font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;font-size:16px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);line-height:1.6}button,input,select,summary{font:inherit}a{color:var(--accent);text-decoration:none}button,a,summary,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8ec2ff;outline-offset:3px}[hidden]{display:none!important}.topbar{min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem max(1.25rem,calc((100vw - 1240px)/2));border-bottom:1px solid var(--border);background:#0d1320}.brand{display:flex;align-items:center;gap:.85rem;color:var(--text);font-size:1.3rem;font-weight:700}.brand-mark{display:grid;place-items:center;width:48px;height:48px;background:#173254;color:#8ec2ff;border:1px solid #315d8f;border-radius:14px;font-size:1.2rem}.brand-sub{display:block;font-size:1rem;font-weight:400;color:var(--muted)}.scope-pill{padding:.35rem .8rem;border:1px solid #715a30;border-radius:99px;color:var(--warn);white-space:nowrap;font-size:1rem}.shell{max-width:1240px;margin:auto;padding:2rem 1.25rem 1rem}.intro{display:flex;justify-content:space-between;gap:1.5rem;align-items:center;margin-bottom:1.5rem}h1{font-size:clamp(1.65rem,3vw,2.15rem);line-height:1.3;margin:.3rem 0 .8rem;letter-spacing:.015em}h2{font-size:1.35rem;margin:.15rem 0 .75rem}h3{font-size:1.15rem;margin:0 0 .75rem}p{margin:.5rem 0 1rem}.eyebrow{font-size:1rem;color:#8ec2ff;letter-spacing:.1em;margin:0 0 .25rem}.muted,.help{color:var(--muted);font-size:1rem}.help{margin:.6rem 0 1rem;line-height:1.6}.notice,.message{padding:1rem 1.2rem;border:1px solid #665432;border-left:4px solid var(--warn);border-radius:10px;background:#241f18;color:#f0d69f;margin-bottom:1.5rem;overflow-wrap:anywhere}.message{background:#142337;border-color:#315779;border-left-color:var(--accent);color:#cfe6ff}.message.error{background:#2b1a22;border-color:#70414a;border-left-color:var(--danger);color:#ffd6dc}.notice.compact{margin:.5rem 0 1.2rem;padding:.75rem 1rem}.panel{background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:1.6rem;margin-bottom:1.5rem;box-shadow:0 10px 28px #0002}.login-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:1.5rem;margin-top:2rem}.login-card{max-width:520px}.preview-note{display:flex;flex-direction:column;justify-content:center;background:linear-gradient(145deg,#121f33,#121826);padding:2rem}.preview-note li{padding:.5rem 0}.preview-note ul{padding-left:1.3rem;margin:.5rem 0 1rem}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem;margin-bottom:1rem}.lock-mark{color:#6f9cce;font-size:1.5rem}.button{min-height:46px;border-radius:9px;border:1px solid transparent;padding:.6rem 1rem;font-weight:600;cursor:pointer;font-size:1rem;line-height:1.4}.button.primary{background:var(--accent);color:#071323}.button.secondary{background:#182337;color:#d8e5fa;border-color:#3b4d68}.button.danger{background:#33202a;color:#ffb7bf;border-color:#754350}.button:hover:not(:disabled){filter:brightness(1.12)}.button:disabled{opacity:.45;cursor:not-allowed}.button.full{width:100%;margin-top:1rem}.session-tools{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}fieldset{border:0;padding:0;margin:0;min-width:0}label{display:block;margin:1rem 0 .4rem;color:#d6e2f5;font-size:1rem}input,select{display:block;width:100%;min-height:48px;background:#0b1321;border:1px solid #40516b;color:var(--text);padding:.65rem .8rem;border-radius:8px;font-size:1rem}input:disabled,select:disabled{opacity:.55}input::placeholder{color:#8495af}select{appearance:none;background-image:url("chevron.svg");background-repeat:no-repeat;background-position:right .8rem center;padding-right:2.5rem}.tabs{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;margin:2rem 0 1.5rem;padding-bottom:1rem;border-bottom:1px solid var(--border)}.tabs a{padding:.5rem .3rem;color:#c0d8fa;font-weight:600}.tabs .button{margin-left:auto}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.5rem}.summary-card{padding:1.1rem 1.4rem;border:1px solid var(--border);border-radius:12px;background:#0f1929;display:flex;align-items:center;justify-content:space-between;gap:1rem}.summary-card span{color:var(--muted)}.summary-card strong{font-size:1.8rem;font-weight:650}.table-scroll{overflow-x:auto}table{width:100%;min-width:760px;border-collapse:collapse;text-align:left}th,td{padding:1rem .75rem;border-bottom:1px solid var(--border);vertical-align:top;font-size:1rem}th{color:var(--muted);font-weight:500;white-space:nowrap}td{overflow-wrap:anywhere}.table-scroll td:first-child{min-width:170px}.small-detail{display:block;color:var(--muted);margin-top:.25rem;font-size:1rem}.empty{text-align:center;padding:2rem;color:var(--muted)}.row-actions{display:flex;gap:.5rem;flex-wrap:wrap}.tag{display:inline-block;border:1px solid #3c526e;background:#16263a;padding:.15rem .5rem;border-radius:6px;margin:0 .35rem .3rem 0;font-size:1rem}.tag.off{color:#d4bd91;background:#2b251b;border-color:#675435}.create-section{margin-top:1.5rem;border-top:1px solid var(--border);padding-top:1rem}summary{cursor:pointer;color:#8ec2ff;font-weight:600;min-height:44px;padding:.4rem 0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.2rem 1.2rem}.assignment{margin-top:1.5rem;padding-top:1.4rem;border-top:1px solid var(--border)}.assignment .button{margin-top:.8rem}footer{font-size:1rem;color:#98a9c3;text-align:center;padding:1rem 0 1.5rem}.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}dialog{max-width:520px;width:calc(100% - 2rem);border:1px solid #426184;border-radius:16px;padding:1.6rem;background:var(--panel);color:var(--text)}dialog::backdrop{background:#000b}.dialog-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.5rem}
@media(max-width:760px){.topbar{padding:1rem;min-height:82px;flex-wrap:wrap}.brand{font-size:1.1rem;gap:.65rem}.brand-mark{width:42px;height:42px}.scope-pill{padding:.25rem .55rem}.shell{padding:1.4rem 1rem}.intro{display:block}.session-tools{margin-top:1rem}.login-layout{grid-template-columns:1fr;gap:0;margin-top:1.3rem}.login-card{max-width:none}.preview-note{padding:1.4rem}.panel{padding:1.15rem;border-radius:12px}.section-heading{display:block}.summary-grid{grid-template-columns:1fr;gap:.6rem}.summary-card{padding:.9rem 1rem}.summary-card strong{font-size:1.5rem}.form-grid{grid-template-columns:1fr}.tabs{gap:.8rem}.tabs .button{margin-left:0}th,td{padding:.8rem .6rem}.dialog-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.mobile-hint{display:none}.table-scroll:focus-visible{outline:3px solid #8ec2ff;outline-offset:3px}@media(max-width:760px){.mobile-hint{display:block}}

#models{scroll-margin-top:24px}.mc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:16px;margin:16px 0}.mc-grid>div{background:#f2f7fa;color:#18384a;border-radius:12px;padding:18px}.mc-grid h3,.mc-grid p{margin:0 0 9px}.mc-grid h3{font-size:14px}.mc-grid small{color:#465f70}.mc-grid progress{width:100%;height:10px;accent-color:#00786f}.mc-grid select{display:block;width:100%;margin-top:8px}.mc-actions{display:flex;flex-wrap:wrap;gap:10px}#mc-status{color:#804800}#models p{line-height:1.6;overflow-wrap:anywhere}


#operations .ops-ok{color:#08775c;font-weight:700}#operations .ops-ok::before{content:"●";margin-right:.5em}#operations .mc-grid{margin-bottom:1rem}.tabs{flex-wrap:wrap}
