:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #192a3e; background: #eff4f8; --ink: #192a3e; --muted: #4e6477; --border: #d6e0e8; --teal: #086a60; --pale: #e3f4ef; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(100% - 2rem, 63rem); margin: auto; padding: clamp(1rem, 4vw, 3rem) 0 4rem; }
header { padding: clamp(1.3rem, 4vw, 2.6rem); color: #f4fbfa; background: linear-gradient(128deg,#092840,#125653); border-radius: 1.1rem; }
.eyebrow { font-weight: 700; color: #a2e3d8; margin: 0 0 .3rem; }
h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.03em; margin: 0; }
.subtitle { color: #deedee; margin: .65rem 0 0; }
.surface { background: #fff; border: 1px solid var(--border); border-radius: .95rem; padding: 1rem 1.15rem; }
.upload { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
h2 { font-size: 1.18rem; margin: 0; }
.upload p, #status { color: var(--muted); margin: .45rem 0; }
#status { min-height: 1.5rem; margin: .65rem 0; }
button, input { font: inherit; }
button, .file-button, summary { cursor: pointer; }
button:focus-visible, input:focus-visible, .file-button:focus-within, summary:focus-visible { outline: 3px solid #168578; outline-offset: 3px; }
.file-button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; border-radius: .6rem; font-weight: 675; padding: .48rem .9rem; }
.file-button { position: relative; background: var(--teal); color: #fff; }
.file-button input { position: absolute; width: 100%; height: 100%; inset: 0; opacity: 0; cursor: pointer; }
.file-button:has(input:disabled) { opacity: .6; cursor: progress; }
.plain { background: white; color: var(--ink); border: 1px solid var(--border); }
.report-line { display:flex; justify-content: space-between; align-items: center; gap: .5rem; margin-block: .7rem; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.metric { margin: 0; padding: .8rem 1rem; background: #fff; border-radius: .85rem; border: 1px solid var(--border); }
.metric span { display: block; color: var(--muted); font-size: .9rem; }
.metric b { display: block; margin-block: .25rem 0; font-size: clamp(1.08rem, 3vw, 1.55rem); overflow-wrap: anywhere; }
.note { color: var(--muted); line-height: 1.55; }
.controls { display: grid; grid-template-columns: minmax(0,1fr); gap: .45rem; margin-block: 1rem; }
.segments { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .4rem; margin-block-end: .4rem; }
.segments button { background: #f3f7fa; color: var(--ink); border: 1px solid var(--border); text-align: center; }
.segments button[aria-pressed="true"] { background: var(--pale); color: #08584f; border-color: #3f9589; }
.search-label { font-weight: 650; }
#search { display: block; width: 100%; min-height: 2.75rem; padding: .55rem .75rem; border: 1px solid #b6c8d6; border-radius: .6rem; background: #fff; color: var(--ink); }
.month, .account { margin-block: .55rem; border: 1px solid var(--border); border-radius: .8rem; background: #fff; }
.account { background: #f8fbfd; }
details summary { padding: .75rem .85rem; }
summary strong { margin-inline: .25rem; }
summary span { display: inline-block; color: var(--muted); font-size: .9rem; margin-inline: .45rem 0; }
.account-list { padding: 0 .65rem .55rem; }
.table-scroll { overflow: auto; padding-inline: .55rem; padding-bottom: .55rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem .55rem; text-align: start; border-top: 1px solid var(--border); white-space: nowrap; font-size: .88rem; }
td:nth-child(2) { white-space: normal; min-width: 7rem; }
th { color: var(--muted); }
.credit { color: #8b4117; font-weight: 670; }
#errors { border-color: #d29482; background: #fff7f2; line-height: 1.6; }
@media(max-width: 35rem) { .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .metric:first-child { grid-column: 1 / -1; } main { width: calc(100% - 1rem); } }

:root { color-scheme: dark; background: #0b1521; color: #ebf5fc; --ink: #ebf5fc; --muted: #a9bfce; --border: #2c4558; --teal: #32c5b3; --pale: #174640; }
header { background: linear-gradient(125deg,#142d40,#163e41); border: 1px solid var(--border); }
.surface,.metric,.month,.plain { background: #142433; }
.account,.segments button,#search,#password { background: #0e1d2b; color: var(--ink); border-color: var(--border); }
.segments button[aria-pressed="true"] { color: #cefaf2; }
.file-button,.primary { background: var(--teal); color: #071e23; border: 0; }
.credit { color: #ffbe92; }
#errors { background: #382321; border-color: #935958; }
#unlock-form { display: grid; gap: .55rem; min-width: min(100%, 16rem); }
.upload-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
#password { width: 100%; border: 1px solid var(--border); border-radius: .6rem; padding: .65rem; min-height: 2.75rem; }
button:disabled, input:disabled { opacity: .65; cursor: progress; }
@media(max-width: 35rem) { #unlock-form { width: 100%; } }
