/* Product surface, composed over the existing data tools and parameter forms. */
:root{--ink:#172b29;--muted:#78817f;--green:#20735d;--green-deep:#155b48;--pale:#eaf2ed;--bg:#f7f8f5;--line:#e5ebe6;--radius:19px;--shadow:0 8px 32px #1d443809}
body{font-family:'PingFang SC','Microsoft YaHei UI','Microsoft YaHei','Segoe UI',sans-serif;background:radial-gradient(ellipse at 96% 13%,#dbe4d54d,transparent 26%),#f8f9f6;color:var(--ink);font-size:14px;line-height:1.65;-webkit-font-smoothing:antialiased}
.ui-icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle;display:inline-block}.button,.text-button,.library-button{display:inline-flex;align-items:center;justify-content:center;gap:9px}.button .ui-icon{width:18px;height:18px}
.rail{position:relative;inset:auto;display:grid;grid-template-columns:1fr auto auto;grid-template-rows:74px 100px;align-items:center;column-gap:18px;row-gap:0;padding:0 4vw;background:transparent;border:0;min-height:0;backdrop-filter:none;z-index:20}
.rail:before{content:'';position:absolute;inset:0 0 auto;height:74px;border-bottom:1px solid #e8ece6;background:#ffffffc9;z-index:-1}.brand{grid-column:1;grid-row:1;gap:13px;font-weight:700;font-size:25px;width:max-content;max-width:100%}.brand-mark{background:linear-gradient(140deg,#32836d,#17644f);box-shadow:inset 0 1px 1px #ffffff44,0 3px 8px #245c4221;width:42px;height:42px;font-size:26px;line-height:42px;border-radius:12px}.brand-subtitle{font-size:13px;font-weight:400;color:#8a9390;padding-left:16px;margin-left:2px;border-left:1px solid #e1e7e0;line-height:24px}
.rail>.workflow-nav{grid-row:2;grid-column:1/-1;justify-content:center;gap:32px;position:relative}.workflow-nav .nav{background:none!important;padding:10px 0!important;font-size:15px!important;font-weight:600;gap:14px;color:#6d7774;position:relative;flex:none}.workflow-nav .nav span{width:40px;height:40px;font-size:13px;letter-spacing:0;color:#89918f;background:#eef1ed}.workflow-nav .nav.active{color:#176b54}.workflow-nav .nav.active span{background:linear-gradient(135deg,#2b7c64,#165a46);color:white;box-shadow:0 0 0 6px #e3eee7,0 3px 5px #23745c18}.workflow-nav .nav:not(:last-child):after{content:'';width:30px;height:1px;background:#cdd6d0;margin-left:20px}.workflow-nav .nav:hover{color:var(--green)}
.library-button{grid-column:2;grid-row:1;width:auto!important;padding:8px 13px!important;margin:0;font-size:13px!important;color:#55625b;background:none!important;white-space:nowrap}.utility-menu{grid-column:3;grid-row:1}.utility-menu>summary{font-size:13px;color:#65716a;list-style:none;border-left:1px solid #e2e8df;padding:4px 0 4px 18px}.utility-menu>summary:after{content:'⌄';margin-left:8px}.utility-menu nav{z-index:100;top:36px;right:-8px;border-radius:12px;box-shadow:0 16px 35px #203b3018}.utility-menu nav .nav{font-size:13px;padding:12px 14px}
main{max-width:1300px;padding:13px 32px 48px}.page-heading{margin:5px 0 12px;gap:24px;align-items:center}.step-eyebrow{font-size:13px;letter-spacing:0;font-weight:600;color:#287b64}.page-heading h1{font-size:34px;letter-spacing:-.8px;line-height:1.45;font-weight:700;margin:8px 0 10px}.page-heading p{font-size:14px;color:#7a8480}.page-heading .actions{gap:12px;flex-shrink:0}.button{min-height:46px;padding:10px 20px;border:1px solid #dce3dd;border-radius:11px;background:#ffffffed;box-shadow:0 2px 3px #173d2c03;font-size:14px;font-weight:500;color:#334944}.button:hover:not(:disabled){background:#f4f8f2;border-color:#adbfaf;box-shadow:0 4px 12px #234b3410;transform:translateY(-1px)}.button.primary{background:linear-gradient(140deg,#2b7c64,#1b6652);color:#fff;border-color:#26735c;box-shadow:inset 0 1px 1px #ffffff27,0 3px 6px #19573f12}.button.primary:hover:not(:disabled){background:#1a624e;border-color:#1a624e}.button:active:not(:disabled){transform:translateY(0);box-shadow:inset 0 2px 5px #0000000c}.button:focus-visible,.text-button:focus-visible,.nav:focus-visible{outline:3px solid #7eb9a3;outline-offset:3px}.panel{border-radius:19px;background:#fffffff5;border:1px solid #e5ebe5;box-shadow:var(--shadow)}
#page-live .scenario-bar{margin:0 0 24px;padding:0;background:none;border:0;font-size:14px;color:#74817c}#scenario-name{font-weight:400;margin-right:22px;color:#6a7973}#scenario-detail{color:#78837f;font-variant-numeric:tabular-nums}.workspace-grid{margin:0!important;gap:0!important}#page-live .scene-panel{padding:24px;overflow:hidden;background:#ffffffec}.scene-panel>.panel-heading{align-items:center;gap:20px;padding:0 0 15px;margin-bottom:5px}.replay-title{display:flex;align-items:center;gap:19px;flex:1;min-width:0}.replay-symbol{display:grid;place-items:center;width:58px;height:58px;background:#f3f7f3;border:1px solid #e8eee7;border-radius:16px;flex-shrink:0;color:#27765f}.replay-symbol .ui-icon{width:31px;height:31px;stroke-width:1.7}.replay-title h2{font-size:22px;margin:0 0 2px;font-weight:700;line-height:1.5}.replay-title p{font-size:13px;color:#86918a;margin:0}
.segmented{display:flex;background:#f3f6f1;border:1px solid #e0e7df;border-radius:10px;padding:3px;gap:3px;flex-shrink:0}.segmented button{min-width:55px;min-height:33px;font-size:13px;border-radius:7px;border:0;background:transparent;color:#486157;padding:6px 14px;transition:background .18s,color .18s}.segmented button.selected{color:white;background:linear-gradient(130deg,#2b7e65,#19604c);box-shadow:0 2px 4px #18533b24}.simulation-clock{display:flex;flex-direction:column;align-items:flex-start;min-width:167px;padding-left:10px}.simulation-clock>span{font-size:12px;color:#6a7a72;display:flex;align-items:center;gap:7px;line-height:1.5}.simulation-clock .ui-icon{width:15px;height:15px}.simulation-clock .clock{font-size:34px;line-height:1.3;font-weight:650;color:#24745c;letter-spacing:-1px;font-variant-numeric:tabular-nums;margin:0}
.scene-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:0 0 17px;padding:0;min-height:38px}.scene-toolbar>.legend{font-size:13px;color:#76867c;gap:9px;display:flex;align-items:center}.legend i{width:10px;height:10px;margin:0 1px 0 18px;border-radius:50%;display:inline-block}.legend i:first-child{margin-left:5px}.g1{background:#277f68!important}.g2{background:#e68b50!important}.g3{background:#5c91bf!important}.scene-toolbar>div{display:flex;gap:9px;align-items:center}.scene-toolbar .text-button{font-size:12px;min-height:35px;line-height:1.3;border:1px solid #dfe6df;padding:8px 13px;border-radius:8px;color:#63746b;background:#fff}.scene-toolbar .text-button:hover{background:#f0f5ee;border-color:#9db5a4;text-decoration:none}.scene-toolbar .text-button[aria-pressed=true]{color:#25765b;border-color:#a9c7b4;background:#f1f7f1}.scene-toolbar .icon-button{width:35px;padding:7px}.icon-button .ui-icon{width:17px;height:17px}
.playback{display:flex;align-items:center;gap:20px;padding:0;margin:0 0 17px;border:0;background:none;min-height:47px}.play-button{width:48px;height:48px;flex-shrink:0;border:0;display:grid;place-items:center;background:linear-gradient(140deg,#2c846b,#1b654f);color:white;border-radius:50%;box-shadow:inset 0 1px 1px #ffffff22,0 3px 6px #17523b13;transition:transform .15s,box-shadow .15s}.play-button:hover{transform:scale(1.04);box-shadow:0 4px 12px #23664b25}.play-button .ui-icon{width:21px;height:21px;fill:currentColor;stroke-width:1}.play-button[aria-label=暂停回放] .ui-icon{fill:none;stroke-width:3}
#timeline{--progress:0%;appearance:none;-webkit-appearance:none;flex:1;height:8px;border-radius:10px;background:linear-gradient(to right,#2e8169 var(--progress),#e8ece7 var(--progress));border:1px solid #d5ded6;outline-offset:7px;margin:0;min-width:0;cursor:pointer}#timeline::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:23px;height:23px;border:3px solid white;border-radius:50%;background:linear-gradient(140deg,#4a9a80,#216b53);box-shadow:0 2px 5px #2c5a3f33}#timeline::-moz-range-thumb{width:20px;height:20px;border:3px solid white;border-radius:50%;background:#28795f;box-shadow:0 2px 5px #2c5a3f33}#speed{border:1px solid #dfe6df;border-radius:9px;padding:9px 13px;height:40px;min-width:122px;background:#fff;font-size:13px;cursor:pointer}
.scene-3d{height:clamp(460px,49vw,680px)!important;min-height:0!important;border:1px solid #e2e7dc;background:#f1f0e9;border-radius:15px;position:relative;overflow:hidden;isolation:isolate}.canteen-webgl{width:100%;height:100%;display:block;outline-offset:-4px}.scene-2d{min-height:460px;padding:20px;border:1px solid #e1e8df;background:#f8faf6;border-radius:15px}.queue-row{border-radius:9px;background:white;border-color:#e2e9df}
.two-sided-hall.minimal-scene .scene-station-label{background:#fffffff0!important;border:1px solid #dce5db!important;border-radius:8px!important;box-shadow:0 4px 10px #233f2d12!important;min-width:98px!important;padding:7px 9px!important;color:#3e584b;display:flex!important;gap:5px;align-items:center;justify-content:center;white-space:nowrap;line-height:1.2!important;font-size:11px!important;transition:border-color .15s,box-shadow .15s}.two-sided-hall.minimal-scene .scene-station-label:before{content:'';width:6px;height:6px;border-radius:50%;background:#277e62;flex-shrink:0}.two-sided-hall.minimal-scene .scene-station-label b{font:600 11px/1.2 'Segoe UI',sans-serif!important}.two-sided-hall.minimal-scene .scene-station-label span{display:inline!important;font-size:10px!important;color:#6b7c72}.scene-station-label em{font-style:normal;font-weight:600;color:#3e5949}.scene-station-label:hover{border-color:#5b9a78!important;box-shadow:0 4px 12px #1b683126!important}.scene-station-label.is-congested:before{background:#b4894a!important}.minimal-scene .scene-wayfinding{border-radius:6px!important;padding:4px 8px!important;background:#fffff4db!important;border:1px solid #e1dcc3!important;box-shadow:0 2px 6px #4c492b0b!important;font-size:10px!important;color:#83794e!important;line-height:1.2;pointer-events:none}
#live-counts{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;padding:17px 9px;margin:16px 0 0;border:1px solid #e5ebe4;background:linear-gradient(#fff,#fbfdf9);border-radius:13px;min-height:80px}#live-counts>span{display:flex;align-items:center;justify-content:center;gap:11px;border-right:1px solid #e7ede5;min-width:0;font-size:12px}#live-counts>span:last-child{border:0}#live-counts .ui-icon{width:27px;height:27px;color:#27765e;stroke-width:1.7}#live-counts .count-content{display:flex;flex-direction:column;color:#7a8880;gap:1px;line-height:1.5}#live-counts b{color:#24775d;font-size:20px;font-weight:650;margin:0;line-height:1.3;letter-spacing:-.3px}#live-counts b small{font-size:11px;color:#8a968c;font-weight:400;margin-left:5px}.canvas-hint{text-align:center;color:#9aa39c;font-size:11px;padding-top:10px;letter-spacing:.3px}
#page-live .insights{display:block;margin-top:18px}#selection-details{padding:0!important;border-radius:16px;overflow:hidden}#selection-details>summary{padding:19px 21px;display:flex;align-items:center;gap:14px;list-style:none;cursor:pointer;font-size:15px;color:#283e35}#selection-details>summary>span:first-child{display:grid;place-items:center;width:35px;height:35px;border-radius:9px;background:#edf4ed;color:#24765c}#selection-details>summary:after{content:'⌄';font-size:22px;color:#6c8173;margin-left:auto;transition:transform .2s}#selection-details[open]>summary:after{transform:rotate(180deg)}.inspection-hint{color:#8d9891;font-size:12px;font-weight:400}.student-locate{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:0 24px 14px}.student-locate label{display:flex;flex-direction:column;font-size:12px;gap:6px;color:#6a7d70}.student-locate input{width:140px;padding:9px 12px;border:1px solid #d9e3d7;border-radius:8px;font-size:14px;height:42px}.student-locate .button{min-height:42px;font-size:12px}.student-locate>span{font-size:12px;color:#708472;align-self:center}#inspect-text{padding:0 24px;color:#52735c;font-size:13px;margin:8px 0}#inspect-detail{padding:0 24px 20px}#inspect-detail dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:#f8faf6;border-radius:12px;padding:15px 20px;margin:0}#inspect-detail dl>div{display:flex;flex-direction:column;border:0;padding:8px}#inspect-detail dt{color:#88988c;font-size:12px}#inspect-detail dd{margin:3px 0 0;font-size:14px;color:#385a43;font-weight:600}
.run-feedback{display:flex;align-items:center;gap:9px;color:#2b7c5f;font-size:13px;margin:19px 6px 0;font-weight:500}.run-feedback .ui-icon{width:20px;height:20px}.run-feedback span{font-size:12px;color:#99a399;margin-left:9px;font-weight:400}.has-expanded-scene{overflow:hidden}.scene-panel.scene-expanded{position:fixed!important;inset:16px!important;z-index:150;overflow:auto!important;box-shadow:0 0 0 50vw #152f26b3!important;display:flex;flex-direction:column}.scene-expanded .scene-3d{height:calc(100vh - 320px)!important;min-height:280px!important;flex:1}.scene-expanded .canvas-hint{display:none}
.preset-grid{gap:18px;margin:24px 0 6px}.preset-card{border-radius:17px;padding:25px;box-shadow:0 5px 20px #263c2b04;border-color:#e1e8df;gap:13px}.preset-card:has(input:checked){border-color:#4e9474;background:linear-gradient(125deg,#f1f8ee,#f7faf4);box-shadow:0 0 0 1px #4e9474,0 6px 22px #377f4912}.preset-card strong{font-size:18px;font-weight:650}.preset-number{color:#839e88}.preset-card input{width:18px;height:18px}.setup-parameters{padding:27px 29px;margin-top:24px}.setup-parameters .panel-heading h2{font-size:18px}.setup-grades{padding:18px 0 25px;gap:28px}.setup-parameters input,.setup-order select{height:44px;border-color:#dfe7da;background:#fcfdf9;border-radius:8px;box-shadow:inset 0 1px 3px #2e482003;font-size:16px;font-weight:500}.setup-parameters input:focus,.setup-order select:focus{background:#fff;outline:2px solid #92bda0;outline-offset:1px}.setup-parameters label{font-size:13px;color:#738775;font-weight:400}.setup-grades h3{font-size:15px;color:#3e6346}.setup-parameters .panel-heading>span{font-size:13px}.setup-common{gap:22px 28px}.setup-order{color:#65836c}.workflow-footer{margin-top:24px}.example-label{color:#99a393;font-size:12px}.next-step{min-width:215px;min-height:48px}.custom-arrangement{margin-top:20px;border-radius:12px}
#kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-radius:17px;border:1px solid #e4ebe0;box-shadow:var(--shadow);overflow:hidden;background:white;margin-top:24px}#kpis>.kpi{padding:23px 26px;background:transparent;box-shadow:none;border-radius:0;border:0;border-right:1px solid #e9eee5}#kpis>.kpi:last-child{border-right:0}#kpis .label{font-size:13px;color:#84917f;margin-bottom:7px}#kpis strong{font-size:34px;color:#28775a;font-weight:650;line-height:1.2}#kpis .unit{font-size:12px;color:#94a18b;margin-left:7px}.result-overview{padding:24px 27px;margin:22px 0}.result-overview h2,.chart-panel h2{font-size:18px}.result-overview #result-summary{color:#6a816b;font-size:14px;margin-bottom:20px}#result-grades th,#result-grades td{padding:15px 17px;font-size:13px}#result-grades thead{background:#f4f8ef}#result-grades tbody th{color:#5c7a60;font-weight:500;background:none}#result-grades td{color:#71876b}.chart-panel{padding:24px 27px}.research-tools{padding:21px 25px;border-radius:15px}.research-tools>summary{font-weight:500;font-size:14px;color:#50724f}#legacy-comparison{box-shadow:none;border-color:#e5ebdf;border-radius:15px}#legacy-comparison>summary{font-size:13px;color:#83957b}.study-setup,.study-results,.study-card{border-radius:13px!important}.study-controls input,.study-controls select{border-radius:8px!important;background:#fafdf7!important}.study-head{gap:15px}.dialog{border-radius:21px!important;border:1px solid #dfe8da!important;box-shadow:0 25px 100px #1a362e35!important;background:#fff!important}.dialog::backdrop{background:#19352c55;backdrop-filter:blur(4px)}.dialog-header h2{font-size:21px}.field input,.field select{border:1px solid #dce6d7;border-radius:8px;background:#fbfdf8}.form-section h3{color:#547650}.form-help,.field .caption{color:#8d9c87}
@media(min-width:1650px){main{max-width:1400px}.scene-3d{height:730px!important}}
@media(max-width:1000px){.brand-subtitle{display:none}main{padding:12px 25px 40px}.rail{padding:0 25px;grid-template-rows:70px 90px}.rail:before{height:70px}.scene-panel>.panel-heading{gap:12px}.replay-title{gap:13px}.replay-symbol{width:47px;height:47px}.replay-title h2{font-size:19px}.replay-title p{font-size:11px}.simulation-clock{min-width:143px}.simulation-clock .clock{font-size:29px}.segmented button{min-width:42px;padding:6px 11px}.scene-toolbar .text-button{padding:7px 10px}.scene-3d{height:570px!important}#live-counts .ui-icon{width:21px;height:21px}#live-counts>span{gap:7px}#live-counts b{font-size:18px}.page-heading h1{font-size:31px}.button{padding:10px 16px}#page-live .scene-panel{padding:20px}.inspection-hint{font-size:11px}}
@media(max-width:700px){.rail{grid-template-rows:64px 83px;padding:0 18px;column-gap:9px}.rail:before{height:64px}.brand{font-size:21px;gap:10px}.brand-mark{width:36px;height:36px;font-size:23px;line-height:36px;border-radius:10px}.library-button{font-size:12px!important;padding:5px!important;gap:5px}.library-button .ui-icon{width:16px;height:16px}.utility-menu>summary{padding-left:10px;font-size:12px}.rail>.workflow-nav{gap:16px}.workflow-nav .nav{font-size:13px!important;gap:10px}.workflow-nav .nav span{width:34px;height:34px;font-size:11px}.workflow-nav .nav:not(:last-child):after{display:none}main{padding:5px 18px 35px}.page-heading{gap:14px;margin-top:0}.page-heading h1{font-size:29px;margin:6px 0 8px}.page-heading .actions{gap:8px;width:100%;justify-content:flex-start;flex-wrap:wrap}.button{font-size:12px;min-height:40px;padding:9px 13px}.button .ui-icon{width:16px;height:16px}#page-live .scenario-bar{margin-bottom:17px;font-size:12px}#scenario-name{margin-right:12px}.scene-panel>.panel-heading{flex-wrap:wrap;gap:13px;position:relative;padding-bottom:12px}.replay-title{flex-basis:calc(100% - 143px)}.replay-title p{display:none}.replay-symbol{width:40px;height:40px;border-radius:11px}.replay-symbol .ui-icon{width:24px;height:24px}.replay-title h2{font-size:18px;margin:0}.simulation-clock{min-width:135px;padding-left:0;margin-left:auto}.simulation-clock .clock{font-size:27px}.simulation-clock>span{font-size:10px}.scene-panel .segmented{order:3;margin-right:auto;position:absolute;right:0;top:67px}.scene-toolbar{flex-direction:column;align-items:flex-start;gap:12px;margin:2px 0 15px}.scene-toolbar>.legend{font-size:12px;min-height:32px}.scene-toolbar>div{width:100%;gap:7px;justify-content:space-between}.scene-toolbar .text-button{font-size:11px;padding:7px 10px;min-height:32px}.scene-toolbar .icon-button{width:31px}.playback{gap:13px;margin-bottom:14px}.play-button{width:40px;height:40px}.play-button .ui-icon{width:19px;height:19px}#speed{height:35px;min-width:91px;max-width:112px;font-size:11px;padding:6px}#timeline{height:7px}#timeline::-webkit-slider-thumb{width:20px;height:20px}#page-live .scene-panel{padding:15px;border-radius:17px}.scene-3d{height:460px!important;border-radius:11px}.two-sided-hall.minimal-scene .scene-station-label{min-width:29px!important;width:29px!important;height:24px!important;padding:4px 3px!important;border-radius:6px!important;gap:2px;box-shadow:0 2px 5px #324c3414!important}.two-sided-hall.minimal-scene .scene-station-label span{display:none!important}.two-sided-hall.minimal-scene .scene-station-label b{font-size:9px!important}.two-sided-hall.minimal-scene .scene-station-label:before{width:4px;height:4px}#live-counts{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 0;padding:14px 5px;margin-top:13px;border-radius:11px}#live-counts>span{gap:7px}#live-counts>span:nth-child(4){border-right:0}#live-counts .ui-icon{width:20px;height:20px}#live-counts .count-content{font-size:10px}#live-counts b{font-size:16px}#live-counts b small{font-size:9px;margin-left:3px}.canvas-hint{font-size:9px;padding-top:9px;letter-spacing:0}#selection-details>summary{padding:15px;gap:11px;font-size:14px}.inspection-hint{display:none}.student-locate{padding:0 15px 10px;gap:10px}.student-locate input{width:110px}.student-locate .button{padding:9px 10px;font-size:11px}.student-locate>span{width:100%;font-size:11px}#inspect-text{padding:0 15px}#inspect-detail{padding:0 15px 15px}#inspect-detail dl{grid-template-columns:1fr 1fr;padding:10px}.run-feedback{margin-top:15px;font-size:12px}.run-feedback span{font-size:10px}.scene-panel.scene-expanded{inset:5px!important;border-radius:12px}.scene-expanded .scene-3d{height:calc(100dvh - 380px)!important;min-height:200px!important}.preset-grid{gap:11px;margin:17px 0 0}.preset-card{padding:17px 20px;border-radius:14px;gap:5px}.preset-card strong{font-size:16px}.preset-card>span:last-child{font-size:11px}.setup-parameters{padding:21px 18px;margin-top:20px;border-radius:16px}.setup-grades{gap:18px}.setup-common{gap:18px 12px}.setup-parameters label{font-size:11px}.setup-parameters input{font-size:14px}.setup-grades h3{font-size:13px}#kpis{grid-template-columns:1fr 1fr;margin-top:20px}#kpis>.kpi{padding:19px}#kpis>.kpi:first-child{grid-column:1/-1;border-right:0}#kpis strong{font-size:28px}#kpis>.kpi:first-child strong{font-size:35px}.result-overview{padding:21px 16px;margin:18px 0}#result-grades th,#result-grades td{font-size:12px;padding:12px 10px}.chart-panel{padding:20px 16px}.chart-panel h2,.result-overview h2{font-size:16px}.research-tools{padding:18px 16px}.page-heading #result-back{margin-left:auto}.run-feedback span{margin-left:2px}}
@media(max-width:370px){.rail{padding:0 12px}.library-button{font-size:11px!important}.workflow-nav .nav{font-size:12px!important;gap:7px}.rail>.workflow-nav{gap:12px}.workflow-nav .nav span{width:29px;height:29px}main{padding-left:12px;padding-right:12px}.scene-3d{height:400px!important}.simulation-clock{min-width:118px}.simulation-clock .clock{font-size:24px}.replay-title{flex-basis:calc(100% - 132px);gap:9px}.replay-title h2{font-size:16px}.replay-symbol{width:33px;height:33px}.scene-toolbar .text-button{padding:7px 7px}.scene-toolbar>div{gap:5px}#live-counts .ui-icon{width:17px;height:17px}#live-counts>span{gap:4px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:0.01ms!important;transition-duration:0.01ms!important}}
.skip-link:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden;padding:0}
.page:has(.scene-expanded){animation:none!important;transform:none!important}
.legacy-actions{display:flex;justify-content:flex-end;margin:16px 0}
.page-heading p,.preset-card>span:last-child,.replay-title p,.example-label,.brand-subtitle{color:#707d74}
.setup-parameters label,#kpis .label{color:#637664}
#result-grades td,.result-overview #result-summary{color:#62775f}
#scenario-name,#scenario-detail{color:#6a7870}
@media(min-width:701px) and (max-width:1000px){.scene-3d{height:clamp(360px,58vw,560px)!important}}
@media(max-width:700px){.scene-3d{height:330px!important}.setup-parameters label{font-size:12px}}
@media(max-width:370px){.scene-3d{height:290px!important}}
@media(max-width:700px){.scene-panel>.panel-heading{display:grid;grid-template-columns:1fr auto;gap:12px;padding-bottom:13px}.replay-title{grid-row:1;grid-column:1/-1;flex-basis:auto}.scene-panel .segmented{position:static;grid-row:2;grid-column:1;justify-self:start;margin:0;order:0}.simulation-clock{grid-row:2;grid-column:2;min-width:0;align-items:flex-end;margin:0}.simulation-clock .clock{font-size:27px}.scene-toolbar{margin-top:0}.scene-toolbar .legend i{margin-left:12px}.scene-toolbar .legend i:first-child{margin-left:3px}}

/* Visual refinement: scene first, one primary action, quiet supporting controls. */
:root{--ink:#26352f;--muted:#67736c;--green:#216e55;--green-deep:#195640;--bg:#f7f8f6;--line:#e6eae5;--radius:16px;--shadow:0 3px 16px #26352f05}
body{background:var(--bg);color:var(--ink)}
.rail{grid-template-rows:64px 72px}.rail:before{height:64px;background:#fff}.brand{font-size:23px}.brand-mark{background:var(--green);box-shadow:none;width:38px;height:38px;line-height:38px;font-size:24px;border-radius:10px}.brand-subtitle{font-size:12px;color:var(--muted)}
.workflow-nav .nav{font-size:14px!important;font-weight:500;gap:11px}.workflow-nav .nav span{width:32px;height:32px;font-size:12px;background:#ecefeb;color:#6c776f}.workflow-nav .nav.active span{background:var(--green);box-shadow:none}.workflow-nav .nav.active{font-weight:650}.workflow-nav .nav:not(:last-child):after{background:#dce2dc}
main{padding-top:8px}.page-heading{margin-bottom:12px}.page-heading h1{font-size:28px;line-height:1.35;margin:4px 0 8px}.page-heading .eyebrow{font-size:11px;color:var(--muted);font-weight:500}.page-heading .actions{gap:8px}#page-live .scenario-bar{font-size:13px;margin-bottom:18px}
.button{min-height:40px;border-color:var(--line);border-radius:8px;font-size:13px;padding:9px 16px;box-shadow:none}.button.primary{background:var(--green);border-color:var(--green);box-shadow:none}.button:hover:not(:disabled){transform:none;box-shadow:none}.button.primary:hover:not(:disabled){background:var(--green-deep)}.button .ui-icon{width:16px;height:16px}
#page-live .scene-panel{padding:20px;background:#fff;border-color:var(--line);border-radius:16px;box-shadow:var(--shadow)}.scene-panel>.panel-heading{gap:16px;padding-bottom:12px;margin-bottom:0}.replay-title{gap:12px}.replay-symbol{width:36px;height:36px;border:0;border-radius:9px;background:#f2f5f1;color:var(--green)}.replay-symbol .ui-icon{width:22px;height:22px}.replay-title h2{font-size:18px;line-height:1.5;font-weight:650}.replay-title p{font-size:12px;color:var(--muted)}
.simulation-clock{min-width:146px;padding-left:8px}.simulation-clock .clock{font-size:28px;font-weight:600;color:var(--ink);letter-spacing:0}.simulation-clock>span{font-size:11px;color:var(--muted)}
.segmented{border-radius:8px;padding:3px;background:#f3f5f2;border-color:var(--line);gap:0}.segmented button{min-height:30px;min-width:48px;border-radius:5px;font-size:12px;padding:5px 12px}.segmented button.selected{background:#fff;color:var(--green);font-weight:700;box-shadow:0 1px 4px #26352f12}
.scene-toolbar{min-height:32px;margin-bottom:12px;gap:12px}.scene-toolbar>.legend{font-size:12px;color:var(--muted)}.legend i{width:8px;height:8px}.scene-toolbar>div{gap:4px}.scene-toolbar .text-button{border-color:transparent;background:transparent;color:var(--muted);font-size:12px;min-height:32px;padding:6px 10px;border-radius:6px}.scene-toolbar .text-button:hover{background:#f0f3ef;border-color:transparent}.scene-toolbar .text-button[aria-pressed=true]{color:var(--green);background:#edf3ee;border-color:transparent;font-weight:600}.scene-toolbar .icon-button{width:32px}
.playback{gap:16px;min-height:44px;margin-bottom:16px}.play-button{width:44px;height:44px;background:var(--green);box-shadow:none}.play-button:hover{transform:none;background:var(--green-deep);box-shadow:none}#speed{height:36px;min-width:112px;font-size:12px;border-color:var(--line);border-radius:7px}#timeline{height:6px;border:0}#timeline::-webkit-slider-thumb{width:20px;height:20px;background:var(--green);box-shadow:0 1px 4px #26352f25}
.scene-3d{border-color:#e6e8df;border-radius:12px}.two-sided-hall.minimal-scene .scene-station-label{box-shadow:0 2px 6px #26352f09!important;border-color:#e2e7df!important;border-radius:6px!important;background:#ffffffed!important;min-width:94px!important;padding:6px 8px!important;color:var(--ink)}.two-sided-hall.minimal-scene .scene-station-label span{color:#526359!important}.scene-label-layer>svg line{stroke:#aab8aa!important;stroke-opacity:.5!important;stroke-width:.75!important}
#live-counts{background:#fff;border:0;border-top:1px solid var(--line);border-radius:0;margin-top:16px;padding:16px 0 3px;min-height:70px}#live-counts>span{gap:9px;border-color:var(--line)}#live-counts .ui-icon{width:22px;height:22px;color:#62766b;stroke-width:1.65}#live-counts .count-content{font-size:11px;color:var(--muted);gap:3px}#live-counts b{font-size:21px;font-weight:650;letter-spacing:0;color:var(--ink);font-variant-numeric:tabular-nums}#live-counts b small{font-size:11px;color:var(--muted);font-weight:400}.canvas-hint{color:var(--muted);font-size:11px;padding-top:14px;letter-spacing:0}
#selection-details{border-radius:12px;box-shadow:none}#selection-details>summary{padding:14px 18px;font-size:14px;font-weight:500}#selection-details>summary>span:first-child{width:30px;height:30px;background:#f3f5f1}.inspection-hint{color:var(--muted)}.run-feedback{font-size:12px;color:var(--muted);margin:14px 4px 0}.run-feedback .ui-icon{width:16px;height:16px}.run-feedback span{color:var(--muted)}
.preset-card:has(input:checked){background:#f1f6f1;box-shadow:0 0 0 1px var(--green);border-color:var(--green)}.preset-card{box-shadow:none}.setup-parameters input,.setup-order select{background:#fff;box-shadow:none}.panel{border-radius:16px;box-shadow:var(--shadow)}
button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}.canteen-webgl{cursor:grab}.canteen-webgl:active{cursor:grabbing}
@media(max-width:1000px){.rail{grid-template-rows:64px 72px}.rail:before{height:64px}.simulation-clock{min-width:137px}.simulation-clock .clock{font-size:26px}.replay-title h2{font-size:18px}}
@media(max-width:700px){.rail{grid-template-rows:60px 66px}.rail:before{height:60px}.brand{font-size:21px}.brand-mark{width:34px;height:34px;line-height:34px;font-size:22px}.workflow-nav .nav{font-size:12px!important}.workflow-nav .nav span{width:29px;height:29px}.page-heading h1{font-size:26px}.page-heading .actions{gap:6px}.button{font-size:12px;padding:8px 11px}#page-live .scene-panel{padding:14px}.scene-toolbar>div{gap:2px}.scene-toolbar .text-button{padding:6px 7px;font-size:11px}.replay-title h2{font-size:17px}.simulation-clock .clock{font-size:26px}.playback{gap:12px;margin-bottom:12px}.play-button{width:40px;height:40px}#speed{min-width:94px}#live-counts{gap:14px 0;padding-top:14px}#live-counts b{font-size:18px}#live-counts .ui-icon{width:19px;height:19px}.two-sided-hall.minimal-scene .scene-station-label{min-width:29px!important}.inspection-hint{display:none}}

/* Readable essentials: dark text, clear actions, prominent measured values. */
:root{--ink:#172e25;--muted:#354b40;--green:#176447;--green-deep:#104b35}
body{color:var(--ink)}
.brand-subtitle,.page-heading p,.preset-card>span:last-child,.example-label,.replay-title p,.canvas-hint,.run-feedback,.run-feedback span,.inspection-hint{color:var(--muted);font-size:14px}
.workflow-nav .nav{font-size:16px!important;color:var(--ink)}.workflow-nav .nav span{color:var(--ink)}.workflow-nav .nav.active span{color:white}
.button,.text-button{font-size:15px}.button:not(.primary),.text-button{color:var(--ink)}.button .ui-icon{width:19px;height:19px}
[data-icon]{align-items:center;gap:8px}h2[data-icon],summary[data-icon],.preset-number{display:flex}.preset-number{height:30px;color:var(--green)}.preset-number .ui-icon{width:28px;height:28px}
.setup-parameters label{font-size:15px;color:var(--ink)}.setup-parameters input{font-size:22px;font-weight:650;height:48px}.setup-grades h3{font-size:17px}.setup-parameters .panel-heading>span{font-size:24px;color:var(--green);font-weight:750}.setup-order{font-size:15px}
#page-live .scenario-bar{font-size:16px;color:var(--ink)}#scenario-detail{color:var(--muted)}.replay-title h2{font-size:21px}.simulation-clock{min-width:183px}.simulation-clock>span{font-size:14px;color:var(--ink)}.simulation-clock .clock{font-size:38px;color:var(--green);font-weight:750}
.scene-toolbar>.legend{font-size:14px;color:var(--ink)}.scene-toolbar .text-button{display:inline-flex;font-size:14px;color:var(--ink);gap:6px;min-height:38px}.scene-toolbar .ui-icon{width:17px;height:17px;flex-shrink:0}.segmented button{font-size:14px;color:var(--ink)}#speed{font-size:14px;color:var(--ink);height:40px}
#live-counts .count-content{font-size:14px;color:var(--ink)}#live-counts b{font-size:30px;font-weight:750;color:var(--green)}#live-counts b small{font-size:13px;color:var(--ink)}#live-counts .ui-icon{width:25px;height:25px;color:var(--green)}
#selection-details>summary{font-size:16px;color:var(--ink)}.student-locate label,.student-locate>span,#inspect-text{color:var(--ink);font-size:14px}#inspect-detail dt{color:var(--muted);font-size:14px}#inspect-detail dd{color:var(--ink);font-size:18px;font-weight:650}
#kpis .kpi .label{display:flex;gap:9px;align-items:center;color:var(--ink);font-size:16px;font-weight:650}#kpis .label .ui-icon{width:23px;height:23px;color:var(--green)}#kpis .kpi strong{font-size:44px;line-height:1.3;font-weight:750;color:var(--ink)}#kpis .kpi:first-child strong{font-size:58px;color:var(--green)}#kpis .unit{font-size:16px;color:var(--ink)}#result-summary{color:var(--ink);font-size:16px}#result-grades th,#result-grades td{color:var(--ink);font-size:15px}#result-grades td{font-weight:600}.chart-explanation,.research-tools>summary{font-size:15px;color:var(--ink)}
.study-setup label,.study-summary,.study-actions,.study-method,.study-note{color:var(--ink)}.study-results th,.study-results td{color:var(--ink)}
@media(max-width:850px){.simulation-clock{min-width:160px}.simulation-clock .clock{font-size:32px}.scene-toolbar{flex-wrap:wrap}.scene-toolbar>div{flex-wrap:wrap}.replay-title p{display:none}#live-counts b{font-size:27px}}
@media(max-width:700px){.workflow-nav .nav{font-size:14px!important;gap:7px}.rail>.workflow-nav{gap:8px}.button{font-size:14px}.brand-subtitle{display:none}.preset-card .preset-number{display:flex;position:absolute;left:16px;top:19px}.preset-card{padding-left:57px}.preset-card>span:last-child{font-size:14px}.setup-parameters label{font-size:14px}.setup-parameters input{font-size:20px}.setup-common{gap:16px 10px}.setup-parameters .panel-heading>span{font-size:21px}#page-live .scenario-bar{font-size:14px}.simulation-clock{min-width:151px}.simulation-clock>span{font-size:13px}.simulation-clock .clock{font-size:31px}.replay-title{flex-basis:calc(100% - 164px)}.replay-title h2{font-size:19px}.replay-symbol{display:none}.scene-toolbar .text-button{font-size:13px;padding:6px}.scene-toolbar>div{justify-content:flex-start;gap:3px}.scene-toolbar .icon-button{margin-left:auto}.scene-panel .segmented{top:69px}.scene-toolbar>.legend{font-size:13px}#speed{font-size:13px;max-width:115px}#live-counts>span{flex-direction:column;gap:5px;text-align:center}#live-counts .count-content{font-size:13px}#live-counts b{font-size:27px}#live-counts .ui-icon{width:22px;height:22px}.canvas-hint{font-size:12px}.student-locate .button{font-size:13px}#kpis .kpi .label{font-size:14px}#kpis .kpi strong{font-size:34px}#kpis .kpi:first-child strong{font-size:48px}#kpis .unit{font-size:14px}.run-feedback,.run-feedback span{font-size:13px}}
h2[data-icon]>.ui-icon{width:22px;height:22px;flex:0 0 22px}#kpis .kpi .label{justify-content:flex-start}#scenario-name,#scenario-detail{color:var(--ink);font-size:16px}#scenario-name{font-weight:650}#result-summary p,#result-grades tbody th{color:var(--ink)}#queue-chart .chart-axis{fill:var(--ink);font-size:13px}
.study-context,.study-action span,.study-rules p,.study-result-heading p,.study-next,.study-gap-intro p,.study-setup-title span,.study-rules span{color:var(--muted);font-size:14px}.study-controls label,.study-table,.study-table thead,.study-tabs button{color:var(--ink);font-size:15px}.study-table tbody td,.study-table tbody th{color:var(--ink)}.study-chart-heading{fill:var(--ink)}
.two-sided-hall.minimal-scene .scene-station-label b{font-size:13px!important}.two-sided-hall.minimal-scene .scene-station-label span{font-size:12px!important;color:var(--ink)!important}
@media(max-width:700px){#scenario-name,#scenario-detail{font-size:14px}.scene-panel>.panel-heading{display:grid;grid-template-columns:1fr auto;gap:10px}.replay-title{grid-column:1;grid-row:1}.simulation-clock{grid-column:2;grid-row:1;min-width:145px;padding-left:0}.scene-panel .segmented{top:68px}.two-sided-hall.minimal-scene .scene-station-label b{font-size:11px!important}}

/* The order blocks share the exact cohort palette used by the renderer. */
.grade-order-blocks{display:flex;gap:14px;margin-top:14px;max-width:640px}.grade-order-block{--grade:#277f68;--grade-bg:#edf7f2;display:flex;align-items:center;gap:14px;flex:1;min-width:0;border:1px solid var(--grade);border-left:5px solid var(--grade);border-radius:12px;background:var(--grade-bg);color:var(--ink);padding:15px 18px;cursor:grab;touch-action:none;user-select:none;font-size:18px}.grade-order-block[data-grade="1"]{--grade:#e68b50;--grade-bg:#fff3e9}.grade-order-block[data-grade="2"]{--grade:#5c91bf;--grade-bg:#edf4fb}.order-number{font-size:13px;font-weight:700;color:var(--ink)}.grade-order-block svg{width:16px;height:20px;margin-left:auto;fill:none;stroke:var(--grade);stroke-width:3;stroke-linecap:round}.grade-order-block.dragging{outline:3px solid var(--grade);box-shadow:0 5px 16px #163b2722;cursor:grabbing}.grade-order-block:focus-visible{outline:3px solid var(--green);outline-offset:3px}
#page-live .scenario-bar>div:first-child{display:flex;align-items:baseline;gap:18px 26px;flex-wrap:wrap}.scenario-fields{display:flex;gap:18px 26px;flex-wrap:wrap}.scenario-field{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap;color:var(--ink);font-size:16px!important}.scenario-field strong{display:inline-block;min-width:48px;padding:1px 7px 4px;border-bottom:1px solid #71867b;color:var(--ink);font-size:18px;font-weight:650}.scenario-field small{font-size:14px;font-weight:500;margin-left:5px}#scene-labels,#peak{white-space:nowrap}
.scenario-field small{font:inherit;margin-left:0}
#result-scenario{margin-top:16px;gap:14px 26px}
#queue-chart{position:relative;outline-offset:6px}
#queue-chart svg{display:block;width:100%;height:248px}
#queue-chart .chart-axis{fill:#344d42;font-size:13px}
.queue-tooltip{position:absolute;top:43px;min-width:150px;max-width:100%;padding:13px 16px;background:#fff;border:1px solid #cbd9d0;border-radius:12px;box-shadow:0 5px 18px #1d3d2d18;color:#213f32;pointer-events:none;font-size:14px;line-height:1.6}
.queue-tooltip[hidden]{display:none}
.queue-tooltip time{display:block;font-weight:700;padding-bottom:6px;border-bottom:1px solid #e5ece7;margin-bottom:6px;font-variant-numeric:tabular-nums}
.queue-tooltip span{display:flex;justify-content:space-between;gap:22px}
.queue-tooltip strong{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}
@media(max-width:700px){.grade-order-blocks{gap:8px}.grade-order-block{padding:13px 9px;gap:7px;font-size:16px}.grade-order-block svg{width:12px}.scenario-field{font-size:14px!important}.scenario-field strong{font-size:16px}.scenario-fields{gap:10px 16px}#page-live .scenario-bar>div:first-child{gap:12px}.scene-toolbar>div{flex-wrap:wrap}#peak,#scene-labels{font-size:13px}#result-scenario{gap:10px 16px}.queue-tooltip{min-width:128px;padding:10px 12px}.queue-tooltip span{gap:14px}}

.minimal-scene:not(.show-labels) .scene-label-layer{display:none!important}.minimal-scene.show-labels .scene-wayfinding{display:block!important}
