:root {
  color-scheme: light;
  --gold: #DB9840;
  --gold-light: #FBCD91;
  --gold-gradient: linear-gradient(to right, #FBCD91, #DB9840);
  --ink: #18181B;
  --body: #3F3F46;
  --muted: #71717A;
  --label: #52525B;
  --faint: #A1A1AA;
  --border: #E4E4E7;
  --divider: #F4F4F5;
  --background: #FFFFFF;
  --background-alt: #FAFAFA;
  --dark: #09090B;
  --display-font: 'Outfit', 'Poppins', 'Century Gothic', 'Futura', 'Segoe UI', sans-serif;
  --text-font: 'Manrope', 'Inter', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  --page-x: 24px;
  --page-max: 1200px;
}

@media (min-width: 768px) {
  :root {
    --page-x: 48px;
  }
}

@media (min-width: 1024px) {
  :root {
    --page-x: 96px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--body);
  font-family: var(--text-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.login-page {
  min-height: 100vh;
  background: var(--background-alt);
}

.login-shell {
  display: grid;
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: stretch;
}

.login-intro {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  background: var(--dark);
  color: var(--background);
  padding: 64px;
}

.login-intro .brand-mark {
  width: 52px;
  height: 52px;
  font-size: 21px;
}

.login-intro h1 {
  max-width: 560px;
  color: var(--background);
  font-size: 54px;
}

.login-intro p {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--faint);
}

.login-panel {
  display: grid;
  align-content: center;
  background: var(--background);
  padding: 56px;
}

.login-panel h2 {
  margin-bottom: 10px;
  font-size: 32px;
}

.login-panel > p {
  margin-bottom: 32px;
  color: var(--muted);
}

.login-form,
.login-form label {
  display: grid;
}

.login-form {
  gap: 20px;
}

.login-form label {
  gap: 7px;
}

.login-form label span {
  color: var(--label);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  min-height: 48px;
}

.login-form .primary-button {
  min-height: 48px;
  margin-top: 4px;
}

.login-error {
  margin: 0;
  border-left: 2px solid var(--gold);
  color: var(--ink);
  padding-left: 12px;
  font-size: 13px;
}

.login-footnote {
  margin-top: 28px;
  color: var(--faint);
  font-size: 12px;
}

button,
select,
input {
  color: inherit;
  font: inherit;
}

button,
select,
input,
tr[tabindex] {
  outline-color: var(--gold);
  outline-offset: 3px;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.kpi strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.2;
}

h2 {
  margin-bottom: 0;
  font-size: 36px;
  line-height: 1.1;
}

h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.4;
}

select,
input {
  min-height: 44px;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 10px 12px;
}

select:focus,
input:focus {
  border-color: var(--gold);
  outline: 1px solid var(--gold);
}

input::placeholder {
  color: var(--faint);
}

.app-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(380px, 1fr) auto;
  align-items: center;
  gap: 32px;
  min-height: 88px;
  border-bottom: 1px solid var(--divider);
  background: var(--background);
  padding: 16px var(--page-x);
}

.brand-block,
.header-tools,
.view-tabs,
.context-bar,
.context-bar > div,
.page-heading,
.panel-heading,
.legend,
.segmented,
.pagination,
.category-form-heading,
.category-form-actions {
  display: flex;
  align-items: center;
}

.brand-block {
  gap: 16px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-left: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 500;
}

.brand-block p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.view-tabs {
  justify-content: center;
  gap: 28px;
}

.tab-button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.tab-button:hover,
.tab-button.active {
  color: var(--ink);
}

.header-tools {
  justify-content: flex-end;
  gap: 12px;
}

.period-control,
.filters label,
.category-fields label {
  display: grid;
  gap: 6px;
}

.period-control > span,
.filters label > span,
.category-fields label > span {
  color: var(--label);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.period-control {
  grid-template-columns: auto 118px;
  align-items: center;
}

.period-control select {
  min-height: 42px;
}

.primary-button,
.secondary-button,
.segment {
  min-height: 42px;
  border: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  transition: color .3s ease, border-color .3s ease, transform .3s ease;
}

.primary-button {
  background: var(--gold-gradient);
  color: var(--dark);
  padding: 13px 22px;
}

.primary-button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--ink);
  padding: 11px 17px;
}

.secondary-button:hover {
  border-color: var(--gold);
}

main {
  width: min(var(--page-max), calc(100% - (var(--page-x) * 2)));
  margin: 0 auto;
  padding-bottom: 96px;
}

.context-bar {
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  border-bottom: 1px solid var(--divider);
}

.context-bar > div {
  gap: 14px;
}

.context-bar strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.context-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.view {
  padding-top: 64px;
}

.page-heading {
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.page-heading > div:first-child {
  max-width: 720px;
}

.page-heading > .muted {
  max-width: 42ch;
  margin: 0;
  text-align: right;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--label);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 26px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--label);
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.badge.success {
  border-color: var(--gold);
  color: var(--ink);
}

.badge.warning {
  border-bottom: 2px solid var(--gold);
  color: var(--ink);
}

.badge.danger {
  border: 2px solid var(--ink);
  color: var(--ink);
}

.badge.neutral {
  color: var(--muted);
}

.empty-banner {
  display: grid;
  gap: 6px;
  margin-bottom: 32px;
  border-left: 2px solid var(--gold);
  background: var(--background-alt);
  padding: 20px 24px;
}

.empty-banner strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-weight: 500;
}

.empty-banner span {
  color: var(--muted);
  font-size: 13px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  background: var(--border);
}

.kpi {
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-height: 160px;
  background: var(--background);
  padding: 26px;
}

.kpi > span,
.kpi small {
  color: var(--label);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.kpi strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.kpi small {
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
}

.kpi.accent {
  border-top: 3px solid var(--gold);
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  margin-top: 24px;
}

.lower-grid,
.trace-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 30px;
}

.panel-heading {
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  margin-bottom: 28px;
}

.panel-heading .eyebrow {
  margin-bottom: 4px;
}

.segmented {
  border-bottom: 1px solid var(--border);
}

.segment {
  position: relative;
  background: transparent;
  color: var(--muted);
  padding: 10px 13px;
}

.segment::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: '';
}

.segment:hover,
.segment.active {
  color: var(--ink);
}

.segment.active::after {
  background: var(--gold);
}

.category-bars {
  display: grid;
  gap: 22px;
}

.category-row {
  display: grid;
  gap: 9px;
}

.category-copy {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.category-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.category-copy span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.bar-chart {
  display: block;
  width: 100%;
  height: 7px;
}

.bar-track {
  fill: var(--border);
}

.bar-value,
.bar-value.expense,
.chart-expense {
  fill: var(--ink);
}

.bar-value.income,
.chart-income {
  fill: var(--gold);
}

.trend-chart {
  min-height: 278px;
  overflow-x: auto;
}

.trend-chart svg {
  display: block;
  min-width: 620px;
  width: 100%;
}

.chart-grid {
  stroke: var(--divider);
  stroke-width: 1;
}

.chart-axis {
  fill: var(--muted);
  font-family: var(--text-font);
  font-size: 10px;
}

.legend {
  gap: 18px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend i {
  display: inline-block;
  width: 18px;
  height: 2px;
}

.legend-income {
  background: var(--gold);
}

.legend-expense {
  background: var(--ink);
}

.account-list,
.quality-list,
.health-list,
.stack-list,
.timeline {
  display: grid;
}

.account-row,
.quality-row,
.health-row,
.stack-row,
.file-row,
.timeline-row {
  border-bottom: 1px solid var(--divider);
}

.account-row:last-child,
.quality-row:last-child,
.health-row:last-child,
.stack-row:last-child,
.file-row:last-child,
.timeline-row:last-child {
  border-bottom: 0;
}

.account-row,
.quality-row,
.health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 14px 0;
}

.account-row > div:first-child,
.quality-row > div,
.health-row > div,
.stack-row > div,
.file-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-row strong,
.quality-row strong,
.health-row strong,
.stack-row strong,
.file-row strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.account-row span,
.quality-row span,
.health-row span,
.stack-row span,
.file-row span {
  color: var(--muted);
  font-size: 11px;
}

.account-amounts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px;
  text-align: right;
}

.amount-income,
.amount-expense {
  color: var(--body);
}

.account-amounts strong,
.number {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 28px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 22px 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--background);
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th {
  border-bottom: 1px solid var(--border);
  background: var(--background-alt);
  color: var(--label);
  padding: 13px 15px;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
}

td {
  border-bottom: 1px solid var(--divider);
  color: var(--body);
  padding: 16px 15px;
  font-size: 12px;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover,
tbody tr:focus {
  background: var(--background-alt);
}

td.description {
  min-width: 220px;
  max-width: 320px;
  overflow-wrap: anywhere;
}

td.number,
th.number {
  text-align: right;
  white-space: nowrap;
}

.pagination {
  justify-content: flex-end;
  gap: 14px;
  margin-top: 24px;
}

.pagination > span {
  color: var(--muted);
  font-size: 11px;
}

.projection-heading {
  align-items: flex-end;
}

.projection-kpis {
  margin-bottom: 0;
}

.projection-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
}

.projection-chart {
  display: grid;
}

.projection-month {
  display: grid;
  grid-template-columns: 90px 1fr 128px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--divider);
  padding: 22px 0;
}

.projection-month:last-child {
  border-bottom: 0;
}

.projection-month > strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-weight: 500;
}

.projection-bars {
  display: grid;
  gap: 10px;
}

.projection-bars > div {
  display: grid;
  grid-template-columns: 60px 1fr 84px;
  align-items: center;
  gap: 10px;
}

.projection-bars span,
.projection-bars b,
.projection-net {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.projection-bars b,
.projection-net {
  color: var(--ink);
  text-align: right;
}

.projection-bars svg {
  width: 100%;
  height: 8px;
}

.definition-list {
  display: grid;
  margin: 0;
}

.definition-list > div {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr);
  gap: 20px;
  border-bottom: 1px solid var(--divider);
  padding: 14px 0;
}

.definition-list > div:last-child {
  border-bottom: 0;
}

.definition-list dt {
  color: var(--label);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.definition-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.trace-section {
  margin-top: 24px;
}

.stack-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
}

.stack-row p {
  margin: 0;
  color: var(--body);
  font-size: 12px;
}

.file-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 17px 0;
}

.file-metrics {
  display: flex;
  gap: 18px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 138px 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 12px 0;
}

.timeline-row time,
.timeline-row .source {
  color: var(--muted);
  font-size: 10px;
}

.timeline-row p {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.empty-state {
  display: grid;
  min-height: 150px;
  place-items: center;
  color: var(--muted);
  padding: 28px 16px;
  text-align: center;
}

.transaction-dialog {
  width: min(760px, calc(100% - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--ink);
  background: var(--background);
  color: var(--body);
  padding: 28px;
}

.transaction-dialog::backdrop {
  background: rgb(9 9 11 / 72%);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.dialog-heading h2 {
  max-width: 540px;
  overflow-wrap: anywhere;
  font-size: 28px;
}

.category-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  border-top: 2px solid var(--gold);
  padding-top: 24px;
}

.category-form-heading,
.category-form-actions {
  justify-content: space-between;
  gap: 18px;
}

.category-form-heading h3 {
  margin-top: 2px;
}

.category-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.category-fields select {
  width: 100%;
}

.learn-control {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  background: var(--background-alt);
  padding: 14px;
}

.learn-control input {
  min-height: 0;
  margin-top: 4px;
  accent-color: var(--gold);
}

.learn-control span {
  display: grid;
  gap: 3px;
}

.learn-control strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.learn-control small,
.form-status {
  color: var(--muted);
  font-size: 11px;
}

.form-status.success {
  border-top: 2px solid var(--gold);
  color: var(--ink);
  padding-top: 5px;
}

.form-status.error {
  color: var(--ink);
  font-weight: 600;
  text-transform: uppercase;
}

.category-form-actions .primary-button {
  flex: 0 0 auto;
}

.error-banner {
  position: fixed;
  right: var(--page-x);
  bottom: 24px;
  left: var(--page-x);
  z-index: 40;
  max-width: 720px;
  margin: auto;
  border: 2px solid var(--ink);
  background: var(--background);
  color: var(--ink);
  padding: 15px 18px;
}

.error-banner strong {
  margin-right: 6px;
  font-size: 11px;
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  .app-header {
    grid-template-columns: auto 1fr;
  }

  .view-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-tools {
    justify-self: end;
  }

  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-field {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-intro {
    min-height: 260px;
    padding: 36px var(--page-x);
  }

  .login-intro h1 {
    font-size: 40px;
  }

  .login-panel {
    padding: 48px var(--page-x) 64px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-grid,
  .lower-grid,
  .projection-grid,
  .trace-grid {
    grid-template-columns: 1fr;
  }

  .account-amounts {
    grid-template-columns: auto;
    gap: 2px;
  }

  .file-row {
    grid-template-columns: 1fr auto;
  }

  .file-metrics {
    grid-column: 1 / -1;
  }

  .timeline-row {
    grid-template-columns: 120px 70px 1fr;
  }

  .timeline-row .badge {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .login-intro {
    min-height: 220px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .login-intro h1 {
    font-size: 34px;
  }

  .login-intro p {
    font-size: 14px;
  }

  .app-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .brand-block {
    justify-content: flex-start;
  }

  .header-tools,
  .view-tabs {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }

  .header-tools {
    justify-content: space-between;
  }

  .period-control {
    flex: 1;
  }

  .period-control select {
    width: 100%;
  }

  .view-tabs {
    width: 100%;
    gap: 18px;
  }

  .tab-button {
    flex: 0 0 auto;
  }

  main {
    padding-bottom: 64px;
  }

  .context-bar,
  .page-heading,
  .projection-heading,
  .panel-heading,
  .empty-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .context-bar {
    justify-content: center;
    padding: 12px 0;
  }

  .context-bar > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .view {
    padding-top: 48px;
  }

  .page-heading {
    gap: 20px;
    margin-bottom: 36px;
  }

  .page-heading > .muted {
    text-align: left;
  }

  h2 {
    font-size: 30px;
  }

  .kpi {
    min-height: 145px;
    padding: 20px;
  }

  .kpi strong {
    font-size: 28px;
  }

  .panel {
    padding: 22px;
  }

  .panel-heading {
    min-height: 0;
    margin-bottom: 24px;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .search-field,
  .filters .secondary-button {
    grid-column: 1 / -1;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tbody tr {
    border: 1px solid var(--border);
    background: var(--background);
    padding: 12px 14px;
  }

  tbody td {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 10px;
    border: 0;
    padding: 5px 0;
    text-align: left;
  }

  tbody td::before {
    color: var(--label);
    content: attr(data-label);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
  }

  td.description {
    min-width: 0;
    max-width: none;
  }

  td.number {
    text-align: left;
  }

  .pagination {
    justify-content: space-between;
  }

  .scenario-control {
    max-width: 100%;
    overflow-x: auto;
  }

  .projection-month {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .projection-net {
    text-align: left;
  }

  .definition-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .category-fields {
    grid-template-columns: 1fr;
  }

  .category-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline-row {
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
  }

  .timeline-row .source {
    text-align: right;
  }

  .timeline-row p {
    grid-column: 1 / -1;
  }

  .timeline-row .badge {
    grid-column: 1 / -1;
  }

  .file-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .transaction-dialog {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 20px;
  }

  .dialog-heading h2 {
    font-size: 22px;
  }
}

@media (max-width: 440px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .filters label,
  .search-field,
  .filters .secondary-button {
    grid-column: 1;
  }

  .header-tools {
    align-items: flex-end;
  }

  .period-control {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
