/* PaidCorrectly app pages (/check, result, checkout, paid, report, 404) in the G1 "Aurora" look.
   Same class names and markup as before; only the visuals changed. Fonts are self-hosted (/assets/fonts, from the
   design build); the brand mark is /assets/brand-mark.svg. No third-party requests. */
[hidden] { display: none !important; }
.callout[hidden] { display:none; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
:root {
  --ink:#0B1B2B; --muted:#475569; --subtle:#64748B; --line:#E2E8F0; --line-strong:#D5DCE6; --surface:#F7F9FC; --card:#fff;
  --brand:#5B50F0; --brand-600:#4A3FE0; --brand-700:#3B31C4; --brand-50:#F1F0FF; --brand-100:#E4E1FF;
  --lagoon:#14B8C8; --coral:#FF7A59; --citrine:#F5B83D;
  --ok:#0E9F6E; --ok-text:#0B7A55; --ok-50:#E8F7F1; --under:#D97706; --under-text:#B45309; --under-50:#FEF5E7; --err:#DC2626; --err-text:#B91C1C; --err-50:#FEF2F2;
  --warn: var(--under-50);
  --sans: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-card: 0 1px 2px rgb(11 27 43 / .04), 0 8px 24px -12px rgb(11 27 43 / .12);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; font: 16px/1.55 var(--sans); font-feature-settings: "cv11", "ss01"; color:var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(42rem 22rem at 100% -6rem, rgb(91 80 240 / .13), transparent 70%),
    radial-gradient(30rem 18rem at 72% -8rem, rgb(20 184 200 / .11), transparent 70%),
    /* The mark's coral-to-citrine overlap, as a faint trace where the indigo and lagoon fields meet. */
    radial-gradient(24rem 13rem at 86% 2rem, rgb(255 122 89 / .085), transparent 70%),
    radial-gradient(20rem 12rem at 74% 5rem, rgb(245 184 61 / .075), transparent 70%),
    #fff;
  background-repeat: no-repeat; min-height: 100vh; }
::selection { background: var(--brand-100); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
a { color: var(--brand); text-underline-offset: 3px; }
main { max-width: 1040px; margin: 0 auto; padding: 20px 20px 64px; }
@media (min-width: 640px) { main { padding: 28px 32px 80px; } }

/* Staging / test-copy banner */
.test-banner { background: var(--ink); color:#E2E8F0; text-align:center; font-size:12.5px; padding:6px 16px; letter-spacing: .01em; }
.test-banner.staging { background: var(--under-50); color: var(--under-text); font-weight:600; font-size:13px; padding:7px 16px; border-bottom: 1px dashed rgb(217 119 6 / .5); }

/* Header + footer */
header.site { position: relative; max-width:none; margin:0; padding: 0 20px; height: 64px; display:flex; justify-content:space-between; align-items:center; gap:12px;
  border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .82); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
header.site::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; background: linear-gradient(90deg, transparent, var(--brand) 26%, var(--lagoon) 52%, var(--coral) 72%, var(--citrine) 86%, transparent); opacity:.55; }
@media (min-width: 640px) { header.site { padding: 0 max(32px, calc((100% - 1040px) / 2 + 32px)); } }
header.site .link { color: var(--ink); text-decoration:none; font-size:14px; font-weight:500; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background:#fff; box-shadow: 0 1px 2px rgb(11 27 43 / .05); transition: background-color .15s, border-color .15s; }
header.site .link:hover { background: var(--surface); border-color:#B8C2D1; }
footer.site { max-width:1040px; margin:0 auto; padding: 22px 20px 40px; display:block; color:var(--subtle); font-size:13.5px; line-height:1.6; border-top:1px solid var(--line); }
@media (min-width: 640px) { footer.site { padding: 24px 32px 48px; } }
footer.site p { margin: 0; max-width: 72ch; }
.brand { display:inline-flex; align-items:center; gap:10px; font-weight:600; font-size:17px; letter-spacing:-0.01em; color:var(--ink); text-decoration:none; border-radius: 8px; }
.brand img { display:block; height: 28px; width: auto; }
footer.site .brand-foot { display:inline-flex; margin-bottom: 12px; }
footer.site .brand-foot img { height: 24px; }
.print-logo { display:none; }

/* Type */
h1 { font-size: 28px; line-height:1.15; font-weight: 600; letter-spacing:-0.022em; margin: 6px 0 12px; text-wrap: balance; }
@media (min-width: 640px) { h1 { font-size: 34px; } }
h2 { font-size: 19px; line-height:1.3; font-weight:600; letter-spacing:-0.015em; margin: 28px 0 10px; text-wrap: balance; }
h3 { font-size: 16px; font-weight:600; margin: 20px 0 6px; }
p { text-wrap: pretty; }
.lead { font-size:17px; color:var(--muted); max-width: 680px; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .07em; font-size: 12.5px; font-weight:600; color: var(--brand); margin: 0; }
.notice { background: var(--under-50); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-size: 14px; border: 1px solid rgb(217 119 6 / .2); }

/* Surfaces */
.card { background:var(--card); border:1px solid var(--line); border-radius:16px; padding: 10px 20px 24px; margin: 18px 0; box-shadow: var(--shadow-card); }
@media (min-width: 640px) { .card { padding: 14px 32px 32px; } }
.card > h2:first-child, .card > .eyebrow:first-child { margin-top: 18px; }
.card > h1:first-child { margin-top: 18px; }
.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 18px; }

/* Forms */
label { display:flex; flex-direction:column; font-size:14px; font-weight:500; color: var(--ink); gap:6px; }
label.inline { flex-direction:row; align-items:center; gap:8px; margin-top: 10px; font-weight: 400; }
label.choice { flex-direction:row; align-items:center; gap:10px; font-size:15px; font-weight:400; padding: 9px 12px; border:1px solid var(--line); border-radius:10px; margin: 6px 0; cursor: pointer; transition: border-color .15s, background-color .15s; }
label.choice:hover { border-color: #B8C2D1; background: var(--surface); }
label.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand) inset; }
input, select { font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); height: 40px; padding: 0 12px; border:1px solid var(--line-strong); border-radius:10px; background:#fff; min-width:0;
  box-shadow: 0 1px 2px rgb(11 27 43 / .04); transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #94A3B8; }
input:hover, select:hover { border-color: #B8C2D1; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(91 80 240 / .18); }
input[type="checkbox"], input[type="radio"] { height: 18px; width: 18px; padding: 0; accent-color: var(--brand); box-shadow:none; flex: none; }
input[inputmode="decimal"], input[inputmode="numeric"] { font-variant-numeric: tabular-nums; }
select { padding-right: 32px; appearance: none; -webkit-appearance: none;
  background: #fff linear-gradient(45deg, transparent 50%, #64748B 50%) no-repeat calc(100% - 13px) 50% / 5px 5px,
    linear-gradient(-45deg, transparent 50%, #64748B 50%) no-repeat calc(100% - 18px) 50% / 5px 5px; background-color:#fff; }
table.edit input { width: 100%; min-width: 92px; }
table.edit input[type="date"] { min-width: 140px; }
table.edit td { padding: 6px 6px; border-bottom: 0; }
table.edit th { padding: 6px 6px; }

/* Tables */
table { border-collapse: collapse; width:100%; }
th, td { text-align:left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { font-weight:600; color: var(--subtle); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
td.num, th.num { text-align:right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num { font-family: var(--mono); font-size: 13.5px; letter-spacing: -0.01em; }
.scroll { overflow-x:auto; border: 1px solid var(--line); border-radius: 12px; }
.scroll > table th:first-child, .scroll > table td:first-child { padding-left: 14px; }
.scroll > table th:last-child, .scroll > table td:last-child { padding-right: 14px; }
.scroll > table tr:last-child td { border-bottom: 0; }
.scroll > table thead th { background: var(--surface); }
.nowrap { white-space:nowrap; }
.lines-wrap { max-width:100%; -webkit-overflow-scrolling:touch; }

/* Buttons */
button, .button { font: inherit; font-size: 15px; font-weight: 600; cursor:pointer; border-radius: 10px; padding: 0 18px; height: 44px; border: 1px solid transparent; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center; gap: 8px; transition: background-color .15s, border-color .15s, transform .1s, box-shadow .15s; }
.primary { background: var(--brand); border-color: var(--brand); color:#fff; box-shadow: 0 1px 2px rgb(11 27 43 / .10), inset 0 1px 0 rgb(255 255 255 / .14); }
.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.primary:active { background: var(--brand-700); transform: translateY(1px); box-shadow: none; }
.primary:disabled { opacity:.55; cursor: not-allowed; transform:none; }
.secondary { background:#fff; border-color: var(--line-strong); color: var(--ink); box-shadow: 0 1px 2px rgb(11 27 43 / .05); }
.secondary:hover { background: var(--surface); border-color: #B8C2D1; }
.secondary:active { background: #EEF2F7; transform: translateY(1px); }
.link { background:none; border:none; color: var(--brand); padding: 4px 0; height: auto; font-weight: 600; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; box-shadow: none; display: inline; }
.link:hover { color: var(--brand-700); }
td .link { font-size: 13px; font-weight: 500; color: var(--subtle); }
td .link:hover { color: var(--err-text); }

/* Disclosure, questions */
details { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; background: var(--surface); }
details[open] { padding-bottom: 16px; background: #fff; }
summary { cursor:pointer; font-weight:600; padding: 13px 0; list-style: none; display:flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display:none; }
summary::after { content:""; width: 8px; height: 8px; flex: none; margin-right: 4px; border-right: 2px solid #64748B; border-bottom: 2px solid #64748B; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
fieldset.question { border:1px solid var(--line); border-radius:14px; margin: 14px 0; padding: 12px 16px 14px; background: #fff; }
legend { font-weight:600; padding: 0 6px; font-size: 15px; }

/* Callouts */
.callout { background: var(--brand-50); border: 1px solid rgb(91 80 240 / .16); border-radius: 12px; padding: 12px 16px; margin: 14px 0; font-size: 15px; }
.callout p { margin: 4px 0; }
.callout.warn { background: var(--under-50); border-color: rgb(217 119 6 / .25); }
.callout.error { background: var(--err-50); border-color: rgb(220 38 38 / .22); color: var(--ink); }
.callout.error strong { color: var(--err-text); }
.callout ul { margin: 6px 0 0; padding-left: 20px; }

/* Result figures */
.stat-row { display:flex; flex-wrap:wrap; gap: 12px; margin: 16px 0; }
.stat { flex: 1 1 180px; border:1px solid var(--line); border-radius:12px; padding: 14px 16px; background: var(--surface); }
.stat-label { display:block; font-size: 12.5px; font-weight: 500; color: var(--subtle); }
.stat-value { display:block; margin-top: 4px; font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.range-line { font-size: 19px; line-height: 1.45; font-weight: 600; margin: 8px 0; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.range-note { margin: 4px 0; color: var(--muted); }
.disclaimer-short { font-size: 13.5px; line-height: 1.6; color: var(--subtle); margin: 8px 0 16px; }
.nudge { font-size: 13px; color: var(--subtle); margin: 6px 0 0; }
.disclaimer { font-size: 13px; line-height: 1.6; color: var(--subtle); border-top:1px solid var(--line); padding-top: 14px; margin-top: 28px; }
.tag { background: var(--under-50); color: var(--under-text); border-radius: 999px; font-size: 12px; font-weight: 600; padding: 2px 8px; white-space: nowrap; }
.toolbar { display:flex; gap:10px; flex-wrap:wrap; margin: 14px 0; }
ol.steps { padding-left: 22px; } ol.steps li { margin: 6px 0; font-variant-numeric: tabular-nums; }
blockquote.template { border-left: 3px solid var(--brand); margin: 10px 0; padding: 10px 16px; color: var(--ink); background: var(--surface); border-radius: 0 10px 10px 0; }
.reading h3 { background: var(--brand-50); padding: 8px 12px; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .lines-wrap { overflow:visible !important; }
  .test-banner, header.site, footer.site, .no-print { display:none !important; }
  /* Black-and-white logo at the top of the printed report (the colour header is hidden in print). */
  .print-logo { display:block; height: 22px; width:auto; margin: 0 0 14px; }
  body { background:#fff; font-size: 12px; } main { padding: 0; max-width:none; }
  .card { border:none; padding:0; margin:0; box-shadow:none; }
  .scroll { border: 0; }
  section, .reading { break-inside: avoid-page; }
  table { break-inside: auto; } tr { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
/* Short tables (tiers, bonuses) sit outside a scroller, so they must fit a 360px phone. */
#tiers, #spiffs { width: 100%; table-layout: auto; }
#tiers input, #spiffs input { min-width: 0; }
@media (max-width: 560px) {
  #tiers td, #tiers th, #spiffs td, #spiffs th { padding-left: 3px; padding-right: 3px; }
  #tiers td:last-child, #spiffs td:last-child { width: 1%; white-space: nowrap; }
}
/* The offer box on the free result. */
.callout > h2:first-child { margin-top: 6px; }
.callout > ul + .button { margin-top: 16px; }
.callout:has(> .button.primary) { padding: 18px 20px; background: linear-gradient(135deg, rgb(91 80 240 / .07), rgb(20 184 200 / .06) 60%, rgb(245 184 61 / .06)); }
@media (max-width: 560px) {
  .stat-row { display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px; } .stat-value { font-size: 19px; }
}
.stat { display:flex; flex-direction:column; } .stat-value { margin-top: auto; padding-top: 4px; }
/* /sample/: the example label on the sample free result. */
.sample-pill { display:inline-flex; align-items:center; gap:8px; margin: 0 0 14px; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.4;
  color: var(--under-text); background: var(--under-50); box-shadow: inset 0 0 0 1px rgb(217 119 6 / .28); }
.sample-pill::before { content:""; width: 7px; height: 7px; flex: none; border-radius: 999px; background: linear-gradient(135deg, var(--coral), var(--citrine)); }

/* Footer links + site-wide disclaimer (injected at build time from web/site-config.mjs). */
footer.site .foot-links { display:flex; flex-wrap:wrap; gap: 6px 18px; margin: 14px 0 10px; }
footer.site .foot-links a { color: var(--muted, #475569); text-decoration: underline; text-underline-offset: 2px; }
footer.site .foot-links a:hover { color: var(--ink, #0f172a); }
footer.site .foot-disclaimer { font-size: 12.5px; color: var(--subtle); max-width: 80ch; }

/* Gap direction on the free result (page 18). */
.direction-line { font-weight: 600; margin: 6px 0 0; }
.direction-line[data-direction="under"] { color: var(--brand-700); }

/* Deals and clawbacks on phones (page 18): one stacked card per row instead of a sideways-scrolling table.
   Each cell shows its own label (data-label); "Your share %", "Statement paid" and the clawback dates/amounts are keyed. */
@media (max-width: 719px) {
  .scroll.cards { overflow: visible; border: 0; border-radius: 0; }
  .cards table.edit, .cards table.edit tbody { display: block; width: 100%; }
  .cards table.edit thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cards table.edit tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; margin: 0 0 14px; padding: 16px 14px 12px;
    background: #fff linear-gradient(90deg, var(--brand), var(--lagoon) 45%, var(--coral) 75%, var(--citrine)) top / 100% 3px no-repeat;
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); }
  .cards table.edit td, .scroll.cards > table td:first-child, .scroll.cards > table td:last-child { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; min-width: 0; }
  .cards table.edit td::before { content: attr(data-label); font-size: 13px; font-weight: 500; color: var(--muted); }
  .cards table.edit input, .cards table.edit input[type="date"] { min-width: 0; width: 100%; }
  .cards table.edit td.c-label { grid-column: 1 / -1; }
  .cards table.edit td.c-label input { font-weight: 600; }
  .cards table.edit td.key { background: var(--brand-50); border-radius: 10px; padding: 8px 10px 10px; box-shadow: 0 0 0 1px rgb(91 80 240 / .16) inset; }
  .cards table.edit td.key::before { color: var(--brand-700); font-weight: 600; }
  .cards table.edit td.c-del { grid-column: 1 / -1; align-items: flex-end; }
  .cards table.edit td.c-del::before { content: none; }
  .cards table.edit td label.inline { margin-top: 2px; }
  /* Deals: label · amount, closed · share, statement paid · multiplier, invoiced · customer paid */
  #deals td.c-label { order: 1; } #deals td.c-amount { order: 2; } #deals td.c-closed { order: 3; }
  #deals td.c-share { order: 4; } #deals td.c-paid { order: 5; } #deals td.c-mult { order: 6; }
  #deals td.c-inv { order: 7; } #deals td.c-coll { order: 8; } #deals td.c-del { order: 9; }
  /* Clawbacks: label · original, taken back · closed, cancelled · earned, contract start · terms */
  #claws td.c-label { order: 1; } #claws td.c-orig { order: 2; } #claws td.c-taken { order: 3; }
  #claws td.c-closed { order: 4; } #claws td.c-cancel { order: 5; } #claws td.c-earned { order: 6; }
  #claws td.c-start { order: 7; } #claws td.c-tm { order: 8; } #claws td.c-mp { order: 9; } #claws td.c-td { order: 10; } #claws td.c-del { order: 11; }
}
table.edit input[type="checkbox"] { width: 18px; min-width: 0; }
@media (max-width: 719px) {
  .cards table.edit input[type="date"] { padding: 0 8px; font-size: 14px; }
  .cards table.edit td label.inline { font-size: 13.5px; color: var(--muted); }
}

/* "Import your deals" (design/import-spec.md): entry row at the top of "2. Your deals" and the 4-step sheet.
   Phones: full-screen sheet with a sticky footer and safe-area padding. Wider screens: a centered dialog (640px). */
.imp-entry { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; margin: 4px 0 14px; padding: 14px 16px;
  border: 1px dashed rgb(91 80 240 / .35); border-radius: 14px; background: linear-gradient(135deg, rgb(91 80 240 / .05), rgb(20 184 200 / .05)); }
.imp-entry p { margin: 0; }
.imp-entry-title { font-weight: 600; font-size: 15px; }
.imp-entry .imp-what { grid-column: 1 / -1; justify-self: start; font-size: 13.5px; }
@media (max-width: 480px) { .imp-entry { grid-template-columns: 1fr; } .imp-entry > .secondary { width: 100%; margin-top: 8px; } }
.imp-what-panel .imp-privacy { margin: 10px 0 4px; }
.imp-what-panel { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 10px; margin: 0 0 14px; background: var(--surface); font-size: 14px; }
.imp-toast { margin: 0 0 14px; background: var(--ok-50); border-color: rgb(14 159 110 / .25); }
.imp-expect h3 { font-size: 14px; margin: 14px 0 4px; }
.imp-expect ul { margin: 0; padding-left: 20px; font-size: 14px; color: var(--muted); }
.imp-expect li { margin: 3px 0; }

dialog.imp { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; color: var(--ink); }
dialog.imp::backdrop { background: rgb(11 27 43 / .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.imp-sheet { display: flex; flex-direction: column; height: 100%; background: #fff; }
@media (min-width: 720px) {
  dialog.imp { width: min(640px, calc(100% - 48px)); height: auto; max-height: calc(100% - 64px); margin: auto; }
  .imp-sheet { height: auto; max-height: calc(100vh - 64px); border-radius: 18px; box-shadow: 0 24px 64px -16px rgb(11 27 43 / .35); overflow: hidden; }
}
.imp-head { position: relative; padding: calc(14px + env(safe-area-inset-top)) 56px 12px 20px; border-bottom: 1px solid var(--line); }
.imp-head::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background: linear-gradient(90deg, var(--brand), var(--lagoon) 45%, var(--coral) 75%, var(--citrine)); opacity: .7; }
.imp-head h2 { margin: 2px 0 0; font-size: 20px; outline: none; }
.imp-step { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.imp-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 40px; height: 40px; padding: 0; font-size: 24px; font-weight: 400; line-height: 1;
  background: none; border: 0; color: var(--subtle); border-radius: 10px; }
.imp-x:hover { background: var(--surface); color: var(--ink); }
.imp-body { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 14px 20px 20px; -webkit-overflow-scrolling: touch; }
.imp-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgb(255 255 255 / .96); }
.imp-foot button { flex: 1 1 0; } @media (min-width: 720px) { .imp-foot button { flex: 0 0 auto; min-width: 120px; } }
.imp-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 12px 20px 0; padding: 8px 12px; border-radius: 10px; background: var(--ok-50); color: var(--ok-text); font-size: 13.5px; font-weight: 500; }
.imp-privacy svg { flex: none; margin-top: 2px; }
.imp-lede { margin: 0 0 4px; font-size: 15px; }
.imp-drop { margin: 14px 0 10px; padding: 18px 16px; border: 1.5px dashed var(--line-strong); border-radius: 14px; text-align: center; background: var(--surface); }
.imp-drop .primary { width: 100%; max-width: 280px; }
.imp-limits { margin: 10px 0 0; }
.imp-file { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-align: left; }
.imp-file-name { font-weight: 600; overflow-wrap: anywhere; }
.imp-help { margin-top: 12px; }
.imp-inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 500; }
.imp-inline select { width: auto; max-width: 100%; }
.imp-map { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.imp-field { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.imp-field.req { background: var(--brand-50); border-color: rgb(91 80 240 / .2); }
.imp-field label { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; }
.imp-field select { width: 100%; }
.imp-req { font-size: 12px; font-weight: 600; color: var(--brand-700); text-transform: uppercase; letter-spacing: .05em; }
.imp-eg { overflow-wrap: anywhere; font-family: var(--mono); font-size: 12.5px; }
.imp-count { font-size: 16px; margin: 4px 0 8px; }
.imp-skipped { margin: 0 0 10px; padding: 10px 12px 10px 28px; border-radius: 10px; background: var(--surface); color: var(--muted); }
.imp-dates { padding: 8px 12px; border-radius: 10px; background: var(--brand-50); }
.imp-modes .choice { align-items: flex-start; }
.imp-modes .choice input { margin-top: 3px; }
.imp-error ul { color: var(--muted); font-size: 14px; }
/* Preview: a table on wide screens, one card per deal on phones (like the page-18 deal cards). */
.imp-table td { font-size: 14px; } .imp-table td.p-num { font-family: var(--mono); font-size: 13.5px; }
.imp-table tr.off td:not(.p-inc) { opacity: .45; text-decoration: line-through; }
.imp-table .p-inc label.inline { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 719px) {
  .imp-table, .imp-table tbody { display: block; }
  .imp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .imp-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0 0 12px; padding: 14px 14px 12px;
    background: #fff linear-gradient(90deg, var(--brand), var(--lagoon) 45%, var(--coral) 75%, var(--citrine)) top / 100% 3px no-repeat;
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); }
  .imp-table td { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .imp-table td::before { content: attr(data-label); font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
  .imp-table td.p-inc, .imp-table td.p-label { grid-column: 1 / -1; }
  .imp-table td.p-inc::before { content: none; }
  .imp-table td.p-label { font-weight: 600; font-size: 15px; }
  .imp-table td.key { background: var(--brand-50); border-radius: 10px; padding: 6px 10px 8px; box-shadow: 0 0 0 1px rgb(91 80 240 / .16) inset; }
  .imp-table td.key::before { color: var(--brand-700); font-weight: 600; }
  .imp-table tr.off { box-shadow: none; background: var(--surface); }
}
dialog.imp select { background-color: #fff; background-image: linear-gradient(45deg, transparent 50%, #64748B 50%), linear-gradient(-45deg, transparent 50%, #64748B 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
