:root {
  --text: #23211d; --muted: #6a655c; --line: #e4dfd5; --bg: #fbfaf7; --soft: #f3f0ea; --card: #fff;
  --blue: #1f5a8c; --blue-dark: #174770;
  --ok: #2c6e47; --ok-bg: #e8f3ec; --look: #8a5a12; --look-bg: #fbf1de; --look-line: #e0b25c;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; color: var(--text); background: var(--bg);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; line-height: 1.55; }
main { max-width: 1400px; margin: 0 auto; padding: 8px 24px 40px; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 16px 0 8px; }
h2 { font-size: 1.2rem; margin: 24px 0 8px; }
a { color: var(--blue); }
.small { font-size: 0.85rem; }
.muted { color: var(--muted); }
.lede { font-size: 1.05rem; max-width: 60em; margin: 0 0 16px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; border-bottom: 1px solid var(--line); }
.brand { white-space: nowrap; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.price { font-weight: 600; }
.button { display: inline-block; background: var(--blue); color: #fff; border: 2px solid var(--blue);
  padding: 8px 20px; border-radius: 6px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.secondary { background: #fff; color: var(--blue); }
.button.secondary:hover { background: var(--soft); }
.linkbtn { background: none; border: 0; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
form.inline { display: inline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
input, select { font: inherit; padding: 6px 8px; border: 1px solid #888; border-radius: 4px; max-width: 100%; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
.notice { background: var(--soft); border-left: 4px solid #888; padding: 10px 14px; margin: 12px 0; }
.ok-bg { background: var(--ok-bg); border-left-color: var(--ok); }
.look-bg { background: var(--look-bg); border-left-color: var(--look-line); }
.look-text { color: var(--look); font-weight: 600; }

.summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 6px; margin: 12px 0; }
.summary .num { font-size: 1.5rem; font-weight: 700; margin-right: 4px; }
.summary .ok .num { color: var(--ok); }
.summary .look .num { color: var(--look); }
.summary .button { margin-left: auto; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr); } }
.pane-title { font-size: 1rem; text-transform: none; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.doc-pane { position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow: auto;
  border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: var(--soft); }
@media (max-width: 1000px) { .doc-pane { position: static; max-height: none; } }
.page { position: relative; margin: 0 0 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.page img { display: block; width: 100%; height: auto; }
.box { position: absolute; border: 2px solid transparent; background: transparent; padding: 0; cursor: pointer; border-radius: 2px; }
.box:hover { border-color: var(--blue); }
.box.box-look { border-color: var(--look-line); border-style: dashed; }
.box.selected { border: 3px solid var(--blue); background: rgba(10, 79, 179, 0.12); }
.sheet { overflow: auto; background: #fff; }
.sheet table { border-collapse: collapse; font-size: 0.85rem; }
.sheet td { border: 1px solid var(--line); padding: 3px 6px; white-space: nowrap; }
pre.email { white-space: pre-wrap; background: #fff; padding: 12px; margin: 0; font: inherit; font-size: 0.95rem; }

dl.hdr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0 0 12px; }
dl.hdr dt { font-size: 0.8rem; color: var(--muted); }
dl.hdr dd { margin: 0; font-weight: 600; }
table.lines, table.orders, table.cols { width: 100%; border-collapse: collapse; }
table.lines th, table.orders th, table.cols th { text-align: left; font-size: 0.85rem; color: var(--muted);
  border-bottom: 2px solid var(--text); padding: 6px 8px; }
table.lines td, table.orders td, table.cols td { padding: 8px; vertical-align: top; border-bottom: 1px solid var(--line); }
.r { text-align: right; }
tr.line { cursor: pointer; }
tr.line:hover { background: var(--soft); }
tr.line.selected, tr.line.selected + tr.flagrow { background: #e3ecfa; }
tr.line.is-look { border-left: 4px solid var(--look-line); }
tr.line.is-ready { border-left: 4px solid var(--ok); }
tr.line:has(+ tr.flagrow) td { border-bottom: 0; }
tr.flagrow td { padding-top: 0; }
tr.flagrow.is-look { border-left: 4px solid var(--look-line); background: #fffaeb; }
tr.flagrow.is-ready { border-left: 4px solid var(--ok); }
.flagmsg { margin: 0 0 6px; color: var(--look); font-weight: 600; }
.sku { font-weight: 700; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.look { background: var(--look-bg); color: var(--look); }
form.fix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
form.fix label { margin: 0; flex-basis: 100%; font-size: 0.9rem; }
form.fix select { flex: 1 1 240px; min-width: 0; width: 100%; }
.order-pane { min-width: 0; overflow-x: auto; }
form.fix p { flex-basis: 100%; margin: 0; }
.actions { margin: 24px 0; display: flex; gap: 16px; align-items: center; }

.forward { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; margin: 12px 0; }
.forward p { margin: 0; }
.forward .address { font-size: 1.3rem; font-weight: 700; margin: 4px 0; }
.tabs { display: flex; gap: 20px; margin: 16px 0 0; }
.tabs a[aria-current] { font-weight: 700; color: var(--text); text-decoration: none; border-bottom: 3px solid var(--text); }
.count { display: inline-block; min-width: 1.6em; text-align: center; background: var(--soft); border-radius: 999px; padding: 0 8px; font-size: 0.9rem; }
.upload { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 8px; }
.upload form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.plans { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plans legend { font-weight: 600; margin-bottom: 8px; }
.plan { display: grid; gap: 2px; border: 2px solid var(--line); border-radius: 6px; padding: 12px 16px; font-weight: 400; margin: 0; cursor: pointer; }
.plan:has(input:checked) { border-color: var(--blue); background: #f2f6fd; }
.plan-name { font-weight: 700; font-size: 1.1rem; }
.plan-price { font-weight: 600; }
form.start, form.narrow { max-width: 760px; }
form.start input[type=email], form.narrow input[type=email] { width: 100%; max-width: 420px; display: block; margin-bottom: 8px; }
form.narrow .button, form.start .button { margin-top: 12px; }

.footer { max-width: 1400px; margin: 0 auto; padding: 16px 24px 40px; border-top: 1px solid var(--line); }
.steps { padding-left: 1.3em; max-width: 60em; }
.steps li { margin-bottom: 8px; }
.security { font-weight: 600; }

.zoom { position: sticky; top: -12px; z-index: 2; margin: -12px -12px 12px; padding: 12px; background: var(--soft); border-bottom: 1px solid var(--line); }
.zoom-img { background-repeat: no-repeat; background-color: #fff; box-shadow: 0 0 0 2px var(--blue); }
.zoom-img { position: relative; }
.zoom-mark { position: absolute; border: 3px solid var(--blue); background: rgba(10, 79, 179, 0.10); border-radius: 2px; }
.plan input { justify-self: start; margin: 0 0 4px; }

/* prospect page */
.trow { display: block; min-height: 1.5em; padding: 0 6px; border-radius: 3px; }
.trow.selected { background: #e3ecfa; box-shadow: inset 3px 0 0 var(--blue); }
.email-rows { background: #fff; padding: 12px 6px; font-size: 0.95rem; white-space: pre-wrap; }
.test-note { border: 2px solid var(--text); border-radius: 6px; padding: 10px 16px; margin: 12px 0 16px; font-weight: 600; }
.ordernav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 8px 0 0; padding: 0; list-style: none; }
.order-sec { border-top: 3px solid var(--text); margin-top: 36px; padding-top: 4px; scroll-margin-top: 8px; }
.order-sec h2 { font-size: 1.35rem; margin: 12px 0 4px; }
.caught { margin: 0 0 4px; }
.caught strong { color: var(--look); }
.planted { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; margin-left: 4px; }
.made-up { font-size: 0.75rem; color: var(--muted); font-weight: 400; }

/* prospect page, warm version (2026-12-03) */
.pp > section { max-width: 880px; margin-left: auto; margin-right: auto; }
.pp > section.pp-orders { max-width: 1240px; }
.pp-orders > h2, .pp-orders > p { max-width: 880px; }
.pp h2 { font-size: 1.25rem; font-weight: 650; margin: 0 0 10px; }
.pp-hero { padding: 28px 0 8px; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.02em; }
.pp-hero h1 { font-size: 2rem; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.01em; }
.pp-sub { font-size: 1.1rem; color: #3b3832; margin: 0; max-width: 40em; }

.pp-example { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin: 28px 0;
  box-shadow: 0 1px 2px rgba(60, 50, 30, 0.05); }
.ex-side p { margin: 0; }
.ex-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px !important; }
.ex-written { font-size: 1.2rem; font-family: Georgia, "Times New Roman", serif; }
.ex-note { font-size: 0.85rem; color: var(--muted); margin-top: 6px !important; }
.ex-arrow { font-size: 1.8rem; color: var(--muted); }
.ex-sku { font-size: 1.35rem; font-weight: 700; color: var(--ok); }
.ex-desc { margin-top: 2px !important; }
.ex-qty { font-size: 0.9rem; color: var(--muted); margin-top: 4px !important; }
@media (max-width: 640px) {
  .pp-example { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .ex-arrow { transform: rotate(90deg); justify-self: start; font-size: 1.4rem; }
  .pp-hero h1 { font-size: 1.6rem; }
}

.pp-facts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pp-facts li { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line); }
.pp-facts li:last-child { border-bottom: 0; }
.fact-num { font-size: 1.15rem; font-weight: 700; }
@media (max-width: 640px) { .pp-facts li { grid-template-columns: 1fr; gap: 2px; } }

.pp-try { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin: 28px 0; }
.pp-try p { margin: 0 0 10px; }
.try-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 14px 0 10px; }
.try-form input[type=file] { border: 1px dashed #b9b2a5; background: var(--bg); padding: 10px; border-radius: 8px; flex: 1 1 260px; }
.try-error { background: var(--look-bg); border-radius: 8px; padding: 10px 14px; }

.pp-orders { margin: 36px 0 12px; }
.pp-order { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; }
.pp-order > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 14px 18px; }
.pp-order > summary::-webkit-details-marker { display: none; }
.pp-order > summary:hover { background: var(--soft); border-radius: 10px; }
.po-title { font-weight: 650; }
.po-meta { color: var(--muted); font-size: 0.92rem; }
.po-open { margin-left: auto; color: var(--blue); font-size: 0.92rem; }
.po-open::after { content: "Open"; }
.pp-order[open] .po-open::after { content: "Close"; }
.pp-order[open] > summary { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.pp-order .split { padding: 16px; }
.ok-text { color: var(--ok); }
.pp .order-sec { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 0; }

/* softer status marks everywhere */
tr.line.is-look, tr.flagrow.is-look { border-left: 3px solid var(--look-line); }
tr.line.is-ready { border-left: 3px solid transparent; }
tr.flagrow.is-look { background: #fdf8ee; }
.caught { color: #4a3f2c; }
.planted { font-weight: 600; }
.pill { font-weight: 600; }
.pp-after { margin: 16px 0; }
.pp-wide { max-width: 880px; }
.legal section ul { padding-left: 1.2em; }
.legal section li { margin-bottom: 6px; }

.choices { margin: 4px 0 2px; padding-left: 1.1em; font-size: 0.92rem; }
.choices li { margin: 2px 0; }
.fullsize { margin: -6px 0 12px; }
table.lines .pill { margin-bottom: 4px; }
table.lines td { overflow-wrap: anywhere; }
.legal section ul { padding-left: 1.2em; }
.legal section li { margin-bottom: 6px; }
table.lines td.r, table.lines td:nth-child(4) { white-space: nowrap; overflow-wrap: normal; }
/* hero: a window onto the real PO page, then what was entered */
.pp-example.has-crop { grid-template-columns: 1fr; gap: 14px; }
.pp-example.has-crop .ex-po, .pp-example.has-crop .ex-arrow { display: none; }
.ex-crop { margin: 0; }
.ex-crop-box { display: block; position: relative; overflow: hidden; width: 100%; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; }
.ex-crop-box img { position: absolute; max-width: none; height: auto; }
.ex-band { position: absolute; left: 0; right: 0; background: rgba(240, 196, 60, 0.28);
  border-top: 2px solid rgba(214, 160, 20, 0.8); border-bottom: 2px solid rgba(214, 160, 20, 0.8); }
.ex-crop figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
/* one-click fixes on a flagged line */
.fix.pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.fix.pick form { margin: 0; }
.pick-q { width: 100%; margin: 0; font-weight: 600; }
.button.choice { background: #fff; color: var(--text); border: 1px solid var(--line); text-align: left;
  font-weight: 400; padding: 8px 12px; max-width: 100%; white-space: normal; }
.button.choice:hover { border-color: var(--ok); }
.fix.find { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.fix.find label { width: 100%; font-size: 0.9rem; color: var(--muted); }
.fix.find input { flex: 1 1 220px; min-width: 0; }
table.lines td:first-child { white-space: nowrap; overflow-wrap: normal; }
