:root {
  color-scheme: light;
  --nav: #14293f;
  --ink: #182d41;
  --muted: #536879;
  --line: #d9e1e7;
  --page: #f3f6f8;
  --paper: #fff;
  --teal: #006d67;
  --blue: #27689d;
  --copper: #ac7131;
  font: 16px/1.5 "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; background: var(--page); }
button, select, input { font: inherit; }
button, select, a { touch-action: manipulation; }
button, select { cursor: pointer; }
a { color: #215d82; }
:focus-visible { outline: 3px solid #177f9b; outline-offset: 3px; }
.skip { position: fixed; left: 10px; top: -100px; z-index: 15; padding: 10px 14px; background: white; }
.skip:focus { top: 8px; }
.mast { background: var(--nav); color: white; box-shadow: 0 2px 0 #14293f15; }
.mast-inner, main { margin: 0 auto; max-width: 1570px; padding-inline: clamp(16px, 3.5vw, 62px); }
.mast-inner { min-height: 75px; display: flex; align-items: stretch; gap: clamp(24px, 4.5vw, 74px); }
.brand { display: flex; align-items: center; gap: 17px; white-space: nowrap; }
.brand img { display: block; object-fit: contain; width: 74px; height: 50px; }
.brand span { border-left: 1px solid #ffffff45; padding-left: 18px; color: #f3f7fa; font-weight: 620; font-size: 1.13rem; letter-spacing: -.03em; }
nav { display: flex; align-items: stretch; gap: 14px; }
nav a { display: inline-flex; align-items: center; padding: 3px 10px 0; border-bottom: 3px solid transparent; color: #bfccd6; font-size: .94rem; text-decoration: none; font-weight: 550; }
nav a[aria-current="page"] { color: white; border-color: #d7b471; }
nav a:hover { color: white; background: #ffffff09; }
nav a:focus-visible { outline-offset: -4px; outline-color: #e2c68e; }
.close-status { align-self: center; margin-left: auto; display: flex; align-items: center; gap: 9px; font-size: .83rem; color: #d4e1e9; white-space: nowrap; }
.close-status:not(:empty)::before { content: ""; width: 7px; height: 7px; border-radius: 100%; background: #8fcbb2; }
.mast-inner .sign-out { align-self: center; color: #f4f7fa; background: transparent; border: 1px solid #80909d; padding: 5px 10px; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--nav); padding: 20px; }
.login-page .login-box { width: min(100%,420px); padding: 30px 32px; border-radius: 12px; background: white; box-shadow: 0 18px 50px #0002; }
.login-box img { display: block; object-fit: contain; margin: 0 0 17px; }
.login-box h1 { font-size: 2rem; margin: 0 0 7px; }
.login-box p { color: var(--muted); font-size: .94rem; }
.login-box form { display: grid; gap: 5px; margin: 15px 0 0; }
.login-box label { color: var(--ink); font-weight: 600; margin-top: 9px; font-size: .9rem; }
.login-box input { width: 100%; min-height: 41px; padding: 7px 10px; border: 1px solid #b7c6d0; border-radius: 6px; color: var(--ink); background: white; }
.login-box button { margin-top: 13px; min-height: 42px; border: 0; background: var(--nav); color: white; font-weight: 620; }
.login-box p[role="alert"] { margin-top: 6px; color: #943e39; }
main { padding-bottom: 24px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 30px 0 22px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -.052em; line-height: 1.12; font-weight: 680; }
.page-head p { margin-top: 6px; color: var(--muted); font-size: .98rem; }
button { border-radius: 7px; }
.export { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 15px; background: white; color: var(--ink); border: 1px solid #bac9d2; font-size: .9rem; font-weight: 620; white-space: nowrap; }
.export:hover:not(:disabled) { background: #eaf0f4; border-color: #8ba3b1; }
button:disabled { opacity: .55; cursor: wait; }
svg.icon, .export svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#feedback { color: #87561c; font-size: .9rem; }
#feedback:not(:empty) { margin: -8px 0 12px; }
.filter-row { display: grid; grid-template-columns: minmax(145px, .86fr) minmax(210px, 1.25fr) minmax(165px, 1fr) auto; gap: clamp(12px, 2vw, 28px); margin-bottom: 21px; padding: 14px 20px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; }
.filter-row.monthly { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filter-row label, .period-field { display: flex; flex-direction: column; gap: 5px; font-size: .875rem; font-weight: 600; }
select { appearance: none; width: 100%; min-width: 0; height: 39px; padding: 5px 33px 5px 11px; font-size: .91rem; color: var(--ink); font-weight: 480; border: 1px solid #c7d2da; border-radius: 6px; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%234d6272' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; text-overflow: ellipsis; }
select:hover { border-color: #8da5b4; }
.segmented { display: flex; gap: 3px; padding: 3px; background: #edf2f5; border: 1px solid #d9e2e6; border-radius: 7px; min-height: 39px; }
.segmented button { flex: 1; cursor: pointer; color: #455b6b; font-size: .875rem; font-weight: 550; background: transparent; border: 0; border-radius: 4px; padding: 3px 13px; white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: var(--nav); color: white; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.metric { padding: 17px 20px 16px; background: white; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.metric-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: .93rem; font-weight: 580; }
.metric-head .icon { color: #6c8192; }
.number { margin: 8px 0 7px; font-size: clamp(1.6rem, 2.23vw, 2.35rem); letter-spacing: -.055em; font-weight: 650; line-height: 1.18; font-variant-numeric: tabular-nums; }
.metric-foot { min-height: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .805rem; color: var(--muted); }
.delta { display: inline-block; font-weight: 630; font-variant-numeric: tabular-nums; padding: 1px 6px; border-radius: 4px; background: #edf2f5; color: #435e73; }
.delta.good { color: #146347; background: #e1f2e9; }
.delta.low { color: #943e39; background: #faeae6; }
.metric.featured { background: #164b4a; border-color: #164b4a; color: white; }
.featured .metric-head, .featured .metric-foot, .featured .icon { color: #dbebe7; }
.featured .delta { background: #ffffff26; color: white; }
.panels { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 17px; margin-bottom: 18px; }
.panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.panel-pad { padding: 20px 22px 17px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
h2 { font-size: 1.16rem; line-height: 1.32; letter-spacing: -.025em; font-weight: 660; }
.panel-head p, .subtext { margin-top: 3px; color: var(--muted); font-size: .85rem; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 3px; font-size: .81rem; color: #43596b; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 15px; height: 3px; border-radius: 2px; background: var(--blue); }
.legend i.payroll { height: 0; border-top: 2px dashed var(--copper); background: none; }
.chart-host { width: 100%; margin-top: 11px; position: relative; }
.chart-host svg { width: 100%; display: block; overflow: visible; }
.chart-host text { font: 12.5px "Inter", "Segoe UI", Arial, sans-serif; fill: #526978; }
.chart-tip { position: absolute; pointer-events: none; z-index: 2; padding: 7px 12px; color: #fff; background: #14293ff2; box-shadow: 0 4px 12px #14293f20; border-radius: 6px; font-size: .82rem; white-space: nowrap; }
.chart-tip strong, .chart-tip span { display: block; }
.chart-tip span { color: #e2ebf1; }
.mix-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.mix-heading { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; }
.mix-heading strong { font-weight: 610; font-variant-numeric: tabular-nums; }
.rail { height: 5px; border-radius: 8px; background: #edf2f4; margin-top: 4px; overflow: hidden; }
.rail i { display: block; height: 100%; border-radius: 8px; background: #578889; }
.mix-list li:first-child .rail i { background: #16676a; }
.table-heading { padding: 18px 22px 14px; }
.table-scroll { max-width: 100%; overflow: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .885rem; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 17px; border-bottom: 1px solid #e4eaee; text-align: right; white-space: nowrap; }
thead th { font-size: .8rem; background: #edf2f5; color: #41586a; font-weight: 630; border-top: 1px solid #dae3e9; }
th:first-child, td:first-child { text-align: left; padding-left: 22px; }
th:last-child, td:last-child { padding-right: 22px; }
tbody th { font-weight: 525; }
.dept-list tbody tr:hover { background: #f7fafb; }
.drill { background: none; border: none; color: #245a73; padding: 1px 0; text-align: left; font-weight: 620; }
.drill:hover { text-decoration: underline; text-underline-offset: 3px; }
.sum-row > * { font-weight: 680; background: #f2f6f7; border-top: 1px solid #c9d8dd; }
.negative { color: #92433f; }
.missing { color: #748390; }
.coverage, .table-note { font-size: .84rem; color: var(--muted); padding: 11px 22px; }
.coverage { border: 1px solid #dbd3b7; border-radius: 7px; background: #fbf8ee; color: #705924; margin: 0 0 15px; }
.pending, .empty { padding: 20px 0; color: var(--muted); }
.pending button { margin-left: 12px; }
.statement-scroll { max-height: 65vh; scrollbar-gutter: stable; border-top: 1px solid var(--line); }
.statement { min-width: 1470px; }
.statement td, .statement th { padding: 8px 13px; }
.statement thead th { position: sticky; top: 0; z-index: 2; }
.statement th:first-child { position: sticky; left: 0; z-index: 1; min-width: 230px; max-width: 245px; background: white; white-space: normal; box-shadow: 1px 0 0 #dce4e9; text-align: left; }
.statement thead th:first-child { z-index: 4; background: #edf2f5; }
.statement .ytd-col { font-weight: 630; background: #f1f6f7; }
.statement .group-row > * { background: #eef3f5; font-weight: 620; }
.statement .root-row > * { background: #deeaed; font-weight: 660; color: #24454f; }
.statement .contribution-row > * { background: #164b4a; color: white; font-weight: 640; }
.statement .root-row > th:first-child { background: #deeaed; }
.statement .group-row > th:first-child { background: #eef3f5; }
.statement .contribution-row > th:first-child { background: #164b4a; }
.statement thead th.ytd-col { background: #e3ecee; }
.statement .row-button { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font-weight: inherit; text-align: left; }
.row-button .chevron { display: inline-block; border: solid currentColor; border-width: 0 1.6px 1.6px 0; width: 6px; height: 6px; margin: 0 5px 2px 1px; transform: rotate(45deg); flex: none; }
.row-button[aria-expanded="false"] .chevron { transform: rotate(-45deg); }
.acct-code { font-size: .78rem; color: #526c7c; font-variant-numeric: tabular-nums; margin-right: 6px; }
.group-row .acct-code { font-weight: 520; }
.depth-1 { padding-left: 22px; }
.depth-2 { padding-left: 34px; }
.depth-3 { padding-left: 44px; }
.details-button { font-size: .86rem; color: #255971; font-weight: 600; background: white; border: 1px solid #c6d3da; padding: 5px 11px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--line); font-size: .81rem; }
footer b { margin: 0 4px; }
@media (min-width: 1450px) {
  .metric { padding: 20px 24px; }
  .panel-pad { padding: 23px 26px; }
}
@media (max-width: 1000px) {
  .mast-inner { gap: 28px; }
  .filter-row { gap: 11px; grid-template-columns: minmax(130px,.84fr) minmax(155px,1.12fr) minmax(135px,1fr) auto; }
  .panels { grid-template-columns: minmax(0,1.55fr) minmax(240px,1fr); }
  .metric { padding: 14px; }
  .metric-head { font-size: .88rem; }
  .metric-head .icon { width: 16px; }
  .panel-pad { padding: 17px; }
}
@media (max-width: 760px) {
  .mast-inner { min-height: 61px; align-items: center; flex-wrap: wrap; gap: 0 14px; }
  .brand { min-height: 62px; gap: 11px; }
  .brand img { width: 57px; height: 39px; }
  .brand span { padding-left: 11px; font-size: 1.04rem; }
  nav { order: 3; width: 100%; gap: 14px; }
  nav a { padding: 6px 4px 8px; }
  .close-status { font-size: .77rem; gap: 5px; }
  .page-head { margin: 21px 0 17px; align-items: flex-start; }
  .page-head p { font-size: .89rem; }
  .filter-row, .filter-row.monthly { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px 14px; }
  .filter-row.monthly label:last-of-type { grid-column: 1 / -1; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .number { font-size: clamp(1.5rem,4.2vw,2.1rem); }
  .panels { grid-template-columns: 1fr; gap: 13px; }
  .table-heading { padding: 15px; }
  .table-note { padding: 10px 15px; }
  .statement th:first-child { max-width: 185px; min-width: 175px; }
}
@media (max-width: 440px) {
  .mast-inner, main { padding-inline: 13px; }
  .brand span { font-size: .94rem; }
  .close-status { max-width: 96px; white-space: normal; line-height: 1.2; }
  .close-status::before { flex: none; }
  .export { padding: 8px 9px; font-size: .8rem; gap: 5px; }
  h1 { font-size: 1.8rem; }
  .metric { padding: 12px 11px; }
  .metric-head { font-size: .82rem; }
  .metric-head .icon { display: none; }
  .metric-foot { gap: 3px 5px; font-size: .78rem; }
  .segmented button { padding-inline: 5px; }
  .statement th:first-child { min-width: 145px; max-width: 155px; }
  .depth-1 { padding-left: 4px; } .depth-2 { padding-left: 10px; } .depth-3 { padding-left: 16px; }
}
