body.cabinet-mode {
  --cabinet-rail: clamp(300px,26vw,392px);
  --cabinet-ink:#192c34;
  --cabinet-paper:#f9faf8;
  --cabinet-accent:#175a59;
  --cabinet-border:#dce3df;
}
body.cabinet-mode .station-summary,
body.cabinet-mode .scene-toolbar,
body.cabinet-mode #scenario-panel,
body.cabinet-mode #energy-stage,
body.cabinet-mode #flow-strip,
body.cabinet-mode #finance,
body.cabinet-mode #walk-controls,
body.cabinet-mode #inspection,
body.cabinet-mode #scene-focus,
body.cabinet-mode #notification,
body.cabinet-mode .scene-footer { display:none }
.cabinet-mode #experience {min-height:0}
.cabinet-mode #viewport {inset:0 var(--cabinet-rail) 0 0}
#cabinet-view {
  color:var(--cabinet-ink);
  position:absolute;inset:0;z-index:4;
  display:grid;grid-template-columns:minmax(0,1fr) var(--cabinet-rail);pointer-events:none;
}
#cabinet-stage {position:relative;min-width:0;min-height:0}
.cabinet-heading {position:absolute;z-index:1;top:22px;left:28px;max-width:calc(100% - 56px)}
.cabinet-heading h2 {font-size:clamp(19px,2.25vw,33px);letter-spacing:-.04em;margin:10px 0 4px}
.cabinet-heading p {font-size:12px;color:#425961}
.cabinet-heading button {
  pointer-events:auto;padding:5px 9px;border:1px solid #94a6ad88;border-radius:5px;
  font-size:12px;font-weight:650;background:#f7fbfbe0
}
#cabinet-hotspots {position:absolute;inset:0}
#cabinet-hotspots button {
  position:absolute;transform:translate(-50%,-50%);pointer-events:auto;
  width:31px;height:31px;border-radius:100%;border:2px solid #fff;
  background:var(--cabinet-accent);color:white;box-shadow:0 1px 8px #17363b66;
  font:650 11px ui-monospace,monospace;display:grid;place-items:center;
}
#cabinet-hotspots button[aria-pressed="true"] {background:#fff;color:var(--cabinet-accent);border-color:var(--cabinet-accent);z-index:1}
.cabinet-tools {position:absolute;bottom:14px;left:10px;right:10px;text-align:center;z-index:2}
.cabinet-toolbar {
  display:inline-flex;align-items:center;gap:3px;padding:4px;
  background:#f9faf8;border:1px solid #c4d1ce;border-radius:8px;pointer-events:auto;
  box-shadow:0 6px 20px #17394024;color:var(--cabinet-ink)
}
.cabinet-toolbar button {font-size:12px;font-weight:680;padding:8px 9px;border-radius:5px;min-width:31px;min-height:34px}
.cabinet-toolbar #cabinet-door {background:var(--cabinet-accent);color:white;padding-inline:12px;white-space:nowrap}
.cabinet-toolbar #cabinet-scale {font:11px ui-monospace,monospace;min-width:39px}
#cabinet-gesture {margin:6px 0 0;font-size:11px;color:#243e47}
.cabinet-card {background:var(--cabinet-paper);border-left:1px solid var(--cabinet-border);padding:24px 22px;overflow:auto;pointer-events:auto}
#cabinet-count {font:11px ui-monospace,monospace;color:#425c56;margin-bottom:6px}
#cabinet-index-title {font-size:23px;letter-spacing:-.04em;margin-bottom:13px}
.cabinet-parts {border-top:1px solid var(--cabinet-border)}
.cabinet-parts button {
  width:100%;min-height:40px;display:grid;grid-template-columns:25px 1fr 16px;gap:7px;align-items:center;
  text-align:left;font-size:13px;font-weight:660;border-bottom:1px solid var(--cabinet-border);padding:4px 7px
}
.cabinet-parts button:hover,.cabinet-parts button[aria-pressed="true"] {background:#e6f1ed;color:#124e4c}
.cabinet-number {font:11px ui-monospace,monospace;color:#42665d}
.cabinet-action {text-align:right;color:#4e756b}
.cabinet-detail {padding:14px 0;margin-top:5px}
#cabinet-part-title {margin:0 0 5px;font-size:17px}
#cabinet-part-copy {font-size:13px;line-height:1.55;color:#33504f}
#cabinet-speak {margin-top:9px;border:1px solid #9fbcb5;border-radius:5px;padding:7px 10px;color:#205e55;font-size:12px}
@media(max-width:850px){
  body.cabinet-mode {overflow:auto}
  .cabinet-mode #experience {height:auto;padding:0;min-height:0}
  .cabinet-mode #viewport {inset:0 0 auto;height:60dvh;min-height:0}
  #cabinet-view {position:relative;display:block}
  #cabinet-stage {height:60dvh}
  .cabinet-heading {left:14px;top:10px}
  .cabinet-heading h2 {margin-top:5px;font-size:22px}
  .cabinet-heading p {font-size:11px}
  .cabinet-card {border-left:0;border-top:1px solid var(--cabinet-border);padding:14px}
  .cabinet-parts {display:grid;grid-template-columns:1fr 1fr;gap:0 8px}
  .cabinet-parts button {font-size:12px}
  #cabinet-index-title {font-size:19px;margin-bottom:6px}
}
body:not([data-mode=energy]) #scenario-panel{display:none!important}
.station-summary .summary-title{display:none}
.station-details summary{cursor:pointer;font-weight:600;padding:10px 0;color:#285d6b}
.station-summary .station-switch small{font-size:11px}
.station-summary .product-entry{margin-top:0}
#cabinet-load-status{
  position:fixed;z-index:21;left:50%;bottom:24px;transform:translateX(-50%);
  width:max-content;max-width:calc(100% - 32px);padding:12px 16px;
  border-radius:8px;background:#193747;color:#fff;font-size:14px;
  pointer-events:none;
}
#show-battery.product-entry{min-height:48px;touch-action:manipulation}
#product-specs small{color:#186564;letter-spacing:.09em}
#product-specs p{font-size:.87rem;line-height:1.5;color:#435c65}
#product-specs h4{color:#12605c;margin:20px 0 4px}
#product-specs dl{margin:0}
#product-specs dl div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #dce4e1;padding:8px 0;font-size:.85rem}
#product-specs dd{text-align:right;font-weight:600;margin:0}
.spec-mode>:not(#product-specs){display:none!important}
@media(min-width:801px){body.cabinet-mode{--cabinet-rail:clamp(360px,29vw,510px)}}

.road-play{display:none;position:absolute;bottom:4.5rem;left:50%;transform:translateX(-50%);background:#155b59;color:white;padding:.85rem 1.2rem;border:0;border-radius:8px;cursor:pointer}
body.road-preview[data-mode=scene]:not(.cabinet-mode) .road-play,body.road-preview:not([data-mode]):not(.cabinet-mode) .road-play{display:block}



.cabinet-leader{position:absolute;height:2px;background:#17635e;box-shadow:0 0 1px white;transform-origin:left center;pointer-events:none}
.cabinet-leader:before{content:"";position:absolute;left:-3px;top:-2px;width:6px;height:6px;border-radius:50%;background:#17635e}
#cabinet-hotspots button{z-index:2}
#cabinet-parts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
#cabinet-part-copy{white-space:pre-line;line-height:1.65}

#product-specs{font-family:"Segoe UI","Microsoft YaHei UI","PingFang SC",sans-serif;color:#193533;container-type:inline-size}
#product-specs .spec-plate{background:#153f40;color:#fff;border-radius:5px;padding:19px 20px 21px}
#product-specs h3{margin:0;font-size:1.05rem;font-weight:600;color:inherit}
.spec-ratings{margin-top:17px;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.spec-ratings>div+div{border-inline-start:1px solid #50706f;padding-inline-start:16px}
.spec-ratings span{display:block;font-size:.8rem;color:#d4e8e4;line-height:1.45}
.spec-ratings b{display:block;margin-top:4px;font:600 clamp(28px,8.6cqi,44px)/1.1 "Segoe UI",sans-serif;letter-spacing:-.04em;font-variant-numeric:tabular-nums;white-space:nowrap}
#product-specs .spec-ratings small{color:#bfdfd8;letter-spacing:0;font-size:.85rem;font-weight:500}
#product-specs h4{color:#1e3736;font-size:1.12rem;line-height:1.35;margin:24px 0 12px}
.spec-features{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.spec-features li{display:grid;grid-template-columns:24px 1fr;gap:10px;align-items:start}
.spec-icon{width:22px;height:22px;color:#1e6864}
.spec-features strong{font-size:.92rem;font-weight:650}
#product-specs .spec-features p{margin:2px 0 0;font-size:.85rem;line-height:1.58;color:#435956}
#product-specs h4+p{border-inline-start:2px solid #81aaa3;padding-inline-start:10px;font-size:.81rem;line-height:1.55;margin:0 0 14px}
.spec-group{border-top:1px solid #d0ded9}
.spec-group:last-child{border-bottom:1px solid #d0ded9}
.spec-group summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:10px;cursor:pointer;font-weight:650;font-size:.93rem;list-style:none;padding:0 6px}
.spec-group summary::-webkit-details-marker{display:none}
.spec-group summary:after{content:"";width:7px;height:7px;flex:none;border:solid #2d6865;border-width:0 1.6px 1.6px 0;transform:rotate(45deg);margin-inline-end:4px}
.spec-group[open] summary:after{transform:rotate(225deg)}
.spec-group summary:focus-visible{outline:2px solid #16726c;outline-offset:-2px}
.spec-group summary:hover{background:#e9f1ee}
#product-specs .spec-group dl{background:#f0f4f2;margin-bottom:10px;padding:1px 12px;border-radius:3px}
#product-specs dd{font-variant-numeric:tabular-nums}
#product-specs .spec-group dl div:last-child{border:0}
@container(min-width:440px){.spec-features{grid-template-columns:1fr 1fr;gap:18px 16px}}
