/* Intake (bundle #5) intake-specific classes only. Shared classes + tokens come
   from hm-brand.css (loaded first); this file never overrides tokens/@font-face,
   so the buyer cockpit is unaffected. Extracted verbatim from #5. */

/* Track-1 #15b — active-step contrast. Scoped to .wz--intake so the buyer
   builder's stepper is untouched. Completed stays green; the CURRENT step is
   near-black so it clearly stands out from completed. */
.wz--intake .wz__seg.now { background: var(--hm-near-black, #1c1c1d); }
.wz--intake .wz__seg.now::after { box-shadow: 0 0 0 2px rgba(28,28,29,0.22); }
.wz--intake .wz__steplabel.now { color: var(--hm-near-black, #1c1c1d); font-weight: 800; }
.wz--intake .wz__steplabel.now .ix { opacity: 1; }
.wz--intake .wz__steplabel.done { color: var(--accent); }
/* autosave affordance next to the save chip (#4/#28) */
.wz__autosave { font-size: 10.5px; color: var(--fg-tertiary); margin: 0 10px; white-space: nowrap; }
.wz__reassure { font-size: 11px; color: var(--fg-tertiary); display: inline-flex; align-items: center; gap: 6px; }
.wz__reassure i { font-size: 13px; color: var(--accent); }
/* fail-early block note in the footer (round 2, fixes 1/3/4) */
.wz__blocknote { font-size: 11px; color: #8a2f2f; display: inline-flex; align-items: center; gap: 6px; }
.wz__blocknote i { font-size: 13px; }

/* ---- round 3 ---- */
/* required-hold flash (A2): the red pill blinks a couple of times, then rests */
@keyframes hm-flash { 0%,100% { opacity: 1; } 20% { opacity: .2; } 40% { opacity: 1; } 60% { opacity: .2; } 80% { opacity: 1; } }
.req-tag--flash { animation: hm-flash 0.9s ease-in-out; margin-left: 6px; }
/* conditionally-required source menu: flash the trigger when a figure is entered
   but "Where's this from?" is still blank */
.sd__trig--flash { border-color: #c0392b !important; color: #8a2f2f !important; animation: hm-flash 0.9s ease-in-out; }
.sd__trig--flash i { color: #8a2f2f !important; }
/* inline spinner (loading states, B) */
@keyframes hm-spin { to { transform: rotate(360deg); } }
.hm-spin { display: inline-block; animation: hm-spin 0.7s linear infinite; }
/* group-heading "optional" pill — .grp__h .opt is styled in hm-brand; the input
   category headings (.cat__name) need the same pill styling here */
.wz--intake .cat__name .opt { font-size: 10px; font-weight: 600; color: var(--fg-tertiary); border: 1px solid var(--border-rule); border-radius: var(--radius-pill); padding: 2px 8px; letter-spacing: 0.04em; text-transform: none; vertical-align: middle; }
/* Finalise data-quality explanation box (C) */
.dqbox { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border-rule); border-radius: var(--radius-2); background: var(--bg-surface-alt); font-size: 12.5px; color: var(--fg-secondary); line-height: 1.5; }
.dqbox > i { font-size: 16px; color: var(--fg-tertiary); flex: none; margin-top: 1px; }
/* inert "Link existing" affordance (D, #6b) */
.soon-pill { margin-left: 6px; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-tertiary); background: var(--bg-surface); border: 1px solid var(--border-rule); border-radius: var(--radius-pill); padding: 1px 6px; }

/* ============================ SHOW-3 — results / thinking ============================ */
.res-card { max-width: 460px; margin: 8px auto 0; }
.res-card__done { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.res-card__done i { font-size: 18px; }
/* headline = tinted accent panel (approved treatment) */
.res-headline { background: rgba(75,179,125,0.08); border: 1px solid rgba(75,179,125,0.35); border-radius: var(--radius-3); padding: 22px 22px 18px; }
.res-headline__num { font-size: 44px; font-weight: 700; line-height: 1; color: var(--fg-primary); letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.res-headline__unit { font-size: 15px; font-weight: 600; color: var(--fg-secondary); letter-spacing: 0; }
.res-headline__label { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-tertiary); }
.res-identity { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--fg-primary); }
.res-identity i { font-size: 16px; color: var(--fg-tertiary); }
.res-quality { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dq-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: var(--radius-pill); background: var(--bg-surface); border: 1px solid var(--border-rule); color: var(--fg-secondary); }
.dq-basis { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 11px; border-radius: var(--radius-pill); background: var(--bg-surface-alt); color: var(--fg-tertiary); }
.dq-basis i { font-size: 13px; }
.res-attr { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 11px 13px; border: 1px solid var(--border-rule); border-radius: var(--radius-2); background: var(--bg-surface-alt); font-size: 12.5px; font-weight: 600; color: var(--fg-secondary); }
.res-attr__mk i { font-size: 16px; color: var(--fg-tertiary); }
.res-attr__v { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--fg-tertiary); font-variant-numeric: tabular-nums; }
.res-card__foot { margin-top: 20px; }
.res-card__note { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; font-size: 11.5px; color: var(--fg-tertiary); line-height: 1.5; }
.res-thinking { text-align: center; max-width: 460px; margin: 40px auto 0; }
.res-thinking__orb { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: rgba(75,179,125,0.08); border: 1px solid rgba(75,179,125,0.30); color: var(--accent); }
.res-thinking .res-attr { max-width: 320px; margin-left: auto; margin-right: auto; }
/* grower completed-row intensity (where the Submitted pill sat) */
.acard__intensity { font-size: 15px; font-weight: 700; color: var(--fg-primary); font-variant-numeric: tabular-nums; }
.acard__intensity small { font-size: 11px; font-weight: 600; color: var(--fg-tertiary); }
/* buyer Track row intensity */
.exrow__intensity { font-size: 12px; font-weight: 700; color: var(--fg-primary); margin-top: 3px; font-variant-numeric: tabular-nums; }
.px-dev {display: inline-flex; background: #2c2c2e; border-radius: var(--radius-2); padding: 3px; gap: 2px;}
.px-dev button {border: 0; background: transparent; color: #b6b6b8; font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 4px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;}
.px-dev button.on {background: #4BB37D; color: #08160f;}
.px-dev button i {font-size: 15px;}
/* mobile device */
.dev-mob {width: 390px; background: var(--bg-surface); border-radius: 30px; box-shadow: var(--shadow-modal); overflow: hidden; border: 1px solid #cfcfcc;}
.dev-mob__notch {height: 30px; display: flex; align-items: center; justify-content: center; background: var(--bg-surface);}
.dev-mob__notch span {font-size: 11px; font-weight: 600; color: var(--fg-secondary);}
.dev-mob .appview {height: 740px; overflow: hidden;}
/* footer nav */
.wz__foot {position: sticky; bottom: 0; z-index: 9; background: rgba(255,255,255,0.93); backdrop-filter: blur(8px); border-top: 1px solid var(--border-rule);}
.wz__foot-in {display: flex; align-items: center; gap: 10px; padding: 12px 22px;}
.wz__foot .sp {flex: 1;}
.btn--link {background: transparent; color: var(--fg-primary); padding: 10px 2px; border-radius: 0; border-bottom: 2px solid var(--accent);}
.btn--link:hover {color: var(--accent);}
/* =====================================================================
   SCREEN PRIMITIVES  (sc-)
   ===================================================================== */
.sc-eyebrow {font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;}
.sc-h1 {font-size: 26px; line-height: 1.18; font-weight: 600; letter-spacing: -0.02em; margin: 8px 0 0; color: var(--fg-primary);}
.sc-lede {font-size: 15px; line-height: 1.6; color: var(--fg-secondary); margin: 12px 0 0;}
.sc-section-h {font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-tertiary); margin: 0 0 4px;}
.card--pad {padding: 18px;}
.stack {display: flex; flex-direction: column;}
.stack > * {margin: 0;}
.field__err {font-size: 11.5px; color: var(--status-critical); font-weight: 600; display: flex; align-items: center; gap: 6px;}
.field__err i {font-size: 13px;}
.field__derived {font-size: 11.5px; color: var(--fg-secondary); display: inline-flex; align-items: center; gap: 6px; background: var(--bg-surface-alt); border-radius: var(--radius-2); padding: 6px 10px;}
.field__derived i {font-size: 13px; color: var(--accent);}
.field__derived b {color: var(--fg-primary); font-weight: 600;}
.dev-mob .two-col {grid-template-columns: 1fr;}
/* row with field + its sourcing chip beneath */
.field__sd {margin-top: 6px;}
/* sourcing declaration always renders its OWN fixed label + chip, so the
   control is identical everywhere it appears */
.sd-field {display: flex; flex-direction: column; gap: 7px; align-items: flex-start;}
.sd-field > .field__label {margin: 0;}
/* choice rows */
.choices {display: flex; flex-direction: column; gap: 8px;}
.choice {background: var(--bg-surface); border: 1px solid var(--border-rule); border-radius: var(--radius-2); padding: 13px 15px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);}
.choice:hover {background: var(--bg-hover-neutral);}
.choice.on {border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--bg-surface);}
.choice__radio {width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--hm-charcoal); flex: none; position: relative;}
.choice.on .choice__radio {border-color: var(--accent);}
.choice.on .choice__radio::after {content: ""; position: absolute; inset: 4px; background: var(--accent); border-radius: 50%;}
.choice__t {font-size: 14px; font-weight: 600; color: var(--fg-primary);}
.choice__s {font-size: 12px; color: var(--fg-tertiary); margin-top: 1px;}
.choice__ic {margin-left: auto; font-size: 18px; color: var(--fg-secondary);}
/* select-or-create list */
.soc {border: 1px solid var(--border-rule); border-radius: var(--radius-2); overflow: hidden;}
.soc__row {display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--border-rule); cursor: pointer; background: var(--bg-surface);}
.soc__row:last-child {border-bottom: 0;}
.soc__row:hover {background: var(--bg-surface-alt);}
.soc__row.on {background: #F1F9F4;}
.soc__ic {width: 30px; height: 30px; border-radius: var(--radius-2); background: var(--bg-surface-alt); display: flex; align-items: center; justify-content: center; flex: none;}
.soc__ic i {font-size: 16px; color: var(--fg-secondary);}
.soc__row.on .soc__ic {background: #E8F4ED;}
.soc__row.on .soc__ic i {color: var(--accent);}
.soc__t {font-size: 14px; font-weight: 600;}
.soc__s {font-size: 12px; color: var(--fg-tertiary); margin-top: 1px;}
.soc__ck {margin-left: auto; font-size: 17px; color: var(--accent); opacity: 0;}
.soc__row.on .soc__ck {opacity: 1;}
.soc__create {display: flex; align-items: center; gap: 10px; padding: 12px 15px; cursor: pointer; color: var(--accent); font-size: 13.5px; font-weight: 600; background: var(--bg-surface); border-top: 1px dashed var(--border-rule);}
/* the row before an "add" row drops its solid rule so the dashed create
   separator reads as a single clean line (not two stacked borders) */
.soc__row:has(+ .soc__create) {border-bottom: 0;}
.soc__create:hover {background: var(--bg-surface-alt);}
.soc__create i {font-size: 16px;}
/* read-only master-data fact (§5.7 — reads as established fact, not a field) */
.factrow {display: flex; align-items: center; gap: 12px; background: var(--bg-surface-alt); border: 1px solid var(--border-rule); border-radius: var(--radius-2); padding: 11px 14px;}
.factrow__ic {width: 28px; height: 28px; border-radius: var(--radius-2); background: var(--bg-surface); border: 1px solid var(--border-rule); display: flex; align-items: center; justify-content: center; flex: none;}
.factrow__ic i {font-size: 15px; color: var(--fg-secondary);}
.factrow__k {font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-tertiary);}
.factrow__v {font-size: 15px; font-weight: 600; color: var(--fg-primary);}
.factrow__v small {font-size: 12px; font-weight: 500; color: var(--fg-tertiary);}
.factrow__tag {margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-tertiary); display: inline-flex; align-items: center; gap: 5px;}
.factrow__tag i {font-size: 12px;}
/* calculated / derived variant of the boxed treatment — same box, accent cue */
.factrow--calc .factrow__ic {background: #E8F4ED; border-color: #CDE8D9;}
.factrow--calc .factrow__ic i {color: var(--accent);}
.factrow--calc .factrow__tag i {color: var(--accent);}
/* whole-farm row reads as a distinct meta-option at the head of the field list */
.soc__row--whole .soc__ic {background: var(--bg-surface); border: 1px solid var(--border-rule);}
/* master-data create-and-signal (§5.7) */
.soc__signal {display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: #2c6b49; background: #F1F9F4; border-top: 1px solid #CDE8D9; padding: 9px 15px;}
.soc__signal i {font-size: 14px; color: var(--accent);}
/* conditional / dependent field — ONE consistent reveal treatment (§5.6) */

.cond {border-left: 2px solid var(--accent); padding-left: 14px; margin: 4px 0 2px; animation: condReveal var(--dur-fast) var(--ease-standard);}
.cond__why {font-size: 11px; font-weight: 600; color: var(--fg-tertiary); display: inline-flex; align-items: center; gap: 5px; margin-bottom: 8px;}
.cond__why i {font-size: 12px; color: var(--accent);}
/* category standing disclaimer (e.g. seed captured-not-calculated, §4.4) */
.cat__note {display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; line-height: 1.5; color: var(--fg-tertiary); background: var(--bg-surface-alt); border: 1px solid var(--border-rule); border-radius: var(--radius-2); padding: 9px 12px; margin-bottom: 12px;}
.cat__note i {font-size: 14px; color: var(--fg-secondary); margin-top: 1px; flex: none;}
/* two-method helper note under a method toggle */
.method-note {font-size: 11px; color: var(--fg-tertiary); margin: -4px 0 12px; display: flex; align-items: center; gap: 6px;}
.method-note i {font-size: 12px;}
/* required-field marker (§4.7 hybrid) */
.req-tag {font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a2f2f; background: #FBEDED; border: 1px solid #EAC9C9; border-radius: var(--radius-pill); padding: 2px 7px; display: inline-flex; align-items: center; gap: 4px;}
.req-tag i {font-size: 10px;}
/* required-to-submit panel */
.reqgrid {display: grid; grid-template-columns: 1fr 1fr; gap: 8px;}
.dev-mob .reqgrid {grid-template-columns: 1fr;}
.reqitem {display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: var(--radius-2); border: 1px solid var(--border-rule); background: var(--bg-surface);}
.reqitem > i {font-size: 18px; flex: none;}
.reqitem.ok > i {color: var(--accent);}
.reqitem.miss {border-color: #EAC9C9; background: #FBEDED;}
.reqitem.miss > i {color: var(--status-critical);}
.reqitem__k {font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-tertiary);}
.reqitem__v {font-size: 13.5px; font-weight: 600; color: var(--fg-primary); margin-top: 1px;}
.reqitem.miss .reqitem__v {color: #8a2f2f;}
.fin__reqnote {font-size: 11.5px; line-height: 1.5; color: var(--fg-tertiary); display: flex; gap: 7px; align-items: flex-start; margin-top: 10px;}
.fin__reqnote i {font-size: 13px; margin-top: 1px; flex: none;}
/* meta list (step 0) */
.metalist {border: 1px solid var(--border-rule); border-radius: var(--radius-2); overflow: hidden;}
.metalist__row {display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 15px 18px; border-bottom: 1px solid var(--border-rule); background: var(--bg-surface);}
.metalist__row:last-child {border-bottom: 0;}
.metalist__row > i {font-size: 19px; color: var(--fg-primary); margin-top: 1px;}
.metalist__k {font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-tertiary); margin-bottom: 3px;}
.metalist__v {font-size: 13.5px; line-height: 1.55; color: var(--fg-secondary);}
.metalist__v b {color: var(--fg-primary); font-weight: 600;}
/* =====================================================================
   SOURCING DECLARATION  (sd-)  — signed off
   ===================================================================== */
.sd {position: relative; display: inline-block;}
.sd__trig {display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 5px 10px 5px 9px; border-radius: var(--radius-pill); border: 1px dashed var(--border-strong); background: transparent; color: var(--fg-secondary); cursor: pointer;}
.sd__trig:hover {background: var(--bg-hover-neutral); border-color: var(--fg-secondary); color: var(--fg-primary);}
.sd__trig i {font-size: 14px;}
.sd__chip {display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 5px 11px 5px 9px; border-radius: var(--radius-pill); border: 1px solid var(--border-rule); background: var(--bg-surface); color: var(--fg-primary); cursor: pointer;}
.sd__chip:hover {background: var(--bg-surface-alt);}
.sd__chip.is-high {border-color: #BFE3CF; background: #F1F9F4;}
.sd__chip .qdot {width: 7px; height: 7px; border-radius: 50%; flex: none;}
.sd__chip i.lead {font-size: 14px; color: var(--fg-secondary);}
.sd__chip i.caret {font-size: 12px; color: var(--fg-tertiary);}
.sd__chip.sm {padding: 3px 9px 3px 7px; font-size: 11px;}
.q-high {background: var(--accent);}
.q-mid {background: var(--hm-charcoal);}
.q-low {background: var(--status-attention);}
.sd__menu {width: 318px; max-width: 84vw; background: var(--bg-surface); border: 1px solid var(--border-rule); border-radius: var(--radius-3); box-shadow: var(--shadow-modal); overflow: hidden;}
.sd__pop {position: absolute; z-index: 40; top: calc(100% + 6px); left: 0;}
.sd__menu-h {padding: 12px 16px 10px; border-bottom: 1px solid var(--border-rule);}
.sd__menu-h .t {font-size: 12px; font-weight: 600;}
.sd__menu-h .s {font-size: 11px; color: var(--fg-tertiary); margin-top: 3px;}
.sd__opt {display: grid; grid-template-columns: 26px 1fr 16px; align-items: center; gap: 11px; padding: 11px 16px; cursor: pointer; border-bottom: 1px solid var(--border-rule);}
.sd__opt:last-child {border-bottom: 0;}
.sd__opt:hover {background: var(--bg-surface-alt);}
.sd__opt.on {background: #F1F9F4;}
.sd__opt-ic {width: 26px; height: 26px; border-radius: var(--radius-2); display: flex; align-items: center; justify-content: center; background: var(--bg-surface-alt);}
.sd__opt-ic i {font-size: 15px; color: var(--fg-secondary);}
.sd__opt.on .sd__opt-ic {background: #E8F4ED;}
.sd__opt.on .sd__opt-ic i {color: var(--accent);}
.sd__opt-t {font-size: 13px; font-weight: 600;}
.sd__opt-d {font-size: 11.5px; color: var(--fg-tertiary); line-height: 1.4; margin-top: 1px;}
.sd__opt-ck {font-size: 15px; color: var(--accent); opacity: 0;}
.sd__opt.on .sd__opt-ck {opacity: 1;}
.sd__menu-f {padding: 9px 16px; background: var(--bg-surface-alt); font-size: 11px; color: var(--fg-tertiary); display: flex; align-items: center; gap: 7px;}
.sd__menu-f i {font-size: 13px;}
/* =====================================================================
   NIL / SKIP / ANSWERED  (ns-)  — signed off
   ===================================================================== */
.cat {background: var(--bg-surface); border: 1px solid var(--border-rule); border-radius: var(--radius-2); overflow: hidden;}
.cat + .cat {margin-top: 12px;}
.cat__h {display: flex; align-items: center; gap: 12px; padding: 14px 16px;}
.cat__ic {width: 34px; height: 34px; border-radius: var(--radius-2); background: var(--bg-surface-alt); display: flex; align-items: center; justify-content: center; flex: none;}
.cat__ic i {font-size: 18px; color: var(--fg-secondary);}
.cat__name {font-size: 15px; font-weight: 600;}
.cat__meta {font-size: 12px; color: var(--fg-tertiary); margin-top: 1px;}
.cat__state {margin-left: auto;}
.cat__body {padding: 2px 16px 16px;}
.cat__help {font-size: 13px; line-height: 1.5; color: var(--fg-secondary); margin: 0 0 13px;}
.spill {display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 4px 10px; border-radius: var(--radius-pill);}
.spill i {font-size: 13px;}
.spill--ans {background: #E8F4ED; color: #2E8055;}
.spill--nil {background: #EEEEEE; color: #3B3B3B;}
.spill--skip {background: #fff; color: var(--fg-tertiary); box-shadow: inset 0 0 0 1px var(--border-rule);}
.spill--part {background: #F5EFE0; color: #806721;}
.paths {display: flex; gap: 10px;}
.dev-mob .paths {flex-direction: column;}
.path-add {flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--fg-primary); background: var(--bg-surface-alt); border: 0; border-radius: var(--radius-2); box-shadow: inset 0 -2px 0 0 var(--accent); padding: 12px 16px; cursor: pointer;}
.path-add:hover {background: #EEEDE8;}
.path-add i {font-size: 17px; color: var(--accent);}
.path-nil {display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--fg-secondary); background: transparent; border: 1px solid var(--border-rule); border-radius: var(--radius-2); padding: 12px 16px; cursor: pointer; white-space: nowrap;}
.path-nil:hover {background: var(--bg-hover-neutral); color: var(--fg-primary); border-color: var(--border-strong);}
.path-nil i {font-size: 15px;}
.paths__note {font-size: 11px; color: var(--fg-tertiary); margin-top: 10px; display: flex; align-items: center; gap: 6px;}
.paths__note i {font-size: 13px;}
.nilband {display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--border-rule); border-radius: var(--radius-2); background: var(--bg-surface-alt);}
.nilband__ic {width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg-surface); display: flex; align-items: center; justify-content: center; flex: none;}
.nilband__ic i {font-size: 15px; color: var(--fg-secondary);}
.nilband__t {font-size: 13.5px; font-weight: 600;}
.nilband__s {font-size: 11.5px; color: var(--fg-tertiary); margin-top: 1px;}
.nilband__undo {margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent); background: transparent; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;}
/* per-fuel self-contained block (Step 4) — amount + allocation + source */
.fuelblock {background: var(--bg-surface); border: 1px solid var(--border-rule); border-radius: var(--radius-2); padding: 16px;}
.fuelblock + .fuelblock {margin-top: 12px;}
.fuelblock__h {display: flex; align-items: center; gap: 10px; margin-bottom: 14px;}
.fuelblock__ic {width: 32px; height: 32px; border-radius: var(--radius-2); background: var(--bg-surface-alt); display: flex; align-items: center; justify-content: center; flex: none;}
.fuelblock__ic i {font-size: 17px; color: var(--fg-secondary);}
.fuelblock__name {font-size: 15px; font-weight: 600;}
.fuelblock__tag {margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--fg-tertiary); background: var(--bg-surface-alt); border: 1px solid var(--border-rule); border-radius: var(--radius-pill); padding: 3px 9px 3px 7px; display: inline-flex; align-items: center; gap: 5px;}
.fuelblock__tag i {font-size: 12px; color: var(--accent);}
.skipband {display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px dashed var(--hm-charcoal); border-radius: var(--radius-2); background: var(--bg-surface);}
.skipband__ic {width: 30px; height: 30px; border-radius: 50%; border: 1px dashed var(--hm-charcoal); display: flex; align-items: center; justify-content: center; flex: none;}
.skipband__ic i {font-size: 15px; color: var(--fg-tertiary);}
.skipband__t {font-size: 13.5px; font-weight: 600; color: var(--fg-secondary);}
.skipband__s {font-size: 11.5px; color: var(--fg-tertiary); margin-top: 1px;}
.skipband__act {margin-left: auto; font-size: 12px; font-weight: 600; color: var(--fg-secondary); background: transparent; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;}
/* event rows */
.ev {display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--border-rule); border-radius: var(--radius-2); background: var(--bg-surface);}
.ev + .ev {margin-top: 8px;}
.ev__main {min-width: 0; flex: 1;}
.ev__t {font-size: 13.5px; font-weight: 600;}
.ev__sub {font-size: 11.5px; color: var(--fg-tertiary); margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
.ev__val {font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap;}
.ev__val small {display: block; font-size: 11px; font-weight: 500; color: var(--fg-tertiary);}
.ev__edit {font-size: 15px; color: var(--fg-tertiary); cursor: pointer; padding: 4px;}
.ev__edit:hover {color: var(--accent);}
/* =====================================================================
   HUB  (sc-hub)
   ===================================================================== */
.hub__hero {display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px;}
.hub__sectionlabel {font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-tertiary); margin: 28px 0 12px; display: flex; align-items: center; gap: 8px;}
.hub__sectionlabel .count {background: var(--bg-surface-alt); color: var(--fg-secondary); border-radius: var(--radius-pill); padding: 1px 8px; font-size: 10px;}
.acard {display: flex; align-items: center; gap: 14px; padding: 15px 16px; background: var(--bg-surface); border: 1px solid var(--border-rule); border-radius: var(--radius-2); box-shadow: var(--shadow-card); cursor: pointer;}
.acard + .acard {margin-top: 10px;}
.acard:hover {box-shadow: var(--shadow-raised);}
.acard__body {flex: 1; min-width: 0;}
.acard__t {font-size: 15px; font-weight: 600;}
.acard__s {font-size: 12px; color: var(--fg-tertiary); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center;}
.acard__prog {margin-top: 9px; height: 4px; background: var(--border-rule); border-radius: 2px; overflow: hidden; max-width: 280px;}
.acard__prog > i {display: block; height: 100%; background: var(--accent); border-radius: 2px;}
.acard__right {text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 7px;}
.acard__cta {font-size: 12px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 5px;}
/* buyer-request card — white card, consistent with .acard (round 2, fix 6) */
.req {background: var(--bg-surface); border: 1px solid var(--border-rule); border-radius: var(--radius-2); box-shadow: var(--shadow-card); padding: 16px;}
.req + .req {margin-top: 10px;}
.req__top {display: flex; align-items: center; gap: 10px; margin-bottom: 10px;}
.req__buyer {width: 32px; height: 32px; border-radius: var(--radius-2); background: var(--hm-near-black); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;}
.req__from {font-size: 11px; color: var(--fg-tertiary);}
.req__name {font-size: 14px; font-weight: 600;}
.req__scope {display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0;}
.req__actions {display: flex; gap: 10px; margin-top: 6px;}
/* =====================================================================
   FINALISE  (sc-fin)
   ===================================================================== */
.fin__group {margin-top: 22px;}
.fin__list {border: 1px solid var(--border-rule); border-radius: var(--radius-2); overflow: hidden;}
.fin__row {display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border-rule); background: var(--bg-surface);}
.fin__row:last-child {border-bottom: 0;}
.fin__row.is-part {background: #FCFAF3;}
.fin__q {font-size: 13.5px; font-weight: 600;}
.fin__sub {font-size: 11.5px; color: var(--fg-tertiary); margin-top: 2px;}
.fin__edit {font-size: 12px; color: var(--accent); font-weight: 600; cursor: pointer;}
.fin__powered {display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--border-rule); border-radius: var(--radius-2); background: var(--bg-surface-alt); margin-top: 18px;}
.fin__powered .mk {width: 30px; height: 30px; border-radius: 50%; background: var(--hm-near-black); display: flex; align-items: center; justify-content: center;}
.fin__powered .mk i {color: var(--accent); font-size: 16px;}
.fin__powered .k {font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-tertiary);}
.fin__powered .v {font-size: 13px; font-weight: 600; color: var(--fg-primary);}
.summary-strip {display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px;}
.summary-strip .pill2 {display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: var(--radius-2); background: var(--bg-surface); border: 1px solid var(--border-rule);}
.summary-strip .pill2 b {font-variant-numeric: tabular-nums;}
.summary-strip .pill2 .n-ans {color: #2E8055;}
.summary-strip .pill2 .n-nil {color: #3B3B3B;}
.summary-strip .pill2 .n-skip {color: var(--status-attention);}
.px-mini--phone {width: 390px; height: 640px;}
.px-mini__scale {transform-origin: top left;}
@keyframes condReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Inert (display-only) buyer request — shared-supplier inbox rows (e.g. Tarwin ISCC,
   Coorong SLL) shown to Murray Gold but not walkable in the AASB scenario. */
.req--inert { opacity: 0.72; background: var(--bg-surface-alt); box-shadow: none; }
.req--inert .req__buyer { background: var(--fg-tertiary); }
