/* Presets studio, the shared frame (docs/studio/REMAKE.md section 6). Loaded after the inline styles, so the polish
   layer and the light theme apply first. Tokens only; the white-alpha tints have their light-theme twins at the end.
   Owned here, and by no other file: the page (.st-frame, .st-scroll), the top bar (.st-top*), chips (.st-chip*), the
   two columns (.st-shell*), the left list (.st-side*), markers (.st-mark, .st-dot, .st-state), the part (.st-pane*),
   sections (.st-sec*), the empty state (.st-empty*), the save bar (.st-save*), windows (.st-modal*), notes
   (.st-banner, .st-need*), .st-help, .st-err, .st-bad, .st-add, .st-icon-btn, .st-tab, .st-wrap, .st-ico
   and how a field looks on a card. Containers: .st-page (a studio page) and .st-modal (its windows) get the off style
   for their disabled controls. */

/* ── the page ────────────────────────────────────────────────────────────────
   Above 768px a studio page is its own scroller, as Conversations is: #main is overflow:auto without a height, so
   nothing inside it could stick. The title and the top bar scroll away, the left list stays, and the save bar sits
   under the scroller, so Save is always in reach. On a phone the page scrolls with the document. */
@media (min-width:769px){
  .page.st-frame.active{display:flex;flex-direction:column;height:100vh;padding:0;overflow:hidden}
  .st-frame > .st-scroll{flex:1;min-height:0;overflow-y:auto;padding:28px 32px 48px}
}
/* (the header keeps the base's own gap to what follows, 24px, as on every other page and at every width) */
/* "missing" in words and counts: the accent, a darker amber on the light theme's white (the accent is too pale to read there) */
.st-page,.st-modal{--st-miss:var(--accent)}
html[data-theme="light"] .st-page,html[data-theme="light"] .st-modal{--st-miss:#8a5a06}

/* ── icons: the sidebar's own drawing style (24 grid, 1.75 stroke, round ends), made by Studio.icon ── */
.st-ico{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
/* The small marks (a tick, "!", the ✕ of a chip: 11 to 14px) are drawn with the same line on screen as the 18px icons
   beside them: 1.75 on the 24 grid at 18px. One line for every mark, in place of a stroke width of its own for each
   size (2.25, 2.5, 3); scaled down with its icon, 1.75 would come out a third thinner than the sidebar's. */
.st-mark .st-ico,.st-state .st-ico,.st-chip-x .st-ico{vector-effect:non-scaling-stroke;stroke-width:calc(1.75px * 18 / 24)}

/* ── the top bar: a surface of its own, two rows ─────────────────────────────
   Row 1: what is open (the select is the most prominent control of the page), what can be done with it, and what
   can be added. Row 2, a quieter band: its state, what it runs with, its ID. */
.st-top{margin-bottom:16px;background:var(--surface);border:1px solid var(--border);border-radius:12px}
.st-top:empty,.st-body:empty{display:none}
.st-top-main{display:flex;align-items:center;gap:10px 12px;flex-wrap:wrap;padding:14px 16px}
label.st-top-label{display:inline;margin:0;font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}
/* it starts from its narrowest and grows to 380px, so on a narrow window it gives way before the buttons wrap */
select.st-top-pick{flex:1 1 220px;width:auto;min-width:0;max-width:380px;height:46px;padding:0 14px;background:var(--bg);
  border-color:var(--border-hover);border-radius:10px;font-size:16px;font-weight:600;letter-spacing:-.01em;text-overflow:ellipsis}
.st-top-acts{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.st-top-new{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
/* one button height per bar (the top bar, the save bar, a window's foot, the recorder): the base's primary has no
   border of its own, so it stood 2px under the outlined buttons beside it */
.st-page .btn-primary,.st-modal .btn-primary{border:1px solid transparent}
.st-top-meta{display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap;min-height:46px;padding:9px 16px;border-top:1px solid var(--border);
  border-radius:0 0 11px 11px;background:var(--surface2);font-size:13px}
.st-top-status,.st-top-runs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.st-top-status:empty{display:none}
.st-top-k{margin-right:2px;font-size:12.5px;color:var(--muted2);white-space:nowrap}
.st-top-num{display:inline-flex;align-items:center;gap:6px;margin-left:auto;padding:3px 0;border:0;background:none;color:var(--muted2);
  font:400 12.5px var(--font-ui);white-space:nowrap;cursor:pointer}
.st-top-num b{font-family:var(--font-mono);font-size:12.5px;font-weight:500;color:var(--text)}
.st-top-num:hover b{text-decoration:underline}

/* a chip that opens something, with a ✕ that takes it away (the base's .chip-link holds the two buttons) */
.st-chip{max-width:100%;gap:0;padding:0;overflow:hidden;background:var(--surface);cursor:default}
.st-chip-open,.st-chip-x{display:inline-flex;align-items:center;border:0;background:none;color:inherit;font:inherit;line-height:inherit;
  cursor:pointer}
.st-chip-x .st-ico{width:11px;height:11px}
/* a name without a space (a model's 60 letters) breaks inside the bar instead of running out of it */
.st-chip-open{min-width:0;padding:3px 10px;overflow-wrap:anywhere;text-align:left}
span.st-chip-open{cursor:default}
.st-chip-open:not(:last-child){padding-right:4px}
.st-chip-x{padding:3px 9px 3px 4px;color:var(--muted2)}
.st-chip-x:hover{color:var(--red)}
button.st-chip-add{background:transparent;border-style:dashed;border-color:var(--border-hover);color:var(--muted);font-family:var(--font-ui);
  line-height:inherit}
button.st-chip-add:hover{border-color:var(--accent);color:var(--text)}
.st-chip-open:focus-visible,.st-chip-x:focus-visible,button.st-chip-add:focus-visible{outline-offset:-2px;border-radius:999px}

/* ── status: one vocabulary for both pages ───────────────────────────────────
   .st-mark sits at the right of a row or a section title: a green tick (complete), an amber count (missing), a red
   mark (needs a look), a plain count (how many). .st-dot beside it: unsaved changes. .st-state is the same said in
   words, in the top bar. Colour here means status and nothing else; tags stay grey. */
.st-marks{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;margin-left:auto}
.st-marks:empty{display:none}
.st-mark{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:20px;height:20px;border-radius:6px;
  font:600 12px/1 var(--font-ui);font-variant-numeric:tabular-nums}
.st-mark .st-ico{width:12px;height:12px}
.st-mark.ok{background:rgba(48,209,88,.14);color:var(--green)}
.st-mark.miss{padding:0 8px;background:rgba(217,164,65,.2);color:var(--st-miss);white-space:nowrap}
.st-mark.err{background:rgba(255,69,58,.2);color:var(--red)}
/* the red "!" of a part that needs a look keeps the weight it had (3 on the 24 grid at 13px): the one mark drawn
   heavier than the line above, so an error is never quieter than it was */
.st-mark.err .st-ico{width:13px;height:13px;stroke-width:1.625px}
.st-mark.num{min-width:0;font-weight:500;color:var(--muted2)}
.st-dot{flex-shrink:0;width:7px;height:7px;border-radius:50%;background:var(--text)}
/* (the status in words and the counts have the corner of the grey tag they stand beside, 6px: one chip shape) */
.st-state{display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:2px 11px 2px 8px;border:0;border-radius:6px;
  background:rgba(107,107,123,.15);color:var(--muted);font:600 12.5px/1.3 var(--font-ui);text-align:left}
.st-state .st-ico{width:14px;height:14px}
.st-state.ok{background:rgba(48,209,88,.14);color:var(--green)}
.st-state.miss{background:rgba(217,164,65,.2);color:var(--st-miss)}
.st-state.err{background:rgba(255,69,58,.14);color:var(--red)}
button.st-state{cursor:pointer}
button.st-state:hover{text-decoration:underline}

/* ── two columns: the list on the left, one part on the right ── */
.st-shell{display:grid;grid-template-columns:284px minmax(0,1fr);gap:16px;align-items:start}
/* sticky is measured from the scroller's content edge (inside its padding): 0 keeps the list level with the part */
.st-shell-side{position:sticky;top:0;min-width:0}
.st-shell-main{min-width:0}
.st-side{max-height:calc(100vh - 132px);overflow-y:auto;padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:12px}
.st-side-group{padding:14px 10px 5px;font-size:12px;font-weight:600;color:var(--muted2)}
.st-side-group:first-child{padding-top:5px}
.st-side-item{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:38px;margin-bottom:1px;padding:7px 9px 7px 12px;
  border:0;border-radius:8px;background:transparent;color:var(--text);font:500 14px/1.3 var(--font-ui);text-align:left;cursor:pointer}
.st-side-item > .st-ico{color:var(--muted2)}
.st-side-item:hover{background:rgba(255,255,255,.04)}
/* the open part: a tint, the accent bar, the accent icon and a heavier name */
.st-side-item.active{background:rgba(255,255,255,.07);font-weight:600}
.st-side-item.active::before{content:'';position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--accent)}
.st-side-item.active > .st-ico{color:var(--accent)}
.st-side-item:focus-visible{outline-offset:-2px}
.st-side-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-side-item .tag{flex-shrink:0}                            /* (the base's tag as it is: 12px, 3px 8px) */
/* (the gap of the two columns stands between it and the part: no margin of its own) */
select.st-side-pick{display:none;background:var(--surface);border-color:var(--border-hover);font-weight:600}

/* ── the part: a card with a title, then sections with real headers and a rule between them ── */
.st-pane{min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:12px}
.st-pane.st-pane-form{max-width:960px}                      /* a form keeps a readable measure; a grid of photos takes the room */
.st-pane-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px 16px;flex-wrap:wrap;padding:20px 24px 18px;
  border-bottom:1px solid var(--border)}
.st-pane-heading{min-width:0}
/* a long sub line wraps in its own column before it pushes the part's buttons under the title (a phone keeps the
   title at its own width, so a short one still shares its row with a button) */
@media (min-width:769px){ .st-pane-heading{flex:1 1 320px} }
.st-pane-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0;font-size:20px;font-weight:700;letter-spacing:-.02em;line-height:1.2}
.st-pane-title > .st-ico{width:20px;height:20px;color:var(--accent)}
.st-pane-tags{display:inline-flex;gap:6px}
.st-pane-tags:empty,.st-pane-actions:empty,.st-pane-notes:empty{display:none}
.st-pane-sub{margin:4px 0 0;font-size:13.5px;line-height:1.45;color:var(--muted)}
.st-pane-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;flex-wrap:wrap}
.st-pane-notes{display:flex;flex-direction:column;gap:10px;padding:16px 24px 0}
.st-pane-notes > .st-banner{margin-bottom:0}
.st-sec{padding:20px 24px 24px;border-top:1px solid var(--border)}
/* the first section sits right under the part's own rule: a second line there would double it */
.st-pane-body > .st-sec:first-child{border-top:0}
.st-sec-head{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;min-height:24px;margin-bottom:16px}
/* a header, a clear step above the field labels under it (13px / 600) */
.st-sec-title{margin:0;font-size:16px;font-weight:700;letter-spacing:-.012em;color:var(--text)}
.st-sec-note{font-size:12.5px;line-height:1.45;color:var(--muted2)}
.st-sec-head > .st-marks{margin-left:0}
.st-sec-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.st-sec-actions:empty{display:none}
.st-sec-body{display:flex;flex-direction:column;gap:16px;min-width:0}

/* ── a field on a card: it must stand out from the surface it sits on ────────
   Fill = the page's own background (darker than the card in the dark theme, greyer in the light one), border = the
   stronger of the two border tokens, label = text colour at 600. :where() keeps these as weak as the base's own
   rules, so a unit's class and the focus ring still win. */
.st-pane :where(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select,textarea),
.st-modal :where(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select,textarea){
  background:var(--bg);border-color:var(--border-hover)}
.st-pane :where(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select,textarea):hover:not(:focus,:disabled),
.st-modal :where(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select,textarea):hover:not(:focus,:disabled){
  border-color:rgba(255,255,255,.28)}
/* one height for every one-line control: a native select is 2px taller than a text field of the same padding, so two
   of them side by side sat out of line (a phone keeps the base's 44px) */
.st-pane :where(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select),
.st-modal :where(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select){height:40px;padding-top:0;padding-bottom:0}
.st-pane :where(label:not(.chat-toggle)),.st-modal :where(label:not(.chat-toggle)){font-size:13px;font-weight:600;color:var(--text)}
/* The focus on a field here is drawn in the text colour, not in the accent. "Missing" is amber, and so is the base's
   focus (accent border, accent halo): the field being typed in read as one more missing field. The border says what
   the field is (plain, missing = amber, refused = red), the ring around it says where the caret is: a missing field
   that has the focus shows both. (:where() as above; .st-need and .st-bad keep their border through the rules below.)
   The two selects of the frame (what is open, and the part on a phone) take the same ring: one focus on these pages. */
.st-pane :where(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select,textarea):focus,
.st-modal :where(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select,textarea):focus,
select.st-top-pick:focus,select.st-side-pick:focus{
  border-color:var(--text);box-shadow:0 0 0 3px color-mix(in srgb,var(--text) 32%,transparent)}
/* the help line under a field (quiet) and the error line. .st-bad gives the field itself the red border, .st-need the
   amber one of a required thing that is missing (the part's banner names it: no second line under the field) */
.st-help{font-size:12.5px;color:var(--muted2);line-height:1.45;margin-top:5px}
.st-err{font-size:12.5px;color:var(--red);line-height:1.45;margin-top:5px}
.st-pane .st-need,.st-modal .st-need{border-color:rgba(217,164,65,.7)}
.st-pane .st-need:focus,.st-modal .st-need:focus{border-color:rgba(217,164,65,.95)}      /* missing and in focus: both */
.st-pane .st-bad,.st-pane .st-bad:focus,.st-modal .st-bad,.st-modal .st-bad:focus,.st-bad,.st-bad:focus{border-color:var(--red)}
/* the pointer over such a field keeps its colour: the hover border above is the stronger rule and turned it grey
   (the class twice: one step over that rule's light-theme twin) */
.st-pane .st-need.st-need:hover:not(:focus,:disabled),.st-modal .st-need.st-need:hover:not(:focus,:disabled){border-color:rgba(217,164,65,.95)}
.st-pane .st-bad.st-bad:hover:not(:focus,:disabled),.st-modal .st-bad.st-bad:hover:not(:focus,:disabled){border-color:var(--red)}
.st-bad:focus{box-shadow:0 0 0 3px rgba(255,69,58,.15)}

/* a note across a part or a window: info (neutral), .warn (stored problems, things still missing), .err */
.st-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;
  margin-bottom:16px;border:1px solid var(--border);border-radius:10px;background:var(--surface2);font-size:13px;
  line-height:1.5;color:var(--muted)}
.st-banner b{color:var(--text);font-weight:600}
.st-banner.warn{border-color:rgba(217,164,65,.45);background:rgba(217,164,65,.08);color:var(--text)}
.st-banner.err{border-color:rgba(255,69,58,.3);background:rgba(255,69,58,.08);color:var(--text)}
/* what a part still misses, named at its top: each name is a button that goes to its field */
.st-need-list{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.st-need-item{padding:2px 9px;border:1px solid rgba(217,164,65,.45);border-radius:999px;background:transparent;color:var(--text);
  font:500 12.5px/1.5 var(--font-ui);cursor:pointer}
.st-need-item:hover{border-color:var(--accent)}

/* ── nothing here yet, loading, could not load ── */
.st-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:56px 20px;border:1px dashed var(--border-hover);
  border-radius:12px;text-align:center}
.st-empty.quiet{padding:40px 20px;border:0}
.st-empty-title{font-size:16px;font-weight:600;color:var(--text)}
.st-empty-text{max-width:440px;font-size:13.5px;line-height:1.5;color:var(--muted)}
.st-empty-acts{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.st-empty-acts:empty{display:none}

/* ── the save bar: under the scroller above 768px, above the tab bar on a phone; shown only with unsaved changes ── */
.st-save{display:none;flex-shrink:0;align-items:center;gap:10px;padding:12px 32px;background:var(--surface);border-top:1px solid var(--border)}
.st-save.on{display:flex}
.st-save-note{display:flex;align-items:center;gap:8px;flex:1;min-width:0;font-size:13.5px;line-height:1.4;color:var(--text)}
.st-save-note.bad{color:var(--red)}
.st-save-note.bad .st-dot{background:var(--red)}
.st-save-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ── windows (Studio.modal): the system's .modal plus a height cap with a scrolling body ── */
.st-modal{max-width:560px;max-height:calc(100vh - 40px);display:flex;flex-direction:column}
.st-modal:focus{outline:none}                               /* the window itself holds the focus on a touch screen: no ring around it */
.st-modal.st-wide{max-width:760px}
.st-modal.st-xwide{max-width:1080px}
/* a name without a space in a title ("Add media to …", "Delete …?") breaks where the window ends instead of running out of it */
.st-modal .modal-title{flex-shrink:0;overflow-wrap:anywhere}
.st-modal .modal-title > span{min-width:0}
.st-modal-body{flex:1 1 auto;min-height:0;overflow:auto;padding:3px;margin:-3px;font-size:14px;line-height:1.5}
.st-modal-body label{margin-top:14px}
.st-modal-body label:first-child{margin-top:0}
.st-modal-text{font-size:13px;color:var(--muted);line-height:1.5;margin-bottom:14px}
.st-modal-foot{display:flex;gap:8px;justify-content:flex-end;align-items:center;margin-top:20px;flex-shrink:0}
.st-modal-foot .st-left{margin-right:auto}
/* a question (Studio.ask): a small window; with one line and no text the buttons sit right under it */
.st-modal.st-ask{max-width:440px}
.st-ask .st-modal-text{margin-bottom:0}
.st-ask .st-modal-body:empty{display:none}
.st-ask .st-modal-body:empty + .st-modal-foot{margin-top:4px}

/* underline tabs as real buttons (<button class="pool-tab st-tab">): the button look is reset, the 2px underline stays */
.st-tab{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;font-family:var(--font-ui);
  font-size:13px;font-weight:600;line-height:inherit;color:var(--muted);cursor:pointer}
.st-tab:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.st-wrap{flex-wrap:wrap}

/* "+ Add a stage" under a list */
.st-add{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:8px 12px;border:1px dashed var(--border-hover);
  border-radius:8px;background:transparent;color:var(--muted);font:500 13px var(--font-ui);cursor:pointer}
.st-add:hover{color:var(--text);border-color:var(--accent)}

/* a glyph button (↑ ↓ ✕ ▶) */
.st-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;flex-shrink:0;
  border:1px solid var(--border);border-radius:7px;background:transparent;color:var(--muted);font:500 13px var(--font-ui);
  line-height:1;cursor:pointer}
.st-icon-btn:hover{color:var(--text);border-color:var(--border-hover)}
.st-icon-btn.danger:hover{color:var(--red);border-color:rgba(255,69,58,.3)}
.st-add:focus-visible,.st-icon-btn:focus-visible,.st-modal .btn:focus-visible,.st-page .btn:focus-visible{
  outline:2px solid var(--accent);outline-offset:2px}

/* controls that are off */
.st-page :disabled,.st-modal :disabled{opacity:.5;cursor:not-allowed}
.st-page .btn:disabled:hover,.st-modal .btn:disabled:hover{transform:none}

/* ── 1100px and narrower: one column; the list lies above the part, its rows in columns of equal width so the
   markers still stand in line (rows of loose pills did not read as a list) ── */
@media (max-width:1100px){
  .st-shell{grid-template-columns:minmax(0,1fr)}
  .st-shell-side{position:static}
  .st-side{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:2px 10px;max-height:none}
  .st-side-group{display:none}
  .st-side-item{margin:0}
  .st-pane.st-pane-form{max-width:none}
}

/* ── a phone: the list is one select, the top bar stacks, the save bar floats above the tab bar ── */
@media (max-width:768px){
  .st-frame .page-sub{display:none}
  .st-top-main{padding:12px}
  label.st-top-label{flex-basis:100%;margin-bottom:-4px}
  select.st-top-pick{flex:1 1 100%;max-width:none}
  .st-top-acts,.st-top-new{flex:1 1 100%;margin-left:0}
  .st-top-acts .btn,.st-top-new .btn{flex:1 1 auto}
  .st-top-meta{gap:8px 14px;padding:10px 12px}
  .st-top-num{flex-basis:100%;margin-left:0}
  .st-side{display:none}
  select.st-side-pick{display:block}
  .st-pane-head{padding:16px 16px 14px}
  .st-pane-title{font-size:18px}
  .st-pane-notes{padding:14px 16px 0}
  .st-sec{padding:16px 16px 20px}
  .st-empty{padding:40px 16px}
  .st-save.on{position:fixed;left:0;right:0;bottom:66px;z-index:48;padding:10px 16px}
  .st-frame.st-dirty{padding-bottom:84px}
  /* the field that takes the focus (Tab, the keyboard's Next) is scrolled clear of what lies over the foot of the
     page: the tab bar (66px), and the save bar on top of it (65px) while there are unsaved changes */
  html:has(.st-frame.active){scroll-padding-bottom:80px}
  html:has(.st-frame.st-dirty.active){scroll-padding-bottom:145px}
  .modal-overlay.st-overlay{padding:10px}
  .st-modal,.st-modal.st-wide,.st-modal.st-xwide{max-width:none;max-height:90vh;padding:20px}
  .st-modal-foot{flex-wrap:wrap}
}

/* ── thumb targets: a phone, and a touch screen of any width (a tablet, a phone on its side). The base gives its own
   buttons, selects and fields 44px there (and 16px text in a field); the studio's own controls follow, and a mouse
   keeps the sizes above. Rows and buttons that have the room are 44px high. The small things (a chip, a marker, a
   glyph button) keep their look and take the tap over an area exactly 44px high, as the base's period switch does. ── */
@media (max-width:768px),(pointer:coarse){
  .st-side-item,.st-add,.st-tab{min-height:44px}
  .st-chip{overflow:visible}
  .st-chip-open,.st-chip-x,button.st-chip-add,.st-need-item,.st-top-num,button.st-state,.st-icon-btn{position:relative}
  .st-chip-open::after,.st-chip-x::after,button.st-chip-add::after,.st-need-item::after,.st-top-num::after,button.st-state::after,
  .st-icon-btn::after{content:'';position:absolute;inset:min(0px,calc((100% - 44px) / 2)) 0}
}

/* ── light theme: the twins of the white tints above ── */
html[data-theme="light"] .st-side-item:hover{background:rgba(16,17,22,.035)}
html[data-theme="light"] .st-side-item.active{background:rgba(16,17,22,.07)}
html[data-theme="light"] .st-pane :where(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select,textarea):hover:not(:focus,:disabled),
html[data-theme="light"] .st-modal :where(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select,textarea):hover:not(:focus,:disabled){
  border-color:rgba(16,17,22,.34)}
