:root,
[data-theme="light"] {
  --bg: #f5f5f5;
  --ink: rgb(0 0 0 / 0.85);
  --muted: rgb(0 0 0 / 0.5);
  --card: #ffffff;
  --sidebar: #ffffff;
  --line: rgb(0 0 0 / 0.12);
  --accent: #2556ff;
  --own: #3aaa00;
  --warn: #fa0000;
  --input: #ffffff;
  --btn: #e2e8f1;
  --btn-hover: #d5dce8;
  --btn-primary: #2556ff;
  --btn-primary-ink: #ffffff;
  --btn-primary-hover: #1d46e6;
  --nav-active: rgb(0 0 0 / 0.05);
  --shadow: none;
  --banner: #fff8e5;
  --banner-line: rgb(0 0 0 / 0.12);
  --banner-ink: rgb(0 0 0 / 0.85);
  --ok: #e8f5e0;
  --ok-line: #c5e0b4;
  --ok-ink: #1a7a00;
  --err: #fde8e8;
  --err-line: #f0c4c4;
  --tag: #e2e8f1;
  --tag-own: #e8f5e0;
  --footer: #e2e2e2;
  --footer-line: #e2e2e2;
  --radius: 8px;
}

[data-theme="dark"] {
  --bg: #2d2c33;
  --ink: rgb(255 255 255 / 0.85);
  --muted: rgb(255 255 255 / 0.5);
  --card: #26262b;
  --sidebar: #26262b;
  --line: rgb(255 255 255 / 0.12);
  --accent: #5c8aff;
  --own: #3aaa00;
  --warn: #ff4d4d;
  --input: #1f1f24;
  --btn: #343a46;
  --btn-hover: #3e4554;
  --btn-primary: #2556ff;
  --btn-primary-ink: #ffffff;
  --btn-primary-hover: #1d46e6;
  --nav-active: rgb(255 255 255 / 0.08);
  --shadow: none;
  --banner: #3a3420;
  --banner-line: rgb(255 255 255 / 0.12);
  --banner-ink: rgb(255 255 255 / 0.85);
  --ok: #243018;
  --ok-line: #4d6430;
  --ok-ink: #c5e08a;
  --err: #3a1f1a;
  --err-line: #7a3a30;
  --tag: #343a46;
  --tag-own: #243018;
  --footer: #1f1e24;
  --footer-line: #3a3942;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 14px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
}

.sidebar-head {
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.sidebar-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--btn);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

body.is-menu-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.is-menu-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.is-menu-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-backdrop {
  display: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  object-fit: cover;
  flex: 0 0 auto;
}

.brand strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.sidebar-user {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sidebar-user .account-name {
  margin-bottom: 2px;
}

.sidebar-user form {
  margin: 10px 0 0;
}

.nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.nav-link:hover {
  background: var(--nav-active);
}

.nav-link.is-active {
  background: var(--nav-active);
  font-weight: 600;
}

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1120px;
  width: 100%;
  padding: 32px 28px 0;
}

.shell main {
  flex: 1;
}

.site-footer {
  margin: 0 -28px 0;
  padding: 8px 28px 1rem;
  background: var(--footer);
  border-top: 1px solid var(--footer-line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
}

h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.updated-hint {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.top-actions form {
  margin: 0;
}

.panel {
  margin-bottom: 20px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-lead,
.note,
.empty-inline {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.note {
  margin: 0 0 16px;
}

.connections {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.connection {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.empty h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.empty p {
  margin: 0 0 18px;
  color: var(--muted);
}

.settings-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.theme-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--btn);
  cursor: pointer;
}

.theme-option.is-active {
  background: var(--ink);
  color: var(--card);
  border-color: var(--ink);
}

.theme-option input {
  accent-color: var(--accent);
}

.code-form-bar {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.code-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code-row .btn {
  flex: 0 0 auto;
}

.code-row input,
.code-row textarea,
.code-form select {
  flex: 1 1 220px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: inherit;
  background: var(--input);
}

.code-row textarea {
  min-height: 64px;
  resize: vertical;
}

.banner {
  margin: 0 0 20px;
  padding: 12px 14px;
  background: var(--banner);
  border: 1px solid var(--banner-line);
  border-radius: var(--radius);
  color: var(--banner-ink);
}

.banner-ok {
  background: var(--ok);
  border-color: var(--ok-line);
  color: var(--ok-ink);
}

.banner-error {
  background: var(--err);
  border-color: var(--err-line);
  color: var(--warn);
}

.banner code {
  font-family: Inter, sans-serif;
  font-size: 13px;
}

.totals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.stat-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 22px;
  font-weight: 500;
}

.stat-value + .stat-line {
  margin-top: 8px;
}

.stat-line {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 14px;
}

.stat-line strong {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.crm-block {
  margin: 0 0 20px;
}

.crm-block + .crm-block {
  padding-top: 8px;
}

.crm-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.crm-block .totals {
  margin-bottom: 0;
}

.crm-rows {
  display: grid;
  gap: 6px;
}

.crm-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 14px;
}

.crm-row strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.accounts-toggle-bar {
  display: flex;
  margin-top: 14px;
}

.accounts-toggle-bar .btn {
  display: flex;
  justify-content: center;
  width: 100%;
}

.account-blocks {
  display: none;
  gap: 8px;
}

.account-blocks.is-open {
  display: grid;
  margin-bottom: 16px;
}

@media (min-width: 1200px) {
  .shell {
    max-width: none;
  }

  .account-blocks.is-open {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.account-unit {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.account-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.account-heading .crm-title {
  margin: 0;
}

.account-heading-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 10px 0 0;
  font-size: 14px;
}

.account-unit > .account-rk-toggle {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.account-heading-meta .site-status,
.account-heading-meta .account-vat,
.account-heading-meta .campaign-id {
  margin: 0;
}

.account-funds {
  font-size: 13px;
}

.metrics-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metrics-wrap table,
.metrics-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}

.metrics-col-label {
  width: 18%;
}

.metrics-col-period {
  width: 20.5%;
}

.metrics-table th,
.metrics-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: middle;
}

.metrics-table thead th {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-align: right;
  background: var(--nav-active);
}

.metrics-table thead th:first-child {
  text-align: left;
}

.metrics-table tbody th {
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
  background: transparent;
}

.metrics-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.metrics-table td strong {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.metrics-table tbody tr:last-child th,
.metrics-table tbody tr:last-child td {
  border-bottom: none;
}

.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1040px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--nav-active);
}

tbody tr:last-child td {
  border-bottom: none;
}

tr.campaign-row {
  display: none;
}

tr.campaign-row.is-open {
  display: table-row;
}

tr.campaign-row td {
  background: color-mix(in srgb, var(--bg) 55%, var(--card));
  vertical-align: top;
}

.campaign-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.campaign-play {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  margin-top: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #9aa0a6;
}

.campaign-play.is-on {
  border-left-color: #3aaa00;
}

.campaign-name {
  margin: 0 0 2px;
  font-weight: 500;
}

.campaign-id {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.campaign-panel {
  display: none;
  margin-top: 16px;
}

.campaign-panel.is-open {
  display: grid;
  gap: 16px;
}

.campaign-unit + .campaign-unit {
  padding-top: 16px;
}

.campaign-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 55%, var(--card));
}

.num {
  text-align: right;
  font-family: Inter, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.warn {
  color: var(--warn);
  font-weight: 600;
}

.account-name {
  margin: 0 0 4px;
  font-weight: 600;
}

.account-finance {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14.3px;
  font-weight: 400;
}

.account-finance strong {
  color: var(--ink);
  font-weight: 600;
}

.account-finance.warn strong {
  color: var(--warn);
}

.account-vat {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.account-rk-toggle {
  flex: 0 0 auto;
}

.site-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 13px;
}

.site-status a {
  color: inherit;
  text-decoration: none;
}

.site-status a:hover {
  text-decoration: underline;
}

.site-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fa0000;
}

.site-status.ok .site-dot {
  background: #3aaa00;
}

.site-status.down {
  color: #fa0000;
}

.period {
  vertical-align: top;
  min-width: 170px;
}

.period-title {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.period-line {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14.3px;
  font-weight: 400;
  white-space: nowrap;
}

.period-line strong {
  color: var(--ink);
  font-weight: 600;
  font-family: Inter, sans-serif;
  font-variant-numeric: tabular-nums;
}

.period-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.rename-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 6px;
}

.rename-form input {
  flex: 1 1 160px;
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: var(--input);
}

.account-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.login {
  font-family: Inter, sans-serif;
}

.tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--radius);
  background: var(--tag);
  color: var(--accent);
  font-size: 12px;
}

.tag-own {
  background: var(--tag-own);
  color: var(--own);
}

.visibility-form {
  margin: 0;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.actions {
  text-align: right;
}

.actions form,
.card-actions form {
  display: inline;
  margin: 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 14px;
}

.btn {
  border: 1px solid transparent;
  background: var(--btn);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 8px 14px;
  font: inherit;
  cursor: not-allowed;
  opacity: 0.7;
  white-space: nowrap;
}

.btn.account-rk-toggle,
.btn.accounts-toggle,
.btn.providers-toggle {
  font-size: 0.875rem;
}

.btn-live {
  cursor: pointer;
  opacity: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-live:hover {
  background: var(--btn-hover);
}

.btn.is-busy {
  gap: 8px;
  cursor: wait;
  pointer-events: none;
  opacity: 1;
}

.btn.is-busy::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body.is-refreshing {
  cursor: wait;
}

body.is-refreshing .totals,
body.is-refreshing .crm-block,
body.is-refreshing .account-blocks,
body.is-refreshing .table-wrap,
body.is-refreshing .cards {
  opacity: 0.5;
  pointer-events: none;
}

.busy-banner {
  display: none;
}

.busy-banner:not([hidden]) {
  display: block;
}

.btn-primary {
  background: var(--btn-primary);
  color: var(--btn-primary-ink);
  border-color: var(--btn-primary);
}

.btn-live.btn-primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
}

.account-list {
  display: grid;
  gap: 12px;
}

.mobile-only {
  display: none;
}

.account-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.account-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.goal-form {
  margin: 12px 0 0;
}

.goal-legend {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.goal-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input);
}

.goal-list .check {
  font-size: 13px;
}

.goal-form .btn {
  margin-bottom: 6px;
}

.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.metrics dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.metrics dd {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-shell .site-footer {
  margin: 24px 0 0;
  width: 100%;
  max-width: 420px;
  padding: 8px 0 1rem;
  text-align: center;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.login-brand {
  margin-bottom: 16px;
}

.login-card .login-brand h1 {
  margin: 0;
  font-size: 22px;
}

.login-card .code-form label {
  margin-top: 12px;
}

.login-card .code-form .btn {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
}

.login-shell .banner {
  width: 100%;
  max-width: 420px;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: auto;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .sidebar-panel {
    display: none;
    flex: none;
    padding: 16px 0 8px;
    gap: 16px;
  }

  body.is-menu-open .sidebar-panel {
    display: flex;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  .menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(0 0 0 / 0.4);
    cursor: pointer;
  }

  body.is-menu-open .menu-backdrop {
    display: block;
  }

  .sidebar-user {
    margin-top: 0;
  }

  .nav {
    display: grid;
    gap: 6px;
  }

  .shell {
    min-height: 0;
    padding: 24px 16px 0;
  }

  .shell main {
    padding-bottom: 16px;
  }

  .site-footer {
    margin: 0 -16px 0;
    padding: 8px 16px 1rem;
    text-align: center;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .updated {
    text-align: center;
  }

  .totals {
    grid-template-columns: 1fr 1fr;
  }

  .account-unit {
    padding: 12px 8px;
  }

  .account-heading .crm-title {
    font-size: 13px;
  }

  .account-heading-meta {
    font-size: 12px;
    gap: 4px 10px;
  }

  .account-funds {
    font-size: 11px;
  }

  .metrics-table th,
  .metrics-table td {
    padding: 6px 3px;
    font-size: 10px;
  }

  .metrics-table thead th {
    padding: 6px 2px;
    font-size: 10px;
    line-height: 1.25;
  }

  .metrics-table tbody th {
    padding-left: 6px;
    padding-right: 4px;
    font-size: 10px;
  }

  .metrics-table td:last-child,
  .metrics-table thead th:last-child {
    padding-right: 6px;
  }

  .metrics-table td strong {
    font-size: 10px;
  }

  .metrics-col-label {
    width: 14%;
  }

  .metrics-col-period {
    width: 21.5%;
  }


  .period-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 26px;
  }

  .desktop-only {
    display: none;
  }

  .cards.mobile-only {
    display: grid;
    gap: 12px;
  }
}
