:root {
  /* DigiCero brand palette. Blue stays the primary interaction color
     (buttons, links, focus, progress) -- yellow is a deliberately narrow
     accent (only the "Recomendado" badges), never a primary action color.
     Green/amber stay semantic (success/warning) and are NOT brand-colored. */
  --blue: #0A4EEB;
  --blue-dark: #0638B8;
  --blue-light: #2F8CFF;
  --blue-soft: #eff6ff;
  --yellow: #FFC400;
  --yellow-light: #FFD84D;
  --ink: #111827;
  --muted: #667085;
  --line: #e4e8ef;
  --surface: #ffffff;
  --page: #f5f7fb;
  --green: #16a36a;
  --green-soft: #ecfdf3;
  --amber: #d97706;
  --amber-soft: #fff8e7;
  --red: #EF3340;
  --red-light: #FF5A5F;
  --shadow: 0 12px 34px rgba(36, 51, 77, 0.07);

  /* Semantic aliases (design-token layer) -- same values as above, named by
     role rather than color, for anything that reads more clearly that way. */
  --brand-primary: var(--blue);
  --brand-secondary: var(--ink);
  --brand-accent: var(--yellow);
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --background-page: var(--page);
  --background-surface: var(--surface);
  --status-success: var(--green);
  --status-warning: var(--amber);
  --status-error: var(--red);
  --border-default: var(--line);

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -10%, #fff 0, var(--page) 42%); }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(37, 99, 235, .23); outline-offset: 2px; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

.app-header { height: 68px; padding: 0 max(24px, calc((100vw - 1240px)/2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(228,232,239,.9); background: rgba(255,255,255,.88); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: -.4px; }
.brand-logo { height: 28px; width: auto; display: block; }
.auth-gate-marketing .brand-logo { height: 36px; }
.brand-icon { height: 34px; width: auto; display: block; }
.auth-gate-card .brand-icon { height: 48px; }
.header-actions { display: flex; gap: 13px; align-items: center; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; color: #475467; background: #f8fafc; border: 1px solid var(--line); border-radius: 99px; padding: 7px 11px; font-size: 12px; font-weight: 650; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,106,.1); }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); background: white; border-radius: 10px; color: #64748b; cursor: pointer; }
.auth-user-label { font-size: 12px; font-weight: 650; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.auth-gate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 15% -10%, #eef3ff 0, var(--page) 48%); padding: 24px; overflow-y: auto; }
.auth-gate.hidden { display: none; }
.auth-gate-shell { width: min(94vw, 980px); margin: auto; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: stretch; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }

.auth-gate-marketing { padding: 48px 44px; display: flex; flex-direction: column; gap: 20px; background: linear-gradient(165deg, #f8fafc 0%, #eef3ff 100%); border-right: 1px solid var(--line); }
.auth-gate-marketing h1 { margin: 6px 0 0; }
.auth-gate-marketing .subtitle { margin: 0; }
.auth-gate-features { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.auth-gate-features li { display: flex; gap: 13px; align-items: flex-start; }
.auth-gate-feature-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; background: white; color: var(--blue); border: 1px solid var(--line); border-radius: 10px; }
.auth-gate-feature-icon svg { width: 17px; height: 17px; }
.auth-gate-features strong { display: block; font-size: 13px; }
.auth-gate-features small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; line-height: 1.4; }

.auth-gate-card { text-align: center; padding: 48px 38px; display: flex; flex-direction: column; align-items: center; gap: 12px; justify-content: center; }
.auth-gate-card h2 { font-size: 19px; margin: 4px 0 0; letter-spacing: -.3px; }
.auth-gate-card p { color: var(--muted); font-size: 12.5px; margin: 0 0 8px; line-height: 1.5; }
.auth-gate-trust { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--green); font-size: 10.5px; font-weight: 650; }
.auth-gate-trust svg { width: 14px; height: 14px; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 80px; }
.intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 1.25px; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; letter-spacing: -1.4px; margin: 0; }
.subtitle { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.privacy-note { display: flex; align-items: center; gap: 10px; min-width: 280px; padding: 12px 14px; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 12px; color: var(--green); }
.privacy-note svg { width: 20px; height: 20px; }
.privacy-note span { display: flex; flex-direction: column; gap: 2px; }
.privacy-note strong { color: #344054; font-size: 12px; }
.privacy-note small { color: var(--muted); font-size: 11px; }

.stepper { max-width: 1040px; margin: 0 auto 30px; display: flex; align-items: center; }
.step { border: 0; padding: 0; background: transparent; display: flex; align-items: center; gap: 9px; text-align: left; cursor: pointer; opacity: .46; }
.step:disabled { cursor: default; }
.step.active, .step.complete { opacity: 1; }
.step-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: white; border: 1.5px solid #ccd4e0; color: var(--muted); font-size: 12px; font-weight: 750; flex: 0 0 auto; }
.step.active .step-number { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 5px 12px rgba(37,99,235,.25); }
.step.complete .step-number { background: var(--green-soft); color: var(--green); border-color: #a6e8c9; }
.step strong, .step small { display: block; white-space: nowrap; }
.step strong { font-size: 12px; }
.step small { font-size: 10px; color: var(--muted); margin-top: 2px; }
.step-line { height: 1px; flex: 1; background: #dce1e8; margin: 0 16px; min-width: 25px; }
.step-line.complete { background: #8edbb6; }

.view { display: none; animation: view-in .28s ease; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.setup-card { max-width: 850px; margin: 0 auto; padding: 32px; }
.section-heading { display: flex; gap: 14px; align-items: flex-start; }
.section-heading h2, .review-toolbar h2 { margin: 0; font-size: 20px; letter-spacing: -.35px; }
.section-heading p, .review-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.section-icon { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; }
.section-icon.blue { background: var(--blue-soft); color: var(--blue); }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.format-section { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.choice-label strong, .choice-label span { display: block; }
.choice-label strong { font-size: 14px; }
.choice-label span { color: var(--muted); font-size: 11px; margin-top: 4px; }
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; }
.format-option { min-height: 82px; display: flex; align-items: center; gap: 11px; padding: 13px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; position: relative; }
.format-option:hover { border-color: #9bb7f7; }
.format-option.selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.format-option > span:nth-child(2) { min-width: 0; flex: 1; }
.format-option strong, .format-option small { display: block; }
.format-option strong { font-size: 11px; }
.format-option small { color: var(--muted); font-size: 9px; line-height: 1.35; margin-top: 4px; }
.format-symbol { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; font-size: 9px; font-weight: 900; }
.format-symbol.xml { color: #7c3aed; background: #f3efff; }.format-symbol.pdf { color: var(--red); background: #fef2f2; }.format-symbol.image { color: var(--green); background: var(--green-soft); }.format-symbol.zip { color: var(--blue); background: var(--blue-soft); }
.format-option i { width: 15px; height: 15px; border: 1.5px solid #bac4d2; border-radius: 50%; }
.format-option.selected i { border: 4px solid var(--blue); background: white; }
.format-option:disabled, .type-option:disabled { opacity: .55; cursor: not-allowed; }
.format-option:disabled:hover, .type-option:disabled:hover { border-color: var(--line); transform: none; }
.format-option em, .type-option em { position: absolute; right: 10px; top: -8px; padding: 3px 6px; border-radius: 99px; background: #94a3b8; color: white; font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.route-note { margin-top: 14px; padding: 11px 13px; border-radius: 9px; background: #f8fafc; color: #596579; font-size: 10px; line-height: 1.5; }
.route-note strong { color: var(--ink); }
.pdf-layout-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.layout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.layout-option { min-height: 72px; display: flex; align-items: center; gap: 10px; position: relative; padding: 12px 13px; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; }
.layout-option:hover { border-color: #9bb7f7; }.layout-option.selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.layout-option > span { flex: 1; }.layout-option strong,.layout-option small { display: block; }.layout-option strong { font-size: 11px; }.layout-option small { color: var(--muted); font-size: 9px; line-height: 1.4; margin-top: 4px; }
.layout-option i { width: 15px; height: 15px; flex: 0 0 auto; border: 1.5px solid #bac4d2; border-radius: 50%; }.layout-option.selected i { border: 4px solid var(--blue); background: white; }
.layout-option em { position: absolute; right: 10px; top: -8px; padding: 3px 6px; border-radius: 99px; background: var(--yellow); color: var(--ink); font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.define-footer { margin-top: 25px; }
.define-footer > span { color: var(--muted); font-size: 10px; }
.upload-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid #cfe0ff; background: var(--blue-soft); border-radius: 12px; }
.upload-summary span, .upload-summary strong, .upload-summary small { display: block; }
.upload-summary span { width: fit-content; color: var(--blue); background: white; border: 1px solid #cfe0ff; border-radius: 99px; padding: 3px 7px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.upload-summary strong { margin-top: 7px; font-size: 14px; }.upload-summary small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.xml-preview { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.xml-preview > span { width: 58px; height: 58px; display: grid; place-items: center; background: #f3efff; color: #7c3aed; border-radius: 14px; font-size: 15px; font-weight: 900; }
.xml-preview > strong { color: var(--ink); margin-top: 14px; font-size: 12px; }.xml-preview > small { margin-top: 5px; font-size: 9px; }
.xml-preview > div { width: 80%; margin-top: 22px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; font-size: 9px; line-height: 1.7; }
.xml-unavailable { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; color: var(--muted); }
.xml-unavailable > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: #f3efff; color: #7c3aed; font-size: 15px; font-weight: 900; }
.xml-unavailable > strong { margin-top: 15px; color: var(--ink); font-size: 13px; }.xml-unavailable > small { max-width: 290px; margin-top: 6px; font-size: 10px; line-height: 1.55; }
.xml-unavailable .secondary-button { margin-top: 18px; }
.xml-viewer { min-height: 420px; display: flex; flex-direction: column; }
.xml-tabs { display: flex; gap: 5px; padding: 7px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.xml-tabs button { border: 0; border-radius: 7px; background: transparent; padding: 7px 10px; color: var(--muted); font-size: 10px; font-weight: 750; cursor: pointer; }
.xml-tabs button.active { color: var(--blue); background: white; box-shadow: 0 1px 4px rgba(30,41,59,.12); }
.xml-source { flex: 1; min-height: 365px; margin: 0; padding: 18px; overflow: auto; background: #101827; color: #d7e2f2; font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: left; white-space: pre; }
.preview-dialog { width: min(1100px, calc(100% - 32px)); height: min(88vh, 850px); padding: 0; border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 25px 90px rgba(15,23,42,.35); }
.preview-dialog::backdrop { background: rgba(15,23,42,.68); backdrop-filter: blur(4px); }
.preview-dialog-head { height: 62px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: white; }
.preview-dialog-head strong,.preview-dialog-head small { display: block; }.preview-dialog-head strong { font-size: 13px; }.preview-dialog-head small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.preview-dialog-head .dialog-close { position: static; width: 38px; height: 38px; border-radius: 9px; background: #f3f5f8; }
.confirm-dialog { width: min(440px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 30px; text-align: center; box-shadow: 0 22px 75px rgba(15,23,42,.3); }
.confirm-dialog::backdrop { background: rgba(15,23,42,.58); backdrop-filter: blur(3px); }
.confirm-warning { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: #fff7e8; border: 1px solid #f6d59c; color: var(--amber); font-size: 22px; font-weight: 850; }
.confirm-dialog h2 { margin: 0; font-size: 21px; }.confirm-dialog p { margin: 10px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.confirm-actions.three { grid-template-columns: 1fr 1fr 1fr; }
.danger-button { min-height: 40px; border: 0; border-radius: 9px; padding: 0 14px; background: var(--red); color: white; font-size: 10px; font-weight: 750; cursor: pointer; }
.danger-button:hover { background: #b91c1c; }
.restart-button { color: #596579; }
.large-document-preview { height: calc(100% - 62px); overflow: auto; background: #e9edf3; display: grid; place-items: center; padding: 18px; }
.large-document-preview object { width: 100%; height: 100%; min-height: 600px; border: 0; background: white; }
.large-document-preview img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 8px 30px rgba(15,23,42,.18); }
.large-document-preview .xml-source.large { width: 100%; height: 100%; min-height: 0; border-radius: 9px; }
.large-document-preview .xml-viewer { width: min(760px, 100%); background: white; }
.type-option { border: 1.5px solid var(--line); border-radius: 14px; padding: 17px; display: flex; align-items: center; gap: 12px; text-align: left; background: white; cursor: pointer; transition: .18s ease; position: relative; }
.type-option:hover { border-color: #a9bce8; transform: translateY(-1px); }
.type-option.selected { border-color: var(--blue); background: #f8fbff; box-shadow: 0 0 0 3px rgba(37,99,235,.07); }
.type-icon { display: grid; place-items: center; width: 38px; height: 38px; background: #f2f4f7; color: #64748b; border-radius: 10px; flex: 0 0 auto; }
.selected .type-icon { background: var(--blue-soft); color: var(--blue); }
.type-option > span:nth-child(2) { flex: 1; }
.type-option strong, .type-option small { display: block; }
.type-option strong { font-size: 13px; }
.type-option small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.radio-dot { width: 17px; height: 17px; border: 1.5px solid #cbd5e1; border-radius: 50%; position: relative; }
.selected .radio-dot { border-color: var(--blue); }
.selected .radio-dot:after { content: ""; width: 8px; height: 8px; background: var(--blue); border-radius: 50%; position: absolute; inset: 3px; }
.divider { display: flex; align-items: center; gap: 13px; color: #64748b; font-size: 11px; font-weight: 750; margin: 28px 0 16px; }
.divider:before, .divider:after { content: ""; height: 1px; background: var(--line); flex: 1; }
.drop-zone { border: 1.5px dashed #b7c4d8; border-radius: 15px; background: #fbfcfe; min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: .18s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--blue); background: var(--blue-soft); }
.upload-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); margin-bottom: 12px; }
.upload-icon svg { width: 23px; height: 23px; }
.drop-zone h3 { margin: 0; font-size: 14px; }
.drop-zone p { margin: 6px 0 9px; color: var(--muted); font-size: 12px; }
.drop-zone p span { color: var(--blue); font-weight: 700; }
.drop-zone small { color: #98a2b3; font-size: 10px; }
.sample-row { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; margin-top: 15px; }
.text-button { border: 0; background: transparent; color: var(--blue); font-weight: 700; font-size: 11px; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; padding: 5px; }
.text-button:hover { color: var(--blue-dark); text-decoration: underline; }
.file-queue { display: grid; gap: 8px; margin-top: 17px; }
.queue-file { display: flex; gap: 11px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.queue-file-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #fef2f2; color: #e24b4b; font-size: 9px; font-weight: 800; }
.queue-file-icon.image { background: #eefbf4; color: var(--green); }
.queue-file > div { flex: 1; min-width: 0; }
.queue-file strong, .queue-file small { display: block; }
.queue-file strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-file small { font-size: 10px; color: var(--muted); margin-top: 3px; }
.queue-file.has-error { border-color: #fecaca; background: #fffafa; }.queue-file.has-error small { color: #b42318; line-height: 1.35; }.queue-status { flex: 0 0 auto; border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 800; }.queue-status.ready { color: var(--green); background: var(--green-soft); }.queue-status.error { color: var(--red); background: #fee2e2; }
.remove-file { border: 0; background: #f8fafc; width: 28px; height: 28px; border-radius: 7px; color: #94a3b8; cursor: pointer; }
.remove-file:hover { background: #fef2f2; color: var(--red); }
.card-footer { margin: 22px -32px -32px; padding: 18px 32px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: #fbfcfe; border-radius: 0 0 18px 18px; }
.queue-summary strong, .queue-summary span { display: block; }
.queue-summary strong { font-size: 12px; }
.queue-summary span { color: var(--muted); font-size: 10px; margin-top: 2px; }
.primary-button, .secondary-button { border-radius: 10px; min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-size: 12px; font-weight: 750; transition: .16s ease; }
.primary-button { background: var(--blue); border: 1px solid var(--blue); color: white; box-shadow: 0 5px 12px rgba(37,99,235,.18); }
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.secondary-button { background: white; border: 1px solid #d5dae2; color: #475467; }
.secondary-button:hover { border-color: #a8b2c1; background: #f8fafc; }
.full { width: 100%; }
.compact { min-height: 36px; padding: 0 13px; }

.processing-card { max-width: 590px; margin: 55px auto; padding: 52px 60px 40px; text-align: center; }
.processing-card h2 { margin: 0; font-size: 24px; letter-spacing: -.5px; }
.processing-card > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.processing-visual { width: 90px; height: 90px; margin: 0 auto 24px; position: relative; }
.scan-doc { position: absolute; inset: 8px 18px; background: #fff; border: 2px solid #b7caf9; border-radius: 9px; box-shadow: 0 10px 26px rgba(37,99,235,.18); padding: 20px 10px; overflow: hidden; }
.scan-doc span { display: block; height: 3px; background: #dce6fb; margin-bottom: 7px; border-radius: 9px; }
.scan-doc span:nth-child(2) { width: 70%; }
.scan-doc i { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--blue); box-shadow: 0 0 8px var(--blue); animation: scan 1.5s infinite ease-in-out; }
@keyframes scan { 0%,100% { transform: translateY(0); } 50% { transform: translateY(48px); } }
.spark { position: absolute; color: var(--blue); font-weight: 900; animation: sparkle 1.4s infinite; }
.spark-one { right: 4px; top: 5px; }.spark-two { left: 2px; bottom: 12px; animation-delay: .5s; }
@keyframes sparkle { 50% { transform: scale(1.5) rotate(45deg); opacity: .45; } }
.progress-track { height: 8px; background: #edf1f6; border-radius: 99px; overflow: hidden; margin-top: 25px; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), #60a5fa); border-radius: inherit; transition: width .2s; }
.processing-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 7px; }
.processing-steps { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: center; gap: 22px; color: #98a2b3; font-size: 10px; }
.processing-steps span { display: inline-flex; align-items: center; gap: 5px; }
.processing-steps i { width: 15px; height: 15px; border: 1px solid #cdd5df; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-style: normal; }
.processing-steps .done { color: var(--green); }.processing-steps .done i { background: var(--green-soft); border-color: #a5e5c6; }
.processing-steps .active { color: var(--blue); }.processing-steps .active i { border-color: var(--blue); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.review-toolbar { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.quality-score { display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.quality-score > span { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; color: var(--green); border: 3px solid #86d8b4; font-size: 10px; font-weight: 800; }
.quality-score strong, .quality-score small { display: block; }.quality-score strong { font-size: 10px; }.quality-score small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.upload-failures { margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: var(--red); font-size: 12px; }
.upload-failures strong { display: block; margin-bottom: 4px; }
.upload-failures ul { margin: 0; padding-left: 18px; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.document-sidebar { padding: 0; overflow: hidden; box-shadow: 0 8px 24px rgba(36,51,77,.05); }
.sidebar-title { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.sidebar-title > div:first-child span,.sidebar-title > div:first-child small { display: block; }.sidebar-title > div:first-child span { color: var(--ink); font-size: 13px; font-weight: 800; }.sidebar-title > div:first-child small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.document-table-actions { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 700; }
.document-table-header,.document-list-item { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(110px, .28fr) minmax(130px, .3fr); align-items: center; column-gap: 16px; }
.document-table-header { padding: 9px 18px; background: #f8fafc; color: #7a8699; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .55px; }
.document-list { display: grid; }
.document-list-item { border: 0; border-top: 1px solid #edf0f4; background: #fff; padding: 11px 18px; cursor: pointer; text-align: left; width: 100%; }
.document-list-item:hover { background: #f8fafc; }
.document-list-item.active { background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.document-name-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.document-list-item .doc-mini { width: 29px; height: 34px; display: grid; place-items: center; background: white; color: var(--blue); border: 1px solid var(--line); border-radius: 6px; font-size: 8px; font-weight: 800; }
.document-name-cell > span:last-child { min-width: 0; }.document-list-item strong, .document-list-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-list-item strong { font-size: 10px; }.document-list-item small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.document-type-cell { color: #596579; font-size: 10px; font-weight: 650; }
.document-status-cell { width: fit-content; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; }.document-status-cell i { width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; font-style: normal; }.document-status-cell.pending { color: var(--amber); background: var(--amber-soft); }.document-status-cell.done { color: var(--green); background: var(--green-soft); }.document-status-cell.error { color: var(--red); background: #fef2f2; }.document-status-cell.skipped { color: var(--muted); background: #f1f4f8; }
.secondary-button svg { width: 14px; }
.review-main { overflow: hidden; box-shadow: 0 8px 24px rgba(36,51,77,.05); }
.document-topbar { height: 65px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.document-title { display: flex; gap: 10px; align-items: center; }
.document-title strong, .document-title small { display: block; }.document-title strong { font-size: 12px; }.document-title small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.pdf-badge { width: 34px; height: 38px; display: grid; place-items: center; background: #fef2f2; border: 1px solid #fecaca; border-radius: 7px; color: #dc2626; font-size: 8px; font-weight: 800; }
.pdf-badge.image { background: #eefbf4; border-color: #bbefd5; color: var(--green); }
.status-badge { display: inline-flex; gap: 6px; align-items: center; border-radius: 99px; padding: 6px 9px; font-size: 9px; font-weight: 750; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.warning { color: var(--amber); background: var(--amber-soft); }.status-badge.success { color: var(--green); background: var(--green-soft); }
.review-columns { display: grid; grid-template-columns: minmax(260px, .82fr) minmax(430px, 1.5fr); min-height: 555px; }
.preview-panel { background: #f1f4f8; padding: 16px; border-right: 1px solid var(--line); }
.fields-panel { padding: 16px 19px; min-width: 0; }
.panel-label { display: flex; align-items: center; justify-content: space-between; height: 27px; color: #667085; text-transform: uppercase; letter-spacing: .7px; font-weight: 800; font-size: 9px; }
.preview-actions { display: flex; gap: 6px; }.mini-button { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #d5dce6; border-radius: 7px; background: white; color: #64748b; cursor: pointer; }.mini-button[hidden] { display: none; }
.document-preview { min-height: 475px; margin-top: 8px; border: 1px solid #d7dde7; background: white; border-radius: 7px; padding: 25px 20px; overflow: hidden; transition: .2s ease; box-shadow: 0 4px 14px rgba(51,65,85,.09); }
.document-preview.zoomed { transform: scale(1.13); transform-origin: top left; }
.document-preview img { width: 100%; max-height: 440px; object-fit: contain; }
.document-preview:has(object) { padding: 0; }
.document-preview object { width: 100%; height: 475px; border: 0; display: block; border-radius: 7px; background: white; }
.status-badge.error { color: var(--red); background: #fef2f2; border-color: #fecaca; }
.status-badge.error i { background: var(--red); }
.mock-doc-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #e8edf4; padding-bottom: 15px; }
.mock-logo { font-size: 13px; font-weight: 900; color: #2e4f8c; }.mock-doc-type { color: var(--muted); font-size: 9px; text-align: right; }.mock-doc-type strong { display: block; color: var(--ink); font-size: 13px; }
.mock-doc-body { color: #475467; font-size: 8px; line-height: 1.7; padding-top: 14px; }.mock-doc-body b { color: var(--ink); }.mock-doc-row { display: flex; justify-content: space-between; gap: 8px; }.mock-doc-box { background: #f8fafc; border: 1px solid #edf0f4; padding: 9px; border-radius: 4px; margin: 12px 0; }
.mock-doc-table { width: 100%; border-collapse: collapse; margin: 15px 0; }.mock-doc-table th, .mock-doc-table td { border-bottom: 1px solid #e7ebf0; padding: 5px 2px; text-align: left; }.mock-doc-table th:last-child, .mock-doc-table td:last-child { text-align: right; }
.mock-total { width: 55%; margin-left: auto; }.mock-total > div { display: flex; justify-content: space-between; padding: 3px; }.mock-total .grand { border-top: 1px solid #cfd7e3; margin-top: 3px; padding-top: 6px; color: var(--ink); font-weight: 900; }
.pdf-placeholder { height: 430px; display: grid; place-items: center; text-align: center; color: var(--muted); }.pdf-placeholder svg { width: 50px; height: 50px; color: #e05252; }.pdf-placeholder strong { display: block; color: var(--ink); margin-top: 12px; font-size: 11px; }.pdf-placeholder small { display: block; margin-top: 4px; font-size: 9px; }
.autosave { display: inline-flex; align-items: center; gap: 5px; color: var(--green); text-transform: none; letter-spacing: 0; font-weight: 650; }.autosave i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.field-table-header { display: grid; grid-template-columns: 130px 1fr 82px; gap: 8px; color: #98a2b3; font-size: 8px; text-transform: uppercase; letter-spacing: .6px; font-weight: 800; padding: 8px 9px 6px; border-bottom: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 130px 1fr 82px; gap: 8px; align-items: center; padding: 7px 9px; border-bottom: 1px solid #edf0f4; position: relative; }
.field-row.needs-review { background: #fffaf0; box-shadow: inset 3px 0 0 #f1b74b; }
/* has-error (a confirm attempt was actually rejected) is visually distinct
   from needs-review (a confidence hint that doesn't block confirming) --
   red instead of amber, plus an icon, not just a background tint, since a
   color change alone turned out to be easy to miss. */
.field-row.has-error { background: #fef2f2; box-shadow: inset 3px 0 0 var(--red); }
.field-row .field-error-icon { position: absolute; right: 99px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--red); pointer-events: none; }
.field-row label { color: #596579; font-size: 9px; font-weight: 700; }
.field-row input, .field-row select { height: 29px; width: 100%; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 0 7px; color: var(--ink); font-size: 10px; font-weight: 600; }
.field-row input:hover, .field-row select:hover { border-color: #d7dde7; background: white; }.field-row input:focus, .field-row select:focus { border-color: var(--blue); background: white; outline: 3px solid rgba(37,99,235,.1); }
.confidence { display: flex; align-items: center; gap: 6px; font-size: 8px; font-weight: 800; color: var(--green); }
.confidence-bar { width: 36px; height: 4px; background: #e9edf3; border-radius: 9px; overflow: hidden; }.confidence-bar i { display: block; height: 100%; background: currentColor; border-radius: inherit; }
.confidence.low { color: var(--amber); }.confidence.edited { color: var(--blue); }
.items-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-bottom: 7px; }.items-heading strong { font-size: 10px; }.text-button.small { font-size: 9px; }
.line-items-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.line-items-table { width: 100%; border-collapse: collapse; min-width: 350px; }.line-items-table th { text-align: left; font-size: 8px; color: #98a2b3; text-transform: uppercase; padding: 7px; background: #f8fafc; }.line-items-table td { border-top: 1px solid #edf0f4; padding: 4px; position: relative; }.line-items-table input { border: 1px solid transparent; height: 27px; width: 100%; border-radius: 5px; padding: 0 5px; font-size: 9px; }.line-items-table input:focus { border-color: var(--blue); outline: none; }.line-items-table th:nth-child(2), .line-items-table td:nth-child(2) { width: 60px; }.line-items-table th:nth-child(3), .line-items-table td:nth-child(3) { width: 90px; }.line-items-table th:last-child, .line-items-table td:last-child { width: 100px; }
.delete-line { border: 0; background: transparent; color: #a4adba; cursor: pointer; }.delete-line:hover { color: var(--red); }
.line-items-table td.needs-review { background: #fffaf0; box-shadow: inset 0 0 0 1px #f1b74b; }
.line-items-table td.has-error { background: #fef2f2; box-shadow: inset 0 0 0 1px var(--red); }
.line-items-table td.has-error input { padding-right: 20px; }
.line-items-table td .field-error-icon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--red); pointer-events: none; }
.review-footer { min-height: 62px; border-top: 1px solid var(--line); padding: 11px 19px; display: flex; align-items: center; justify-content: space-between; background: #fbfcfe; }.review-footer > span { color: var(--amber); font-size: 9px; display: flex; align-items: center; gap: 6px; }.review-footer > span.success { color: var(--green); }.review-footer > span.error { color: var(--red); font-weight: 700; }.review-footer > span.has-detail { flex-direction: column; align-items: flex-start; gap: 5px; }.review-footer > span.has-detail .hint-main { display: flex; align-items: center; gap: 6px; }.review-footer > div { display: flex; gap: 7px; }.review-footer svg { width: 14px; flex-shrink: 0; }
.error-detail { font-size: 9px; font-weight: 500; color: var(--muted); }.error-detail summary { cursor: pointer; color: var(--red); font-weight: 700; list-style: none; }.error-detail summary::-webkit-details-marker { display: none; }.error-detail summary::before { content: "▸ "; }.error-detail[open] summary::before { content: "▾ "; }.error-detail p { margin: 4px 0 0; white-space: pre-wrap; }
.zip-completeness-notice { margin: 14px 20px 0; padding: 10px 14px; border-radius: 10px; background: var(--amber-soft); border: 1px solid #f1cf8e; color: #8a5a0a; font-size: 10.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; }.zip-completeness-notice svg { width: 16px; flex-shrink: 0; color: var(--amber); }
.zip-completeness-notice.multi-invoice-notice { background: #fef2f2; border-color: #f3b6ba; color: #9f1c2d; }.zip-completeness-notice.multi-invoice-notice svg { color: var(--red); }

.export-mode-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.export-mode-grid { grid-template-columns: 1fr 1fr; }

.export-hero { max-width: 810px; margin: 12px auto 18px; padding: 34px 45px; text-align: center; }
.success-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; border: 1px solid #b9ebd3; }.success-icon svg { width: 25px; height: 25px; stroke-width: 2.2; }
.export-hero h2 { margin: 0; font-size: 25px; letter-spacing: -.5px; }.export-hero > p:not(.eyebrow) { color: var(--muted); font-size: 12px; }
.export-stats { display: flex; justify-content: center; margin: 25px 0; }.export-stats div { min-width: 130px; padding: 4px 22px; border-right: 1px solid var(--line); }.export-stats div:last-child { border: 0; }.export-stats span, .export-stats small { display: block; }.export-stats span { font-size: 17px; font-weight: 800; }.export-stats small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: left; }
.export-option { min-height: 78px; border: 1px solid var(--line); border-radius: 12px; background: white; display: flex; align-items: center; gap: 10px; padding: 13px; position: relative; cursor: pointer; transition: .16s ease; }.export-option:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(37,99,235,.1); }.export-option.recommended { border-color: #b9cdfc; background: #fbfdff; }.export-option > span:nth-child(2) { flex: 1; }.export-option strong, .export-option small { display: block; }.export-option strong { font-size: 11px; }.export-option small { color: var(--muted); font-size: 8px; margin-top: 3px; }.export-option svg { color: #94a3b8; width: 17px; }.export-option em { position: absolute; right: 8px; top: -8px; border-radius: 99px; background: var(--yellow); color: var(--ink); font-size: 7px; font-style: normal; padding: 3px 6px; text-transform: uppercase; font-weight: 800; letter-spacing: .4px; }
.format-icon { width: 31px; height: 34px; border-radius: 7px; display: grid; place-items: center; color: white; font-size: 10px; font-weight: 900; }.format-icon.excel { background: #16845b; }.format-icon.csv { background: #2563eb; }.format-icon.json { background: #7c3aed; font-size: 8px; }
.download-notice { min-height: 22px; color: var(--green); font-size: 10px; font-weight: 700; padding-top: 9px; }.new-batch { margin-top: 2px; }
.data-preview-card { max-width: 1050px; margin: 0 auto; overflow: hidden; box-shadow: 0 8px 24px rgba(36,51,77,.05); }.data-preview-heading { height: 58px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); }.data-preview-heading strong, .data-preview-heading small { display: block; }.data-preview-heading strong { font-size: 12px; }.data-preview-heading small { color: var(--muted); font-size: 9px; margin-top: 3px; }.data-preview-heading > span { background: #f2f4f7; border-radius: 99px; padding: 5px 8px; color: #667085; font-size: 9px; font-weight: 750; }.data-table-wrap { overflow: auto; }.data-table { border-collapse: collapse; width: 100%; min-width: 900px; font-size: 9px; }.data-table th { background: #f8fafc; color: #667085; text-transform: uppercase; letter-spacing: .4px; font-size: 8px; padding: 9px 11px; text-align: left; white-space: nowrap; }.data-table td { border-top: 1px solid #edf0f4; padding: 9px 11px; white-space: nowrap; }.data-table tr:hover td { background: #fbfdff; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); background: #172033; color: white; box-shadow: 0 10px 30px rgba(0,0,0,.2); border-radius: 10px; padding: 11px 15px; font-size: 11px; font-weight: 650; opacity: 0; pointer-events: none; transition: .22s; z-index: 50; }.toast.show { opacity: 1; transform: translate(-50%,0); }
.help-dialog { width: min(430px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 30px; box-shadow: 0 20px 70px rgba(15,23,42,.24); }.help-dialog::backdrop { background: rgba(15,23,42,.42); backdrop-filter: blur(3px); }.help-dialog h2 { margin: 16px 0 8px; font-size: 21px; }.help-dialog > p { color: var(--muted); font-size: 12px; line-height: 1.65; }.dialog-close { position: absolute; right: 15px; top: 13px; border: 0; background: transparent; color: #94a3b8; font-size: 24px; cursor: pointer; }.help-points { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }.help-points span { flex: 1 1 105px; background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; padding: 9px; font-size: 9px; font-weight: 750; }.help-points i { display: inline-grid; place-items: center; width: 18px; height: 18px; background: var(--blue-soft); color: var(--blue); border-radius: 50%; font-style: normal; margin-right: 4px; }

@media (max-width: 930px) {
  .review-columns { grid-template-columns: 1fr; }.preview-panel { border-right: 0; border-bottom: 1px solid var(--line); }.document-preview { min-height: 330px; }.review-toolbar { align-items: center; }
}
@media (max-width: 680px) {
  .auth-gate-shell { grid-template-columns: 1fr; }.auth-gate-marketing { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 26px; }.auth-gate-card { padding: 32px 26px; }
  .app-header { padding: 0 16px; }.page-shell { width: min(100% - 24px, 1180px); padding-top: 25px; }.intro-row { align-items: flex-start; margin-bottom: 24px; }.privacy-note { min-width: 0; padding: 10px; }.privacy-note small { display: none; }
  .stepper { justify-content: space-between; }.step { flex-direction: column; gap: 4px; text-align: center; }.step span:last-child small { display: none; }.step-line { margin: 0 6px; }.step strong { font-size: 10px; }
  .setup-card { padding: 22px 17px; }.type-grid,.format-grid,.layout-grid { grid-template-columns: 1fr; }.card-footer { margin: 20px -17px -22px; padding: 15px 17px; }.define-footer { align-items: stretch; flex-direction: column; gap: 12px; }.define-footer .primary-button { width: 100%; }.sample-row { flex-direction: column; }.processing-card { padding: 38px 20px; }.processing-steps { gap: 8px; flex-wrap: wrap; }
  .review-toolbar { align-items: flex-start; }.quality-score { padding: 6px; }.quality-score div { display: none; }.review-toolbar h2 { font-size: 18px; }.review-layout { margin: 0 -3px; }.document-sidebar { border-radius: 12px; }.review-main { border-radius: 12px; }.sidebar-title { padding: 10px 12px; }.sidebar-title > div:first-child small,.document-table-actions > span { display: none; }.document-table-header { display: none; }.document-list-item { grid-template-columns: minmax(0,1fr) auto; padding: 11px 12px; }.document-type-cell { display: none; }.document-status-cell { justify-self: end; }.document-topbar { padding: 0 12px; }.review-columns { min-height: 0; }.preview-panel { padding: 12px; }.fields-panel { padding: 12px; }.field-table-header, .field-row { grid-template-columns: 93px 1fr 65px; padding-left: 5px; padding-right: 5px; }.review-footer { flex-direction: column; align-items: stretch; gap: 10px; }.review-footer > div { justify-content: flex-end; }
  .export-hero { padding: 28px 16px; }.export-grid { grid-template-columns: 1fr; }.export-stats div { min-width: 0; flex: 1; padding: 3px 8px; }.data-preview-card { border-radius: 12px; }
  .preview-dialog { width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; }.large-document-preview { padding: 8px; }
}
@media (max-width: 430px) {
  .intro-row { display: block; }.privacy-note { margin-top: 16px; width: fit-content; }.subtitle { font-size: 13px; }.demo-pill { display: none; }.step strong { font-size: 9px; }.step-line { margin: 0 3px; }.upload-summary { align-items: flex-start; }.queue-file { align-items: flex-start; }.queue-status { display: none; }.document-topbar { align-items: center; }.status-badge { max-width: 105px; line-height: 1.2; }.field-table-header { display: none; }.field-row { grid-template-columns: 82px 1fr; }.confidence { grid-column: 2; justify-content: flex-end; margin-top: -4px; }.review-footer > div { display: grid; grid-template-columns: 1fr 1fr; }.review-footer .restart-button { grid-column: 1 / -1; }.primary-button { padding: 0 10px; }.confirm-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Market-validation survey (frontend/survey.js) -- reuses .help-dialog,
   .primary-button/.secondary-button/.text-button, and the .type-option
   card shape already defined above; no new design tokens needed. */
.quota-pill { display: inline-flex; align-items: center; color: var(--muted); background: #f8fafc; border: 1px solid var(--line); border-radius: 99px; padding: 7px 11px; font-size: 11px; font-weight: 650; }
.quota-pill.quota-low { color: var(--amber); background: var(--amber-soft); border-color: #f5d9a8; }
.quota-pill:empty { display: none; }

.survey-dialog { width: 640px; max-width: calc(100vw - 32px); }
.survey-questions { display: flex; flex-direction: column; gap: 18px; margin: 18px 0; text-align: left; max-height: 55vh; overflow-y: auto; }
.survey-question-text { font-size: 13px; font-weight: 650; color: var(--ink); margin-bottom: 8px; }
.survey-options { display: flex; flex-direction: column; gap: 8px; }
.survey-option { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; text-align: left; background: white; cursor: pointer; font-size: 13px; color: var(--ink); transition: .15s ease; }
.survey-option:hover { border-color: #a9bce8; }
.survey-option.selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(37,99,235,.07); font-weight: 650; }
.survey-other-input, .survey-free-text { margin-top: 8px; width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-family: inherit; color: var(--ink); }
.survey-free-text { min-height: 80px; resize: vertical; }
.survey-dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Help dialog's "answer the survey" teaser -- same icon-left card shape as
   .type-option, but a dashed highlight border (not a selectable option) so
   it reads as an incentive callout, not another radio choice. */
.survey-teaser-button { width: 100%; border: 1.5px dashed var(--blue); border-radius: 14px; padding: 14px; margin-top: 10px; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--blue-soft); cursor: pointer; transition: .18s ease; }
.survey-teaser-button:hover { border-style: solid; transform: translateY(-1px); }
.survey-teaser-icon { display: grid; place-items: center; width: 38px; height: 38px; background: white; color: var(--blue); border-radius: 10px; flex: 0 0 auto; }
.survey-teaser-button strong { display: block; font-size: 13px; color: var(--ink); }
.survey-teaser-button small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

@media (max-width: 430px) {
  .quota-pill { display: none; }
}
