/* Digital twin theme: full-bleed space, floating instruments, cold white / electric blue. */
:root{--ink:var(--theme-152437, #152437);--muted:var(--theme-7c8ca1, #7c8ca1);--line:var(--theme-dce4ee, #dce4ee);--green:var(--theme-087de8, #087de8);--green-dark:var(--theme-0065c3, #0065c3);--paper:var(--theme-f4f8fc, #f4f8fc);color:var(--theme-18283e, #18283e);background:var(--theme-d0d9e5, #d0d9e5);font-size:13px;font-family:"Segoe UI","Microsoft YaHei",sans-serif}
body{height:100vh;overflow:hidden}button{transition:background .16s,color .16s,box-shadow .16s}select,input[type=number]{background:var(--theme-f5f8fc, #f5f8fc);color:var(--theme-455872, #455872);border-color:var(--theme-dce4ed, #dce4ed);border-radius:6px;padding:9px;outline-color:var(--theme-1685f5, #1685f5)}input[type=checkbox],input[type=range]{accent-color:var(--theme-1384ee, #1384ee)}input[type=range]{height:3px}.app-header{position:fixed;inset:0 0 auto;height:78px;z-index:30;background:var(--theme-f9fbfeef, #f9fbfeef);backdrop-filter:blur(22px);border-bottom:1px solid var(--theme-aebcd077, #aebcd077);box-shadow:0 2px 10px var(--theme-26395414, #26395414);padding:0 24px;gap:24px}.brand{gap:12px;min-width:236px}.brand-mark{width:40px;height:40px;display:grid;place-items:center;background:var(--theme-102038, #102038);color:white;border-radius:50%;font-size:37px;line-height:1;letter-spacing:0;font-weight:300}.brand b{font-size:18px;letter-spacing:.8px;color:var(--theme-172437, #172437)}.brand-cn{font-size:10px;font-weight:400;letter-spacing:.5px;color:var(--theme-6f8097, #6f8097)}.brand small{font-family:inherit;font-size:10px;letter-spacing:1.2px;color:var(--theme-77869b, #77869b);margin-top:6px}.main-nav{display:flex;height:100%;align-items:stretch;gap:15px;flex:1;justify-content:center}.main-nav button{position:relative;min-width:100px;color:var(--theme-66758b, #66758b);text-align:left;padding:0 13px;font-size:13px;font-weight:500}.main-nav small{display:block;font:7px var(--mono);letter-spacing:.6px;margin-top:5px;color:var(--theme-96a3b4, #96a3b4)}.main-nav button.active{color:var(--theme-087de8, #087de8)}.main-nav button.active::after{content:"";position:absolute;height:4px;bottom:0;background:linear-gradient(90deg,var(--theme-43b8ff, #43b8ff),var(--theme-0076e7, #0076e7));left:11px;right:11px;border-radius:3px 3px 0 0;box-shadow:0 -2px 14px var(--theme-048bff40, #048bff40)}.main-nav button:hover{background:var(--theme-e9f3ff, #e9f3ff)}.header-project{margin:0;max-width:180px;flex-wrap:wrap;font-size:10px;gap:6px;color:var(--theme-7a8ba2, #7a8ba2)}.header-project #project-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:160px}.tag{display:none}.header-clock{border-left:1px solid var(--theme-cbd6e3, #cbd6e3);padding-left:22px;white-space:nowrap}.header-clock b{font:21px var(--mono);letter-spacing:-.7px;font-weight:400;color:var(--theme-26364b, #26364b)}.header-clock small{display:block;font:9px var(--mono);color:var(--theme-8191a6, #8191a6);margin-top:4px;text-align:right}.app-header>.quiet-button{width:27px;height:27px;border:1px solid var(--theme-aebcd0, #aebcd0);border-radius:50%;font-size:15px;color:var(--theme-70829b, #70829b)}.workspace{display:block;position:fixed;inset:78px 0 0;min-height:0!important;height:auto!important;max-width:none;background:var(--theme-d6dfe9, #d6dfe9)}.stage-column{position:absolute;inset:0;padding:0!important;display:block;min-width:0}.stage{position:absolute;inset:0;border:0;border-radius:0;min-height:0!important;max-height:none;background:var(--theme-d1dbe7, #d1dbe7)}.stage-toolbar{height:38px;position:absolute;top:20px;left:50%;transform:translateX(-50%);z-index:10;gap:8px;background:#ffffffde;border:1px solid var(--theme-bccbdd88, #bccbdd88);border-radius:8px;padding:4px 6px;box-shadow:0 4px 16px var(--theme-263d5814, #263d5814);backdrop-filter:blur(20px)}.view-tabs{gap:2px}.view-tabs button{padding:7px 12px;color:var(--theme-75879f, #75879f);border-radius:5px;font-size:11px;white-space:nowrap}.view-tabs button.active{background:var(--theme-e4f2ff, #e4f2ff);color:var(--theme-0077df, #0077df);box-shadow:none}.scene-tools{border-left:1px solid var(--theme-d8e2ee, #d8e2ee);padding-left:5px;gap:0}.icon-button{color:var(--theme-72859d, #72859d)}.icon-button:hover{color:var(--theme-007de9, #007de9);background:var(--theme-e5f1ff, #e5f1ff)}.scene-tools .icon-button{font-size:20px;width:28px;height:27px}.stage-caption{top:82px;left:336px;text-shadow:0 1px 2px #fff6;max-width:300px}.stage-caption .eyebrow{font-size:8px;color:var(--theme-7488a2, #7488a2);letter-spacing:1.6px}.stage-caption h2{font-size:23px!important;letter-spacing:.5px;font-weight:550;color:var(--theme-324a66, #324a66);margin:7px 0}.stage-caption p{color:var(--theme-8093ac, #8093ac);font-size:10px;letter-spacing:.7px}.stage-badge{top:auto;bottom:108px;left:50%;right:auto;transform:translateX(-50%);font:10px var(--mono);color:var(--theme-4f78a4, #4f78a4);background:var(--theme-f7fbffe3, #f7fbffe3);padding:6px 12px;border:1px solid var(--theme-bdcee2a6, #bdcee2a6)}.stage-badge .live-dot{background:var(--theme-218ff3, #218ff3)}.stage-bottom{left:336px;right:336px;bottom:22px}.layer-pills{justify-content:center;gap:4px}.layer-pills label{border:1px solid var(--theme-c8d5e4b3, #c8d5e4b3);background:var(--theme-f9fcffe3, #f9fcffe3);border-radius:5px;font-size:10px;color:var(--theme-657d9b, #657d9b);padding:7px 8px;box-shadow:0 2px 5px var(--theme-2a45690a, #2a45690a)}.stage-hints{color:var(--theme-617c9d, #617c9d);justify-content:center;font-size:10px;margin-top:11px;gap:20px}.north{position:fixed;right:320px;bottom:115px;border:1px solid var(--theme-9fb4ce, #9fb4ce);display:grid;place-items:center;border-radius:50%;width:35px;height:35px;background:var(--theme-f6faffca, #f6faffca);color:var(--theme-5b7ca5, #5b7ca5);box-shadow:0 2px 8px var(--theme-29446912, #29446912);font-size:12px}.control-panel,.results-panel{position:absolute;z-index:15;top:20px;bottom:24px;background:var(--theme-fdfefeeb, #fdfefeeb);backdrop-filter:blur(22px);border:1px solid var(--theme-b7c6d9b3, #b7c6d9b3);border-radius:10px;box-shadow:0 9px 30px var(--theme-324a6b16, #324a6b16);scrollbar-width:thin;scrollbar-color:var(--theme-bacddd, #bacddd) transparent;overflow-y:auto;overscroll-behavior:contain}.control-panel{left:22px;width:286px;padding:19px 20px 0;display:block;transition:transform .25s,opacity .25s}.control-panel.collapsed{transform:translateX(calc(-100% - 30px));opacity:0;pointer-events:none}.panel-intro{position:relative;border-bottom:1px solid var(--line);padding-bottom:17px}.eyebrow{font-size:8px;letter-spacing:1.3px;color:var(--theme-8a9cb3, #8a9cb3)}.panel-intro h1{font-size:17px;font-weight:500;line-height:1.3;margin:7px 0 5px;letter-spacing:.7px}.panel-intro p{font-size:10px;line-height:1.6;color:var(--theme-9cabbc, #9cabbc)}.panel-collapse{position:absolute;right:0;top:3px;color:var(--theme-90a2ba, #90a2ba);font-size:20px}.control-section{padding:17px 0;border-color:var(--theme-dde6ef, #dde6ef)}.section-heading{margin-bottom:12px}.section-heading h2,.section-heading h3{font-size:12px;font-weight:550;color:var(--theme-3d526d, #3d526d)}.step{color:var(--theme-afbed0, #afbed0);font-size:9px}#demo-preset{font-size:10px;margin-bottom:9px;background:var(--theme-edf5fe, #edf5fe);color:var(--theme-427ebc, #427ebc);border-color:var(--theme-cce0f5, #cce0f5)}.upload-zone{display:grid;grid-template-columns:28px 1fr;align-content:center;column-gap:8px;padding:12px;background:var(--theme-f2f7fd, #f2f7fd);border:1px dashed var(--theme-b5cee9, #b5cee9);border-radius:7px;text-align:left}.upload-zone:hover,.upload-zone.drag{background:var(--theme-e7f2ff, #e7f2ff);border-color:var(--theme-1b8bf0, #1b8bf0)}.upload-icon{grid-row:1/4;grid-column:1;margin:0;color:var(--theme-328cdf, #328cdf);font-size:26px;align-self:center;justify-self:center}.upload-zone strong{font-size:11px;color:var(--theme-4b698a, #4b698a)}.upload-zone>span:not(.upload-icon){font-size:9px;margin-top:4px;color:var(--theme-8d9fb5, #8d9fb5)}.upload-zone small{font-size:7px;color:var(--theme-8aa5c3, #8aa5c3);margin-top:7px}.model-info{gap:7px;margin-top:12px}.file-symbol{font-size:22px;color:var(--theme-82a1c4, #82a1c4)}.model-info b{font-size:10px;color:var(--theme-4d6d91, #4d6d91)}.model-info small{font-size:8px;color:var(--theme-9aadc3, #9aadc3)}.import-options{font-size:10px;margin-top:10px}.import-options summary{color:var(--theme-6c8bb1, #6c8bb1)}.import-options summary span{color:var(--theme-a4b4c8, #a4b4c8)}.small-button{color:var(--theme-6081a7, #6081a7);border-color:var(--theme-ccdced, #ccdced);background:var(--theme-f1f6fc, #f1f6fc)}.range-label{margin:16px 0;font-size:11px;color:var(--theme-5d7490, #5d7490)}.range-label output{font:11px var(--mono);color:var(--theme-1984e5, #1984e5)}.form-grid{margin-top:13px;gap:8px}.form-grid label,.stack-label{font-size:10px;color:var(--theme-8a9db5, #8a9db5)}.form-grid select,.stack-label select{font-size:10px}.stack-label{margin-top:14px}.hint{font-size:9px;line-height:1.8;color:var(--theme-94a7bf, #94a7bf)}.profile-key{font-size:9px;color:var(--theme-8ca1ba, #8ca1ba);gap:13px}.control-foot{font-size:8px;color:var(--theme-9cb1c9, #9cb1c9);padding:17px 0}.status-dot,.live-dot{background:var(--theme-1685e9, #1685e9)}.results-panel{right:22px;width:286px;padding:20px;display:flex;flex-direction:column}.results-heading{padding-bottom:16px;border-bottom:1px solid var(--theme-d6e1ee, #d6e1ee)}.results-heading h2{font-size:18px;color:var(--theme-304c6f, #304c6f);margin-top:7px;letter-spacing:.5px}.record-tag{color:var(--theme-4291d8, #4291d8);border-color:var(--theme-cce0f3, #cce0f3);background:var(--theme-f1f8ff, #f1f8ff);font:8px var(--mono);padding:5px 6px}.primary-metric{padding:19px 0 16px;border-color:var(--theme-dce6f0, #dce6f0)}.primary-metric>span{color:var(--theme-8ba0b8, #8ba0b8);font-size:10px}.primary-metric strong{color:var(--theme-087de8, #087de8);font-size:43px}.primary-metric p{color:var(--theme-a5b6ca, #a5b6ca);font-size:9px}.primary-metric small{color:var(--theme-8eaac8, #8eaac8)}.primary-metric svg{width:92px;filter:drop-shadow(0 3px 5px var(--theme-1886ed24, #1886ed24))}#sparkline{stroke:var(--theme-1888ee, #1888ee)}.metric-grid{gap:19px 14px;padding:20px 0}.metric-grid span{color:var(--theme-8aa0bc, #8aa0bc);font-size:10px}.metric-grid b{font-size:25px;color:var(--theme-3878b8, #3878b8);margin:7px 0}.metric-grid>div:nth-child(1) b{color:#df9b41}.metric-grid>div:nth-child(2) b{color:#dd6e69}.metric-grid small{font-size:8px;color:var(--theme-a6b6c9, #a6b6c9)}.metric-grid b small{color:var(--theme-a1b4cc, #a1b4cc)}.result-section{padding:17px 0;border-color:var(--theme-dce5ef, #dce5ef)}.result-section select{font-size:10px;border-color:var(--theme-d5e1ef, #d5e1ef);background:var(--theme-f2f7fd, #f2f7fd);color:var(--theme-647fa2, #647fa2);padding:8px}.text-button{color:var(--theme-7b9dc3, #7b9dc3);font-size:9px}.text-button:hover{color:var(--theme-0787f3, #0787f3)}.heat-legend{height:7px;background:linear-gradient(90deg,#2679f2,#2ec5f0,#56d9bf,#e2e47d,#ef8b55,#d94f63);border-radius:3px}.legend-labels{color:var(--theme-95adc9, #95adc9);font-size:8px}.analysis-pair{color:var(--theme-8da5c1, #8da5c1);font-size:9px;margin-top:16px}.analysis-pair b{color:var(--theme-5a88bb, #5a88bb);font-size:16px}.goal-row{color:var(--theme-7c96b6, #7c96b6)}.goal-marker{background:var(--theme-edf6ff, #edf6ff);border-color:var(--theme-bcd5ee, #bcd5ee);color:var(--theme-428fda, #428fda);font-size:8px}.goal-row small{color:var(--theme-a1b7d0, #a1b7d0);font-size:8px}.goal-row button:first-of-type{font-size:10px}.goal-remove{color:var(--theme-a7b9ce, #a7b9ce)}.event-section{flex:none;min-height:140px}.count-tag{border-color:var(--theme-d7e3f1, #d7e3f1);color:var(--theme-81a4cc, #81a4cc)}.empty-state{color:var(--theme-9bb2ce, #9bb2ce)}.event-row{border-color:var(--theme-e5edf6, #e5edf6)}.event-row b{color:var(--theme-7090b4, #7090b4)}.event-row small{color:var(--theme-9fb4cd, #9fb4cd)}.event-icon{background:#fff2de;color:#dba250}.event-icon.blocked{background:#fde9e9;color:#d67c78}#event-list{max-height:180px}.export-button{border-color:var(--theme-bad3ee, #bad3ee);color:var(--theme-3b83c2, #3b83c2);background:var(--theme-edf6ff, #edf6ff);font-size:11px;padding:11px;margin-top:12px}.export-button span{color:var(--theme-82a8ce, #82a8ce);font-size:8px}.playback-bar{position:absolute;bottom:83px;left:50%;transform:translateX(-50%);z-index:12;height:52px;min-height:0;gap:9px;padding:7px 12px;background:var(--theme-fdfefeec, #fdfefeec);border:1px solid var(--theme-bccfe3b8, #bccfe3b8);border-radius:9px;box-shadow:0 6px 22px var(--theme-27436521, #27436521);backdrop-filter:blur(18px);white-space:nowrap}.play-button{background:linear-gradient(135deg,var(--theme-2eabff, #2eabff),var(--theme-0878e6, #0878e6));box-shadow:0 3px 9px var(--theme-0789ed25, #0789ed25);min-width:108px;height:35px;border-radius:5px;font-size:11px}.play-button:hover{background:var(--theme-0873d6, #0873d6)}.playback-time{margin-left:1px;min-width:61px}.playback-time b{font-size:18px;letter-spacing:0;color:var(--theme-527cac, #527cac)}.playback-time small{font-size:6px;color:var(--theme-94abc7, #94abc7)}.playback-divider{background:var(--theme-d5e2f0, #d5e2f0);height:25px;margin:0 2px}.playback-label{font-size:9px;color:var(--theme-8aa4c4, #8aa4c4)}.speed-tabs button{color:var(--theme-7f9cbd, #7f9cbd);padding:6px;font-size:10px}.speed-tabs .active{background:var(--theme-e1efff, #e1efff);color:var(--theme-167ed9, #167ed9)}.frame-meter{font-size:8px;color:var(--theme-7ca4ce, #7ca4ce);display:flex;min-width:44px;margin-left:7px}.method-note{position:absolute;bottom:0;left:0;right:0;z-index:11;padding:0 14px;border:0;height:22px;display:flex;align-items:center;background:var(--theme-ecf2f8b3, #ecf2f8b3);backdrop-filter:blur(12px)}.method-note>span{display:none}.method-note p{font-size:8px;line-height:1.2;max-width:none;color:var(--theme-90a3bb, #90a3bb)}.method-note b{color:var(--theme-7593b7, #7593b7)}.method-note button{font-size:8px;color:var(--theme-6b8caf, #6b8caf);margin:0}.loading{background:var(--theme-e8f1fbd9, #e8f1fbd9);color:var(--theme-5089bf, #5089bf)}.loading small{color:var(--theme-8baccc, #8baccc)}.spinner{border-color:var(--theme-c5dced, #c5dced);border-top-color:var(--theme-1d92f3, #1d92f3)}.toast{background:var(--theme-163b66ed, #163b66ed);border:1px solid var(--theme-7aa8d355, #7aa8d355);box-shadow:0 5px 25px var(--theme-19355328, #19355328);bottom:155px;color:var(--theme-edf7ff, #edf7ff);font-size:12px}.toast.error{background:#87584feF}.selection-card{right:325px;top:100px;background:var(--theme-f9fcfff0, #f9fcfff0);border-color:var(--theme-b5cce6, #b5cce6);color:var(--theme-7898bf, #7898bf);box-shadow:0 5px 22px var(--theme-23487518, #23487518);min-width:180px;font-size:11px}.selection-card b{color:var(--theme-237dc8, #237dc8)}dialog{background:var(--theme-f7fbff, #f7fbff);color:var(--theme-466993, #466993);border-color:var(--theme-bbd1e9, #bbd1e9)}dialog h2{color:var(--theme-315e91, #315e91)}dialog p{color:var(--theme-819dbf, #819dbf)}dialog::backdrop{background:var(--theme-193f6a4d, #193f6a4d)}.dialog-close{color:var(--theme-81a0c4, #81a0c4)}.north::after{content:""}
@media(min-width:1700px){.control-panel,.results-panel{width:308px}.control-panel{left:28px}.results-panel{right:28px}.stage-caption{left:368px}.stage-bottom{left:370px;right:370px}.north{right:352px}}
@media(max-width:1250px){.app-header{padding:0 17px;gap:15px}.brand{min-width:205px}.brand-cn{display:none}.main-nav{gap:0}.main-nav button{min-width:83px;padding:0 8px;font-size:12px}.main-nav small{font-size:6px}.header-project{display:none}.header-clock{padding-left:15px}.control-panel,.results-panel{width:254px;padding:16px}.control-panel{left:15px}.results-panel{right:15px}.stage-caption{left:291px;top:76px}.stage-caption h2{font-size:20px!important}.stage-bottom{left:284px;right:284px}.layer-pills label{padding:6px;font-size:8px}.north{right:283px}.selection-card{right:284px}.stage-toolbar{top:18px}.playback-label,.playback-divider{display:none}.frame-meter{display:flex}}
@media(max-width:1000px){.header-clock{display:none}.main-nav{justify-content:flex-end}.control-panel{width:229px;left:12px;padding:14px}.results-panel{width:229px;right:12px;padding:14px;display:flex}.stage-caption{left:265px;top:78px}.stage-caption h2{font-size:17px!important}.stage-caption p{font-size:9px;max-width:230px}.stage-bottom{left:255px;right:255px}.north{right:255px}.selection-card{right:255px}.playback-bar{bottom:91px}.stage-toolbar{top:16px}.view-tabs button{font-size:10px;padding:7px 9px}}
@media(max-width:760px){body{height:auto;overflow:auto}.app-header{height:65px;position:sticky;padding:0 14px;gap:10px}.brand{min-width:0}.brand-mark{width:32px;height:32px;font-size:30px}.brand b{font-size:14px}.brand small{font-size:8px;letter-spacing:0}.main-nav{margin-left:auto;flex:0;gap:3px}.main-nav button{min-width:0;padding:0 9px;font-size:10px}.main-nav small{display:none}.main-nav button:nth-child(2),.main-nav button:nth-child(4){display:none}.app-header>.quiet-button{display:none}.workspace{position:relative;inset:auto;display:flex;flex-direction:column;min-height:0}.stage-column{position:relative;inset:auto;order:0;height:78vh;min-height:570px;padding:0!important;flex-shrink:0}.stage{position:absolute;inset:0;height:auto;min-height:0}.stage-toolbar{top:12px;left:14px;right:14px;transform:none;justify-content:space-between;height:35px}.view-tabs button{font-size:10px;padding:6px 9px}.stage-caption{left:19px;top:66px}.stage-caption h2{font-size:21px!important}.stage-caption p{max-width:270px}.control-panel,.results-panel{position:relative;inset:auto;bottom:auto;top:auto;order:1;width:auto;margin:14px 12px 0;max-height:none;overflow:visible;border-radius:9px;padding:20px;display:block;background:var(--theme-fcfdff, #fcfdff)}.control-panel{display:grid;grid-template-columns:1fr 1fr;gap:0 17px}.panel-intro{grid-column:1/-1}.panel-intro p{display:block}.panel-collapse{display:none}.control-panel.collapsed{transform:none;opacity:1;pointer-events:auto}.control-section{min-width:0}.upload-zone{padding:10px 7px;grid-template-columns:20px 1fr}.upload-zone strong{font-size:10px}.upload-zone small{font-size:6px}.model-info small{font-size:7px}.model-info b{font-size:9px}.profile-key{gap:6px;font-size:8px}.control-foot{grid-column:1/-1}.results-panel{order:2;margin-bottom:14px;display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.results-heading{grid-column:1/-1}.primary-metric{border:0}.metric-grid{grid-column:2;padding-top:20px;gap:14px}.result-section{grid-column:auto}.event-section{grid-column:2}.destinations{grid-column:1}.export-button{grid-column:1/-1;display:flex}.stage-bottom{left:14px;right:14px;bottom:29px}.layer-pills{gap:3px}.layer-pills label{font-size:8px;padding:5px}.stage-hints{font-size:8px;margin-top:7px}.north{position:absolute;right:0;bottom:70px}.stage-badge{bottom:139px;font-size:9px}.playback-bar{bottom:78px;left:50%;gap:4px;padding:7px 8px;max-width:calc(100% - 24px);height:47px}.playback-bar>.icon-button{width:24px}.play-button{min-width:94px;gap:7px;font-size:10px;height:32px}.playback-time{min-width:57px}.playback-time b{font-size:16px}.speed-tabs{gap:0}.speed-tabs button{padding:5px;font-size:9px}.frame-meter{display:none}.method-note{height:21px}.method-note p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:7px}.method-note button{display:none}.selection-card{right:16px;top:152px;min-width:160px}.toast{bottom:160px;font-size:10px;max-width:92%}}
.control-panel .section-heading h2,.results-panel .section-heading h3{font-size:13px}.range-label{font-size:12px;color:var(--theme-486380, #486380)}.stack-label,.form-grid label{color:var(--theme-7189a5, #7189a5)}.stack-label select,.form-grid select{font-size:11px}.results-panel .primary-metric>span,.metric-grid span{font-size:11px;color:var(--theme-6f89a7, #6f89a7)}.results-panel .hint{color:var(--theme-8199b7, #8199b7)}.goal-row button:first-of-type{color:var(--theme-547da9, #547da9)}.hint{font-size:10px}.import-options summary{font-size:10px}.stage-caption h2{color:var(--theme-263f61, #263f61)}

.cell-inspector{position:absolute;right:328px;top:93px;width:325px;max-height:calc(100% - 210px);overflow:auto;scrollbar-width:thin;z-index:22;padding:22px;background:var(--theme-fcfdfff2, #fcfdfff2);backdrop-filter:blur(22px);border:1px solid var(--theme-9eb8d7, #9eb8d7);border-radius:10px;box-shadow:0 12px 44px var(--theme-284c7529, #284c7529);color:var(--theme-536d8a, #536d8a);font-size:11px;line-height:1.8}.cell-inspector h3{font-size:19px;font-weight:500;color:var(--theme-263c59, #263c59);margin:6px 0}.cell-inspector h4{font-size:11px;color:var(--theme-304e71, #304e71);margin:15px 0 6px}.inspector-close{position:absolute;right:9px;top:6px;font-size:21px;color:var(--theme-8a9eb7, #8a9eb7)}.cell-position{font:9px Consolas,monospace;color:var(--theme-8da3be, #8da3be)}.cell-metrics{display:grid;grid-template-columns:1fr 1fr 1fr;padding:15px 0 12px;border-bottom:1px solid var(--theme-dce6f0, #dce6f0);gap:10px;text-align:center;font-size:9px;color:var(--theme-94a7bd, #94a7bd)}.cell-metrics b{display:block;font:25px Consolas,monospace;color:#dc6e5d;margin-bottom:3px}.cell-metrics span:last-child b{color:var(--theme-889caf, #889caf)}.cause-row{display:flex;align-items:flex-start;gap:8px;padding:8px 0;border-bottom:1px solid var(--theme-e7edf5, #e7edf5);font-size:10px}.cause-row span{flex:1}.cause-row b{font:10px Consolas,monospace;color:#b37d65;white-space:nowrap;padding-top:2px}.cell-facts{display:grid;grid-template-columns:82px 1fr;gap:6px 9px;margin-top:15px;font-size:10px}.cell-facts>span{color:var(--theme-92a5be, #92a5be)}.cell-facts>b{font-weight:400;color:var(--theme-597597, #597597)}.evidence-note{font-size:9px;line-height:1.85;background:var(--theme-edf4fc, #edf4fc);border-radius:5px;padding:9px 10px;margin-top:15px;color:var(--theme-8da3bd, #8da3bd)}.launch-note{font-size:9px;line-height:1.8;color:var(--theme-7f9dbf, #7f9dbf);padding-top:12px}.goal-actions{display:flex;gap:7px}.goal-actions .small-button{font-size:10px;padding:8px 3px;color:var(--theme-2a83ce, #2a83ce);background:var(--theme-edf7ff, #edf7ff);border-color:var(--theme-c9ddf1, #c9ddf1)}.goal-source{display:block!important;margin-top:4px;font:8px Consolas,monospace;color:var(--theme-9cb1c9, #9cb1c9)!important}.destinations #goal-list{margin-top:13px;max-height:225px;overflow:auto;scrollbar-width:thin}.goal-row{align-items:flex-start;padding:3px 0}.goal-row .goal-marker{margin-top:1px}.goal-row .goal-remove{margin-top:1px}.goal-row button:first-of-type{font-size:11px;color:var(--theme-496d94, #496d94)}.stack-label input[type=text],#goal-form input{border:1px solid var(--theme-d6e1ee, #d6e1ee);background:var(--theme-f5f9ff, #f5f9ff);border-radius:4px;width:100%;padding:8px;color:var(--theme-4e708e, #4e708e);font-size:11px;margin-top:7px}#goal-form .form-grid{gap:9px}#goal-policy{font-size:11px}.heat-legend{background:linear-gradient(90deg,#28b9e8,#ffcf61,#ffa04c,#f15d4b,#c7335d)}.control-panel,.results-panel{background:var(--theme-fcfdfff0, #fcfdfff0)}.main-nav button{color:var(--theme-384d67, #384d67)}.main-nav small{color:var(--theme-8e9bad, #8e9bad)}.panel-intro h1,.results-heading h2{color:var(--theme-25354d, #25354d)}.section-heading h2,.section-heading h3{color:var(--theme-334962, #334962)}.range-label{color:var(--theme-4b617d, #4b617d)}.stage-caption{pointer-events:none}
@media(max-width:1250px){.cell-inspector{right:285px;width:300px}}@media(max-width:1000px){.cell-inspector{right:256px;width:290px}}@media(max-width:760px){.cell-inspector{right:12px;left:12px;width:auto;top:132px;max-height:calc(100% - 285px);padding:17px}.cell-inspector h3{font-size:17px}.cell-metrics{padding:10px 0}.cell-inspector h4{margin-top:10px}.goal-actions .small-button{font-size:10px}.destinations #goal-list{max-height:220px}.cell-facts{grid-template-columns:85px 1fr}}

@media(max-width:760px){.stage-toolbar .view-tabs button{padding:6px 7px;font-size:9px}.stage-toolbar #show-controls{display:none}.stage-toolbar .scene-tools .icon-button{width:24px}.stage-toolbar{gap:3px}}

#resident-controls,#resident-results{display:none}.resident-mode #resident-controls,.resident-mode #resident-results{display:block}.resident-mode #crowd-controls{display:none}#operation-mode{margin-bottom:8px;font-size:10px;color:var(--theme-2c6fae, #2c6fae);background:var(--theme-e9f4ff, #e9f4ff);border-color:var(--theme-b9d8f2, #b9d8f2)}.resident-task-list{display:grid;gap:10px;margin:17px 0;color:var(--theme-527497, #527497);font-size:11px}.resident-task-list label{display:flex;gap:7px;align-items:center}.resident-task-list input{margin:0}.resident-parameters{font-size:10px;color:var(--theme-6d89ab, #6d89ab);margin-top:13px}.resident-parameters summary{cursor:pointer}.resident-parameters input{width:100%;padding:7px;margin-top:6px;background:var(--theme-f4f8fe, #f4f8fe);border:1px solid var(--theme-d1e1ef, #d1e1ef);border-radius:4px;color:var(--theme-486d94, #486d94)}#resident-run{width:100%;margin-top:4px}.resident-live{font-size:11px;line-height:1.8;color:var(--theme-3e7fb8, #3e7fb8);background:var(--theme-edf6ff, #edf6ff);padding:10px;border-radius:5px;margin-bottom:13px}.task-table{border-collapse:collapse;width:100%;font-size:10px;color:var(--theme-6182a3, #6182a3)}.task-table th,.task-table td{padding:7px 4px;border-bottom:1px solid var(--theme-e0eaf4, #e0eaf4);text-align:left;font-weight:400}.task-table th{color:var(--theme-7d99b7, #7d99b7)}.task-table .task-pass{color:var(--theme-268a7b, #268a7b)}.task-table .task-fail{color:#c47565}.task-reason td{font-size:9px;color:var(--theme-95a9bd, #95a9bd);line-height:1.7;padding-top:0}.task-reason{background:var(--theme-f7fafe, #f7fafe)}#resident-comparison h4,#resident-changes h4{font-size:11px;margin:18px 0 8px;color:var(--theme-4d739c, #4d739c)}#resident-changes p{font-size:10px;line-height:1.8;color:var(--theme-8aa1b8, #8aa1b8);margin-top:10px}#resident-changes b{font-weight:500;color:var(--theme-5784ad, #5784ad)}.resident-mode .stage-caption h2{font-size:22px!important}.resident-mode #resident-results{order:0}

@media(max-width:760px){.stage-toolbar .view-tabs button{font-size:8px;padding:6px 5px}.stage-toolbar .scene-tools #snapshot-button{display:none}}
.resident-comparing #resident-table{max-height:250px;overflow:auto;scrollbar-width:thin;margin-top:17px}#resident-results .goal-actions{margin-bottom:14px}.resident-parameters .hint{font-size:9px}
.resident-mode .primary-metric,.resident-mode .metric-grid{display:none}
.resident-mode .panel-intro p{font-size:10px}.resident-mode #resident-controls{padding-top:14px}
.resident-diy-field{display:none}.resident-diy-active .resident-diy-field{display:block}.resident-diy-field textarea{width:100%;margin-top:7px;padding:8px;border:1px solid var(--theme-d1e1ef, #d1e1ef);border-radius:5px;background:var(--theme-f4f8fe, #f4f8fe);color:var(--theme-486d94, #486d94);resize:vertical;font:10px/1.6 "Segoe UI","Microsoft YaHei",sans-serif}.resident-ai-actions{display:flex;gap:7px;margin-top:9px}.resident-ai-actions .small-button{flex:1;font-size:9px;padding:8px 4px}.resident-ai-status{margin-top:8px}.task-queue-row{display:grid;grid-template-columns:24px 1fr;gap:5px;align-items:start;padding:7px 8px;background:var(--theme-f5f9fe, #f5f9fe);border:1px solid var(--theme-dce8f4, #dce8f4);border-radius:5px}.task-queue-row>span{font:10px Consolas,monospace;color:var(--theme-2788db, #2788db)}.task-queue-row b{font-size:10px;font-weight:500;color:var(--theme-55789e, #55789e)}.task-queue-row small{display:block;margin-top:3px;font:8px Consolas,monospace;color:var(--theme-98aec6, #98aec6)}
.standards-card{margin:10px 0 15px;padding:10px 11px;background:var(--theme-f4f8fd, #f4f8fd);border:1px solid var(--theme-d9e6f3, #d9e6f3);border-radius:6px}.standards-heading{display:flex;align-items:center;justify-content:space-between}.standards-heading h4{font-size:11px;color:var(--theme-4d739c, #4d739c)}.standards-status{font-size:9px;padding:3px 6px;border-radius:4px;background:var(--theme-edf3f8, #edf3f8);color:var(--theme-7d96ad, #7d96ad)}.standards-status.attention{background:#fff1e8;color:#c27855}.standards-status.pass{background:#e9f7f1;color:var(--theme-2d8b78, #2d8b78)}.standards-row{display:flex;gap:7px;padding:6px 0;border-top:1px solid var(--theme-e3edf6, #e3edf6);font-size:9px;line-height:1.6;color:var(--theme-7b93ad, #7b93ad)}.standards-row b{font:9px Consolas,monospace;color:#b87963;min-width:92px}
#injury-rescue-controls{border-top:1px solid var(--theme-dce6f0, #dce6f0)}.rescue-active #injury-rescue-controls{background:var(--theme-f7fbff, #f7fbff)}.rescue-active #injury-rescue-status{color:#b56d54}
/* F toggles a clean viewport for walkthroughs and screenshots. */
.app-header,.control-panel,.results-panel,.stage-toolbar,.stage-caption,.stage-badge,.stage-bottom,.playback-bar,.method-note{transition:opacity .2s ease,transform .2s ease}
body.menus-hidden .app-header,body.menus-hidden .control-panel,body.menus-hidden .results-panel,body.menus-hidden .stage-toolbar,body.menus-hidden .stage-caption,body.menus-hidden .stage-badge,body.menus-hidden .stage-bottom,body.menus-hidden .playback-bar,body.menus-hidden .method-note{opacity:0!important;pointer-events:none!important;transform:translateY(-12px)!important}
body.menus-hidden .workspace{inset:0}
[id="model-replace-controls"] .model-replace-upload{margin-top:12px;padding:12px 5px}
[id="model-replace-controls"] .model-replace-upload .upload-icon{font-size:20px;margin-bottom:4px}
[id="model-replace-controls"] .form-grid{gap:7px}
[id="replace-status"]{min-height:34px}
[id="replace-current"]{margin-top:12px;padding:9px 10px;border:1px solid var(--theme-cbdced, #cbdced);border-radius:6px;background:var(--theme-f3f8fd, #f3f8fd);color:var(--theme-3b78b2, #3b78b2);font-size:10px;line-height:1.5}
.model-replace-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px;max-height:270px;overflow:auto;scrollbar-width:thin}
.model-replace-card{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;padding:6px;border:1px solid var(--theme-d5e2ef, #d5e2ef);border-radius:6px;background:var(--theme-f8fbff, #f8fbff);text-align:left;color:var(--theme-597a9f, #597a9f);transition:background .16s,border-color .16s,box-shadow .16s}
.model-replace-card:hover,.model-replace-card:focus-visible{background:var(--theme-edf6ff, #edf6ff);border-color:var(--theme-80b5e7, #80b5e7);box-shadow:0 3px 10px var(--theme-4b90c522, #4b90c522);outline:none}
.model-replace-card.active{border-color:var(--theme-218ce6, #218ce6);background:var(--theme-eaf5ff, #eaf5ff);box-shadow:0 0 0 1px var(--theme-218ce633, #218ce633)}
.model-replace-thumb{position:relative;display:block;height:68px;border-radius:4px;overflow:hidden;background:linear-gradient(135deg,var(--theme-edf3f9, #edf3f9),var(--theme-dbe8f4, #dbe8f4));border:1px solid var(--theme-d9e4ee, #d9e4ee)}
.model-replace-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.model-replace-thumb-fallback{position:absolute;inset:0;display:grid;place-items:center;font:18px Consolas,monospace;color:var(--theme-7ca4ca, #7ca4ca)}
.model-replace-card-name{font-size:9px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.model-replace-card small{font:8px Consolas,monospace;color:var(--theme-8ea9c4, #8ea9c4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.model-replace-empty{grid-column:1/-1;padding:13px 9px;border:1px dashed var(--theme-cdddeb, #cdddeb);border-radius:6px;color:var(--theme-91a8be, #91a8be);background:var(--theme-f7faff, #f7faff);font-size:9px;line-height:1.7;text-align:center}
