/* ux.css -- provenance layer styling.
 *
 * Every visible string here is CSS generated content driven by a data-*
 * attribute: labelFor() in mh_sizer.html builds the customer Excel template
 * by reading <label> and <summary> text, and TPL_SKIP_SECTIONS substring-
 * matches section headings -- real DOM text in either place would silently
 * change the workbook customers download. Generated content is invisible to
 * textContent, so it cannot. Colours reuse the page's own tokens.
 */

/* ======================================================================
 * Input state -- carried by the field's own border via data-state:
 *   grey    the value the project started with (the app's own border)
 *   green   changed -- typed, imported, or from a saved set
 *   red     outside its expected range
 * NOT COLOUR ALONE: red/green is the pair most colour-blind readers cannot
 * separate, so the alert state also carries a light fill (luminance, not
 * just hue), and the reset arrow appears only on changed fields.
 * ====================================================================== */

/* changed -- a quiet green outline, no fill. .tdadj is the ToD rows, whose
   inputs sit outside a .f wrapper. */
.ip .f[data-state="changed"] input,
.ip .f[data-state="changed"] select,
.ip .tdadj[data-state="changed"] input { border-color: #83c6a4; }

/* needs checking -- red outline AND a light wash, so it is distinguishable
   without relying on hue */
.ip .f[data-state="alert"] input,
.ip .f[data-state="alert"] select,
.ip .tdadj[data-state="alert"] input {
  border-color: var(--red);
  background: #fdeceb;
}

/* Focus must always win: it is the only state that says "you are here". */
.ip .f input:focus,
.ip .f select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

/* --- section marks -- a filled disc left of the section name.
 * Generated content from data-mark, so no text enters the <summary>
 * (labelFor() reads it for the Excel template). ::before joins .sl's flex
 * row as the first item; flex-start plus margin-left:auto on the chevron
 * keeps the chevron hard right.
 */
.ip details.sec > .sl { position: relative; justify-content: flex-start; gap: 9px; }
.ip details.sec > .sl > .chev { margin-left: auto; }
/* No disc on a section with nothing trackable -- pad instead so headings
   keep one left edge: 22px app padding + 16px disc + 9px gap. */
.ip details.sec > .sl:not([data-mark]) { padding-left: 47px; }

/* Base is an EMPTY RING, not a grey tick: a tick means "done", and a section
   nobody has opened is not done. The ring reads as an unfilled slot waiting
   to be completed, so the three states are shape-distinct as well as
   colour-distinct -- ring / tick / cross. */
.ip details.sec > .sl[data-mark]::before {
  content: '';
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: 2px solid var(--muted);
}
.ip details.sec > .sl[data-mark="done"]::before {
  content: '\2713';                      /* tick */
  background: var(--green);
  border-color: var(--green);
}
.ip details.sec > .sl[data-mark="alert"]::before {
  content: '\2715';                      /* cross -- a different SHAPE, not just red */
  background: var(--red);
  border-color: var(--red);
}

/* --- attached-file row, under the app's own status line ----------------- */
.ux-filerow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -4px 0 10px;
  font-size: 11.5px;
}
.ux-filerow-l {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ux-filerow .ux-file {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.ux-filerow .ux-file:hover { color: var(--navy); }
.ux-filerow-n { font-size: 10px; color: var(--muted); font-style: italic; }

/* --- "Manual input" tag ------------------------------------------------
 * A number that came from a saved assumption set and was then typed over.
 * Generated content, so labelFor() never sees it and the customer's Excel
 * template is unchanged. */
.ip .f[data-manual] > label::after {
  content: 'Manual input';
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-lt);
  border: 1px solid var(--accent-lt2);
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .02em;
  vertical-align: 1px;
}

/* --- legend -- swatches shaped like the inputs they describe ------------ */
.ux-legend {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.ux-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.ux-legend-item::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 9px;
  border-radius: 3px;
  border: 1.5px solid var(--line);
  background: #fff;
}
.ux-legend-item[data-dot="changed"]::before { border-color: #83c6a4; }
.ux-legend-item[data-dot="alert"]::before {
  border-color: var(--red);
  background: #fdeceb;
}
.ip .ph { position: relative; }

/* --- reset control -----------------------------------------------------
 * A real element, because it has to be clickable -- but with no text of its
 * own. The glyph is generated content, so label.textContent stays exactly
 * what it was and the Excel template is unaffected.
 */
/* The label is the positioning context for the reset arrow. */
.ip .f > label { position: relative; padding-right: 4px; }
.ip .f:hover > label { padding-right: 20px; }

.ip .f > label .ux-reset {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  font-size: 11px;
  opacity: 0;
  transition: opacity .12s;
}
.ip .f > label .ux-reset::before { content: '\21BA'; }   /* anticlockwise arrow */
.ip .f:hover > label .ux-reset,
.ip .f > label .ux-reset:focus-visible { opacity: 1; }
.ip .f > label .ux-reset:hover { color: var(--accent); }
/* Room for the reset arrow only while it is actually reachable. */
.ip .f:hover > label[data-prov-state] { padding-right: 38px; }

/* --- instant-recalculation marker: fields that recompute live ----------- */
.ip .f > label[data-live]::before {
  content: '\26A1\FE0E';   /* high voltage, text presentation */
  margin-right: 4px;
  color: var(--amber);
  font-size: 10px;
}


/* Out-of-range styling lives on the field-state model above (paintField
   writes data-state="alert"); no standalone rule may sit here -- a second
   rule at equal specificity wins on source order and painted alert fields
   the wrong colour once. */

/* Below 900px the panel goes full width and the reset control gets
   cramped, so drop it there. */
@media (max-width: 900px) {
  .ip .f > label .ux-reset { display: none !important; }
}

/* ======================================================================
 * Phase 2 -- export gate note + setup overlay
 * ====================================================================== */

/* Reason line under a gated download button (gates.js) -- never the app's
   #fm-status, which downloadFinModel() writes to mid-build. */
.ux-gate-note {
  font-size: 11px;
  line-height: 1.45;
  color: var(--amber);
  margin-top: 6px;
  max-width: 460px;
}
.ux-gate-note:empty { display: none; }

/* --- overlay shell: z-index 300 -- above the sticky header (200), BELOW
   the app modals (400), far below #auth-gate (9999). */
.ux-setup {
  position: fixed;
  inset: 56px 0 0 0;            /* the app header stays visible and usable */
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg);
  overflow-y: auto;
  padding: 40px 20px;
}

.ux-setup-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: min(680px, 96vw);
  display: flex;
  flex-direction: column;
}

.ux-setup-skip {
  position: absolute;
  top: 20px; right: 22px;
  border: 0; background: none;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}
.ux-setup-skip:hover { color: var(--accent); }

.ux-setup-head {
  position: relative;
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--line-lt);
}
.ux-setup-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ux-setup-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2px;
}
.ux-setup-body { padding: 24px 28px 26px; }

.ux-h1 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

/* A quiet aside; `.top` sits under the title, plain at the screen's end. */
.ux-note {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 18px;
  padding-left: 11px;
  border-left: 2px solid var(--line);
}
.ux-note.top { margin-top: -6px; margin-bottom: 20px; }

/* --- start options ------------------------------------------------------ */
.ux-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ux-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.ux-card:hover { border-color: var(--accent); background: var(--accent-lt); }
.ux-card-ic {
  width: 21px; height: 21px; flex: none;
  color: var(--accent); margin-top: 1px;
}
.ux-card-tx { min-width: 0; }
.ux-card-t { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.ux-card-d {
  font-size: 12px; color: var(--slate);
  line-height: 1.5; margin-top: 3px;
}

/* --- import blocks: one card per thing that can be seeded --------------- */
.ux-block {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #fff;
}
.ux-block-hd { display: flex; align-items: flex-start; gap: 13px; }
.ux-block-ic {
  width: 19px; height: 19px; flex: none;
  color: var(--accent); margin-top: 1px;
}
.ux-block-t { font-size: 13px; font-weight: 700; color: var(--navy); }
.ux-block-d {
  font-size: 11.5px; color: var(--muted);
  line-height: 1.5; margin-top: 2px;
}
/* Indent the body to the icon's text column so each block reads as one unit. */
.ux-block-bd { margin-left: 32px; }

.ux-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ux-block > .ux-actions { margin-left: 32px; }
.ux-block > .ux-st { margin-left: 32px; }

.ux-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  border-radius: 6px;
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ux-action:hover { border-color: var(--accent); background: var(--accent-lt); }
.ux-action.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ux-action.primary:hover { background: var(--accent-hover); }
.ux-action-g { font-size: 11px; line-height: 1; }

.ux-st { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 9px; }
.ux-st:empty { display: none; }
.ux-st.ok { color: var(--green); }
.ux-st.err { color: var(--red); }

.ux-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text);
  margin-top: 12px; margin-bottom: 2px; cursor: pointer;
}

/* --- generation, side by side. Wind stays VISIBLE but inert until the
   toggle is ticked -- a dimmed column says "this exists, switch it on". */
.ux-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.ux-col {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
}
.ux-col-hd { display: flex; align-items: center; gap: 9px; }
.ux-col-ic { width: 20px; height: 20px; flex: none; color: var(--accent); }
.ux-col-t { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.ux-col .ux-actions { margin-top: 11px; }
.ux-col .ux-action { height: 31px; padding: 0 10px; font-size: 11.5px; }

.ux-col.off { background: var(--bg); border-color: var(--line-lt); }
.ux-col.off .ux-col-ic,
.ux-col.off .ux-col-t { color: var(--muted); }

.ux-action:disabled {
  opacity: .45;
  cursor: not-allowed;
  background: #fff;
  border-color: var(--line);
  color: var(--muted);
}
.ux-action:disabled:hover { background: #fff; border-color: var(--line); }

@media (max-width: 620px) {
  .ux-split { grid-template-columns: 1fr; }
}

.ux-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-lt);
}

/* --- assumptions review: z 410, above the app's import modal (400) and
   the setup overlay (300). */
.ux-rev-bg {
  position: fixed; inset: 0; z-index: 410;
  background: rgba(11, 31, 58, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 16px;
}
.ux-rev {
  background: #fff; border-radius: 10px;
  width: min(720px, 96vw);
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.ux-rev-hd { padding: 18px 22px 14px; border-bottom: 1px solid var(--line-lt); }
.ux-rev-t { font-size: 15px; font-weight: 700; color: var(--navy); }
.ux-rev-d {
  font-size: 11.5px; color: var(--muted);
  line-height: 1.55; margin-top: 4px;
}
.ux-rev-bd { overflow-y: auto; padding: 4px 22px 8px; }

.ux-rev-tbl { width: 100%; border-collapse: collapse; }
.ux-rev-tbl th {
  position: sticky; top: 0; background: #fff;
  text-align: left; font-size: 10px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding: 10px 6px 6px; border-bottom: 1px solid var(--line);
}
.ux-rev-tbl th:last-child, .ux-rev-a { text-align: right; }
.ux-rev-tbl td {
  padding: 8px 6px; font-size: 12.5px;
  border-bottom: 1px solid var(--line-lt); vertical-align: middle;
}
.ux-rev-sec td {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--slate);
  background: var(--bg); padding-top: 10px; padding-bottom: 6px;
}
.ux-rev-k { color: var(--slate); }
.ux-rev-v { font-weight: 600; color: var(--navy); white-space: nowrap; }
.ux-rev-a { white-space: nowrap; width: 1%; }

.ux-pill {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; padding: 4px 10px;
  font-size: 11px; font-weight: 600; line-height: 1;
  border: 1px solid transparent;
}
.ux-pill.ok {
  color: var(--green); background: var(--green-lt); border-color: #bfe3d0;
}
.ux-pill.warn {
  color: var(--amber); background: var(--amber-lt); border-color: #f0d9ae;
  cursor: pointer;
}
.ux-pill.warn:hover { background: #fbe9cd; }

.ux-rev-ft {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 22px 18px;
  border-top: 1px solid var(--line-lt);
}
.ux-rev-count { font-size: 11.5px; color: var(--muted); }

/* --- four columns: assumption | unit | value | confirmation ------------- */
.ux-rev-u {
  font-size: 11px; color: var(--muted); white-space: nowrap; width: 1%;
}
.ux-rev-v { width: 1%; }
.ux-rev-in {
  width: 96px;
  height: 28px;
  padding: 0 8px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
}
.ux-rev-in:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
/* Flagged by the same rules the importer applies. */
.ux-rev-in.warn { border-color: var(--amber); background: var(--amber-lt); }

/* Section band carries its own "Confirm all". */
.ux-rev-sec-in {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ux-pill.sm { padding: 2px 8px; font-size: 10px; }
.ux-pill-tick { font-size: 11px; line-height: 1; }

/* --- attached files ----------------------------------------------------- */
.ux-fileslot { font-size: 11px; color: var(--muted); margin-top: 7px; }
.ux-fileslot:empty { display: none; }
.ux-file {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-lt2);
}
.ux-file:hover { border-bottom-color: var(--accent); }
.ux-rev-file { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* --- autosave indicator, beside the Save button. Deliberately quiet. ---- */
.ux-autosave {
  font-size: 11px;
  color: var(--muted);
  margin-right: 9px;
  white-space: nowrap;
  transition: opacity .15s;
}
.ux-autosave:empty { display: none; }
.ux-autosave.ok { color: var(--green); }

/* --- panel groups -- four signpost headings over the section list.
 * The divider is deliberately the lightest thing in the panel: a hairline,
 * space, and a tiny muted label; whitespace does the grouping. The section
 * headings themselves are untouched: labelFor() reads that text to build
 * the customer Excel template and TPL_SKIP_SECTIONS substring-matches it,
 * so renaming one would silently change the workbook.
 */
.ip .grp-hd {
  display: flex;
  align-items: baseline;
  padding: 26px 22px 9px;
  background: transparent;
  border-top: 1px solid var(--line);
}
/* The first group needs no rule -- the wind toggle above provides one. */
.ip .grp:first-child .grp-hd { border-top: 0; padding-top: 15px; }

.ip .grp-t {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The divider is the boundary; the last row must not draw a second
   hairline under it. */
.ip .grp > details.sec:last-child { border-bottom: 0; }


/* --- footer buttons ------------------------------------------------------ */
.ux-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate);
  border-radius: 6px;
  height: 36px;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.ux-btn:hover { border-color: var(--accent); color: var(--accent); }
.ux-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ux-btn.primary:hover { background: var(--accent-hover); }

.ux-pick { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ux-pick-item {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
  padding: 10px 14px; cursor: pointer; text-align: left;
}
.ux-pick-item:hover { border-color: var(--accent); background: var(--accent-lt); }
.ux-pick-item.busy { opacity: .5; cursor: wait; }
.ux-pick-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.ux-pick-meta { font-size: 11px; color: var(--muted); }

@media (max-width: 700px) {
  .ux-setup { padding: 16px 8px; }
}

/* ======================================================================
 * Phase 4 -- my defaults, saved scenarios, field search
 * ====================================================================== */

/* --- assumption-set bar in the panel header ---------------------------- */
.ux-setbar { position: relative; margin-top: 9px; }
.ux-setbar-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  height: 27px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ux-setbar-btn:hover { border-color: var(--accent); color: var(--accent); }
.ux-setbar-note { font-size: 10.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.ux-setbar-note.err { color: var(--red); }

.ux-menu {
  position: absolute;
  top: 30px; left: 0;
  z-index: 60;
  min-width: 232px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  display: flex;
  flex-direction: column;
}
.ux-menu-item {
  border: 0; background: none; text-align: left;
  font-size: 12px; color: var(--text);
  padding: 7px 9px; border-radius: 5px; cursor: pointer;
}
.ux-menu-item:hover { background: var(--accent-lt); color: var(--accent); }
/* Status line inside the menu -- loading, empty, or a load failure. */
.ux-menu-note {
  font-size: 11.5px; color: var(--muted); padding: 8px 9px; line-height: 1.5;
}
.ux-menu-sep {
  border: 0; border-top: 1px solid var(--line); margin: 5px 4px;
}

/* --- applying a saved set: reuses the workbook review's frame, adding
   only the from -> to pair. */
.ux-set-from {
  padding: 6px 10px 6px 0; font-size: 12px; color: var(--muted);
  text-decoration: line-through; white-space: nowrap;
}
.ux-set-to {
  padding: 6px 0; font-size: 12.5px; font-weight: 700; color: var(--navy);
  white-space: nowrap; text-align: right;
}

/* --- saved scenarios, inside the Comparison tab ------------------------- */
.ux-runs {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.ux-runs-head { display: flex; align-items: center; gap: 12px; }
.ux-runs-title { font-size: 13px; font-weight: 700; color: var(--navy); flex: 1; }
.ux-run-note { font-size: 11.5px; color: var(--muted); margin-top: 8px; min-height: 15px; }
.ux-run-note.err { color: var(--red); }
.ux-run-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }

.ux-run {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
}
/* Produced by a superseded engine: its numbers are no longer reproducible,
   so it must not look normal. */
.ux-run.stale { border-color: #f0d9ae; background: var(--amber-lt); }
.ux-run-main { flex: 1; min-width: 0; }
.ux-run-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.ux-run-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.ux-run-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.ux-run-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 5px;
  height: 27px; padding: 0 9px; font-size: 11px; font-weight: 600;
  color: var(--slate); cursor: pointer;
}
.ux-run-btn:hover { border-color: var(--accent); color: var(--accent); }

.ux-modal-bg {
  position: fixed; inset: 0; z-index: 420;
  background: rgba(11, 31, 58, .55);
  display: flex; align-items: center; justify-content: center;
}
.ux-modal {
  background: #fff; border-radius: 8px;
  width: min(92vw, 520px); overflow: hidden;
}
.ux-modal-hd { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--navy); }
.ux-modal-bd { padding: 16px 18px; }
.ux-run-view { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ux-run-view th, .ux-run-view td {
  padding: 7px 6px; border-bottom: 1px solid var(--line-lt); text-align: right;
}
.ux-run-view th:first-child, .ux-run-view td:first-child { text-align: left; color: var(--slate); }
.ux-run-view th { font-size: 11px; color: var(--muted); font-weight: 600; }

/* --- Ctrl/Cmd+K search -------------------------------------------------- */
.ux-search-bg {
  position: fixed; inset: 0; z-index: 430;
  background: rgba(11, 31, 58, .45);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 14vh;
}
.ux-search {
  background: #fff; border-radius: 10px;
  width: min(94vw, 560px); overflow: hidden;
  border: 1px solid var(--line);
}
.ux-search-in {
  width: 100%; height: 46px; border: 0; outline: 0;
  padding: 0 16px; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--line-lt); font-family: inherit;
}
.ux-search-list { max-height: 46vh; overflow-y: auto; padding: 6px; }
.ux-search-row {
  display: flex; flex-direction: column; gap: 2px; width: 100%;
  text-align: left; border: 0; background: none; cursor: pointer;
  padding: 8px 10px; border-radius: 6px;
}
.ux-search-row.on, .ux-search-row:hover { background: var(--accent-lt); }
.ux-search-t { font-size: 12.5px; color: var(--text); }
.ux-search-s { font-size: 10.5px; color: var(--muted); }
.ux-search-empty { padding: 14px 12px; font-size: 12.5px; color: var(--muted); }
.ux-search-foot {
  padding: 8px 14px; border-top: 1px solid var(--line-lt);
  font-size: 10.5px; color: var(--muted);
}

/* Where search dropped you. Deliberately brief -- a landing cue, not a state. */
.ux-search-hit {
  animation: ux-flash 1.6s ease-out;
  border-radius: 6px;
}
@keyframes ux-flash {
  0%, 55% { background: var(--accent-lt2); }
  100%    { background: transparent; }
}

/* ══════════════════════════════════════════════════════════════════════
   CTU additions (not in the MH copy above)
   ══════════════════════════════════════════════════════════════════════ */

/* Technology row — the slot MH gives its wind toggle. CTU's tech choice is
   exclusive (hybrid | solar | wind), so it is a three-way segment, not a
   toggle. Ported from the GUVNL conversion. */
.techrow {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 22px;
  background: #fff;
  border-bottom: 1px solid var(--line-lt);
}
.techrow .wl { font-size: 13px; font-weight: 600; color: var(--navy); }
.techrow .wh { font-size: 11px; color: var(--muted); margin-top: 2px; }
.techrow .seg { width: 186px; flex: none; }
.techrow .seg button { padding: 7px 4px; font-size: 11.5px; }
