:root {
  color-scheme: light;
  --bg: #f4f5fa;
  --card: #fff;
  --text: #252638;
  --muted: #696d7e;
  --accent: #5b5bd6;
  --line: #eceef4;
  --green: #237a43;
  --red: #bc323b;
  --amber: #8b6200;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.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; }
.skip { position: absolute; left: 24px; top: -100px; z-index: 50; background: #fff; padding: 12px 20px; border-radius: 10px; }
.skip:focus { top: 12px; }
.page { max-width: 1600px; margin: auto; padding: 28px 32px 0; }
.card { background: var(--card); border-radius: 24px; box-shadow: 0 3px 16px #25263803; min-width: 0; }
.filters { position: relative; padding: 18px 22px; margin-bottom: 20px; }
.period-control { position: relative; width: fit-content; max-width: 100%; }
.filter-chip { display: flex; align-items: center; gap: 9px; padding: 10px 13px; min-height: 44px; max-width: 100%; background: #fff; color: var(--text); border: 1px solid #e2e4ed; border-radius: 10px; font-size: 13px; font-weight: 500; }
.filter-chip:hover { background: #fafafe; border-color: #9696d8; }
.filter-chip[aria-expanded="true"] { border-color: var(--accent); }
.filter-chip svg { color: #7a7e90; }
.filter-chip .chevron { margin-left: 6px; }
.filter-chip[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.period-label, .preset-dates { font-variant-numeric: tabular-nums; }
.counter { flex-shrink: 0; font-size: 12px; color: #62687a; background: #eff0f5; padding: 2px 6px; border-radius: 5px; }
.period-menu { position: absolute; left: 0; top: calc(100% + 10px); z-index: 30; width: 400px; max-width: calc(100vw - 108px); max-height: calc(100dvh - 140px); overflow-y: auto; padding: 7px; background: var(--card); border: 1px solid #dfe1ec; border-radius: 15px; box-shadow: 0 12px 40px #25263824; }
.period-option { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 8px; width: 100%; padding: 12px 10px; min-height: 44px; background: transparent; border: 0; border-radius: 8px; color: var(--text); text-align: left; font-size: 13px; }
.period-option .check { visibility: hidden; color: var(--accent); }
.period-option[aria-checked="true"] { background: #f1f0fd; font-weight: 600; }
.period-option[aria-checked="true"] .check { visibility: visible; }
.period-option:hover { background: #f4f4fc; }
.period-option:focus-visible { outline-offset: -2px; }
.preset-dates { color: #626879; font-size: 12px; font-weight: 400; white-space: nowrap; }
.kpi-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 22px 18px; display: flex; flex-direction: column; gap: 0; }
.kpi h2 { font-size: 13px; line-height: 1.45; min-height: 38px; font-weight: 500; color: #565b6e; overflow-wrap: anywhere; }
.metric { font-size: 32px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.2; margin-top: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-unit { font-size: 12px; font-weight: 500; letter-spacing: 0; margin-left: 5px; white-space: nowrap; }
.metric-secondary { font-size: 21px; letter-spacing: -.6px; margin-top: 7px; }
.metric-empty { font-size: 26px; letter-spacing: -.6px; }
.kpi-subtitle { margin-top: 6px; color: var(--muted); font-size: 12px; }
.kpi-status { margin-top: 14px; }
.kpi-notes { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.unavailable-message { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.65; }
.pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 7px; font-size: 12px; line-height: 1.5; font-weight: 500; max-width: 100%; overflow-wrap: anywhere; }
.pill.positive { background: #eaf6ee; color: var(--green); }
.pill.negative { background: #fceef0; color: var(--red); }
.pill.warning { background: #fff5d9; color: var(--amber); }
.pill.neutral { background: #f0f1f6; color: #626879; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.muted { color: var(--muted); }
.mono, .number { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.number { white-space: nowrap; letter-spacing: -.3px; }
.details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; margin-bottom: 20px; }
.detail-card { padding: 25px 26px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 7px; }
.card-heading h2 { font-size: 18px; letter-spacing: -.35px; line-height: 1.35; font-weight: 650; }
.section-code { font-family: var(--mono); color: var(--muted); font-size: 12px; white-space: nowrap; padding-top: 3px; }
.description { color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.date-caption { margin-top: 7px; font-size: 12px; color: var(--muted); }
.card-subhead { font-size: 13px; font-weight: 600; margin-top: 22px; margin-bottom: 4px; }
.balance-list { margin: 0; }
.balance-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding: 11px 0; font-size: 13px; }
.balance-row dt { min-width: 0; overflow-wrap: anywhere; }
.balance-row dd { margin: 0; text-align: right; flex-shrink: 0; }
.balance-row:last-child { border-bottom: 0; }
.balance-subrow { padding: 6px 0 12px 14px; color: var(--muted); font-size: 12px; }
.balance-subrow .number { font-size: 12px; }
.balance-subrow small { display: block; font-size: 11px; margin-top: 3px; }
.balance-total { border-top: 1px solid var(--line); border-bottom: 0; background: #fafafe; padding: 12px 10px; font-weight: 600; }
.transit-line { margin-top: 12px; padding: 12px 14px; background: #f6f5ff; border-radius: 10px; color: #4a48b8; font-size: 12px; line-height: 1.7; }
.transit-line p + p { margin-top: 4px; }
.card-bottom { display: flex; justify-content: flex-end; margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); }
.empty-state { padding: 28px 0 12px; }
.empty-state strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.5px; margin-bottom: 6px; }
.upcoming-list { margin: 16px 0 0; padding: 0; list-style: none; }
.upcoming-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.upcoming-item:last-child { border-bottom: 0; padding-bottom: 0; }
.upcoming-item > span:first-child { overflow-wrap: anywhere; }
.upcoming-item .pill { flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 9px 14px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: #4949bc; }
.button-secondary { background: #f4f3ff; color: #4a48b8; border-color: #e6e4f8; }
.button-secondary:hover { background: #eeedfc; }
.wide-card { padding: 27px 28px; margin-bottom: 20px; }
.disclosure { scroll-margin-top: 20px; }
.disclosure-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.disclosure-heading { flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.disclosure-heading .description { margin-top: 8px; }
.detail-block + .detail-block { margin-top: 30px; }
.detail-block h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.table-scroll { max-width: 100%; overflow: auto; scrollbar-color: #c8cbdc transparent; scrollbar-width: thin; border-radius: 5px; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
thead th { font-size: 12px; color: var(--muted); font-weight: 500; padding: 11px 12px 13px; border-bottom: 1px solid var(--line); }
tbody td, tbody th { padding: 14px 12px; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
thead th:first-child, tbody th:first-child, tbody td:first-child { padding-left: 0; }
tr > :last-child { padding-right: 0; }
.lines-table { min-width: 960px; }
.lines-table td:not(.number) { max-width: 260px; overflow-wrap: anywhere; }
.lines-table .number, .lines-table th:last-child { text-align: right; }
.total-row > th, .total-row > td { font-weight: 600; background: #fafafe; }
.total-row > :first-child { padding-left: 10px; }
.total-row > :last-child { padding-right: 10px; }
.row-note { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 4px; }
.scroll-hint { color: var(--muted); font-size: 12px; margin: 8px 0; }
.fin02-sparkline { width: 100%; height: 42px; margin-top: 15px; }
.fin02-summary-table { margin-top: 12px; }
.fin02-summary-table th { overflow-wrap: anywhere; }
.fin02-summary-table td, .fin02-summary-table th { padding-left: 8px; padding-right: 8px; }
.fin02-summary-table tr > :first-child { padding-left: 0; }
.fin02-summary-table tr > :last-child { padding-right: 0; }
.fin02-summary-table .number, .fin02-summary-table thead th:not(:first-child) { text-align: right; font-size: 12px; }
.fin02-summary-table .total-row > :first-child { padding-left: 8px; }
.fin02-summary-table .total-row > :last-child { padding-right: 8px; }
.fin02-summary-table tfoot th, .fin02-summary-table tfoot td { padding-top: 14px; padding-bottom: 14px; border-top: 1px solid var(--line); vertical-align: top; }
.share-cell { display: table-cell; text-align: right; white-space: nowrap; font-size: 12px; }
.share-bar { display: inline-block; vertical-align: middle; width: 56px; height: 5px; margin-left: 10px; border-radius: 4px; overflow: hidden; }
.share-track { fill: #efeff8; }
.share-fill { fill: var(--accent); }
.charts-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 20px; }
.chart-card { display: flex; flex-direction: column; padding: 27px 28px 0; }
.chart-card > .description { min-height: 42px; }
.chart-scroll { width: 100%; min-width: 0; max-width: 100%; overflow: auto; overscroll-behavior-x: contain; scrollbar-color: #c8cbdc transparent; scrollbar-width: thin; }
.fin02-chart { width: 100%; min-width: 560px; height: auto; }
.fin02-chart.chart-long { min-width: 1100px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend-inflow::before, .legend-outflow::before, .legend-net::before { content: ''; display: inline-block; width: 18px; height: 4px; border-radius: 2px; background: var(--accent); }
.legend-inflow::before { height: 9px; }
.legend-outflow::before { background: #936500; }
.legend-net::before { background: var(--green); }
.legend-weekend::before, .legend-partial::before { content: ''; display: inline-block; width: 16px; height: 12px; border: 1px solid #c2c5d5; border-radius: 2px; background: #f0f1f6; }
.legend-partial::before { background: repeating-linear-gradient(135deg, #f5f4fe, #f5f4fe 4px, #c2c5d5 4px, #c2c5d5 5px); }
.chart-note { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.chart-card > .chart-note:last-child { padding-bottom: 22px; }
.chart-card > .chart-note + .chart-note { margin-top: 10px; padding-top: 0; border-top: 0; }
.chart-card > .empty-state:last-child { padding-bottom: 24px; }
.chart-note .number { color: var(--text); font-size: 14px; }
.chart-note .negative { color: var(--red); }
.chart-gridline { stroke: var(--line); stroke-width: 1; }
.chart-axis-label { fill: var(--muted); font-size: 12px; font-family: var(--mono); }
.chart-zero { stroke: #9da2b5; stroke-width: 1.2; stroke-dasharray: 4 4; }
.chart-weekend { fill: #f0f1f6; }
.chart-hatch { stroke: #b2afd9; stroke-width: 1; }
.chart-inflow { fill: var(--accent); }
.chart-outflow { fill: none; stroke: #936500; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-net { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.period-table { width: max-content; min-width: 100%; }
.period-table th, .period-table td { min-width: 125px; padding: 13px 18px; text-align: right; }
.period-table thead th { font-family: var(--mono); white-space: nowrap; }
.period-table thead small { display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 12px; font-weight: 400; margin-top: 3px; }
.period-table tr > th:first-child { position: sticky; left: 0; z-index: 1; min-width: 145px; padding-left: 0; padding-right: 15px; background: #fff; text-align: left; font-family: inherit; box-shadow: 8px 0 9px -9px #75799077; }
.period-table tr > :last-child { padding-right: 16px; }
.period-table .weekend { background-color: #f0f1f6; }
.period-table .partial { background-color: #f5f4fe; background-image: repeating-linear-gradient(135deg, transparent, transparent 6px, #e7e5f744 6px, #e7e5f744 8px); }
.filter-button { display: inline; padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; text-align: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: normal; overflow-wrap: anywhere; }
.filter-button:hover { color: #4141ac; }
.fin02-section { min-width: 0; }
.fin02-section > .description, .fin02-section > .pill { margin-bottom: 12px; }
.fin02-detail-table { min-width: 650px; }
.fin02-detail-table .number, .fin02-lines-table .number { text-align: right; }
.fin02-detail-table td:not(.number), .fin02-detail-table th { overflow-wrap: anywhere; }
.fin02-lines-table { min-width: 1100px; }
.fin02-lines-table td:not(.number), .fin02-lines-table th { max-width: 280px; overflow-wrap: anywhere; }
.tree-label { display: flex; align-items: flex-start; min-width: 0; }
.tree-indent { display: inline-block; width: 16px; flex: 0 0 16px; }
.tree-name { min-width: 0; overflow-wrap: anywhere; }
.tree-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; min-width: 28px; min-height: 28px; margin: -4px 5px -4px 0; padding: 0; border: 1px solid #e6e4f8; border-radius: 6px; background: #f4f3ff; color: #4a48b8; font-size: 16px; }
.tree-toggle:hover { background: #eae8fc; }
.tree-group > * { background: #fafafe; font-weight: 600; }
.clickable-row { cursor: pointer; }
.clickable-row:hover > *, .clickable-row:focus-within > * { background-color: #f6f5ff; }
.fin02-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: fit-content; max-width: 100%; margin: 12px 0; padding: 8px 12px; border: 1px solid #e6e4f8; border-radius: 10px; background: #f4f3ff; color: #4a48b8; font-size: 13px; overflow-wrap: anywhere; }
.fin02-filter .button { min-height: 32px; padding: 4px 9px; }
.fin02-line-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.budget-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 21px; }
.budget-heading > div:first-child { flex: 1; min-width: 0; }
.budget-heading > div:first-child > .pill { margin-top: 8px; }
.budget-heading .description { margin-top: 7px; }
.budget-heading .card-heading h2 { overflow-wrap: anywhere; }
.budget-rates { display: flex; gap: 22px; flex-shrink: 0; max-width: 100%; }
.budget-rate { min-width: 110px; color: var(--muted); font-size: 12px; }
.budget-rate strong { display: block; color: var(--text); font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 23px; font-weight: 650; letter-spacing: -.5px; overflow-wrap: anywhere; }
.budget-progress { width: 100%; height: 5px; margin-top: 7px; border-radius: 4px; overflow: hidden; }
.budget-progress-track { fill: #efeff8; }
.budget-progress-fill { fill: var(--accent); }
.budget-table { width: 100%; min-width: 0; }
.budget-table table { min-width: 1060px; }
.budget-table th, .budget-table td { padding-left: 10px; padding-right: 10px; font-size: 12px; }
.budget-table tr > :first-child { padding-left: 12px; }
.budget-table tr > :last-child { padding-right: 12px; }
.budget-table tbody th, .budget-table tbody td, .budget-table tfoot th, .budget-table tfoot td { padding-top: 15px; padding-bottom: 15px; }
.budget-table tbody th, .budget-table tfoot th { min-width: 160px; max-width: 260px; overflow-wrap: anywhere; }
.budget-table thead th { letter-spacing: .3px; }
.budget-table thead tr:last-child th, .budget-table .number { text-align: right; }
.budget-table thead .group-head { padding-top: 10px; padding-bottom: 10px; text-align: center; color: #4b5064; background: #f8f8fc; }
.budget-table .group-separator { border-left: 1px solid var(--line); }
.budget-table tfoot > tr > * { border-top: 1px solid var(--line); vertical-align: top; }
.budget-table .pill { padding: 4px 7px; }
.budget-note { margin: 13px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.budget-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 18px; margin-top: 3px; border-top: 1px solid var(--line); font-size: 12px; }
.budget-foot .foot-label { margin-right: 5px; color: var(--muted); }
.budget-foot .pill { gap: 5px; flex-wrap: wrap; }
#fin08-budget .warning-text, #fin08-details .warning-text { color: var(--amber); }
.fin08-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 18px; }
#fin08-details .disclosure-heading > div { min-width: 0; max-width: 100%; }
#fin08-details .table-scroll { width: 100%; min-width: 0; }
#fin08-details .fin08-tree-table { min-width: 900px; }
#fin08-details .fin08-tree-table tr > :first-child { min-width: 320px; }
#fin08-details .fin08-month-heading > th { background: #f0f1f6; color: #4b5064; font-weight: 600; }
#fin08-details .detail-block h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.loading { color: var(--muted); padding: 20px 0; }
.alert { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 20px; background: #fff5d9; color: #795700; border-radius: 12px; font-size: 13px; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding-top: 8px; padding-bottom: 30px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer form { margin: 0; }
.footer button, .footer-link { border: 0; padding: 7px 0; min-height: 36px; background: transparent; color: var(--muted); font-size: 12px; text-align: left; }
.footer button:hover { color: var(--accent); }
.footer-actions, .footer-user, .footer-links, .footer-session { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-data { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-user:empty { display: none; }
.data-stamp { font-size: 12px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -1px; }
.page-heading p { margin-top: 8px; }
.back-link { font-size: 13px; }
.status-header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-meta { font-size: 12px; color: var(--muted); }
.status-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 20px; }
.status-card { padding: 25px 26px; }
.status-card h2, .status-section h2 { font-size: 18px; font-weight: 650; letter-spacing: -.35px; margin-bottom: 14px; }
.status-list { margin: 12px 0 0; padding: 0; list-style: none; }
.status-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.status-row dt { color: var(--muted); }
.status-row dd { margin: 0; text-align: right; }
.status-row > * { min-width: 0; overflow-wrap: anywhere; }
.status-package { min-width: 0; }
.status-package:only-child { grid-column: 1/-1; }
.status-package .card-heading h3 { font-size: 15px; font-weight: 600; }
.status-section > .status-grid { margin-bottom: 0; }
.status-run { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 9px; }
.status-run small { flex-basis: 100%; }
.status-table { min-width: 960px; }
.status-table .pill { white-space: normal; }
.status-table .mono { overflow-wrap: anywhere; }
.status-progress { height: 5px; background: #edecfa; border-radius: 5px; overflow: hidden; margin-top: 12px; }
.status-progress > * { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.auth-page { display: grid; place-items: center; min-height: 100dvh; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; padding: 34px; }
.auth-brand { color: var(--accent); font-size: 13px; font-weight: 650; margin-bottom: 26px; }
.auth-heading { font-size: 28px; line-height: 1.2; letter-spacing: -.8px; }
.auth-description { color: var(--muted); margin-top: 10px; margin-bottom: 25px; font-size: 13px; }
.form-field { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 500; }
.form-input { display: block; width: 100%; border: 1px solid #dfe1ec; border-radius: 10px; min-height: 46px; padding: 11px 12px; background: #fff; color: var(--text); }
.form-input:hover { border-color: #9696d8; }
.form-input[name="code"] { font-family: var(--mono); font-size: 24px; letter-spacing: 8px; }
.form-error { color: var(--red); background: #fceef0; border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; font-size: 13px; overflow-wrap: anywhere; }
.form-error:empty { display: none; }
.auth-card .button { width: 100%; min-height: 46px; }
.auth-back { display: block; width: fit-content; margin: 18px auto 0; font-size: 13px; }
.auth-footer { justify-content: center; }
@media (min-width: 1400px) {
  .kpi { padding: 23px 20px; }
  .kpi .metric { font-size: 36px; }
  .kpi .metric-secondary { font-size: 22px; }
  .kpi .metric-empty { font-size: 26px; }
}
@media (max-width: 1190px) {
  .budget-heading { flex-direction: column; gap: 17px; }
  .budget-heading > div:first-child { width: 100%; }
  .budget-rates { width: 100%; max-width: 400px; gap: 28px; }
  .budget-rate { flex: 1; min-width: 0; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi-grid .kpi:last-child { grid-column: 1/-1; }
  .kpi h2 { min-height: 0; }
  .kpi .metric { font-size: 36px; }
  .kpi .metric-secondary { font-size: 22px; }
  .kpi .metric-empty { font-size: 26px; }
}
@media (max-width: 900px) {
  .page { padding: 24px 24px 0; }
  .charts-grid { grid-template-columns: minmax(0,1fr); }
  .chart-card > .description { min-height: 0; }
  .footer { padding-bottom: 26px; }
  .detail-card, .status-card { padding: 24px 22px; }
  .balance-row { gap: 10px; }
  .upcoming-item { gap: 10px; }
  .upcoming-item .pill { font-size: 11px; }
  .balance-row .number { font-size: 12px; }
  .share-bar { display: block; width: 42px; margin: 5px 0 0 auto; }
}
@media (max-width: 700px) {
  .details-grid, .status-grid { grid-template-columns: minmax(0,1fr); }
  .page-heading { flex-direction: column; }
}
@media (max-width: 540px) {
  .budget-heading { margin-bottom: 15px; }
  .budget-rates { max-width: none; gap: 20px; }
  .budget-foot { gap: 7px; margin-top: 8px; padding-top: 15px; }
  .budget-foot .foot-label { flex-basis: 100%; margin-bottom: 3px; }
  .page { padding: 18px 16px 0; }
  .card { border-radius: 20px; }
  .filters { padding: 14px; margin-bottom: 14px; }
  .period-control { width: 100%; }
  .filter-chip { width: 100%; display: grid; grid-template-columns: 16px minmax(0,1fr) auto 14px; gap: 7px; padding: 10px 9px; }
  .filter-chip > svg:first-child { width: 16px; }
  .filter-chip .chevron { margin-left: 0; }
  .period-label { text-align: left; font-size: 12px; }
  .period-menu { width: 100%; max-width: 100%; top: calc(100% + 8px); padding: 5px; max-height: calc(100dvh - 112px); }
  .period-option { grid-template-columns: 14px 1fr auto; gap: 5px; padding: 11px 6px; font-size: 12px; }
  .preset-dates { font-size: 11px; white-space: normal; max-width: 110px; text-align: right; }
  .kpi-grid { grid-template-columns: minmax(0,1fr); gap: 14px; margin-bottom: 14px; }
  .kpi-grid .kpi:last-child { grid-column: auto; }
  .kpi { padding: 22px; }
  .kpi h2 { font-size: 14px; }
  .kpi .metric { font-size: 38px; }
  .kpi .metric-secondary { font-size: 23px; }
  .kpi .metric-empty { font-size: 28px; }
  .metric-unit { font-size: 14px; margin-left: 8px; }
  .details-grid, .status-grid { gap: 14px; margin-bottom: 14px; }
  .detail-card, .status-card, .wide-card { padding: 22px 19px; }
  .chart-card { padding: 22px 19px 0; }
  .charts-grid { gap: 14px; margin-bottom: 14px; }
  .chart-card > .chart-note:last-child { padding-bottom: 19px; }
  .fin02-summary-table td, .fin02-summary-table th { padding-left: 4px; padding-right: 4px; }
  .fin02-summary-table tbody th, .fin02-summary-table .row-note { font-size: 12px; }
  .fin02-summary-table .number, .fin02-summary-table .share-cell { font-size: 11px; }
  .period-table tr > th:first-child { min-width: 123px; }
  .period-table th, .period-table td { font-size: 12px; }
  .wide-card { margin-bottom: 14px; }
  .card-heading h2 { font-size: 17px; }
  .section-code { font-size: 11px; }
  .balance-row { font-size: 12px; }
  .balance-row .number { font-size: 12px; }
  .balance-subrow { padding-left: 10px; }
  .balance-subrow .number { font-size: 11px; }
  .upcoming-item { font-size: 12px; }
  .upcoming-item .pill { font-size: 12px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 14px 19px 26px; }
  .footer-actions, .footer-session { align-items: flex-start; gap: 7px 16px; }
  .footer a { display: inline-block; padding: 7px 0; min-height: 36px; }
  .page-heading h1 { font-size: 28px; }
  .status-row { font-size: 12px; gap: 12px; }
  .auth-card { padding: 28px 24px; }
  .auth-footer { align-items: center; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color .15s, background-color .15s, border-color .15s; }
}
