/* Layout: UniFi-style console — top bar · icon rail · workspace (3D stage | detail panel).
   Phone: top bar · stage · stacked panel · bottom tab bar. Colours follow the BellaEx brand sheet. */
:root{
  --bg:#F3F4F2; --surface:#FFFFFF; --surface-2:#F8F9F7; --line:#E6E6E6; --line-strong:#D5D7D3;
  --fg:#000000; --muted:#606060; --faint:#63685F;
  --accent:#377B2A; --accent-hover:#2D6722; --on-accent:#FFFFFF; --accent-soft:#E8F0E5;
  --hi:#FFDE02; --on-hi:#000000;
  --water-in:#2F7BD9; --water-out:#D9452F;
  --stage-a:#F8F9F7; --stage-b:#E8EAE6; --floor:#E2E4E0; --floor-low:#CDD1CB; --dimline:#606060;
  --shadow:0 1px 2px rgb(0 0 0 / .05),0 6px 18px rgb(0 0 0 / .06);
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --top:56px; --rail:76px; --panel:348px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#131416; --surface:#1B1C1F; --surface-2:#212226; --line:#2C2E32; --line-strong:#3A3C41;
    --fg:#F2F3F1; --muted:#A3A6A0; --faint:#92968E;
    --accent:#5DA34A; --accent-hover:#6CB458; --on-accent:#0B1608; --accent-soft:#1E2B1A;
    --stage-a:#1F2124; --stage-b:#141517; --floor:#2A2C30; --floor-low:#222427; --dimline:#A3A6A0;
    --shadow:0 1px 2px rgb(0 0 0 / .4),0 8px 24px rgb(0 0 0 / .35);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#131416; --surface:#1B1C1F; --surface-2:#212226; --line:#2C2E32; --line-strong:#3A3C41;
  --fg:#F2F3F1; --muted:#A3A6A0; --faint:#92968E;
  --accent:#5DA34A; --accent-hover:#6CB458; --on-accent:#0B1608; --accent-soft:#1E2B1A;
  --stage-a:#1F2124; --stage-b:#141517; --floor:#2A2C30; --floor-low:#222427; --dimline:#A3A6A0;
  --shadow:0 1px 2px rgb(0 0 0 / .4),0 8px 24px rgb(0 0 0 / .35);
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow:hidden}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
[hidden]{display:none!important}

/* ---------- shell ---------- */
.app{display:grid;grid-template-rows:var(--top) minmax(0,1fr);grid-template-columns:var(--rail) minmax(0,1fr);height:100%}
.topbar{grid-column:1/-1;display:flex;align-items:center;gap:12px;background:var(--surface);border-bottom:1px solid var(--line);
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));min-width:0}
.brand{display:flex;align-items:center;height:32px;padding:0 2px;border-radius:6px;flex:none}
.brand img{height:22px;width:auto;display:block}
:root[data-theme="dark"] .brand{background:#fff;padding:0 8px}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .brand{background:#fff;padding:0 8px}}
.tb-sep{width:1px;height:24px;background:var(--line);flex:none}
.tb-model{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden}
.tb-model b{font-size:15px;font-weight:650;letter-spacing:.01em;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.tb-model .chip,.tb-model .tb-crumb{flex:none}
/* a narrow desktop window: the product name gives way before the language and unit switches do */
@media (max-width:1180px){.tb-model .chip{display:none}}
@media (max-width:1000px){.tb-model .tb-crumb{display:none}}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;line-height:1;padding:5px 8px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);color:var(--muted);white-space:nowrap}
.chip.concept::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--hi);box-shadow:0 0 0 1px rgb(0 0 0 / .25)}
.chip.ok::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent)}
.tb-spacer{flex:1;min-width:0}
.seg{display:inline-flex;padding:2px;gap:2px;border-radius:8px;background:var(--surface-2);border:1px solid var(--line);flex:none}
.seg button{border:0;background:transparent;padding:5px 9px;border-radius:6px;font-size:12px;font-weight:600;color:var(--muted);cursor:pointer;white-space:nowrap}
.seg button:hover{color:var(--fg)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:0 1px 2px rgb(0 0 0 / .12)}
.seg.wide{display:flex}
.seg.wide button{flex:1;padding:7px 6px}
.icon-btn{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;border:1px solid var(--line);background:var(--surface);cursor:pointer;flex:none;color:var(--muted)}
.icon-btn:hover{color:var(--fg);border-color:var(--line-strong)}
.icon-btn svg,.rail svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;border:1px solid var(--line);background:var(--surface);padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.btn:hover{border-color:var(--line-strong)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.btn.primary:hover{background:var(--accent-hover)}
.btn.contact{position:relative;overflow:hidden;padding-left:16px}
.btn.contact::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--hi)}

.rail{grid-row:2;display:flex;flex-direction:column;gap:4px;padding:10px 8px;background:var(--surface);border-right:1px solid var(--line);overflow-y:auto}
.rail button{display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:transparent;border-radius:10px;padding:9px 2px 7px;cursor:pointer;color:var(--muted);font-size:11px;font-weight:600;line-height:1.15;text-align:center}
.rail button:hover{background:var(--surface-2);color:var(--fg)}
/* colour rule (v26.1): green = where you are on the site (this rail) and main buttons; yellow = where you are on the page
   (the section bar, the step and the construction detail being shown) */
.rail button[aria-current="true"],.rail button[aria-current="true"]:hover{background:var(--accent);color:var(--on-accent)}
.rail svg{width:20px;height:20px}

.main{grid-row:2;grid-column:2;min-width:0;min-height:0;position:relative}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) var(--panel);height:100%;min-height:0}
.workspace.full{grid-template-columns:minmax(0,1fr)}
.workspace.full .panel{display:none}

/* ---------- stage ---------- */
.stage{position:relative;min-width:0;min-height:0;background:radial-gradient(120% 95% at 50% 32%,var(--stage-a),var(--stage-b));overflow:hidden}
.stage canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}
.labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.nogl{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:16px;text-align:center;color:var(--muted)}
.lbl{position:absolute;left:0;top:0;white-space:nowrap;font-size:12px;line-height:1.25;will-change:transform}
.lbl.part{padding:4px 9px;border-radius:7px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);color:var(--fg)}
.lbl.part::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:6px;vertical-align:1px}
.lbl.conn{padding:4px 9px 4px 12px;border-radius:7px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);font-weight:600;position:absolute;overflow:hidden}
.lbl.conn::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--accent)}
.lbl.dim{font-family:var(--mono);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;padding:2px 7px 2px 10px;border-radius:5px;background:var(--surface);color:var(--fg);border:1px solid var(--line);overflow:hidden}
.lbl.dim::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--hi)}
.lbl.warn{padding:3px 8px;border-radius:6px;background:var(--surface);border:1px solid var(--water-out);color:var(--water-out);font-weight:600}
.lbl.title{padding:5px 12px;border-radius:8px;background:var(--accent);color:var(--on-accent);font-weight:650;font-size:13px}
.hs{position:absolute;left:0;top:0;width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;border:0;padding:0;background:transparent;cursor:pointer;pointer-events:auto}
.hs::before{content:"";position:absolute;inset:7px;border-radius:50%;background:var(--hi);box-shadow:0 0 0 1.5px #000,0 1px 4px rgb(0 0 0 / .3)}
.hs::after{content:"";position:absolute;inset:2px;border-radius:50%;border:2px solid var(--hi);opacity:.0;animation:pulse 2.4s ease-out infinite}
@keyframes pulse{0%{transform:scale(.6);opacity:.9}100%{transform:scale(1.5);opacity:0}}
@media (prefers-reduced-motion: reduce){.hs::after{animation:none}}
.hs-tip{position:absolute;left:0;top:0;pointer-events:none;font-size:12px;font-weight:600;padding:3px 8px;border-radius:6px;background:var(--fg);color:var(--bg);white-space:nowrap;transform:translate(-50%,-150%)}

.float{position:absolute;display:flex;gap:8px;flex-wrap:wrap;pointer-events:none}
.float > *{pointer-events:auto}
.float.tl{top:12px;left:12px;right:12px}
/* the stage's note (schematic model, project layout) ends the top-left row: at the right while there is room,
   on its own line below the buttons when the stage is narrow, so the two never overlap */
.float.tl > .stamp{margin-left:auto;align-self:flex-start}
.float.tr{top:12px;right:12px;justify-content:flex-end}
.pill{display:inline-flex;gap:2px;padding:3px;border-radius:10px;background:color-mix(in srgb,var(--surface) 88%,transparent);border:1px solid var(--line);box-shadow:var(--shadow);backdrop-filter:blur(8px)}
.pill button{border:0;background:transparent;padding:6px 10px;border-radius:7px;font-size:12px;font-weight:600;color:var(--muted);cursor:pointer;white-space:nowrap}
.pill button:hover{color:var(--fg)}
.pill button[aria-pressed="true"]{background:var(--accent);color:var(--on-accent)}
/* the stage's buttons by kind (v26.3): a view is one of several (dark, like a selected tab of a segment), a switch is
   on or off (tick box), and the one solid green button is an action (watch it run) */
#views button[aria-pressed="true"]{background:var(--fg);color:var(--surface)}
#tog button{display:inline-flex;align-items:center;gap:6px}
#tog button::before{content:"";flex:none;width:12px;height:12px;box-sizing:border-box;border:1.5px solid currentColor;border-radius:3px;opacity:.7}
#tog button[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent)}
#tog button[aria-pressed="true"]::before{opacity:1;border-color:var(--accent);background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat}
.stamp{font-size:11px;font-weight:600;color:var(--muted);padding:5px 9px;border-radius:8px;background:color-mix(in srgb,var(--surface) 85%,transparent);border:1px solid var(--line)}

.caption{position:absolute;left:50%;bottom:76px;transform:translateX(-50%);width:min(760px,calc(100% - 24px));padding:12px 16px 12px 18px;border-radius:12px;background:color-mix(in srgb,var(--surface) 92%,transparent);border:1px solid var(--line);box-shadow:var(--shadow);backdrop-filter:blur(10px);overflow:hidden}
.caption::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--accent)}
.caption .cap-k{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.caption .cap-t{font-size:17px;font-weight:700;margin-top:2px;text-wrap:balance}
.caption .cap-b{font-size:14px;color:var(--muted);margin-top:4px}
.stepper{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:6px;border-radius:12px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);max-width:calc(100% - 24px)}
.stepper .dots{display:flex;gap:6px;padding:0 6px}
.stepper .dot{width:22px;height:22px;border-radius:6px;border:1px solid var(--line);background:var(--surface-2);font-size:11px;font-weight:700;color:var(--muted);cursor:pointer;display:grid;place-items:center;padding:0}
.stepper .dot[aria-current="true"]{background:var(--hi);color:var(--on-hi);border-color:#000}
.stepper .dot.done{background:var(--accent-soft);color:var(--accent);border-color:transparent}
.stepper .sbtn{height:32px;min-width:32px;display:grid;place-items:center;border-radius:8px;border:1px solid var(--line);background:var(--surface);cursor:pointer;padding:0 10px;font-size:12px;font-weight:600;white-space:nowrap}
.stepper .sbtn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.stepper .sbtn.next{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.stepper .prog{position:absolute;left:8px;right:8px;bottom:2px;height:2px;border-radius:2px;background:var(--line);overflow:hidden}
.stepper .prog i{display:block;height:100%;width:0;background:var(--accent)}

/* ---------- panel ---------- */
.panel{background:var(--surface);border-left:1px solid var(--line);overflow-y:auto;min-width:0;padding:18px 18px 28px;display:flex;flex-direction:column;gap:18px}
.p-head{display:flex;flex-direction:column;gap:6px}
.p-kicker{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.p-title{margin:0;font-size:19px;line-height:1.25;font-weight:700;text-wrap:balance}
.p-sub{margin:0;color:var(--muted);font-size:13px}
.p-sec h3{margin:0 0 8px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.kv{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.kv li{display:flex;justify-content:space-between;gap:12px;padding:8px 12px;border-bottom:1px solid var(--line);font-size:13px}
.kv li:last-child{border-bottom:0}
.kv li span:first-child{color:var(--muted)}
.kv li span:last-child{font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.bul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.bul li{position:relative;padding-left:16px;font-size:13px;color:var(--fg)}
.bul li::before{content:"";position:absolute;left:2px;top:.6em;width:6px;height:6px;border-radius:2px;background:var(--accent)}
.feat{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.feat div{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--surface-2);min-width:0}
.feat b{display:block;font-size:13px}
.feat span{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.chks{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.chk{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border-bottom:1px solid var(--line);font-size:13px;cursor:pointer}
.chk:last-child{border-bottom:0}
.chk input{appearance:none;width:32px;height:18px;border-radius:999px;background:var(--line-strong);position:relative;cursor:pointer;flex:none;margin:0;transition:background .15s}
.chk input::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgb(0 0 0 / .3);transition:transform .15s}
.chk input:checked{background:var(--accent)}
.chk input:checked::after{transform:translateX(14px)}
.field{display:flex;flex-direction:column;gap:6px}
.field > span{font-size:12px;color:var(--muted);font-weight:600}
.cmp{width:100%;border-collapse:collapse;font-size:12px}
.cmp th,.cmp td{text-align:left;padding:7px 8px;border-bottom:1px solid var(--line);vertical-align:top}
.cmp th{font-size:11px;color:var(--muted);font-weight:700}
.cmp td:first-child{color:var(--muted)}
.cmp td.new{font-weight:600}
.gauge{display:flex;gap:14px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--surface-2)}
.gauge svg{width:96px;height:64px;flex:none}
.phases{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.phases li{font-size:12px;color:var(--muted);padding:6px 10px;border-radius:8px;border:1px solid var(--line)}
.phases li.on{color:var(--fg);border-color:#000;background:var(--hi);font-weight:600}
:root[data-theme="dark"] .phases li.on,.phases li.on{color:#000}
.mini-flow{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.mini-flow li{display:flex;align-items:center;gap:10px;font-size:13px;padding:6px 0;position:relative}
.mini-flow li i{width:10px;height:10px;border-radius:3px;background:var(--surface-2);border:1.5px solid var(--muted);flex:none}
.mini-flow li.me i{background:var(--accent);border-color:var(--accent)}
.mini-flow li.me{font-weight:700}
.mini-flow li + li::before{content:"";position:absolute;left:4.5px;top:-6px;height:12px;width:1.5px;background:var(--line-strong)}
.note{font-size:12px;color:var(--faint)}
.back{border:0;background:none;padding:0;color:var(--accent);font-weight:600;font-size:13px;cursor:pointer;align-self:flex-start}

/* ---------- full pages ---------- */
.page{overflow-y:auto;min-width:0;padding:24px max(16px,env(safe-area-inset-right,0px)) 40px 24px}
.page-in{max-width:1080px;margin:0 auto;display:flex;flex-direction:column;gap:20px}
.page h2{margin:0;font-size:22px;font-weight:700;text-wrap:balance}
.page .lead{margin:4px 0 0;color:var(--muted);max-width:70ch}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 16px;min-width:0}
.card h3{margin:0 0 10px;font-size:13px;font-weight:700;display:flex;align-items:center;gap:8px}
.card h3::before{content:"";width:8px;height:8px;border-radius:2px;background:var(--accent)}
.card .kv{border:0;border-radius:0}
.card .kv li{padding:7px 0}
.topo-wrap{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow-x:auto}
.topo-wrap svg{display:block;width:100%;min-width:760px;height:auto}
.legend{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;color:var(--muted)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{display:inline-block;width:18px;height:0;border-top:2px solid}
.contact-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}
.contact-row:last-child{border-bottom:0}
.contact-row > span:first-child{color:var(--muted);flex:none}
.cval{display:flex;align-items:center;gap:8px;min-width:0;text-align:right;justify-content:flex-end;flex-wrap:wrap}
.cval a{color:var(--accent);font-weight:600;text-decoration:none;overflow-wrap:anywhere}
.cval a:hover{text-decoration:underline}
.copy{border:1px solid var(--line);background:var(--surface-2);border-radius:6px;font-size:11px;font-weight:600;padding:2px 7px;cursor:pointer;color:var(--muted)}
.copy:hover{color:var(--fg)}
.contact-box{border:1px solid var(--line);border-radius:10px;padding:4px 12px 12px;display:flex;flex-direction:column}
.contact-box .btn{margin-top:10px;align-self:flex-start}
.btn.wa{position:relative;overflow:hidden;padding-left:16px;text-decoration:none;color:var(--fg)}
.btn.wa::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--hi)}

/* topology svg */
.tn rect.box{fill:var(--surface);stroke:var(--line-strong);stroke-width:1.2}
.tn.me rect.box{stroke:var(--accent);stroke-width:2}
.tn.opt rect.box,.tn.cust rect.box{stroke-dasharray:5 4}
.tn{cursor:pointer}
.tn:hover rect.box,.tn.sel rect.box{stroke:var(--accent);stroke-width:2}
.tn .nm{font-size:13px;font-weight:700;fill:var(--fg)}
.tn .tg{font-size:10.5px;font-weight:600;fill:var(--muted)}
.tn .ic{fill:none;stroke:var(--muted);stroke-width:1.6}
.tn.me .ic{stroke:var(--accent)}
.tn .st{fill:var(--accent)}
.tn.opt .st{fill:var(--hi);stroke:#000;stroke-width:.8}
.tn.cust .st{fill:var(--faint)}
.tl{fill:none;stroke-width:2.2}
.tl.mat{stroke:var(--accent)}
.tl.win{stroke:var(--water-in)}
.tl.wout{stroke:var(--water-out)}
.tl.hyd{stroke:var(--muted)}
.tl.flow{stroke-dasharray:6 8;animation:dash 1.2s linear infinite}
@keyframes dash{to{stroke-dashoffset:-14}}
@media (prefers-reduced-motion: reduce){.tl.flow{animation:none}}
.tlbl{font-size:10.5px;font-weight:600;fill:var(--muted)}

/* ---------- modal ---------- */
.modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:rgb(0 0 0 / .35);padding:16px}
.modal-box{width:min(360px,100%);background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:18px;display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center}
.modal-box h3{margin:0;font-size:16px}
.modal-box p{margin:0;font-size:13px;color:var(--muted)}
.qr{width:220px;height:220px;display:grid;place-items:center;background:#fff;border-radius:10px;border:1px solid var(--line)}
.qr svg{width:200px;height:200px}
.url{font-family:var(--mono);font-size:11px;color:var(--muted);word-break:break-all}

/* ---------- recording mode ---------- */
body.rec .topbar,body.rec .rail,body.rec .panel,body.rec .float.tr,body.rec .float .stamp,body.rec .stepper,body.rec .float.tl .pill{display:none!important}
body.rec .app{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr)}
body.rec .main{grid-row:1;grid-column:1;background:#000}
body.rec .workspace{grid-template-columns:minmax(0,1fr);display:grid;place-items:center}
body.rec .stage{width:var(--rec-w);height:var(--rec-h)}
body.rec .caption{bottom:5%;width:min(86%,900px)}
body.rec .caption .cap-t{font-size:clamp(16px,2.6vmin,26px)}
body.rec .caption .cap-b{font-size:clamp(13px,2vmin,18px)}
.rec-mark{display:none}
body.rec .rec-mark{display:flex;position:absolute;top:4%;left:4%;align-items:center;gap:10px}
body.rec .rec-mark img{height:clamp(18px,3.2vmin,30px);background:#fff;padding:4px 8px;border-radius:6px}
.rec-exit{display:none}
body.rec .rec-exit{display:block;position:fixed;top:10px;right:10px;z-index:40;opacity:.18;transition:opacity .2s}
body.rec .rec-exit:hover{opacity:1}

/* ---------- phone ---------- */
@media (max-width:860px){
  body{overflow:auto}
  .app{display:block;height:auto;min-height:100%;padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
  .topbar{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;height:52px;gap:8px}
  body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:21;background:var(--surface)}
  .brand img{height:18px}
  .tb-sep,.tb-model .chip,.btn.contact,#unit{display:none}
  .seg button{padding:5px 7px}
  .rail{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:30;flex-direction:row;justify-content:space-around;gap:0;padding:6px max(8px,env(safe-area-inset-left,0px)) calc(6px + env(safe-area-inset-bottom,0px));border-right:0;border-top:1px solid var(--line);overflow:visible}
  .rail button{flex:1;padding:6px 0 4px;font-size:10px;min-width:0}
  .main{min-height:0}
  .workspace,.workspace.full{display:block;height:auto}
  .stage{height:62vh;min-height:360px}
  .panel{border-left:0;border-top:1px solid var(--line);overflow:visible;padding:16px max(16px,env(safe-area-inset-right,0px)) 24px max(16px,env(safe-area-inset-left,0px))}
  .page{overflow:visible;padding:18px max(16px,env(safe-area-inset-right,0px)) 24px max(16px,env(safe-area-inset-left,0px))}
  .caption{bottom:64px;padding:9px 12px 9px 14px}
  .caption .cap-t{font-size:15px}
  .caption .cap-b{display:none}
  .stepper{bottom:10px;gap:4px;padding:5px}
  .stepper .dots{gap:3px;padding:0 2px}
  .stepper .dot{width:18px;height:18px;font-size:10px}
  .stepper .sbtn.lbl-btn span{display:none}
  .float .stamp{display:none}
  .pill button{padding:6px 8px}
  .feat{grid-template-columns:1fr}
  .cards{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:420px){
  .tb-model{display:none}
  .stepper .dot:not([aria-current="true"]){width:8px;height:8px;border-radius:50%;font-size:0}
}

/* ================= 3.0: site shell, model tabs, resource and service pages ================= */
.seg a{display:inline-block;padding:5px 9px;border-radius:6px;font-size:12px;font-weight:600;color:var(--muted);text-decoration:none;white-space:nowrap}
.seg a:hover{color:var(--fg)}
.seg a[aria-pressed="true"],.seg a[aria-current="true"]{background:var(--surface);color:var(--fg);box-shadow:0 1px 2px rgb(0 0 0 / .12)}
a.btn{text-decoration:none;color:inherit}
a.btn.primary{color:var(--on-accent)}
.tb-crumb{font-size:13px;font-weight:600;color:var(--muted);text-decoration:none;white-space:nowrap}
.tb-crumb:hover{color:var(--fg)}
.rail-g{display:block;font-size:9.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);text-align:center;padding:8px 0 2px}
.rail-sep{display:block;height:1px;background:var(--line);margin:6px 4px}
.rail a{display:flex;flex-direction:column;align-items:center;gap:4px;border-radius:10px;padding:9px 2px 7px;color:var(--muted);font-size:11px;font-weight:600;line-height:1.15;text-align:center;text-decoration:none}
.rail a:hover{background:var(--surface-2);color:var(--fg)}
.rail a[aria-current="true"],.rail a[aria-current="true"]:hover{background:var(--accent);color:var(--on-accent)}
.rail a svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
/* a single offline file: the rail lists the product's sections, so it is kept short enough for a screen 800 px high
   (one line per name; the section bar above shows the names in full) */
@media (min-width:861px){
  .rail.compact{gap:1px;padding:8px 6px}
  .rail.compact button{padding:4px 2px 3px;gap:2px;font-size:10px}
  .rail.compact button span{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rail.compact svg{width:17px;height:17px}
  .rail.compact .rail-g{padding:5px 0 1px;font-size:9px}
  .rail.compact .rail-sep{margin:4px}
}
.main.model{display:grid;grid-template-rows:auto minmax(0,1fr)}
.main.static{overflow-y:auto}
.mtabs{display:flex;gap:18px;padding:0 max(16px,env(safe-area-inset-right,0px)) 0 20px;background:var(--surface-2);border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.mtabs::-webkit-scrollbar{display:none}
.mtabs button{border:0;background:none;padding:12px 2px 9px;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer;border-bottom:3px solid transparent;white-space:nowrap}
.mtabs button:hover{color:var(--fg)}
.mtabs button[aria-current="true"]{color:var(--fg);font-weight:700;border-bottom-color:var(--hi)}
/* group names in the section bar: understand, believe, decide, run */
.mt-g{flex:none;align-self:center;padding-left:14px;margin-left:-4px;border-left:1px solid var(--line);font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.mt-g:first-child{padding-left:0;margin-left:0;border-left:0}
.page.solo{min-height:100%}
.nc{text-transform:none}
.kicker{margin:0 0 4px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.ptitle{margin:0;font-size:22px;font-weight:700;line-height:1.25;text-wrap:balance}
.hero h1.ptitle{font-size:clamp(24px,3.2vw,34px);max-width:24ch}
.hero .lead{font-size:15px}
.body{margin:0;font-size:14px;color:var(--fg)}
.sec-h{margin:4px 0 10px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.promo{font-size:13px;font-weight:600;color:var(--accent);text-decoration:none}
.promo:hover{text-decoration:underline}
.g-val{font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}
.mgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.mcard{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}
.mcard:hover{border-color:var(--accent);box-shadow:var(--shadow)}
.mcard .thumb{display:block;width:100%;height:auto;max-height:150px;background:var(--surface-2);border-bottom:1px solid var(--line);padding:8px 0}
.mcard.wide{grid-column:span 2;flex-direction:row}
.mcard.wide .thumb{width:42%;border-bottom:0;border-right:1px solid var(--line)}
.t-steel{fill:var(--line-strong)}.t-paint{fill:var(--accent)}.t-dark{fill:var(--muted)}.t-line{stroke:var(--faint);stroke-width:1.5}
.mc-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}
.mc-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mc-top b{font-size:15px}
.mc-go{margin-top:auto;font-size:13px;font-weight:600;color:var(--accent)}
.mc-note{margin:0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.kv.slim{border:0;border-radius:0}
.kv.slim li{padding:4px 0;border:0;font-size:12.5px}
.lgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.lcard{display:flex;flex-direction:column;gap:4px;padding:14px 16px 14px 18px;background:var(--surface);border:1px solid var(--line);border-radius:12px;text-decoration:none;color:inherit;position:relative;overflow:hidden}
.lcard::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--accent)}
.lcard:hover{border-color:var(--accent)}
.lcard b{font-size:14px}
.lcard span{font-size:12.5px;color:var(--muted)}
.filters{display:flex;flex-direction:column;gap:8px}
.filter{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.filter > span{font-size:12px;font-weight:600;color:var(--muted);min-width:44px}
.filter button{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:5px 11px;font-size:12px;font-weight:600;color:var(--muted);cursor:pointer}
.filter button:hover{color:var(--fg)}
.filter button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.docs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}
.doc{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line)}
.doc:last-child{border-bottom:0}
.doc-th img,.doc-ic{display:grid;place-items:center;width:56px;height:70px;border-radius:6px;border:1px solid var(--line);object-fit:cover;background:var(--surface-2);font-size:10px;font-weight:700;color:var(--muted)}
.doc-b{display:flex;flex-direction:column;gap:3px;min-width:0}
.doc-b .chip{align-self:flex-start}
.doc-b b{font-size:14px}
.vgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
/* video poster: the platform's picture over a card that stays when the picture cannot load */
.vp-alt{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;padding:12px 14px;text-align:left;background:linear-gradient(135deg,var(--accent-soft),var(--surface-2));color:var(--fg)}
.vp-alt b{font-size:12px;font-weight:700;letter-spacing:.04em;color:var(--accent)}
.vp-alt span{font-size:13px;font-weight:600;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.vp-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.vposter .vplay{z-index:1}
.vcard{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.vposter,.vframe{display:block;width:100%;aspect-ratio:16/9;border:0;background:var(--surface-2) center/cover no-repeat;position:relative;cursor:pointer;padding:0}
.vposter.soon{display:grid;place-items:center;cursor:default;font-size:12px;font-weight:600;color:var(--muted)}
.vplay{position:absolute;left:50%;top:50%;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;background:rgb(0 0 0 / .65)}
.vplay::after{content:"";position:absolute;left:22px;top:17px;border-left:16px solid #fff;border-top:11px solid transparent;border-bottom:11px solid transparent}
.vb{padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px}
.vb .chip{align-self:flex-start}
.vb b{font-size:14px}
.sv-grid{display:flex;flex-direction:column;gap:14px}
.card.sv h3{font-size:14px}
.tscroll{overflow-x:auto}
.stbl{width:100%;border-collapse:collapse;font-size:13px;min-width:560px}
.stbl th,.stbl td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.stbl th{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.stbl tr:last-child td{border-bottom:0}
.stbl td.nw{white-space:nowrap}
.mono{font-family:var(--mono);font-size:12.5px}
.mono .chip{font-family:var(--font)}
.link3d{border:1px solid var(--line);background:var(--surface-2);border-radius:6px;padding:3px 8px;font-size:11.5px;font-weight:600;color:var(--accent);cursor:pointer;white-space:nowrap;text-decoration:none;display:inline-block}
.link3d:hover{border-color:var(--accent)}
details.adj{border:1px solid var(--line);border-radius:10px;padding:0 12px;margin-bottom:8px}
details.adj summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;cursor:pointer;list-style:none}
details.adj summary::-webkit-details-marker{display:none}
details.adj summary b::before{content:"+ ";color:var(--accent)}
details.adj[open] summary b::before{content:"– "}
details.adj ol{margin:0 0 10px;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:13px}
details.adj .note{margin:0 0 12px}
#sv-models{margin-bottom:4px}
@media (max-width:860px){
  .main.model{display:block}
  .main.static{overflow:visible}
  .mtabs{position:sticky;top:calc(52px + env(safe-area-inset-top,0px));z-index:15;gap:14px;padding-left:max(16px,env(safe-area-inset-left,0px))}
  .rail-g,.rail-sep{display:none}
  .rail a{flex:1;padding:6px 0 4px;font-size:10px;min-width:0}
  .mcard.wide{grid-column:auto;flex-direction:column}
  .mcard.wide .thumb{width:100%;border-right:0;border-bottom:1px solid var(--line)}
  .doc{grid-template-columns:44px minmax(0,1fr);}
  .doc-th img,.doc-ic{width:44px;height:56px}
  .doc-a{grid-column:2}
}

/* ---------- 3.1: service item beside the 3D view, phone cards for service tables ---------- */
.sv-ref{border:1px solid var(--line);border-radius:10px;padding:12px 14px 12px 16px;background:var(--surface-2);position:relative;overflow:hidden}
.sv-ref::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--accent)}
.sv-ref ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:13px}
.sv-ref dl{margin:0;display:flex;flex-direction:column;gap:2px;font-size:13px}
.sv-ref dt{font-size:11px;font-weight:700;color:var(--muted);margin-top:8px}
.sv-ref dt:first-child{margin-top:0}
.sv-ref dd{margin:0}
.sv-ref .note{margin:10px 0 0}
.flash{animation:flash 1.6s ease-out}
@keyframes flash{0%,40%{background:var(--accent-soft)}100%{background:transparent}}
@media (prefers-reduced-motion: reduce){.flash{animation:none}}
@media (max-width:860px){
  .workspace.focus .stage{height:46vh;min-height:300px}
  .tscroll{overflow:visible}
  .stbl{min-width:0}
  .stbl thead{display:none}
  .stbl,.stbl tbody,.stbl tr,.stbl td{display:block}
  .stbl tr{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid var(--line)}
  .stbl tr:first-child{padding-top:0}
  .stbl tr:last-child{padding-bottom:0;border-bottom:0}
  .stbl td{grid-column:1/-1;padding:2px 0;border:0}
  .stbl td:first-child{grid-column:1;font-weight:650;font-size:14px;padding-bottom:4px}
  .stbl td.go{grid-column:2;grid-row:1}
  .stbl td.nw{white-space:normal}
  .stbl td[data-l]{display:grid;grid-template-columns:30% minmax(0,1fr);column-gap:12px}
  .stbl td[data-l]::before{content:attr(data-l);padding-top:1px;font-family:var(--font);font-size:12px;font-weight:600;color:var(--muted)}
  .stbl td.go:empty{display:none}
  .stbl .link3d{padding:6px 10px;font-size:12px}
}

/* ---------- 3.2: company facts and quote request (desktop dialog, phone sheet) ---------- */
.trust{flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:10px;background:var(--surface-2);overflow:hidden}
.trust div{display:flex;flex-direction:column;gap:2px;padding:9px 12px;min-width:0}
.trust div + div{border-left:1px solid var(--line)}
.trust b{font-size:18px;line-height:1.15;font-weight:700;font-variant-numeric:tabular-nums}
.trust span{font-size:11px;line-height:1.3;color:var(--muted)}
.p-sec .promo{display:inline-block;margin-top:8px}
.card.cta{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 24px;align-items:center;padding:16px 18px;position:relative;overflow:hidden}
.card.cta::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--accent)}
.card.cta h3{margin-bottom:4px}
.card.cta .trust{grid-column:1/-1;max-width:520px}
body.modal-open{overflow:hidden}
.modal.sheet{padding:24px 16px}
.qbox{width:min(640px,100%);max-height:min(880px,100%);background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden;text-align:left}
.qhead{display:flex;align-items:flex-start;gap:12px;padding:16px 18px 14px;border-bottom:1px solid var(--line);flex:none}
.qhead h3{margin:0;font-size:17px;line-height:1.3}
.qhead p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.qhead .icon-btn{margin-left:auto}
.qhead .icon-btn svg{stroke-width:2}
.qform{display:flex;flex-direction:column;flex:1;min-height:0}
.qbody{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 18px 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;align-content:start}
.qf{display:flex;flex-direction:column;gap:5px;min-width:0}
.qf.wide,.qset{grid-column:1/-1}
.qf > span,.qset legend{font-size:12px;font-weight:600;color:var(--muted)}
.req{font-style:normal;color:var(--water-out);margin-left:2px}
.qf input,.qf select,.qf textarea,.qparts input[type="number"],.qdone textarea{font:inherit;font-size:14px;color:var(--fg);background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;padding:8px 10px;width:100%;min-width:0}
.qf select{appearance:none;padding-right:30px;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 15px) 52%,calc(100% - 10px) 52%;background-size:5px 5px;background-repeat:no-repeat}
.qf textarea{resize:vertical;min-height:76px}
.qf input:focus,.qf select:focus,.qf textarea:focus,.qparts input:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}
.qset{border:0;margin:0;padding:0;min-width:0}
.qset legend{padding:0;margin-bottom:6px}
.qopts{display:flex;flex-wrap:wrap;gap:6px}
.qopt{position:relative;display:inline-flex}
.qopt input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.qopt span{padding:6px 12px;border:1px solid var(--line-strong);border-radius:999px;font-size:13px;font-weight:600;color:var(--muted);background:var(--surface);pointer-events:none}
.qopt input:checked + span{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.qopt input:focus-visible + span{outline:2px solid var(--accent);outline-offset:2px}
.qparts{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.qparts li{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:10px;align-items:center;padding:7px 10px 7px 12px;border-bottom:1px solid var(--line)}
.qparts li:last-child{border-bottom:0}
.qparts label{display:flex;align-items:center;gap:10px;font-size:13px;cursor:pointer;min-width:0}
.qparts label input{width:16px;height:16px;margin:0;flex:none;accent-color:var(--accent)}
.qparts input[type="number"]{padding:5px 8px;text-align:right}
.qfoot{flex:none;display:flex;align-items:center;gap:12px;padding:12px 18px;border-top:1px solid var(--line);background:var(--surface)}
.qfoot .note{margin:0;flex:1;min-width:0}
.qdone{flex:1;min-height:0;overflow-y:auto;padding:16px 18px 18px;display:flex;flex-direction:column;gap:10px}
.qdone h4{margin:0;font-size:15px}
.qdone textarea{font-family:var(--mono);font-size:12px;line-height:1.5;min-height:200px;resize:vertical;background:var(--surface-2)}
@media (max-width:860px){
  .card.cta{grid-template-columns:minmax(0,1fr);padding:14px 16px}
}
/* phones: full-width sheet from the bottom, one column, 16px inputs so iOS does not zoom */
@media (max-width:640px){
  .modal.sheet{padding:0;place-items:end stretch}
  .qbox{width:100%;max-height:calc(100vh - 12px);max-height:calc(100dvh - env(safe-area-inset-top,0px) - 12px);border-radius:14px 14px 0 0;border-bottom:0}
  .qhead{padding:14px max(16px,env(safe-area-inset-right,0px)) 12px max(16px,env(safe-area-inset-left,0px))}
  .qbody,.qdone{grid-template-columns:minmax(0,1fr);padding:14px max(16px,env(safe-area-inset-right,0px)) 18px max(16px,env(safe-area-inset-left,0px))}
  .qf input,.qf select,.qf textarea,.qparts input[type="number"]{font-size:16px}
  .qopt span{padding:8px 14px}
  .qfoot{flex-direction:column-reverse;align-items:stretch;gap:8px;padding:10px max(16px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
  .qfoot .btn{padding:11px 14px;font-size:14px}
  .qfoot .note{text-align:center}
  .qdone .actions .btn{flex:1 1 calc(50% - 4px)}
}

/* ---------- 3.3: solution pages (project line in 3D) ---------- */
.loading{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:10px;font-size:13px;font-weight:600;color:var(--muted);pointer-events:none}
.loading i{display:block;width:180px;height:4px;border-radius:4px;background:var(--line);overflow:hidden}
.loading b{display:block;height:100%;width:0;background:var(--accent);transition:width .2s}
.legend.flows i.fl{width:9px;height:9px;border:0;border-radius:50%}
.fl.grain{background:#E2A400}.fl.flake{background:#B8740F}.fl.steam{background:var(--water-out)}.fl.water{background:var(--water-in)}
.note.src{margin:0}
.layout-fig{margin:0;padding:12px;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;cursor:zoom-in}
.layout-fig img{display:block;width:100%;max-width:880px;height:auto;margin:0 auto;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.layout-fig.zoom{overflow:auto;cursor:zoom-out}
.layout-fig.zoom img{width:200%;max-width:none}
.layout-fig figcaption{margin-top:8px;text-align:center;color:#8B8D89}
/* recording: the model tabs (added in 3.0) go too, and the stage takes the whole height */
body.rec .mtabs{display:none!important}
body.rec .main.model{grid-template-rows:minmax(0,1fr)}
@media (max-width:860px){
  .solution .float.tl{right:12px}
  .solution .stage{height:58vh}
}
/* control cabinet in the start-up procedure: run lights and the readings from the operating manual */
.cpanel{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface-2)}
.cp-rows{list-style:none;margin:0;padding:4px 0}
.cp-rows li{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:10px;padding:5px 12px;font-size:13px}
.cp-rows li i{width:10px;height:10px;border-radius:50%;background:var(--line-strong);box-shadow:inset 0 0 0 1px rgb(0 0 0 / .12)}
.cp-rows li.on i{background:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.cp-rows li b{font-size:12px;font-weight:600;color:var(--faint)}
.cp-rows li.on b{color:var(--accent)}
.cp-g{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border-top:1px solid var(--line)}
.cp-g div{background:var(--surface);padding:8px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.cp-g span{font-size:11px;color:var(--muted)}
.cp-g b{font-family:var(--mono);font-size:14px;font-weight:600;color:var(--faint);font-variant-numeric:tabular-nums}
.cp-g div.on b{color:var(--fg)}
/* solution process flow (generic chart from data) and the comparison table */
.flow-seg{max-width:520px}
.flow-wrap svg{min-width:0}
.ta{fill:none;stroke:var(--accent);stroke-width:2}
.tn .sb{font-size:11px;fill:var(--muted)}
.tn .to{font-size:11px;font-weight:600;fill:var(--muted)}
.tn.static{cursor:default}
.tn.static:hover rect.box{stroke:var(--line-strong);stroke-width:1.2}
.tn.me.static:hover rect.box{stroke:var(--accent);stroke-width:2}
.tn.inc .st{fill:var(--accent)}
.tl.steam{stroke:var(--water-out)}
.tl.air{stroke:var(--faint);stroke-dasharray:4 4}
.tl.hyd{stroke-dasharray:2 5}
.legend i.lk{width:18px;height:0;border-top:2px solid}
.lk.mat{border-color:var(--accent)!important}.lk.steam{border-color:var(--water-out)!important}.lk.win{border-color:var(--water-in)!important}
.lk.hyd{border-color:var(--muted)!important;border-top-style:dotted!important}.lk.air{border-color:var(--faint)!important;border-top-style:dashed!important}
.sol-cmp td{font-size:12px}
.sol-cmp td:first-child{width:28%;overflow-wrap:break-word;hyphens:auto}
.flow-seg button{white-space:normal;line-height:1.25}
/* manual explaining: switch rows with a flow colour dot, device rows with a locate button, the located device's card;
   on phones the stage stays under the tab bar while the switches scroll below it */
.chk i.fl{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px}
.ex-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.ex-h h3{margin-bottom:8px}
.ex-lnk{border:0;background:none;padding:0 0 0 12px;color:var(--accent);font-size:12px;font-weight:600;cursor:pointer}
.chk.ex-dev{padding:0 6px 0 0;cursor:default}
.ex-dev label{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0 8px 12px;cursor:pointer}
.ex-name{flex:1;min-width:0;border:0;background:none;padding:8px 0 8px 12px;text-align:left;font:inherit;font-size:13px;color:var(--fg);cursor:pointer}
.ex-name:hover{color:var(--accent)}
.ex-loc{flex:none;display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:7px;background:none;color:var(--muted);cursor:pointer}
.ex-loc:hover{background:var(--surface-2);color:var(--accent)}
.ex-loc svg{width:16px;height:16px}
.ex-sel{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--accent);border-radius:10px;background:var(--accent-soft)}
.ex-sel div{flex:1;min-width:0}
.ex-sel b{font-size:14px}
.ex-sel p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.ex-x{flex:none;border:0;background:none;font-size:20px;line-height:1;color:var(--muted);cursor:pointer;padding:0 2px}
#ex-sel:empty{display:none}
#ex-line button,#ex-mode button{white-space:normal;line-height:1.25}
.labels.with-hs .lbl.part{margin-top:-30px}
@media (max-width:860px){
  .workspace.explore .stage{position:sticky;top:calc(52px + 45px + env(safe-area-inset-top,0px));z-index:10;height:42vh;min-height:260px}
}
/* ---------- 3.4: real-machine videos beside the 3D, unit sizes, projects and support, fit and site check ---------- */
.pill.realbtn{align-items:center;gap:6px;padding:6px 12px 6px 10px;border-color:var(--accent);background:var(--accent);color:var(--on-accent);font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.pill.realbtn:hover{background:var(--accent-hover)}
.pill.realbtn svg{width:12px;height:12px;fill:currentColor;stroke:none}
body.rec .pill.realbtn{display:none!important}
.vbox{width:min(880px,100%)}
.vd-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 18px 16px;display:flex;flex-direction:column;gap:12px}
.vd-player .vframe{cursor:default;border-radius:10px;background:#000;max-height:58vh}
.cards.fit-cols{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
details.adj p.body{margin:0 0 12px;font-size:13px}
.pf-visits h3{margin-bottom:8px}
.vd-ext{display:grid;place-items:center;gap:10px;aspect-ratio:16/9;border-radius:10px;background:var(--surface-2);color:var(--fg);text-decoration:none;position:relative}
.vd-ext .vplay{position:static;margin:0}
.vd-ext b{font-size:13px}
.vd-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.vd-list button{width:100%;text-align:left;display:flex;flex-direction:column;gap:2px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);cursor:pointer}
.vd-list button b{font-size:13px;line-height:1.35}
.vd-list button span{font-size:12px;color:var(--muted)}
.vd-list button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
.vd-body .note{margin:0}
a.vposter.ext{display:block}
.vb .note{margin:0}
.note.dev-size{margin:6px 0 0}
.ex-sel .actions{margin-top:8px}
.ex-sel .actions .btn{padding:6px 10px;font-size:12px}
/* site check: tick box, requirement, value */
.chk.ck{justify-content:flex-start;gap:10px}
.chk.ck input{flex:none;width:16px;height:16px;margin:0;accent-color:var(--accent)}
.chk.ck span{flex:1;min-width:0}
.chk.ck b{flex:none;max-width:55%;text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.chk.ck:last-child{border-bottom:0}
.ck-n{margin:10px 0 6px;font-size:13px;font-weight:700;color:var(--accent)}
.fit-y h3::before{background:var(--accent)}
.fit-a h3::before{background:var(--hi);box-shadow:0 0 0 1px rgb(0 0 0 / .25)}
.dev-t{min-width:480px}
.sc{display:flex;flex-direction:column;gap:8px}
.sc-row{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;align-items:baseline;font-size:13px}
.sc-row .chip{justify-self:start}
.sc-row i{font-style:normal;color:var(--muted)}
/* projects: facts first, the write-up on bellaex.com */
.pf-sec{display:flex;flex-direction:column}
.pf-b{margin:-4px 0 10px}
.pcase{display:flex;flex-direction:column;gap:10px}
.pcase .vposter{margin:-14px -16px 0;width:calc(100% + 32px)}
.pcase h4{margin:0;font-size:15px}
.facts{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 12px;font-size:13px}
.facts div{display:contents}
.facts dt{color:var(--muted)}
.facts dd{margin:0;font-weight:600}
.pcase .promo{margin-top:auto}
.plinks{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.plinks .promo{font-weight:600}
.sup-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.sup{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:8px;position:relative;overflow:hidden}
.sup::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--accent)}
.sup h4{margin:0;font-size:14px}
.sup .body{font-size:13px}
.shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.shot{margin:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px}
.shot img{display:block;width:100%;height:auto;border-radius:8px}
.shot figcaption{margin-top:6px}
/* 案例与保障: feedback screenshots are tall, so show their top; the team's to-do of missing evidence (?team=1 only) */
.pf-shots .ph{aspect-ratio:3/4}
.pf-shots .ph img{object-position:top}
.pf-todo{border-style:dashed;border-color:var(--line-strong);background:var(--surface-2)}
.pf-todo h3{margin:0 0 6px;font-size:14px}
.pf-todo ul{margin:0 0 8px;padding-left:18px;font-size:13px;display:flex;flex-direction:column;gap:4px}
.pf-todo li{overflow-wrap:anywhere}
.pf-todo .note{margin:0}
@media (max-width:640px){
  .vd-body{padding:12px max(16px,env(safe-area-inset-right,0px)) calc(14px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
  .vbox{max-height:calc(100dvh - env(safe-area-inset-top,0px) - 12px)}
  .sc-row{grid-template-columns:minmax(0,1fr)}
  .chk.ck{flex-wrap:wrap}
  .chk.ck b{max-width:none;flex-basis:100%;text-align:left;padding-left:26px}
  .dev-t{min-width:0}
  .sup-grid{grid-template-columns:minmax(0,1fr)}
}
/* phone: a rail with more entries than fit scrolls sideways instead of squeezing the labels */
@media (max-width:860px){
  .rail{justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
  .rail::-webkit-scrollbar{display:none}
  .rail button,.rail a{flex:1 0 50px}
}
/* online preview: files cannot be saved there */
.nosave a[download]{display:none}
/* entry page: line solutions on top, machine demos below */
.doors{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;align-items:start}
.door{display:flex;flex-direction:column;gap:10px;min-width:0;scroll-margin-top:16px}
.door-t{margin:0;font-size:18px;font-weight:700;line-height:1.25}
.door .note{margin:0}
/* all five machines in one row on a wide screen */
.door .mgrid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
/* a line card lies flat on a wide screen: the drawing on the left, the text on the right */
.sgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,560px),1fr));gap:14px}
@media (min-width:700px){
  .sgrid .mcard{flex-direction:row}
  .sgrid .mcard .thumb{width:38%;max-height:none;border-bottom:0;border-right:1px solid var(--line);align-self:stretch}
}
/* a card that is one big link with smaller links on top of it */
.mcard.stretch{position:relative}
.mc-main{color:inherit;text-decoration:none}
.mc-main::after{content:"";position:absolute;inset:0;border-radius:inherit}
.mc-main:focus-visible{outline:none}
.mc-main:focus-visible::after{outline:2px solid var(--accent);outline-offset:-2px}
.mc-jumps{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:6px}
.mc-jumps a{padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--fg);font-size:12.5px;font-weight:600;line-height:1.3;text-decoration:none}
.mc-jumps a:hover{border-color:var(--accent);color:var(--accent)}

/* ---------- construction detail (3.8): the water-cooled roll's own scene on the machine's stage ---------- */
/* construction details: the list of a series' details (v26.1), the same on a machine and a line; yellow marks the one shown */
.dnav{display:flex;flex-direction:column;gap:6px}
.dnav-h{font-size:11px;font-weight:700;color:var(--muted)}
.dnav-l{display:flex;flex-wrap:wrap;gap:6px}
.dnav-i{border:1px solid var(--line-strong);background:var(--surface);border-radius:999px;padding:5px 12px;font-size:12.5px;font-weight:600;color:var(--fg);cursor:pointer;white-space:nowrap}
.dnav-i:hover{border-color:var(--fg)}
.dnav-i[aria-current="true"]{background:var(--hi);border-color:var(--hi);color:var(--on-hi)}
.dnav-i.planned{cursor:default;color:var(--faint);border-style:dashed;background:transparent;display:inline-flex;gap:6px;align-items:center}
.dnav-i.planned em{font-style:normal;font-size:10.5px}
@media (max-width:860px){.dnav-l{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.dnav-l::-webkit-scrollbar{display:none}}
.rstage{position:absolute;inset:0;display:none}
.stage.roll .rstage{display:block}
.stage.roll > canvas,.stage.roll > .labels,.stage.roll > .float.tr,.stage.roll > .float.tl{display:none!important}   /* three.js sets the canvas inline */
.rstage .lbl.part{white-space:nowrap}
@media (max-width:860px){.rstage .lbl{font-size:10.5px}.rstage .lbl.part{padding:2px 7px}.rstage .lbl.dim{padding:1px 5px 1px 8px}}
.rw-ex{margin:0;padding:8px 10px;border-left:3px solid var(--accent);background:var(--surface-2);border-radius:0 8px 8px 0}

/* ---------- photos (3.7): strips in part cards, the photos section, the large view ---------- */
.ph-strip{display:flex;gap:6px;overflow-x:auto;padding:2px 0 6px;margin:2px 0;scrollbar-width:thin}
.ph{flex:0 0 auto;display:block;height:76px;padding:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface-2);cursor:zoom-in}
.ph img{display:block;height:100%;width:auto}
.ph:hover,.ph:focus-visible{border-color:var(--accent)}
.ph-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.ph-grid .ph{width:100%;height:auto;aspect-ratio:4/3}
.ph-grid .ph img{width:100%;height:100%;object-fit:cover}
.ph-sec{margin:0 0 22px}
.ph-sec h3{font-size:14px;margin:0 0 8px}
.ph-hint{margin:4px 0;padding:6px 10px;border:1px dashed var(--line-strong);border-radius:8px;word-break:break-all}
.ex-sel .ph{height:60px}
.phbox{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;background:rgb(0 0 0 / .9);padding:16px}
.phbox[hidden]{display:none}
.phbox figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:10px;max-width:100%}
.phbox img{display:block;max-width:min(96vw,1600px);max-height:calc(100vh - 110px);width:auto;height:auto;object-fit:contain;border-radius:6px;background:#222}
.phbox figcaption{color:#fff;font-size:14px;text-align:center}
.phbox button{position:absolute;border:0;border-radius:50%;width:44px;height:44px;background:rgb(255 255 255 / .14);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.phbox button:hover,.phbox button:focus-visible{background:rgb(255 255 255 / .28)}
.phbox button[hidden]{display:none}
.phbox .ph-x{top:12px;right:12px}
.phbox .ph-prev{left:12px;top:50%;transform:translateY(-50%)}
.phbox .ph-next{right:12px;top:50%;transform:translateY(-50%)}

/* ================= v26.4: phone ================= */
/* bottom bar: a short name on one line (the desktop rail keeps the full name); a single offline file shows About at
   the end of its section bar on a phone, where it has no bottom bar */
.rail .l-short,.mt-info{display:none}
@media (max-width:860px){
  .rail .l-full{display:none}
  .rail .l-short{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rail a,.rail button{padding-left:2px;padding-right:2px}
  .rail.compact{display:none}
  .app:has(.rail.compact){padding-bottom:env(safe-area-inset-bottom,0px)}
  .mtabs .mt-info{display:inline-block}
  /* the step bar stays on screen while the reader scrolls down to the step's text */
  .stepper{position:fixed;bottom:calc(72px + env(safe-area-inset-bottom,0px));z-index:25}
  .app:has(.rail.compact) .stepper{bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .caption{bottom:12px}
  .workspace:has(.stepper:not([hidden])) .panel{padding-bottom:88px}
  /* 3D height by what it shows: the overview leaves room for the name and the first buttons, the roll is long and flat */
  .workspace.ov:not(.focus) .stage{height:48vh;min-height:300px}
  .stage.roll{height:44vh;min-height:280px}
  /* bigger places to tap, same look */
  .promo{display:inline-flex;align-items:center;min-height:36px}
  .p-sec .promo{margin-top:2px}
  .copy{min-height:32px;padding:4px 10px}
  .mc-jumps a{display:inline-flex;align-items:center;min-height:36px}
  /* the entry page: machine cards side by side with a small picture, direct links in one row that slides */
  .door .mgrid .mcard{flex-direction:row}
  .door .mgrid .mcard .thumb{width:32%;max-height:none;border-bottom:0;border-right:1px solid var(--line);align-self:stretch;padding:6px 0}
  .sgrid .mcard .thumb{max-height:120px}
  .mc-jumps{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-14px;padding-right:14px}
  .mc-jumps::-webkit-scrollbar{display:none}
  .mc-jumps a{flex:none}
}
@media (max-width:420px){
  /* step dots: the same small dot, a larger place to tap */
  .stepper .dots{gap:0}
  .stepper .dot:not([aria-current="true"]){width:20px;height:20px;border:0;border-radius:50%;font-size:0;background:radial-gradient(circle,var(--line-strong) 0 4px,transparent 4.5px)}
  .stepper .dot.done:not([aria-current="true"]){background:radial-gradient(circle,var(--accent) 0 4px,transparent 4.5px)}
}
/* phone: every button and link is at least 32 px to tap (the self-check in tools/mobile-check.js looks for smaller ones) */
@media (max-width:860px){
  .topbar .seg button,.topbar .seg a{min-height:32px;min-width:34px;display:inline-flex;align-items:center;justify-content:center}
  .mtabs button{flex:none;min-width:32px;padding-left:4px;padding-right:4px}
  .pill button,.seg button{min-height:32px}
  .ex-loc{width:34px;height:34px}
  .ex-lnk{min-height:32px;padding-left:14px}
  .link3d{display:inline-flex;align-items:center;min-height:32px}
  .dnav-i{padding-top:7px;padding-bottom:7px}
  .contact-row .cval a{display:inline-flex;align-items:center;min-height:32px}
  .stepper .sbtn{min-width:36px}
  .ex-lnk{min-width:32px}
  .filter button{min-height:32px}
  /* seven names on a 375 px phone: a little more room for each */
  .rail{padding-left:max(4px,env(safe-area-inset-left,0px));padding-right:max(4px,env(safe-area-inset-right,0px))}
  .rail a,.rail button{padding-left:1px;padding-right:1px}
  .rail .l-short{letter-spacing:-.01em}
  /* the whole machine card opens the machine, so its "view" line is left out on a phone */
  .door .mgrid .mc-go{display:none}
}
@media (max-width:420px){
  .stepper .dot:not([aria-current="true"]),.stepper .dot[aria-current="true"]{width:22px;height:22px}
  .stepper .sbtn{width:36px;min-width:36px}
}
@media (max-width:360px){
  /* very narrow phones: a row of choices wraps instead of sticking out */
  .seg{flex-wrap:wrap;max-width:100%}
}

/* v26.5: the phone's bottom bar holds four entries: home, lines, machines, videos (documents, service, about: entry page and "contact") */
@media (max-width:860px){
  .rail a.ph-off,.rail-sep{display:none}
}

/* v26.6: the foot of every product document (checked by, updated, product page, the product's other documents) */
.doc-foot{margin-top:18px;padding-top:10px;border-top:1px solid var(--line);font-size:12px;line-height:1.6;color:var(--muted)}
.doc-foot p{margin:2px 0}
.doc-foot a{color:var(--muted);text-decoration:underline;text-underline-offset:2px}
.doc-foot a:hover{color:var(--fg)}
/* a walk-through or sequence with every step at once (the website's pre-rendered page; the page script then steps through it) */
.seq-all{margin:4px 0 0;padding-left:20px}
.seq-all li{margin:0 0 14px}
.seq-all h3{margin:0 0 4px;font-size:15px}
/* ?embed=1: only the 3D, in a frame on a bellaex.com product page, with one button to the full page */
.embed-open{display:none}
.embed .topbar,.embed .rail,.embed .mtabs,.embed .panel,.embed .page,.embed .caption,.embed .stepper,.embed .float.tl .stamp{display:none!important}
.embed .app{grid-template-rows:minmax(0,1fr)!important;grid-template-columns:minmax(0,1fr)!important;padding:0!important;height:100vh}
.embed .main.model{grid-template-rows:minmax(0,1fr)!important}
.embed .workspace{grid-template-columns:minmax(0,1fr)!important;height:100%}
.embed .stage{display:block!important;height:100%!important;min-height:0}
.embed .embed-open{display:inline-flex;position:fixed;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:40}
/* Fusion: the existing machine order and card language, separated by equipment family. */
.machine-family{margin-top:18px}
.machine-family>h3{font-size:18px;line-height:1.4;margin:0 0 6px}
.machine-family+.machine-family{margin-top:28px;padding-top:22px;border-top:1px solid var(--line,#ddd)}
.crusher-card .mc-top{flex-wrap:wrap;gap:6px}
:focus-visible{outline:3px solid #377B2A;outline-offset:3px}
@media(max-width:600px){.machine-family+.machine-family{margin-top:20px;padding-top:18px}}
@media(prefers-reduced-motion:reduce){.mcard,.lcard,.btn{transition-duration:.001ms!important;animation-duration:.001ms!important;scroll-behavior:auto!important}}
/* Product playback/preferences get a second row on phones; language controls stay fully reachable. */
@media(max-width:860px){
  .topbar:has(#fusion-play){height:88px;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;grid-template-rows:34px 34px;gap:6px;padding-top:7px;padding-bottom:7px}
  .topbar:has(#fusion-play)>.brand{grid-column:1;grid-row:1}
  .topbar:has(#fusion-play)>.tb-model{grid-column:2;grid-row:1}
  .topbar:has(#fusion-play)>.tb-spacer{display:none}
  .topbar:has(#fusion-play)>#lang{grid-column:3;grid-row:1}
  .topbar:has(#fusion-play)>#btn-theme{grid-column:4;grid-row:1;justify-self:center}
  .topbar:has(#fusion-play)>#btn-qr{grid-column:5;grid-row:1;justify-self:center}
  .topbar:has(#fusion-play)>#unit{display:inline-flex;grid-column:3;grid-row:2;justify-self:end}
  .topbar:has(#fusion-play)>#fusion-play{grid-column:4;grid-row:2}
  .topbar:has(#fusion-play)>.fusion-tools{grid-column:5;grid-row:2;justify-self:end}
  .app:has(#fusion-play) .mtabs{top:calc(88px + env(safe-area-inset-top,0px))}
  .app:has(#fusion-play) .workspace.explore .stage{top:calc(88px + 45px + env(safe-area-inset-top,0px))}
}
