/* Airlock report — Lifted Holdings */
:root {
  --bg: #fcfbf9;
  --bg-2: #f5f3ef;
  --panel: #f3f1ed;
  --ink: #0c0c0d;
  --ink-2: #3a3a3e;
  --muted: #6d6c70;
  --faint: #9b9a9e;
  --line: #e7e4df;
  --line-2: #d9d5ce;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(20, 16, 10, .04), 0 12px 32px -12px rgba(20, 16, 10, .14);
  --radius: 18px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --measure: 760px;
  --wide: 1200px;

  /* stage (demo + diagram) */
  --stage: #0d0f12;
  --stage-2: #14171c;
  --stage-3: #1b1f26;
  --stage-line: #2a2f38;
  --stage-ink: #eef0f3;
  --stage-muted: #8b93a0;
  --amber: #ffb454;
  --teal: #5eead4;
  --blue: #8ab4ff;
  --green: #4ade80;
  --red: #f87171;

  /* used by the vendored card/check styles */
  --accent: #12c98a;
  --accent-2: #0c8f63;
  --p-display: var(--sans);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.75;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: .86em; background: var(--panel); padding: .12em .38em; border-radius: 6px; word-break: break-word; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-in { max-width: var(--wide); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.brand { font-weight: 600; font-size: 15px; letter-spacing: -.01em; text-decoration: none; display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.topnav { margin-left: auto; display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.topnav a { text-decoration: none; }
.topnav a:hover { color: var(--ink); }
@media (max-width: 720px) { .topnav .hide-sm { display: none; } }

/* ---------- article frame ---------- */
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 20px; }
.wide { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
section { scroll-margin-top: 70px; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; color: var(--ink-2); }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; color: var(--ink-2); }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--faint); }
h2 { font-size: clamp(28px, 4.2vw, 38px); font-weight: 400; letter-spacing: -.028em; line-height: 1.15; margin: 0 0 .7em; }
h3 { font-size: 21px; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; margin: 1.8em 0 .5em; }
.kicker { font-size: 13px; letter-spacing: .02em; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.kicker .num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.block { padding: 88px 0 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 88px auto 0; max-width: var(--measure); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 0; }
.eyebrow { font-size: 13.5px; color: var(--muted); letter-spacing: .01em; margin: 0 0 22px; }
.eyebrow span + span::before { content: "·"; margin: 0 .55em; color: var(--faint); }
h1 { font-size: clamp(36px, 6.4vw, 60px); font-weight: 300; letter-spacing: -.038em; line-height: 1.04; margin: 0; text-wrap: balance; }
.sub { font-size: clamp(18px, 2.3vw, 21px); line-height: 1.55; color: var(--ink-2); margin: 24px 0 0; font-weight: 400; letter-spacing: -.008em; text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); margin: 30px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta span + span::before { content: "·"; margin: 0 .6em; color: var(--faint); }

/* narration player */
.listen { margin: 28px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px 20px; }
.listen-top { display: flex; align-items: center; gap: 14px; }
.play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; display: grid; place-items: center; transition: transform .15s; }
.play:hover { transform: scale(1.05); }
.play svg { width: 18px; height: 18px; }
.listen-meta { min-width: 0; flex: 1; }
.listen-title { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.listen-by { font-size: 13px; color: var(--muted); }
.listen-time { font-family: var(--mono); font-size: 12px; color: var(--muted); flex: none; }
.progress { margin-top: 14px; width: 100%; -webkit-appearance: none; appearance: none; height: 18px; background: transparent; cursor: pointer; }
.progress::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--ink) var(--p, 0%), var(--line-2) var(--p, 0%)); }
.progress::-moz-range-track { height: 3px; border-radius: 3px; background: var(--line-2); }
.progress::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--ink); }
.progress::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); margin-top: -4.5px; }
.progress::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--ink); }
.karaoke { margin-top: 12px; font-size: 16px; line-height: 1.8; color: var(--faint); max-height: 9.2em; overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.karaoke .w { cursor: pointer; border-radius: 4px; padding: 1px 1px; transition: color .18s, background-color .18s; }
.karaoke .w.done { color: var(--ink-2); }
.karaoke .w.now { color: var(--ink); background: #fff1c9; }
.karaoke .w:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .karaoke .w { transition: none; } }

/* ---------- figures, callouts, tables ---------- */
figure { margin: 2em 0; }
.fig-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
figcaption { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 12px; }
.callout { border-left: 2px solid var(--ink); padding: 4px 0 4px 20px; margin: 1.6em 0; }
.callout p { color: var(--ink); font-size: 18px; line-height: 1.6; letter-spacing: -.008em; }
.callout .src { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.finding { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin: 1.8em 0; }
.finding .tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #9a5b00; background: #fff3dc; border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.finding p { color: var(--ink); margin: 0; }
.finding p + p { margin-top: .8em; color: var(--ink-2); }

.tbl-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font-weight: 500; color: var(--muted); font-size: 12.5px; letter-spacing: .02em; background: var(--bg-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; font-family: var(--mono); font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--panel); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: #e3f7ea; color: #13703b; }
.pill.no { background: #fde8e8; color: #a12828; }
.pill.new { background: #fff1c9; color: #7a4d00; }

pre.code { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 13px; line-height: 1.65; overflow-x: auto; margin: 1.4em 0; color: #24242a; white-space: pre; }
pre.code .c { color: #8a8a90; }
pre.code .k { color: #9a3b8a; }
pre.code .s { color: #1f6f4a; }

ol.seq { list-style: none; padding: 0; margin: 1.6em 0; counter-reset: s; }
ol.seq > li { counter-increment: s; position: relative; padding: 0 0 22px 52px; color: var(--ink-2); }
ol.seq > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); display: grid; place-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
ol.seq > li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 1px; background: var(--line); }
ol.seq > li:last-child::after { display: none; }
ol.seq > li b { color: var(--ink); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 1.8em 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; }
.stat .v { font-size: 34px; font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }
.stat .v small { font-size: 16px; color: var(--muted); margin-left: 2px; }
.stat .l { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 8px; }

/* bar chart (eCheck turn timings) */
.bars { padding: 20px 22px 18px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 2fr 44px; gap: 12px; align-items: center; font-size: 13px; padding: 5px 0; }
.bar-row .bl { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .bt { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.bar-row .bf { height: 100%; border-radius: 4px; background: var(--ink); }
.bar-row .bv { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
@media (max-width: 480px) { .bar-row { grid-template-columns: 1fr 52px; } .bar-row .bt { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- evidence ---------- */
details.ev { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin: 12px 0; }
details.ev > summary { cursor: pointer; list-style: none; padding: 15px 18px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
details.ev > summary::-webkit-details-marker { display: none; }
details.ev > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .2s; flex: none; }
details.ev[open] > summary::before { transform: rotate(45deg); }
details.ev > summary .sm { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; text-align: right; }
.ev-body { padding: 0 18px 18px; }
.ev-body > p { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
details.step { border-top: 1px solid var(--line); }
details.step > summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 2px; font-size: 14px; }
details.step > summary::-webkit-details-marker { display: none; }
details.step > summary .sn { font-family: var(--mono); font-size: 12px; color: var(--faint); }
details.step > summary .st { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13px; }
details.step > summary .sm { font-family: var(--mono); font-size: 12px; color: var(--muted); }
details.step[open] > summary .st { white-space: normal; }
.hops { display: grid; gap: 8px; padding: 2px 0 14px 38px; }
.hop { border-radius: 12px; padding: 10px 13px; background: var(--bg-2); }
.hop .hl { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.hop .hv { font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink); margin-top: 4px; word-break: break-word; }
.hop.in { background: #fff6e6; }
.hop.at { background: #e8f8f4; }
@media (max-width: 520px) { .hops { padding-left: 0; } }
pre.json { background: var(--panel); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; line-height: 1.6; overflow-x: auto; margin: 8px 0 0; white-space: pre; }
pre.json .jk { color: #6b3fa0; } pre.json .js { color: #1f6f4a; } pre.json .jn { color: #b45309; } pre.json .jb { color: #9a3b8a; }
.ev-sub { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }

/* ---------- demo stage (dark) ---------- */
.stage { background: radial-gradient(1200px 500px at 70% -10%, #1a2230 0%, transparent 60%), var(--stage); color: var(--stage-ink); padding: 84px 0 92px; margin-top: 96px; }
.stage h2 { color: #fff; }
.stage .kicker { color: var(--stage-muted); }
.stage .kicker .num { color: #5b6370; }
.stage-intro { max-width: var(--measure); }
.stage-intro p { color: #c3c9d2; margin: 0; }
.stage-intro p + p { margin-top: .9em; }
.safety { margin-top: 26px; display: flex; gap: 14px; align-items: flex-start; border: 1px solid rgba(255, 180, 84, .35); background: rgba(255, 180, 84, .07); border-radius: 14px; padding: 14px 18px; font-size: 15px; line-height: 1.6; color: #ffe2b8; }
.safety svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--amber); }
.safety b { color: #fff; font-weight: 600; }
.demo-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 34px; }
@media (min-width: 1040px) { .demo-grid { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; } }
.panel { background: var(--stage-2); border: 1px solid var(--stage-line); border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--stage-line); font-size: 13px; color: var(--stage-muted); }
.panel-h b { color: var(--stage-ink); font-weight: 500; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4b5260; flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(74, 222, 128, .15); }
.dot.wait { background: var(--amber); }
.dot.err { background: var(--red); }
.panel-b { padding: 16px 18px 18px; }

.call-ctrls { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { font: inherit; font-size: 14px; font-weight: 500; border-radius: 999px; padding: 9px 16px; cursor: pointer; border: 1px solid var(--stage-line); background: var(--stage-3); color: var(--stage-ink); display: inline-flex; align-items: center; gap: 8px; transition: background-color .15s, border-color .15s, transform .1s; }
.btn:hover:not(:disabled) { border-color: #3b4350; background: #222730; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: #fff; color: #0b0c0e; border-color: #fff; }
.btn.primary:hover:not(:disabled) { background: #e9ecf0; }
.btn.danger { color: #ffd0d0; border-color: rgba(248, 113, 113, .4); }
.btn svg { width: 15px; height: 15px; }
.btn.sm { font-size: 12.5px; padding: 6px 12px; }
.status-line { margin-top: 12px; font-size: 13.5px; color: var(--stage-muted); line-height: 1.5; min-height: 1.5em; }
.status-line.err { color: #ffb4b4; }

.transcript { margin-top: 14px; height: 230px; overflow-y: auto; background: var(--stage); border: 1px solid var(--stage-line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: #333a45 transparent; }
.transcript .empty { margin: auto; color: #5d6574; font-size: 13.5px; text-align: center; max-width: 30ch; line-height: 1.5; }
.msg { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.msg.agent { background: var(--stage-3); color: var(--stage-ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: #2b3a55; color: #e6edff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.sys { align-self: center; background: transparent; color: #6f7785; font-size: 12.5px; font-family: var(--mono); padding: 2px; }
.say-row { display: flex; gap: 8px; margin-top: 10px; }
.say-row input { flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--stage-ink); background: var(--stage); border: 1px solid var(--stage-line); border-radius: 999px; padding: 9px 14px; }
.say-row input:focus { outline: none; border-color: #4a5466; }
.orders { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.order { font: inherit; font-size: 12.5px; color: #c9cfd8; background: transparent; border: 1px dashed #39404b; border-radius: 10px; padding: 5px 10px; cursor: pointer; text-align: left; line-height: 1.35; }
.order:hover { border-color: #5a6372; color: #fff; }
.order b { font-family: var(--mono); font-weight: 500; color: #fff; }

/* keypad */
.kp-wrap { margin-top: 16px; }
.kp-display { display: flex; align-items: center; gap: 8px; background: var(--stage); border: 1px solid var(--stage-line); border-radius: 14px; padding: 10px 12px 10px 16px; }
.kp-digits { flex: 1; min-width: 0; font-family: var(--mono); font-size: 20px; letter-spacing: .08em; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; direction: rtl; text-align: left; }
.kp-digits.ph { color: #4e5664; font-size: 14px; letter-spacing: 0; direction: ltr; font-family: var(--sans); }
.kp-back { background: transparent; border: 0; color: var(--stage-muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.kp-back:hover { color: #fff; }
.kp-back svg { width: 20px; height: 20px; display: block; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.key { font: inherit; height: 54px; border-radius: 14px; border: 1px solid var(--stage-line); background: var(--stage-3); color: #fff; font-size: 22px; font-weight: 300; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transition: background-color .12s, transform .08s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.key small { font-size: 9px; letter-spacing: .14em; color: #6d7583; margin-top: 3px; font-weight: 500; }
.key:hover { background: #242a33; }
.key:active, .key.press { background: #313946; transform: scale(.97); }
.key.hash { background: #ecfdf5; color: #064e3b; border-color: #ecfdf5; font-weight: 500; }
.key.hash small { color: #047857; }
.key.hash:hover { background: #d1fae5; }
.kp-note { font-size: 12.5px; color: var(--stage-muted); line-height: 1.5; margin-top: 10px; }

/* test instruments */
.inst-tabs { display: flex; gap: 4px; background: var(--stage); border: 1px solid var(--stage-line); border-radius: 12px; padding: 4px; overflow-x: auto; }
.inst-tab { font: inherit; flex: 1; white-space: nowrap; font-size: 12.5px; font-weight: 500; color: var(--stage-muted); background: transparent; border: 0; border-radius: 9px; padding: 7px 10px; cursor: pointer; }
.inst-tab[aria-selected="true"] { background: var(--stage-3); color: #fff; }
.inst-stage { margin-top: 16px; }
.inst-info { font-size: 13px; color: #c3c9d2; line-height: 1.55; margin-top: 4px; }
.inst-info .mono { font-family: var(--mono); font-size: 12.5px; color: #fff; }
.inst-info p { margin: 0 0 8px; }
.typeit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.typeit .lbl { width: 100%; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #6d7583; }
.flip-hint { text-align: center; font-size: 12px; color: #6d7583; margin: -6px 0 10px; }

/* vendored card + check visuals (from the Lifted terminal) */
.preload * { -webkit-transition: none !important; transition: none !important; }
.cc-stage { width: 100%; max-width: 340px; margin: 0 auto 14px; perspective: 1000px; outline: none; }
.cc-stage:focus-visible .creditcard svg { outline: 2px solid #3b82f6; outline-offset: 3px; }
.creditcard { width: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, .7, .2, 1); cursor: pointer; position: relative; }
.creditcard .front, .creditcard .back { position: relative; width: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; -webkit-font-smoothing: antialiased; }
.creditcard .back { position: absolute; inset: 0; transform: rotateY(180deg); }
.creditcard.flipped { transform: rotateY(180deg); }
.creditcard svg#cardfront, .creditcard svg#cardback { width: 100%; display: block; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .85); border-radius: 22px; }
#ccsingle { position: absolute; right: 18px; top: 18px; }
#ccsingle svg { width: 74px; max-height: 46px; }
.creditcard .lightcolor, .creditcard .darkcolor { transition: fill .5s; }
.creditcard .lightblue { fill: #03A9F4; } .creditcard .lightbluedark { fill: #0288D1; }
.creditcard .red { fill: #ef5350; } .creditcard .reddark { fill: #d32f2f; }
.creditcard .purple { fill: #ab47bc; } .creditcard .purpledark { fill: #7b1fa2; }
.creditcard .cyan { fill: #26c6da; } .creditcard .cyandark { fill: #0097a7; }
.creditcard .green { fill: #66bb6a; } .creditcard .greendark { fill: #388e3c; }
.creditcard .lime { fill: #cddc39; } .creditcard .limedark { fill: #afb42b; }
.creditcard .yellow { fill: #ffeb3b; } .creditcard .yellowdark { fill: #f9a825; }
.creditcard .orange { fill: #ff9800; } .creditcard .orangedark { fill: #ef6c00; }
.creditcard .grey { fill: #bdbdbd; } .creditcard .greydark { fill: #616161; }
.creditcard .lifted { fill: #12c98a; } .creditcard .lifteddark { fill: #0c5a45; }
#svgname { text-transform: uppercase; }
#cardfront .st2 { fill: #fff; }
#cardfront .st3 { font-family: var(--mono); font-weight: 600; }
#cardfront .st4 { font-size: 50px; }
#cardfront .st5 { font-family: var(--mono); font-weight: 400; }
#cardfront .st6 { font-size: 33.1112px; }
#cardfront .st7 { opacity: .6; fill: #fff; }
#cardfront .st8 { font-size: 24px; }
#cardfront .st9 { font-size: 36.5498px; }
#cardfront .st10 { font-family: var(--mono); font-weight: 300; }
#cardfront .st11 { font-size: 16.1716px; }
#cardfront .st12 { fill: #4C4C4C; }
#cardfront .amexcid { font-family: var(--mono); font-size: 30px; fill: #fff; font-weight: 600; }
#cardfront .amexcid-l { font-family: var(--sans); font-size: 15px; fill: #fff; opacity: .7; letter-spacing: .08em; }
#cardback .st0 { fill: none; stroke: #0F0F0F; stroke-miterlimit: 10; }
#cardback .st2 { fill: #111; } #cardback .st3 { fill: #F2F2F2; } #cardback .st4 { fill: #D8D2DB; }
#cardback .st5 { fill: #C4C4C4; } #cardback .st6 { font-family: var(--mono); font-weight: 400; }
#cardback .st7 { font-size: 27px; } #cardback .st8 { opacity: .6; } #cardback .st9 { fill: #fff; }
#cardback .st10 { font-size: 24px; } #cardback .st11 { fill: #EAEAEA; }
#cardback .st12 { font-family: cursive; } #cardback .st13 { font-size: 37.769px; }
@media (prefers-reduced-motion: reduce) { .creditcard { transition: none; } }

.echeck { position: relative; width: 100%; max-width: 430px; margin: 0 auto 14px; overflow: hidden; border-radius: 14px; padding: 18px 20px 16px; color: #1a2b33;
  background: repeating-linear-gradient(90deg, rgba(18, 201, 138, .05) 0 2px, transparent 2px 7px), linear-gradient(135deg, #f4faf7 0%, #eaf4ef 60%, #def0e8 100%);
  border: 1px solid #cfe6dd; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); font-family: var(--mono); line-height: 1.4; }
.echeck::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.ec-watermark { position: absolute; right: -10px; bottom: 24px; font-family: var(--p-display); font-weight: 700; font-size: 46px; letter-spacing: .04em; color: rgba(12, 90, 69, .06); transform: rotate(-8deg); pointer-events: none; white-space: nowrap; }
.ec-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ec-name { font-family: var(--p-display); font-weight: 700; font-size: 15px; color: #0c5a45; text-transform: uppercase; letter-spacing: .02em; }
.ec-sub { font-size: 10.5px; color: #5b7c70; margin-top: 2px; letter-spacing: .04em; }
.ec-meta { text-align: right; }
.ec-date { font-size: 12px; color: #3a5249; }
.ec-payline { display: flex; align-items: flex-end; gap: 10px; margin: 18px 0 4px; }
.ec-pay-l { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: #5b7c70; flex: none; max-width: 64px; line-height: 1.25; }
.ec-payee { flex: 1; min-width: 0; border-bottom: 1.5px solid #aaccc0; padding: 0 6px 3px; font-family: var(--p-display); font-weight: 600; font-size: 15px; color: #173f33; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-amtbox { flex: none; border: 1.5px solid #9ec7b9; border-radius: 7px; padding: 5px 11px; background: rgba(255, 255, 255, .6); font-weight: 700; font-size: 16px; color: #0c5a45; font-variant-numeric: tabular-nums; }
.ec-amtbox .ec-cur { opacity: .6; margin-right: 2px; }
.ec-bottom { display: flex; justify-content: flex-end; margin-top: 12px; }
.ec-sign { text-align: center; }
.ec-sig { font-family: cursive; font-size: 16px; color: #173f33; display: block; min-height: 22px; }
.ec-sigline { border-top: 1.2px solid #aaccc0; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: #5b7c70; padding-top: 3px; min-width: 150px; }
.ec-micr { margin-top: 14px; font-size: 15px; letter-spacing: .06em; color: #1a2b33; font-family: var(--mono); border-top: 1px dashed #b9d6cb; padding-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- settings panel wireframe (proposal) ---------- */
.sp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sp-h { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.sp-h .crumbs { color: var(--muted); font-weight: 400; }
.sp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sp-row:last-child { border-bottom: 0; }
.sp-row .t { font-size: 15px; font-weight: 500; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sp-row .d { font-size: 13px; color: var(--muted); line-height: 1.5; grid-column: 1; }
.sp-row .ctl { grid-column: 2; grid-row: 1 / span 2; }
.sp-row.proposed { background: linear-gradient(90deg, #fffaf0, #fff 70%); box-shadow: inset 3px 0 0 #f5b544; }
.sp-row.sub { padding-left: 40px; }
.tog { width: 40px; height: 23px; border-radius: 999px; background: var(--line-2); position: relative; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.tog.on { background: var(--ink); }
.tog.on::after { left: 20px; }
.sel { font-size: 13px; border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 30px 6px 11px; position: relative; background: var(--bg); white-space: nowrap; }
.sel::after { content: ""; position: absolute; right: 11px; top: 11px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
@media (max-width: 520px) { .sp-row.sub { padding-left: 20px; } .sp-row { grid-template-columns: 1fr; } .sp-row .ctl { grid-column: 1; grid-row: auto; } }

.closing { font-size: clamp(22px, 3vw, 28px); font-weight: 300; letter-spacing: -.02em; line-height: 1.35; margin: 2em 0 0; color: var(--ink); }

/* ---------- footer ---------- */
footer { margin-top: 110px; border-top: 1px solid var(--line); padding: 30px 0 48px; font-size: 14px; color: var(--muted); }
footer .wide { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--ink-2); }
