/* PCN dossier wizard — full-viewport 3-pane workspace (M12).
   Reference design: mockups/pcn-wizard-mockup-chemplora.html (commit e28367431).
   All classes are pcnw- prefixed; colors come from the shared --cx-* tokens in app.css
   (no local token set — so a warm-theme override of --cx-* recolors the wizard too). */
@layer legacy {

.pcnw {
    min-height: 100vh;
    background: var(--cx-bg);
    color: var(--cx-ink);
    font-size: 14px;
    line-height: 1.55;

    /* Break out of MainLayout's MudContainer padding so the wizard is full-bleed in the content
       area and the sticky topbar sits flush. The container's horizontal gutter is 24px and the
       top is pt-4 (16px) — counteract each exactly so no side/top gap remains. */
    margin: -16px -24px 0;
}

/* ── live-edit pulse (pcnw-ent-bar eyebrow) ─────────────────────────────── */
@keyframes pcnwPulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--cx-warn-rgb), .45); }
    70%  { box-shadow: 0 0 0 7px rgba(var(--cx-warn-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--cx-warn-rgb), 0); }
}

/* ── hero strip ──────────────────────────────────────────────────────────── */
@keyframes pcnwRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pcnw-hero-meta {
    display: flex; border: 1px solid var(--cx-hairline); border-radius: var(--cx-radius);
    background: var(--cx-surface); overflow: hidden; margin-left: auto;
    box-shadow: 0 1px 2px rgba(var(--cx-ink-rgb),.04);
}

.pcnw-hm-cell { padding: 12px 20px; border-left: 1px solid var(--cx-hairline-2); }
.pcnw-hm-cell:first-child { border-left: none; }
.pcnw-hm-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-ink-faint); font-weight: 600; margin-bottom: 2px; }
.pcnw-hm-value { font-family: var(--pcn-mono); font-size: 13px; font-weight: 500; }
.pcnw-hm-value.pcnw-ufi { color: var(--cx-accent); }

/* ── slim cx-ent-bar masthead (uniform with Company/Substance/Product/TM entity pages) ──
   Full-bleed edge-to-edge bar; inner content centred to the widened 1800 workspace width so
   the eyebrow / name / actions line up with the panels below. */
.pcnw-ent-bar { margin: 0; padding: 0; display: block; animation: pcnwRise .5s ease both; }
.pcnw-ent-bar .cx-ent-bar-inner {
    max-width: 1800px; margin: 0 auto; padding: 9px 32px;
    display: flex; align-items: center; gap: 18px;
}
.pcnw-ent-bar .cx-ent-eyebrow { align-items: center; }
.pcnw-ent-bar .cx-ent-eyebrow .pcnw-pulse {
    width: 7px; height: 7px; border-radius: 50%; background: var(--cx-warn);
    animation: pcnwPulse 2.4s infinite;
}
/* meta strip sits below the bar with generous breathing room BEFORE and AFTER, centred to the workspace */
.pcnw-meta-row { max-width: 1800px; margin: 26px auto 34px; padding: 0 32px; display: flex; align-items: center; gap: 18px; }
.pcnw-meta-row .pcnw-hero-meta { margin: 0; width: max-content; max-width: 100%; }

/* view-mode toggle (guided ⇄ single page) — design-system segmented control in the meta row,
   deliberately OUTSIDE the sticky stepper so it never shifts the step column */
.pcnw-mode-seg { flex: none; margin-left: auto; }
.pcnw-mode-seg button { padding: 9px 16px; }

/* ── read-only bar (shown when the notification is not a Draft) ───────────── */
.pcnw-readonly-bar {
    /* 1736 = 1800 − 2×32 layout gutter, so the bar lines up with the 3 columns below it;
       24px bottom margin separates it from the workspace. */
    max-width: 1736px; margin: 0 auto 24px; padding: 12px 18px;
    display: flex; align-items: center; gap: 14px;
    background: var(--cx-warn-soft); border: 1px solid var(--cx-warn-border); border-radius: var(--cx-radius);
    color: var(--cx-warn-ink); font-size: 13px;
}

.pcnw-readonly-bar .pcnw-ro-ico { font-size: 16px; flex: none; }
.pcnw-readonly-bar .pcnw-ro-text { flex: 1; }

/* ── main grid (widened to the 1800 workspace — side rails sit nearer the edges,
   the central panel gains the extra width) ──────────────────────────────────── */
.pcnw-layout {
    max-width: 1800px; margin: 0 auto; padding: 0 32px 80px;
    display: grid; grid-template-columns: 264px minmax(0,1fr) 308px; gap: 28px;
    align-items: start;
}

/* ── stepper ─────────────────────────────────────────────────────────────── */
.pcnw-stepper { position: sticky; top: 80px; animation: pcnwRise .5s .08s ease both; }

.pcnw-stepper-title {
    font-family: var(--pcn-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--cx-ink-faint); font-weight: 600; padding: 0 14px 10px;
}

.pcnw-step {
    display: flex; gap: 12px; align-items: flex-start; justify-content: flex-start; width: 100%; text-align: left;
    padding: 11px 14px; border-radius: 9px; cursor: pointer;
    position: relative; transition: background .15s ease;
    border: 1px solid transparent; background: transparent; font: inherit; color: inherit;
}

.pcnw-step:hover { background: var(--cx-hover); }
.pcnw-step.active { background: var(--cx-surface); border-color: var(--cx-hairline); box-shadow: 0 2px 8px rgba(var(--cx-ink-rgb),.07); }

.pcnw-step:not(:last-child)::after {
    content: ""; position: absolute; left: 25px; top: 42px; bottom: -12px; width: 1.5px;
    background: var(--cx-hairline);
}

.pcnw-step-node {
    width: 23px; height: 23px; border-radius: 50%; flex: none; z-index: 1;
    display: grid; place-items: center;
    font-family: var(--pcn-mono); font-size: 10.5px; font-weight: 600;
    border: 1.5px solid var(--cx-hairline); background: var(--cx-bg); color: var(--cx-ink-faint);
    transition: all .15s ease;
}

.pcnw-step.done .pcnw-step-node { background: var(--cx-ok); border-color: var(--cx-ok); color: #fff; }
.pcnw-step.error .pcnw-step-node { background: var(--cx-bad-soft); border-color: var(--cx-bad); color: var(--cx-bad); }
.pcnw-step.active .pcnw-step-node { background: var(--cx-accent); border-color: var(--cx-accent); color: #fff; }
.pcnw-step-name { font-weight: 600; font-size: 13px; line-height: 1.3; }
.pcnw-step-sub { font-size: 11.5px; color: var(--cx-ink-faint); margin-top: 1px; }
.pcnw-step.error .pcnw-step-sub { color: var(--cx-bad); font-weight: 600; }

.pcnw-step-flag {
    margin-left: auto; flex: none; font-family: var(--pcn-mono); font-size: 10px; font-weight: 600;
    border-radius: 999px; padding: 2px 8px; margin-top: 2px;
}

.pcnw-step.error .pcnw-step-flag { background: var(--cx-bad-soft); color: var(--cx-bad); }
.pcnw-step.warn .pcnw-step-flag { background: var(--cx-warn-soft); color: var(--cx-warn); }

/* ── center panel ────────────────────────────────────────────────────────── */
.pcnw-panel {
    background: var(--cx-surface); border: 1px solid var(--cx-hairline); border-radius: 14px;
    overflow: hidden; animation: pcnwRise .5s .14s ease both;
    box-shadow: var(--cx-shadow-card);
}

.pcnw-panel-head {
    padding: 26px 32px 22px; border-bottom: 1px solid var(--cx-hairline-2);
    display: flex; align-items: flex-start; gap: 20px;
    background: linear-gradient(180deg, rgba(var(--cx-accent-rgb),.04), transparent);
}

.pcnw-panel-no {
    font-family: var(--pcn-mono); font-size: 30px; font-weight: 500;
    color: var(--cx-ink-faint); line-height: 1.15; user-select: none; letter-spacing: -.02em;
}

.pcnw-panel-head h2 { font-weight: 600; font-size: 21px; letter-spacing: -.015em; margin: 0; }
.pcnw-panel-head p { color: var(--cx-ink-soft); font-size: 13px; margin: 3px 0 0; max-width: 520px; }
.pcnw-panel-head .pcnw-rule-ref { font-family: var(--pcn-mono); font-size: 11px; }
.pcnw-panel-body { padding: 28px 32px 32px; animation: pcnwFadeStep .25s ease both; }

/* single-page (advanced) mode — all sections stacked in one panel; the stepper is jump-nav.
   scroll-margin keeps a jumped-to section head clear of the sticky app bar. */
.pcnw-sp-sec { scroll-margin-top: 84px; }
.pcnw-sp-sec + .pcnw-sp-sec { border-top: 1px solid var(--cx-hairline); }

@keyframes pcnwFadeStep { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* form primitives */
.pcnw-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.pcnw-field { display: flex; flex-direction: column; gap: 6px; }
.pcnw-field.full { grid-column: 1/-1; }
.pcnw-field > label { font-size: 12px; font-weight: 600; color: var(--cx-ink-soft); letter-spacing: .02em; }
.pcnw-field > label .pcnw-req { color: var(--cx-accent); font-weight: 700; }

.pcnw-input, select.pcnw-input, textarea.pcnw-input {
    font-family: inherit; font-size: 13.5px; color: var(--cx-ink);
    border: 1px solid var(--cx-hairline); border-radius: 8px;
    padding: 9px 12px; background: var(--cx-bg); outline: none; width: 100%;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.pcnw-input:focus { border-color: var(--cx-accent); background: var(--cx-surface); box-shadow: 0 0 0 3px rgba(var(--cx-accent-rgb),.12); }
.pcnw-input.mono { font-family: var(--pcn-mono); letter-spacing: .03em; }
.pcnw-input.invalid { border-color: var(--cx-bad); background: var(--cx-bad-soft); }
.pcnw-input:disabled, .pcnw-input[readonly] { color: var(--cx-ink-soft); background: var(--cx-bg-deep); cursor: default; }

/* CxSelectSearch tuned to match the wizard's pcnw-input metrics (replaces the native <select>).
   NOTE: the variant class is `pcnw-sel`, NOT `pcnw` — a bare `.pcnw` element matches the wizard-root
   rule above (min-height:100vh + full-bleed negative margins), which would blow the dropdown up. */
.cx-ssel.pcnw-sel { max-width: none; }
.cx-ssel.pcnw-sel .cx-ssel-control { height: auto; min-height: 38px; padding: 9px 12px; font-size: 13.5px; border-radius: 8px; background: var(--cx-bg); }
.cx-ssel.pcnw-sel.open .cx-ssel-control { background: var(--cx-surface); }
.cx-ssel.pcnw-sel .cx-ssel-control:disabled { color: var(--cx-ink-soft); background: var(--cx-bg-deep); }

.pcnw-hint { font-size: 11.5px; color: var(--cx-ink-faint); }
.pcnw-hint.err { color: var(--cx-bad); font-weight: 600; }
.pcnw-hint a { color: var(--cx-accent); }
.pcnw-hint code { font-family: var(--pcn-mono); font-size: 10.5px; background: var(--cx-bg-deep); padding: 1px 5px; border-radius: 4px; }

/* chips */
.pcnw-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.pcnw-chip {
    font-size: 12.5px; font-weight: 500; border-radius: 999px; padding: 6px 13px; cursor: pointer;
    border: 1px solid var(--cx-hairline); background: var(--cx-surface); color: var(--cx-ink-soft);
    transition: all .12s ease; user-select: none; font-family: inherit;
}

.pcnw-chip:hover:not(:disabled) { border-color: var(--cx-accent-lite); color: var(--cx-accent-dark); }
.pcnw-chip.on { background: var(--cx-accent); border-color: var(--cx-accent); color: #fff; }
.pcnw-chip.on::before { content: "✓"; margin-right: 5px; font-size: 10px; font-weight: 700; vertical-align: 0.5px; }
.pcnw-chip.add { border-style: dashed; color: var(--cx-ink-faint); }
/* colour inherited from the product (submission override empty): dashed accent, distinct from .on */
.pcnw-chip.inherit { border-style: dashed; border-color: var(--cx-accent-lite); color: var(--cx-accent-dark); background: rgba(var(--cx-accent-rgb), .06); }
.pcnw-chip:disabled { opacity: .55; cursor: default; }

/* hazard chips — semantic, theme-independent */
.pcnw-hz {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--pcn-mono); font-size: 11px; font-weight: 600;
    border-radius: 6px; padding: 3px 8px;
    background: var(--cx-warn-soft); color: var(--cx-warn);
}

/* GHS pictograms — the real images (shared cx-ghs-tile white tile), sized for the review field */
.pcnw-picto-img { width: 46px; height: 46px; display: block; margin: 0 auto; }
.pcnw-picto-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.pcnw-picto-label { font-family: var(--pcn-mono); font-size: 10px; color: var(--cx-ink-faint); text-align: center; margin-top: 8px; }

/* data tables (composition, packaging) are the shared .cx-table primitive; the wizard keeps
   top-aligned cells (multi-line component rows) and its invalid-row highlight. */
.pcnw .cx-table td { vertical-align: top; }
.pcnw .cx-table tr.invalid-row td { background: var(--cx-bad-soft); }

.pcnw-cell-name { font-weight: 600; font-size: 13.5px; }
.pcnw-cell-sub { font-size: 11.5px; color: var(--cx-ink-faint); }
.pcnw-idcode { font-family: var(--pcn-mono); font-size: 12px; color: var(--cx-ink-soft); display: block; line-height: 1.7; }
.pcnw-idcode b { color: var(--cx-ink-faint); font-weight: 500; font-size: 10px; letter-spacing: .08em; margin-right: 6px; }
.pcnw-idcode.missing { color: var(--cx-bad); font-weight: 600; }
.pcnw-gci-badge { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 9px; border-radius: 999px; background: var(--cx-accent-soft); color: var(--cx-accent-dark); }
.pcnw-conc { font-family: var(--pcn-mono); font-size: 13px; font-weight: 600; white-space: nowrap; }

.pcnw-add-row {
    margin-top: 16px; width: 100%; padding: 12px; border: 1.5px dashed var(--cx-hairline);
    border-radius: 9px; background: transparent; cursor: pointer;
    font-family: inherit; font-weight: 500; font-size: 13px; color: var(--cx-ink-faint);
    transition: all .15s;
}

.pcnw-add-row:hover { border-color: var(--cx-accent); color: var(--cx-accent); background: var(--cx-accent-soft); }

/* in-section subsection heading (pH, ICG groups, …) */
.pcnw-subhead { font-size: 14px; font-weight: 600; margin: 26px 0 6px; color: var(--cx-ink); }

/* ── ICG group editor (Composition step): one card per group — badge + name head row,
      member chips (pcnw-chip toggles) and per-language description inputs. ── */
.pcnw-icg-card {
    display: flex; flex-direction: column; gap: 14px;
    border: 1px solid var(--cx-hairline); border-radius: 10px; background: var(--cx-bg);
    padding: 14px 16px; margin: 12px 0;
}
.pcnw-icg-head { display: flex; align-items: center; gap: 10px; }
.pcnw-icg-badge {
    flex: none; font-family: var(--pcn-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em;
    color: var(--cx-accent-dark); background: var(--cx-accent-soft); border-radius: 6px; padding: 5px 8px;
}
.pcnw-icg-head .pcnw-icg-name { max-width: 340px; }
.pcnw-icg-head .cx-icon-btn { margin-left: auto; }
.pcnw-chip .pcnw-chip-conc { margin-left: 7px; font-family: var(--pcn-mono); font-size: 10.5px; font-weight: 600; opacity: .75; }
.pcnw-icg-langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 14px; }
.pcnw-icg-lang { display: flex; align-items: center; gap: 8px; }
.pcnw-lang-tag {
    flex: none; width: 36px; text-align: center; text-transform: uppercase;
    font-family: var(--pcn-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em;
    color: var(--cx-ink-faint); background: var(--cx-bg-deep); border-radius: 5px; padding: 5px 0;
}
.pcnw-icg-lang .pcnw-input { flex: 1; min-width: 0; }

/* ── Group members step (Group submission, backlog #12): the base product anchor + one card per
      member product. Same card language as the ICG editor; the chips carry the UFI + the live
      composition verdict vs the base (perfume-only ≤5% = what BR859/BR860 allow). ── */
.pcnw-gm { display: flex; flex-direction: column; gap: 12px; }
.pcnw-gm-card {
    display: flex; flex-direction: column; gap: 10px;
    border: 1px solid var(--cx-hairline); border-radius: 10px; background: var(--cx-bg);
    padding: 14px 16px;
}
/* The base card is distinguished by its accent-soft BASE PRODUCT badge alone (the member badges
   are muted) — the design system reserves left border stripes for severity callouts, and marks
   emphasis with accent-soft fills instead. */
.pcnw-gm-head { display: flex; align-items: center; gap: 10px; }
.pcnw-gm-head .cx-icon-btn { margin-left: auto; }
.pcnw-gm-badge {
    flex: none; font-family: var(--pcn-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cx-accent-dark); background: var(--cx-accent-soft); border-radius: 6px; padding: 5px 8px;
}
.pcnw-gm-badge.member { color: var(--cx-ink-faint); background: var(--cx-bg-deep); }
.pcnw-gm-name { font-size: 14px; font-weight: 600; color: var(--cx-ink); }
.pcnw-gm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pcnw-gm-chip {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; font-weight: 600; color: var(--cx-ink-faint);
    background: var(--cx-bg-deep); border-radius: 999px; padding: 4px 10px;
}
.pcnw-gm-chip.mono { font-family: var(--pcn-mono); font-weight: 500; letter-spacing: .02em; }
.pcnw-gm-chip.ok  { color: var(--cx-good-ink, var(--cx-good)); background: rgba(var(--cx-good-rgb), .12); }
.pcnw-gm-chip.bad { color: var(--cx-bad-ink, var(--cx-bad));  background: rgba(var(--cx-bad-rgb), .12); }
.pcnw-gm-add { margin-top: 8px; }
.pcnw-gm-add-row { display: flex; align-items: center; gap: 10px; }
.pcnw-gm-add-row .pcnw-sel { max-width: 420px; flex: 1; }

/* per-section findings banner (the section's own blocking/warning issues, shown in-panel) */
.pcnw-section-findings { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

/* callouts */
/* Prominent "jump to the owning product SDS section" action for a wizard section that only mirrors
   product data (e.g. Composition → SDS §3). A solid accent button so the way to actually edit is
   obvious, not a faint inline link buried in a callout. */
.pcnw-sec-action-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px;
}
.pcnw-sec-action-note { font-size: 12px; color: var(--cx-ink-faint); }
.pcnw-edit-chip {
    display: inline-flex; align-items: center; gap: 5px; flex: none;
    font-size: 12px; font-weight: 700; color: #fff; text-decoration: none;
    background: var(--cx-accent); padding: 7px 15px; border-radius: 8px;
    white-space: nowrap; transition: background .12s;
}
.pcnw-edit-chip:hover { background: var(--cx-accent-dark); color: #fff; }

/* "← Back to PCN wizard" banner on entity pages opened from a wizard deep-link. Sticky and
   unmistakable, but ON-SYSTEM (readonly-bar anatomy: icon + text + action): the bar is an opaque
   accent-soft tint and the SOLID accent chip carries the strong affordance PO asked for — no
   solid-teal bar, no left stripe (those are reserved for severity callouts). */
.pcn-return-banner {
    position: sticky; top: 0; z-index: 1200;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 18px; margin-bottom: 12px;
    background: var(--cx-accent-soft);
    border-bottom: 1px solid rgba(var(--cx-accent-rgb), .35);
    color: var(--cx-accent-dark); font-size: 13px;
}
.pcn-return-banner .pcn-rb-ico { flex: none; display: inline-flex; }
.pcn-return-banner .pcn-rb-text { flex: 1; font-weight: 500; }

/* Callouts are the shared .cx-callout primitive (app.css); the wizard's default rhythm
   puts them 22px below the preceding block (inline margins at call sites override). */
.pcnw .cx-callout { margin-top: 22px; }

/* panel footer */
.pcnw-panel-foot {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 32px; border-top: 1px solid var(--cx-hairline-2); background: var(--cx-bg);
}

.pcnw-foot-note { font-size: 12px; color: var(--cx-ink-faint); margin-right: auto; font-family: var(--pcn-mono); }

/* ── right rail: readiness ───────────────────────────────────────────────── */
.pcnw-rail { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 20px; animation: pcnwRise .5s .2s ease both; }

.pcnw-ready-card {
    background: var(--cx-card-dark); color: var(--cx-card-dark-ink); border-radius: 14px; padding: 24px;
    position: relative; overflow: hidden;
}

.pcnw-ready-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 85% -10%, rgba(var(--cx-accent-lite-rgb),.28), transparent 55%);
}

.pcnw-ready-head {
    font-family: var(--pcn-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
    color: color-mix(in srgb, var(--cx-card-dark-ink) 50%, transparent); font-weight: 600; margin-bottom: 18px;
    display: flex; justify-content: space-between;
}

.pcnw-ring-wrap { display: flex; align-items: center; gap: 20px; }
.pcnw-ring-box { position: relative; width: 100px; height: 100px; flex: none; }
.pcnw-ring { transform: rotate(-90deg); }
.pcnw-ring .track { stroke: color-mix(in srgb, var(--cx-card-dark-ink) 14%, transparent); }
.pcnw-ring .meter { stroke: var(--cx-accent-lite); stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.22,.8,.3,1); }
.pcnw-ring .meter.allgood { stroke: var(--cx-ok); }

.pcnw-ring-num {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 23px; font-weight: 600; text-align: center; line-height: 1.05;
}

/* Constrain the caption so longer labels ("ready to pack", "not validated") wrap inside the ring
   instead of overrunning the stroke (the inner clear diameter is ~70px for r=42, stroke 7). */
.pcnw-ring-num small {
    font-size: 10px; color: color-mix(in srgb, var(--cx-card-dark-ink) 50%, transparent); font-weight: 400; display: block;
    max-width: 60px; margin: 2px auto 0; line-height: 1.2; white-space: normal;
}
.pcnw-ready-stats { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; position: relative; }
.pcnw-rs-line { display: flex; align-items: center; gap: 9px; color: color-mix(in srgb, var(--cx-card-dark-ink) 85%, transparent); }
.pcnw-rs-line .sw { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pcnw-rs-line b { font-family: var(--pcn-mono); margin-left: auto; font-size: 12px; }

/* Partial-report notice: dossier assembly failed so only some rules ran — sits above the foot inside
   the dark ready-card, tinted with the warning accent. */
.pcnw-ready-incomplete {
    margin-top: 16px; padding: 10px 12px; border-radius: 9px;
    background: color-mix(in srgb, var(--cx-warn, #E0A93E) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--cx-warn, #E0A93E) 42%, transparent);
    font-size: 11.5px; line-height: 1.45; color: color-mix(in srgb, var(--cx-card-dark-ink) 92%, transparent);
    position: relative;
}

.pcnw-ready-foot {
    margin-top: 20px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--cx-card-dark-ink) 14%, transparent);
    font-size: 11.5px; color: color-mix(in srgb, var(--cx-card-dark-ink) 50%, transparent);
    display: flex; justify-content: space-between; align-items: center; position: relative;
}

.pcnw-ready-foot .v { font-family: var(--pcn-mono); color: color-mix(in srgb, var(--cx-card-dark-ink) 80%, transparent); }

.pcnw-findings { background: var(--cx-surface); border: 1px solid var(--cx-hairline); border-radius: 14px; overflow: hidden; }

.pcnw-findings-head {
    padding: 15px 18px; border-bottom: 1px solid var(--cx-hairline-2);
    display: flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 13px;
}

.pcnw-findings-head .count {
    font-family: var(--pcn-mono); font-size: 10.5px; background: var(--cx-bad-soft); color: var(--cx-bad);
    padding: 2px 8px; border-radius: 999px; font-weight: 600;
}

.pcnw-findings-head .count.ok { background: var(--cx-ok-soft); color: var(--cx-ok); }

.pcnw-finding {
    padding: 13px 18px; border-bottom: 1px solid var(--cx-hairline-2); cursor: pointer;
    display: flex; gap: 11px; transition: background .12s;
    /* justify/align must be explicit: this is a <button>, whose UA default is
       justify-content/align-items: center — that centred short findings and pushed
       the first row right. The mockup used a <div>; restore top/left alignment. */
    justify-content: flex-start; align-items: flex-start;
    width: 100%; text-align: left; background: transparent; border-left: none; border-right: none; border-top: none;
    font: inherit; color: inherit;
}

.pcnw-finding:last-child { border-bottom: none; }
.pcnw-finding:hover { background: var(--cx-bg); }
.pcnw-f-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 5px; }
.pcnw-f-dot.blocking { background: var(--cx-bad); box-shadow: 0 0 0 3px var(--cx-bad-soft); }
.pcnw-f-dot.warning { background: var(--cx-warn); box-shadow: 0 0 0 3px var(--cx-warn-soft); }

.pcnw-f-rule {
    font-family: var(--pcn-mono); font-size: 10px; font-weight: 600; letter-spacing: .05em;
    color: var(--cx-ink-faint); margin-bottom: 2px; display: flex; gap: 8px; align-items: center;
}

.pcnw-f-code.has-hint { cursor: help; border-bottom: 1px dotted var(--cx-ink-faint); }
.pcnw-f-rule .sev { text-transform: uppercase; font-size: 9px; letter-spacing: .1em; border-radius: 3px; padding: 1px 5px; }
.pcnw-f-rule .sev.b { background: var(--cx-bad-soft); color: var(--cx-bad); }
.pcnw-f-rule .sev.w { background: var(--cx-warn-soft); color: var(--cx-warn); }
.pcnw-f-msg { font-size: 12.5px; line-height: 1.45; color: var(--cx-ink); }
/* Clear, accented call-to-action — reads as a clickable "fix this" chip, not faint caption text. */
.pcnw-f-loc {
    display: inline-flex; align-items: center; margin-top: 7px;
    font-size: 11.5px; font-weight: 700; color: var(--cx-accent);
    background: var(--cx-accent-soft); padding: 3px 10px; border-radius: 999px;
    width: fit-content; transition: background .12s, color .12s;
}
.pcnw-finding:hover .pcnw-f-loc { background: var(--cx-accent); color: #fff; }

.pcnw-findings-foot {
    padding: 12px 18px; background: var(--cx-bg); font-size: 11.5px; color: var(--cx-ink-faint);
    border-top: 1px solid var(--cx-hairline-2); font-family: var(--pcn-mono);
}

/* ── review summary cards ────────────────────────────────────────────────── */
.pcnw-rev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pcnw-rev-card { border: 1px solid var(--cx-hairline); border-radius: 10px; padding: 16px 18px; background: var(--cx-bg); }

.pcnw-rev-card h4 {
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-ink-faint);
    margin: 0 0 9px; display: flex; justify-content: space-between; font-weight: 600;
}

.pcnw-rev-card h4 .st { font-family: var(--pcn-mono); font-size: 10px; }
.pcnw-rev-card h4 .st.ok { color: var(--cx-ok); }
.pcnw-rev-card h4 .st.bad { color: var(--cx-bad); }
.pcnw-rev-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 12.5px; margin: 0; }
.pcnw-rev-card dt { color: var(--cx-ink-faint); }
.pcnw-rev-card dd { font-weight: 600; font-family: var(--pcn-mono); font-size: 12px; margin: 0; overflow-wrap: anywhere; }

/* tox narrative area */
.pcnw-tox-area { min-height: 120px; resize: vertical; }

/* market row editor */
.pcnw-market-row {
    display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.4fr) auto auto;
    gap: 10px; align-items: center; padding: 10px 0;
    border-bottom: 1px solid var(--cx-hairline-2);
}

.pcnw-usetype-flags { display: flex; gap: 5px; }

.pcnw-usetype-flags button {
    font-family: var(--pcn-mono); font-size: 10px; font-weight: 600; cursor: pointer;
    border: 1px solid var(--cx-hairline); background: var(--cx-surface); color: var(--cx-ink-faint);
    border-radius: 5px; padding: 4px 7px; transition: all .12s;
}

.pcnw-usetype-flags button.on { background: var(--cx-accent-soft); border-color: var(--cx-accent); color: var(--cx-accent-dark); }

/* spinner */
.pcnw-spin {
    display: inline-block; width: 13px; height: 13px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
    animation: pcnwSpin .7s linear infinite; vertical-align: -2px;
}

@keyframes pcnwSpin { to { transform: rotate(360deg); } }

/* responsive */
@media (max-width: 1180px) {
    .pcnw-layout { grid-template-columns: 230px minmax(0,1fr); }
    .pcnw-rail { grid-column: 1/-1; position: static; flex-direction: row; flex-wrap: wrap; }
    .pcnw-rail > * { flex: 1 1 320px; }
}

@media (max-width: 800px) {
    .pcnw-layout { grid-template-columns: minmax(0,1fr); }
    .pcnw-stepper { position: static; }
    .pcnw-field-grid { grid-template-columns: 1fr; }
    .pcnw-rev-grid { grid-template-columns: 1fr; }
}
} /* end @layer legacy (was auto-closed at EOF — breaks if the file is ever bundled) */
