/* MiStudio 0.5.14 (round 6 S03 / S04 / S15 / S19; round 7 T01-T04): the Selection dock, the Measure group, equal tabs. */
/* ---- the dock (web/seldock.js) ---- */
.seldock{--sd-gap:8px;position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--panel);color:var(--ink);font-size:12px;line-height:1.35}
.seldock[hidden]{display:none!important}
.seldock .sd-h{display:flex;align-items:center;gap:6px;height:34px;padding:0 8px 0 12px;border-bottom:1px solid var(--line);flex:none}
.seldock .sd-t{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.seldock .sd-n{color:var(--ink);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.seldock .sd-sp{flex:1}
.seldock .sd-ib{width:26px;height:26px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:var(--mute);cursor:default}
.seldock .sd-ib:hover{background:var(--hover);color:var(--ink)}
.seldock .sd-ib svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4}
.seldock .sd-body{display:flex;flex-direction:column;gap:var(--sd-gap);padding:10px 12px 10px;min-height:0;flex:1;overflow:hidden}
.seldock .sd-tool{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;background:color-mix(in srgb,var(--tool,#ff9f0a) 14%,transparent);color:var(--tool,#c46a00);font-weight:600}
.seldock .sd-tool[hidden]{display:none}
.seldock .sd-tt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seldock .sd-tool .btn{height:24px;padding:0 10px}
.seldock .sd-ctl{display:flex;flex-direction:column;gap:6px}
.seldock .sd-ctl .rb-r{display:flex;align-items:center;gap:4px;min-width:0}
.seldock .sd-ctl .seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;flex:1;min-width:0}
.seldock .sd-ctl .seg button{padding:0 4px;min-width:0;display:flex;align-items:center;justify-content:center;gap:4px;font-size:11.5px;white-space:nowrap;overflow:hidden}
.seldock .sd-ctl .seg button .ic{width:13px;height:13px;flex:none}
.seldock .sd-ctl .ib.more{flex:none;width:22px;height:28px}
.seldock .sd-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.seldock .sd-grid .btn{height:26px;padding:0 4px;font-size:11.5px;justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.seldock .sd-find{display:flex;align-items:center;gap:6px;height:28px;padding:0 8px;border:1px solid var(--line2);border-radius:8px;background:var(--panel2)}
.seldock .sd-find svg{width:13px;height:13px;flex:none;fill:none;stroke:var(--mute);stroke-width:1.5}
.seldock .sd-find input{flex:1;min-width:0;height:100%;border:0;background:transparent;color:var(--ink);font:inherit;outline:none}
.seldock .sd-list{flex:1;min-height:60px;overflow:auto;margin:0 -6px;padding:0 6px}
.seldock .sd-g,.seldock .sd-i{display:flex;align-items:center;gap:6px;height:26px;padding:0 4px 0 2px;border-radius:6px;cursor:default}
.seldock .sd-g:hover,.seldock .sd-i:hover{background:var(--hover)}
.seldock .sd-g{font-weight:600}
.seldock .sd-i{padding-left:22px;color:var(--mute)}
.seldock .sd-i:hover{color:var(--ink)}
.seldock .sd-tw{width:14px;height:14px;flex:none;display:grid;place-items:center}
.seldock .sd-tw::before{content:"";width:5px;height:5px;border-right:1.5px solid var(--mute);border-bottom:1.5px solid var(--mute);transform:rotate(-45deg);transition:transform .15s}
.seldock .sd-g.open .sd-tw::before{transform:rotate(45deg)}
.seldock .sd-gn,.seldock .sd-in{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seldock .sd-gc{color:var(--mute);font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.seldock .sd-x{visibility:hidden;height:20px;min-width:20px;padding:0 5px;border:0;border-radius:5px;background:transparent;color:var(--mute);font:inherit;font-size:11px;cursor:default}
.seldock .sd-g:hover .sd-x,.seldock .sd-i:hover .sd-x{visibility:visible}
.seldock .sd-x:hover{background:var(--line2);color:var(--ink)}
.seldock .sd-more,.seldock .sd-empty{color:var(--mute);padding:4px 4px;margin:0}
.seldock .sd-foot{display:flex}
.seldock .sd-foot .btn{flex:1;height:28px;justify-content:center}
.seldock .sd-help{margin:0;color:var(--mute);font-size:11px;line-height:1.45}
.seldock .sd-pop{position:absolute;right:8px;top:34px;z-index:60;display:flex;flex-direction:column;min-width:240px;padding:4px;border:1px solid var(--line2);border-radius:10px;background:var(--panel);box-shadow:0 8px 28px rgba(0,0,0,.22)}
.seldock .sd-pop[hidden]{display:none}
.seldock .sd-ph{padding:6px 10px 4px;font-size:11px;color:var(--mute);font-weight:600}
.seldock .sd-pop button{text-align:left;height:28px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--ink);font:inherit;cursor:default}
.seldock .sd-pop button:hover{background:var(--hover)}
.seldock .sd-pop button.on{color:var(--acc);font-weight:600}
.seldock.tool .sd-n{color:var(--tool,#c46a00)}
.seldock .sd-grip{display:none}
/* far right column: its own grid column, width --sdw, drag the left border */
#app.sd-side{grid-template-columns:var(--lw,300px) minmax(0,1fr) max(var(--rw,310px),var(--tw,0px)) var(--sdw,248px)}
#app.sd-side > .seldock{grid-column:4;grid-row:2/4;border-left:1px solid var(--line)}
.seldock[data-place="side"] .sd-grip{display:block;position:absolute;left:-3px;top:0;bottom:0;width:6px;cursor:col-resize;z-index:5}
.seldock[data-place="side"] .sd-grip:hover,.seldock.drag .sd-grip{background:color-mix(in srgb,var(--acc) 40%,transparent)}
@media (max-width:820px){#app.sd-side{grid-template-columns:var(--lw,300px) minmax(0,1fr) 0 0}#app.sd-side > .seldock{display:none}}
/* top of the Inspector */
.seldock[data-place="inspector"]{border:1px solid var(--line);border-radius:10px;margin:0 6px 6px;max-height:46vh}
/* floating */
.seldock[data-place="float"]{position:fixed;z-index:40;width:var(--sdw,260px);height:min(560px,70vh);border:1px solid var(--line2);border-radius:12px;box-shadow:0 12px 36px rgba(0,0,0,.25);overflow:hidden}
.seldock[data-place="float"] .sd-h{cursor:move}
/* under the ribbon: one compact row */
#app > .seldock[data-place="top"]{grid-column:1/-1;grid-row:2;border-bottom:1px solid var(--line)}
#app:has(> .seldock[data-place="top"]:not([hidden])){grid-template-rows:auto auto 1fr var(--mh,128px)}
#app:has(> .seldock[data-place="top"]:not([hidden])) > #dockL,#app:has(> .seldock[data-place="top"]:not([hidden])) > #dockR,#app:has(> .seldock[data-place="top"]:not([hidden])) > #toolDock,#app:has(> .seldock[data-place="top"]:not([hidden])) > #mdiHost{grid-row:3}
.seldock[data-place="top"]{flex-direction:row;align-items:center;height:40px}
.seldock[data-place="top"] .sd-h{border:0;height:40px;flex:none}
.seldock[data-place="top"] .sd-body{flex-direction:row;align-items:center;padding:0 8px;gap:8px;overflow:hidden}
.seldock[data-place="top"] .sd-ctl{flex-direction:row}
.seldock[data-place="top"] .sd-grid{grid-template-columns:repeat(6,auto)}
.seldock[data-place="top"] .sd-find{width:170px;flex:none}
.seldock[data-place="top"] .sd-list{display:flex;gap:4px;flex:1;min-height:0;overflow:hidden;margin:0;padding:0}
.seldock[data-place="top"] .sd-i,.seldock[data-place="top"] .sd-help,.seldock[data-place="top"] .sd-more{display:none}
.seldock[data-place="top"] .sd-g{flex:none;max-width:220px;background:var(--chip);padding:0 4px 0 8px}
.seldock[data-place="top"] .sd-tw{display:none}
/* the old strip is gone */
.selstrip{display:none!important}
/* ---- ribbon: the Select group is the Measure group now (S03) ---- */
#tbSel .rb-meas{display:grid;grid-template-columns:repeat(3,minmax(64px,1fr));gap:2px 4px}
#tbSel .rb-meas .ib{justify-content:flex-start}
#tbSel #bMeas{grid-row:1/3;flex-direction:column;justify-content:center;gap:2px;height:58px;min-width:64px}
#tbSel #bMeas .ic{width:20px;height:20px}
/* ---- S15: tabs and segmented choices get equal widths ---- */
.acc-tabs,.insp .seg.tabs,#spTabs{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.acc-tabs > button,#spTabs > button{justify-content:center;text-align:center;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-eq{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))}
/* ---- S19: smart selection ---- */
.ss-howto{margin:0 0 8px;padding:8px 10px;border-radius:8px;background:var(--chip);color:var(--ink);font-size:11.5px;line-height:1.5}
.ss-howto ol{margin:4px 0 0 16px;padding:0}
.ss-howto b{font-weight:600}
input.nf-on.nf-narrow{padding-right:20px}
.ss-row .ss-p{min-width:60px}
.ss-howto summary{cursor:default;list-style:none}
.ss-howto summary::-webkit-details-marker{display:none}
.ss-howto:not([open]){padding:5px 10px}
.seldock .sd-ctl .ib.more{background:transparent;border:0;color:var(--mute);display:grid;place-items:center;border-radius:6px}
.seldock .sd-ctl .ib.more:hover{background:var(--hover);color:var(--ink)}
.seldock .sd-ctl .ib.more svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6}
/* ---- R7 T02 / T03: Properties ---- */
.mt-addlist{flex-direction:row!important;flex-wrap:wrap}
.mt-addlist .btn{height:24px!important;padding:0 9px;font-size:11.5px;justify-content:center!important}
.mt-psum .crow{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}
.btn.mini{height:22px;padding:0 8px;font-size:11px}
.selcard .title small{font-weight:500;color:var(--mute);margin-left:6px}
.selcard .selcs-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.selcard .selcs-row .btn{justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.selcard small.mute{color:var(--mute)}
.propfold > summary{cursor:default;color:var(--mute);font-weight:600;font-size:11.5px;padding:2px 0 6px}
.itensor{border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:11px}.itensor td{padding:1px 6px;text-align:right;border:1px solid var(--line)}
.selcard .selcs-row{grid-template-columns:repeat(2,minmax(0,1fr))}
/* ---- 0.5.15 R6 S01: the view cube's button row is compact (one row of small round buttons, Origin as its icon) ---- */
#vcube .vc-row{gap:2px;flex-wrap:nowrap;width:auto;padding:2px 4px;border-radius:14px;background:color-mix(in srgb,var(--panel) 80%,transparent)}
#vcube .vc-row button{width:24px;height:24px;min-width:24px;padding:0;display:grid;place-items:center}
#vcube .vc-row .vp-tog.in{width:auto;padding:0 6px 0 4px}
#vcube .vc-row .vp-tog.in span{display:none}
#vcube .vc-slot{gap:2px;margin-left:0}
/* ---- 0.5.15 R6 S21: the followed tree row blinks twice, subtly ---- */
@keyframes gtBlink{0%,100%{box-shadow:none}25%,75%{box-shadow:inset 0 0 0 2px var(--acc);background:color-mix(in srgb,var(--acc) 22%,transparent)}50%{box-shadow:none}}
#treeBody .row.gt-blink{animation:gtBlink 1.2s ease-in-out}
@media (prefers-reduced-motion:reduce){#treeBody .row.gt-blink{animation:none;box-shadow:inset 0 0 0 2px var(--acc)}}
/* ---- 0.5.15 R6 S13: the preview status never pushes the panel down: two lines at most, the full text on hover ---- */
.tp-prev .r{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em;line-height:1.4}
.tp-prev .r:hover{-webkit-line-clamp:unset}
/* ---- 0.5.15 R6 S24: the estimate is one line; the explanation folds ---- */
.tp-est{min-height:18px}
.tp-est .est-d summary{cursor:default;color:var(--ink);font-weight:500;list-style:none}
.tp-est .est-d summary::-webkit-details-marker{display:none}
.tp-est .est-d summary::after{content:" · details";color:var(--mute);font-weight:400}
.tp-est .est-d[open] summary::after{content:" · less"}
.tp-est .est-d{color:var(--mute);line-height:1.45}
/* ---- 0.5.15 R7 T05: Show / Hide in the same compact look as the selection dock ---- */
.sh057{display:flex;flex-direction:column;gap:8px;font-size:12px}
.sh057 > .hint{margin:0;font-size:11px;color:var(--mute);line-height:1.45}
.sh057 .sh-row:has(> .btn){display:grid;grid-template-columns:48px repeat(3,minmax(0,1fr));gap:4px}
.sh057 .sh-row:has(> .btn):not(:has(> b)){grid-template-columns:repeat(3,minmax(0,1fr))}
.sh057 .sh-row .btn{height:26px;padding:0 4px;font-size:11.5px;justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sh057 .sh-row > b{font-size:11px;font-weight:600;color:var(--mute);text-transform:uppercase;letter-spacing:.04em}
.sh057 .sh-row .fld{height:28px}
.sh057 .sh-row:has(#shVName){display:flex}
/* ---- 0.5.15 R7 T08: Jobs filter and the folded previews group ---- */
.acc-jf{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));margin:6px 0}
.acc-jf button{justify-content:center}
.acc-prev > summary{cursor:default;color:var(--mute);font-weight:600;font-size:11.5px;padding:6px 0}
.fr-mode{display:grid!important;grid-template-columns:1fr 1fr;width:100%;margin:0 0 8px}
.fr-mode button{justify-content:center;white-space:nowrap}
.tp-links{display:flex;gap:4px;flex-wrap:wrap;margin:2px 0 6px}
.tp-skip{display:inline-flex;align-items:center;gap:6px;color:var(--mute)}
.msg-acts{display:flex;gap:4px;padding:2px 0 4px 64px}
