.overview-page {
  --overview-radius: 8px;
  --overview-border: var(--line, #e3e7ed);
  --overview-link: var(--accent-dark, #155f98);
  display: grid;
  gap: 24px;
  min-width: 0;
  container-type: inline-size;
}
.overview-heading,
.overview-panel-head,
.overview-kpi-header,
.overview-actions,
.overview-panel-title,
.overview-chart-heading { display: flex; align-items: center; gap: 12px; }
.overview-heading,
.overview-panel-head,
.overview-kpi-header,
.overview-chart-heading { justify-content: space-between; }
.overview-heading { min-height: 52px; }
.overview-heading h1 { font-size: 27px; line-height: 1.2; font-weight: 650; letter-spacing: -.035em; }
.overview-heading time { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.overview-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.overview-heading .btn { min-height: 38px; font-size: 13px; }
.overview-kpi-header { margin-bottom: 12px; }
.overview-kpi-header h2 { font-size: 13px; font-weight: 550; color: var(--subtle); }
.overview-currency,
.overview-currency-static { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; border: 1px solid var(--overview-border); border-radius: 5px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 550; }
.overview-currency:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.overview-currency select { appearance: none; border: 0; outline: 0; background: transparent; cursor: pointer; }
.overview-currency select:focus-visible { outline: 0; }
.overview-kpi-band { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; gap: 14px; }
.overview-metric { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 126px; min-width: 0; padding: 18px 19px 17px; border: 1px solid var(--overview-border); border-radius: var(--overview-radius); background: var(--surface); color: var(--ink); transition: border-color .15s, background-color .15s; }
.overview-metric:hover { border-color: #bdcddd; background: #fcfdff; }
.overview-metric:focus-visible { outline-offset: 3px; }
.overview-metric-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; color: var(--subtle); font-size: 12px; font-weight: 550; }
.overview-metric-icon { display: inline-flex; color: #8592a3; }
.overview-metric > strong { font-size: clamp(25px, 2.45vw, 32px); line-height: 1.1; letter-spacing: -.035em; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.overview-money-unit { color: var(--muted); font-size: .43em; font-weight: 550; letter-spacing: 0; }
.overview-metric-detail { color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: auto; }
.overview-metric-attention .overview-metric-detail { color: #9a681e; }
.overview-metric-attention { border-top: 2px solid var(--accent); padding-top: 17px; }
.overview-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 306px; align-items: start; gap: 20px; }
.overview-register,
.overview-rail { display: grid; min-width: 0; gap: 20px; }
.overview-surface { min-width: 0; border: 1px solid var(--overview-border); border-radius: var(--overview-radius); background: var(--surface); overflow: hidden; }
.overview-panel-head { min-height: 59px; padding: 17px 20px; }
.overview-panel-head h2 { font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.overview-text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--overview-link); font-size: 12px; font-weight: 550; white-space: nowrap; }
.overview-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.overview-chart-heading { padding: 0 20px 12px; align-items: flex-end; }
.overview-chart-stat { display: grid; gap: 6px; min-width: 0; }
.overview-chart-stat strong { font-size: 29px; letter-spacing: -.035em; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; }
.overview-chart-stat small { font-size: 12px; color: var(--muted); }
.overview-chart-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; padding-bottom: 2px; white-space: nowrap; }
.overview-chart-legend i { display: block; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; }
.overview-chart-wrap { display: grid; padding: 1px 15px 10px 8px; }
.overview-chart-svg { display: block; width: 100%; height: auto; max-height: 185px; min-width: 0; font-family: inherit; }
.overview-chart-grid { stroke: #e9edf2; stroke-width: 1; stroke-dasharray: 3 4; }
.overview-axis-label,
.overview-month-label { fill: #7a8797; font-size: 12px; font-weight: 450; }
.overview-month { cursor: pointer; outline: none; }
.overview-month-target { fill: transparent; }
.overview-month-bar { fill: #8dbbdd; }
.overview-month.is-current .overview-month-bar,
.overview-month.is-preview .overview-month-bar { fill: var(--accent); }
.overview-month.is-preview .overview-month-target,
.overview-month:focus-visible .overview-month-target { fill: #eef5fb; }
.overview-month:focus-visible .overview-month-target { stroke: var(--accent); stroke-width: 1.5; }
.overview-month.is-current .overview-month-label,
.overview-month.is-preview .overview-month-label { fill: var(--overview-link); font-weight: 600; }
.overview-chart-empty { margin: 0; min-height: 175px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.overview-invoices .overview-panel-head { border-bottom: 1px solid var(--overview-border); flex-wrap: wrap; gap: 12px; }
.overview-review { display: inline-flex; align-items: center; gap: 5px; color: #966923; font-size: 11px; font-weight: 550; white-space: nowrap; }
.overview-review:hover { color: #744d16; text-decoration: underline; text-underline-offset: 3px; }
.overview-invoices table { min-width: 650px; }
.overview-invoices th { color: #788595; background: #fafbfc; font-size: 10.5px; font-weight: 550; height: 36px; letter-spacing: 0; }
.overview-invoices th,
.overview-invoices td { padding-inline: 15px; }
.overview-invoices td { height: 62px; padding-block: 11px; font-size: 12px; }
.overview-invoices td strong { font-weight: 600; }
.overview-invoices .cell-link { font-weight: 600; }
.overview-invoices .cell-secondary { margin-top: 4px; color: #8a95a4; font-size: 10px; }
.overview-invoices .badge { font-size: 10px; }
.overview-client { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.overview-client .cell-name { max-width: 145px; overflow: hidden; text-overflow: ellipsis; }
.overview-client:hover .cell-name { color: var(--overview-link); }
.overview-invoice-overdue { display: block; margin-top: 4px; color: #966923; font-size: 10px; }
.overview-renewal-list,
.overview-events { margin: 0; padding: 0 20px; list-style: none; }
.overview-renewal-list li + li,
.overview-events li + li { border-top: 1px solid #edf0f4; }
.overview-renewal { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 15px 0; min-height: 67px; color: var(--ink); }
.overview-renewal-copy { display: grid; gap: 5px; min-width: 0; }
.overview-renewal-copy strong,
.overview-renewal-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-renewal-copy strong { font-size: 12px; font-weight: 550; }
.overview-renewal-copy small { font-size: 11px; color: var(--muted); }
.overview-renewal:hover strong { color: var(--overview-link); }
.overview-renewal time { padding-top: 1px; font-size: 11px; color: var(--subtle); font-weight: 500; white-space: nowrap; }
.overview-panel-footer { display: flex; justify-content: space-between; align-items: center; min-height: 45px; padding: 12px 20px; border-top: 1px solid var(--overview-border); color: var(--overview-link); font-size: 12px; font-weight: 550; }
.overview-panel-footer:hover { background: #fafcfe; }
.overview-rail-empty { margin: 0; padding: 3px 20px 22px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.overview-event { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 68px; padding: 13px 0; color: var(--ink); }
.overview-event:hover .overview-event-copy strong { color: var(--overview-link); }
.overview-event-date { display: grid; align-content: center; justify-items: center; gap: 2px; min-height: 38px; border: 1px solid var(--overview-border); border-radius: 5px; color: #627084; font-variant-numeric: tabular-nums; }
.overview-event-date.is-today { border-color: #c4dded; color: var(--overview-link); background: #f2f8fc; }
.overview-event-date strong { font-size: 14px; line-height: 1.1; font-weight: 600; }
.overview-event-date small { font-size: 8px; color: inherit; text-transform: uppercase; }
.overview-event-copy { display: grid; gap: 5px; min-width: 0; }
.overview-event-copy strong,
.overview-event-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-event-copy strong { font-size: 12px; font-weight: 550; }
.overview-event-copy small { font-size: 11px; color: var(--muted); }
.overview-event-time { font-size: 11px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.overview-agenda-footer { padding: 13px 20px; border-top: 1px solid var(--overview-border); }
.overview-agenda-footer .btn { min-height: 34px; width: 100%; font-size: 12px; }

@container (max-width: 930px) {
  .overview-workspace { grid-template-columns: minmax(0,1fr) 275px; gap: 16px; }
  .overview-register, .overview-rail { gap: 16px; }
  .overview-kpi-band { gap: 10px; }
  .overview-metric { padding-inline: 15px; }
  .overview-metric-icon { display: none; }
  .overview-invoices table { min-width: 590px; }
  .overview-invoices .overview-invoice-date { display: none; }
}
@container (max-width: 760px) {
  .overview-workspace { grid-template-columns: minmax(0,1fr); }
  .overview-rail { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .overview-kpi-band { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-metric { min-height: 119px; }
  .overview-chart-svg { max-height: 220px; }
  .overview-invoices table { min-width: 620px; }
  .overview-invoices .overview-invoice-date { display: table-cell; }
}
@container (max-width: 480px) {
  .overview-page { gap: 20px; }
  .overview-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .overview-heading h1 { font-size: 25px; }
  .overview-heading .overview-actions { width: 100%; justify-content: flex-start; }
  .overview-metric { min-height: 110px; padding: 14px; gap: 10px; }
  .overview-metric-attention { padding-top: 13px; }
  .overview-metric-head { font-size: 11px; }
  .overview-metric > strong { font-size: 25px; }
  .overview-metric-detail { font-size: 10px; }
  .overview-rail { grid-template-columns: minmax(0,1fr); }
  .overview-panel-head { padding: 16px; }
  .overview-chart-heading { padding-inline: 16px; }
  .overview-chart-stat strong { font-size: 26px; }
  .overview-chart-legend { display: none; }
  .overview-invoices .overview-actions { gap: 13px; justify-content: flex-start; }
  .overview-invoices table { min-width: 0; }
  .overview-invoices .overview-invoice-date,
  .overview-invoices .overview-invoice-balance { display: none; }
  .overview-invoices th, .overview-invoices td { padding-inline: 10px; font-size: 11px; }
  .overview-invoices td { height: 61px; }
  .overview-client .cell-name { max-width: 95px; white-space: normal; }
  .overview-invoices .cell-secondary { font-size: 9px; }
  .overview-renewal-list, .overview-events { padding-inline: 16px; }
}
