/* MiStudio 0.5.7 (Maysam's round 5, November 21, 2026; docs/notes/ms_r057_2026-11-21.md) */

/* (20) "contrast in dark and light mode is too shitty": the secondary text colors reach WCAG 2.x AA (4.5:1) on the panels;
   --faint was 2.2:1 (light) and 2.4:1 (dark), --mute 5:1; lines a step stronger */
:root{--mute:#55555b;--faint:#76767c;--line:rgba(0,0,0,.12);--line2:rgba(0,0,0,.22)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--mute:#b6b6bd;--faint:#8e8e95;--line:rgba(255,255,255,.11);--line2:rgba(255,255,255,.22)}}
:root[data-theme="dark"]{--mute:#b6b6bd;--faint:#8e8e95;--line:rgba(255,255,255,.11);--line2:rgba(255,255,255,.22)}
/* hidden bodies in the tree / table: readable, still marked as hidden (italic, dimmer, not washed out) */
.gt-list .row.hid,.gt-list .row.is-hidden,.gt-list .gt-tr.hid{opacity:.72}
/* the smart selection list: a command that does not fit the pick is dim but readable */
.ss-list .na,.ss-it.na,.sp-it.na{opacity:.62}

/* (12) a color tag per body type, not only "Solid" */
.badge.k-solid{color:var(--acc);background:var(--acc-soft)}
.badge.k-sheet{color:#a05a00;background:color-mix(in srgb,#ff9f0a 18%,transparent)}
.badge.k-faces{color:#8e44ad;background:color-mix(in srgb,#bf5af2 16%,transparent)}
.badge.k-wire{color:#1c7c54;background:color-mix(in srgb,#30d158 16%,transparent)}
.badge.k-point{color:#9a2a5a;background:color-mix(in srgb,#ff375f 14%,transparent)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .badge.k-sheet{color:#ffb340}:root:not([data-theme="light"]) .badge.k-faces{color:#d68cff}
 :root:not([data-theme="light"]) .badge.k-wire{color:#4fe07a}:root:not([data-theme="light"]) .badge.k-point{color:#ff6b8a}}
:root[data-theme="dark"] .badge.k-sheet{color:#ffb340}:root[data-theme="dark"] .badge.k-faces{color:#d68cff}
:root[data-theme="dark"] .badge.k-wire{color:#4fe07a}:root[data-theme="dark"] .badge.k-point{color:#ff6b8a}

/* (14) the Follow button says its job in a word */
.gt-sync{width:auto;padding:0 9px;font-size:11.5px;font-weight:600}
.gt-sync.on{color:var(--acc);border-color:color-mix(in srgb,var(--acc) 45%,transparent)}

/* (4) the next-step strip: a pending button keeps its slot, a button that does not fit is dimmed in place; (17) fade */
.rb-next button.pend{opacity:.55;cursor:progress}
.rb-next button.na{opacity:.4;cursor:not-allowed}
.rb-next{transition:opacity .35s ease}
.rb-next.fade{opacity:0}
@media (prefers-reduced-motion:reduce){.rb-next{transition:none}}

/* (10) search in the Selection panel */
.sp-find{display:flex;align-items:center;gap:6px;height:26px;margin:4px 0 2px;padding:0 8px;border:1px solid var(--line2);border-radius:7px;background:var(--panel2,var(--panel));color:var(--mute)}
.sp-find svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.6;flex:none}
.sp-find input{flex:1;min-width:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:12px;outline:none}

/* docs decision (1): the Selection strip (under the ribbon by default) */
.selstrip{display:flex;flex-direction:column;gap:4px;padding:5px 10px;border-bottom:1px solid var(--line);background:var(--panel);font-size:12px}
.selstrip[data-place="inspector"]{border:1px solid var(--line);border-radius:10px;margin:0 6px 6px}
.selstrip .ss-h{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.selstrip .ss-t{white-space:nowrap}
.selstrip .ss-hint{color:var(--mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:0 1 auto}
.selstrip .ss-sp{flex:1}
.selstrip .btn{height:24px;padding:0 8px;font-size:11.5px}
.selstrip .ss-find input{height:24px;width:170px;max-width:30vw;padding:0 8px;border:1px solid var(--line2);border-radius:7px;background:var(--panel2,var(--panel));color:var(--ink);font:inherit;font-size:11.5px}
.selstrip .ss-chips{display:flex;flex-wrap:wrap;gap:4px;max-height:52px;overflow:auto}
.selstrip.tool{background:color-mix(in srgb,var(--tool,#ff9f0a) 9%,var(--panel));border-bottom-color:color-mix(in srgb,var(--tool,#ff9f0a) 45%,transparent)}
.selstrip.tool .ss-t{color:var(--tool,#c46a00)}

/* (19) Show / Hide panel */
.sh057{display:flex;flex-direction:column;gap:6px}
.sh057 .sh-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sh057 .sh-row > b{min-width:44px;font-size:11.5px}
.sh057 .sh-sub{margin-top:4px;font-size:10.5px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;color:var(--mute)}
.sh057 .sh-views{display:flex;flex-wrap:wrap;gap:4px}
.sh057 .sh-count{color:var(--mute);font-size:11.5px;border-top:1px solid var(--line);padding-top:6px}

/* the strip takes the (empty) second row of the page grid, across all columns; the side docks start under it */
#app > .selstrip{grid-column:1/-1;grid-row:2;min-width:0}
#app:has(> .selstrip:not([hidden])){grid-template-rows:auto auto 1fr var(--mh,128px)}
#app:has(> .selstrip:not([hidden])) > #dockL,#app:has(> .selstrip:not([hidden])) > #dockR{grid-row:3}
#app:has(> .selstrip:not([hidden])) > #toolDock{grid-row:3}
/* 0.5.8 (MiCAD 0.5.5): live resources of a midsurface run in Activity; the list of solids without a midsurface */
.ac-res{font-size:11.5px;color:var(--mute);margin:2px 0 0}
#msgs .mid-failed{margin:2px 0 6px 64px;font-size:12px}#msgs .mid-failed ul{margin:2px 0 4px;padding-left:16px;max-height:140px;overflow:auto}
#msgs .mid-failed li{cursor:pointer}#msgs .mid-failed li:hover{color:var(--acc)}#msgs .mid-failed .id,#msgs .mid-failed small{color:var(--mute)}
