/* MiStudio 0.7.2 VIEW STATION (web/viewstation.js; approved mockup docs/mockups/view_station.html; L7-244): one fixed block at the
   lower left of the viewport: the cube + two aligned rows (Visibility, View). It never moves: no slots, no drag, no wrap jumps. */
#vstation{position:absolute;right:8px;bottom:8px;z-index:4;display:flex;align-items:flex-end;gap:8px;padding:6px 8px 6px 6px;
 max-width:calc(100% - 16px);box-sizing:border-box;background:color-mix(in srgb,var(--panel) 94%,transparent);border:1px solid var(--line);
 border-radius:10px;box-shadow:var(--shadow);font-size:12px;user-select:none;pointer-events:auto}
#vstation[hidden]{display:none!important}
#vstation .vs-rows{display:flex;flex-direction:column;gap:5px;min-width:0;padding-bottom:1px}
#vstation .vs-row{display:flex;align-items:center;gap:2px;flex-wrap:nowrap;white-space:nowrap;height:24px}
#vstation .vs-lab{flex:none;width:58px;color:var(--mute);font-size:11px;font-weight:600;letter-spacing:.02em}
#vstation .vs-b{height:22px;padding:0 7px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--ink);font:inherit;cursor:pointer;
 display:inline-flex;align-items:center;gap:4px;transition:background 120ms ease-out}
#vstation .vs-b:hover{background:var(--hover);border-color:var(--line)}
#vstation .vs-b:active{transform:scale(.97)}
#vstation .vs-b.on,#vstation .vs-b[aria-pressed="true"],#vstation .vs-b[aria-expanded="true"]{background:var(--hover);color:var(--acc);border-color:var(--line)}
#vstation .vs-b:disabled{color:var(--mute);opacity:.5;cursor:default;background:transparent;border-color:transparent;transform:none}
#vstation .vs-b svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;flex:none}
#vstation .vs-b svg .f{fill:currentColor;stroke:none}
#vstation .vs-act{min-width:104px;justify-content:space-between;font-weight:600;font-variant-numeric:tabular-nums;background:var(--chip)}
#vstation .vs-disp{min-width:178px;justify-content:space-between;background:var(--chip)}
#vstation .vs-seg{display:inline-flex;gap:1px;padding:1px;border-radius:7px;background:var(--chip)}
#vstation .vs-seg .vs-b{padding:0 6px;border:0}
#vstation .vs-seg .vs-b:hover{background:var(--panel)}
#vstation .vs-sep{flex:none;width:1px;height:16px;background:var(--line);margin:0 4px}
#vstation .vs-n{display:inline-block;min-width:78px;padding:0 6px;color:var(--mute);font-variant-numeric:tabular-nums;white-space:nowrap}
#vstation .vh-btns{display:inline-flex;gap:2px}
#vstation .vs-ico{padding:0 6px}
#vstation.nomodel .vs-rows{opacity:.55}
/* fit tiers (viewstation.js fit): words drop, buttons stay */
/* 0.7.3 LEGIBLE LOOK (Maysam, Dec 2: the mockup "colour theme and layout is a lot more legible"): every button a bordered chip,
   the current one filled with the accent, a deeper station panel; same in light and dark through the theme variables. */
#vstation{background:color-mix(in srgb,var(--ink) 7%,var(--panel));border-color:color-mix(in srgb,var(--ink) 22%,var(--panel));padding:8px 10px 8px 8px}
#vstation .vs-rows{gap:7px}#vstation .vs-row{gap:4px;height:28px}
#vstation .vs-lab{font-size:12px;font-weight:500}
#vstation .vs-b{height:26px;padding:0 9px;background:var(--panel);border:1px solid color-mix(in srgb,var(--ink) 26%,var(--panel));border-radius:5px}
#vstation .vs-b:hover{background:var(--hover);border-color:color-mix(in srgb,var(--ink) 40%,var(--panel))}
#vstation .vs-b.on,#vstation .vs-b[aria-pressed="true"],#vstation .vs-b[aria-expanded="true"]{background:color-mix(in srgb,var(--acc) 30%,var(--panel));
 border-color:var(--acc);color:var(--ink)}
#vstation .vs-seg{gap:4px;padding:0;background:transparent}
#vstation .vs-seg .vs-b{padding:0 9px;border:1px solid color-mix(in srgb,var(--ink) 26%,var(--panel))}
#vstation .vs-seg .vs-b:hover{background:var(--hover)}
#vstation .vs-act,#vstation .vs-disp{background:var(--panel)}
#vstation .vs-sep{height:20px;margin:0 3px}
#vstation .vs-b:disabled{border-color:color-mix(in srgb,var(--ink) 14%,var(--panel));background:transparent}
#vstation .vs-vs{display:none}
#vstation[data-fit="c1"] .vs-lab,#vstation[data-fit="c2"] .vs-lab,#vstation[data-fit="c3"] .vs-lab{display:none}
#vstation[data-fit="c1"] .vs-ico span,#vstation[data-fit="c2"] .vs-ico span,#vstation[data-fit="c3"] .vs-ico span,
#vstation[data-fit="c1"] [data-vh="list"] span,#vstation[data-fit="c2"] [data-vh="list"] span,#vstation[data-fit="c3"] [data-vh="list"] span{display:none}
#vstation[data-fit="c2"] .vs-dv,#vstation[data-fit="c3"] .vs-dv{display:none}
#vstation[data-fit="c2"] .vs-dl,#vstation[data-fit="c3"] .vs-dl{font-weight:400}
#vstation[data-fit="c2"] .vs-disp,#vstation[data-fit="c3"] .vs-disp{min-width:0}
#vstation[data-fit="c3"] .vs-vl{display:none}#vstation[data-fit="c3"] .vs-vs{display:inline}
#vstation[data-fit="c3"] .vs-act{min-width:0}#vstation[data-fit="c3"] .vs-n{min-width:0}
@media (prefers-reduced-motion:reduce){#vstation .vs-b:active{transform:none}#vstation .vs-b{transition:none}}
/* the menus that open UPWARD from the station: Display ▾ and the view history */
.vs-menu{position:fixed;z-index:70;min-width:220px;padding:4px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);font-size:12px}
.vs-menu[hidden]{display:none}
.vs-menu .vs-mi{padding:5px 10px 5px 24px;border-radius:5px;cursor:pointer;position:relative}
.vs-menu .vs-mi:hover{background:var(--hover)}
.vs-menu .vs-mi.cur::before{content:"✓";position:absolute;left:8px;color:var(--acc)}
.vs-menu hr{border:0;border-top:1px solid var(--line);margin:3px 4px}
.vh-pop{position:fixed;z-index:70;width:300px;max-height:50vh;display:flex;flex-direction:column;padding:4px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);font-size:12px}
.vh-pop .vh-head{padding:3px 8px 5px;font-weight:600}
.vh-pop .vh-head small{color:var(--mute);font-weight:400}
.vh-pop .vh-list{overflow:auto}
.vh-pop .it{display:grid;grid-template-columns:56px 1fr auto;gap:6px;padding:3px 8px;border-radius:4px;cursor:pointer}
.vh-pop .it:hover{background:var(--hover)}
.vh-pop .it.cur{background:color-mix(in srgb,var(--acc) 18%,transparent);font-weight:600}
.vh-pop .it.fut{color:var(--mute)}
.vh-pop .it .tag{color:var(--mute)}
.vh-pop .it .t{color:var(--mute);font-variant-numeric:tabular-nums}
#vlFilter.vb-pop{position:absolute;z-index:8;width:300px;padding:8px 10px;border-radius:9px;background:var(--panel);box-shadow:var(--shadow);font-size:12px}
/* 0.7.2 DETAILS pane (M-64 B1, L7-246 / L7-247): section borders that read in light AND dark (were --line, nearly invisible on
   dark), the ACC as a fixed collapsed strip at the very top (no pin, no close). Higher specificity: the 0.5.x sheets load later. */
body #props .isec,body #props .fpanel.docked{border:1px solid color-mix(in srgb,var(--ink) 24%,var(--panel));box-shadow:0 1px 2px rgb(0 0 0/.06)}
body #props .isec>.isec-h,body #props .fpanel.docked>.fp-head{background:color-mix(in srgb,var(--ink) 4%,var(--panel))}
body #props .isec-b{border-top-color:color-mix(in srgb,var(--ink) 16%,var(--panel))}
.insp-fixed{flex:none;padding:4px 4px 0}.insp-fixed:empty{display:none}
body #props .insp-fixed>.fpanel.docked{margin:0;border-radius:6px}
body #props .insp-fixed>.fpanel.docked.collapsed>.fp-head{min-height:28px}
.insp-fixed .fpanel .fp-x,.insp-fixed .fpanel .fp-pin{display:none!important}
/* nothing picked: a short how-to instead of the model summary */
.dt-guide{padding:10px 12px;color:var(--mute);font-size:12.5px;line-height:1.5}
.dt-guide b{color:var(--ink);font-weight:600}
.dt-guide ul{margin:6px 0 0;padding-left:18px}
.dt-guide li{margin:2px 0}
/* 0.7.2 PART CARD (M-64 B2): the hub of a picked body / bodies */
.part-card{margin:0 0 6px;padding:2px 0 6px;border-bottom:1px solid color-mix(in srgb,var(--ink) 14%,var(--panel))}
.part-card .part-status{margin:6px 2px 0;font-size:12px;color:var(--mute)}
.part-card .part-status.no{color:var(--bad,#e5484d)}
.part-card .part-status a,.dt-guide a{cursor:pointer;color:var(--acc)}
/* B4: a load / constraint with nothing to act on says so inline */
.mt-empty-target{margin:6px 0;padding:6px 8px;border-radius:6px;border:1px solid color-mix(in srgb,var(--bad,#e5484d) 45%,var(--panel));
 background:color-mix(in srgb,var(--bad,#e5484d) 8%,var(--panel));color:var(--ink);font-size:12px}
.mt-empty-target b{color:var(--bad,#e5484d)}
/* 0.7.4 -> 0.7.6 FLOATING CUBE: the cube always floats on its own (lower left by default; viewstation.js places it) */
#vcube.vc-free{position:absolute!important;right:auto!important;bottom:auto!important;z-index:5;display:flex;flex-direction:column;align-items:center;gap:2px;
 padding:4px 6px 6px;border-radius:10px;background:color-mix(in srgb,var(--ink) 7%,var(--panel));border:1px solid color-mix(in srgb,var(--ink) 22%,var(--panel));box-shadow:var(--shadow);pointer-events:auto}
#vcube.vc-free canvas{width:96px!important;height:96px!important;border-radius:10px}
#vcube.vc-free .vc-row{display:flex;gap:1px;padding:1px 2px;border-radius:7px;background:var(--chip)}
#vcube.vc-free .vc-row button{width:22px;height:22px;min-width:22px;padding:0;display:grid;place-items:center;border:0;border-radius:5px;background:transparent;color:var(--mute)}
#vcube.vc-free .vc-row button span{display:none}
#vcube.vc-free .vc-row svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
/* 0.7.5 NEUTRAL THEME (Maysam, Dec 2: the mockup's "neutral fancy" slate colours instead of the screamy ones; title rows a different
   colour so panels are distinct): --head = the title-row colour (studio.html theme blocks) */
body #props .isec>.isec-h,body #props .fpanel.docked>.fp-head,.fpanel>.fp-head{background:var(--head)!important;border-bottom:1px solid var(--line)}
.mt-grp>.row.mt-br{background:var(--head)}
.mt-grp{border-color:var(--line2)!important}
/* long notes fold to one line */
.tp-fold{white-space:normal}
.tp-fold>summary{cursor:pointer;list-style:none;font-weight:500;color:var(--ink)}
.tp-fold>summary::-webkit-details-marker{display:none}
.tp-fold>summary::before{content:"▸";display:inline-block;width:14px;color:var(--mute);transition:transform 120ms ease-out}
.tp-fold[open]>summary::before{transform:rotate(90deg)}
.tp-fold-b{margin-top:4px;white-space:pre-wrap;color:var(--mute)}
/* 0.7.6 (Maysam on 0.7.5, L7-253..L7-255): the cube and the station are two floating blocks, each with the classic MOVE handle
   (four-way arrow; drag = follows the pointer 1:1, double click = back home). Default: cube lower left, station lower right.
   viewstation.js sets left / top; the CSS corner is only the place before the first layout. */
#vcube.vc-free{left:8px;bottom:8px;top:auto;width:auto;height:auto}
#vcube.vc-free[hidden]{display:none!important}
.mv-grip{display:grid;place-items:center;flex:none;cursor:grab;touch-action:none;border-radius:5px;color:color-mix(in srgb,var(--ink) 55%,transparent)}
.mv-grip svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.mv-grip:hover{background:var(--hover);color:var(--acc)}
.mv-drag .mv-grip,.mv-grip:active{cursor:grabbing;color:var(--acc)}
.mv-drag{transition:none!important}
#vcube .vc-grip.mv-grip{align-self:stretch;height:18px}
#vstation .vs-grip.mv-grip{align-self:stretch;width:18px;margin:-2px 0 -2px -2px}
/* the current standard view (and every other "on" button of the station) in ONE accent style, dark and light alike */
#vstation .vs-b.on,#vstation .vs-b[aria-pressed="true"],#vstation .vs-b[aria-expanded="true"],
#vstation .vs-seg .vs-b.on,#vstation .vs-seg .vs-b[aria-pressed="true"]{background:color-mix(in srgb,var(--acc) 30%,var(--panel));border-color:var(--acc);color:var(--ink)}
/* no focus ring after a mouse click; the keyboard keeps a visible one (accent, not white) */
#vstation button:focus:not(:focus-visible),#vcube button:focus:not(:focus-visible),.mv-grip:focus:not(:focus-visible){outline:none;box-shadow:none}
#vstation button:focus-visible,#vcube button:focus-visible,.mv-grip:focus-visible{outline:2px solid var(--acc);outline-offset:1px}
/* 0.7.7 c4 (a narrow tiled view): everything c3 does, and the rows wrap onto more lines instead of running out of the view */
#vstation[data-fit="c4"] .vs-lab,#vstation[data-fit="c4"] .vs-vl,#vstation[data-fit="c4"] .vs-dv,#vstation[data-fit="c4"] .vs-ico span,#vstation[data-fit="c4"] [data-vh="list"] span{display:none}
#vstation[data-fit="c4"] .vs-vs{display:inline}
#vstation[data-fit="c4"] .vs-act,#vstation[data-fit="c4"] .vs-n,#vstation[data-fit="c4"] .vs-disp{min-width:0}
#vstation[data-fit="c4"] .vs-row{flex-wrap:wrap;height:auto;row-gap:4px}
#vstation[data-fit="c4"] .vs-rows{min-width:0;flex:1}
/* 0.7.8 (L7-265): in c4 the groups wrap too (the 7 one-letter views, the history buttons), so a very narrow tile (~230 px) never
   overflows; viewstation.js fit() sets max-width = the width left next to the cube or the full view */
#vstation[data-fit="c4"] .vs-seg,#vstation[data-fit="c4"] .vs-hist,#vstation[data-fit="c4"] .vh-btns{display:inline-flex;flex-wrap:wrap;row-gap:4px;min-width:0}
#vstation[data-fit="c4"] .vs-sep{display:none}
