/* ============================================================================
   shared/graph-inspector.css — the selection-driven graph inspector (graph-inspector.js).
   Typed param controls for the node scope + the exposed-params scope. SPEC tokens only;
   `gi-` prefixed so a host page's own styles never clash.
   ========================================================================== */
.gi-head{padding:9px 12px;border-bottom:1px solid var(--line);background:var(--panel)}
.gi-title{font-size:13px;font-weight:600;color:var(--ink)}
.gi-sub{margin-top:2px;font-size:10.5px;color:var(--muted)}
.gi-body{padding:8px 12px 16px;overflow:auto}
.gi-note{color:var(--muted);font-size:11.5px;padding:14px 2px;line-height:1.6;text-align:center}
.gi-note b{color:var(--accent-text)}

.gi-ghead{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);border-top:1px solid var(--line);padding:8px 0 3px;margin-top:6px}
.gi-ghead:first-child{border-top:none;margin-top:0}
.gi-gc{background:var(--chip);border-radius:8px;padding:0 6px;color:var(--muted);font-size:9.5px}

/* THE TYPED CONTROLS ARE NOT HERE — they are the ComponentLibrary atoms, emitted by
   graph-inspector.js: `.prow.tight` rows carrying `.num.sm` · `.selin.sm` · `.swt` ·
   `.swatch` · `.vec` · `.rng` · `.inp.sm` · `.val`. This file used to declare a parallel
   set (`.gi-num`, `.gi-sel`, `.gi-tog`, `.gi-sw`, `.gi-vec`, `.gi-val`, `.gi-row`) that was
   individually on-token and individually fine, and which meant the same number field was
   30px tall and borderless in the scene inspector but 22px and 1px-bordered here — an
   organism that forked the library while looking like it extended it
   (theme-and-component-library.md §2). What remains below is only what is genuinely about
   a GRAPH: exposure, provenance, port types, and the group field. */

.gi-exp{flex:0 0 14px;text-align:center;color:var(--faint);font-size:11px;cursor:pointer;user-select:none}
.gi-exp:hover{color:var(--accent-text)}
.gi-exp.on{color:var(--accent)}
/* the OVERRIDE marker sits in the same row slot as the expose toggle and takes the same treatment —
   peers in one column share one geometry and one emphasis (`design-pattern-consistency`); only the
   glyph and the verb differ. Inherited is the inert dot: it reserves the slot so every control in
   the column stays aligned, the way a leaf row reserves the chevron's width in the outliner, and it
   carries no click because a control that does nothing is not a control. */
.gi-ovr{flex:0 0 14px;text-align:center;color:var(--faint);font-size:11px;user-select:none}
.gi-ovr.on{color:var(--accent);cursor:pointer}
.gi-ovr.on:hover{color:var(--accent-text)}
.gi-ghead.sub{border-top:none;margin-top:2px;padding-top:4px;color:var(--muted)}
/* a one-line explanation under a group heading — the compact sibling of `.gi-note`, which is the
   centred empty-state and reads far too heavy mid-panel */
.gi-hint{color:var(--muted);font-size:10.5px;line-height:1.5;padding:2px 0 6px}
.gi-hint b{color:var(--ink);font-weight:600}
/* the two readouts keep the atom's `.val` treatment and only set the width their job needs:
   a colour's hex is wider than a slider's mirrored number. */
.gi-body .val.cmir{flex:0 0 66px}
.gi-body .val.vmir{flex:0 0 44px}
/* a LINK field — the way to the surface that owns this value (a Pattern's notes → the piano
   roll). It is the `.btn.sm.tonal` atom: secondary weight, not the accent fill, because it is
   navigation and not the panel's primary action (ui-and-authoring-docs §2). */
.gi-body .btn.sm.tonal{flex:1;min-width:0}
/* a WIRED input's provenance (read-only) — muted; the exposed-parameter variant reads accent */
.gi-wired{flex:1;min-width:0;text-align:right;font:11px Consolas,monospace;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gi-wired.param{color:var(--accent-text)}
/* a port's TYPE beside its name in the WIRE scope. It recedes to faint because the endpoint
   is the answer and the type is the qualifier — the same emphasis order the canvas uses. */
.gi-ty{color:var(--faint);font-size:10px}
/* the group text field under an exposed param */
.gi-grp{display:flex;align-items:center;gap:7px;margin:-1px 0 7px 21px}
.gi-grp span{font-size:10px;color:var(--faint);text-transform:uppercase;letter-spacing:.05em}
.gi-gin{flex:1;min-width:0;background:var(--well);border:1px solid var(--accent);border-radius:6px;color:var(--ink);padding:2px 8px;font:11px inherit;outline:none}
.gi-gin::placeholder{color:var(--faint)}

/* ---- an op's own panel (`op.panel`) ------------------------------------------------------------
   LAYOUT ONLY. This is the one place a domain gets to put something below the rows — a Contour's
   state, an SDF field's storage card — so the temptation is to give it its own buttons, its own
   chips, its own banners. It gets none: the panel composes the catalogued atoms (`.btn` `.chip`
   `.badge` `.banner` `.meter` `.val` `.prow` `.spin`) and what is declared here is the box they sit
   in and the gaps between them (theme-and-component-library §2 — an organism composes the atoms and
   never declares control classes beside them). */
.gi-panel{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.gi-card{background:var(--card);border-radius:var(--r-card,9px);padding:9px 10px;display:flex;flex-direction:column;gap:7px}
.gi-card>.gi-crow{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.gi-card>.gi-crow>.btn{flex:1;min-width:0}
/* a card's own heading — the same uppercase micro-label as `.gi-ghead`, without its rule and
   top margin, because a card's edge already separates it from what is above. */
.gi-ctitle{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}
/* the cost read-out: label · tabular value, one per line, so two budgets read as a column and a
   number that is about to be refused sits directly under the one that is not. */
.gi-cost{display:grid;grid-template-columns:1fr auto;gap:3px 10px;align-items:center;font-size:11.5px;color:var(--muted)}
.gi-cost b{font-weight:400;color:var(--faint)}
.gi-cost .val{font-variant-numeric:tabular-nums}
.gi-panel .banner{font-size:11.5px;line-height:1.5;align-items:flex-start}
