/* ==========================================================================
   BrandCop — console & results components
   Builds on style.css. Strict-CSP friendly: no inline styles; dynamic values
   (progress %, swatch colours, count targets) come in via CSS custom properties.
   ========================================================================== */

/* ---------- console shell ---------- */
.console-body { padding: 14px 0 32px; }
.panel-stack { display: flex; flex-direction: column; gap: 22px; }
.section-title { font-size: 26px; margin-bottom: 4px; }
.section-lede { color: var(--muted); font-size: 15px; max-width: 60ch; }

/* breadcrumb-ish context bar */
.context-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.context-bar .crumb { color: var(--muted); font-size: 13.5px; display: inline-flex; gap: 8px; align-items: center; }
.context-bar .crumb a { color: var(--muted); }
.context-bar .crumb a:hover { color: var(--ink); }
.context-bar .sep { color: var(--hairline-strong); }

/* ====================== LOGIN GATE ====================== */
.gate {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 24px;
  background: rgba(245,245,247,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.gate-card {
  width: 100%; max-width: 380px; background: var(--canvas);
  border: 1px solid var(--hairline); border-radius: 20px; box-shadow: var(--shadow-3);
  padding: 30px 28px 26px; animation: gate-in .32s cubic-bezier(.22,.61,.36,1);
}
@keyframes gate-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.gate-card .mark { height: 40px; width: auto; max-width: 100%; margin-bottom: 18px; }
.gate-card h1 { font-size: 22px; margin-bottom: 6px; }
.gate-card .lede { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.gate-card .field { margin-bottom: 14px; }
.gate-card .btn { width: 100%; margin-top: 6px; }
.gate-foot { margin-top: 18px; font-size: 12.5px; color: var(--faint); text-align: center; }

/* ====================== WIZARD ====================== */
.wizard-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--radius-wizard); box-shadow: var(--shadow-2);
  overflow: hidden; min-width: 0; display: grid;
  max-height: calc(100vh - 112px);
}
.wizard-grid { display: grid; grid-template-columns: 248px 1fr; min-width: 0; min-height: 0; max-height: inherit; }
.wizard-grid > * { min-width: 0; }
.wizard-grid > aside { display: flex; min-width: 0; }
.wizard-grid > div { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

/* stepper rail */
.stepper {
  flex: 1; border-right: 1px solid var(--hairline); padding: 22px 22px;
  background: linear-gradient(180deg, var(--canvas), var(--parchment));
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.stepper .rail-head { margin-bottom: 14px; }
.stepper .rail-head .eyebrow { margin-bottom: 6px; }
.stepper .rail-head h2 { font-size: 19px; }
.stepper li {
  display: flex; gap: 13px; align-items: flex-start; padding: 10px 12px;
  border-radius: 12px; cursor: pointer; transition: background .14s;
}
.stepper li:hover { background: var(--parchment-2); }
.stepper li[aria-current="step"] { background: var(--canvas); box-shadow: var(--shadow-1); }
.stepper .dot {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
  background: var(--parchment-2); color: var(--muted); border: 1px solid var(--hairline-strong);
  transition: background .16s, color .16s, border-color .16s;
}
.stepper li[aria-current="step"] .dot { background: var(--accent); color: #fff; border-color: var(--accent); }
.stepper li.done .dot { background: var(--ok-dim); color: var(--ok); border-color: var(--ok-line); }
.stepper li > span { display: flex; flex-direction: column; }
.stepper .s-label { display: block; font-size: 14px; font-weight: 600; }
.stepper .s-meta { display: block; font-size: 12px; color: var(--faint); margin-top: 1px; }
.stepper li[aria-current="step"] .s-label { color: var(--ink); }
.stepper li:not([aria-current="step"]) .s-label { color: var(--muted); }

/* step bodies */
.wizard-main {
  padding: 20px 36px 18px; min-height: clamp(330px, calc(100vh - 315px), 410px);
  display: flex; flex-direction: column; min-width: 0; overflow-y: auto; scrollbar-gutter: stable;
  position: relative;
}
.wizard-main::before {
  content: ""; position: absolute; left: 36px; right: 36px; top: 11px; height: 2px;
  pointer-events: none; opacity: 0; z-index: 2; transform-origin: left center;
  background: linear-gradient(90deg, transparent, var(--accent), var(--ink), transparent);
}
.wizard-main.brandcop-forward::before { animation: brandcop-route .92s cubic-bezier(.22,.61,.36,1) both; }
.wizard-main.brandcop-back::before { animation: brandcop-route-back .82s cubic-bezier(.22,.61,.36,1) both; }
.step { display: none; flex: 1; min-width: 0; }
.step.active { display: flex; flex-direction: column; animation: step-in .34s ease; }
@keyframes step-in { from { opacity: .72; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@keyframes brandcop-route {
  0% { opacity: 0; transform: scaleX(.04) translateY(-4px); }
  22% { opacity: 1; }
  74% { opacity: .9; }
  100% { opacity: 0; transform: scaleX(1) translateY(0); }
}
@keyframes brandcop-route-back {
  0% { opacity: 0; transform: scaleX(.04) translateY(-4px); transform-origin: right center; }
  24% { opacity: 1; }
  100% { opacity: 0; transform: scaleX(1) translateY(0); transform-origin: right center; }
}
.step-head { margin-bottom: 12px; }
.step-head .eyebrow { margin-bottom: 6px; }
.step-head h2 { font-size: 25px; }
.step-head p { color: var(--muted); margin-top: 6px; max-width: 56ch; }
.step-body { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.compact-step .step-head { margin-bottom: 10px; }
.compact-step .step-body { gap: 10px; }
.field-grid { display: grid; gap: 18px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.field-grid.three { grid-template-columns: minmax(0, 1fr) minmax(130px, 160px) auto; align-items: end; }
.field-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; min-width: 0;
}
.compact-fields { gap: 14px; }
.guideline-flow {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.guideline-source {
  display: grid; grid-template-columns: minmax(210px, .42fr) minmax(0, 1fr);
  gap: 18px; align-items: start;
  padding: 14px 16px; border: 1px solid var(--hairline); border-radius: var(--radius-card);
  background: var(--canvas);
}
.guideline-source-copy { display: flex; flex-direction: column; gap: 4px; align-self: center; }
.guideline-source-copy h3 { font-size: 18px; line-height: 1.2; font-weight: 650; }
.guideline-source-copy p { max-width: 36ch; color: var(--muted); font-size: 13px; line-height: 1.42; }
.guideline-source-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.guideline-source .field { gap: 6px; }
.guideline-source .field-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.guideline-source .input {
  min-height: 48px; padding: 10px 12px; font-size: 15px;
}
.source-status {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 24px; padding: 0 9px; border-radius: var(--radius-pill);
  border: 1px solid var(--hairline); background: var(--parchment);
  color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap;
}
.source-status.is-complete {
  color: #0a7f4f; background: rgba(10,127,79,.08); border-color: rgba(10,127,79,.22);
}
.website-palette {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border: 1px solid var(--hairline); border-radius: var(--radius-input);
  background: var(--parchment);
}
.website-palette-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.website-palette-head .label,
.website-palette-head .hint { display: block; }
.website-palette-head .label { color: var(--ink); font-size: 13px; font-weight: 650; }
.website-palette-head .hint { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.source-status.is-complete::before,
.drawer-status::before {
  content: ""; width: 7px; height: 4px; border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-top: -1px;
}
.guide-kicker {
  display: block; color: var(--faint); font-size: 11px; font-weight: 700;
  line-height: 1; letter-spacing: 0; text-transform: uppercase;
}
.guideline-flow .textarea {
  min-height: 104px; padding: 11px 12px; font-size: 14px; line-height: 1.45;
}
.guideline-flow .input {
  min-height: 44px; padding: 10px 12px; font-size: 14px;
}
.upload-strip {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 10px; border: 1px solid var(--hairline); border-radius: var(--radius-input);
  background: var(--parchment);
}
.upload-strip .label,
.upload-strip .hint { display: block; }
.upload-strip .btn { min-height: 36px; padding: 0 12px; white-space: nowrap; }
.guideline-flow .pal-source {
  display: flex; flex-direction: column; align-items: stretch;
  padding: 0; border: 0; background: transparent; gap: 10px;
}
.guideline-flow .pal-source-copy { gap: 0; color: var(--muted); font-size: 12.5px; line-height: 1.38; }
.guideline-flow .pal-source-copy .ico { display: none; }
.guideline-flow .palette-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.guideline-flow .btn.detect-colours-btn,
.guideline-flow .pal-add { min-height: 38px; padding: 0 12px; flex: 0 0 auto; }
.guideline-flow .pal-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px; }
.guideline-flow .pal-row { min-height: 116px; padding: 8px; gap: 7px; }
.guideline-flow .pal-row::before { height: 56px; border-radius: 9px; }
.guideline-flow input.pal-swatch { left: 8px; right: 8px; top: 8px; width: auto; height: 56px; }
.guideline-flow .pal-row .hex { padding: 7px 8px; font-size: 12px; }
.guideline-flow .pal-row .role { position: static; font-size: 10px; }
.guideline-flow .pal-empty { padding: 11px 12px; }
.guideline-drawers { display: flex; flex-direction: column; gap: 6px; }
.guideline-drawer {
  border: 1px solid var(--hairline); border-radius: var(--radius-card);
  background: var(--canvas); overflow: hidden;
}
.guideline-drawer > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 54px; padding: 11px 14px; cursor: pointer; list-style: none;
}
.guideline-drawer > summary::-webkit-details-marker { display: none; }
.guideline-drawer > summary::after {
  content: "+"; display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--hairline-strong);
  font-size: 16px; line-height: 1; color: var(--ink); background: var(--canvas);
}
.guideline-drawer[open] > summary::after { content: "-"; }
.guideline-drawer summary > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guideline-drawer summary strong { font-size: 14px; line-height: 1.25; font-weight: 650; }
.guideline-drawer summary small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.drawer-status {
  display: none; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin-left: auto; border-radius: 50%;
  border: 1px solid rgba(10,127,79,.22); background: rgba(10,127,79,.08); color: #0a7f4f;
  flex: 0 0 auto;
}
.guideline-drawer.is-complete > summary .drawer-status { display: inline-flex; }
.website-palette.is-complete .drawer-status { display: inline-flex; }
.drawer-content {
  display: flex; flex-direction: column; gap: 12px;
  padding: 0 14px 14px; border-top: 1px solid var(--hairline); background: var(--parchment);
}
.drawer-content > .field:first-child { padding-top: 12px; }
.draft-strip {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 10px; border: 1px solid var(--hairline); border-radius: var(--radius-input);
  background: var(--canvas); margin-top: 12px;
}
.draft-strip .label,
.draft-strip .hint { display: block; }
.draft-strip .label { color: var(--ink); font-size: 13px; font-weight: 650; }
.draft-strip .hint { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.draft-strip .btn { min-height: 36px; padding: 0 12px; white-space: nowrap; }
.drawer-content > .draft-strip:first-child + .field { padding-top: 0; }
.rights-watch {
  background: var(--parchment);
}
.rights-watch .textarea { min-height: 92px; background: var(--canvas); }
.rights-economics {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 12px;
}
.rights-empty,
.rights-license-card {
  border: 1px solid var(--hairline); border-radius: var(--radius-card);
  background: var(--canvas); padding: 12px;
}
.rights-empty {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
}
.rights-empty strong,
.rights-license-head strong { display: block; font-size: 13.5px; line-height: 1.25; }
.rights-empty span,
.rights-license-head span,
.rights-exposure-preview { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.rights-license-card { display: flex; flex-direction: column; gap: 10px; }
.rights-license-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.rights-license-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.rights-license-grid .field { gap: 5px; }
.rights-license-grid label { font-size: 12px; }
.rights-license-grid .input,
.rights-license-grid .select {
  min-height: 38px; height: 38px; padding: 8px 10px; font-size: 13px; background: var(--canvas);
}
.rights-license-grid .wide { grid-column: span 2; }
.rights-exposure-preview {
  padding: 8px 10px; border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-input); background: var(--parchment);
}
.watchlist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.watchlist-row .btn { min-height: 36px; padding: 0 12px; white-space: nowrap; }

/* wizard footer */
.wizard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 36px; border-top: 1px solid var(--hairline); background: var(--parchment);
}
.wizard-foot .est {
  display: flex; align-items: baseline; gap: 9px; font-size: 13.5px; color: var(--muted);
}
.wizard-foot .est strong { font-size: 17px; font-family: var(--display); color: var(--ink); font-weight: 600; }
.wizard-foot .est .tick { color: var(--ok); }

/* "or" divider */
.or-split { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 12.5px; }
.or-split::before, .or-split::after { content: ""; height: 1px; background: var(--hairline); flex: 1; }

/* dropzone */
.dropzone {
  border: 1.5px dashed var(--hairline-strong); border-radius: var(--radius-card); padding: 24px;
  text-align: left; background: var(--canvas); transition: border-color .14s, background .14s, box-shadow .14s; cursor: pointer;
  display: grid; grid-template-columns: 42px 1fr; gap: 4px 16px; align-items: center;
}
.dropzone:hover, .dropzone.drag { border-color: var(--ink); background: var(--parchment); box-shadow: var(--shadow-1); }
.dropzone:has(input:focus-visible) { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.dropzone .ico { width: 28px; height: 28px; color: var(--accent); grid-row: span 2; justify-self: center; }
.dropzone .dz-title { color: var(--ink); font-weight: 600; }
.dropzone .faint { font-size: 13px; }

/* file pills */
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-pill {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--parchment); border: 1px solid var(--hairline); border-radius: 10px; font-size: 13.5px;
}
.file-pill .ico { width: 16px; height: 16px; color: var(--muted); flex: 0 0 auto; }
.file-pill .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pill .sz { color: var(--faint); font-size: 12px; }

/* remembered website note (req 8.3) */
.remember-note {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px;
  background: var(--ok-dim); border: 1px solid var(--ok-line); border-radius: 12px;
}
.remember-note .ico { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.remember-note p { font-size: 13px; color: var(--ink); }
.remember-note .src { color: var(--accent); font-weight: 600; }
.remember-note[data-warn] { background: var(--high-dim); border-color: var(--high-line); }
.remember-note[data-warn] .ico { color: var(--error); }

/* ---------- palette picker ---------- */
.palette { display: flex; flex-direction: column; gap: 12px; }
.pal-source {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-card);
  background: var(--parchment); font-size: 13px; color: var(--muted);
}
.pal-source-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pal-source-copy .ico { flex: 0 0 auto; width: 18px; height: 18px; color: var(--ink); }
.palette-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.btn.detect-colours-btn {
  flex: 0 0 auto; border-color: var(--ink); background: var(--ink); color: var(--canvas);
  font-weight: 700; box-shadow: var(--shadow-1); min-height: 38px; gap: 8px;
}
.btn.detect-colours-btn .ico { width: 15px; height: 15px; }
.btn.detect-colours-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--canvas); }
.pal-rows { display: flex; flex-direction: column; gap: 8px; }
.pal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px;
}
.pal-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 8px;
  min-height: 128px; padding: 8px;
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
}
.pal-row::before {
  content: ""; grid-column: 1 / -1; height: 64px; border-radius: 10px;
  border: 1px solid var(--hairline-strong); background: var(--pal, #888888);
}
input.pal-swatch {
  -webkit-appearance: none; appearance: none; position: absolute; left: 8px; right: 8px; top: 8px;
  width: auto; height: 64px; border: 0; padding: 0; opacity: 0; cursor: pointer;
}
input.pal-swatch::-webkit-color-swatch-wrapper { padding: 0; }
input.pal-swatch::-webkit-color-swatch { border: none; border-radius: 7px; }
input.pal-swatch::-moz-color-swatch { border: none; border-radius: 7px; }
input.pal-swatch:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.pal-row:has(input.pal-swatch:focus-visible)::before { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.pal-row .hex {
  grid-column: 1 / -1; justify-self: stretch; width: 100%; min-width: 0;
  border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--parchment); padding: 8px 9px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--ink);
}
.pal-row .hex:focus { outline: 2px solid var(--accent-focus); outline-offset: 1px; }
.pal-row .role {
  grid-column: 1 / -1; font-size: 11.5px; line-height: 1; color: var(--faint);
  text-transform: uppercase; letter-spacing: .02em; min-height: 12px;
}
.pal-x {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--hairline); border-radius: 8px; background: rgba(255,255,255,.92);
  color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer;
}
.pal-x:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-dim); }
.pal-empty {
  grid-column: 1 / -1; padding: 10px 12px; border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-card); color: var(--muted); font-size: 13px; background: var(--canvas);
}
.pal-add { align-self: flex-start; }

.brand-pal-panel {
  display: grid; gap: 12px; padding: 14px; border: 1px solid var(--hairline);
  border-radius: var(--radius-card); background: var(--parchment);
}
.brand-pal-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--hairline);
}
.brand-pal-tools strong { display: block; font-size: 14px; line-height: 1.3; }
.brand-pal-tools span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.brand-pal-tools .btn { flex: 0 0 auto; }
.brand-pal-add {
  display: grid; grid-template-columns: 48px minmax(160px, 1fr) auto; gap: 10px; align-items: center;
}
.brand-pal-add input[type="color"] {
  -webkit-appearance: none; appearance: none; width: 48px; height: 42px;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-input);
  padding: 3px; background: var(--canvas); cursor: pointer;
}
.brand-pal-add input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.brand-pal-add input[type="color"]::-webkit-color-swatch { border: none; border-radius: 6px; }
.brand-pal-add input[type="color"]::-moz-color-swatch { border: none; border-radius: 6px; }
.brand-pal-panel .bc-swatches { min-height: 28px; gap: 7px; }

/* ---------- timeframe / scheduling (req 8.2) ---------- */
.mode-toggle { margin: 4px 0 12px; }
.window-group {
  display: grid; gap: 16px; padding: 18px; border: 1px solid var(--hairline);
  border-radius: 14px; background: var(--parchment);
}
.window-group.two { grid-template-columns: 1fr 1fr; }
.window-group .glabel { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.schedule-block { display: flex; flex-direction: column; gap: 16px; }
.schedule-card {
  border: 1px solid var(--hairline); border-radius: 14px; padding: 18px; background: var(--canvas);
  display: flex; flex-direction: column; gap: 16px;
}
.cadence-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cadence-opt {
  position: relative; padding: 14px 12px; border: 1px solid var(--hairline-strong);
  border-radius: 12px; cursor: pointer; text-align: center; background: var(--parchment);
  transition: border-color .14s, background .14s;
}
.cadence-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cadence-opt .ct { display: block; font-size: 14px; font-weight: 600; }
.cadence-opt .cm { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.cadence-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); }
.cadence-opt:has(input:checked) .ct { color: var(--accent); }
.cadence-opt:has(input:focus-visible) { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.schedule-summary {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px;
  background: var(--low-dim); border: 1px solid var(--low-line); border-radius: 12px; font-size: 13px;
}
.schedule-summary .ico { width: 17px; height: 17px; color: var(--low); flex: 0 0 auto; margin-top: 1px; }

/* ---------- review summary ---------- */
.launch-topline {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .7fr);
  gap: 14px; align-items: stretch;
}
.launch-setting,
.launch-cost {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px; border: 1px solid var(--hairline); border-radius: var(--radius-card);
  background: var(--parchment); box-shadow: var(--shadow-1);
}
.launch-setting .input {
  width: 88px; flex: 0 0 auto; text-align: center; font-family: var(--display);
  font-size: 22px; font-weight: 700;
}
.launch-cost { background: var(--canvas); color: var(--ink); }
.launch-cost-amount {
  font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1;
  letter-spacing: 0;
}

.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.review-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px; border: 1px solid var(--hairline); border-radius: var(--radius-card);
  background: var(--canvas); box-shadow: var(--shadow-1);
}
.review-card.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 16px; background: var(--parchment);
}
.review-card.wide { gap: 10px; }
.palette-preview {
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, var(--canvas), var(--parchment));
}
.palette-preview-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.palette-preview .rv { color: var(--faint); font-size: 12.5px; font-weight: 650; }
.palette-swatches { gap: 10px; }
.palette-preview .review-swatches { gap: 10px; min-height: 38px; }
.palette-preview .sw {
  width: 34px; height: 34px; border-radius: 11px;
  border: 1px solid rgba(34,34,34,.16);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), 0 6px 18px rgba(0,0,0,.08);
}
.review-card .rk {
  display: block; font-size: 12px; font-weight: 700; color: var(--faint);
  letter-spacing: 0;
}
.review-card strong {
  display: block; color: var(--ink); font-size: 16px; line-height: 1.28; font-weight: 700;
}
.review-card.hero strong { font-size: 22px; }
.review-card .rv { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.review-pill,
.review-chip {
  display: inline-flex; align-items: center; min-height: 30px;
  padding: 5px 11px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-pill);
  background: var(--canvas); color: var(--ink); font-size: 13px; font-weight: 600;
}
.review-pill { white-space: nowrap; }
.review-chip.muted { color: var(--muted); font-weight: 500; background: var(--parchment); }
.review-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.review-chips .sw-strip { min-height: 30px; }
.review-chips .sw { width: 22px; height: 22px; border-radius: 7px; }

/* ====================== BRAND LIBRARY ====================== */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; align-items: start; }
.brand-card {
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: 18px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .16s, transform .08s;
}
.brand-card:hover { box-shadow: var(--shadow-2); }
.brand-card .bc-head { display: flex; align-items: center; gap: 12px; }
.brand-card .bc-title { flex: 1; min-width: 0; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto;
  background: var(--parchment-2); display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--muted);
  border: 1px solid var(--hairline);
}
.brand-card h3 { font-size: 16px; }
.brand-card .web {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand-card .web:hover { color: var(--ink); }
.brand-card .web.warn { color: var(--high); }
.brand-card .web .ico { width: 13px; height: 13px; flex: 0 0 auto; }
.bc-toggle {
  flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--hairline); background: var(--canvas); border-radius: var(--radius-pill);
  color: var(--muted); cursor: pointer; transition: background .12s, border-color .12s;
}
.bc-toggle:hover { background: var(--parchment); border-color: var(--hairline-strong); }
.bc-toggle .chev { width: 14px; height: 14px; transition: transform .18s ease; }
.brand-card.expanded .bc-toggle .chev { transform: rotate(180deg); }
.bc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.bc-meta b { color: var(--ink); font-weight: 600; }
.bc-meta .sep { color: var(--hairline-strong); }
.bc-status { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-weight: 500; }
.bc-status svg { width: 13px; height: 13px; flex: 0 0 auto; }
.bc-status.ok { color: var(--muted); }
.bc-status.warn { color: var(--high); }
.bc-details { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.brand-card:not(.expanded) .bc-details { display: none; }
.bc-swatches { display: flex; align-items: center; gap: 8px; }
.bc-swatches .sw { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--hairline-strong); background-color: var(--sw, #ccc); flex: 0 0 auto; }
.bc-guide { font-size: 12px; color: var(--muted); margin-left: 4px; }
.bc-note { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.brand-card .bc-foot { display: flex; gap: 6px; align-items: center; margin-top: auto; flex-wrap: wrap; }
/* equal-height cards even with less content (footer pins to bottom) */
.brand-card { min-height: 142px; }
/* no-website state — grey CTA that makes the missing info obvious */
.btn.needs-info { background: var(--parchment-2); color: var(--body); border-color: var(--hairline-strong); font-weight: 500; }
.btn.needs-info:hover { background: #e6e6e6; border-color: var(--hairline-strong); }
.brand-card.new {
  border-style: dashed; border-color: var(--hairline-strong); background: var(--parchment);
  align-items: center; justify-content: center; text-align: center; cursor: pointer; min-height: 168px;
}
.brand-card.new:hover { border-color: var(--accent); background: var(--accent-dim); }
.brand-card.new .ico { width: 28px; height: 28px; color: var(--accent); }

.region-card {
  display: grid; gap: 14px; padding: 18px;
  border: 1px solid var(--hairline); border-radius: var(--radius-card);
  background: var(--canvas); box-shadow: var(--shadow-1);
  min-width: 0; max-width: 100%;
}
.region-card h3 { font-size: 18px; line-height: 1.25; margin-top: 5px; }
.region-card p { color: var(--muted); max-width: 66ch; font-size: 15px; line-height: 1.58; margin-top: 4px; }
.region-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.region-head > * { min-width: 0; }
.region-head .chip { flex: 0 0 auto; margin-top: 2px; }
.region-head .btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: 18px;
}
.region-card .input, .region-card .select, .region-card .btn { min-width: 0; }
.page-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .9fr) minmax(112px, .35fr);
  gap: 12px;
  align-items: end;
}
.page-search-controls .field { gap: 6px; }
.page-search-controls .input,
.page-search-controls .select {
  min-height: 46px;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.25;
  background-color: var(--canvas);
}
.page-result-row .place-address {
  color: var(--ink);
}
.region-searchbar {
  display: grid; grid-template-columns: 112px max-content;
  justify-content: end;
  gap: 10px; align-items: end; padding: 10px 12px;
  border: 1px solid var(--hairline); border-radius: 14px; background: var(--parchment);
}
.region-searchbar .field { gap: 6px; }
.region-searchbar .input, .region-searchbar .select { height: 44px; background-color: var(--canvas); }
.region-action { align-self: end; }
.region-action .btn { width: auto; min-width: 188px; min-height: 44px; padding-inline: 18px; }
.region-picker {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; align-items: stretch;
}
.region-picker fieldset {
  border: 1px solid var(--hairline); border-radius: 14px; padding: 14px;
  margin: 0; min-width: 0; background: var(--parchment);
}
.region-picker legend {
  padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.brandcop-scan {
  display: grid; grid-template-columns: 136px 1fr; gap: 14px; align-items: center;
  padding: 13px 15px; border: 1px solid var(--hairline); border-radius: 12px;
  background: var(--parchment);
}
.brandcop-map {
  position: relative; height: 46px; border-radius: 10px; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 24%, var(--hairline) 24% 25%, transparent 25% 49%, var(--hairline) 49% 50%, transparent 50% 74%, var(--hairline) 74% 75%, transparent 75%),
    linear-gradient(0deg, transparent 0 48%, var(--hairline) 48% 50%, transparent 50%),
    var(--canvas);
}
.brandcop-line {
  position: absolute; left: -40%; top: 50%; width: 58%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: brandcop-sweep 1.45s cubic-bezier(.22,.61,.36,1) infinite;
}
.brandcop-dot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--accent); box-shadow: 0 0 0 6px var(--accent-dim);
  animation: pulse 1.45s ease-in-out infinite;
}
@keyframes brandcop-sweep {
  from { transform: translateX(0); }
  to { transform: translateX(260%); }
}
.brandcop-scan strong { display: block; font-size: 14px; }
.brandcop-scan p { font-size: 13px; margin-top: 2px; }
.places-review { display: flex; flex-direction: column; gap: 10px; }
.region-review-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--parchment);
}
.region-review-count {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.region-review-count strong {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
}
.region-review-count span {
  color: var(--body);
  font-size: 15px;
  font-weight: 650;
}
.region-review-summary .btn {
  min-height: 44px;
  padding-inline: 20px;
}
.region-empty {
  padding: 14px 15px; border: 1px dashed var(--hairline-strong);
  border-radius: 12px; color: var(--muted); font-size: 13.5px; background: var(--canvas);
}
.places-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; padding: 13px 15px; border: 1px solid var(--hairline);
  border-radius: 12px; background: var(--parchment);
}
.places-summary-ready {
  align-items: flex-start; background: linear-gradient(180deg, var(--canvas), var(--parchment));
  border-color: var(--hairline-strong);
}
.places-summary .ps-kicker {
  display: block; color: var(--muted); font-size: 11px; line-height: 1; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 7px;
}
.places-summary .ps-main { font-size: 14px; font-weight: 600; }
.places-summary-ready .ps-main {
  font-family: var(--display); font-size: 28px; line-height: 1; color: var(--ink);
}
.places-summary-ready .ps-main span:last-child {
  font-family: var(--text); font-size: 14px; font-weight: 650; color: var(--body);
}
.places-summary .ps-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.places-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.place-list-panel {
  border: 1px solid var(--hairline); border-radius: 12px; background: var(--parchment);
  padding: 10px; display: flex; flex-direction: column; gap: 10px;
}
.place-list-panel[hidden] { display: none; }
.place-list-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--muted); font-size: 12.5px;
}
.place-list-tools > div { display: flex; gap: 8px; flex-wrap: wrap; }
.place-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; padding-right: 2px; }
.place-row {
  display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: start;
  padding: 12px 13px; border: 1px solid var(--hairline); border-radius: 12px;
  background: var(--canvas); cursor: pointer; transition: border-color .12s, background .12s;
}
.place-row:hover { border-color: var(--hairline-strong); background: var(--parchment); }
.place-row input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 2px; }
.place-row:has(input:checked) { border-color: var(--hairline-strong); }
.place-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.place-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.place-address { font-size: 12.8px; color: var(--muted); overflow-wrap: anywhere; }
.place-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.place-warning { color: var(--high); }
.place-row .chip { align-self: start; }
.confidence-low { background: var(--parchment); color: var(--muted); border-color: var(--hairline); }
.confidence-medium { background: var(--parchment); color: var(--ink); border-color: var(--hairline-strong); }
.confidence-high { background: var(--accent-dim); color: var(--accent); border-color: rgba(255,75,38,.20); }

/* assets-extracted strip (set-once visibility, req 8.3) */
.asset-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.asset-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px;
  background: var(--parchment); border: 1px solid var(--hairline); font-size: 11.5px; color: var(--muted);
}
.asset-pill .sw { width: 12px; height: 12px; border-radius: 3px; background: var(--sw, #ccc); border: 1px solid var(--hairline-strong); }
.asset-pill .ico { width: 12px; height: 12px; }

/* ====================== RUNS LIST ====================== */
.reports-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
}
.reports-toolbar .input { background: var(--canvas); }
.report-count {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.runs-section { margin-bottom: 26px; }
.runs-section > .rs-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.runs-section > .rs-head h3 { font-size: 15px; }
.runs-section > .rs-head .count { font-size: 12.5px; color: var(--faint); }
.runs-list { display: flex; flex-direction: column; gap: 10px; }

.run {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: 18px 20px; box-shadow: none;
  display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center;
  transition: box-shadow .16s, border-color .16s;
}
.run:hover { box-shadow: var(--shadow-2); }
.run:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.run.s-failed { border-color: var(--high-line); }
.run .run-main { min-width: 0; }
.run .run-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.run .run-title h4 { font-size: 16px; font-weight: 600; }
.run .run-sub { font-size: 13px; color: var(--muted); margin-top: 5px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.run .run-sub .who { display: inline-flex; align-items: center; gap: 5px; }
.run .run-progress { margin-top: 11px; max-width: 420px; }
.run .run-progress .pmeta { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-bottom: 5px; }
.run .run-actions { display: flex; gap: 6px; align-items: center; justify-self: end; }
.run .run-actions .btn.primary, .run .run-actions .btn.ghost { min-width: 156px; }

/* scheduled / recurring run row variant */
.run .recur-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.run .recur-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--low-dim); border: 1px solid var(--low-line); color: var(--low); font-size: 12px; font-weight: 600;
}
.recur-children { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.recur-children .rc {
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted);
  padding: 5px 0; border-top: 1px dashed var(--hairline);
}

/* fail banner — quiet, design-system aligned (no loud red fill) */
.fail-banner {
  grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 15px; background: var(--parchment); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); font-size: 13.5px;
}
.fail-banner .ico { width: 18px; height: 18px; color: var(--high); flex: 0 0 auto; margin-top: 1px; }
.fail-banner b { color: var(--ink); }

/* ====================== LIVE RUN DETAIL ====================== */
.detail-shell { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: stretch; }
.detail-shell > .card { min-width: 0; }
.live-card { padding: 22px; min-height: 380px; display: flex; flex-direction: column; }
.live-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.live-head .eyebrow { margin-bottom: 4px; }
.live-head h2 { font-size: 24px; line-height: 1.08; }
.live-head h2:focus { outline: none; }
.live-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* phase narrative (concealed backend) */
.phases { display: flex; flex-direction: column; gap: 2px; }
.phase { display: flex; gap: 12px; padding: 10px 2px; position: relative; }
.phase .pi {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; z-index: 1;
  display: grid; place-items: center; background: var(--parchment-2);
  border: 1px solid var(--hairline-strong); color: var(--muted);
}
.phase .pi svg { width: 15px; height: 15px; }
.phase::before {
  content: ""; position: absolute; left: 17px; top: 30px; bottom: -10px; width: 2px; background: var(--hairline);
}
.phase:last-child::before { display: none; }
.phase.done .pi { background: var(--ok-dim); color: var(--ok); border-color: var(--ok-line); }
.phase.active .pi { background: var(--accent); color: #fff; border-color: var(--accent); }
.phase.active .pi svg { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.phase .pbody { padding-top: 3px; }
.phase .pname { font-size: 14.5px; font-weight: 600; }
.phase.pending .pname { color: var(--faint); }
.phase .pnarr { font-size: 13px; color: var(--muted); margin-top: 2px; }
.phase.active .pnarr { color: var(--accent); }

/* details disclosure (sanitized) */
.details-toggle { margin-top: 18px; }
.narrative-log {
  margin-top: 12px; background: var(--parchment); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 14px 16px; font-size: 13px; max-height: 220px; overflow: auto;
  display: flex; flex-direction: column; gap: 7px;
}
.narrative-log .ln { display: flex; gap: 10px; color: var(--muted); }
.narrative-log .ln time { font-family: var(--mono); font-size: 11.5px; color: var(--faint); flex: 0 0 auto; }

/* waiting side card */
.wait-card { padding: 22px; min-height: 380px; display: flex; flex-direction: column; gap: 16px; }
.wait-card .est-line { display: flex; align-items: baseline; justify-content: space-between; }
.wait-card .est-line .big { font-family: var(--display); font-size: 28px; font-weight: 600; }
.detail-progress-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 8px; font-size: 12.5px; color: var(--muted);
}
.detail-progress-head span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.wait-card .detail-progress { height: 8px; background: var(--parchment-2); }
.wait-card .detail-progress .progress-fill { background: linear-gradient(90deg, var(--accent), var(--accent-active)); }
.mini-stat { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 13.5px; }
.mini-stat:last-child { border-bottom: 0; }
.mini-stat .k { color: var(--muted); }
.mini-stat .v { font-weight: 600; }

/* waiting-room game — full-width, intentionally quieter than the run state */
.run-game-card {
  grid-column: 1 / -1; padding: 18px; display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  gap: 18px; align-items: stretch; background: var(--parchment);
}
.run-game-card[hidden] { display: none; }
.run-game-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 2px 4px;
}
.run-game-kicker {
  color: var(--accent); font-size: 12px; font-weight: 700;
  letter-spacing: 0; text-transform: none;
}
.run-game-copy h3 { font-size: 20px; }
.run-game-copy p { color: var(--muted); font-size: 13.5px; max-width: 48ch; }
.run-game-host { min-width: 0; }
.run-game-host .flappy { margin: 0; }
.run-game-host .flappy-stage { height: 220px; border-radius: var(--radius-card); }

/* ====================== RESULTS — SINGLE ====================== */
.results-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.results-head h2 { font-size: 28px; }
.results-head .rmeta { color: var(--muted); font-size: 14px; margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }

/* collapsed audit detail banners */
.audit-details { padding: 0; overflow: hidden; }
.audit-details > summary {
  cursor: pointer; list-style: none; padding: 15px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 14px; font-weight: 650; color: var(--ink);
}
.audit-details > summary::-webkit-details-marker { display: none; }
.audit-details > summary::after { content: "+"; font-weight: 700; }
.audit-details[open] > summary::after { content: "-"; }
.audit-details .banner-row { padding: 0 18px 18px; margin: 0; }
.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--shadow-1);
  min-width: 0;
}
.banner .ico { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.banner .bt { font-size: 13.5px; min-width: 0; }
.banner .bt b { font-weight: 600; }
.banner-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 12px; margin-bottom: 22px; }
.banner-detail { margin-top: 6px; color: var(--muted); }
.banner-detail summary {
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); font-weight: 600; list-style: none;
}
.banner-detail summary::-webkit-details-marker { display: none; }
.banner-detail summary::after { content: "+"; color: var(--ink); font-weight: 700; }
.banner-detail[open] summary::after { content: "-"; }
.banner-detail div { margin-top: 5px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }

/* count tiles */
.exec-readout {
  border: 1px solid var(--hairline); border-radius: var(--radius-card);
  background: var(--canvas); box-shadow: var(--shadow-1);
  padding: 20px; margin-bottom: 14px;
  display: block;
}
.exec-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.exec-readout .exec-kicker {
  display: block; font-size: 11px; line-height: 1; color: var(--muted);
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 7px;
}
.exec-readout h3 { font-size: 21px; line-height: 1.25; font-weight: 650; max-width: 62ch; }
.exec-readout p { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 72ch; }
.exec-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.exec-metrics { display: none; }
.exec-metric {
  border: 1px solid var(--hairline); border-radius: var(--radius-input);
  padding: 11px 12px; background: var(--parchment);
}
.exec-metric strong {
  display: block; font-family: var(--display); font-size: 22px; line-height: 1.08; font-weight: 650;
  overflow-wrap: anywhere;
}
.exec-metric span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.region-heat {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: -8px 0 18px;
}
.heat-chip {
  min-height: 31px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  background: var(--canvas); color: var(--body); padding: 5px 12px;
  font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer;
  transition: background .14s, border-color .14s, color .14s, transform .08s;
}
.heat-chip:hover { background: var(--parchment); border-color: var(--hairline-strong); }
.heat-chip:active { transform: translateY(1px); }
.heat-chip:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.heat-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.heat-chip.has-risk { border-color: var(--copy-line); background: var(--copy-dim); color: var(--ink); }
.heat-chip.has-high { border-color: var(--high-line); background: var(--high-dim); }
.heat-chip.is-active.has-risk,
.heat-chip.is-active.has-high { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.heat-chip .dot { display: none; }
.counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--parchment);
  box-shadow: var(--shadow-1);
  margin-bottom: 18px;
}
.count-tile {
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius-input);
  padding: 12px 13px; box-shadow: none; position: relative; overflow: hidden;
  display: block; width: 100%; text-align: left; cursor: pointer; color: inherit; font: inherit; appearance: none;
  transition: border-color .14s, box-shadow .14s, transform .08s, background .14s;
}
.count-tile:hover { border-color: var(--hairline-strong); box-shadow: var(--shadow-2); background: var(--parchment); }
.count-tile:active { transform: translateY(1px); }
.count-tile:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 3px; }
.count-tile .num { font-family: var(--display); font-size: 27px; font-weight: 650; line-height: 1; letter-spacing: 0; }
.count-tile .lbl { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 500; }
.count-tile.t-high .num,
.count-tile.t-med .num,
.count-tile.t-ai .num,
.count-tile.t-copy .num,
.count-tile.t-ok .num { color: var(--ink); }
.count-tile .spark { position: absolute; right: 14px; top: 16px; }

/* filters */
.filters {
  display: flex;
  gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 0; background: transparent; border: 0;
  border-radius: 0; box-shadow: none; position: static; margin: 0 0 18px;
  width: fit-content;
  max-width: 100%;
}
.filters .select,
.filters .input {
  width: 100%; min-width: 156px; height: 36px; padding: 8px 36px 8px 12px; flex: 0 1 190px;
  font-size: 13px; line-height: 1.2; font-weight: 650; background-color: var(--canvas);
  border-radius: var(--radius-input);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.filters .select { padding-right: 34px; }

/* result grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
  scroll-margin-top: 96px;
}
.grid:focus { outline: none; }
.card.result {
  overflow: hidden; padding: 0; transition: box-shadow .16s, transform .08s, border-color .16s;
  display: flex; flex-direction: column; width: 100%; height: 100%;
  margin: 0;
}
.card.result:hover { box-shadow: var(--shadow-2); }
.card.result.sev-high:hover { border-color: var(--high-line); }
.card.result.sev-med:hover  { border-color: var(--med-line); }
.card.result.sev-low:hover  { border-color: var(--low-line); }
.card.result.sev-ok:hover   { border-color: var(--ok-line); }
.card.result .thumb {
  display: block; width: 100%; border: 0; padding: 0; cursor: default;
  aspect-ratio: 16 / 9; background: var(--parchment-2); position: relative; overflow: hidden;
  background-image: var(--ph-stripe); background-size: 16px 16px;
}
.card.result .thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.card.result .thumb-btn { cursor: zoom-in; color: inherit; }
.card.result .thumb-btn img { transition: transform .16s ease; }
.card.result .thumb-btn:hover img { transform: scale(1.02); }
.card.result .thumb-btn:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: -2px; }
.thumb-zoom {
  position: absolute; right: 9px; bottom: 9px; padding: 4px 8px;
  border-radius: var(--radius-pill); background: rgba(255,255,255,.92);
  border: 1px solid var(--hairline); color: var(--ink); font-size: 11px; font-weight: 600;
  opacity: 0; transform: translateY(3px); transition: opacity .14s, transform .14s;
}
.thumb-btn:hover .thumb-zoom, .thumb-btn:focus-visible .thumb-zoom { opacity: 1; transform: none; }
:root { --ph-stripe: repeating-linear-gradient(45deg, #f2f2f2 0 8px, #ebebeb 8px 16px); }
.card.result .thumb .ph-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--faint);
}
.card.result .thumb .chips { display: none; }
.card.result .cbody { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card.result .signals {
  min-height: 28px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  overflow: visible; scrollbar-width: none;
}
.card.result .signals::-webkit-scrollbar { display: none; }
.card.result .chip {
  min-height: 24px; padding: 4px 9px; gap: 0; flex: 0 0 auto;
  font-size: 11.5px; font-weight: 650; background: var(--canvas);
  color: var(--ink); border-color: var(--hairline-strong);
}
.card.result .chip .dot { display: none; }
.card.result .chip-label {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card.result .chip.s-ai { border-color: var(--ai-line); background: var(--ai-dim); }
.card.result .chip.s-copy { border-color: var(--copy-line); background: var(--copy-dim); }
.card.result .chip.s-review,
.card.result .chip.s-med { background: var(--parchment); }
.card.result .chip.s-low,
.card.result .chip.s-ok { color: var(--muted); }
.card.result .chip[data-sev="high"] { border-color: var(--high-line); background: var(--high-dim); }
.card.result .chip[data-sev="medium"] { border-color: var(--med-line); background: var(--med-dim); }
.card.result .chip[data-sev="low"] { border-color: var(--low-line); background: var(--low-dim); }
.card.result .store {
  min-height: 38px; font-size: 15px; font-weight: 650; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card.result .finding {
  border-top: 1px solid var(--hairline); padding-top: 10px;
  display: flex; flex-direction: column; gap: 5px;
}
.card.result .finding-label {
  font-size: 11px; color: var(--muted); font-weight: 600; line-height: 1;
}
.card.result .reason-title {
  margin: 0; font-size: 13px; font-weight: 400; line-height: 1.48; color: var(--body);
  overflow-wrap: anywhere;
}
.card.result .why { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.card.result .cfoot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 10px; border-top: 1px solid var(--hairline);
}
.card.result .src-link {
  font-size: 12px; color: var(--muted); display: inline-flex; align-items: center;
  gap: 4px; font-weight: 600; text-decoration: none;
}
.card.result .src-link:hover { color: var(--ink); }
.card.result.marked-clean { border-color: var(--ok-line); }
.card.result.marked-clean .signals .chip:first-child { border-color: var(--ok-line); }
.card.result.moved-onbrand { animation: moved-onbrand 1.45s ease both; }
.card.result.spotlight-card { animation: result-spotlight 1.35s ease both; }
@keyframes moved-onbrand {
  0% { transform: translateY(0); box-shadow: var(--shadow-1); }
  28% { transform: translateY(-4px); border-color: var(--ok-line); box-shadow: 0 0 0 4px var(--ok-dim), var(--shadow-2); }
  100% { transform: translateY(0); box-shadow: var(--shadow-1); }
}
@keyframes result-spotlight {
  0% { box-shadow: var(--shadow-1); }
  24% { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(34,34,34,.11), var(--shadow-2); }
  100% { transform: none; box-shadow: var(--shadow-1); }
}
.card.clean-summary {
  padding: 18px; display: flex; flex-direction: column; gap: 10px; height: 100%; align-self: stretch;
  width: 100%; margin: 0;
  border-color: var(--ok-line); background: var(--canvas);
}
.card.clean-summary .num { font-family: var(--display); font-size: 38px; line-height: 1; font-weight: 700; }
.card.clean-summary p { color: var(--muted); font-size: 13.5px; }
.card.clean-summary button { align-self: flex-start; }

/* feedback block */
.feedback { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.feedback .fb-status { color: var(--muted); font-size: 11.5px; font-weight: 650; }
.feedback .fb-action {
  border: 1px solid var(--hairline); background: var(--canvas); color: var(--body);
  border-radius: var(--radius-input); padding: 6px 9px; font-size: 11.5px; font-weight: 650;
  cursor: pointer; line-height: 1.2; transition: background .14s, border-color .14s, color .14s;
}
.feedback .fb-action:hover { background: var(--parchment-2); border-color: var(--hairline-strong); }
.feedback .fb-action.clean { color: var(--ink); border-color: var(--hairline); }
.feedback .fb-action.undo { color: var(--body); border-color: var(--hairline); }

body.preview-open { overflow: hidden; }
.image-preview[hidden] { display: none; }
.image-preview {
  position: fixed; inset: 0; z-index: 180;
  display: grid; place-items: center; padding: 24px;
}
.image-preview-backdrop {
  position: absolute; inset: 0; background: rgba(34,34,34,.68);
}
.image-preview-panel {
  position: relative; z-index: 1; width: min(1080px, 100%); max-height: min(92vh, 920px);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); box-shadow: var(--shadow-3); overflow: hidden;
}
.image-preview-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border-bottom: 1px solid var(--hairline); background: var(--canvas);
}
.image-preview-head h2 { font-size: 17px; margin: 0; }
.image-preview-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.image-preview-frame {
  min-height: 0; display: grid; place-items: center; padding: 16px;
  background: var(--parchment-2); background-image: var(--ph-stripe); background-size: 16px 16px;
}
.image-preview-frame img {
  display: block; max-width: 100%; max-height: calc(92vh - 190px);
  width: auto; height: auto; object-fit: contain; border-radius: var(--radius-input);
  background: var(--canvas);
}
.image-preview-caption {
  margin: 0; padding: 14px 18px; border-top: 1px solid var(--hairline);
  color: var(--body); font-size: 13.5px; line-height: 1.5;
}
/* roster */
#roster-panel { scroll-margin-top: 96px; }
.roster-scroll { overflow-x: auto; }
.roster-table { width: 100%; border-collapse: collapse; }
.roster-table th, .roster-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--hairline); font-size: 13.5px; }
.roster-table th { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.roster-table tr:last-child td { border-bottom: 0; }
.roster-table td .store-nm { font-weight: 500; }
.roster-table tr[data-store] { cursor: pointer; transition: background .14s; }
.roster-table tr[data-store]:hover { background: var(--parchment); }
.roster-table tr[data-store]:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: -2px; }
.roster-table tr[data-store] .flagline { pointer-events: none; }

/* ====================== RESULTS — COMPARE ====================== */
.cmp-deltas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.delta-tile {
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: 20px; box-shadow: var(--shadow-1);
}
.delta-tile .dlabel { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.delta-tile .dvals { display: flex; align-items: baseline; gap: 12px; }
.delta-tile .dvals .from { font-size: 20px; color: var(--faint); font-family: var(--display); }
.delta-tile .dvals .arrow { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.delta-tile .dvals .to { font-size: 30px; font-weight: 600; font-family: var(--display); }
.delta-tag {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 14px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent;
  white-space: nowrap;
}
.delta-tag.better { background: var(--parchment); color: var(--ink); border-color: var(--hairline); }
.delta-tag.worse { background: var(--high-dim); color: var(--high); border-color: var(--high-line); }
.delta-tag.flat { background: var(--parchment); color: var(--muted); border-color: var(--hairline); }
.delta-tag svg { width: 13px; height: 13px; flex: 0 0 auto; }

.cmp-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cmp-col { display: flex; flex-direction: column; }
.cmp-col h3 { font-size: 16px; margin-bottom: 4px; text-transform: none; letter-spacing: 0; }
.cmp-col .cwin { font-size: 12.5px; color: var(--faint); margin-bottom: 14px; }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 980px) {
  .detail-shell { grid-template-columns: 1fr; }
  .counts { grid-template-columns: repeat(3, 1fr); }
  .filters {
    grid-template-columns: minmax(150px, 180px) minmax(190px, 250px) minmax(220px, 1fr);
  }
  .cmp-boards { grid-template-columns: 1fr; }
  .guideline-source { grid-template-columns: 1fr; }
  .launch-topline, .review-grid { grid-template-columns: 1fr; }
  .region-searchbar { grid-template-columns: 112px max-content; }
  .rights-license-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .wizard-card { display: block; max-height: none; overflow: hidden; }
  .wizard-grid { grid-template-columns: 1fr; }
  .stepper { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hairline); padding: 16px; gap: 8px; }
  .stepper .rail-head { display: none; }
  .stepper li { flex-direction: column; align-items: center; min-width: 84px; text-align: center; gap: 6px; }
  .stepper .s-meta { display: none; }
  .banner-row { grid-template-columns: 1fr; }
  .cmp-deltas { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .console-body > .wrap { padding: 0 12px; overflow-x: hidden; }
  .results-head { flex-direction: column; align-items: stretch; gap: 14px; }
  #results-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #results-actions .btn { width: 100%; min-width: 0; }
  .wizard-card { width: 100%; max-width: 100%; }
  .wizard-grid { width: 100%; max-width: 100%; overflow: hidden; }
  .stepper { width: 100%; max-width: 100%; }
  .step-head p { max-width: 100%; }
  .wizard-main { padding: 24px 20px; max-width: calc(100vw - 24px); }
  .step-body, .field, .input, .select, .textarea { max-width: calc(100vw - 64px); }
  .field .hint, .step-head p { overflow-wrap: anywhere; }
  .wizard-foot { padding: 16px 20px; flex-wrap: wrap; align-items: stretch; }
  .wizard-foot .est { min-width: 0; flex: 1 1 100%; }
  .wizard-foot .btn { flex: 1 1 100%; min-width: 0; }
  .field-grid.two, .field-grid.three, .window-group.two { grid-template-columns: 1fr; }
  .page-search-controls { grid-template-columns: 1fr; }
  .region-searchbar { grid-template-columns: 1fr; justify-content: stretch; }
  .region-action { grid-column: auto; }
  .region-action .btn { width: 100%; }
  .region-review-summary { grid-template-columns: 1fr; align-items: stretch; }
  .region-head .btn, .region-review-summary .btn { width: 100%; }
  .region-head, .places-summary { align-items: flex-start; }
  .region-head, .region-picker { grid-template-columns: 1fr; flex-direction: column; }
  .brandcop-scan { grid-template-columns: 1fr; }
  .brandcop-map { height: 36px; }
  .upload-strip { grid-template-columns: 1fr; align-items: stretch; }
  .upload-strip .btn { justify-self: start; }
  .rights-empty { grid-template-columns: 1fr; }
  .rights-license-grid { grid-template-columns: 1fr; }
  .rights-license-grid .wide { grid-column: auto; }
  .watchlist-row { grid-template-columns: 1fr; align-items: stretch; }
  .watchlist-row .btn { justify-self: start; }
  .brand-pal-tools { align-items: stretch; flex-direction: column; }
  .brand-pal-tools .btn { align-self: flex-start; }
  .brand-pal-add { grid-template-columns: 48px 1fr; }
  .brand-pal-add .btn { grid-column: 1 / -1; justify-self: start; }
  .pal-source { align-items: stretch; flex-direction: column; }
  .detect-colours-btn { align-self: flex-start; }
  .counts { grid-template-columns: repeat(2, 1fr); }
  .exec-metrics,
  .demo-replay-metrics,
  .demo-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coverage-summary { grid-template-columns: 1fr; }
  .heat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cadence-grid { grid-template-columns: repeat(2, 1fr); }
  .live-card, .wait-card { min-height: 0; }
  .run-game-card { grid-template-columns: 1fr; }
  .run-game-host .flappy-stage { height: 210px; }
  .launch-setting, .launch-cost { align-items: flex-start; flex-direction: column; }
  .launch-setting .input { width: 100%; }
  .review-card.hero { grid-template-columns: 1fr; align-items: stretch; }
  .review-pill { justify-content: center; }
  .run { grid-template-columns: 1fr; }
  .run .run-actions { justify-self: start; }
  .filters {
    position: static;
    gap: 8px;
  }
}
@media (max-width: 560px) {
  .counts { grid-template-columns: 1fr 1fr; }
  .exec-readout { padding: 16px; }
  .exec-actions { width: 100%; }
  .exec-actions .btn { flex: 1 1 100%; min-width: 0; }
  .exec-metric strong { font-size: 19px; }
  .topbar .wrap {
    min-height: 64px;
    padding: 10px 12px;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .brandmark .mark { width: 112px; height: 24px; }
  .topnav {
    flex: 1 1 auto;
    justify-content: flex-start;
    padding-bottom: 2px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .topnav a { padding: 7px 9px; }
  .topnav .op .nm { display: none; }
  .results-head h2 { font-size: 23px; }
  .filters { width: 100%; }
  .filters .select { flex: 1 1 100%; }
  .roster-scroll { overflow-x: visible; }
  .roster-table,
  .roster-table tbody,
  .roster-table tr,
  .roster-table td { display: block; width: 100%; }
  .roster-table thead { display: none; }
  .roster-table tbody { display: grid; gap: 10px; }
  .roster-table tr[data-store] {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-card);
    padding: 12px;
    background: var(--canvas);
  }
  .roster-table th,
  .roster-table td {
    border-bottom: 0;
    padding: 0;
  }
  .roster-table td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-top: 8px;
    font-size: 13px;
  }
  .roster-table td:first-child {
    padding-top: 0;
    display: block;
    font-size: 14px;
  }
  .roster-table td:not(:first-child)::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 600;
  }
  .roster-table td:not(:first-child) {
    align-items: center;
  }
  .roster-table td:not(:first-child) > * {
    text-align: right;
    min-width: 0;
  }
  .place-row { grid-template-columns: 18px 1fr; }
  .place-row .chip { grid-column: 2; }
  .guideline-flow .pal-source { grid-template-columns: 1fr; align-items: stretch; }
  .guideline-flow .palette-actions { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

/* ====================== RUNS — minimal, scannable log ====================== */
.run-group { margin-bottom: 30px; }
.rg-head { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px; padding: 0 2px; }
.run-rows {
  display: flex; flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--canvas);
  overflow: hidden;
}
.run-row {
  display: grid;
  grid-template-columns: 78px 8px minmax(110px, .44fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  border-radius: 0;
  transition: background .12s ease;
}
.run-rows li:last-child .run-row { border-bottom: 0; }
.run-row:hover { background: var(--parchment); text-decoration: none; }
.run-row.is-favorite { background: var(--accent-dim); }
.run-row:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.rr-date { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.rr-dot.s-running { background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.rr-dot.s-failed { background: var(--high); }
.rr-dot.s-scheduled { background: var(--hairline-strong); }
.rr-dot.s-done { background: var(--ink); }
.rr-name {
  font-size: 15px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.rr-meta { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rr-go { color: var(--accent); font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .12s ease; }
.run-row:hover .rr-go, .run-row:focus-visible .rr-go { opacity: 1; }
.see-more { margin: 8px 0 0 14px; }
.see-more summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; }
.see-more .run-rows { margin-top: 8px; }
.schedule-row { cursor: default; }
.schedule-row:hover { background: transparent; }

.favorite-toggle {
  gap: 8px;
}
.favorite-toggle .fav-star {
  width: 15px;
  height: 15px;
}
.favorite-toggle.is-on {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}
.favorite-toggle.is-on .star-shape {
  fill: currentColor;
}
@media (max-width: 560px) {
  .reports-toolbar { grid-template-columns: 1fr; }
  .report-count { white-space: normal; }
  .run-group { margin-bottom: 24px; }
  .run-row {
    grid-template-columns: 64px 8px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 3px 11px;
    min-height: 68px;
    padding: 12px 14px;
  }
  .rr-date { grid-row: 1 / span 2; align-self: center; }
  .rr-dot { grid-row: 1 / span 2; align-self: center; }
  .rr-name { grid-column: 3; grid-row: 1; }
  .rr-meta { grid-column: 3; grid-row: 2; font-size: 13px; }
  .rr-go { display: none; }
}

/* ---------- brand-card Facebook page row ---------- */
.bc-fb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.bc-fb-label { color: var(--faint); }
.bc-fb-link { color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-fb-link.muted { color: var(--muted); }
.bc-fb-edit { margin-left: auto; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 12.5px; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.bc-fb-edit:hover { text-decoration: underline; }

/* ---------- region selectors (wizard step 2) ---------- */
.chk-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chk {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; cursor: pointer;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-input); font-size: 14px; font-weight: 500;
  background: var(--canvas); transition: border-color .12s, background .12s;
}
.chk input { accent-color: var(--accent); width: 16px; height: 16px; }
.chk:has(input:checked) { border-color: var(--ink); background: var(--parchment); }
.chk:has(input:focus-visible) { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.chip-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 8px; }
.chip-check {
  position: relative; display: grid; place-items: center; min-height: 38px; padding: 8px 12px; cursor: pointer; border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong); background: var(--canvas); font-size: 13px; font-weight: 600; color: var(--muted);
  text-align: center;
  transition: border-color .12s, background .12s, color .12s;
}
.chip-check.country { min-width: 148px; justify-self: start; }
.chip-check.all { border-style: solid; color: var(--ink); background: var(--parchment-2); }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-check:has(input:focus-visible) { outline: 2px solid var(--accent-focus); outline-offset: 2px; }

/* ====================== FLOATING DRAGGABLE WINDOW ====================== */
.float-win {
  position: fixed; z-index: 90; width: 340px; max-width: calc(100vw - 24px);
  top: var(--fw-top, 120px); left: var(--fw-left, calc(50vw - 170px));
  background: var(--canvas); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-card); box-shadow: var(--shadow-2);
  animation: fw-in .16s ease;
}
@keyframes fw-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.fw-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px;
  border-bottom: 1px solid var(--hairline); cursor: grab; user-select: none;
  border-radius: var(--radius-card) var(--radius-card) 0 0; background: var(--parchment);
}
.fw-head:active { cursor: grabbing; }
.fw-grip { width: 16px; height: 16px; color: var(--muted); flex: 0 0 auto; }
.fw-title { font-size: 14px; font-weight: 600; flex: 1; }
.fw-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.fw-sub { font-size: 13px; color: var(--muted); line-height: 1.45; }
.fw-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fw-saved { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ok); }
.fw-saved svg { width: 14px; height: 14px; }
.fw-hint { font-size: 11.5px; color: var(--faint); flex: 1 1 100%; }

/* ---------- refinements: calmer flags, consistent cards, select spacing ---------- */
/* severity shown as a quiet dot + label (no pill) — matches the Runs log */
.flagline { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.flagline .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.flagline.s-high { color: var(--high); }
.flagline.s-review { color: var(--ink); }
.flagline.s-ai { color: var(--ai); }
.flagline.s-copy { color: var(--copy); }
.flagline.s-ok { color: var(--muted); }
/* brand cards: equal height + single-line footer */
.brand-card { min-height: 142px; }
.brand-card .bc-meta .bc-status { flex-basis: 100%; margin-left: 0; }
.brand-card .bc-foot { flex-wrap: nowrap; }
.brand-card .bc-foot .btn:first-child { flex: 1; white-space: nowrap; }

/* ---------- wizard design-system normalization ---------- */
.wizard-card,
.wizard-card input,
.wizard-card textarea,
.wizard-card select,
.wizard-card button,
.panel-view,
.panel-view input,
.panel-view textarea,
.panel-view select,
.panel-view button {
  font-family: var(--text);
  letter-spacing: 0;
}

.stepper { gap: 6px; }
.stepper li {
  align-items: center;
  min-height: 48px;
  padding: 11px 12px;
}
.stepper li > .s-label {
  display: block;
  align-self: center;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 650;
}
.stepper .s-meta { display: none; }

.field label,
.field > .label,
.glabel,
.draft-strip .label,
.upload-strip .label,
.website-palette-head .label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}
.field .hint,
.draft-strip .hint,
.upload-strip .hint,
.website-palette-head .hint,
.rights-empty span,
.rights-license-head span,
.rights-exposure-preview {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}
.upload-strip,
.draft-strip,
.window-group,
.schedule-card,
.launch-setting,
.launch-cost,
.review-card {
  font-family: var(--text);
}
.upload-strip {
  min-height: 58px;
  padding: 12px;
}
.upload-strip > .hint {
  align-self: center;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.guideline-flow .pal-grid {
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}
.guideline-flow .pal-row {
  min-height: 96px;
  padding: 10px 8px 8px;
  gap: 6px;
  place-items: center;
  box-shadow: var(--shadow-1);
}
.guideline-flow .pal-row::before {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  justify-self: center;
}
.guideline-flow input.pal-swatch {
  left: 50%;
  right: auto;
  top: 10px;
  width: 44px;
  height: 44px;
  transform: translateX(-50%);
}
.guideline-flow input.pal-swatch::-webkit-color-swatch { border-radius: 50%; }
.guideline-flow input.pal-swatch::-moz-color-swatch { border-radius: 50%; }
.guideline-flow .pal-row .hex {
  justify-self: center;
  width: 76px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.2;
}
.guideline-flow .pal-row .role {
  width: 100%;
  text-align: center;
  font-size: 10px;
}
.guideline-flow .pal-x {
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 15px;
}

.window-group .input,
.schedule-card .input,
.launch-setting .input {
  font-family: var(--text);
  letter-spacing: 0;
}
.window-group .input,
.schedule-card .input {
  font-size: 15.5px;
  line-height: 1.3;
}
.review-card .rk,
.review-card .rv,
.review-pill,
.review-chip,
.launch-setting .label,
.launch-setting .hint,
.launch-cost .label,
.launch-cost .hint {
  font-family: var(--text);
  letter-spacing: 0;
}
.launch-setting .label,
.launch-setting .hint,
.launch-cost .label,
.launch-cost .hint {
  display: block;
}
.launch-setting .label,
.launch-cost .label {
  font-size: 14px;
  font-weight: 680;
  line-height: 1.25;
}
.launch-setting .hint,
.launch-cost .hint {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.4;
}
.launch-setting .input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.launch-setting .input[type="number"]::-webkit-inner-spin-button,
.launch-setting .input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.review-card .rk {
  font-weight: 680;
}
.review-card strong {
  font-weight: 680;
}
.launch-cost-amount,
.launch-setting .input,
.review-card.hero strong {
  letter-spacing: 0;
}
/* ====================== UTILITY HOOKS (no inline styles) ====================== */
[data-mt] { margin-top: 18px; }
[data-mb] { margin-bottom: 22px; }
.field[data-mt] { margin-top: 4px; }
.brand-card.new .label { font-size: 14px; font-weight: 600; color: var(--accent); }

/* mini count tiles used in compare boards */
.counts[data-mini] { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; gap: 10px; }
.counts[data-mini] .count-tile { padding: 14px; }
.counts[data-mini] .num { font-size: 26px; }

/* progress widths come in via --p (set by app.js through CSSOM) */
.progress[data-progress] .progress-fill { width: var(--p, 0%); }

/* palette + asset swatch colours come in via --sw (set by app.js through CSSOM) */
.pal-swatch[data-swatch] { background-color: var(--sw, #ccc); }
.asset-pill .sw[data-sw] { background-color: var(--sw, #ccc); }

/* panel-view switching (app.js toggles [hidden]) */
.panel-view { animation: panel-in .24s ease; }
@keyframes panel-in { from { transform: translateY(6px); } to { transform: none; } }

/* ====================== AIRBNB DATE PICKER ====================== */
.date-field {
  background-image: var(--cal-ico); background-repeat: no-repeat;
  background-position: right 13px center; padding-right: 42px; cursor: pointer;
}
.datepicker {
  position: fixed; z-index: 130; top: var(--dp-top, 0); left: var(--dp-left, 0);
  width: 320px; background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--radius-wizard); box-shadow: var(--shadow-2); padding: 18px;
  animation: dp-in .14s ease;
}
@keyframes dp-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.datepicker .dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.datepicker .dp-title { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--ink); }
.datepicker .dp-weekdays, .datepicker .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.datepicker .dp-weekdays span { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding-bottom: 8px; }
.datepicker .dp-grid { gap: 2px; }
.dp-day {
  height: 40px; width: 100%; display: grid; place-items: center; border: 0; background: transparent;
  border-radius: var(--radius-pill); font-size: 14px; color: var(--ink); cursor: pointer; padding: 0;
  transition: background .1s ease;
}
.dp-day:hover { background: var(--parchment); }
.dp-day:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: -2px; }
.dp-day.empty { visibility: hidden; cursor: default; }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.dp-day.selected, .dp-day.selected:hover { background: var(--ink); color: #fff; font-weight: 600; }

/* tips cards: equal height per row, consistent padding */
.brand-grid > .panel { align-self: stretch; }

/* ====================== TIPS PAGE ====================== */
.tips {
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 46px 40px 78px;
}
.tips-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px;
  align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--hairline);
}
.tips-kicker {
  color: var(--accent); font-size: 13px; font-weight: 700; margin-bottom: 8px;
}
.tips h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.02em; margin-bottom: 14px; max-width: 720px; }
.tips-lede {
  color: var(--body); font-size: 17px; line-height: 1.58; max-width: 68ch;
}
.tips-brief {
  border: 1px solid var(--hairline); border-radius: var(--radius-card);
  background: var(--canvas); box-shadow: var(--shadow-1); padding: 18px 20px;
}
.tips-brief > span {
  display: block; color: var(--muted); font-size: 12px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; margin-bottom: 12px;
}
.tips-brief ol { display: grid; gap: 10px; counter-reset: tips; }
.tips-brief li {
  counter-increment: tips; display: grid; grid-template-columns: 26px 1fr; gap: 10px;
  align-items: start; color: var(--ink); font-size: 14px; line-height: 1.4;
}
.tips-brief li::before {
  content: counter(tips); width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--parchment);
  border: 1px solid var(--hairline); color: var(--muted); font-size: 12px; font-weight: 700;
}
.tips-playbook {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch;
  padding-top: 28px;
}
.tip-card, .tips-more {
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
}
.tip-card {
  display: flex; flex-direction: column; min-width: 0; padding: 22px;
}
.tip-card-head, .tips-more-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
}
.tip-card h2, .tips-more h2 { font-size: 23px; letter-spacing: -0.02em; }
.tip-feeds {
  color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 7px;
  letter-spacing: .02em; text-transform: uppercase;
}
.tip-tag {
  flex: 0 0 auto; border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  padding: 5px 10px; background: var(--parchment); color: var(--muted);
  font-size: 12px; font-weight: 700;
}
.tip-card p {
  color: var(--body); font-size: 14.5px; line-height: 1.58; margin-top: 14px;
}
.prompt {
  margin-top: 18px; border: 1px solid var(--hairline); border-radius: var(--radius-card);
  background: var(--parchment); overflow: hidden; min-width: 0;
}
.prompt-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 12px; border-bottom: 1px solid var(--hairline); background: var(--canvas);
}
.prompt-head span {
  color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase;
}
.prompt pre {
  max-height: 360px; overflow: auto; margin: 0; padding: 16px; white-space: pre-wrap;
  font-family: var(--mono); font-size: 12px; color: var(--ink); line-height: 1.55;
}
.prompt .fill { color: var(--accent); font-style: normal; font-weight: 700; }
.copy-btn {
  border: 1px solid var(--ink); border-radius: var(--radius-input); padding: 7px 11px;
  background: var(--canvas); color: var(--ink); font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, color .12s;
}
.copy-btn:hover { background: var(--parchment); }
.copy-btn.copied { color: #fff; background: var(--accent); border-color: var(--accent); }
.tips-more {
  margin-top: 18px; padding: 22px;
}
.tips-more-head { align-items: center; margin-bottom: 18px; }
.tips-checks {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.tips-checks li {
  min-width: 0; border: 1px solid var(--hairline); border-radius: var(--radius-input);
  background: var(--parchment); padding: 14px; display: flex; flex-direction: column; gap: 7px;
}
.tips-checks b { color: var(--ink); font-size: 14px; }
.tips-checks span { color: var(--body); font-size: 13px; line-height: 1.45; }
@media (max-width: 980px) {
  .tips-hero, .tips-playbook { grid-template-columns: 1fr; }
  .tips-brief { max-width: 520px; }
  .tips-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .tips { padding: 34px 20px 64px; }
  .tips h1 { font-size: 34px; }
  .tip-card-head, .tips-more-head { flex-direction: column; align-items: stretch; }
  .tip-tag { align-self: flex-start; }
  .tips-checks { grid-template-columns: 1fr; }
}

/* ============================================================
   SUPPLEMENT — markup introduced by the app.js rewrite (Parts 3–5)
   that the base sheets didn't yet style. CSP-safe: classes only.
   ============================================================ */

/* generic read-only colour swatch, coloured via --sw by paintSwatches.
   Scoped rules (.bc-swatches .sw, .asset-pill .sw) still override the size. */
.sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--hairline-strong);
      background-color: var(--sw, #ccc); flex: 0 0 auto; display: inline-block; }
.sw-strip { display: inline-flex; gap: 5px; align-items: center; flex-wrap: wrap; vertical-align: middle; }

/* brand-editor palette chips (with a remove button) */
.be-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 6px 4px 8px;
           border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: var(--canvas); }
.be-chip-hex { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.be-chip-x { display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 50%;
             background: transparent; color: var(--faint); font-size: 15px; line-height: 1; cursor: pointer; }
.be-chip-x:hover { background: var(--high-dim); color: var(--high); }

/* provenance-banner palette strip (povBanner) */
.bn-swatches { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.bn-swatches .sw { width: 16px; height: 16px; border-radius: 5px; }

/* fail banner: let the text take the row so Dismiss sits flush right */
.fail-banner .bt { flex: 1; line-height: 1.4; }

/* disk-usage chip in the runs head */
.disk-chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: var(--radius-pill);
             background: var(--parchment); border: 1px solid var(--hairline); color: var(--muted);
             font-size: 12.5px; white-space: nowrap; }
.disk-chip.disk-low { background: var(--med-dim); border-color: var(--med-line); color: var(--med); }

/* flagged-image card internals: caption / posted-date / review disclosures */
.card.result .pdate {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--faint); text-transform: uppercase; line-height: 1.2;
}
.card.result .caption { font-size: 12.5px; color: var(--body); margin: 0 0 8px; line-height: 1.5; }
.card.result .cw { font-size: 12.5px; }
.card.result .cw.expanded { padding-top: 2px; border-top: 1px solid var(--hairline); }
.card.result .cw-sub { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
                       color: var(--muted); margin-top: 9px; }
.card.result .cw-sub.risk { color: var(--copy); }
.card.result .cw-list { margin: 0 0 8px; padding-left: 16px; color: var(--body); line-height: 1.52; list-style: disc; }
.card.result .cw-list li { margin-bottom: 6px; padding-left: 2px; overflow-wrap: anywhere; }
.card.result .issue-sev { margin-left: 5px; font-size: 10px; font-family: var(--mono); text-transform: uppercase; color: var(--faint); }
.card.result .card-fold { border-top: 1px solid var(--hairline); padding: 0; font-size: 12.5px; }
.card.result .card-fold > summary {
  min-height: 34px; cursor: pointer; color: var(--ink); font-weight: 650; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card.result .card-fold > summary::-webkit-details-marker { display: none; }
.card.result .card-fold > summary::after {
  content: "+"; display: grid; place-items: center; min-width: 22px; height: 22px;
  padding: 0 7px; border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  color: var(--ink); background: var(--canvas); font-weight: 700; line-height: 1; margin-left: 4px; flex: 0 0 auto;
}
.card.result .card-fold[open] > summary::after { content: "-"; }
.card.result .card-fold[open] { padding-bottom: 2px; }
.card.result .card-fold > p { margin: 0 0 8px; }
.card.result .fold-count {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  color: var(--muted); background: var(--parchment); font-size: 11px; font-weight: 650;
}
.card.result .copy-fold > summary,
.card.result .reverse-fold > summary,
.card.result .ai-fold > summary { color: var(--ink); }
.card.result .visual-fold > summary { color: var(--ink); }
.card.result .reason-fold > summary { color: var(--body); }
.card.result .cw-list.visual-critique {
  list-style: none; padding-left: 0; margin-top: 0;
}
.card.result .cw-list.visual-critique li {
  border: 1px solid var(--hairline); border-radius: var(--radius-input);
  background: var(--parchment); padding: 9px 10px; margin-bottom: 8px;
}
.card.result .cw-list.visual-critique li > div {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 5px;
}
.card.result .vc-dim {
  font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink);
}
.card.result .vc-rating {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--faint);
}
.card.result .cw-list.visual-critique p {
  margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45;
}
.card.result .cw-list.visual-critique p b { color: var(--ink); font-weight: 650; }
.card.result .cw-list.ev code { font-family: var(--mono); font-size: 11px; background: var(--parchment);
                                border: 1px solid var(--hairline); border-radius: 4px; padding: 0 4px; color: var(--ink); }
.card.result .ev-dim { font-weight: 600; color: var(--ink); text-transform: capitalize; }
.card.result .ev-obs { color: var(--muted); }
.card.result .ev-why { color: var(--faint); font-style: italic; }
.card.result .action-card {
  border: 1px solid var(--hairline); border-radius: var(--radius-input);
  background: var(--parchment); padding: 10px; display: grid; gap: 8px; margin-bottom: 8px;
}
.card.result .action-card strong {
  display: block; font-size: 12px; line-height: 1.25; color: var(--ink);
}
.card.result .action-card span {
  display: block; color: var(--muted); font-size: 12px; line-height: 1.42; margin-top: 2px;
}
.card.result .action-card .exposure strong { color: var(--copy); }

.demo-replay[hidden] { display: none; }
.demo-replay {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: rgba(250,250,248,.88); backdrop-filter: blur(8px);
}
.demo-replay-card {
  width: min(720px, calc(100vw - 32px)); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-card); background: var(--canvas); box-shadow: var(--shadow-3);
  padding: 22px;
}
.demo-replay-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px;
}
.demo-replay-head h3 { font-size: 24px; line-height: 1.2; font-weight: 650; }
.demo-replay-head p { margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 52ch; }
.demo-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.demo-step {
  border: 1px solid var(--hairline); border-radius: var(--radius-input);
  background: var(--parchment); padding: 11px; min-height: 78px;
}
.demo-step b { display: block; font-size: 13px; line-height: 1.25; }
.demo-step span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.demo-step.is-on { border-color: var(--ink); background: var(--canvas); box-shadow: 0 0 0 3px rgba(34,34,34,.07); }
.demo-bar { height: 8px; border-radius: var(--radius-pill); background: var(--parchment-2); overflow: hidden; }
.demo-bar span { display: block; height: 100%; width: var(--demo-progress, 0%); background: var(--ink); transition: width .42s ease; }
.demo-replay-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.demo-replay-metrics .exec-metric { background: var(--canvas); }
