/*
 * ToQBO Core: Hybrid B x A design system (Gate B1, approved 2026-11-25).
 * Tokens and rules: DESIGN.md. Class prefix: tq-. Light = :root, dark = [data-theme="dark"].
 *
 * Workbench contract (assets/js/toqbo-engine.js keeps the mount, rebuilds its inside as .tq-wb, and MOVES
 * [data-tq-hero-head] (eyebrow + the page <h1> + lead) into .tq-wb__input and [data-tq-idle-stage] into
 * .tq-wb__output--idle until a file or sample is loaded; home-router on the homepage renders .tq-wb--compact):
 *   mount   .tq-workbench[data-mode][data-in][data-out][data-kind][data-bank][data-state=idle|busy|error|ready]
 *   hooks   [data-tq-dropzone] [data-tq-input] [data-tq-dz-title] [data-tq-sample] [data-tq-found]
 *           [data-tq-opt=date|amounts|bid|acct] [data-tq-stage][data-front=in|out] [data-tq-face]
 *           [data-tq-slot=options|table|envelope] [data-tq-flow] [data-tq-balance] [data-tq-in-name]
 *           [data-tq-out-name] [data-tq-download][data-blocked] [data-tq-download-label] [data-tq-errcount]
 *           [data-tq-hint] [data-tq-qb] [data-tq-qb-panel]
 *   ui      .tq-table-wrap .tq-table .tq-row--error|--warn|--fixed|--selected .tq-cell--error .tq-cell-fix
 *           .tq-fix-row .tq-fix .tq-input .tq-suggest .tq-chip .tq-badge--error|--fix|--ok|--fmt
 *           .tq-balance--ok|--off|--pending .tq-inspector .tq-issue .tq-notice--info|--warn|--error|--ok
 *           .tq-progress .tq-map
 * Content classes for the_content(): .tq-steps .tq-vs .tq-verdict .tq-callout .tq-cite .tq-abbrev-table
 */

/* ---------- Fallback metrics (computed against the real font files; anti-CLS) ---------- */
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 102.23%; ascent-override: 94.88%; descent-override: 24.45%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 100.21%; ascent-override: 73.34%; descent-override: 26.44%; line-gap-override: 0%; }
@font-face { font-family: "IBM Plex Mono Fallback"; src: local("Courier New"), local("CourierNewPSMT"); size-adjust: 99.98%; ascent-override: 102.52%; descent-override: 27.5%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
	--tq-paper: #F8FAFC; --tq-card: #FFFFFF; --tq-well: #F1F5F9; --tq-deep: #EAEFF5;
	--tq-ink: #0F172A; --tq-ink-2: #334155; --tq-mute: #5B6577;
	--tq-line: #E2E8F0; --tq-line-2: #CBD5E1;
	--tq-acc: #1D4ED8; --tq-acc-hover: #1E40AF; --tq-acc-text: #1D4ED8; --tq-em: #1D4ED8;
	--tq-link: #1D4ED8; --tq-link-hover: #1E40AF;
	--tq-acc-soft: #EFF6FF; --tq-acc-line: #BFDBFE; --tq-pill-text: #1D4ED8;
	--tq-btn: #1D4ED8; --tq-btn-hover: #1E40AF; --tq-on-btn: #FFFFFF;
	--tq-seg-bg: #0F172A; --tq-seg-fg: #FFFFFF;
	--tq-ok: #047857; --tq-ok-dot: #059669; --tq-ok-soft: #ECFDF5; --tq-ok-line: #A7F3D0;
	--tq-warn: #B45309; --tq-warn-soft: #FEF6E7; --tq-warn-line: #F5D9A8;
	--tq-err: #C81E1E; --tq-err-soft: #FDEEEE; --tq-err-line: #F4C1C1;
	--tq-logo-s: #64748B; --tq-logo-b: #1D4ED8;
	--tq-shadow: 0 1px 1px rgba(15, 23, 42, .04), 0 12px 32px -14px rgba(15, 23, 42, .20);
	--tq-shadow-lg: 0 2px 2px rgba(15, 23, 42, .04), 0 28px 60px -24px rgba(15, 23, 42, .30);
	--tq-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23334155' stroke-width='1.5'/%3E%3C/svg%3E");
	--tq-sans: "Instrument Sans", "Instrument Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--tq-serif: "Newsreader", "Newsreader Fallback", "Iowan Old Style", Georgia, serif;
	--tq-mono: "IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, SFMono-Regular, Menlo, monospace;
	--tq-mast-h: 64px;
	--tq-gutter: 32px;
	color-scheme: light;
}
[data-theme="dark"] {
	--tq-paper: #0A0F1A; --tq-card: #0F1624; --tq-well: #0C1220; --tq-deep: #090E17;
	--tq-ink: #E8EDF5; --tq-ink-2: #C5CEDB; --tq-mute: #93A0B4;
	--tq-line: #1E2838; --tq-line-2: #2C3A50;
	--tq-acc: #2F5FE0; --tq-acc-hover: #3B6CF0; --tq-acc-text: #60A5FA; --tq-em: #60A5FA;
	--tq-link: #60A5FA; --tq-link-hover: #93C5FD;
	--tq-acc-soft: #12203D; --tq-acc-line: #1E3A5F; --tq-pill-text: #93C5FD;
	--tq-btn: #2F5FE0; --tq-btn-hover: #3B6CF0; --tq-on-btn: #FFFFFF;
	--tq-seg-bg: #E8EDF5; --tq-seg-fg: #0A0F1A;
	--tq-ok: #34D399; --tq-ok-dot: #34D399; --tq-ok-soft: #0D2A22; --tq-ok-line: #14533D;
	--tq-warn: #FBBF24; --tq-warn-soft: #2A1E08; --tq-warn-line: #5A4210;
	--tq-err: #FCA5A5; --tq-err-soft: #2C1214; --tq-err-line: #5C2428;
	--tq-logo-s: #94A3B8; --tq-logo-b: #60A5FA;
	--tq-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 12px 32px -14px rgba(0, 0, 0, .7);
	--tq-shadow-lg: 0 2px 2px rgba(0, 0, 0, .3), 0 28px 60px -24px rgba(0, 0, 0, .8);
	--tq-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23C5CEDB' stroke-width='1.5'/%3E%3C/svg%3E");
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--tq-mast-h) + 16px); }
html, body { margin: 0; }
body { background: var(--tq-paper); color: var(--tq-ink); font: 400 15.5px/1.6 var(--tq-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
.tq-main { flex: 1 0 auto; outline: 0; }
img, video { max-width: 100%; height: auto; }
a { color: var(--tq-link); text-decoration: none; }
a:hover { color: var(--tq-link-hover); text-decoration: underline; text-underline-offset: 3px; }
b, strong { font-weight: 600; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
button, select, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
select { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
td, th, code, pre, kbd, samp { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--tq-link); outline-offset: 2px; }
[hidden] { display: none !important; }
html:not(.tq-js) .tq-js-only { display: none !important; }
.tq-mono { font-family: var(--tq-mono); font-variant-numeric: tabular-nums; }
.tq-vh, .tq-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.tq-shell { width: 100%; max-width: 1312px; margin: 0 auto; padding: 0 var(--tq-gutter); }
.tq-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--tq-btn); color: var(--tq-on-btn); font-weight: 600; }
.tq-skip:focus { top: 12px; color: var(--tq-on-btn); text-decoration: none; }

/* ---------- Logo 1 (Refined Evolution) ---------- */
.tq-lg-s { fill: var(--tq-logo-s); }
.tq-lg-b { fill: var(--tq-logo-b); }
.tq-lg-rs { fill: none; stroke: var(--tq-logo-s); }
.tq-lg-rb { fill: none; stroke: var(--tq-logo-b); }

/* ---------- Masthead ---------- */
.tq-mast { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--tq-line); background: var(--tq-paper); background: color-mix(in srgb, var(--tq-paper) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.admin-bar .tq-mast { top: 32px; }
.tq-mast__row { position: relative; display: flex; align-items: center; gap: 32px; height: var(--tq-mast-h); }
.tq-logo { display: inline-flex; flex: none; }
.tq-logo:hover { text-decoration: none; }
.tq-logo__svg { height: 26px; width: auto; display: block; }
.tq-menu { display: flex; align-items: center; gap: 22px; flex: 1; min-width: 0; }
.tq-menu__link { color: var(--tq-ink-2); font-size: 14.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.tq-menu__link:hover { color: var(--tq-ink); text-decoration: none; }
a.tq-menu__link[aria-current="page"] { color: var(--tq-ink); box-shadow: inset 0 -2px 0 var(--tq-acc); padding-bottom: 4px; margin-bottom: -6px; }
.tq-drop { position: relative; }
.tq-drop > summary { list-style: none; display: inline-flex; align-items: center; }
.tq-drop > summary::-webkit-details-marker { display: none; }
.tq-drop > summary::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; transition: transform .15s; }
.tq-drop[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.tq-drop__panel { position: absolute; top: calc(100% + 14px); left: -12px; min-width: 248px; background: var(--tq-card); border: 1px solid var(--tq-line); border-radius: 12px; padding: 8px; box-shadow: var(--tq-shadow); display: grid; gap: 2px; }
.tq-drop__group { padding: 8px 10px 4px; font-family: var(--tq-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tq-mute); }
.tq-drop__group:not(:first-child) { margin-top: 6px; border-top: 1px solid var(--tq-line); padding-top: 12px; }
.tq-drop__link { padding: 7px 10px; border-radius: 8px; color: var(--tq-ink-2); font-size: 14.5px; white-space: nowrap; }
.tq-drop__link:hover { background: var(--tq-well); color: var(--tq-ink); text-decoration: none; }
.tq-drop__link[aria-current="page"] { background: var(--tq-acc-soft); color: var(--tq-pill-text); box-shadow: inset 2px 0 0 var(--tq-acc); font-weight: 600; }
.tq-mast__end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.tq-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--tq-ink-2); border: 1px solid var(--tq-ok-line); border-radius: 999px; padding: 5px 12px 5px 10px; background: var(--tq-card); white-space: nowrap; }
.tq-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tq-ok-dot); position: relative; flex: none; }
.tq-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--tq-ok-dot); opacity: .35; animation: tq-pulse 2.4s ease-out infinite; }
@keyframes tq-pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.4); opacity: 0; } }
.tq-round { width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid var(--tq-line-2); background: var(--tq-card); display: inline-grid; place-items: center; cursor: pointer; color: var(--tq-ink-2); flex: none; }
.tq-round:hover { border-color: var(--tq-ink-2); color: var(--tq-ink); }
.tq-round svg { width: 18px; height: 18px; display: block; }
.tq-theme__sun { display: none !important; }
[data-theme="dark"] .tq-theme__sun { display: block !important; }
[data-theme="dark"] .tq-theme__moon { display: none !important; }
.tq-hamb { display: none; }
.tq-hamb path { transition: transform .2s; transform-origin: 10px 10px; }
.tq-hamb[aria-expanded="true"] .tq-hamb__a { transform: translateY(3px) rotate(45deg); }
.tq-hamb[aria-expanded="true"] .tq-hamb__b { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Hero ---------- */
.tq-hero { padding: 44px 0 56px; border-bottom: 1px solid var(--tq-line); }
.tq-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.tq-hero__copy { min-width: 0; }
.tq-hero--plain { padding: 56px 0 44px; }
.tq-hero--plain .tq-hero__copy { max-width: 860px; }
.tq-eyebrow { font-family: var(--tq-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tq-acc-text); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.tq-eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; flex: none; }
.tq-h1 { font-family: var(--tq-serif); font-weight: 500; font-size: 56px; line-height: 1.02; letter-spacing: -0.02em; margin: 0; color: var(--tq-ink); }
.tq-h1 em { font-style: italic; font-weight: 400; color: var(--tq-em); }
.tq-lead { font-size: 17px; color: var(--tq-ink-2); margin: 16px 0 24px; max-width: 540px; }
.tq-hero--plain .tq-lead { max-width: 680px; margin-bottom: 0; }
.tq-hero--plain .tq-btn { margin-top: 24px; }
.tq-stamp { margin: 18px 0 0; font-family: var(--tq-mono); font-size: 12px; letter-spacing: .04em; color: var(--tq-mute); }

/* Dropzone */
.tq-dz { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px 22px; background: var(--tq-card); border: 1.5px dashed var(--tq-line-2); border-radius: 16px; cursor: pointer; box-shadow: var(--tq-shadow); transition: border-color .15s, background .15s; }
.tq-dz:hover, .tq-dz[data-over="true"] { border-color: var(--tq-acc); background: var(--tq-acc-soft); }
.tq-dz:has(:focus-visible) { outline: 2px solid var(--tq-link); outline-offset: 3px; }
.tq-dz__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tq-dz__ic { width: 48px; height: 56px; border-radius: 6px 14px 6px 6px; background: var(--tq-acc-soft); border: 1px solid var(--tq-acc-line); display: inline-flex; align-items: center; justify-content: center; line-height: 1; color: var(--tq-pill-text); font-family: var(--tq-mono); font-size: 11px; font-weight: 500; }
.tq-dz__body { min-width: 0; }
.tq-dz__title { display: block; font-size: 16.5px; font-weight: 600; color: var(--tq-ink); overflow-wrap: anywhere; }
.tq-dz__sub { display: block; font-size: 13.5px; color: var(--tq-mute); }
.tq-dz__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 10px 20px; line-height: 20px; border-radius: 999px; background: var(--tq-btn); color: var(--tq-on-btn); font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background .15s; }
.tq-dz:hover .tq-dz__btn, .tq-dz[data-over="true"] .tq-dz__btn { background: var(--tq-btn-hover); }
.tq-dz__btn svg { width: 16px; height: 16px; flex: none; }
.tq-dz__alt { margin: 10px 0 0; font-size: 13.5px; color: var(--tq-ink-2); }
.tq-linkbtn { padding: 0; border: 0; background: none; color: var(--tq-link); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.tq-linkbtn:hover { color: var(--tq-link-hover); text-decoration-color: currentColor; }
.tq-found { margin: 12px 0 0; min-height: 20px; font-family: var(--tq-mono); font-size: 12.5px; color: var(--tq-mute); }
.tq-found b { color: var(--tq-acc-text); font-weight: 500; }
.tq-workbench[data-state="busy"] .tq-dz { cursor: progress; border-style: solid; border-color: var(--tq-acc-line); }
.tq-workbench[data-state="error"] .tq-dz { border-color: var(--tq-err-line); }
.tq-workbench[data-state="ready"] .tq-dz { border-style: solid; border-color: var(--tq-ok-line); }

/* Compact controls */
.tq-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tq-opts--n1 { grid-template-columns: minmax(0, 1fr); max-width: 300px; }
.tq-opts--n3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); }
.tq-opt { display: grid; gap: 4px; min-width: 0; align-content: start; }
.tq-opt__l { font-family: var(--tq-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--tq-mute); }
.tq-sel { width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--tq-line-2); background: var(--tq-card) var(--tq-chev) no-repeat right 11px center; padding: 0 30px 0 11px; -webkit-appearance: none; appearance: none; font-size: 13.5px; color: var(--tq-ink); cursor: pointer; }
.tq-sel:hover { border-color: var(--tq-ink-2); }
.tq-sw { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--tq-line-2); border-radius: 10px; padding: 2px; background: var(--tq-card); height: 38px; }
.tq-sw button { border: 0; background: none; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--tq-mute); cursor: pointer; white-space: nowrap; padding: 0 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tq-sw button:hover { color: var(--tq-ink); }
.tq-sw button[aria-pressed="true"] { background: var(--tq-seg-bg); color: var(--tq-seg-fg); }
.tq-assure { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--tq-ink-2); }
.tq-assure li { display: inline-flex; gap: 7px; align-items: center; }
.tq-assure svg { width: 14px; height: 14px; color: var(--tq-ok); flex: none; }

/* ---------- Tactile document stack ---------- */
.tq-stage { position: relative; min-width: 0; }
.tq-stage__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tq-flip { display: inline-flex; border: 1px solid var(--tq-line-2); border-radius: 999px; padding: 3px; background: var(--tq-card); max-width: 100%; }
.tq-flip button { border: 0; background: none; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--tq-mute); cursor: pointer; white-space: nowrap; }
.tq-flip button:hover { color: var(--tq-ink); }
.tq-flip button[aria-pressed="true"] { background: var(--tq-acc-soft); color: var(--tq-pill-text); box-shadow: inset 0 0 0 1px var(--tq-acc-line); }
.tq-flip--sm button { padding: 4px 11px; font-size: 12.5px; }
.tq-flow { font-family: var(--tq-mono); font-size: 12px; color: var(--tq-mute); white-space: nowrap; }
.tq-flow b { color: var(--tq-ok); font-weight: 500; }
.tq-workbench[data-state="error"] .tq-flow b { color: var(--tq-err); }
.tq-stack { position: relative; height: 586px; }
.tq-doc { position: absolute; display: flex; flex-direction: column; max-height: 100%; background: var(--tq-card); border: 1px solid var(--tq-line); border-radius: 16px; box-shadow: var(--tq-shadow-lg); transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s; overflow: hidden; }
.tq-doc--in { left: 0; top: 0; width: 72%; transform: rotate(-2.4deg) translate(-6px, 10px); z-index: 1; opacity: .92; }
.tq-doc--out { right: 0; top: 54px; width: 88%; max-height: calc(100% - 54px); z-index: 2; }
.tq-stage[data-front="in"] .tq-doc--in { z-index: 3; transform: none; opacity: 1; width: 92%; }
.tq-stage[data-front="in"] .tq-doc--out { transform: translate(8px, 14px) rotate(1.2deg); opacity: .9; }
.tq-doc--solo { position: relative; width: 100%; }
.tq-doc__hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--tq-line); background: var(--tq-well); flex: none; }
.tq-doc__name { font-family: var(--tq-mono); font-size: 12.5px; color: var(--tq-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tq-doc__name small { color: var(--tq-mute); margin-left: 6px; font-size: inherit; }
.tq-doc__body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.tq-doc__ft { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--tq-line); font-family: var(--tq-mono); font-size: 12px; color: var(--tq-mute); font-variant-numeric: tabular-nums; flex: none; }
.tq-doc__ft b { color: var(--tq-ok); font-weight: 500; }
.tq-seal, .tq-balance { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; flex: none; }
.tq-seal svg, .tq-balance svg { width: 12px; height: 12px; flex: none; }
.tq-seal, .tq-balance--ok { color: var(--tq-ok); background: var(--tq-ok-soft); border-color: var(--tq-ok-line); }
.tq-balance--off { color: var(--tq-err); background: var(--tq-err-soft); border-color: var(--tq-err-line); }
.tq-balance--pending { color: var(--tq-mute); background: var(--tq-well); border-color: var(--tq-line-2); }

/* Envelope code lines */
.tq-code { padding: 12px 0 6px; font-family: var(--tq-mono); font-size: 12.5px; line-height: 1.75; font-variant-numeric: tabular-nums; }
.tq-ln { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; padding: 0 16px 0 0; align-items: baseline; }
.tq-ln i { font-style: normal; color: var(--tq-mute); opacity: .7; text-align: right; font-size: 11px; }
.tq-ln code { font-family: inherit; color: var(--tq-ink-2); white-space: pre; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.tq-ln--hl { background: var(--tq-ok-soft); }
.tq-ln--err { background: var(--tq-err-soft); }
.tq-ln--key { grid-template-columns: 64px minmax(0, 1fr); padding: 6px 16px 6px 0; border-bottom: 1px solid var(--tq-line); }
.tq-ln--key:last-child { border-bottom: 0; }
.tq-ln--key i { opacity: 1; color: var(--tq-acc-text); font-size: 12.5px; font-weight: 600; }
.tq-ln--key code { white-space: normal; font-family: var(--tq-sans); font-size: 14px; color: var(--tq-ink-2); }
.tq-t { color: var(--tq-acc-text); }
.tq-v { color: var(--tq-ink); font-weight: 500; }
.tq-m { color: var(--tq-mute); }
.tq-ok { font-family: var(--tq-sans); font-size: 11.5px; font-weight: 600; color: var(--tq-ok); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.tq-ok svg { width: 11px; height: 11px; flex: none; }
.tq-guide { border-top: 1px solid var(--tq-line); padding: 14px 16px 16px; background: var(--tq-well); flex: none; }
.tq-guide__row { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; flex-wrap: wrap; }
.tq-guide__row b { font-size: 13px; }
.tq-guide p { margin: 0; font-size: 13.5px; color: var(--tq-ink-2); }
.tq-guide p span { font-family: var(--tq-mono); font-size: 12.5px; color: var(--tq-ink); }
.tq-stage__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.tq-stage__hint { margin: 0; flex: 1 1 220px; font-size: 13px; color: var(--tq-mute); }
.tq-download[data-blocked="true"] ~ .tq-stage__hint { color: var(--tq-err); }

/* ---------- Buttons ---------- */
.tq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 600; line-height: 20px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.tq-btn:hover { text-decoration: none; }
.tq-btn svg { width: 16px; height: 16px; flex: none; }
.tq-btn--primary { background: var(--tq-btn); color: var(--tq-on-btn); }
.tq-btn--primary:hover { background: var(--tq-btn-hover); color: var(--tq-on-btn); }
.tq-btn--ghost { background: var(--tq-card); border-color: var(--tq-line-2); color: var(--tq-ink); }
.tq-btn--ghost:hover { border-color: var(--tq-ink-2); color: var(--tq-ink); }
.tq-btn:disabled, .tq-btn[aria-disabled="true"] { cursor: not-allowed; }
.tq-btn--primary:disabled, .tq-btn--primary[aria-disabled="true"] { background: var(--tq-well); border-color: var(--tq-line-2); color: var(--tq-mute); }
.tq-download[data-blocked="true"], .tq-download[data-blocked="true"]:hover { background: var(--tq-err-soft); border-color: var(--tq-err-line); color: var(--tq-err); cursor: not-allowed; }
.tq-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tq-err); color: var(--tq-card); font-family: var(--tq-mono); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Transaction table and error inspector ---------- */
.tq-table-wrap { overflow-x: auto; position: relative; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.tq-table { width: 100%; border-collapse: separate; border-spacing: 0; font-family: var(--tq-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.tq-table th { position: sticky; top: 0; z-index: 1; text-align: left; font-weight: 500; color: var(--tq-mute); background: var(--tq-deep); padding: 6px 10px; border-right: 1px solid var(--tq-line); border-bottom: 1px solid var(--tq-line); white-space: nowrap; overflow-wrap: normal; }
.tq-table td { padding: 7px 10px; border-right: 1px solid var(--tq-line); border-bottom: 1px solid var(--tq-line); white-space: nowrap; overflow-wrap: normal; color: var(--tq-ink-2); vertical-align: middle; }
.tq-table th:last-child, .tq-table td:last-child { border-right: 0; }
.tq-table .tq-rownum { position: sticky; left: 0; z-index: 1; width: 32px; text-align: center; color: var(--tq-mute); background: var(--tq-deep); }
.tq-table th.tq-rownum { z-index: 2; }
.tq-table .tq-num { text-align: right; }
.tq-table .tq-desc { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.tq-table tbody tr:hover td { background: var(--tq-well); }
.tq-table tbody tr:hover .tq-rownum { background: var(--tq-deep); }
.tq-row--error td, .tq-row--error:hover td { background: var(--tq-err-soft); color: var(--tq-ink); }
.tq-row--error .tq-rownum, .tq-row--error:hover .tq-rownum { background: var(--tq-err-soft); color: var(--tq-err); font-weight: 600; box-shadow: inset 3px 0 0 var(--tq-err); }
.tq-row--warn td, .tq-row--warn:hover td { background: var(--tq-warn-soft); }
.tq-row--warn .tq-rownum { box-shadow: inset 3px 0 0 var(--tq-warn); color: var(--tq-warn); }
.tq-row--fixed td, .tq-row--fixed:hover td { background: color-mix(in srgb, var(--tq-warn-soft) 55%, var(--tq-card)); }
.tq-row--fixed .tq-rownum { box-shadow: inset 3px 0 0 var(--tq-warn); }
.tq-row--selected td { box-shadow: inset 0 1px 0 var(--tq-acc), inset 0 -1px 0 var(--tq-acc); }
.tq-cell--error { color: var(--tq-err) !important; font-weight: 500; }
.tq-cell-fix { padding: 0; border: 0; background: none; font: inherit; color: var(--tq-err); cursor: pointer; text-decoration: underline wavy var(--tq-err); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tq-cell-fix:hover { color: var(--tq-ink); }
.tq-cell-fix:empty::before { content: "(empty)"; font-style: italic; opacity: .8; }
.tq-fix-row td, .tq-fix-row:hover td { padding: 12px; background: var(--tq-card); white-space: normal; border-bottom: 1px solid var(--tq-err-line); }
.tq-fix { position: sticky; left: 12px; display: grid; gap: 10px; max-width: min(560px, 82vw); font-family: var(--tq-sans); font-size: 13px; color: var(--tq-ink-2); }
.tq-fix__msg { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.tq-fix__msg b { color: var(--tq-err); font-weight: 600; }
.tq-fix__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tq-fix__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tq-fix .tq-btn { min-height: 34px; padding: 6px 14px; font-size: 13.5px; }
.tq-input { height: 36px; min-width: 0; padding: 0 11px; border-radius: 9px; border: 1px solid var(--tq-line-2); background: var(--tq-card); color: var(--tq-ink); font-size: 13.5px; }
.tq-input:hover { border-color: var(--tq-ink-2); }
.tq-input:focus { outline: 2px solid color-mix(in srgb, var(--tq-acc) 35%, transparent); outline-offset: 0; border-color: var(--tq-acc); }
.tq-input[aria-invalid="true"] { border-color: var(--tq-err); }
.tq-fix__input { width: 170px; font-family: var(--tq-mono); font-variant-numeric: tabular-nums; }
.tq-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tq-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--tq-line-2); background: var(--tq-card); color: var(--tq-ink-2); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tq-chip:hover { border-color: var(--tq-ink-2); color: var(--tq-ink); }
.tq-chip[aria-pressed="true"], .tq-chip--on { background: var(--tq-acc-soft); border-color: var(--tq-acc-line); color: var(--tq-pill-text); }
.tq-chip--mono { font-family: var(--tq-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tq-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--tq-line); background: var(--tq-well); color: var(--tq-ink-2); font-family: var(--tq-sans); font-size: 11.5px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.tq-badge svg { width: 11px; height: 11px; flex: none; }
.tq-badge--error { color: var(--tq-err); background: var(--tq-err-soft); border-color: var(--tq-err-line); }
.tq-badge--fix, .tq-badge--warn { color: var(--tq-warn); background: var(--tq-warn-soft); border-color: var(--tq-warn-line); }
.tq-badge--ok { color: var(--tq-ok); background: var(--tq-ok-soft); border-color: var(--tq-ok-line); }
.tq-badge--fmt { border-radius: 6px; font-family: var(--tq-mono); font-weight: 500; color: var(--tq-pill-text); background: var(--tq-acc-soft); border-color: var(--tq-acc-line); }
.tq-inspector { border-top: 1px solid var(--tq-line); background: var(--tq-card); flex: none; }
.tq-inspector__hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--tq-ink); }
.tq-issues { margin: 0; padding: 0; list-style: none; max-height: 180px; overflow: auto; }
.tq-issue { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--tq-line); font-size: 13px; color: var(--tq-ink-2); }
.tq-issue__code { padding: 2px 6px; border-radius: 6px; font-family: var(--tq-mono); font-size: 11.5px; color: var(--tq-err); background: var(--tq-err-soft); }
.tq-issue__row { font-family: var(--tq-mono); font-size: 12px; color: var(--tq-mute); font-variant-numeric: tabular-nums; }
.tq-issue__go { padding: 4px 0; border: 0; background: none; color: var(--tq-link); font-size: 13px; font-weight: 600; cursor: pointer; }
.tq-issue__go:hover { color: var(--tq-link-hover); text-decoration: underline; }
.tq-issue--fixed .tq-issue__code { color: var(--tq-warn); background: var(--tq-warn-soft); }
.tq-issue--fixed { color: var(--tq-mute); }
.tq-notice { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 12px; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--tq-line); background: var(--tq-well); color: var(--tq-ink-2); font-size: 14px; }
.tq-notice::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--tq-mute); }
.tq-notice b, .tq-notice strong { color: var(--tq-ink); }
.tq-notice--info { background: var(--tq-acc-soft); border-color: var(--tq-acc-line); }
.tq-notice--info::before { background: var(--tq-acc); }
.tq-notice--warn { background: var(--tq-warn-soft); border-color: var(--tq-warn-line); }
.tq-notice--warn::before { background: var(--tq-warn); }
.tq-notice--error { background: var(--tq-err-soft); border-color: var(--tq-err-line); }
.tq-notice--error::before { background: var(--tq-err); }
.tq-notice--ok { background: var(--tq-ok-soft); border-color: var(--tq-ok-line); }
.tq-notice--ok::before { background: var(--tq-ok-dot); }
.tq-progress { height: 6px; border-radius: 999px; background: var(--tq-well); overflow: hidden; }
.tq-progress > span { display: block; width: var(--tq-p, 0%); height: 100%; background: var(--tq-acc); transition: width .2s; }
.tq-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--tq-line); background: var(--tq-well); }

/* ---------- Engine workbench (toqbo-engine.js); tokens cover light and [data-theme="dark"] ---------- */
.tq-wb { min-width: 0; }
.tq-wb.tq-hero__grid { display: block; }
.tq-wb__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.tq-wb__input, .tq-wb__output { min-width: 0; }
.tq-wb__output--idle { padding: 0; border: 0; background: none; box-shadow: none; }
.tq-wb--compact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tq-wb--compact .tq-status { margin-top: 8px; }
.tq-card { min-width: 0; background: var(--tq-card); border: 1px solid var(--tq-line); border-radius: 16px; box-shadow: var(--tq-shadow-lg); }
.tq-wb__output.tq-card { padding: 14px 16px 16px; }

/* Dropzone: dashed card, cobalt format pill, cobalt "Choose file" pill, inline sample link */
.tq-dropzone { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 10px; padding: 20px 22px; background: var(--tq-card); border: 1.5px dashed var(--tq-line-2); border-radius: 16px; box-shadow: var(--tq-shadow); cursor: pointer; transition: border-color .15s, background .15s; }
.tq-dropzone:hover, .tq-dropzone--active { border-color: var(--tq-acc); background: var(--tq-acc-soft); }
.tq-dropzone:focus-visible { outline: 2px solid var(--tq-link); outline-offset: 3px; }
.tq-dropzone .tq-badge--fmt { height: auto; min-height: 22px; max-width: 100%; padding: 2px 8px; line-height: 1.4; white-space: normal; }
.tq-dropzone__title { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--tq-ink); overflow-wrap: anywhere; }
.tq-dropzone__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; max-width: 100%; }
.tq-dropzone__hint { font-size: 13.5px; color: var(--tq-mute); }
.tq-dropzone .tq-btn--primary { font-size: 14.5px; }
.tq-dropzone .tq-btn--primary:hover, .tq-dropzone:hover .tq-btn--primary { background: var(--tq-btn-hover); }
.tq-dropzone .tq-btn--ghost { padding: 0 4px; border: 0; background: none; color: var(--tq-link); font-size: 14.5px; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.tq-dropzone .tq-btn--ghost:hover { color: var(--tq-link-hover); text-decoration: underline; text-decoration-color: currentColor; }
.tq-wb[data-state="busy"] .tq-dropzone { cursor: progress; border-style: solid; border-color: var(--tq-acc-line); }
.tq-wb[data-state="ready"] .tq-dropzone { border-color: var(--tq-ok-line); }
.tq-wb[data-state="error"] .tq-dropzone { border-color: var(--tq-err-line); }
.tq-wb .tq-status { display: block; min-height: 20px; margin: 10px 0 0; padding: 0; border: 0; border-radius: 0; background: none; white-space: normal; font-family: var(--tq-mono); font-size: 12.5px; font-weight: 400; line-height: 1.5; color: var(--tq-mute); }

/* Controls */
.tq-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-top: 14px; align-items: start; }
.tq-controls:empty { display: none; }
.tq-controls > .tq-check, .tq-controls > .tq-mapping { grid-column: 1 / -1; }
.tq-field { display: grid; gap: 4px; min-width: 0; align-content: start; }
.tq-label { font-family: var(--tq-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--tq-mute); }
.tq-select { width: 100%; max-width: 100%; min-width: 0; height: 38px; padding: 0 30px 0 11px; border-radius: 10px; border: 1px solid var(--tq-line-2); background: var(--tq-card) var(--tq-chev) no-repeat right 11px center; -webkit-appearance: none; appearance: none; font-size: 13.5px; color: var(--tq-ink); cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tq-select:hover { border-color: var(--tq-ink-2); }
.tq-field > .tq-input { width: 100%; }
.tq-hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--tq-mute); }
.tq-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.45; color: var(--tq-ink-2); cursor: pointer; }
.tq-check input, .tq-wb .tq-table input[type="checkbox"] { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: var(--tq-acc); cursor: pointer; }
.tq-mapping { padding: 0 14px; border: 1px solid var(--tq-line); border-radius: 12px; background: var(--tq-card); }
.tq-mapping[open] { padding-bottom: 14px; }
.tq-mapping > summary { padding: 10px 0; font-size: 13.5px; font-weight: 600; color: var(--tq-ink); cursor: pointer; }
.tq-mapping .tq-field + .tq-field { margin-top: 8px; }
.tq-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--tq-ink-2); }
.tq-trust li { display: inline-flex; align-items: center; gap: 8px; }
.tq-trust li::before { content: ""; width: 9px; height: 5px; margin-top: -3px; border-left: 2px solid var(--tq-ok); border-bottom: 2px solid var(--tq-ok); transform: rotate(-45deg); flex: none; }

/* Result card: tabs, panels, summary, alerts */
.tq-tabs { display: flex; gap: 2px; width: fit-content; max-width: 100%; margin: 0 0 14px; padding: 3px; border: 1px solid var(--tq-line-2); border-radius: 14px; background: var(--tq-card); }
.tq-tab { min-width: 0; padding: 6px 14px; border: 0; border-radius: 11px; background: none; font-size: 13px; font-weight: 500; line-height: 1.35; text-align: center; color: var(--tq-mute); cursor: pointer; }
.tq-tab:hover { color: var(--tq-ink); }
.tq-tab--active, .tq-tab--active:hover { background: var(--tq-acc-soft); color: var(--tq-pill-text); box-shadow: inset 0 0 0 1px var(--tq-acc-line); }
.tq-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.tq-panel > * { min-width: 0; }
.tq-panel > p { margin: 0; color: var(--tq-ink-2); font-size: 14px; }
.tq-panel--empty { place-items: center; min-height: 220px; padding: 24px; border: 1.5px dashed var(--tq-line-2); border-radius: 12px; background: var(--tq-well); text-align: center; }
.tq-panel--empty > p { max-width: 420px; color: var(--tq-mute); }
.tq-panel__title { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--tq-ink); }
.tq-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.tq-alerts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tq-alert { position: relative; margin: 0; padding: 8px 12px 8px 30px; border: 1px solid var(--tq-line); border-radius: 10px; background: var(--tq-well); font-size: 13.5px; line-height: 1.45; color: var(--tq-ink-2); overflow-wrap: anywhere; }
.tq-alert::before { content: ""; position: absolute; left: 12px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--tq-mute); }
.tq-alert--error { background: var(--tq-err-soft); border-color: var(--tq-err-line); color: var(--tq-ink); }
.tq-alert--error::before { background: var(--tq-err); }
.tq-alert--warning { background: var(--tq-warn-soft); border-color: var(--tq-warn-line); color: var(--tq-ink); }
.tq-alert--warning::before { background: var(--tq-warn); }
.tq-alert--ok { background: var(--tq-ok-soft); border-color: var(--tq-ok-line); color: var(--tq-ink); }
.tq-alert--ok::before { background: var(--tq-ok-dot); }

/* Opt-in AI OCR callout (scanned / complex PDFs): cobalt info card right after the alerts */
.tq-ocr-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; margin: 0; padding: 14px 16px 16px 18px; border: 1px solid var(--tq-acc-line); border-radius: 12px; background: var(--tq-acc-soft); box-shadow: inset 3px 0 0 var(--tq-acc); color: var(--tq-ink); }
.tq-ocr-box > * { min-width: 0; }
.tq-ocr-box__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--tq-ink); overflow-wrap: anywhere; }
.tq-ocr-box__note { margin: 0; max-width: 62ch; font-size: 13.5px; line-height: 1.5; color: var(--tq-ink-2); overflow-wrap: anywhere; }
.tq-ocr-box .tq-alert { margin: 2px 0 0; }
.tq-ocr-box__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; min-width: 0; }
.tq-ocr-box__actions .tq-btn { max-width: 100%; white-space: normal; text-align: center; }
.tq-ocr-box__actions .tq-btn--primary { min-height: 40px; padding: 8px 18px; font-size: 14.5px; }
.tq-ocr-box__actions .tq-btn--primary:hover:not(:disabled) { background: var(--tq-btn-hover); }
.tq-ocr-box__actions .tq-btn--chip { border-color: var(--tq-acc-line); color: var(--tq-pill-text); }
.tq-ocr-box__actions .tq-btn--chip:hover:not(:disabled) { border-color: var(--tq-acc); color: var(--tq-pill-text); }
.tq-ocr-box__actions .tq-btn:disabled { cursor: progress; opacity: .75; }
[data-theme="dark"] .tq-ocr-box { box-shadow: inset 3px 0 0 var(--tq-acc-text); }
@media (max-width: 600px) {
	.tq-ocr-box { padding: 12px 12px 14px 15px; }
	.tq-ocr-box__actions .tq-btn--primary { flex: 1 1 100%; }
}

/* Transactions & error inspector */
.tq-panel .tq-table-wrap, .tq-abbr .tq-table-wrap { max-height: 440px; overflow: auto; border: 1px solid var(--tq-line); border-radius: 12px; background: var(--tq-card); }
.tq-panel .tq-table td:nth-child(3) { max-width: 195px; white-space: normal; overflow-wrap: anywhere; }
.tq-table tbody th { position: static; background: none; color: var(--tq-ink); font-weight: 600; }
.tq-row--warning td, .tq-row--warning:hover td { background: var(--tq-warn-soft); }
.tq-row--error td:first-child { box-shadow: inset 3px 0 0 var(--tq-err); color: var(--tq-err); font-weight: 600; }
.tq-row--warning td:first-child { box-shadow: inset 3px 0 0 var(--tq-warn); color: var(--tq-warn); }
.tq-row--excluded td { color: var(--tq-mute); background: var(--tq-well); }
.tq-row--excluded td:not(:last-child) { text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 50%, transparent); }
.tq-memo { color: var(--tq-mute); }
.tq-table td.tq-issues { min-width: 84px; max-width: 175px; max-height: none; padding: 5px 8px; overflow: visible; white-space: normal; }
.tq-table .tq-issue { display: inline-flex; margin: 2px 4px 2px 0; padding: 1px 8px; border: 1px solid var(--tq-line); border-radius: 999px; background: var(--tq-well); font-family: var(--tq-sans); font-size: 11.5px; font-weight: 600; line-height: 1.5; color: var(--tq-ink-2); }
.tq-table .tq-issue--error { color: var(--tq-err); background: var(--tq-err-soft); border-color: var(--tq-err-line); }
.tq-table .tq-issue--warning { color: var(--tq-warn); background: var(--tq-warn-soft); border-color: var(--tq-warn-line); }
.tq-table .tq-issue--ok { color: var(--tq-ok); background: var(--tq-ok-soft); border-color: var(--tq-ok-line); }
.tq-cell-error { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tq-cell-error__raw { color: var(--tq-err); font-weight: 500; text-decoration: underline wavy var(--tq-err); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tq-btn--chip { min-height: 30px; padding: 3px 12px; border-color: var(--tq-line-2); background: var(--tq-card); color: var(--tq-ink-2); font-family: var(--tq-sans); font-size: 12.5px; }
.tq-btn--chip:hover { border-color: var(--tq-ink-2); color: var(--tq-ink); }
.tq-wb .tq-btn.tq-fix { position: static; display: inline-flex; max-width: none; border-color: var(--tq-err-line); background: var(--tq-err-soft); color: var(--tq-err); }
.tq-wb .tq-btn.tq-fix:hover { border-color: var(--tq-err); }
.tq-fix__editor { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 260px; white-space: normal; }
.tq-fix__editor .tq-input { width: 130px; height: 32px; font-family: var(--tq-mono); font-variant-numeric: tabular-nums; }
.tq-fix__editor .tq-fix__msg { flex-basis: 100%; color: var(--tq-err); font-family: var(--tq-sans); font-size: 12.5px; }
.tq-fix__editor .tq-fix__msg:empty { display: none; }

/* Validated envelope, checks, import guide */
.tq-panel pre.tq-code { margin: 0; padding: 12px 14px; max-height: 340px; overflow: auto; white-space: pre; overflow-wrap: normal; border: 1px solid var(--tq-line); border-radius: 12px; background: var(--tq-well); color: var(--tq-ink-2); font-size: 12px; line-height: 1.65; tab-size: 4; }
.tq-checks { margin: 0; padding: 0; list-style: none; border: 1px solid var(--tq-line); border-radius: 12px; overflow: hidden; background: var(--tq-card); }
.tq-check-item { position: relative; padding: 8px 12px 8px 34px; border-top: 1px solid var(--tq-line); font-family: var(--tq-mono); font-size: 12.5px; line-height: 1.5; color: var(--tq-ink-2); overflow-wrap: anywhere; }
.tq-check-item:first-child { border-top: 0; }
.tq-check-item::before { content: ""; position: absolute; left: 13px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--tq-line-2); }
.tq-check-item--ok { background: var(--tq-ok-soft); color: var(--tq-ink); }
.tq-check-item--ok::before { left: 13px; top: 12px; width: 10px; height: 5px; border-radius: 0; background: none; border-left: 2px solid var(--tq-ok); border-bottom: 2px solid var(--tq-ok); transform: rotate(-45deg); }
.tq-check-item--error { background: var(--tq-err-soft); color: var(--tq-ink); }
.tq-check-item--error::before { background: var(--tq-err); }
.tq-check-item--warning { background: var(--tq-warn-soft); color: var(--tq-ink); }
.tq-check-item--warning::before { background: var(--tq-warn); }
.tq-panel .tq-guide { padding: 12px 14px 14px; border: 1px solid var(--tq-line); border-radius: 12px; background: var(--tq-well); }
.tq-guide__toggle { display: inline-flex; flex-wrap: wrap; gap: 2px; max-width: 100%; padding: 3px; border: 1px solid var(--tq-line-2); border-radius: 14px; background: var(--tq-card); }
.tq-guide__toggle .tq-tab { padding: 4px 11px; font-size: 12.5px; }
.tq-guide__steps { margin: 10px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.55; color: var(--tq-ink-2); }
.tq-guide__steps li + li { margin-top: 4px; }

/* Footer: output picker, download CTA, blocked reason */
.tq-wb__footer { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--tq-line); }
.tq-wb__footer .tq-field { flex: 1 1 200px; }
.tq-wb__blocked { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--tq-mute); }
.tq-wb[data-state="error"] .tq-wb__blocked { color: var(--tq-err); }

/* Router (homepage detection) */
.tq-router { display: grid; gap: 8px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--tq-acc-line); border-radius: 12px; background: var(--tq-acc-soft); }
.tq-router p { margin: 0; font-size: 13.5px; color: var(--tq-ink-2); }
.tq-router__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.tq-link { font-size: 13.5px; font-weight: 600; color: var(--tq-link); }

/* Abbreviations panel */
.tq-abbr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
.tq-abbr > .tq-input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; font-size: 16px; }
.tq-abbr > .tq-hint { font-family: var(--tq-mono); }
.tq-abbr .tq-table-wrap { max-height: 360px; }
.tq-abbr .tq-table td { white-space: normal; overflow-wrap: anywhere; }

/* ---------- Bank abbreviations lookup ---------- */
.tq-abbrev { display: grid; gap: 12px; }
.tq-abbrev-search { position: relative; display: block; }
.tq-abbrev-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--tq-mute); pointer-events: none; }
.tq-abbrev-search input { width: 100%; height: 56px; padding: 0 18px 0 46px; border-radius: 16px; border: 1.5px solid var(--tq-line-2); background: var(--tq-card); color: var(--tq-ink); font-size: 16px; box-shadow: var(--tq-shadow); -webkit-appearance: none; appearance: none; }
.tq-abbrev-search input::placeholder { color: var(--tq-mute); }
.tq-abbrev-search input:focus { outline: 0; border-color: var(--tq-acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tq-acc) 22%, transparent), var(--tq-shadow); }
.tq-abbrev-count { margin: 0; font-family: var(--tq-mono); font-size: 12.5px; color: var(--tq-mute); }
.tq-abbrev-count a { margin-left: 6px; font-family: var(--tq-sans); font-size: 13px; }
.tq-abbrev-empty { margin-top: 0; }
.tq-prose .tq-abbrev-table td:first-child { font-family: var(--tq-mono); font-weight: 600; color: var(--tq-ink); white-space: nowrap; overflow-wrap: normal; }
.tq-prose .tq-abbrev-table mark { background: var(--tq-acc-soft); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Bands, grid, prose ---------- */
.tq-band { padding: 72px 0 8px; }
.tq-band--tight { padding-top: 48px; }
.tq-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: start; }
.tq-main7 { grid-column: span 7; min-width: 0; }
.tq-side5 { grid-column: span 5; min-width: 0; position: sticky; top: calc(var(--tq-mast-h) + 24px); }
.tq-cols--solo .tq-main7 { grid-column: 1 / span 8; }
.tq-h2 { font-family: var(--tq-serif); font-weight: 500; font-size: 36px; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 8px; color: var(--tq-ink); }
.tq-sub { color: var(--tq-ink-2); margin: 0 0 28px; font-size: 16px; }

.tq-prose { min-width: 0; color: var(--tq-ink-2); font-size: 16px; line-height: 1.7; }
.tq-prose--narrow { max-width: 720px; }
.tq-prose--home { max-width: 820px; }
.tq-prose > :first-child { margin-top: 0; }
.tq-prose h2 { font-family: var(--tq-serif); font-weight: 500; font-size: 36px; line-height: 1.1; letter-spacing: -0.015em; color: var(--tq-ink); margin: 64px 0 12px; }
.tq-prose h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--tq-ink); margin: 36px 0 8px; }
.tq-prose h4 { font-family: var(--tq-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--tq-mute); margin: 28px 0 8px; }
.tq-prose p, .tq-prose ul, .tq-prose ol, .tq-prose dl { margin: 0 0 16px; }
.tq-prose ul, .tq-prose ol { padding-left: 22px; }
.tq-prose li { margin: 4px 0; }
.tq-prose li::marker { color: var(--tq-mute); }
.tq-prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.tq-prose a:hover { text-decoration-color: currentColor; }
.tq-prose strong, .tq-prose b { color: var(--tq-ink); }
.tq-prose code, .tq-prose kbd, .tq-prose samp { font-family: var(--tq-mono); font-size: .86em; font-variant-numeric: tabular-nums; color: var(--tq-ink); background: var(--tq-well); border: 1px solid var(--tq-line); border-radius: 5px; padding: 1px 6px; }
.tq-prose pre { margin: 20px 0 24px; padding: 16px 18px; overflow-x: auto; background: var(--tq-card); border: 1px solid var(--tq-line); border-radius: 14px; font-family: var(--tq-mono); font-size: 13px; line-height: 1.7; color: var(--tq-ink-2); white-space: pre; }
.tq-prose pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.tq-prose blockquote { margin: 28px 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--tq-acc); font-family: var(--tq-serif); font-size: 21px; line-height: 1.45; color: var(--tq-ink); }
.tq-prose hr { margin: 48px 0; border: 0; border-top: 1px solid var(--tq-line); }
.tq-prose img { border-radius: 12px; }
.tq-prose figure { margin: 24px 0; }
.tq-prose figcaption { margin-top: 8px; font-size: 13.5px; color: var(--tq-mute); }
.tq-table-scroll { margin: 20px 0 28px; overflow-x: auto; border-radius: 14px; -webkit-overflow-scrolling: touch; }
.tq-prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: var(--tq-card); border: 1px solid var(--tq-line); border-radius: 14px; overflow: hidden; }
.tq-prose th { text-align: left; font-family: var(--tq-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--tq-mute); padding: 12px 16px; border-bottom: 1px solid var(--tq-line); background: var(--tq-well); }
.tq-prose td { padding: 13px 16px; border-bottom: 1px solid var(--tq-line); vertical-align: top; }
.tq-prose tr:last-child td { border-bottom: 0; }
.tq-prose td code { font-size: 12px; background: none; border: 0; padding: 0; color: var(--tq-ink-2); }
.tq-prose .tq-matrix td:first-child { font-family: var(--tq-serif); font-size: 17px; font-weight: 500; color: var(--tq-ink); white-space: nowrap; }
.tq-prose ol.tq-steps { list-style: none; margin: 8px 0 32px; padding: 0; counter-reset: tq-step; border-top: 1px solid var(--tq-line); }
.tq-prose ol.tq-steps > li { counter-increment: tq-step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; margin: 0; padding: 22px 0; border-bottom: 1px solid var(--tq-line); }
.tq-prose ol.tq-steps > li::before { content: counter(tq-step, decimal-leading-zero); font-family: var(--tq-serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--tq-acc-text); }
.tq-prose ol.tq-steps h3 { margin: 2px 0 4px; font-size: 18px; }
.tq-prose ol.tq-steps p { margin: 0; }
.tq-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 24px 0 32px; background: var(--tq-card); border: 1px solid var(--tq-line); border-radius: 18px; overflow: hidden; }
.tq-vs > div { padding: 28px 30px; }
.tq-vs > div + div { border-left: 1px solid var(--tq-line); }
.tq-prose .tq-vs h3 { margin: 0 0 6px; font-family: var(--tq-serif); font-weight: 500; font-size: 24px; }
.tq-prose .tq-vs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.tq-prose .tq-vs li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 6px; margin: 0; }
.tq-prose .tq-vs li::before { content: "✓"; color: var(--tq-acc-text); font-weight: 700; }
.tq-prose .tq-vs li.tq-no::before { content: "—"; color: var(--tq-mute); }
.tq-verdict { margin: 16px 0 0 !important; padding: 12px 14px; border-radius: 10px; background: var(--tq-well); font-size: 14px; }
.tq-callout { margin: 24px 0; padding: 20px 22px; background: var(--tq-card); border: 1px solid var(--tq-line); border-radius: 18px; box-shadow: var(--tq-shadow); }
.tq-callout > :last-child { margin-bottom: 0; }
.tq-cite { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--tq-line); font-size: 13.5px; color: var(--tq-mute); }

/* Spec card (sticky 5-col) */
.tq-spec { background: var(--tq-card); border: 1px solid var(--tq-line); border-radius: 18px; box-shadow: var(--tq-shadow); overflow: hidden; }
.tq-spec__hd { padding: 20px 22px 16px; border-bottom: 1px solid var(--tq-line); }
.tq-spec__hd p { margin: 0 0 4px; font-family: var(--tq-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--tq-acc-text); }
.tq-spec__hd h2 { margin: 0; font-family: var(--tq-serif); font-weight: 500; font-size: 26px; line-height: 1.15; color: var(--tq-ink); }
.tq-spec dl { margin: 0; }
.tq-spec dl > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--tq-line); font-size: 14px; }
.tq-spec dt { color: var(--tq-mute); font-size: 13px; }
.tq-spec dd { margin: 0; color: var(--tq-ink); min-width: 0; }
.tq-spec dd code { font-family: var(--tq-mono); font-size: 12.5px; }
.tq-spec__ft { padding: 16px 22px 20px; background: var(--tq-acc-soft); font-size: 13.5px; color: var(--tq-ink-2); }
.tq-spec__ft b { color: var(--tq-pill-text); }

/* FAQ + privacy note */
.tq-qa__item { border-top: 1px solid var(--tq-line); }
.tq-qa__item:last-of-type { border-bottom: 1px solid var(--tq-line); }
.tq-qa .tq-h2 { margin-bottom: 20px; }
.tq-qa summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--tq-serif); font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--tq-ink); display: flex; justify-content: space-between; gap: 20px; }
.tq-qa summary::-webkit-details-marker { display: none; }
.tq-qa summary::after { content: "+"; flex: none; font-family: var(--tq-sans); font-size: 20px; line-height: 1.3; color: var(--tq-acc-text); }
.tq-qa details[open] > summary::after { content: "–"; }
.tq-qa__a { padding: 0 0 18px; color: var(--tq-ink-2); }
.tq-qa__a p { margin: 0 0 10px; }
.tq-qa__a > :last-child { margin-bottom: 0; }
.tq-qa__a code { font-family: var(--tq-mono); font-size: .86em; background: var(--tq-well); border-radius: 4px; padding: 1px 5px; }
.tq-note { background: var(--tq-card); border: 1px solid var(--tq-line); border-radius: 18px; padding: 24px; }
.tq-note h2 { font-family: var(--tq-serif); font-weight: 500; font-size: 22px; line-height: 1.2; margin: 0 0 8px; color: var(--tq-ink); }
.tq-note p { color: var(--tq-ink-2); margin: 0 0 12px; font-size: 14.5px; }
.tq-note ol { margin: 0; padding-left: 18px; color: var(--tq-ink-2); font-size: 14.5px; }

/* ---------- Home: routes + directory ---------- */
.tq-routes { display: grid; gap: 14px; min-width: 0; }
.tq-route { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 22px; background: var(--tq-card); border: 1px solid var(--tq-line); border-radius: 16px; color: var(--tq-ink); box-shadow: var(--tq-shadow); transition: border-color .15s, transform .15s; }
a.tq-route:hover { border-color: var(--tq-acc-line); color: var(--tq-ink); text-decoration: none; transform: translateY(-1px); }
.tq-route::after { content: ""; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px; background: linear-gradient(225deg, var(--tq-paper) 50%, var(--tq-line) 50%, var(--tq-well) 56%); border-radius: 0 16px 0 6px; }
.tq-route__doc { width: 48px; height: 58px; border-radius: 5px 12px 5px 5px; border: 1px solid var(--tq-line-2); background: var(--tq-well); display: grid; place-items: center; font-family: var(--tq-mono); font-size: 10.5px; font-weight: 500; color: var(--tq-ink-2); }
.tq-route__doc--em { background: var(--tq-acc-soft); border-color: var(--tq-acc-line); color: var(--tq-pill-text); }
.tq-route__text { min-width: 0; }
.tq-route__title { margin: 0 0 2px; font-family: var(--tq-serif); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; color: var(--tq-ink); }
.tq-route__p { margin: 0; color: var(--tq-ink-2); font-size: 14px; }
.tq-route__f { margin: 6px 0 0; font-family: var(--tq-mono); font-size: 12px; color: var(--tq-mute); }
.tq-route__go { font-size: 22px; color: var(--tq-acc-text); }
.tq-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; margin: 0; padding: 0; list-style: none; counter-reset: tq-ix; }
.tq-index li { counter-increment: tq-ix; border-top: 1px solid var(--tq-line); min-width: 0; }
.tq-index a { display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 16px 0 18px; color: var(--tq-ink); }
.tq-index a:hover { text-decoration: none; }
.tq-index a::before { content: counter(tq-ix, decimal-leading-zero); grid-row: span 2; padding-top: 6px; font-family: var(--tq-mono); font-size: 12px; color: var(--tq-mute); font-variant-numeric: tabular-nums; }
.tq-index b { display: block; font-family: var(--tq-serif); font-weight: 500; font-size: 21px; line-height: 1.3; color: var(--tq-ink); }
.tq-index a:hover b { color: var(--tq-acc-text); }
.tq-index span { grid-column: 2; font-size: 13.5px; color: var(--tq-mute); }

/* Archive list */
.tq-postlist { margin: 0; padding: 0; list-style: none; max-width: 760px; }
.tq-postlist li { padding: 20px 0; border-top: 1px solid var(--tq-line); }
.tq-postlist__link { font-family: var(--tq-serif); font-size: 24px; font-weight: 500; color: var(--tq-ink); }
.tq-postlist p { margin: 6px 0 0; color: var(--tq-ink-2); }
.tq-band .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tq-band .page-numbers { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--tq-line-2); border-radius: 999px; color: var(--tq-ink-2); }
.tq-band .page-numbers.current { background: var(--tq-acc-soft); border-color: var(--tq-acc-line); color: var(--tq-pill-text); }

/* ---------- Colophon ---------- */
.tq-colo { margin-top: 88px; border-top: 1px solid var(--tq-line); background: var(--tq-well); }
.tq-colo__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px 0 36px; }
.tq-colo__brand .tq-logo__svg { width: 127px; height: auto; }
.tq-colo__claim { font-family: var(--tq-serif); font-size: 28px; line-height: 1.2; margin: 18px 0 0; max-width: 400px; color: var(--tq-ink); }
.tq-colo__claim em { color: var(--tq-em); }
.tq-colo__mail { margin: 14px 0 0; font-family: var(--tq-mono); font-size: 13px; }
.tq-colo__h { margin: 0 0 12px; font-family: var(--tq-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--tq-mute); }
.tq-colo ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tq-colo ul a { color: var(--tq-ink-2); font-size: 14.5px; }
.tq-colo ul a:hover { color: var(--tq-link-hover); }
.tq-colo__end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 18px 0 28px; border-top: 1px solid var(--tq-line); font-size: 13px; color: var(--tq-mute); }
.tq-colo__legal { margin: 0; flex: 1 1 420px; max-width: 760px; text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.tq-menu { gap: 18px; }
	.tq-mast__row { gap: 24px; }
}
@media (max-width: 1080px) {
	.tq-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - var(--tq-mast-h)); max-height: calc(100dvh - var(--tq-mast-h)); overflow-y: auto; overscroll-behavior: contain; padding: 6px var(--tq-gutter) 18px; background: var(--tq-card); border-bottom: 1px solid var(--tq-line); box-shadow: var(--tq-shadow); }
	.tq-menu[data-open="true"] { display: flex; }
	.tq-menu__link { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--tq-line); }
	.tq-drop > summary { display: flex; justify-content: space-between; }
	a.tq-menu__link[aria-current="page"] { box-shadow: inset 2px 0 0 var(--tq-acc); margin: 0; padding: 12px 0 12px 12px; color: var(--tq-link); }
	.tq-drop__panel { position: static; min-width: 0; padding: 4px 0 10px 12px; background: none; border: 0; border-radius: 0; box-shadow: none; }
	.tq-drop__link { padding: 9px 10px; font-size: 15px; white-space: normal; }
	.tq-hamb { display: inline-grid; }
	.tq-hero__grid, .tq-wb__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.tq-cols { grid-template-columns: minmax(0, 1fr); }
	.tq-cols > *, .tq-cols--solo .tq-main7 { grid-column: 1 / -1; }
	.tq-side5 { position: static; }
	.tq-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tq-colo__top { grid-template-columns: 1fr 1fr; }
	.tq-colo__brand { grid-column: 1 / -1; }
	.tq-colo__legal { text-align: left; }
}
@media (max-width: 782px) {
	.admin-bar .tq-mast { top: 46px; }
}
@media (max-width: 720px) {
	:root { --tq-mast-h: 58px; --tq-gutter: 16px; }
	body { font-size: 15px; }
	.tq-mast__row { gap: 10px; }
	.tq-logo__svg { height: 22px; }
	.tq-status { padding: 4px 10px 4px 8px; font-size: 11.5px; gap: 7px; }
	.tq-status__full { display: none; }
	.tq-round { width: 36px; height: 36px; }
	.tq-hero { padding: 22px 0 40px; }
	.tq-hero--plain { padding: 32px 0 32px; }
	.tq-eyebrow { margin-bottom: 10px; font-size: 11px; }
	.tq-h1 { font-size: 36px; line-height: 1.05; }
	.tq-lead { font-size: 15px; margin: 10px 0 16px; }
	.tq-dz { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 10px; }
	.tq-dz__ic { display: none; }
	.tq-dz__btn { margin-top: 8px; }
	.tq-opts, .tq-opts--n3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.tq-opts--n1 { grid-template-columns: minmax(0, 1fr); max-width: none; }
	.tq-opts--n3 .tq-opt:last-child { grid-column: 1 / -1; }
	.tq-sel, .tq-select, .tq-input, .tq-fix__input { font-size: 16px; }
	.tq-dropzone { padding: 16px; gap: 8px; }
	.tq-wb__output.tq-card, .tq-abbr { padding: 12px; }
	.tq-wb__footer .tq-download { flex: 1 1 100%; }
	.tq-stack { height: auto; }
	.tq-doc { position: relative; width: 100% !important; top: 0; max-height: none; transform: none !important; opacity: 1 !important; }
	.tq-stage:not([data-front="in"]) .tq-doc--in, .tq-stage[data-front="in"] .tq-doc--out { display: none; }
	.tq-doc--in .tq-doc__body { max-height: 420px; }
	.tq-ln { grid-template-columns: 24px minmax(0, 1fr); padding-right: 12px; }
	.tq-ln .tq-ok { grid-column: 2; }
	.tq-ln--key { grid-template-columns: 56px minmax(0, 1fr); }
	.tq-stage__cta .tq-btn { flex: 1 1 100%; }
	.tq-issue { grid-template-columns: auto minmax(0, 1fr) auto; }
	.tq-issue__row { display: none; }
	.tq-band { padding-top: 48px; }
	.tq-h2, .tq-prose h2 { font-size: 28px; }
	.tq-prose h2 { margin-top: 48px; }
	.tq-prose ol.tq-steps > li { grid-template-columns: 44px minmax(0, 1fr); }
	.tq-prose ol.tq-steps > li::before { font-size: 26px; }
	.tq-table-scroll > table:has(tr > :nth-child(4)) { min-width: 560px; }
	.tq-prose .tq-abbrev-table, .tq-prose .tq-abbrev-table tbody, .tq-prose .tq-abbrev-table tr, .tq-prose .tq-abbrev-table td { display: block; width: 100%; }
	.tq-prose .tq-abbrev-table thead { display: none; }
	.tq-prose .tq-abbrev-table tr { padding: 12px 16px; border-bottom: 1px solid var(--tq-line); }
	.tq-prose .tq-abbrev-table tr:last-child { border-bottom: 0; }
	.tq-prose .tq-abbrev-table td { padding: 2px 0; border: 0; }
	.tq-prose .tq-abbrev-table td[data-label]::before { content: attr(data-label) " · "; font-family: var(--tq-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--tq-mute); }
	.tq-spec dl > div { grid-template-columns: 104px minmax(0, 1fr); padding: 11px 16px; }
	.tq-spec__hd, .tq-spec__ft { padding-left: 16px; padding-right: 16px; }
	.tq-vs { grid-template-columns: minmax(0, 1fr); }
	.tq-vs > div { padding: 22px 18px; }
	.tq-vs > div + div { border-left: 0; border-top: 1px solid var(--tq-line); }
	.tq-qa summary { font-size: 18px; }
	.tq-route { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; gap: 14px; }
	.tq-route__doc { width: 40px; height: 50px; }
	.tq-route__go { display: none; }
	.tq-route__title { font-size: 19px; }
	.tq-index { grid-template-columns: minmax(0, 1fr); }
	.tq-colo { margin-top: 64px; }
	.tq-colo__top { padding-top: 36px; gap: 28px 20px; }
}
@media (max-width: 600px) {
	.admin-bar .tq-mast { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.tq-dot::after { animation: none; }
}
