:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  background: #f5f5ef;
  color: #17352f;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shell { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dce4da; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #f5e8ba; background: #123e36; font-size: 25px; font-weight: 700; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .02em; }
.brand small { color: #71857b; font-size: 12px; margin-top: 3px; }
.device-badge, .read-only-tag { border-radius: 100px; background: #e1ece3; color: #245d47; font-size: 12px; font-weight: 650; padding: 8px 12px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 38px 0 36px; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; color: #7c8b73; margin: 0 0 8px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.12; letter-spacing: -.045em; margin-bottom: 13px; }
.intro p:last-child { color: #688077; line-height: 1.65; max-width: 680px; margin-bottom: 0; }
.intro-stat { flex: 0 0 auto; min-width: 220px; background: #123e36; color: #f3f6e9; border-radius: 23px; padding: 22px 25px; box-shadow: 0 17px 35px #123e361c; }
.intro-stat span, .intro-stat small, .intro-stat strong { display: block; }
.intro-stat span { font-size: 12px; color: #adc7b9; }
.intro-stat strong { margin: 9px 0 4px; font-size: 29px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.intro-stat small { color: #bfd1c7; font-size: 12px; }
#total-breakdown { margin-top: 8px; }
.transaction.refund .transaction-icon { background: #fff0e6; color: #ad6944; }
.transaction.voided { opacity: .6; }
.transaction.voided .transaction-amount { text-decoration: line-through; }
.transaction-adjustment { margin: 7px 0 0; color: #a76647; font-size: 12px; }
.workspace { display: grid; grid-template-columns: minmax(300px, 385px) minmax(0, 1fr); gap: 18px; align-items: start; }
.sidebar { display: grid; gap: 18px; }
.panel { background: #fff; border: 1px solid #e2e7de; border-radius: 22px; padding: 26px; box-shadow: 0 4px 16px #283c3107; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
h2 { font-size: 21px; letter-spacing: -.03em; margin-bottom: 0; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-size: 12px; color: #4e665b; font-weight: 650; }
input, select { width: 100%; border: 1px solid #d8e2d9; background: #fbfcf9; border-radius: 11px; color: #1a352d; padding: 12px 13px; outline: none; font-size: 14px; min-width: 0; }
input:focus, select:focus { border-color: #43836b; box-shadow: 0 0 0 3px #43836b24; }
input::placeholder { color: #9baa9d; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.file-label input { padding: 9px; font-size: 12px; }
.file-label span, .small-note { font-size: 11px; color: #839488; line-height: 1.5; font-weight: 400; }
.button { width: 100%; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; padding: 13px 17px; border: 1px solid transparent; font-size: 14px; font-weight: 700; transition: transform .15s, background .15s; }
.button:active { transform: scale(.985); }
.primary { background: #174b3d; color: #fff; margin-top: 4px; }
.primary:hover { background: #21634e; }
.secondary { background: #e6efe4; color: #164937; }
.secondary:hover { background: #d6e8d4; }
.outline { background: transparent; border-color: #cfdcd0; color: #245a46; }
.text-button { background: transparent; color: #5d8068; margin-top: 10px; padding: 8px; font-size: 12px; }
.file-button { margin-top: 9px; position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.muted { color: #71867a; line-height: 1.6; font-size: 13px; margin: 10px 0 16px; }
.meta-line { border-radius: 10px; background: #f5f8f2; padding: 11px; color: #53715e; font-size: 12px; line-height: 1.5; }
.snapshot-panel h2 { margin-bottom: 0; }
.small-note { margin: 10px 0 0; }
.import-panel .button { margin-top: 16px; }
.import-panel label:not(.button) { margin-top: 13px; }
.bill-preview { margin-top: 16px; }
.bank-mapper { display: grid; gap: 12px; margin-top: 14px; }
.bank-mapper > strong { font-size: 13px; overflow-wrap: anywhere; }
.bank-mapper label { min-width: 0; margin-top: 0 !important; }
.bank-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bank-sample-row { margin: 5px 0; font-size: 12px; overflow-wrap: anywhere; }
.bill-preview-title { margin: 0; font-size: 16px; }
.bill-preview-file { margin-top: 12px; padding: 12px; border: 1px solid #dce8dd; border-radius: 12px; background: #f9fcf8; }
.bill-preview-file > strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.bill-preview-file > label { margin-top: 12px; }
.bill-preview-file > .small-action { width: 100%; margin-top: 12px; }
.bill-preview-rows { max-height: 360px; overflow: auto; margin-top: 10px; border-top: 1px solid #e5ece4; }
.bill-preview-row { padding: 10px 0; border-bottom: 1px solid #e5ece4; }
.bill-preview-row:last-child { border-bottom: 0; }
.bill-preview-choice { display: flex; flex-direction: row; align-items: start; gap: 8px; margin: 0 !important; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.bill-preview-choice input { width: auto; margin: 1px 0 0; flex: 0 0 auto; accent-color: #21634e; }
.bill-preview-row small { display: block; margin: 4px 0 0 23px; font-size: 11px; color: #7a897a; line-height: 1.4; }
.bill-preview-row.possible small, .bill-preview-row.invalid small, .bill-preview-row.nonConsumption small { color: #a16b31; }
.bill-preview-row > label:not(.bill-preview-choice) { margin: 8px 0 0 23px !important; }
.bill-preview-row select { padding: 8px; font-size: 12px; }
.bill-preview-actions { display: grid; gap: 8px; margin-top: 14px; }
.bill-preview-actions .button { margin: 0; }
.ledger-panel { min-height: 440px; }
.ledger-heading { margin-bottom: 18px; }
.review-queue { border: 1px solid #ebdfc7; background: #fffaf0; border-radius: 17px; padding: 18px 20px; margin-bottom: 18px; }
.review-queue-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.review-queue-heading h3 { margin: 0; font-size: 19px; }
.review-queue-heading > span { color: #936b33; font-size: 12px; font-weight: 700; white-space: nowrap; }
.review-queue-list { display: grid; margin-top: 10px; }
.review-queue-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; border: 0; border-top: 1px solid #eee5d5; background: transparent; padding: 12px 0; text-align: left; color: #1a352d; }
.review-queue-item:hover { color: #266e51; }
.review-queue-item span { min-width: 0; }
.review-queue-item strong, .review-queue-item small { display: block; overflow-wrap: anywhere; }
.review-queue-item strong { font-size: 12px; }
.review-queue-item small { margin-top: 3px; color: #8b988a; font-size: 10px; }
.review-queue-item b { color: #4d8060; font-size: 11px; white-space: nowrap; }
.queue-type { border-radius: 100px; padding: 5px 7px; background: #f5e9d5; color: #8b6231; font-size: 10px; font-style: normal; white-space: nowrap; }
.queue-type.refund { background: #fae9e2; color: #a46443; }
.queue-type.order { background: #e8eee5; color: #52745c; }
.order-quality { border: 1px solid #dce8e8; background: #f8fbfa; border-radius: 17px; padding: 18px 20px; margin-bottom: 18px; }
.order-quality .review-queue-heading > span { color: #557c79; }
.order-quality h4 { margin: 17px 0 5px; font-size: 13px; }
.order-quality-platforms { display: grid; gap: 6px; margin-top: 12px; }
.order-quality-platform { display: grid; grid-template-columns: minmax(90px, .35fr) minmax(0, 1fr); gap: 10px; padding: 9px 10px; background: #fff; border: 1px solid #e6efec; border-radius: 9px; font-size: 11px; line-height: 1.5; }
.order-quality-platform strong { overflow-wrap: anywhere; }
.order-quality-platform span { color: #6e887d; overflow-wrap: anywhere; }
.order-quality-list { border-top: 1px solid #e1eae6; }
.order-quality-item { display: grid; gap: 3px; width: 100%; padding: 10px 2px; border: 0; border-bottom: 1px solid #e1eae6; background: transparent; text-align: left; color: #2d5e4d; }
.order-quality-item strong { font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.order-quality-item small { font-size: 11px; color: #a56e45; }
.order-quality-item:hover { background: #edf6f1; }
.order-quality .button { margin-top: 9px; padding: 10px 12px; font-size: 12px; }
.monthly-report { border: 1px solid #dfeae0; background: #f8fbf7; border-radius: 17px; padding: 20px; margin-bottom: 26px; }
.monthly-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.monthly-heading h3 { margin: 0; font-size: 19px; }
.monthly-heading label { width: 175px; flex: 0 0 auto; }
.monthly-heading input { padding: 9px 10px; }
.report-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.report-metric { display: grid; align-content: start; gap: 5px; background: #fff; border: 1px solid #e5eee4; border-radius: 12px; padding: 15px; min-width: 0; }
.report-metric span, .report-metric small { color: #738b7a; font-size: 11px; }
.report-metric strong { font-size: 21px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.report-comparison { color: #5b7665; font-size: 12px; margin: 12px 0 20px; }
.report-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.report-group, .report-largest, .report-coverage { min-width: 0; background: #fff; border: 1px solid #e5eee4; border-radius: 12px; padding: 14px; }
.report-group { max-height: 330px; overflow-y: auto; }
.monthly-report h4 { margin: 0 0 10px; font-size: 13px; }
.report-group-button { width: 100%; border: 0; border-top: 1px solid #eef2eb; background: transparent; padding: 9px 0; text-align: left; color: inherit; }
.report-group-button:hover { color: #257050; }
.report-line { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.report-line span { min-width: 0; }
.report-line strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.report-line small { display: block; color: #87998a; font-size: 10px; line-height: 1.45; margin-top: 3px; }
.report-line b { flex: 0 0 auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.report-largest, .report-coverage { margin-top: 14px; }
.report-coverage p, .report-coverage li, .report-coverage small { color: #657d6c; font-size: 11px; line-height: 1.55; }
.report-coverage p { margin-bottom: 8px; }
.report-coverage ul { padding-left: 17px; margin: 7px 0; }
.report-coverage small { display: block; color: #8a9a8c; }
.report-export { margin-top: 14px; padding: 10px; font-size: 12px; }
.mac-trend { margin-top: 14px; padding: 16px; background: #fff; border: 1px solid #e5eee4; border-radius: 12px; }
.mac-trend .small-note { margin: 0 0 12px; }
.trend-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; }
.trend-month { display: grid; grid-template-rows: auto 100px auto auto; gap: 5px; min-width: 0; padding: 9px 5px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #3d6450; text-align: center; cursor: pointer; }
.trend-month.selected { border-color: #85b697; background: #f2f8f1; }
.trend-month strong { font-size: 11px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.trend-month > span:nth-last-child(2) { font-size: 11px; }
.trend-month small { min-height: 14px; font-size: 10px; color: #a9773d; }
.trend-plot { height: 100px; display: flex; align-items: end; justify-content: center; border-bottom: 1px solid #cadbcd; }
.trend-bar { width: min(42px, 70%); min-height: 2px; background: #63a47b; border-radius: 5px 5px 0 0; }
.mac-review, .mac-model { margin-bottom: 26px; }
.mac-review h3, .mac-model h3 { margin: 0 0 15px; font-size: 19px; }
.mac-review-controls, .model-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.mac-review-controls label, .model-controls label { flex: 1 1 160px; }
.mac-review-controls .button, .model-controls .button { width: auto; margin: 0; }
.mac-review-list { max-height: 360px; overflow: auto; border-top: 1px solid #e7eee7; }
.mac-review-row { display: block; width: 100%; padding: 10px 4px; border: 0; border-bottom: 1px solid #e7eee7; background: none; color: #254c37; text-align: left; font-size: 12px; line-height: 1.45; cursor: pointer; }
.mac-review-row:hover { background: #f4f9f2; }
.model-check { display: flex; flex-direction: row; align-items: start; gap: 8px; font-size: 12px; line-height: 1.5; }
.model-check input { width: auto; margin-top: 3px; }
.model-answer { display: grid; gap: 10px; margin-top: 12px; }
.model-answer > p, .model-observation { margin: 0; padding: 12px; background: #f5f9f3; border-radius: 10px; font-size: 12px; line-height: 1.6; }
.model-answer .model-period { color: #587562; background: none; padding: 0; }
.model-observation p { margin: 0 0 6px; }
.model-observation .source-button { margin-right: 8px; }
.model-observation small, .model-answer > small { color: #7d907f; }
.model-setup { margin-top: 14px; font-size: 11px; color: #617c68; line-height: 1.6; }
.model-setup code { overflow-wrap: anywhere; }
.analysis-active-filter { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #eaf4e9; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 12px; }
.analysis-active-filter button { border: 0; background: none; color: #236e4c; font-size: 12px; white-space: nowrap; }
.search-label { display: block; margin-bottom: 12px; }
.transaction-list { display: grid; }
.transaction { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; gap: 13px; padding: 18px 0; border-bottom: 1px solid #edf0e9; }
.transaction:last-child { border-bottom: 0; }
.transaction-icon { width: 42px; height: 42px; border-radius: 13px; background: #eef4e8; color: #4e7658; display: grid; place-items: center; font-weight: 700; }
.transaction-body { min-width: 0; }
.transaction-title, .transaction-detail, .transaction-note, .receipt-link { display: block; }
.transaction-title { font-size: 15px; overflow-wrap: anywhere; }
.transaction-detail, .transaction-date { font-size: 12px; color: #89998b; margin-top: 5px; }
.transaction-note { margin: 8px 0 0; color: #61776b; font-size: 12px; }
.transaction-splits { display: grid; gap: 5px; margin: 9px 0; padding: 9px 11px; border-radius: 9px; background: #f2f8f1; }
.transaction-splits > div { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #4c6f56; }
.transaction-splits b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.transaction-split-form { display: grid; gap: 10px; margin-top: 14px; padding: 13px; border: 1px solid #dce9dc; border-radius: 12px; background: #f7fbf5; }
.transaction-split-form > strong { font-size: 13px; }
.transaction-split-form > .small-note { margin: 0; }
.split-editor-list { display: grid; gap: 9px; }
.split-editor-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr) auto; align-items: end; gap: 7px; padding: 9px; background: #fff; border: 1px solid #e2ebdf; border-radius: 9px; }
.split-editor-row input, .split-editor-row select { padding: 8px; font-size: 12px; }
.split-editor-row .button { width: auto; margin: 0; padding: 9px; font-size: 11px; }
.split-remaining { margin: 0; color: #2d7051; font-size: 12px; font-weight: 700; }
.split-remaining.invalid { color: #aa6637; }
.transaction-edit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; padding: 13px; border: 1px solid #dce9dc; border-radius: 12px; background: #f7fbf5; }
.transaction-edit-form label:first-child, .transaction-edit-form label:nth-child(3), .transaction-edit-form label:nth-child(5), .transaction-edit-form > p, .transaction-edit-actions { grid-column: 1 / -1; }
.transaction-edit-form input, .transaction-edit-form select { padding: 9px 10px; font-size: 12px; }
.transaction-edit-form > p { margin: 0; }
.transaction-edit-actions { display: flex; gap: 8px; }
.transaction-edit-actions .button { margin: 0; width: auto; flex: 1; }
.transaction-edit-history { margin-top: 8px; color: #60796a; font-size: 11px; }
.transaction-edit-history summary { cursor: pointer; }
.transaction-edit-history p { display: grid; gap: 3px; margin: 8px 0 0; padding-left: 10px; border-left: 2px solid #dce9dc; overflow-wrap: anywhere; }
.transaction-edit-history strong { font-weight: 650; }
.receipt-link { color: #2d7656; font-size: 12px; margin-top: 8px; text-decoration: none; }
.receipt-link:hover { text-decoration: underline; }
.source-button { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.transaction-right { text-align: right; white-space: nowrap; }
.transaction-amount { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.transaction-date { display: block; }
.empty-state { margin: 50px auto; padding: 28px; text-align: center; color: #60786b; }
.empty-state strong { font-size: 17px; }
.empty-state p { font-size: 13px; margin: 8px 0 0; }
.evidence-section { margin-top: 26px; border-top: 1px solid #e6ece3; padding-top: 22px; }
.evidence-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.evidence-heading h3 { font-size: 16px; margin: 0; }
.evidence-heading span { color: #8a9b8b; font-size: 12px; }
.evidence-list { display: grid; gap: 9px; margin-top: 16px; }
.evidence-item { border: 1px solid #e4ebe2; border-radius: 12px; background: #fafcf9; padding: 13px; }
.evidence-item-header { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.evidence-item strong { font-size: 13px; overflow-wrap: anywhere; }
.evidence-item .status-chip { flex: 0 0 auto; background: #fff1d9; color: #87641c; border-radius: 20px; padding: 4px 8px; font-size: 11px; font-weight: 700; }
.evidence-item .status-chip.linked { background: #e3f1e5; color: #2d6c43; }
.evidence-item .small-note { margin-top: 5px; }
.evidence-item details { margin-top: 8px; font-size: 12px; color: #4b6d5b; }
.evidence-item summary { cursor: pointer; }
.evidence-item pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow: auto; color: #63796b; font-family: inherit; line-height: 1.5; }
.order-group-count { margin: 12px 0 0; color: #32634b; font-size: 12px; font-weight: 700; }
.order-group-warning { margin: 8px 0 0; border-radius: 9px; background: #fff1dc; padding: 9px 11px; color: #8b5b24; font-size: 12px; line-height: 1.5; }
.order-originals { display: grid; gap: 7px; margin-top: 13px; }
.order-originals > details { margin: 0; border: 1px solid #e2e9df; border-radius: 9px; background: #fff; padding: 9px 10px; }
.order-originals img { display: block; max-width: 100%; max-height: 440px; object-fit: contain; margin-top: 10px; border-radius: 7px; }
.order-review { margin-top: 12px; }
.order-review-summary { color: #315746; line-height: 1.55; }
.order-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 12px 0 15px; }
.order-editor label:first-child, .order-editor label:nth-child(2), .order-editor label:nth-child(3), .order-editor label:last-child { grid-column: 1 / -1; }
.order-editor input, .order-review > label input { padding: 9px 10px; font-size: 12px; }
.order-link-heading { font-size: 13px; margin: 18px 0 9px; }
.payment-candidates { display: grid; gap: 7px; margin-top: 10px; max-height: 250px; overflow: auto; }
.payment-recommendation { margin-top: 10px; padding: 11px; border: 1px solid #cddfcc; border-radius: 10px; background: #f1f8ef; font-size: 12px; }
.payment-recommendation:empty { display: none; }
.payment-recommendation .small-note { margin: 5px 0 0; }
.payment-recommendation .small-action { margin-top: 8px; }
.payment-candidate { display: flex; flex-direction: row; align-items: start; gap: 9px; border: 1px solid #e1e9df; border-radius: 9px; padding: 9px; cursor: pointer; }
.payment-candidate:has(input:checked) { border-color: #468368; background: #f1f8f1; }
.payment-candidate input { width: auto; margin: 2px 0 0; accent-color: #2c7151; }
.payment-candidate span { display: grid; gap: 4px; min-width: 0; }
.payment-candidate strong { font-size: 12px; }
.payment-candidate small { color: #819181; font-size: 11px; line-height: 1.4; }
.order-review > details { margin-top: 14px; }
.bill-row-list { display: grid; gap: 10px; margin: 13px 0; }
.bill-row { border: 1px solid #e3e9df; border-radius: 11px; background: #fff; padding: 12px; }
.bill-match-options { margin-top: 12px; padding: 11px; border: 1px solid #d7e7d5; border-radius: 10px; background: #f7fbf6; }
.bill-match-options > strong { font-size: 12px; }
.bill-match-options > .small-note { margin: 5px 0 9px; }
.bill-match-option { display: grid; gap: 4px; padding: 9px 0; border-top: 1px solid #e1ebe0; font-size: 12px; }
.bill-match-option small { color: #718778; font-size: 11px; }
.bill-match-option .small-action { margin-top: 3px; }
.bill-row.focused { border-color: #43836b; box-shadow: 0 0 0 3px #43836b24; }
.bill-row-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bill-row-title strong { font-variant-numeric: tabular-nums; }
.bill-row-title span { color: #5d8164; font-size: 11px; white-space: nowrap; }
.bill-row-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.bill-row-editor label:first-child, .bill-row-editor label:nth-child(5), .bill-row-editor button { grid-column: 1 / -1; }
.bill-row-editor input, .bill-row-editor select { padding: 9px 10px; font-size: 12px; }
.bill-row-warning { color: #93602c; background: #fff5e7; border-radius: 8px; padding: 9px; line-height: 1.45; margin: 9px 0 0; }
.bill-exclusion { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #edf0e9; }
.bill-exclusion .small-action { margin: 0; }
.small-action { width: auto; margin-top: 11px; padding: 8px 11px; font-size: 12px; }
.bill-row-editor .small-action { width: 100%; }
.small-action:disabled { opacity: .55; cursor: wait; }
.status { position: fixed; z-index: 10; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #173f35; color: #fff; border-radius: 12px; box-shadow: 0 12px 30px #122d2645; padding: 13px 18px; max-width: min(90vw, 520px); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.status.visible { opacity: 1; transform: translate(-50%, 0); }
.status.error { background: #9d4434; }
footer { padding: 27px 0 40px; font-size: 12px; color: #8e9b8e; }

@media (max-width: 850px) {
  .shell { padding: 0 18px; }
  .topbar { height: 72px; }
  .intro { align-items: stretch; flex-direction: column; gap: 20px; padding: 29px 0 25px; }
  .intro-stat { min-width: 0; }
  .workspace { display: flex; flex-direction: column; }
  .sidebar, .ledger-panel { width: 100%; }
  .panel { padding: 21px; border-radius: 18px; }
  .ledger-panel { min-height: 300px; }
  .report-groups { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .shell { padding: 0 14px; }
  .brand strong { font-size: 14px; }
  .brand-mark { width: 38px; height: 38px; }
  .intro-stat { padding: 19px 20px; }
  .transaction { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .transaction-icon { width: 36px; height: 36px; border-radius: 11px; }
  .transaction-right { grid-column: 2; grid-row: 2; text-align: left; display: flex; gap: 9px; align-items: baseline; }
  .transaction-date { margin: 0; }
  .row.two { gap: 8px; }
  .order-editor { grid-template-columns: 1fr; }
  .monthly-report { padding: 15px; }
  .review-queue { padding: 15px; }
  .bank-columns { grid-template-columns: 1fr; }
  .order-quality { padding: 15px; }
  .order-quality-platform { grid-template-columns: 1fr; gap: 1px; }
  .review-queue-item { grid-template-columns: 1fr auto; }
  .review-queue-item .queue-type { grid-column: 1 / -1; width: fit-content; }
  .bill-exclusion { grid-template-columns: 1fr; }
  .transaction-edit-form { grid-template-columns: 1fr; }
  .transaction-edit-form > * { grid-column: 1 / -1; }
  .split-editor-row { grid-template-columns: 1fr 1fr; }
  .split-editor-row label:first-child { grid-column: 1 / -1; }
  .split-editor-row .button { align-self: end; }
  .monthly-heading { align-items: start; flex-direction: column; }
  .monthly-heading label { width: 100%; }
  .trend-bars { gap: 2px; }
  .trend-month { padding: 7px 2px; }
  .trend-month strong { font-size: 9px; }
  .report-metrics { grid-template-columns: 1fr 1fr; }
  .report-metric:first-child { grid-column: 1 / -1; }
  footer { text-align: center; line-height: 1.5; }
}
