/* Find my quotation: page styles (same palette as the landing and quote pages). */
:root {
    --bg: #070b14; --bg-2: #0b1120; --surface: #0f1729; --surface-2: #141e35; --surface-3: #1b2744;
    --line: rgba(148, 163, 184, .16); --line-strong: rgba(148, 163, 184, .3);
    --text: #e8edf7; --muted: #94a3b8; --faint: #64748b;
    --a1: #22d3ee; --a2: #8b5cf6; --ok: #34d399; --warn: #fbbf24; --bad: #f87171; --info: #60a5fa;
    --grad: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
    --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(139, 92, 246, .14));
    --radius: 20px; --radius-sm: 12px;
    --shadow: 0 18px 50px rgba(2, 6, 23, .45); --shadow-sm: 0 6px 18px rgba(2, 6, 23, .3);
    --ring: 0 0 0 3px rgba(34, 211, 238, .35); --header-h: 68px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Sora', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
[data-theme="light"] {
    --bg: #f5f7fb; --bg-2: #eef2f9; --surface: #ffffff; --surface-2: #f3f6fc; --surface-3: #e8eef8;
    --line: rgba(15, 23, 42, .1); --line-strong: rgba(15, 23, 42, .2);
    --text: #0f172a; --muted: #475569; --faint: #64748b;
    --a1: #0891b2; --a2: #7c3aed; --ok: #059669; --warn: #b45309; --bad: #dc2626; --info: #2563eb;
    --grad: linear-gradient(135deg, #0891b2 0%, #7c3aed 100%);
    --grad-soft: linear-gradient(135deg, rgba(8, 145, 178, .1), rgba(124, 58, 237, .1));
    --shadow: 0 18px 50px rgba(15, 23, 42, .12); --shadow-sm: 0 6px 18px rgba(15, 23, 42, .08);
    --ring: 0 0 0 3px rgba(8, 145, 178, .3);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(900px 420px at 12% -8%, rgba(34, 211, 238, .12), transparent 60%), radial-gradient(800px 380px at 92% 0%, rgba(139, 92, 246, .12), transparent 60%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
img { max-width: 100%; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.fq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fq-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.fq-skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--surface); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-strong); }
.fq-skip:focus { top: 10px; }
kbd { font: 600 11px var(--font-mono); padding: 2px 7px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line-strong); border-bottom-width: 2px; }

/* Header */
.fq-header { position: sticky; top: 0; z-index: 120; height: var(--header-h); background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.fq-header .fq-wrap { height: 100%; display: flex; align-items: center; gap: 22px; }
.fq-logo { display: flex; align-items: center; gap: 10px; font: 700 17px var(--font-display); }
.fq-logo img { height: 34px; width: auto; }
.fq-logo .mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #04121c; display: inline-flex; align-items: center; justify-content: center; }
.fq-nav { display: flex; gap: 4px; margin-left: 10px; }
.fq-nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px; transition: .2s; }
.fq-nav a:hover { color: var(--text); background: var(--surface-2); }
.fq-nav a.is-active { color: var(--text); background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fq-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.fq-icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: .2s; }
.fq-icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }

/* Buttons */
.fq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); transition: transform .15s, background .2s, border-color .2s; white-space: nowrap; }
.fq-btn:hover:not(:disabled) { background: var(--surface-2); transform: translateY(-1px); }
.fq-btn-primary { background: var(--grad); color: #04121c; border-color: transparent; }
.fq-btn-primary:hover:not(:disabled) { background: var(--grad); filter: brightness(1.08); }
.fq-btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.fq-btn-block { width: 100%; }
.fq-btn .fa-spin { animation: fq-spin 1s linear infinite; }
@keyframes fq-spin { to { transform: rotate(360deg); } }

/* Hero + search */
.fq-hero { padding: 54px 0 26px; text-align: center; }
.fq-eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--grad-soft); border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fq-hero h1 { font: 700 clamp(28px, 4.6vw, 46px)/1.12 var(--font-display); margin: 18px 0 10px; letter-spacing: -.02em; }
.fq-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fq-lead { max-width: 620px; margin: 0 auto 26px; color: var(--muted); font-size: 16px; }
.fq-form { max-width: 720px; margin: 0 auto; }
.fq-search { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 18px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-sm); transition: .2s; }
.fq-search:focus-within { box-shadow: var(--ring), var(--shadow-sm); border-color: var(--a1); }
.fq-search > i { color: var(--faint); }
.fq-search input { flex: 1; min-width: 0; height: 46px; background: transparent; border: 0; outline: 0; color: var(--text); font: 600 18px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.fq-search input::placeholder { color: var(--faint); font-weight: 400; opacity: .7; }
.fq-search .fq-icon-btn { width: 36px; height: 36px; border-radius: 10px; background: transparent; border-color: transparent; }
.fq-hint { margin: 12px 0 0; min-height: 22px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.fq-hint[data-tone="ok"] { color: var(--ok); } .fq-hint[data-tone="warn"] { color: var(--warn); }
.fq-recents { max-width: 720px; margin: 16px auto 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; font-size: 13px; color: var(--faint); }
.fq-chip { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; overflow: hidden; }
.fq-chip button { padding: 5px 10px; font: 600 12px var(--font-mono); color: var(--muted); }
.fq-chip button:hover { color: var(--text); background: var(--surface-2); }
.fq-chip .x { padding: 5px 9px 5px 6px; border-left: 1px solid var(--line); font-family: var(--font); color: var(--faint); }
.fq-link { color: var(--a1); font-weight: 600; font-size: 13px; }
.fq-link:hover { text-decoration: underline; }

/* Stage / status cards */
.fq-stage { padding: 14px 0 60px; flex: 1; }
.fq-offline { display: none; margin: 0 0 14px; padding: 10px 16px; border-radius: 12px; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .4); color: var(--warn); font-weight: 600; font-size: 14px; }
.fq-offline.is-on { display: block; }
.fq-msg { max-width: 720px; margin: 0 auto; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; animation: fq-rise .35s ease both; }
.fq-msg .ico { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--grad-soft); }
.fq-msg[data-tone="bad"] .ico { color: var(--bad); background: rgba(248, 113, 113, .12); }
.fq-msg[data-tone="warn"] .ico { color: var(--warn); background: rgba(251, 191, 36, .12); }
.fq-msg h2 { font: 700 20px var(--font-display); margin: 0 0 6px; }
.fq-msg p { margin: 0 auto 14px; color: var(--muted); max-width: 520px; }
.fq-msg .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@keyframes fq-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fq-skel { display: grid; gap: 14px; }
.fq-skel i { display: block; height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-3) 50%, var(--surface) 75%); background-size: 200% 100%; animation: fq-shimmer 1.3s infinite; }
@keyframes fq-shimmer { to { background-position: -200% 0; } }

/* Result layout */
.fq-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.fq-bar .grow { flex: 1; min-width: 120px; font-size: 12.5px; color: var(--faint); }
.fq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.fq-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.fq-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fq-side .fq-card { padding: 18px; }
.fq-side h3, .fq-sec h3 { font: 700 13px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.fq-doc { overflow: hidden; animation: fq-rise .4s ease both; }
.fq-sec { padding: 22px 26px; border-top: 1px solid var(--line); }
.fq-head { padding: 26px; display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; background: var(--grad-soft); }
.fq-kind { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fq-ref { margin: 4px 0 10px; font: 700 clamp(22px, 3.4vw, 30px) var(--font-mono); letter-spacing: .02em; outline: 0; word-break: break-all; }
.fq-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.fq-badge { display: inline-flex; gap: 7px; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid currentColor; }
.fq-badge[data-tone="ok"] { color: var(--ok); background: rgba(52, 211, 153, .1); }
.fq-badge[data-tone="warn"] { color: var(--warn); background: rgba(251, 191, 36, .1); }
.fq-badge[data-tone="bad"] { color: var(--bad); background: rgba(248, 113, 113, .1); }
.fq-badge[data-tone="info"] { color: var(--info); background: rgba(96, 165, 250, .1); }
.fq-badge[data-tone="muted"] { color: var(--muted); }
.fq-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 26px; margin: 0; }
.fq-meta dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; }
.fq-meta dd { margin: 2px 0 0; font-weight: 600; }
.fq-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fq-parties h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.fq-parties strong { font-size: 16px; }
.fq-parties p { margin: 2px 0; color: var(--muted); font-size: 14px; word-break: break-word; }
.fq-masked { font-family: var(--font-mono); font-size: 13px; }
.fq-lock-note { margin-top: 8px; font-size: 12.5px; color: var(--faint); display: flex; gap: 6px; align-items: center; }
.fq-verified { color: var(--ok); font-weight: 600; font-size: 12.5px; }

/* Validity + timeline */
.fq-valid { display: grid; gap: 8px; }
.fq-cd { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.fq-cd strong { font: 700 20px var(--font-mono); }
.fq-bar-track { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.fq-bar-track span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .6s ease; }
.fq-valid[data-tone="warn"] .fq-bar-track span { background: var(--warn); }
.fq-valid[data-tone="bad"] .fq-bar-track span { background: var(--bad); }
.fq-valid[data-tone="bad"] strong, .fq-valid[data-tone="warn"] strong { color: var(--warn); }
.fq-valid[data-tone="bad"] strong { color: var(--bad); }
.fq-steps { list-style: none; margin: 0; padding: 0; display: flex; }
.fq-steps li { flex: 1; position: relative; text-align: center; padding-top: 38px; font-size: 13px; font-weight: 600; color: var(--faint); }
.fq-steps li small { display: block; font-weight: 400; font-size: 12px; color: var(--faint); }
.fq-steps li::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--surface-3); }
.fq-steps li:first-child::before { display: none; }
.fq-steps li::after { content: ''; position: absolute; top: 6px; left: calc(50% - 10px); width: 20px; height: 20px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--line-strong); }
.fq-steps li[data-state="done"] { color: var(--text); } .fq-steps li[data-state="done"]::before { background: var(--ok); }
.fq-steps li[data-state="done"]::after { background: var(--ok); border-color: var(--ok); }
.fq-steps li[data-state="current"] { color: var(--text); } .fq-steps li[data-state="current"]::before { background: var(--a1); }
.fq-steps li[data-state="current"]::after { background: var(--bg); border-color: var(--a1); box-shadow: 0 0 0 4px rgba(34, 211, 238, .2); }
.fq-steps li[data-state="warn"]::after { background: var(--warn); border-color: var(--warn); }
.fq-steps li[data-state="bad"]::after { background: var(--bad); border-color: var(--bad); }

/* Items table */
.fq-tools-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.fq-tools-row h3 { margin: 0 auto 0 0; }
.fq-input, .fq-select { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: 500 13.5px var(--font); min-width: 0; }
.fq-input:focus, .fq-select:focus { outline: 0; box-shadow: var(--ring); border-color: var(--a1); }
.fq-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fq-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
.fq-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fq-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fq-table .idx { width: 36px; color: var(--faint); }
.fq-table .nt { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.fq-count { font-size: 12.5px; color: var(--faint); margin: 10px 0 0; }
.fq-totals { margin: 16px 0 0 auto; max-width: 340px; display: grid; gap: 8px; }
.fq-totals div { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; color: var(--muted); }
.fq-totals .g { padding: 12px 14px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--text); font-weight: 700; font-size: 17px; }
.fq-totals .paid { color: var(--ok); } .fq-totals .due { color: var(--text); font-weight: 700; }
.fq-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .3); color: var(--muted); font-size: 13.5px; }
.fq-prose { white-space: pre-line; color: var(--muted); font-size: 14px; margin: 0; }
.fq-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 24px; margin: 0; }
.fq-dl dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; }
.fq-dl dd { margin: 2px 0 0; font-weight: 500; word-break: break-word; }
details.fq-sec summary { cursor: pointer; font: 700 13px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); list-style: none; display: flex; justify-content: space-between; }
details.fq-sec summary::-webkit-details-marker { display: none; }
details.fq-sec[open] summary { margin-bottom: 12px; }

/* Payments */
.fq-pay-bar { margin: 6px 0 14px; }
.fq-pay-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; color: var(--muted); flex-wrap: wrap; gap: 6px; }
.fq-pay-top b { color: var(--text); }
.fq-rcp { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-top: 8px; font-size: 13.5px; }
.fq-rcp small { display: block; color: var(--faint); font-size: 12px; }
.fq-rcp .amt { font-weight: 700; color: var(--ok); white-space: nowrap; }
.fq-rcp-end { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px 12px; }
.fq-rcp-btns { display: inline-flex; gap: 6px; }
.fq-acct { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.fq-acct b { display: block; font: 700 17px var(--font-mono); letter-spacing: .04em; }
.fq-acct small { color: var(--faint); font-size: 12px; }
.fq-rel { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; background: var(--surface-2); font-size: 14px; }
.fq-rel small { display: block; color: var(--faint); }
.fq-qr { display: flex; justify-content: center; padding: 12px; background: #fff; border-radius: 14px; width: fit-content; margin: 0 auto 12px; }
.fq-qr img, .fq-qr canvas { display: block; max-width: 100%; }
.fq-stack { display: grid; gap: 8px; }
.fq-form-inline { display: grid; gap: 8px; }
.fq-form-inline p { margin: 0; font-size: 13px; color: var(--muted); }
.fq-err { color: var(--bad); font-size: 13px; margin: 0; }
.fq-print-head { display: none; }

/* How it works */
.fq-how { max-width: 900px; margin: 10px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fq-how .fq-card { padding: 20px; }
.fq-how .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; color: var(--a1); }
.fq-how h3 { font: 700 15px var(--font-display); margin: 0 0 4px; }
.fq-how p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* Footer, toasts, dialog */
.fq-footer { padding: 72px 0 36px; border-top: 1px solid var(--line); background: var(--bg-2); }
.fq-footer-grid { display: grid; gap: 36px; margin-bottom: 44px; }
@media (min-width: 800px) { .fq-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.fq-footer .fq-logo { margin-bottom: 16px; font-size: 1.2rem; }
.fq-footer p { color: var(--muted); font-size: .92rem; max-width: 38ch; }
.fq-footer h4 { font: 600 .78rem var(--font-mono, 'JetBrains Mono', monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.fq-footer ul { list-style: none; margin: 0; padding: 0; }
.fq-footer li { margin-bottom: 10px; font-size: .92rem; }
.fq-footer li a, .fq-footer li button { border: 0; background: none; padding: 0; color: var(--text); font: inherit; cursor: pointer; }
.fq-footer li a:hover, .fq-footer li button:hover, .fq-footer-bottom a:hover, .fq-footer-bottom button:hover { color: var(--a1); }
.fq-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.fq-footer-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }
.fq-footer-bottom button { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.fq-toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 400; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.fq-toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 14px; font-weight: 500; animation: fq-rise .25s ease both; }
.fq-toast[data-type="ok"] i { color: var(--ok); } .fq-toast[data-type="warn"] i { color: var(--warn); } .fq-toast[data-type="bad"] i { color: var(--bad); }
.fq-toast a { margin-left: auto; color: var(--a1); font-weight: 700; }
dialog.fq-dialog { width: min(92vw, 460px); padding: 22px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
dialog.fq-dialog::backdrop { background: rgba(2, 6, 23, .6); backdrop-filter: blur(3px); }
dialog.fq-dialog h2 { margin: 0 0 14px; font: 700 18px var(--font-display); }
.fq-keys { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.fq-keys li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }

@media (max-width: 960px) { .fq-grid { grid-template-columns: 1fr; } .fq-side { position: static; } .fq-how { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .fq-nav { display: none; } }
@media (max-width: 640px) {
    .fq-parties { grid-template-columns: 1fr; }
    .fq-sec, .fq-head { padding: 18px; }
    .fq-steps { flex-direction: column; gap: 10px; }
    .fq-steps li { text-align: left; padding: 0 0 0 34px; }
    .fq-steps li::before { display: none; }
    .fq-steps li::after { top: 0; left: 0; }
    .fq-table thead { display: none; }
    .fq-table, .fq-table tbody, .fq-table tr, .fq-table td { display: block; width: 100%; }
    .fq-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .fq-table td { border: 0; padding: 3px 0; text-align: left !important; }
    .fq-table td[data-label]::before { content: attr(data-label) ': '; color: var(--faint); font-size: 12px; }
    .fq-table .idx { display: none; }
    .fq-search input { font-size: 15px; }
    .fq-search #fq-go span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Print (also the fallback when the PDF library cannot load) */
@media print {
    body { background: #fff !important; color: #000 !important; font-size: 11pt; display: block; }
    body::before, .fq-header, .fq-hero, .fq-footer, .fq-bar, .fq-side, .fq-toasts, .fq-offline, .fq-how, .fq-skip, .fq-tools-row .fq-input, .fq-tools-row .fq-select, .fq-no-print, #fq-status { display: none !important; }
    .fq-stage { padding: 0; } .fq-wrap { max-width: none; padding: 0; }
    .fq-grid { display: block; }
    .fq-card, .fq-doc { background: #fff !important; border: 0 !important; box-shadow: none !important; color: #000 !important; }
    .fq-head { background: #fff !important; border-bottom: 2px solid #000; padding: 0 0 12px; }
    .fq-sec { border-top: 1px solid #bbb; padding: 12px 0; break-inside: avoid; }
    .fq-print-head { display: block; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #000; }
    .fq-print-head img { height: 40px; }
    .fq-muted, .fq-parties p, .fq-prose, .fq-meta dt, .fq-dl dt, .fq-table th, .fq-table .nt, .fq-totals div { color: #333 !important; }
    .fq-totals .g { background: #eee !important; border: 1px solid #000 !important; color: #000 !important; }
    .fq-badge { color: #000 !important; background: none !important; }
    details.fq-sec > * { display: block; } details.fq-sec summary { display: block; }
    .fq-steps li { color: #000 !important; }
}
