/* theme.css: Profile Plain. "Plain-paper field check": warm paper, graphite ink, one deep teal.
   Signature: the asset-tag target band (.target-tag) heading every report.
   Loaded after styles.css, so these rules win. Builder: layout only, no colours/radii/sizes. */

:root {
  color-scheme: light dark;

  /* Palette (light). Ratios are against --surface (#fff) unless noted. */
  --bg: #f6f4ef;
  --surface: #ffffff;
  --raised: #efece4;
  --text: #1d2124;            /* 16.0:1 surface, 14.5:1 bg */
  --muted: #555c61;           /* 6.9:1 surface, 6.4:1 bg */
  --border: #ddd8cc;          /* edges only */
  --border-strong: #8c8678;   /* 3.6:1, input outlines */
  --accent: #1f5f5b;          /* white on it 7.4:1 */
  --accent-hover: #184d4a;
  --accent-active: #123c3a;
  --accent-text: #1f5f5b;     /* 7.4:1 surface, 6.7:1 bg */
  --accent-tint: #e3efec;     /* accent-text on it 6.4:1 */
  --on-accent: #ffffff;
  --ink: #1d2124;             /* the target band */
  --on-ink: #f6f4ef;          /* 14.5:1 on ink */
  --on-ink-muted: #b9c2c0;    /* 9.0:1 on ink */
  --on-ink-accent: #7fd1c4;   /* 9.4:1 on ink */
  --success: #2f6b2f;         /* 6.4:1 surface, 5.6:1 on tint */
  --success-tint: #e5f1e2;
  --warning: #8a5300;         /* 6.3:1 surface, 5.6:1 on tint */
  --warning-tint: #fbefd9;
  --danger: #b3261e;          /* 6.4:1 surface, 5.5:1 on tint */
  --danger-tint: #fbe7e4;

  /* Type */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --t-label: 0.8125rem;   /* 13 */
  --t-small: 0.9375rem;   /* 15 */
  --t-body: 1.0625rem;    /* 17 */
  --t-lede: 1.3125rem;    /* 21 */
  --t-result: 1.75rem;    /* 28 */
  --t-title: clamp(1.875rem, 5vw, 2.5rem);

  /* Space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* Shape */
  --r1: 6px; --r2: 10px; --r3: 16px;
  --shadow-1: 0 1px 2px rgb(29 33 36 / 0.06), 0 2px 8px rgb(29 33 36 / 0.05);
  --shadow-2: 0 8px 28px rgb(29 33 36 / 0.14);
  --ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent), 0 0 0 8px var(--accent-tint);

  --ease: cubic-bezier(.2, .7, .3, 1);
  --fast: 160ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121516;
    --surface: #1a1e20;
    --raised: #22282a;
    --text: #e8e6e1;          /* 13.5:1 surface */
    --muted: #a4adb0;         /* 7.4:1 surface */
    --border: #313a3d;
    --border-strong: #6b7478; /* 3.5:1 */
    --accent: #6cc4b6;        /* on-accent on it 7.9:1 */
    --accent-hover: #82d0c3;
    --accent-active: #5ab3a5;
    --accent-text: #7fd1c4;   /* 9.0:1 surface */
    --accent-tint: #1d3532;   /* accent-text on it 7.3:1 */
    --on-accent: #0d2421;
    --ink: #0b0d0e;
    --on-ink: #f6f4ef;
    --on-ink-muted: #b9c2c0;
    --on-ink-accent: #7fd1c4;
    --success: #7fcf86;       /* 8.9:1 surface, 7.6:1 tint */
    --success-tint: #1c3020;
    --warning: #e8b25c;       /* 8.6:1 surface, 7.0:1 tint */
    --warning-tint: #3a2c14;
    --danger: #ff8f84;        /* 7.4:1 surface, 6.0:1 tint */
    --danger-tint: #3d1d1a;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 10px 32px rgb(0 0 0 / 0.55);
  }
}

/* ---------- Page ---------- */
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
header, main, footer { max-width: 72rem; padding-inline: var(--s5); }
header { border-bottom: 1px solid var(--border); padding-block: var(--s2); }
.brand {
  display: inline-flex; align-items: center; gap: var(--s3);
  min-height: 44px; font-size: var(--t-body); font-weight: 700; letter-spacing: -0.01em;
  color: var(--text);
}
.brand::before {
  content: ""; width: 28px; height: 28px; flex: none;
  background: url("icons/favicon.svg") center / contain no-repeat;
}
header nav a {
  padding-inline: var(--s3); border-radius: var(--r1);
  color: var(--muted); text-decoration: none; font-weight: 600;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
header nav a:hover { color: var(--text); background: var(--raised); }

a { color: var(--accent-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1 {
  font-size: var(--t-title); font-weight: 750; letter-spacing: -0.02em;
  line-height: 1.1; margin: var(--s6) 0 var(--s3);
}
.lede { font-size: var(--t-lede); line-height: 1.45; color: var(--muted); max-width: 40em; margin: 0 0 var(--s6); }
main h2 { font-size: var(--t-lede); line-height: 1.3; margin: var(--s7) 0 var(--s3); letter-spacing: -0.01em; }
main h3 { font-size: var(--t-body); margin: var(--s5) 0 var(--s1); }
main > p, main > ul, main > ol { max-width: 68ch; }
main li + li { margin-top: var(--s2); }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
p code, li code {
  background: var(--raised); padding: 1px 5px; border-radius: 4px;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r1); }

/* ---------- Inputs panel ---------- */
.inputs {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s6);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); box-shadow: var(--shadow-1);
  padding: var(--s6);
}
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.step-label {
  display: flex; align-items: center; gap: var(--s2);
  margin: 0 0 var(--s4); padding: 0;
  font-size: var(--t-label); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text);
}
.step {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent-text);
  font-size: var(--t-label); letter-spacing: 0; font-variant-numeric: tabular-nums;
}

/* Drop zone */
.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s2); min-height: 13rem; padding: var(--s4);
  text-align: center;
  border: 2px dashed var(--border-strong); border-radius: var(--r2);
  background: var(--bg);
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.dropzone p { margin: 0; }
.dz-icon { width: 32px; height: 32px; color: var(--muted); transition: transform var(--fast) var(--ease); }
.dz-title, .dz-hint { line-height: 1.3; }
.dz-title { font-weight: 650; font-size: var(--t-body); }
.dz-hint, .dz-loaded { font-size: var(--t-small); color: var(--muted); }
.dz-loaded { max-width: 30ch; }
.dropzone button { margin-top: var(--s1); min-width: 17.5rem; }
.dropzone[data-state="over"] { border-color: var(--accent); background: var(--accent-tint); }
.dropzone[data-state="over"] .dz-icon { color: var(--accent-text); transform: translateY(-3px); }
.dropzone[data-state="loaded"] { border-style: solid; border-color: var(--border); background: var(--surface); }
.dropzone[data-state="loaded"] .dz-icon { color: var(--accent-text); }
.dropzone[data-state="loaded"] .dz-loaded { color: var(--text); font-weight: 600; }
.dropzone[data-state="error"] { border-color: var(--danger); background: var(--danger-tint); }
.dropzone[data-state="error"] .dz-icon { color: var(--danger); }
.dz-progress {
  position: relative; width: 12rem; height: 4px; border-radius: 2px; overflow: hidden;
  background: var(--border);
}
.dz-progress::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: var(--accent); border-radius: 2px;
  animation: dz-slide 1.1s var(--ease) infinite;
}
@keyframes dz-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Target controls */
.target { display: grid; gap: var(--s4); align-content: start; }
.control { display: grid; gap: var(--s2); }
.label {
  font-size: var(--t-small); font-weight: 650; color: var(--text);
}
.hint { margin: 0; font-size: var(--t-small); color: var(--muted); }

input.text, select, textarea {
  width: 100%; min-height: 44px; padding: var(--s2) var(--s3);
  font: inherit; font-size: var(--t-body); color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-strong); border-radius: var(--r1);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
input.text.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; max-width: 12rem; }
input.text::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input.text:hover, select:hover, textarea:hover { border-color: var(--text); }
input.text:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
}
.method-select { position: relative; min-width: 0; }
.method-select svg {
  position: absolute; inset-inline-end: var(--s4); top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
[aria-invalid="true"] { border-color: var(--danger) !important; background-color: var(--danger-tint); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }

/* Segmented radio */
.seg {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--s1);
  padding: var(--s1); max-width: 18rem;
  background: var(--raised); border-radius: var(--r2);
}
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; min-height: 40px; padding: 0 var(--s4);
  border: 1px solid var(--border-strong); border-radius: var(--r1);
  background: var(--surface); color: var(--muted); font-weight: 600;
}
.seg label:hover span { border-color: var(--text); color: var(--text); }
.seg input:checked + span { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-text); }
.seg input:focus-visible + span { box-shadow: var(--ring); }
.seg[aria-invalid="true"], .seg:has(input[aria-invalid="true"]) { outline: 1.5px solid var(--danger); }

/* Field errors: line reserved */
.field-error {
  display: flex; gap: var(--s2); align-items: flex-start;
  min-height: 1.5em; margin: var(--s2) 0 0;
  font-size: var(--t-small); font-weight: 600; color: var(--danger);
}
.field-error:empty { visibility: hidden; }
.field-error svg { flex: none; width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
button.primary, button.secondary, button.quiet {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: var(--s2) var(--s5);
  font: inherit; font-size: var(--t-body); font-weight: 650; line-height: 1.2;
  border-radius: var(--r2); cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease),
    color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
button.primary {
  min-height: 48px;
  background: var(--accent); color: var(--on-accent); border: 1.5px solid var(--accent);
  box-shadow: var(--shadow-1);
}
button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.primary:active { background: var(--accent-active); transform: translateY(1px); }
button.secondary,
.dropzone[data-state="loaded"] button.primary {
  background: var(--surface); color: var(--accent-text); border: 1.5px solid var(--accent);
  box-shadow: none;
}
button.secondary:hover,
.dropzone[data-state="loaded"] button.primary:hover { background: var(--accent-tint); }
.dropzone[data-state="loaded"] button.primary:focus-visible { box-shadow: var(--ring); }
button.secondary:active { transform: translateY(1px); }
button.quiet { background: transparent; color: var(--muted); border: 1.5px solid transparent; }
button.quiet:hover { background: var(--raised); color: var(--text); }
button.quiet:active { transform: translateY(1px); }
button:disabled, button:disabled:hover {
  cursor: not-allowed; opacity: 1; transform: none;
  background: var(--raised); color: var(--muted); border-color: var(--border);
}
button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button:focus-visible { box-shadow: var(--ring); }

/* ---------- Action bar + status ---------- */
.actionbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  margin: var(--s4) 0 var(--s5); flex-wrap: wrap;
}
.actionbar .actions { margin: 0; gap: var(--s2); }
#status {
  flex: 1 1 20rem; min-height: 1.55em; margin: 0;
  font-size: var(--t-small); font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#status.ok { color: var(--success); }
#status.error { color: var(--danger); }

/* ---------- Output ---------- */
#output { min-height: 9rem; }
.empty-state {
  display: flex; gap: var(--s4); align-items: flex-start;
  padding: var(--s5); border: 1px solid var(--border); border-radius: var(--r3);
  background: var(--surface); color: var(--muted);
}
.empty-state svg { flex: none; width: 40px; height: 40px; color: var(--accent-text); }
.empty-state strong { display: block; color: var(--text); font-size: var(--t-body); }
.empty-state p { margin: var(--s1) 0 0; font-size: var(--t-small); max-width: 60ch; }

/* The report */
.report {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0 0 var(--r3) var(--r3); box-shadow: var(--shadow-2); overflow: hidden;
  animation: report-in 180ms var(--ease) both;
}
@keyframes report-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Signature: asset-tag target band */
.target-tag {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
  gap: var(--s2) var(--s5);
  margin: 0; padding: var(--s4) var(--s6);
  background: var(--ink); color: var(--on-ink);
  border-bottom: 3px solid var(--on-ink-accent);
  border-radius: 0 0 var(--r2) var(--r2);
}
.target-tag p { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); align-items: baseline; }
.tt-label {
  font-size: var(--t-label); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--on-ink-muted);
}
.target-tag .tt-target { flex-direction: column; align-items: flex-start; }
.tt-target .mono { font-size: var(--t-body); font-weight: 600; color: var(--on-ink); }
.target-tag .tt-source { flex-direction: column; align-items: flex-end; text-align: right; }
.tt-source .mono { font-size: var(--t-label); color: var(--on-ink-accent); }
.tt-date { display: block; color: var(--on-ink-muted); }

.report-body { padding: var(--s5) var(--s6) var(--s6); }
.report-body h2 {
  margin: 0 0 var(--s4); font-size: var(--t-result); line-height: 1.2; letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.tally { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); padding: 0; list-style: none; }
.tally li {
  display: inline-flex; align-items: baseline; gap: var(--s2); margin: 0;
  padding: var(--s2) var(--s4); border-radius: var(--r2);
  font-size: var(--t-small); font-weight: 600;
}
.tally b { font-size: var(--t-lede); font-variant-numeric: tabular-nums; }
.tally .eligible { background: var(--success-tint); color: var(--success); }
.tally .ineligible { background: var(--danger-tint); color: var(--danger); }
.tally .undetermined { background: var(--warning-tint); color: var(--warning); }
.excluded, .report-empty { margin: 0 0 var(--s5); font-size: var(--t-small); color: var(--muted); max-width: 75ch; }
.report-empty { font-size: var(--t-body); color: var(--text); }

/* Rows table */
table.rows { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.rows col.c-n { width: 2.5rem; }
.rows col.c-key { width: 27%; }
.rows col.c-verdict { width: 10.5rem; }
.rows col.c-src { width: 23%; }
.rows thead th {
  padding: var(--s2) var(--s3); text-align: left;
  font-size: var(--t-label); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1.5px solid var(--border-strong);
}
.rows abbr { text-decoration: none; }
.rows td { padding: var(--s3); vertical-align: top; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.rows tr.payload-head th {
  padding: var(--s5) var(--s3) var(--s2); text-align: left;
  font-size: var(--t-small); font-weight: 700; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.rows tbody:first-of-type tr.payload-head th { padding-top: var(--s3); }
.payload-head .gate { display: block; margin-top: var(--s1); font-weight: 600; color: var(--danger); }
.rows tr.row { transition: background-color var(--fast) var(--ease); }
.rows tr.row:hover { background: var(--bg); }
.rows tr.row td:first-child { box-shadow: inset 4px 0 0 var(--border); }
.rows tr.eligible td:first-child { box-shadow: inset 4px 0 0 var(--success); }
.rows tr.ineligible td:first-child { box-shadow: inset 4px 0 0 var(--danger); }
.rows tr.undetermined td:first-child { box-shadow: inset 4px 0 0 var(--warning); }
.rows td.n { padding-left: var(--s4); color: var(--muted); font-variant-numeric: tabular-nums; font-family: var(--mono); }
code.key { font-size: var(--t-body); font-weight: 600; color: var(--text); background: none; padding: 0; }
code.src { font-size: var(--t-label); color: var(--muted); background: none; padding: 0; }
.src-rule { display: inline-block; max-width: 100%; }
.badge {
  display: inline-block; margin: var(--s1) 0 0 var(--s1);
  padding: 1px var(--s2); border-radius: var(--r1);
  font-size: var(--t-label); font-weight: 700; letter-spacing: 0.03em;
  color: var(--warning); background: var(--warning-tint);
}
.verdict {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px var(--s3) 3px var(--s2); border-radius: 999px;
  font-weight: 700; white-space: nowrap;
}
.verdict svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.verdict.eligible { color: var(--success); background: var(--success-tint); }
.verdict.ineligible { color: var(--danger); background: var(--danger-tint); }
.verdict.undetermined { color: var(--warning); background: var(--warning-tint); }
ul.reasons { margin: 0; padding-left: 1.1em; }
ul.reasons li { margin: 0; }
ul.reasons li + li { margin-top: var(--s1); }
ul.reasons:has(> li:only-child) { list-style: none; padding-left: 0; }
.deprecation {
  display: flex; gap: 6px; align-items: flex-start; margin: var(--s2) 0 0;
  font-weight: 600; color: var(--warning);
}
.deprecation svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.report-note {
  display: flex; gap: var(--s3); align-items: flex-start;
  margin: var(--s5) 0 0; padding: var(--s4);
  border-radius: var(--r2); background: var(--raised);
  font-size: var(--t-small); color: var(--muted);
}
.report-note strong { color: var(--text); }
.report-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Template furniture (heights untouched) ---------- */
.ad-slot { background: var(--raised); border: 1px solid var(--border); }
.ad-label { color: var(--muted); opacity: 1; font-size: var(--t-label); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; }
.house-card {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--r2); padding: var(--s4) var(--s5);
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.house-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.house-card strong { color: var(--accent-text); }
.house-card span { color: var(--muted); }
.consent {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r3); box-shadow: var(--shadow-2);
}
.consent div { gap: var(--s2); }
.consent button {
  border: 1.5px solid var(--accent); border-radius: var(--r2); color: var(--accent-text); background: var(--surface);
  font-weight: 650; transition: background-color var(--fast) var(--ease);
}
.consent button:hover { background: var(--accent-tint); }
footer {
  opacity: 1; color: var(--muted); font-size: var(--t-small);
  border-top: 1px solid var(--border); margin-top: var(--s7); padding-block: var(--s5) var(--s6);
}

/* ---------- Phone ---------- */
@media (max-width: 48rem) {
  header, main, footer { padding-inline: var(--s4); }
  h1 { margin-top: var(--s5); }
  .lede { margin-bottom: var(--s5); }
  .inputs { grid-template-columns: 1fr; gap: var(--s5); padding: var(--s4); border-radius: var(--r2); }
  .inputs:has(#file-error:empty) { row-gap: var(--s2); }
  #file-error:empty { min-height: var(--s2); margin-top: 0; }
  .dropzone { min-height: 10rem; padding: var(--s1) var(--s3); gap: var(--s1); }
  .dz-icon { width: 24px; height: 24px; }
  .dropzone button { width: 100%; min-width: 0; margin-top: 0; }
  .seg { max-width: none; display: grid; }
  input.text.mono { max-width: none; }
  .actionbar { flex-direction: column; align-items: stretch; }
  .actionbar .actions { display: grid; grid-template-columns: 1fr auto; }
  .target-tag { grid-template-columns: minmax(0, 1fr); padding: var(--s3) var(--s4); }
  .target-tag .tt-source { align-items: flex-start; text-align: left; }
  .report-body { padding: var(--s4); }
  .report-body h2 { font-size: var(--t-lede); }

  table.rows, .rows tbody, .rows tr, .rows td, .rows th { display: block; width: auto; }
  .rows colgroup { display: none; }
  /* Keep the column headers and payload numbers in the accessible table. */
  .rows thead, .rows td.n {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .rows tr.payload-head th { padding: var(--s4) 0 var(--s2); border-bottom: 0; }
  .rows tr.row {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2);
    margin-bottom: var(--s3); padding: var(--s3) var(--s4);
    border: 1px solid var(--border); border-radius: var(--r2);
    border-left-width: 4px;
  }
  .rows tr.eligible { border-left-color: var(--success); }
  .rows tr.ineligible { border-left-color: var(--danger); }
  .rows tr.undetermined { border-left-color: var(--warning); }
  .rows tr.row td { padding: 0; border: 0; box-shadow: none !important; }
  .rows td[data-label="Why"]::before, .rows td[data-label="Source"]::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-size: var(--t-label); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .dz-progress::after { width: 100%; transform: none; }
  button:active, .house-card:hover, .dropzone[data-state="over"] .dz-icon { transform: none !important; }
}
