:root {
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-muted: #eef2ff;
  --color-surface-subtle: #e2e8f0;
  --color-border: rgba(15, 23, 42, 0.08);
  --color-border-strong: rgba(15, 23, 42, 0.14);
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-soft: rgba(15, 23, 42, 0.65);
  --color-accent: #4338ca;
  --color-accent-strong: #312e81;
  --color-accent-soft: rgba(67, 56, 202, 0.12);
  --color-positive: #15803d;
  --color-warning: #b45309;
  --color-danger: #b91c1c;
  --shadow-soft: 0 18px 38px rgba(15, 23, 42, 0.08);
  --shadow-elevated: 0 32px 60px rgba(15, 23, 42, 0.12);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Source Code Pro", monospace;
  --header-height: 68px;
  --hero-start: #020617;
  --hero-mid: #1e1b4b;
  --hero-end: #5b21b6;
  --hero-glow: rgba(255, 255, 255, 0.22);
  --hero-radial: rgba(56, 189, 248, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-accent-strong);
}

code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.08);
  color: var(--color-text);
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--color-background);
}

.site-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.4rem 2rem;
  background: linear-gradient(
    145deg,
    var(--hero-start) 0%,
    var(--hero-mid) 45%,
    var(--hero-end) 100%
  );
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  overflow-y: auto;
  color: rgba(248, 250, 252, 0.9);
}

.site-sidebar__content {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.site-sidebar__footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 250, 252, 0.15);
}

.site-sidebar__brand {
  display: grid;
  gap: 0.85rem;
  color: rgba(248, 250, 252, 0.9);
}

.layout__main {
  min-height: 100vh;
  background: var(--color-background);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.78);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(248, 250, 252, 0.08);
}

.brand-badge__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border-radius: 999px;
  transition: transform 120ms ease;
}

.brand-badge__logo img {
  width: 2.75rem;
  height: auto;
  display: block;
}

.brand-badge__logo:hover,
.brand-badge__logo:focus {
  transform: scale(1.05);
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.18rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.95);
  text-decoration: none;
}

.brand-title:hover,
.brand-title:focus {
  color: #e0e7ff;
}

.site-nav {
  margin-top: 0.5rem;
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.78);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.nav__link:hover,
.nav__link:focus {
  color: #e0e7ff;
  background: rgba(79, 70, 229, 0.24);
  transform: translateX(2px);
}

.nav__link[aria-current="page"] {
  color: #f8fafc;
  background: rgba(79, 70, 229, 0.3);
  font-weight: 600;
}

.nav__badge {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(67, 56, 202, 0.12);
  color: var(--color-accent-strong);
}

.page-content {
  padding: 3.2rem 2.4rem 3.5rem;
  display: grid;
  gap: 2.2rem;
}

.page-content--home {
  min-height: 100vh;
  display: block;
  padding: 3.2rem 2.4rem 3.5rem;
}

.page-content--home .hero {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 6.5rem);
  align-content: center;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    var(--hero-start) 0%,
    var(--hero-mid) 40%,
    var(--hero-end) 100%
  );
  padding: 3.5rem 3.75rem;
  box-shadow: var(--shadow-elevated);
  color: #f8fafc;
  display: grid;
  gap: 2.75rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 18% 15%,
    var(--hero-radial),
    transparent 58%
  );
  opacity: 0.9;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
}

.hero--compact {
  padding: 2.75rem 3.25rem;
  grid-template-columns: 1fr;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__copy {
  max-width: 60ch;
}

.hero__copy h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 1.6vw + 1.8rem, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero__copy p {
  margin: 0;
  color: rgba(241, 245, 249, 0.8);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero__status {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero__timestamp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(241, 245, 249, 0.75);
  font-size: 0.9rem;
}

.hero__timestamp strong {
  font-weight: 600;
  color: #f8fafc;
}

.hero__feedback {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: rgba(241, 245, 249, 0.75);
}

.hero__feedback[data-variant="success"] {
  color: #bbf7d0;
}

.hero__feedback[data-variant="error"] {
  color: #fecdd3;
}

.hero__feedback[data-variant="info"] {
  color: rgba(191, 219, 254, 0.9);
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 250, 252, 0.28);
  background: rgba(248, 250, 252, 0.1);
  color: #f8fafc;
  font-weight: 600;
  transition: transform 140ms ease, border-color 140ms ease,
    background 140ms ease;
}

.hero__actions a:hover,
.hero__actions a:focus {
  transform: translateY(-1px);
  background: rgba(248, 250, 252, 0.18);
  border-color: rgba(248, 250, 252, 0.4);
}

.hero__metrics {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.35rem;
}

.metrics-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.metric-card {
  position: relative;
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(248, 250, 252, 0.24);
  padding: 1.5rem 1.6rem;
  display: grid;
  gap: 0.65rem;
  align-content: start;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.metric-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.75);
}

.metric-value {
  font-size: clamp(1.9rem, 1.6vw + 1rem, 2.45rem);
  font-weight: 600;
}

.metric-caption {
  font-size: 0.85rem;
  color: rgba(241, 245, 249, 0.75);
}

.metric-link {
  font-size: 0.88rem;
  color: #bfdbfe;
  font-weight: 600;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  background: rgba(67, 56, 202, 0.08);
  padding: 0.95rem 1.35rem;
  color: var(--color-text);
}

.card .status-bar {
  margin: 0 1.45rem 1rem 1.45rem;
}

.card-header + .status-bar {
  margin-top: 0.85rem;
}

.status-bar [data-status] {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.status-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.table-section {
  padding: 0 1.45rem 1.45rem;
  overflow-x: auto;
}

.content-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(0, 1fr);
}

.weekly-charts,
.congestion-charts {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.blocks-view {
  gap: 1.5rem;
}

.content-grid--split {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
}

.chart-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.chart-container {
  position: relative;
  min-height: 280px;
}

.chart-container canvas {
  width: 100%;
  height: 100%;
}

.card {
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card--links {
  padding: 2rem;
  display: grid;
  gap: 1.2rem;
  background: linear-gradient(
    160deg,
    rgba(67, 56, 202, 0.12),
    rgba(99, 102, 241, 0.05)
  );
}

.card--table {
  display: grid;
  gap: 1.5rem;
}

.card--summary {
  display: grid;
}

.card--form .card-header {
  border-bottom: none;
  padding-bottom: 1.6rem;
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
  padding: 1.45rem 1.6rem 1.05rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.card-header h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--color-text);
}

.card-header h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--color-text);
}

.card-header p {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  color: var(--color-text-muted);
}

.card__body {
  padding: 1.45rem 1.6rem;
}

.summary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.summary-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.35rem;
  background: linear-gradient(
    150deg,
    rgba(67, 56, 202, 0.12),
    rgba(30, 64, 175, 0.08)
  );
  border: 1px solid rgba(67, 56, 202, 0.18);
}

.summary-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.summary-value {
  font-size: clamp(1.65rem, 1.4vw + 1rem, 2.2rem);
  font-weight: 600;
  color: var(--color-text);
}

.summary-caption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.card--links h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-text);
}

.card--links p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.quick-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.feature-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.feature-list strong {
  color: var(--color-text);
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(67, 56, 202, 0.12);
  border: 1px solid rgba(67, 56, 202, 0.24);
  color: var(--color-accent-strong);
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease,
    transform 160ms ease;
}

.quick-link:hover,
.quick-link:focus {
  background: rgba(67, 56, 202, 0.18);
  border-color: rgba(67, 56, 202, 0.36);
  transform: translateY(-1px);
}

.primary-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.primary-table thead {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--color-text-soft);
  background: rgba(15, 23, 42, 0.04);
}

.primary-table th,
.primary-table td {
  padding: 0.75rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.primary-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.08);
}

.cell-centered {
  text-align: center;
}

.cell-numeric {
  text-align: right;
}

.block-link {
  font-weight: 600;
  color: var(--color-accent);
}

.line-divider {
  color: rgba(15, 23, 42, 0.22);
}

.status-message {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  background: rgba(67, 56, 202, 0.08);
  border: 1px solid rgba(67, 56, 202, 0.22);
  color: var(--color-text-muted);
}

.status-message[data-variant="error"] {
  border-color: rgba(185, 28, 28, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #7f1d1d;
}

.status-message[data-variant="success"] {
  border-color: rgba(21, 128, 61, 0.35);
  background: rgba(134, 239, 172, 0.2);
  color: #166534;
}

.status-message[data-variant="info"] {
  border-color: rgba(67, 56, 202, 0.3);
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-accent-strong);
}

.status-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.card__body--stack {
  display: grid;
  gap: 1rem;
}

.block-form {
  display: grid;
  gap: 0.65rem;
}

.block-form .form-field {
  display: grid;
  gap: 0.4rem;
}

.block-form__input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.block-form__input-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.block-form__input-row button {
  flex-shrink: 0;
  white-space: nowrap;
}

.block-status-message {
  margin: 0;
}

label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

input[type="text"],
input[type="number"],
input[type="search"] {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 0.75rem 0.95rem;
  font-size: 0.94rem;
  color: var(--color-text);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

input:focus {
  outline: 2px solid rgba(99, 102, 241, 0.45);
  outline-offset: 2px;
}

button {
  background: linear-gradient(140deg, #4f46e5, #4338ca);
  border: none;
  border-radius: var(--radius-sm);
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.75rem 1.15rem;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

button:hover,
button:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.28);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.details-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-bottom: 0.5rem;
}

.details-item {
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.details-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-soft);
  margin-bottom: 0.4rem;
}

.details-value {
  font-size: 0.95rem;
  word-break: break-all;
  color: var(--color-text);
}

.details-grid--compact {
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.entity-link {
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.table-link {
  color: var(--color-accent);
  font-weight: 600;
}

.table-link:hover,
.table-link:focus {
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  background: rgba(99, 102, 241, 0.1);
}

.badge--accent {
  color: var(--color-accent-strong);
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge[data-variant="success"] {
  background: rgba(34, 197, 94, 0.18);
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.28);
}

.badge[data-variant="error"] {
  background: rgba(248, 113, 113, 0.18);
  color: #7f1d1d;
  border: 1px solid rgba(185, 28, 28, 0.32);
}

.badge[data-variant="info"] {
  background: rgba(99, 102, 241, 0.18);
  color: var(--color-accent-strong);
  border: 1px solid rgba(79, 70, 229, 0.26);
}

.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;
}

.placeholder-row td {
  text-align: center;
  padding: 1.5rem 0.5rem;
  color: var(--color-text-muted);
}

.content-single {
  display: grid;
  gap: 1.75rem;
}

@media (max-width: 1600px) {
  .content-grid--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
    padding: 1.8rem 1.6rem;
    gap: 1.6rem;
    color: rgba(248, 250, 252, 0.9);
  }

  .layout__main {
    min-height: auto;
  }

  .page-content {
    padding: 2.6rem 1.6rem 3rem;
  }

  .page-content--home {
    padding: 2.4rem 1.6rem 3rem;
  }

  .card__body,
  .card-header {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2.6rem 2.35rem;
  }

  .hero--compact {
    padding: 2.4rem 2.2rem;
  }

  .hero__metrics {
    margin-top: 0;
  }

  .site-sidebar {
    padding: 1.6rem;
  }

  .page-content--home {
    padding: 2rem 1.5rem 2.6rem;
  }

  .brand-badge {
    font-size: 0.68rem;
  }

  .nav__list {
    gap: 0.3rem;
  }

  .status-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-table {
    min-width: 100%;
  }
}

/* Home Dashboard Styles */
.home-dashboard {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 6.4rem);
  max-width: 1400px;
  margin: 0 auto;
}

.home-dashboard__header {
  background: linear-gradient(
    135deg,
    var(--hero-start) 0%,
    var(--hero-mid) 40%,
    var(--hero-end) 100%
  );
  padding: 3rem 3.5rem;
  color: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.home-dashboard__header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 18% 15%,
    var(--hero-radial),
    transparent 58%
  );
  opacity: 0.9;
  pointer-events: none;
}

.home-dashboard__header > * {
  position: relative;
  z-index: 1;
}

.home-dashboard__header h1 {
  margin: 0 0 0.5rem 0;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-dashboard__header p {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(248, 250, 252, 0.85);
}

.refresh-button {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.refresh-button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

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

.home-dashboard__content {
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  flex: 1;
}

.dashboard-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.section-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.section-description {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.feature-list {
  margin: 0;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.feature-list strong {
  color: var(--color-text);
  font-weight: 600;
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-weight: 600;
  transition: all 0.2s ease;
}

.quick-link:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
  color: var(--color-accent-strong);
  transform: translateX(4px);
}

.quick-link__title {
  font-size: 1.05rem;
}

.quick-link__arrow {
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.quick-link:hover .quick-link__arrow {
  transform: translateX(4px);
}

.home-dashboard .metrics-grid {
  margin-top: 0;
}

.home-dashboard .metric-card {
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.home-dashboard .metric-label {
  color: var(--color-text-muted);
}

.home-dashboard .metric-value {
  color: var(--color-text);
}

.home-dashboard .metric-caption {
  color: var(--color-text-soft);
}

@media (max-width: 1024px) {
  .dashboard-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .home-dashboard__header {
    flex-direction: column;
    padding: 2rem 2rem;
  }

  .home-dashboard__content {
    padding: 2rem 2rem;
    gap: 2.5rem;
  }

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

/* GLM transfers page */
.glm-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .glm-charts {
    grid-template-columns: 1fr;
  }
}
