@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(./assets/bricolage-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(./assets/bricolage-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(./assets/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(./assets/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  color-scheme: light;
  --ink: #172b25;
  --muted: #425850;
  --paper: #f4f2e8;
  --white: #fffef8;
  --rule: #d2d8ca;
  --forest: #153d36;
  --forest-deep: #112f29;
  --forest-ink: #e1f0e2;
  --lime: #e0ec87;
  --lime-bright: #f0f7a7;
  --sample: #546637;
  --warn: #74430d;
  --warn-bg: #faedcd;
  --success: #254b32;
  --success-bg: #e3f2dc;
  --uncertain: #464576;
  --uncertain-bg: #eeebff;
  --code: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --body: Manrope, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", Manrope, sans-serif;
  --container: 76rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--forest-deep); background: var(--lime); }
a { color: inherit; text-underline-offset: .24em; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button, textarea { font: inherit; }
button:enabled, summary { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #896316; outline-offset: 4px; }
.hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--lime); }
[hidden] { display: none !important; }
.shell { width: min(var(--container), 100% - 6rem); margin-inline: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.032em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
h3 { font-size: 1.45rem; }
code { font: 500 .9em/1.4 var(--code); font-variant-numeric: tabular-nums; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  background: var(--white);
  padding: .75rem 1rem;
  border-radius: .25rem;
}

.site-header { background: var(--paper); }
.header-inner, .footer-inner {
  min-height: 4.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  text-decoration: none;
  line-height: 1;
  font: 800 1.68rem/1 var(--display);
  letter-spacing: -.035em;
}
.brand-mark {
  width: 1.95rem;
  height: 1.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  background: var(--forest);
  border-radius: .33rem;
  padding-inline: .25rem;
}
.brand-mark i { display: block; width: .24rem; border-radius: .08rem; background: var(--lime); transform: rotate(25deg); }
.brand-mark i:nth-child(1) { height: .55rem; margin-top: .27rem; }
.brand-mark i:nth-child(2) { height: .8rem; }
.brand-mark i:nth-child(3) { height: 1.05rem; margin-top: -.23rem; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.45rem); }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 750; font-size: .87rem; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav-action { padding: .25rem .78rem; border: 1px solid #9ba99b; border-radius: .42rem; gap: .6rem; }
.arrow {
  width: .88rem;
  height: .88rem;
  display: inline-block;
  color: inherit;
  position: relative;
  flex: none;
}
.arrow::before, .arrow::after { content: ""; display: block; position: absolute; }
.arrow::before { width: .85rem; height: 1.5px; top: calc(50% - .75px); left: 0; background: currentColor; }
.arrow::after {
  width: .42rem;
  height: .42rem;
  top: calc(50% - .21rem);
  right: 1px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.arrow-down { transform: rotate(90deg); }

.hero { background: var(--forest); color: var(--white); overflow: clip; }
.hero-inner {
  min-height: clamp(29rem, 46vw, 38rem);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5.8rem);
}
.hero h1 {
  font-size: clamp(3.3rem, 5.1vw, 5rem);
  line-height: .96;
  text-wrap: initial;
  font-weight: 790;
}
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-copy p {
  max-width: 39ch;
  margin-top: 1.45rem;
  color: var(--forest-ink);
  font-size: clamp(1.02rem, 1.4vw, 1.23rem);
  line-height: 1.56;
}
.button {
  min-height: 3.13rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  border: 0;
  border-radius: .42rem;
  padding: .72rem 1.12rem;
  font-weight: 850;
  font-size: .9rem;
  text-decoration: none;
}
.button-primary { background: var(--lime); color: var(--forest-deep); margin-block: 1.75rem .72rem; }
.button-primary:hover { background: var(--lime-bright); }
.hero-note { display: block; color: #c8dfcc; font-size: .79rem; }
.hero-figure { display: grid; place-items: center; min-width: 0; padding-block: 2rem 3rem; }
.sheet-stack {
  position: relative;
  width: min(93%, 27rem);
  color: var(--forest-deep);
  isolation: isolate;
}
.sheet-under, .sheet { border-radius: .52rem; }
.sheet-under {
  position: absolute;
  inset: .3rem -.35rem 0 .1rem;
  z-index: -1;
  box-shadow: 0 1rem 1.8rem #071b2033;
}
.sheet-under-first { background: #7b9c71; transform: rotate(-8deg) translate(-.3rem, .3rem); }
.sheet-under-second { background: #c1c99d; transform: rotate(5deg) translate(.32rem, .2rem); }
.sheet {
  background: var(--white);
  padding: clamp(1.1rem, 2.2vw, 1.9rem) clamp(1.15rem, 2.6vw, 2.15rem) clamp(2.6rem, 4vw, 3.3rem);
  box-shadow: 0 .7rem 2.1rem #0e271f52;
  transform: rotate(-2deg);
}
.sheet-top, .sheet-total { display: flex; align-items: center; justify-content: space-between; gap: .45rem; }
.sheet-top { border-bottom: 1px solid var(--rule); padding-bottom: .9rem; }
.sheet-top strong { display: block; font: 760 clamp(1.65rem, 3.3vw, 2.55rem)/1 var(--display); letter-spacing: -.031em; }
.sheet-caption { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .74rem; font-weight: 750; }
.stamp {
  padding: .34rem .45rem;
  color: var(--warn);
  border: 1px solid #ae7441;
  border-radius: .18rem;
  transform: rotate(7deg);
  font: 650 .74rem/1 var(--code);
  letter-spacing: .07em;
}
.sheet-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 3rem;
  gap: .4rem;
  border-bottom: 1px solid var(--rule);
  padding-block: .72rem;
  font-size: .94rem;
}
.sheet-line code { opacity: .8; margin-left: .25rem; font-size: .69rem; }
.sheet-line b, .sheet-total strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet-refund { color: var(--warn); }
.sheet-total { padding-top: 1rem; font-size: .86rem; font-weight: 750; }
.sheet-total strong { font-family: var(--display); font-size: clamp(1.25rem, 3vw, 2rem); line-height: 1; letter-spacing: -.02em; }
.sheet-annotation {
  position: absolute;
  bottom: -1.3rem;
  right: -.9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .68rem 1.04rem .68rem .64rem;
  background: var(--lime);
  border-radius: .36rem;
  box-shadow: 0 .65rem 1.4rem #0d2b2366;
  transform: rotate(4deg);
  animation: settle 550ms cubic-bezier(.16, 1, .3, 1) both;
}
.annotation-mark {
  display: grid;
  place-items: center;
  border: 1px solid #697450;
  border-radius: 50%;
  font-weight: 850;
  width: 1.6rem;
  height: 1.6rem;
}
.sheet-annotation b, .sheet-annotation div span { display: block; line-height: 1.25; }
.sheet-annotation b { font-size: .81rem; }
.sheet-annotation div span { color: #354421; font-size: .73rem; }
@keyframes settle {
  from { transform: translate(.5rem, -.45rem) rotate(7deg); }
  to { transform: translate(0) rotate(4deg); }
}

.demo-section { padding-block: clamp(4rem, 8vw, 7.2rem) clamp(3.5rem, 6.5vw, 5.8rem); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.7rem;
}
.section-heading p, .validator-copy > p, .workflow-inner > div > p {
  margin-top: .95rem;
  max-width: 62ch;
  color: var(--muted);
}
.sample-label {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .4rem;
  background: #e7ebd0;
  padding: .4rem .75rem;
  border-radius: 4rem;
  color: #334521;
  font-weight: 800;
  font-size: .75rem;
}
.sample-label i { width: .42rem; height: .42rem; border-radius: 50%; background: var(--sample); }
.workspace { background: var(--white); border: 1px solid #bfcabb; border-radius: .8rem; overflow: clip; }
.workspace-toolbar {
  padding: .86rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  background: #f4f5eb;
  border-bottom: 1px solid var(--rule);
}
.scenario-switch { display: flex; gap: .38rem; flex-wrap: wrap; }
.scenario-switch button {
  min-height: 2.75rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: .38rem;
  padding: .42rem .76rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}
.scenario-switch button:hover { background: #eaf0df; }
.scenario-switch button[aria-pressed="true"] { background: var(--forest); color: var(--white); }
.export-button {
  min-height: 2.75rem;
  background: transparent;
  border: 1px solid #9eac9d;
  border-radius: .38rem;
  padding: .42rem .7rem;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 850;
  flex: none;
}
.export-button:hover:enabled { background: #eaf0df; }
.export-button span { color: var(--muted); font: 600 .7rem/1 var(--code); margin-left: .16rem; }
.js-note { padding: 1rem 1.2rem; color: var(--warn); }
.workspace-body { display: grid; grid-template-columns: minmax(14.5rem, 26%) minmax(0, 1fr); }
.payout-overview { color: var(--white); background: var(--forest-deep); padding: clamp(1.25rem, 2.5vw, 2rem); }
.payout-label { color: #c2d5c4; font-size: .75rem; font-weight: 750; }
.payout-overview h3 { margin-top: .32rem; font-size: 1.6rem; }
.payout-overview h3 code { font-weight: 680; font-size: .97em; }
.payout-values { margin-block: 1.35rem 1rem; }
.payout-values div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .12rem .4rem;
  padding-block: .63rem;
  border-bottom: 1px solid #42665b;
}
.payout-values div:last-child { padding-top: .8rem; border-bottom: 0; }
.payout-values dt { color: #d7e3d8; font-size: .8rem; }
.payout-values dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; font-size: .94rem; }
.payout-values div:last-child dd { color: var(--lime); }
.bank-match {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  padding: .63rem .68rem;
  background: #24483c;
  color: #e5f3db;
  border-radius: .35rem;
  font-size: .77rem;
  font-weight: 750;
}
.match-mark { width: .64rem; height: .38rem; flex: none; border-left: 1.6px solid #dceca5; border-bottom: 1.6px solid #dceca5; transform: rotate(-45deg); margin-block: .25rem 0; }
.bank-source { margin-top: .6rem; color: #c3d4c5; font-size: .72rem; }
.report { min-width: 0; padding: clamp(1.1rem, 3vw, 2rem); }
.report-heading {
  display: flex;
  gap: .5rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}
.report-count { color: var(--muted); font-size: .77rem; font-weight: 780; }
.case-row {
  width: 100%;
  min-height: 3.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1rem;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--rule);
  border-radius: .46rem;
  padding: .68rem .78rem;
  background: #f7f7ee;
  color: var(--ink);
  text-align: left;
}
.case-row:hover:enabled { background: #eff2e3; }
.case-identity { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .18rem .65rem; }
.case-identity strong { font-size: .94rem; overflow-wrap: anywhere; }
.case-identity code { font-size: .76rem; color: var(--muted); }
.case-status {
  color: var(--warn);
  background: var(--warn-bg);
  font-size: .74rem;
  font-weight: 850;
  border-radius: .3rem;
  padding: .26rem .46rem;
  white-space: nowrap;
}
.case-row[data-state="linked"] .case-status { background: var(--success-bg); color: var(--success); }
.case-row[data-state="ambiguous"] .case-status, .case-row[data-state="unresolved"] .case-status {
  background: var(--uncertain-bg); color: var(--uncertain);
}
.chevron {
  position: relative;
  display: block;
  width: .48rem;
  height: .48rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.case-row[aria-expanded="true"] .chevron { transform: rotate(225deg) translate(-.14rem, -.14rem); }
.finding-detail { padding: 1.05rem .11rem .1rem; }
.reason { color: var(--ink); font-size: .9rem; }
.evidence-list { list-style: none; margin: .65rem 0 0; padding: 0; }
.evidence-list li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(6.5rem, .4fr) minmax(0, .6fr);
  gap: .42rem .8rem;
  border-bottom: 1px solid var(--rule);
  padding: .72rem .1rem .72rem 1.18rem;
  font-size: .79rem;
  overflow-wrap: anywhere;
}
.evidence-list li::before {
  content: "";
  position: absolute;
  top: 1.06rem;
  left: .22rem;
  width: .48rem;
  height: .48rem;
  border: 2px solid #5b7157;
  border-radius: 50%;
}
.evidence-list li b, .evidence-list li code, .evidence-list li small { display: block; }
.evidence-list li code, .evidence-list li small { color: var(--muted); margin-top: .13rem; font-size: .72rem; }
.rejected {
  background: #f9f1df;
  padding: .8rem .9rem;
  margin-top: .86rem;
  border-radius: .4rem;
  color: #553a20;
  line-height: 1.44;
  font-size: .78rem;
}
.rejected code { display: inline-block; margin-left: .55rem; }
.rejected p { margin-top: .25rem; }
.rejected small { color: #674928; display: block; font-size: .71rem; margin-top: .2rem; }
.next-step { margin-top: .85rem; color: var(--muted); font-size: .82rem; font-weight: 750; }
.demo-note { color: var(--muted); font-size: .79rem; margin-top: .85rem; }

.workflow-section { background: #e7ebdc; }
.workflow-inner, .faq-inner, .validator-section {
  display: grid;
  grid-template-columns: minmax(15rem, .75fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 7vw, 7rem);
  padding-block: clamp(3rem, 7vw, 6.2rem);
}
.workflow-inner h2 { text-wrap: initial; }
.workflow-list { padding: 0; margin: 0; list-style: none; counter-reset: tasks; }
.workflow-list li {
  counter-increment: tasks;
  position: relative;
  border-top: 1px solid #aab9a5;
  padding: .86rem .3rem .93rem 2.7rem;
}
.workflow-list li::before {
  content: counter(tasks) ".";
  position: absolute;
  left: 0;
  top: 1rem;
  color: #495e46;
  font: 600 .9rem/1 var(--code);
}
.workflow-list strong { font-family: var(--display); font-size: 1.29rem; line-height: 1.2; }
.workflow-list p { font-size: .9rem; color: var(--muted); line-height: 1.55; margin-top: .35rem; }

.validator-copy p.validator-boundary {
  border-top: 1px solid var(--rule);
  padding-top: .68rem;
  margin-top: 1.22rem;
  font-weight: 750;
  font-size: .81rem;
}
.validator { min-width: 0; border: 1px solid #bfcabb; background: var(--white); border-radius: .65rem; padding: clamp(1rem, 2.5vw, 1.65rem); }
.validator label { display: block; color: var(--ink); font-size: .85rem; font-weight: 850; margin-bottom: .46rem; }
.validator textarea {
  display: block;
  resize: vertical;
  min-height: 8rem;
  width: 100%;
  padding: .72rem;
  color: var(--ink);
  caret-color: #705125;
  background: #f3f4ea;
  border: 1px solid #98ab9a;
  border-radius: .34rem;
  font: 500 .8rem/1.65 var(--code);
  font-variant-numeric: tabular-nums;
  scrollbar-color: #93a48d #e7eddf;
}
.validator textarea[aria-invalid="true"] { border-color: #9c592a; }
.field-hint { margin-top: .55rem; color: var(--muted); font-size: .76rem; }
.validator-actions { display: flex; gap: .45rem .95rem; flex-wrap: wrap; align-items: center; margin-top: .9rem; }
.button-dark { background: var(--forest); color: var(--white); }
.button-dark:hover:enabled { background: #265448; }
.text-button {
  min-height: 2.75rem;
  padding: .3rem .22rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 850;
  text-underline-offset: .24em;
  text-decoration: underline;
}
.validation-output { padding: .75rem .88rem; border-radius: .36rem; font-size: .82rem; margin-top: .92rem; }
.validation-output[data-state="pass"] { color: var(--success); background: var(--success-bg); }
.validation-output[data-state="error"] { color: var(--warn); background: var(--warn-bg); }
.validation-output ul { margin: .4rem 0 0; padding-left: 1.25rem; }
.validation-output li + li { margin-top: .25rem; }

.faq-section { border-top: 1px solid var(--rule); }
.faq-inner { padding-block: clamp(3rem, 5vw, 4.5rem); align-items: start; }
.faq-inner h2 { font-size: clamp(2rem, 3.5vw, 3.15rem); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list details:first-child { border-top: 1px solid var(--rule); }
.faq-list summary { padding: .8rem .15rem; color: var(--ink); font-size: .92rem; font-weight: 850; }
.faq-list summary::marker { color: #526746; }
.faq-list details p { color: var(--muted); padding: 0 .15rem .95rem; font-size: .86rem; }
.site-footer { color: var(--white); background: var(--forest-deep); }
.footer-inner { min-height: 7.15rem; padding-block: 1.1rem; }
.footer-inner .brand-mark { background: #244b3f; }
.footer-inner p { margin-top: .45rem; color: #c7d8cc; font-size: .78rem; }
.footer-link { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .5rem; font-size: .82rem; font-weight: 750; }

@media (max-width: 63rem) {
  .shell { width: min(var(--container), 100% - 3.5rem); }
  .hero-inner { gap: 1.5rem; }
  .hero h1 { font-size: clamp(3.1rem, 5.65vw, 4.4rem); }
  .workspace-body { grid-template-columns: minmax(13rem, 28%) minmax(0, 1fr); }
}
@media (max-width: 46rem) {
  .shell { width: calc(100% - 2.15rem); }
  .header-inner { min-height: 4.15rem; }
  .brand { font-size: 1.48rem; }
  .brand-mark { width: 1.72rem; height: 1.72rem; }
  .nav-secondary { display: none !important; }
  .nav-action { gap: .4rem; padding-inline: .65rem; }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.55rem;
    min-height: 0;
    padding-block: 2.5rem 2.5rem;
  }
  .hero h1 { font-size: clamp(2.45rem, 9.9vw, 4rem); }
  .hero-copy p { margin-top: 1rem; }
  .button-primary { margin-top: 1.22rem; }
  .hero-figure { padding-block: .5rem 1.65rem; }
  .sheet-stack { width: min(91%, 24rem); }
  .sheet { padding-bottom: 2.15rem; }
  .sheet-under-first { transform: rotate(-5deg) translate(-.15rem, .22rem); }
  .sheet-under-second { transform: rotate(4deg) translate(.02rem, .18rem); }
  .sheet-annotation { right: -.4rem; bottom: -1.2rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
  .section-heading p { margin-top: .65rem; }
  .workspace-toolbar { align-items: flex-start; flex-direction: column; padding: .6rem; }
  .scenario-switch { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .25rem; }
  .scenario-switch button { border-color: #c5cfc0; padding-inline: .28rem; }
  .export-button { align-self: flex-end; }
  .workspace-body { grid-template-columns: minmax(0, 1fr); }
  .payout-overview { padding: 1rem; }
  .payout-values { margin-block: .75rem; }
  .payout-values div { padding-block: .42rem; }
  .report { padding: .87rem; }
  .case-row { grid-template-columns: minmax(0, 1fr) auto .74rem; gap: .38rem; }
  .case-identity { display: block; }
  .case-identity strong { display: block; }
  .case-status { padding-inline: .3rem; font-size: .71rem; }
  .workflow-inner, .faq-inner, .validator-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }
  .workflow-inner h2 br { display: none; }
  .workflow-list li { padding-left: 2rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .4rem; }
}
@media (max-width: 23rem) {
  .shell { width: calc(100% - 1.55rem); }
  .sheet-line code { display: none; }
  .sheet-annotation { max-width: 90%; }
  .case-row { grid-template-columns: minmax(0, 1fr) .76rem; }
  .case-row .case-status { grid-row: 2; justify-self: start; }
  .case-row .chevron { grid-column: 2; grid-row: 1; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .sheet-annotation { animation: none; } }

.bank-breakdown { margin: .8rem 0 1.05rem; color: #172b25; }
.bank-breakdown[hidden] { display: none; }
.bank-breakdown dl { margin: 0; }
.bank-breakdown dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .5rem .9rem;
  padding: .45rem .55rem;
  border-bottom: 1px solid #cec8b2;
}
.bank-breakdown dl > div:nth-child(4) { border-top: 2px solid #8c754e; }
.bank-breakdown dt { min-width: 0; font-size: .89rem; }
.bank-breakdown dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bank-breakdown .bank-discrepancy { background: #f5e8cb; }
.bank-breakdown p { margin: .55rem 0 0; color: #425850; font-size: .85rem; }


/* Keep product text upright, including browser form controls and print. */
*,*::before,*::after,::placeholder,::file-selector-button {font-style:normal!important;font-synthesis-style:none!important}
.allegro-reconciliation {
  margin-block: 2.5rem;
  padding-block: 1.5rem;
  border-block: 1px solid #c8bc9f;
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: 1.25rem 2rem;
}
.allegro-reconciliation > header p { max-width: 48ch; }
.allegro-form { min-width: 0; }
.allegro-file { margin-bottom: .9rem; }
.allegro-file input { width: 100%; min-height: 44px; padding-block: .3rem; color: var(--ink); }
.allegro-file input::file-selector-button { min-height: 36px; margin-right: .6rem; cursor: pointer; }
#allegro-file-status:empty { margin: 0; }
.allegro-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.allegro-fields input, .allegro-result textarea {
  display: block;
  width: 100%;
  margin-block-start: .35rem;
  padding: .65rem;
  font: inherit;
  color: #172b25;
  background: #fffdf6;
  border: 1px solid #8b907e;
  border-radius: .25rem;
}
#allegro-status:empty, #allegro-copy-status:empty { margin: 0; }
.allegro-result { grid-column: 2; padding-block-start: .75rem; border-block-start: 1px solid #8c754e; }
.allegro-result h3 { margin-block: 0 .45rem; overflow-wrap: anywhere; }
.allegro-result dl { margin-block: 1rem; }
.allegro-result dl > div { display: flex; justify-content: space-between; gap: .6rem 1rem; padding-block: .5rem; border-bottom: 1px solid #d5ccb3; }
.allegro-result small { display: block; overflow-wrap: anywhere; }
.allegro-result dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.allegro-result summary { cursor: pointer; font-weight: 750; padding-block: .45rem; }
.allegro-result details label { display: block; margin-top: .4rem; }
.allegro-result details button { margin-top: .55rem; }
@media (max-width: 48rem) {
  .allegro-reconciliation { grid-template-columns: minmax(0,1fr); }
  .allegro-result { grid-column: auto; }
  .allegro-fields { grid-template-columns: minmax(0,1fr); }
}
