:root{font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#243c4d;background:#f3f6f8;font-synthesis:none;--ink:#203c50;--muted:#7a8f9e;--line:#e3e9ed;--accent:#277a79;--orange:#c78335}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled,input:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #dca65b;outline-offset:3px}button{touch-action:manipulation}h1,h2,h3,p{margin:0}button{transition:background .15s,box-shadow .15s}button:hover:not(:disabled){filter:brightness(.97)}button:active:not(:disabled){transform:translateY(1px)}.app-header{height:86px;display:flex;justify-content:space-between;align-items:center;max-width:1840px;margin:auto;padding:0 28px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px}.brand svg{width:39px;height:39px;stroke:#c68d43;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}.brand h1{font-size:23px;font-weight:650;letter-spacing:1px}.brand p{font-size:11px;color:var(--muted);margin-top:4px;letter-spacing:1px}.header-right{display:flex;gap:25px;align-items:center}.simulation-badge{background:#e7eeed;color:#4a7872;border-radius:20px;font-size:11px;padding:7px 12px;display:flex;gap:6px;align-items:center}.simulation-badge i,.status-pill i{width:6px;height:6px;background:#4b9b8c;border-radius:50%}.text-button{border:0;background:none;color:#657d8e;font-size:12px;padding:7px 0}.workspace{display:grid;grid-template-columns:282px minmax(340px,1fr) 264px;gap:17px;max-width:1840px;margin:20px auto 0;padding:0 24px;min-height:690px;height:calc(100dvh - 149px)}.card{border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 3px 13px #17364804}.control-panel,.readout-panel{overflow:auto;scrollbar-width:thin;scrollbar-color:#d9e2e8 transparent}.panel-head{padding:22px 20px 17px}.eyebrow{font-size:9px;letter-spacing:1.7px;color:#93a2ac;font-weight:650}.panel-head h2{font-size:18px;margin:7px 0;color:var(--ink);font-weight:650}.panel-head p{font-size:11px;color:var(--muted);line-height:1.6}.tabs{display:flex;margin:0 12px 16px;background:#f0f4f6;padding:4px;border-radius:9px}.tabs button{padding:9px 3px;border:0;background:transparent;color:#8394a0;font-size:11px;flex:1;white-space:nowrap;border-radius:6px}.tabs .active{background:#fff;color:var(--ink);font-weight:650;box-shadow:0 2px 5px #16324712}.tab-content{padding:0 19px 10px}.section-title{display:flex;gap:8px;align-items:center;margin:4px 0 10px}.section-title h3{font-size:13px;font-weight:650}.step-dot{font-size:9px;background:#f0e7d8;color:#b2803c;border-radius:4px;padding:4px;font-weight:650}.hint{font-size:11px;color:#889ba7;line-height:1.9;margin-bottom:12px}.tiny{font-size:10px;margin-top:9px}.button-pair{display:flex;gap:8px;margin:15px 0 18px}.primary,.secondary,.example-button{border-radius:8px;min-height:36px;font-size:12px;padding:9px 12px;border:1px solid transparent}.primary{background:#23495d;color:#fff}.secondary{background:#f2f5f7;border-color:#e5ebef;color:#587184}.button-pair button{flex:1;padding:8px 4px}.outline{background:#fff;border-color:#bad3d3;color:#277a79}.wide{width:100%;margin-top:9px}.slider-block{margin:13px 0 18px}.slider-title{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-bottom:9px;gap:6px}.slider-title label{font-weight:550}.slider-value{display:flex;align-items:center;gap:4px;font-size:10px;color:#9aa7b0}.slider-value input{border:1px solid #e2e9ee;border-radius:5px;width:67px;padding:5px 3px;text-align:center;background:#fafcfd;color:#34566d;font-size:11px;font-variant-numeric:tabular-nums;-moz-appearance:textfield}.slider-value input::-webkit-inner-spin-button{opacity:0}.slider-block input[type=range]{width:100%;margin:0;accent-color:#2b7d7c;height:22px;touch-action:pan-y}.slider-limits{display:flex;justify-content:space-between;color:#a7b2ba;font-size:9px;font-variant-numeric:tabular-nums}.spaced{margin-top:24px}.button-stack{display:grid;gap:8px}.example-button{background:#fcf9f4;border-color:#f1e6d6;color:#876b43;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:5px;padding:11px}.example-button span{font-size:11px}.example-button small{font-size:9px;white-space:nowrap;color:#b0946c}.example-button b{margin-left:3px}.source-chip{font-size:9px;color:#8c9da8;text-align:center;background:#f6f8fa;border-radius:6px;padding:10px;margin-top:17px}.source-chip strong{font-size:10px;font-weight:550;color:#5f788b}.control-footer{display:flex;justify-content:space-between;padding:12px 20px 16px;border-top:1px solid #f0f3f5;margin-top:8px}.viewer-column{min-width:0;display:flex;flex-direction:column;position:relative}.scene-card{flex:1;min-height:480px;overflow:hidden;display:flex;flex-direction:column;background:#eef3f6;position:relative}.scene-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:14px 14px 0;position:absolute;z-index:4;top:0;width:100%;pointer-events:none}.status-pill{background:#fffdf7e8;border:1px solid #dde7e9;box-shadow:0 2px 4px #29415407;border-radius:20px;font-size:10px;display:flex;align-items:center;gap:7px;padding:8px 11px;white-space:nowrap}.status-pill.transport{background:#f9fbff;color:#5e7d95}.status-pill.transport i{background:#789ab7}.view-buttons{display:flex;gap:1px;background:#ffffffdc;border:1px solid #dce5ea;border-radius:8px;padding:3px;pointer-events:auto}.view-buttons button{border:0;background:none;color:#8b9ca9;padding:6px 8px;border-radius:5px;font-size:10px;white-space:nowrap}.view-buttons .active{background:#e6eef3;color:#345b74}#viewport{flex:1;min-height:365px;position:relative;isolation:isolate;overflow:hidden}#viewport canvas{display:block;position:absolute;inset:0;touch-action:none}.gesture-hint{position:absolute;bottom:14px;left:17px;font-size:9px;color:#859cab;z-index:1;pointer-events:none;letter-spacing:.2px}.world-key{position:absolute;right:17px;bottom:13px;display:flex;gap:10px;font-size:10px;font-weight:600;pointer-events:none}.x{color:#df715d}.y{color:#429974}.z{color:#4b8ec2}.model-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.cyl-tag{position:absolute;top:0;left:0;pointer-events:auto;border:1px solid #cfdae2;background:#ffffffd9;border-radius:4px;font-size:9px;font-weight:650;padding:3px 5px;color:#577286;line-height:1;box-shadow:0 1px 4px #243c5010}.cyl-tag.selected{background:#fff2d7;border-color:#e9be70;color:#9a6b26}.scene-options{display:flex;align-items:center;gap:18px;padding:8px 16px;border-top:1px solid #e0e8ed;background:#f9fbfc;font-size:10px;color:#6c8596}.scene-options label{display:flex;align-items:center;gap:5px;cursor:pointer}.scene-options input{accent-color:#4c7a8e;width:12px;height:12px}.scene-options button{margin-left:auto;font-size:10px}.scene-metrics{display:grid;grid-template-columns:1.3fr 1fr .85fr;padding:16px 18px;background:#fff;border-top:1px solid #e7edf1}.scene-metrics>div{border-right:1px solid #e5ecef;padding-right:10px;margin-right:15px}.scene-metrics>div:last-child{border:0;margin:0;padding:0}.scene-metrics span{font-size:9px;color:#8b9eab;display:block;margin-bottom:7px}.scene-metrics strong{font-size:17px;font-weight:550;letter-spacing:.2px;color:#36566c;font-variant-numeric:tabular-nums;white-space:nowrap}.scene-metrics small{font-size:10px;color:#93a4b0;font-weight:400}.playback{padding:13px 15px 12px;margin-top:12px}.playback-line{display:flex;align-items:center;gap:12px}.play-icon{background:#edf1f4;color:#57788e;border-radius:8px;width:33px;height:33px;display:grid;place-items:center;font-size:22px}.playback-description{flex:1;min-width:0}.playback-description strong{display:block;font-size:11px;font-weight:600;color:#4d6b7e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.playback-description span{display:block;font-size:9px;color:#9baab4;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.playback select{font-size:10px;border:1px solid #e2e9ee;border-radius:5px;color:#6f8595;background:#fff;padding:5px}.compact{font-size:10px;min-height:28px;padding:5px 9px}.progress-track{height:3px;background:#edf1f4;border-radius:2px;margin-top:11px;overflow:hidden}#progress{width:0;background:#69a39b;height:100%;transition:width .08s linear}.legend{display:flex;flex-wrap:wrap;align-items:center;gap:15px;padding:13px 2px 1px;font-size:9px;color:#8b9ca7}.legend span{display:flex;gap:5px;align-items:center}.legend i{width:7px;height:7px;background:var(--c);border-radius:2px}.legend .legend-help{margin-left:auto;color:#a9b5be}.readout-panel .panel-head{padding-bottom:12px}.negative-text{color:#bf8144;margin-left:10px}.unit{float:right}.reference-strip{margin:0 16px 10px;padding:9px 0;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf1f4;border-bottom:1px solid #edf1f4;gap:4px}.reference-strip span{font-size:9px;color:#8ca0ac;max-width:125px;line-height:1.5}.reference-strip button{border:0;background:#edf3f5;color:#597d8e;border-radius:4px;font-size:9px;padding:6px 7px;white-space:nowrap}.cylinder-list{padding:0 13px}.cylinder-row{display:grid;grid-template-columns:37px 1fr 63px;align-items:center;gap:7px;width:100%;height:31px;text-align:left;border:0;border-radius:6px;background:none;padding:0 7px}.cylinder-row.group-start{margin-top:8px;border-top:1px solid #f0f3f5;border-radius:0}.cylinder-row.active{background:#f4f7f9}.cylinder-row:hover{background:#f7f9fa}.cylinder-row .id{font-size:10px;color:#678195;letter-spacing:.3px}.cylinder-row.active .id{color:#b17e32;font-weight:700}.delta-value{font-size:11px;color:#75909f;text-align:right;font-variant-numeric:tabular-nums}.delta-value.positive{color:#348e82}.delta-value.negative{color:#c0874c}.bar-track{height:4px;position:relative;background:#f0f4f6;border-radius:3px}.bar-track:before{content:'';position:absolute;width:1px;height:8px;left:50%;top:-2px;background:#d7e1e7}.delta-bar{position:absolute;height:4px;left:50%;width:0;background:#5fa79b;border-radius:2px}.delta-bar.negative{background:#d7aa76}.selected-cylinder{background:#f5f8fa;margin:14px 16px 0;padding:13px;border-radius:8px;border:1px solid #e9eef2}.selected-cylinder>span{font-size:10px;color:#4e7188;font-weight:600}.selected-cylinder>div{display:flex;justify-content:space-between;align-items:center;margin-top:10px;gap:5px}.selected-cylinder small{font-size:9px;color:#94a5b1;font-weight:400}.selected-cylinder strong{font-size:13px;font-weight:550;color:#35596f;font-variant-numeric:tabular-nums;white-space:nowrap}.selected-cylinder p{margin-top:8px;font-size:9px;color:#9babb5}.readout-note{font-size:9px;color:#9aaab6;line-height:1.9;padding:12px 19px 16px}.mode-note,.quiet-note{font-size:11px;line-height:1.9;color:#8a9eac;background:#f5f8fa;padding:12px;border-radius:8px;margin:14px 0}.mode-note{background:#fcf6eb;color:#ad8850}.extra-controls{font-size:11px;color:#6e8799;border-top:1px solid #e8edf1;padding-top:13px}.extra-controls summary{cursor:pointer}.notice{position:absolute;bottom:115px;left:20px;right:20px;background:#fff7e9;border:1px solid #eed7af;color:#9d752d;border-radius:8px;box-shadow:0 5px 20px #3f4d6115;padding:12px 15px;font-size:12px;line-height:1.7;z-index:20;display:none}.notice.show{display:block}.app-footer{display:flex;justify-content:space-between;gap:20px;max-width:1840px;padding:17px 28px;margin:auto;color:#a0aeb8;font-size:9px;line-height:1.8}#loading{position:absolute;inset:0;display:grid;place-items:center;color:#8ba0ae;font-size:13px;z-index:8;background:#edf2f6}dialog{border:1px solid #dce5eb;border-radius:16px;padding:25px;max-width:510px;color:#597185;box-shadow:0 20px 80px #19334633}dialog::backdrop{background:#16314877;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.dialog-head h2{font-size:20px;color:var(--ink)}dialog p,dialog li{font-size:12px;line-height:1.9}dialog ol{padding-left:19px}dialog p{margin-top:15px}
@media(min-width:1600px){.workspace{grid-template-columns:310px minmax(450px,1fr) 285px}.tab-content{padding-left:23px;padding-right:23px}.scene-card{min-height:570px}.panel-head{padding-top:25px}.cylinder-row{height:34px}.slider-block{margin:17px 0 21px}}
@media(max-width:1150px) and (min-width:761px){.workspace{grid-template-columns:260px minmax(0,1fr);height:auto}.viewer-column{grid-column:2;grid-row:1}.readout-panel{grid-column:1/-1}.control-panel{max-height:800px}.scene-card{height:630px}.cylinder-list{display:grid;grid-template-columns:repeat(2,1fr);gap:0 20px}.selected-cylinder{display:inline-block;min-width:240px;margin:10px 16px}.readout-note{display:inline-block;max-width:360px;vertical-align:middle}.view-buttons button{padding:6px}.scene-toolbar{padding:11px 9px 0}.legend-help{display:none!important}}
@media(max-width:760px){.app-header{height:72px;padding:0 16px}.brand{gap:9px}.brand svg{width:32px;height:32px}.brand h1{font-size:18px}.brand p{font-size:9px}.simulation-badge{font-size:9px;padding:6px 9px}.header-right{gap:10px}.header-right .text-button{font-size:10px}.workspace{display:flex;flex-direction:column;height:auto;min-height:0;padding:0 12px;gap:13px;margin-top:12px}.viewer-column{order:0}.control-panel{order:1;overflow:visible}.readout-panel{order:2;overflow:visible}.scene-card{min-height:0;height:445px;flex:none}.scene-toolbar{padding:10px 9px 0;gap:5px}.status-pill{font-size:9px;padding:7px 8px;gap:4px}.view-buttons button{font-size:9px;padding:5px 6px}.view-buttons{padding:3px}#viewport{min-height:290px}.scene-options{font-size:10px;gap:11px;padding:6px 10px}.scene-options button{font-size:9px}.scene-metrics{padding:12px}.scene-metrics>div{margin-right:8px;padding-right:7px}.scene-metrics strong{font-size:14px}.scene-metrics span{font-size:8px}.scene-metrics small{font-size:9px}.gesture-hint{font-size:8px;left:10px;bottom:10px}.world-key{right:10px;bottom:10px;font-size:8px;gap:7px}.playback{margin-top:10px;padding:11px}.playback-line{gap:8px}.playback-description strong{font-size:10px}.playback-description span{font-size:8px}.play-icon{width:26px;height:29px}.playback select{padding:5px 2px}.legend{padding:10px 3px 0;gap:12px;font-size:9px}.legend-help{display:none!important}.panel-head{padding:19px 19px 13px}.panel-head h2{font-size:17px}.tabs{margin:0 16px 14px}.tabs button{font-size:12px;padding:10px}.tab-content{padding:0 19px 14px}.section-title h3{font-size:14px}.hint{font-size:12px}.slider-title{font-size:12px}.slider-value input{font-size:13px;width:79px;padding:7px}.slider-block input[type=range]{height:32px}.slider-limits{font-size:10px}.primary,.secondary{font-size:12px;min-height:41px}.compact{font-size:10px;min-height:29px}.example-button{min-height:47px}.example-button span{font-size:12px}.example-button small{font-size:11px}.source-chip{font-size:10px}.source-chip strong{font-size:11px}.readout-panel .panel-head h2{font-size:17px}.cylinder-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 9px;padding:0 11px}.cylinder-row{grid-template-columns:30px 1fr 58px;gap:4px;padding:0 5px;height:35px}.cylinder-row.group-start{border:0;margin:0}.cylinder-row .id{font-size:10px}.delta-value{font-size:10px}.reference-strip span{font-size:10px;max-width:220px}.reference-strip button{font-size:10px;padding:7px 9px}.selected-cylinder{padding:13px 14px}.selected-cylinder>span{font-size:12px}.selected-cylinder small{font-size:10px}.selected-cylinder strong{font-size:16px}.selected-cylinder p{font-size:10px}.readout-note{font-size:10px}.notice{position:fixed;bottom:25px;left:18px;right:18px;font-size:12px}.app-footer{padding:17px 18px 25px;display:block;font-size:9px}.app-footer span{display:block;margin-bottom:5px}.tiny{font-size:11px}dialog{max-width:calc(100vw - 30px);padding:20px}.cyl-tag{font-size:8px;padding:3px 4px}}
@media(max-width:360px){.brand h1{font-size:16px}.header-right .simulation-badge{display:none}.scene-toolbar{flex-wrap:wrap}.scene-card{height:420px}.view-buttons button{padding:5px}.scene-metrics strong{font-size:12px}.scene-options{gap:7px}.cylinder-row{grid-template-columns:28px 1fr 52px}.delta-value{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}
@media(max-width:760px) and (min-height:700px){.viewer-column{position:sticky;top:0;z-index:6;background:#f3f6f8;padding-top:7px;padding-bottom:7px;margin-top:-7px}.scene-card{height:340px}#viewport{min-height:200px}.scene-metrics{padding:10px 12px}.scene-metrics span{margin-bottom:5px}.scene-metrics strong{font-size:12px}.playback{padding:9px 11px}.playback-description span{font-size:8px}.legend{padding-top:8px}}
/* Mobile viewing revision: generous canvas and clear 3D world labels. */
.viewer-actions{position:absolute;right:12px;top:58px;z-index:5;display:flex;gap:7px}
.viewer-actions button{font-size:12px;font-weight:600;color:#25495f;background:#fffffff5;border:1px solid #bcced8;border-radius:8px;padding:9px 12px;box-shadow:0 2px 8px #18394b12;min-height:38px}
.world-key{padding:6px 9px;background:#fffffff2;border:1px solid #c6d5de;border-radius:7px;font-size:12px;gap:12px;z-index:4}
.world-key .x{color:#ad3027}.world-key .y{color:#096a40}.world-key .z{color:#1859a4}
.gesture-hint{bottom:47px;background:#ffffffce;border-radius:4px;padding:3px 5px;color:#546f81}
body.viewer-expanded{overflow:hidden}
.scene-card.expanded{position:fixed;inset:0;z-index:100;height:100dvh;min-height:0;max-height:none;border:0;border-radius:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.scene-card.expanded .scene-toolbar{top:env(safe-area-inset-top)}
.scene-card.expanded #viewport{min-height:0}
.scene-card.expanded .scene-metrics{padding:10px 16px}
@media(max-width:760px){
 .app-header{height:64px;padding:0 12px;gap:8px}.brand{min-width:0;gap:7px}.brand h1{font-size:17px;letter-spacing:0;white-space:nowrap}.brand p{font-size:9px;letter-spacing:0}.brand svg{width:25px;height:25px;flex:none}.simulation-badge{display:none}.header-right .text-button{white-space:nowrap;font-size:11px}
 .workspace{padding:0 8px;margin-top:8px;gap:12px}.viewer-column{position:relative;top:auto;z-index:auto;padding:0;margin:0;background:transparent}
 .scene-card{height:76svh;min-height:470px;max-height:720px}.scene-toolbar{padding:9px;align-items:flex-start}.status-pill{font-size:10px;padding:8px 9px}.view-buttons button{font-size:11px;padding:7px 6px;min-height:32px}.view-buttons{gap:0;padding:2px}
 #viewport{min-height:340px}.viewer-actions{top:59px;right:9px}.viewer-actions button{font-size:12px;padding:9px 11px;min-height:40px}
 .scene-metrics{padding:10px 12px}.scene-metrics span{font-size:9px;margin-bottom:5px}.scene-metrics strong{font-size:14px}.scene-options{min-height:42px;font-size:11px;padding:6px 10px;gap:10px}.scene-options input{width:15px;height:15px}.scene-options button{font-size:10px}
 .world-key{right:9px;bottom:10px;font-size:12px;gap:10px}.gesture-hint{font-size:10px;left:10px;bottom:49px}
 .playback{padding:10px 11px}.legend{padding-top:10px}
 .scene-card.expanded{height:100dvh;min-height:0;max-height:none}.scene-card.expanded .scene-options{min-height:42px}
}
@media(max-width:359px){.brand h1{font-size:15px}.scene-toolbar{flex-wrap:wrap}.view-buttons{margin-left:auto}.status-pill{font-size:9px;padding:8px 6px}.view-buttons button{font-size:10px;padding:7px 4px}.scene-metrics strong{font-size:12px}.scene-options{gap:6px;font-size:10px}.scene-options button{font-size:9px}}
@media(max-height:500px) and (orientation:landscape){.scene-card.expanded .scene-metrics{display:none}.scene-card.expanded .scene-toolbar{padding-top:6px}.scene-card.expanded .scene-options{padding:4px 12px;min-height:32px}.scene-card.expanded .viewer-actions{top:55px}.scene-card.expanded .gesture-hint{bottom:12px}}
/* Group learning and anchored cylinder callouts. */
.group-learning{border-bottom:1px solid #e0e8ed;padding-bottom:15px}.group-learning .panel-head{padding-bottom:12px}.group-cards{display:grid;gap:6px;padding:0 14px}.group-card{border:1px solid #dfe7ec;border-radius:8px;background:#f8fafb;color:#567084;padding:10px 12px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}.group-card strong{font-size:12px;font-weight:650}.group-card span{font-size:10px;white-space:nowrap;color:#8193a0}.group-card[aria-pressed=true]{background:#fff5df;border-color:#d4a352;color:#80531e;box-shadow:inset 3px 0 #d4a352}.group-card[aria-pressed=true] span{color:#9c753e}.group-detail{margin:12px 14px 0;padding:12px;background:#f7fafb;border:1px solid #e2eaef;border-radius:9px}.group-detail h3{font-size:12px;color:#80531e;line-height:1.6}.group-detail dl{margin:10px 0;display:grid;grid-template-columns:48px minmax(0,1fr);gap:7px 8px;font-size:11px;line-height:1.75}.group-detail dt{color:#8395a1}.group-detail dd{margin:0;color:#385970}.group-detail p{font-size:9px;line-height:1.7;margin-top:9px;color:#7f929e}.group-buttons{display:flex;flex-wrap:wrap;gap:6px}.group-buttons button{font-size:10px;min-height:34px;padding:6px 9px}.group-buttons select{flex:1;min-width:90px;max-width:100%;border:1px solid #d4e0e7;border-radius:6px;font-size:11px;background:white;color:#385970;padding:6px}.cylinder-group-heading{grid-column:1/-1;font-size:10px;color:#617e90;font-weight:600;padding:12px 5px 5px}.viewer-actions{left:10px;right:10px;justify-content:flex-end}.viewer-actions select{margin-right:auto;min-width:0;max-width:145px;flex:1;border:1px solid #d6b374;background:#fff8e9;color:#80531e;border-radius:8px;font-size:11px;padding:7px;min-height:38px}.scene-options select{max-width:90px;font-size:10px;border:1px solid #cad9e2;color:#466a7e;background:white;border-radius:5px;padding:5px 2px}.cylinder-leaders{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none}.cylinder-leaders polyline{fill:none;stroke-linejoin:round;stroke-linecap:round}.leader-halo{stroke:white;stroke-width:3;opacity:.9}.leader-line{stroke:#7a909f;stroke-width:1.2}.cylinder-leaders circle{fill:#7a909f;stroke:white;stroke-width:1}.cylinder-leaders .in-group .leader-line{stroke:#a87a26}.cylinder-leaders .in-group circle{fill:#c28e28}.cylinder-leaders .selected .leader-line{stroke:#be5a19;stroke-width:1.7}.cylinder-leaders .selected circle{fill:#d56a23}.cyl-tag{width:42px;height:24px;display:flex;align-items:center;justify-content:center;padding:0;font-size:11px;z-index:1;border-radius:5px;background:#fffffff5}.cyl-tag.in-group{border-color:#cda55a;color:#906216;background:#fff8e9}.cyl-tag.selected{border-color:#c45e20;color:#a3440c;background:#ffe5cd}.label-overflow{position:absolute;bottom:77px;left:65px;right:65px;text-align:center;pointer-events:none;font-size:10px;line-height:1.5;color:#6c8290;background:#ffffffeb;border-radius:5px;padding:3px;z-index:3}.label-overflow[hidden]{display:none}
@media(max-width:760px){.group-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 14px}.group-card{display:block;min-height:62px;padding:10px}.group-card strong{display:block;font-size:12px}.group-card span{display:block;margin-top:5px}.group-card:last-child{grid-column:1/-1;display:flex;min-height:44px}.group-card:last-child span{margin:0}.group-detail dl{grid-template-columns:56px minmax(0,1fr);font-size:12px}.group-detail h3{font-size:14px}.group-detail p{font-size:10px}.group-buttons button{font-size:12px;min-height:40px}.group-buttons select{font-size:12px}.viewer-actions{gap:5px}.viewer-actions button{font-size:11px;padding:8px}.viewer-actions select{max-width:132px;font-size:11px;padding:6px 3px}.scene-options{gap:7px}.scene-options label{gap:4px}.scene-options select{font-size:10px;max-width:83px}.cylinder-group-heading{font-size:12px}.cyl-tag{font-size:11px;padding:0}}
@media(max-width:359px){.viewer-actions button{font-size:10px;padding:7px 5px}.viewer-actions select{font-size:10px;max-width:114px}.scene-options{font-size:9px;gap:5px}.scene-options button{font-size:9px}.scene-options select{max-width:76px}}
.scene-group-summary{font-size:11px;line-height:1.6;padding:7px 12px;color:#805f2b;background:#fffbf2;border-top:1px solid #eee4d2;min-height:32px}.scene-card.expanded .scene-group-summary{font-size:11px}@media(max-height:500px) and (orientation:landscape){.scene-card.expanded .scene-group-summary{display:none}}
/* Coherent mobile resource version and a non-overlay viewer toolbar. */
:root{--ui-version:1.2.2;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.scene-controls{flex:none;display:grid;gap:7px;padding:10px 12px;background:#f7fafc;border-bottom:1px solid #dce5eb;z-index:5}
.scene-controls .scene-toolbar{position:static;padding:0;pointer-events:auto;align-items:center}
.scene-controls .viewer-actions{position:static;justify-content:flex-end;display:flex;gap:7px}
.scene-controls .viewer-actions select{max-width:none;flex:1}
.scene-controls button,.scene-controls select{min-height:34px}
.scene-card.expanded .scene-controls{padding-top:max(8px,env(safe-area-inset-top))}
@media(max-width:760px){
 .app-header{height:40px;min-height:40px;padding:0 12px;gap:8px}.brand h1{font-size:14px;line-height:1.2;font-weight:650;white-space:nowrap}.brand svg,.brand p,.header-right .simulation-badge{display:none}.header-right .text-button{font-size:12px;line-height:1.2;padding:8px 0}
 .workspace{margin-top:6px}.scene-card{height:auto;min-height:0;max-height:none}.scene-controls{padding:7px 9px;gap:6px}.scene-controls .scene-toolbar{flex-wrap:nowrap;gap:5px}.status-pill{font-size:11px;line-height:1.2;padding:6px 8px}.scene-controls .view-buttons button{font-size:11px;line-height:1.2;padding:7px 6px;min-height:30px}.scene-controls .viewer-actions button,.scene-controls .viewer-actions select{font-size:12px;line-height:1.2;min-height:36px;padding:7px 9px}.scene-controls #expand-view{flex:none;background:#23495d;border-color:#23495d;color:white;font-weight:650;white-space:nowrap}
 #viewport{height:clamp(300px,54svh,580px);min-height:0;flex:none}.scene-options{min-height:42px;padding:6px 9px;gap:8px;font-size:12px;line-height:1.3;flex-wrap:wrap}.scene-options label,.scene-options button,.scene-options select{font-size:12px;line-height:1.3}.scene-options select{padding:5px;max-width:94px}.scene-options button{margin-left:auto}.scene-group-summary{font-size:12px;line-height:1.6;padding:7px 12px;min-height:0;flex:none;overflow-wrap:anywhere}
 .scene-metrics{padding:9px 12px;flex:none}.scene-metrics span{font-size:11px;line-height:1.4;margin-bottom:4px}.scene-metrics strong{font-size:15px;line-height:1.4}.scene-metrics small{font-size:11px}
 .playback-description strong{font-size:12px;line-height:1.4}.playback-description span{font-size:11px;line-height:1.5}.playback select,.playback .compact,.playback .text-button{font-size:12px}.legend{font-size:11px;line-height:1.5}
 .group-card strong{font-size:13px;line-height:1.4}.group-card span{font-size:11px;line-height:1.4}.group-detail p,.readout-note{font-size:11px;line-height:1.6}.panel-head p{font-size:12px;line-height:1.6}
 .scene-card.expanded{height:100dvh;min-height:0;max-height:none;padding-top:0}.scene-card.expanded #viewport{height:auto;min-height:0;flex:1}.scene-card.expanded .scene-metrics,.scene-card.expanded .scene-group-summary{display:none}.scene-card.expanded .scene-options{min-height:42px}
}
@media(max-width:359px){.scene-controls .view-buttons button{font-size:10px;padding:7px 4px}.status-pill{font-size:10px;padding:6px}.scene-controls .viewer-actions button,.scene-controls .viewer-actions select{font-size:11px;padding:7px 5px}.scene-options{column-gap:6px}.scene-options label,.scene-options select,.scene-options button{font-size:11px}.scene-metrics span{font-size:10px}.scene-metrics strong{font-size:13px}}
@media(max-height:500px) and (orientation:landscape){.scene-card.expanded .scene-controls{display:flex;align-items:center;gap:12px;padding:6px 10px}.scene-card.expanded .scene-toolbar{flex:1;min-width:0}.scene-card.expanded .viewer-actions{flex:1;min-width:0;max-width:390px}.scene-card.expanded .viewer-actions select{max-width:150px}.scene-card.expanded .scene-options{min-height:36px;padding:4px 12px}.scene-card.expanded .gesture-hint{bottom:12px}}
/* The mobile page is a fixed model above an independently scrolling control pane. */
@media(max-width:760px){
 html{height:100%;overflow:hidden}body{height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}.app-header{flex:none}.workspace{flex:1;min-height:0;height:auto;overflow:hidden;margin:6px 0 0;padding:0 8px 8px;gap:8px;max-width:none}.viewer-column{flex:0 0 clamp(280px,55dvh,600px);height:clamp(280px,55dvh,600px);min-height:0;order:0}.scene-card{height:100%;min-height:0;max-height:none}#viewport{height:auto;min-height:0;flex:1}
 .mobile-controls-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:10px;order:1;scrollbar-width:thin;padding-bottom:max(10px,env(safe-area-inset-bottom))}.mobile-controls-scroll>*{flex:none}.mobile-controls-scroll .control-panel,.mobile-controls-scroll .readout-panel{order:0}.mobile-controls-scroll .playback{position:sticky;top:0;z-index:8;margin:0;padding:8px 10px;box-shadow:0 3px 8px #17364812}.mobile-controls-scroll .group-learning{padding-bottom:12px}.mobile-controls-scroll .group-learning .panel-head{padding:13px 15px 10px}.mobile-controls-scroll .group-learning .eyebrow{display:none}.mobile-controls-scroll .group-learning h2{font-size:16px;margin-top:0}.mobile-view-details{overflow:hidden}.mobile-controls-scroll .app-footer{padding:8px 10px;margin:0}.mobile-controls-scroll .legend{padding:3px 8px}
 .scene-card.expanded{height:100dvh;min-height:0}.scene-card.expanded #viewport{height:auto;min-height:0;flex:1}
}
@media(max-width:760px) and (max-height:600px){.viewer-column{flex-basis:50dvh;height:50dvh}.scene-controls{padding:5px 7px;gap:4px}.scene-controls .viewer-actions button,.scene-controls .viewer-actions select{min-height:32px}.mobile-controls-scroll .playback-description span{display:none}.mobile-controls-scroll .playback{padding:6px 8px}}

@media(max-width:760px){.app-header{width:100%;margin:0;max-width:none}.mobile-controls-scroll{scroll-padding-top:76px}}
