:root {
  --bg: #f6f7f6;
  --surface: #ffffff;
  /* recessed panel tone (diagram boxes, seal stroke) - was referenced but
     never defined, so those elements rendered with no background (#162) */
  --bg-2: #ececea;
  --text: #1a1a19;
  --text-2: #5f5e5a;
  /* 5.1:1 on --surface (was #8a8a85 at 3.47:1 - failed WCAG AA, #162) */
  --text-3: #6f6e69;
  --border: #e7e7e3;
  --border-2: #d6d5cd;
  --accent: #0f766e;
  --accent-2: #0c5f58;
  --on-accent: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;

  --st-neutral: #52606d;
  --st-blue: #1d4ed8;
  --st-violet: #6d28d9;
  --st-green: #15803d;
  --st-amber: #b45309;
  --st-red: #b91c1c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1b;
    --surface: #262625;
    --bg-2: #313130;
    --text: #f2f2ef;
    --text-2: #b4b2a9;
    /* 5.4:1 on --surface (was #888780 at 4.2:1 - failed WCAG AA, #162) */
    --text-3: #9b9a92;
    --border: #383836;
    --border-2: #4a4a46;
    --accent: #2dd4bf;
    --accent-2: #5eead4;
    --on-accent: #043027;

    --st-neutral: #aeb7c2;
    --st-blue: #7ab0f5;
    --st-violet: #c4b5fd;
    --st-green: #86e0a3;
    --st-amber: #fbbf24;
    --st-red: #fca5a5;
  }
}

* { box-sizing: border-box; }
/* author display rules (flex/grid) must never defeat the hidden attribute */
[hidden] { display: none !important; }

/* Keyboard-focus ring (#162): several controls suppress the UA outline
   (outline: none with a border-color swap), which leaves keyboard users
   with no focus indicator at all on buttons/links/toggles. :focus-visible
   fires for keyboard focus only, so mouse users see no change. */
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-weight: 500; line-height: 1.3; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 18px; }

.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.appbar-nav { display: inline-flex; align-items: center; gap: 16px; }
.appbar-nav a:not(.btn) { color: var(--text-2); }

.container { max-width: 760px; margin: 0 auto; padding: 28px 20px 60px; }

.page-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 0 0 20px;
}
.page-head .muted { color: var(--text-3); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 14px; cursor: pointer;
  padding: 8px 14px; border-radius: var(--radius);
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
}
.btn:hover { border-color: var(--text-3); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn-primary:hover { background: var(--accent-2); }
/* a clicked run/preview button stays visible and turns happy blue while
   the job runs (never dimmed away by the disabled state) */
.btn-clicked, .btn-clicked:disabled, .btn-primary.btn-clicked {
  background: #3b82f6; color: #ffffff; border-color: transparent;
  opacity: 1; cursor: default;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.job-list { display: flex; flex-direction: column; }
.job-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.job-row:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.job-row:last-child { border-bottom: 1px solid var(--border); }
.job-row .grow { flex: 1; min-width: 0; }
.job-row .name { font-weight: 500; }
.job-row .sub { color: var(--text-3); font-size: 13px; }
.job-row .chev { color: var(--text-3); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px;
  color: var(--fg, var(--st-neutral));
  background: color-mix(in srgb, var(--fg, var(--st-neutral)) 15%, var(--surface));
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-draft, .status-queued { --fg: var(--st-neutral); }
.status-analyzing, .status-processing { --fg: var(--st-blue); }
.status-awaiting_confirmation { --fg: var(--st-amber); }
.status-generating_maps { --fg: var(--st-violet); }
.status-queued::before, .status-analyzing::before,
.status-processing::before, .status-generating_maps::before {
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .badge::before { animation: none; }
}
.status-completed { --fg: var(--st-green); }
.status-completed_warnings { --fg: var(--st-amber); }
.status-failed { --fg: var(--st-red); }

.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.progress-area { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.spinner {
  flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border-2); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; border-top-color: var(--border-2); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-track {
  display: none; flex: 1; max-width: 280px; height: 6px;
  border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--text) 10%, transparent);
}
.progress-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: var(--accent); transition: width 0.6s ease;
}
/* uncounted engine phases (import, save, layout prep): a sliding sheen
   says "alive" while the phase text says WHAT is happening */
.progress-fill.indeterminate {
  background: repeating-linear-gradient(
    -60deg,
    var(--accent) 0 10px,
    color-mix(in srgb, var(--accent) 55%, transparent) 10px 20px
  );
  background-size: 200% 100%;
  animation: progress-slide 1.1s linear infinite;
  transition: none;
}
@keyframes progress-slide {
  from { background-position: 0 0; }
  to { background-position: 23px 0; }
}
@media (prefers-reduced-motion: reduce) {
  /* was the one animation the reduce block missed (#162): the striped
     gradient stays as the "alive" cue, it just doesn't slide */
  .progress-fill.indeterminate { animation: none; }
}
.progress-text { font-size: 12px; color: var(--text-3); }
/* the copy of the progress area directly below the run buttons */
.confirm-actions .confirm-progress { flex-basis: 100%; margin: 10px 0 0; }
.detail-msg { color: var(--text-2); margin: 6px 0 4px; min-height: 1.2em; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
/* the confirmation page's parcel count - the NUMBER only: bold Times
   New Roman at 2.24em (Pete's spec, 2026-07-18: 40% up, then another
   60% on the number itself; the word "parcels" stays row-sized) */
.parcel-count {
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 2.24em;
}
.kv:first-of-type { border-top: none; }
.kv .k { color: var(--text-2); }

.section-title { font-size: 15px; font-weight: 500; margin: 20px 0 6px; }
.outputs { list-style: none; padding: 0; margin: 0; }
.outputs li { display: flex; align-items: center; gap: 18px; padding: 9px 0; border-top: 1px solid var(--border); }
/* overflow-wrap: file names are unbroken tokens (1.002001_shapefiles.zip)
   - without a break opportunity they'd overflow the flex box straight
   under the download link */
.outputs .oname { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.outputs li a { flex: none; white-space: nowrap; margin-left: auto; }
.empty { color: var(--text-3); font-size: 14px; padding: 4px 0; }

.outputs-head { margin: 4px 0 14px; }
.btn-glow {
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent),
              0 0 3px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-glow:hover {
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 75%, transparent),
              0 0 5px color-mix(in srgb, var(--accent) 85%, transparent);
}
.btn-sm { padding: 5px 11px; font-size: 13px; white-space: nowrap; }

.parcel-folder {
  display: flex; align-items: flex-start; gap: 12px;
  border-top: 2px solid var(--border-2); padding: 6px 10px 6px 6px;
}
/* collapsed bars carry an accent gradient: bright at the center and
   brightest at the right, under the Download parcel button */
.parcel-folder:has(details:not([open])) {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 3%, transparent) 0%,
    color-mix(in srgb, var(--accent) 16%, transparent) 50%,
    color-mix(in srgb, var(--accent) 9%, transparent) 72%,
    color-mix(in srgb, var(--accent) 30%, transparent) 100%
  );
}
.parcel-folder details { flex: 1; min-width: 0; }
.parcel-folder summary {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0; cursor: pointer; list-style: none; user-select: none;
}
.parcel-folder summary::-webkit-details-marker { display: none; }
.folder-icon { flex: none; width: 0; height: 0; margin-left: 2px;
  border-left: 9px solid var(--text-2);
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  transition: transform 0.15s;
  filter: drop-shadow(0 0 4px var(--accent));
}
/* child-scoped: every tier carries .parcel-folder, so a descendant
   selector would pre-rotate every NESTED arrow the moment the outer
   tier opens (the "arrows stop rotating after the first tier" bug) */
.parcel-folder details[open] > summary .folder-icon { transform: rotate(90deg); }
.folder-files { margin-left: 21px; }
.folder-files li { font-size: 13px; }
.folder-files li:first-child { border-top: none; }
.parcel-folder .btn-sm { margin-top: 3px; }

/* nested deliverable tree (long jobs): spread -> county -> parcel */
.spread-folder { border-top: 3px solid var(--border-2); }
.spread-folder > details > summary .oname { font-weight: 600; }
.county-folder { margin-left: 20px; border-top: 1px solid var(--border); }
.county-folder .parcel-folder { margin-left: 20px; border-top: 1px solid var(--border); }

.parcel-check { padding: 12px 0 10px; border-top: 1px solid var(--border); }
.parcel-check-q { margin: 0 0 6px; font-weight: 700; }
.parcel-check-field { margin: 0 0 4px; font-weight: 700; color: var(--accent); }
.parcel-check-samples {
  list-style: none; margin: 0; padding: 0;
  font-size: 13px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.parcel-check-samples li { padding: 1px 0; }

/* verification toggles (confirmation page): compact yes/no switch used on
   each analysis question and category row */
.check-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.addon-mini {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none; flex: none;
}
.addon-mini .addon-state { width: 24px; font-size: 12px; }
.analysis-layers .addon-mini { justify-content: flex-end; }
.field-picker { margin: 10px 0 4px; }
/* the picker question reads like the other check questions: full text
   color (white in dark theme), bold */
.field-picker .parcel-check-q { margin: 0 0 6px; }
.field-picker .parcel-check-q label { color: var(--text); font-weight: 700; cursor: pointer; }
.field-picker select {
  font: inherit; font-size: 14px; padding: 7px 10px; min-width: 260px;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
.field-picker select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* route-overview map: provided centerline over OpenStreetMap */
.route-map {
  height: 340px; margin: 8px 0 4px;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  background: var(--bg);
}
.route-map-legend {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 6px 0 0; font-size: 13px; color: var(--text-2);
}
.route-chip {
  flex: none; width: 22px; height: 0; border-radius: 2px;
  border-top: 4px solid #1d4ed8;
}
.route-chip-true { border-top-style: dashed; border-top-color: #0d9488; margin-left: 10px; }

/* typical-section style chooser: 3 tiles (original + two magnifier
   families); the family tiles open a 6-style popup for the final pick.
   Thumbnails are the real engine generator's output. */
.look-picker { margin-top: 14px; }
.look-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 8px;
}
@media (max-width: 640px) { .look-tiles { grid-template-columns: 1fr; } }
.look-tile {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 8px; border: 2px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
}
label.look-tile { cursor: pointer; }
.look-tile input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.look-thumbwrap {
  display: flex; align-items: center; justify-content: center;
  background: #ffffff; border: 1px solid var(--border); border-radius: 4px;
  padding: 4px; min-height: 152px; overflow: hidden;
}
.look-thumbwrap img { max-width: 100%; max-height: 148px; height: auto; width: auto; display: block; }
.look-name { font-weight: 600; font-size: 13px; margin-top: 2px; }
.look-desc { font-size: 12px; line-height: 1.35; min-height: 1.2em; }
.look-tile:hover { border-color: var(--text-3); }
.look-tile.sel {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.look-tile:has(> input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.look-check {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: none; align-items: center; justify-content: center;
  font-size: 13px; z-index: 2;
}
.look-tile.sel .look-check { display: flex; }
.look-choose {
  margin-top: 4px; align-self: flex-start; font: inherit; font-size: 12px;
  font-weight: 600; color: var(--accent); background: transparent;
  border: 1px solid var(--border-2); border-radius: 6px;
  padding: 6px 10px; cursor: pointer;
}
.look-choose:hover { border-color: var(--accent); }
.look-choose:disabled { color: var(--text-3); cursor: default; opacity: 0.7; }
.look-tile.locked { opacity: 0.85; }

/* the choose-style popup (modal overlay) */
.look-pop {
  position: fixed; inset: 0; z-index: 60; display: flex;
  align-items: center; justify-content: center; padding: 20px;
}
.look-pop[hidden] { display: none; }
.look-pop-backdrop { position: absolute; inset: 0; background: rgba(10, 12, 14, 0.5); }
.look-pop-sheet {
  position: relative; width: min(620px, 100%); max-height: 86vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.look-pop-head {
  position: sticky; top: 0; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; font-weight: 600;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.look-pop-x {
  margin-left: auto; width: 30px; height: 30px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text);
  cursor: pointer; font-size: 14px; line-height: 1;
}
.look-pop-x:hover { border-color: var(--border-2); }
.look-pop-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px;
}
@media (max-width: 560px) { .look-pop-grid { grid-template-columns: repeat(2, 1fr); } }
.look-opt {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  cursor: pointer; padding: 6px; border: 2px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
}
.look-opt input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.look-opt img {
  width: 100%; height: auto; background: #ffffff;
  border: 1px solid var(--border); border-radius: 4px;
}
.look-opt-name { font-size: 12px; font-weight: 600; text-align: center; }
.look-opt:hover { border-color: var(--accent); }
.look-opt.cur {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
}
.look-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.look-opt-check {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: none; align-items: center; justify-content: center; font-size: 12px;
}
.look-opt.cur .look-opt-check { display: flex; }

/* typical footprint cross-section diagram (confirmation page) */
/* frosted-ice typical section (Pete's approved design, 2026-07-18):
   the SVG carries its own dark blueprint card, legend and dimensions -
   styling lives inline in the SVG, CSS only sizes it. Full-width and
   stacked: the denser drafting text needs the room. */
.xsec { display: block; width: 100%; max-width: 700px; height: auto; margin: 8px 0 2px; }
/* primary + 2nd-most-common configurations side by side (wrap when narrow) */
.xsec-pair { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
.xsec-cell { min-width: 0; }
.xsec-sub { margin: 8px 0 0; font-weight: 700; }
.suffix-input {
  display: flex; align-items: center; margin-top: 8px; max-width: 340px;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.suffix-input input {
  flex: 1; min-width: 0; font: inherit; font-size: 14px;
  padding: 7px 4px 7px 10px; border: none; outline: none;
  background: transparent; color: var(--text);
}
.suffix-input .suffix {
  flex: none; padding-right: 10px; font-size: 14px; color: var(--text-3);
  user-select: none; white-space: nowrap;
}
.suffix-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.custom-config { margin-top: 10px; }
.width-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.width-fields label {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 12px; color: var(--text-2);
}
.width-fields input {
  width: 96px; font: inherit; font-size: 14px; padding: 6px 8px;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
.width-fields input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
/* (the old flat-diagram classes - xsec-ws/esmt/cl*/dim/feet/legend/
   swatch - retired with the frosted-ice port; rollback lives in
   _xsec_svg_legacy.html + git) */
.cl-offset-alert {
  margin-top: 8px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--st-amber) 55%, transparent);
  background: color-mix(in srgb, var(--st-amber) 12%, transparent);
}
.cl-offset-alert .cl-offset-head { margin: 0 0 6px; font-size: 13px; }

.results { width: 100%; border-collapse: collapse; font-size: 14px; }
.results th { text-align: left; font-weight: 500; color: var(--text-2); font-size: 13px; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--border-2); }
.results td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--border); }
.results .num { text-align: right; font-variant-numeric: tabular-nums; }

.actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.confirm-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.confirm-actions p { margin: 0; }

.addon-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--border);
  cursor: pointer; user-select: none;
}
.addon-row:first-of-type { border-top: none; }
.addon-label { flex: 1; font-size: 14px; }
.addon-check { position: absolute; opacity: 0; pointer-events: none; }
.addon-toggle {
  flex: none; position: relative; width: 40px; height: 22px;
  border-radius: 999px; background: var(--border-2);
  transition: background 0.15s;
}
.addon-toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); transition: left 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.addon-check:checked ~ .addon-toggle { background: var(--accent); }
.addon-check:checked ~ .addon-toggle::after { left: 21px; }
.addon-check:focus-visible ~ .addon-toggle {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.addon-state { flex: none; width: 26px; font-size: 13px; color: var(--text-3); }
.addon-state::before { content: attr(data-off); }
.addon-check:checked ~ .addon-state { color: var(--accent); }
.addon-check:checked ~ .addon-state::before { content: attr(data-on); }

.layout-picker { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 4px; }
.layout-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  width: 150px; padding: 8px; cursor: pointer;
  border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.layout-card:hover { border-color: var(--text-3); }
.layout-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.layout-card input { position: absolute; opacity: 0; pointer-events: none; }
.layout-card img {
  width: 100%; height: 190px; object-fit: contain;
  background: #fff; border-radius: 4px;
}
.layout-noimg {
  display: flex; align-items: center; justify-content: center;
  height: 190px; color: var(--text-3); font-size: 12px;
  border: 1px dashed var(--border-2); border-radius: 4px;
}
.layout-name { font-size: 12px; text-align: center; color: var(--text-2); word-break: break-all; }
.analysis-layers { margin: 10px 0 4px; }
.warn-list {
  list-style: none; margin: 12px 0 4px; padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--st-amber) 45%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--st-amber) 8%, var(--surface));
  font-size: 13px; color: var(--text-2);
}
.warn-list li { padding: 2px 0; }
.warn-list li::before { content: "⚠ "; color: var(--st-amber); }
/* Layout QC panel: findings about OUR pages (docs/layout-pipeline.md) */
.qc-list li::before { content: "▧ "; color: var(--text-2); }
.qc-sev {
  display: inline-block; min-width: 62px; text-align: center;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; border-radius: 4px; padding: 1px 6px;
  margin-right: 6px;
}
.qc-binding { background: color-mix(in srgb, var(--st-red) 18%, var(--surface)); color: var(--st-red); }
.qc-cosmetic { background: color-mix(in srgb, var(--st-amber) 18%, var(--surface)); color: var(--st-amber); }
/* delivery scorecard (confirmation page): data-quality verdicts over
   the raw delivery - informational, never blocking */
.sc-pass { background: color-mix(in srgb, var(--st-green) 18%, var(--surface)); color: var(--st-green); }
.sc-warn { background: color-mix(in srgb, var(--st-amber) 18%, var(--surface)); color: var(--st-amber); }
.scorecard {
  margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: color-mix(in srgb, var(--text) 2%, transparent);
}
.scorecard-head { margin: 0 0 6px; font-size: 14px; }
.scorecard-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.scorecard-list li { padding: 3px 0; }
.back { display: inline-block; color: var(--text-2); font-size: 14px; margin-bottom: 12px; }

.form .field { margin: 0 0 16px; }
.form label { display: block; font-size: 13px; color: var(--text-2); margin: 0 0 5px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 14px;
  padding: 8px 10px; border: 1px solid var(--border-2);
  border-radius: var(--radius); background: var(--surface); color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.form input[type="file"] { padding: 8px; background: var(--bg); cursor: pointer; }

.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 22px 16px; text-align: center;
  border: 1.5px dashed var(--border-2); border-radius: var(--radius);
  color: var(--text-2); font-size: 13px;
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone.dragover, .dropzone:hover { border-color: var(--accent); }
.dropzone.dz-error { border-color: var(--st-red); }
.dropzone.dragover { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.dropzone .dz-icon { font-size: 20px; line-height: 1; color: var(--text-3); }
.dropzone .dz-file { color: var(--accent); font-weight: 500; }
.form .help { font-size: 12px; color: var(--text-3); margin: 5px 0 0; }

/* confirmation-page logo upload (prints lower-left on every exhibit) */
.logo-upload {
  position: relative; display: flex; align-items: center; gap: 10px;
  border: 1.5px dashed var(--border-2); border-radius: var(--radius);
  padding: 12px 14px; margin: 6px 0 2px;
  color: var(--text-2); font-size: 13px; cursor: pointer;
  transition: border-color 0.15s;
}
.logo-upload:hover { border-color: var(--accent); }
.logo-upload input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.form .error { font-size: 13px; color: var(--st-red); margin: 5px 0 0; }
.form-row { display: flex; gap: 14px; }
.form-row .field { flex: 1; }

/* ---- public pages (landing / pricing / account stubs) ---- */

.container-wide { max-width: 980px; }

.btn-lg { padding: 10px 18px; font-size: 15px; }

.hero { text-align: center; padding: 44px 0 36px; }
.hero-title { font-size: 34px; font-weight: 600; max-width: 640px; margin: 0 auto; }
.hero-sub { color: var(--text-2); max-width: 560px; margin: 14px auto 0; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 28px; }
.step { position: relative; }
.step h2 { margin: 10px 0 6px; font-size: 16px; }
.step p { margin: 0; font-size: 14px; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  color: var(--accent); font-size: 13px; font-weight: 600;
}

.sample { display: flex; gap: 22px; align-items: center; }
.sample-copy { flex: 1; }
.sample-copy h2 { margin-top: 0; }
.sample-thumb {
  flex: 0 0 240px; height: 170px; border-radius: var(--radius);
  border: 1.5px dashed var(--border-2); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 13px;
}

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.tier { display: flex; flex-direction: column; gap: 4px; }
.tier h2 { margin: 0; font-size: 16px; }
.tier-featured { border-color: var(--accent); }
.tier-price { font-size: 26px; font-weight: 600; margin: 4px 0; }
.tier-price .per { font-size: 13px; font-weight: 400; color: var(--text-3); }
.tier-list { list-style: none; padding: 0; margin: 0 0 14px; flex: 1; }
.tier-list li { font-size: 13px; color: var(--text-2); padding: 4px 0; border-top: 1px solid var(--border); }
.tier .btn { justify-content: center; }

.small { font-size: 13px; }
.muted { color: var(--text-3); }

.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 980px; margin: 0 auto; padding: 18px 20px 28px;
  border-top: 1px solid var(--border); font-size: 13px;
}
.footer-nav { display: inline-flex; gap: 14px; }
.footer-nav a { color: var(--text-2); }

@media (max-width: 720px) {
  .steps, .tiers { grid-template-columns: 1fr; }
  .sample { flex-direction: column; }
  .hero-title { font-size: 26px; }
  /* was display:none - Jobs/Account simply vanished on phones with no
     other way to reach them (#162). Compact and wrappable instead. */
  .appbar-nav { flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
  .appbar-nav a:not(.btn) { font-size: 13px; }
}

/* Drawing-type chooser (#87): three product cards on the data loading page */
.drawing-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 8px 0 18px; }
.drawing-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 18px 14px 14px; text-align: center; cursor: pointer;
  border: 2px solid var(--border); border-radius: 10px; background: var(--bg-2);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.drawing-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.drawing-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.drawing-logo { width: 64px; height: 64px; }
.dlogo-frame { fill: none; stroke: var(--text-2); stroke-width: 2.5; }
.dlogo-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dlogo-accent { fill: var(--accent); stroke: none; }
.dlogo-seal { fill: none; stroke: var(--bg-2); stroke-width: 2; }
.drawing-name { font-weight: 700; }
.drawing-desc { line-height: 1.35; }
.drawing-disclaimer { font-size: 12px; color: var(--st-amber); line-height: 1.35; }
.drawing-card.is-soon { cursor: not-allowed; }
.drawing-card.is-soon .drawing-logo,
.drawing-card.is-soon .drawing-name,
.drawing-card.is-soon .drawing-desc { opacity: 0.45; filter: grayscale(0.8); }
.soon-banner {
  position: absolute; top: 10px; right: -8px; transform: rotate(8deg);
  /* --on-accent, not #fff: the dark theme's accent is a LIGHT teal, so
     white-on-accent was 1.86:1 - illegible (#162). 7.7:1 now. */
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700;
  padding: 2px 10px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* Separate takings (#85): toggles inside a tract folder */
.sep-takes { margin: 6px 0 4px 21px; display: flex; flex-direction: column; gap: 4px; }
.sep-takes-row { display: inline-flex; align-items: center; gap: 8px; }
.sep-takes-label { font-size: 13px; }
.sep-takes-list { margin-left: 4px; font-size: 13px; }
.sep-takes-list summary { cursor: pointer; color: var(--text-2); }

/* Landowner grouping toggle + owner folders (Pete, 2026-07-16) */
.outputs-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.owner-group-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.owner-folder { border-top: 3px solid var(--border-2); }
.owner-folder > details > summary .oname { font-weight: 600; }
.owner-folder .parcel-folder { margin-left: 20px; border-top: 1px solid var(--border); }

/* Detail sheets choice (#88) */
.details-choice { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 14px; font-size: 14px; }
.details-choice label { display: flex; align-items: baseline; gap: 8px; }
.details-choice .details-fix { margin-left: 24px; color: var(--text-2); font-size: 13px; }
