:root {
  --ink: #17221d;
  --muted: #65726b;
  --paper: #f6f6f1;
  --white: #fff;
  --line: #dfe3dc;
  --green: #22634a;
  --green-dark: #174936;
  --mint: #dcecdf;
  --cream: #ebe9dc;
  --amber: #9b6a21;
  --red: #9d3b32;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
a { color: inherit; }
.topbar { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 36px; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 750; text-decoration: none; letter-spacing: -0.03em; }
.brand-mark { width: 28px; height: 28px; display: flex; align-items: end; gap: 3px; padding: 5px; border-radius: 8px; background: var(--green); }
.brand-mark i { display: block; width: 4px; border-radius: 4px; background: #fff; }
.brand-mark i:nth-child(1) { height: 8px; opacity: .65; }.brand-mark i:nth-child(2) { height: 13px; }.brand-mark i:nth-child(3) { height: 17px; opacity: .82; }
.topbar nav { display: flex; gap: 8px; }
.topbar nav a { text-decoration: none; padding: 9px 13px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.topbar nav a:hover, .topbar nav a.active { background: #eef2ed; color: var(--ink); }
.account { display: flex; justify-content: end; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.account form { margin: 0; }.text-button { padding: 0; border: 0; background: none; color: var(--green); cursor: pointer; font: inherit; }
.demo-ribbon { background: #f6edcf; color: #654e1d; padding: 8px 36px; text-align: center; font-size: 12px; border-bottom: 1px solid #dfd09d; }
.page { max-width: 1180px; margin: 0 auto; padding: 54px 34px 80px; }.narrow { max-width: 850px; }.wide-page { max-width: 1440px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
h1, h2, p { margin-top: 0; } h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(36px, 5vw, 58px); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 10px; } h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.025em; margin-bottom: 10px; }
.eyebrow { margin-bottom: 9px; color: var(--green); font-weight: 750; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; }
.muted { color: var(--muted); }.lede { font-size: 21px; line-height: 1.55; max-width: 630px; color: #46534c; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--green); color: white; }.button.primary:hover { background: var(--green-dark); }.button.secondary { background: white; border-color: var(--line); }.button.dark { background: var(--ink); color: white; width: 100%; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 23px; display: grid; gap: 8px; }
.metric span { color: var(--muted); font-size: 13px; }.metric strong { font-family: Georgia, serif; font-size: 39px; font-weight: 500; letter-spacing: -.04em; }.metric small { color: var(--muted); }.metric.featured { background: var(--green); color: white; border-color: var(--green); }.metric.featured span, .metric.featured small { color: #d9e9df; }
.split { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; }.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }.panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.status { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }.status.amber { background: #faefce; color: var(--amber); }.status.green { background: var(--mint); color: var(--green); }.status.neutral { background: #eef0eb; color: var(--muted); }
.preview-list { border-top: 1px solid var(--line); margin: 23px 0; }.preview-row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 15px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.merchant, .category { display: grid; gap: 4px; }.merchant small, .category small { color: var(--muted); }.connection { background: #e9efe9; display: flex; flex-direction: column; align-items: start; }.connection p:not(.eyebrow) { color: #556259; line-height: 1.55; }.qb-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 50%; color: white; background: #2ca01c; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }.form-grid .wide { grid-column: 1 / -1; } label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
input, select { width: 100%; min-height: 45px; border: 1px solid #ccd2ca; border-radius: 9px; padding: 0 12px; background: white; color: var(--ink); font: inherit; font-size: 14px; } input:focus, select:focus { outline: 3px solid #bcd5c6; border-color: var(--green); }.form-actions { border-top: 1px solid var(--line); padding-top: 22px; }
.alert { padding: 12px 14px; border-radius: 9px; margin-bottom: 18px; font-size: 13px; }.alert.success { background: var(--mint); color: var(--green); }.alert.error { background: #f9dfdc; color: var(--red); }.upload-result { margin-bottom: 0; }.upload-result strong { display: block; }.upload-result ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.statement-layout { grid-template-columns: 1fr 1.3fr; }.upload-panel { display: grid; gap: 20px; }.dropzone { padding: 25px; border: 1px dashed #9aaba0; border-radius: 12px; background: #f8faf7; text-align: center; }.dropzone input { padding: 9px; margin-top: 8px; }.dropzone span, .dropzone small { color: var(--muted); font-weight: 500; }.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.fine-print { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0; }.statement-list { margin-top: 20px; }.statement-row { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); font-size: 13px; }.file-icon { background: #f1dedb; color: var(--red); padding: 7px; border-radius: 6px; font-weight: 800; font-size: 9px; }
.accuracy-pill { min-width: 220px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1px 14px; padding: 13px 17px; background: var(--white); border: 1px solid var(--line); border-radius: 13px; }.accuracy-pill span { color: var(--muted); font-size: 11px; }.accuracy-pill strong { grid-row: span 2; font-family: Georgia, serif; font-size: 30px; color: var(--green); }.accuracy-pill small { color: var(--muted); }
.review-note { background: #edf2eb; border: 1px solid #d6dfd5; padding: 13px 17px; border-radius: 10px; margin-bottom: 14px; font-size: 13px; }.table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; background: white; } table { width: 100%; border-collapse: collapse; min-width: 1100px; } th { padding: 12px 14px; text-align: left; color: var(--muted); background: #f4f5f1; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; } td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; font-size: 12px; } td small { display: block; margin-top: 4px; color: var(--muted); }.description { font-weight: 700; }.amount { font-variant-numeric: tabular-nums; font-weight: 700; }.old-category { color: var(--muted); text-decoration: line-through; text-decoration-color: #c6a29c; }.inline-form { display: contents; }.inline-form select { min-width: 190px; min-height: 37px; font-size: 12px; }.confidence { padding: 5px 8px; border-radius: 999px; font-weight: 800; }.confidence.high { background: var(--mint); color: var(--green); }.confidence.medium { background: #eeeadd; color: #6d5c2e; }.confidence.low { background: #f8dfda; color: var(--red); }.needs-review { background: #fffaf2; }.approve-button { border: 1px solid var(--green); border-radius: 8px; background: white; color: var(--green); padding: 8px 10px; font-weight: 750; cursor: pointer; }.approve-button.done { background: var(--green); color: white; }
.login-shell { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1.3fr 1fr; }.login-copy { padding: 70px max(45px, 7vw); background: var(--cream); display: flex; flex-direction: column; justify-content: center; }.brand-large { position: absolute; top: 38px; font-size: 22px; }.login-copy h1 { max-width: 700px; font-size: clamp(50px, 6vw, 82px); }.trust-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }.trust-line span { padding: 8px 10px; background: rgba(255,255,255,.65); border: 1px solid rgba(23,34,29,.1); border-radius: 999px; font-size: 11px; }.login-card { max-width: 470px; width: 100%; align-self: center; justify-self: center; padding: 48px; }.login-card h2 { font-family: Georgia, serif; font-size: 34px; font-weight: 500; }.stack { display: grid; gap: 16px; margin: 28px 0 18px; }.forgot-link { justify-self: end; margin-top: -8px; color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }.back-link { color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }.password-hint { margin: -5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.verification-code { font-size: 22px; letter-spacing: .3em; font-variant-numeric: tabular-nums; }.mfa-setup { display: grid; justify-items: center; gap: 12px; margin: 24px 0 8px; }.mfa-qr { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 12px; }.mfa-setup details { width: 100%; color: var(--muted); font-size: 12px; }.mfa-setup summary { cursor: pointer; color: var(--green); font-weight: 700; }.mfa-setup details p { margin: 10px 0 5px; }.mfa-setup code { display: block; padding: 10px; border-radius: 8px; background: #eef2ed; color: var(--ink); overflow-wrap: anywhere; }
.footer { min-height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 20px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; background: var(--white); }
.legal-nav { height: 72px; display:flex; justify-content:space-between; align-items:center; padding:0 36px; background:#fff; border-bottom:1px solid var(--line); }
.legal-nav nav { display:flex; gap:22px; }.legal-nav nav a { color:var(--muted); text-decoration:none; font-size:13px; }
.legal-page { max-width:820px; margin:0 auto; padding:70px 28px 90px; }.legal-page h1 { max-width:760px; }
.legal-page h2 { margin-top:38px; font-family:Georgia,serif; font-size:24px; font-weight:500; }
.legal-page p { color:#46534c; font-size:15px; line-height:1.75; }.legal-page .legal-intro { font-size:20px; line-height:1.6; }
.legal-page a { color:var(--green); }
@media (max-width: 850px) {
  .topbar { height: auto; grid-template-columns: 1fr auto; padding: 15px 18px; }.topbar nav { grid-column: 1 / -1; order: 3; overflow-x: auto; margin: 10px -5px -5px; }.account span { display: none; }
  .demo-ribbon { padding: 8px 16px; }.page { padding: 35px 17px 60px; }.page-heading { align-items: start; flex-direction: column; }.page-heading .button { width: 100%; }
  .legal-nav { padding:0 18px; }.legal-nav nav { gap:12px; }.legal-page { padding:50px 20px 70px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }.split, .statement-layout { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; }.login-shell { grid-template-columns: 1fr; }.login-copy { min-height: 52vh; padding: 100px 28px 45px; }.login-copy h1 { font-size: 48px; }.login-card { padding: 40px 24px; }.brand-large { top: 30px; }.footer { padding: 20px; }
}
@media (max-width: 520px) { .metrics-grid, .two-fields { grid-template-columns: 1fr; }.preview-row { grid-template-columns: 1fr auto; }.preview-row .category { grid-column: 1 / -1; }.trust-line { display: grid; }.account { display: none; } }
