:root{font:16px/1.45 system-ui,sans-serif;color:#1b3024;background:#f6faf7;--red:#217346;--yellow:#dceee2;--muted:#596b60;--line:#d6e3d9}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{background:#fff;border-bottom:1px solid var(--line)}.shell{max-width:1050px;margin:auto;padding-inline:24px}.brand{display:flex;align-items:center;gap:12px;min-height:68px}.mark{display:grid;place-items:center;background:var(--red);color:#fff;border-radius:9px;width:34px;height:34px;font-weight:800}.badge,.pill{padding:4px 9px;border-radius:30px;background:#e8f4ec;color:var(--red);font-size:.75rem;font-weight:700;white-space:nowrap}.badge{margin-left:auto}.hero{display:flex;justify-content:space-between;align-items:end;gap:18px;padding:45px 0 26px}.eyebrow{font-size:.7rem;letter-spacing:.16em;font-weight:800;color:var(--muted);margin:0 0 6px}h1,h2,p{margin:0}h1{font-size:clamp(2.2rem,6vw,3.7rem);letter-spacing:-.055em;line-height:1.06}#subtitle,#charge-summary{color:var(--muted);margin-top:10px}label{display:grid;gap:6px;font-size:.84rem;font-weight:700}select,input{font:inherit;min-width:0;border:1px solid #bdaaa2;background:#fff;color:inherit;border-radius:8px;padding:9px}button{font:inherit;cursor:pointer;font-weight:700;border:1px solid transparent;border-radius:9px;padding:9px 13px;color:var(--red);background:#e8f4ec}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #217346;outline-offset:2px}.primary{background:var(--red);color:white}.quiet{background:transparent;border-color:var(--line)}.metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:20px}.metric,.board{background:white;border:1px solid var(--line);border-radius:15px}.metric{padding:15px 18px;color:var(--muted);font-size:.84rem}.metric strong{display:block;font-size:1.55rem;color:var(--red)}.toolbar,.row,footer,.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.toolbar{padding:15px;flex-wrap:wrap}nav{display:flex;gap:5px;flex-wrap:wrap}nav button{background:transparent}nav button[aria-pressed=true]{background:#dceee2}.row{padding:16px;border-top:1px solid var(--line)}.row small,footer{color:var(--muted)}.row strong,.row small{display:block}.row .amount{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}.row button{min-width:105px}.pill.missing{background:#f9edda;color:#744807}#status:not(:empty),.empty{padding:12px 16px;color:var(--muted)}footer{font-size:.78rem;padding-block:20px}dialog{border:1px solid var(--line);border-radius:16px;color:inherit;width:min(540px,calc(100% - 28px));max-height:90vh;padding:22px}dialog::backdrop{background:#31130d99}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.upload{margin-bottom:10px}.upload small{font-weight:400}#receipt-preview{max-width:100%;max-height:150px;display:block;margin-bottom:8px}#form-status{margin:10px 0;color:#8d3025}@media(max-width:620px){.shell{padding-inline:14px}.hero{align-items:start;flex-direction:column;padding-top:26px}.metric{padding:10px}.row{flex-wrap:wrap}.row .pill{order:4}.row button{margin-left:auto}footer{align-items:start;flex-direction:column}}
.feed{padding:0 15px 14px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.feed small{color:var(--muted)}

header{border-top:5px solid var(--red)}.mark{background:var(--yellow);color:#1b3024}.badge{background:var(--yellow);color:#1b3024}.metric{border-top:3px solid var(--yellow)}.primary{background:var(--red);color:#fff}.search-filters{display:grid;grid-template-columns:minmax(180px,2fr) minmax(135px,1fr) minmax(135px,1fr) auto;align-items:end;gap:10px;padding:0 15px 8px}.search-filters input{width:100%;min-height:44px}.search-filters button{min-height:44px}.filter-summary{padding:0 15px 12px;color:var(--muted);font-size:.82rem}#viewer{width:min(720px,calc(100% - 24px))}#viewer-meta{color:var(--muted);margin:8px 0 16px}#full-receipt{display:block;max-width:100%;max-height:57vh;margin:0 auto 14px;object-fit:contain}.receipt-download{display:inline-block;color:var(--red);font-weight:700;padding:10px 12px 10px 0}button{min-height:44px}
@media(max-width:680px){.search-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.search-filters label:first-child{grid-column:1/-1}.search-filters button{justify-self:start}.row small{overflow-wrap:anywhere}.toolbar{align-items:flex-start}}

.reconciliation{padding:18px;margin-bottom:20px}.reconciliation>p{margin:6px 0;color:var(--muted)}.reconcile-controls{display:grid;grid-template-columns:1fr 1.3fr auto;gap:12px;align-items:end;margin:16px 0 8px}.statement-hint{font-size:.82rem}.statement-lines{padding:0;list-style:none;margin:12px 0}.statement-lines li{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:9px 0}.statement-lines span:first-child{overflow-wrap:anywhere}.reconciliation #export{margin-top:12px}@media(max-width:680px){.reconcile-controls{grid-template-columns:minmax(0,1fr)}.reconcile-controls button{justify-self:start}}

.fields > label {
  align-content: start;
}

.danger{color:var(--red)}
.delete-confirmation{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:8px}
.delete-confirmation p{margin-bottom:10px}

#groups > label {
  font-size: 1rem;
}

#group-picker {
  font-size: 1.25rem;
  font-weight: 700;
}

#reconcile-form fieldset {
  min-width: 0;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.export-card-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  overflow-wrap: anywhere;
}

#group-coding {
  margin: 12px 0;
}

#group-coding textarea {
  min-width: 0;
  width: 100%;
  font: inherit;
  padding: 8px;
}

#receipt-split {
  min-width: 0;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.text-link {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #0000ee;
  font-weight: 400;
  text-decoration: underline;
}

.receipt-split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(5rem, .65fr) auto;
  align-items: end;
  gap: 6px;
  margin-bottom: 8px;
}

.receipt-split-row .split-store {
  grid-column: 1 / -1;
}

#receipt-camera-video {
  display: block;
  width: 100%;
  max-height: 45vh;
  object-fit: contain;
  background: #111;
  border-radius: 8px;
  margin-top: 12px;
}

#receipt-camera-open {
  margin: 12px 0;
}

@media (max-width: 520px) {
  .receipt-split-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html{scroll-behavior:smooth}header{position:sticky;top:0;z-index:2}.hero{padding-top:24px}h1{font-size:36px}dialog{max-height:95vh}.demo-highlight{outline:3px solid #217346!important;outline-offset:4px;box-shadow:0 0 0 8px #21734618} @media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

html.embedded-walkthrough dialog[open]{position:fixed;inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;z-index:5;box-shadow:0 0 0 100vmax #1b302470} html.embedded-walkthrough{scroll-behavior:auto}
