:root {
  --bg: #040806;
  --bg-soft: rgba(7, 18, 11, 0.92);
  --surface: rgba(8, 22, 13, 0.94);
  --surface-alt: rgba(10, 28, 16, 0.92);
  --surface-strong: rgba(12, 36, 20, 0.96);
  --ink: #c8ffd7;
  --ink-strong: #e7ffee;
  --muted: #7bcf93;
  --line: rgba(124, 255, 178, 0.18);
  --line-strong: rgba(124, 255, 178, 0.34);
  --accent: #7cffb2;
  --accent-strong: #a8ffca;
  --accent-soft: rgba(124, 255, 178, 0.12);
  --danger: #ff7f9b;
  --shadow: 0 0 0 1px rgba(124, 255, 178, 0.06), 0 28px 80px rgba(0, 0, 0, 0.46);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(124, 255, 178, 0.08), transparent 22%),
    radial-gradient(circle at top left, rgba(124, 255, 178, 0.05), transparent 28%),
    linear-gradient(180deg, #030604 0%, #06100a 48%, #030604 100%);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Aptos", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(124, 255, 178, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 255, 178, 0.02) 1px, transparent 1px);
  background-size: 100% 4px, 4px 100%;
  opacity: 0.35;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  appearance: none;
}

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

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar,
.footer,
.terminal-hero,
.feature-card,
.split-card,
.metric-card,
.error-card,
.panel-card,
.info-card,
.dashboard-chip,
.kpi-card,
.chart-card {
  background: linear-gradient(180deg, rgba(9, 26, 15, 0.94), rgba(6, 16, 10, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.topbar,
.footer {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  color: var(--accent-strong);
  background: radial-gradient(circle at center, rgba(124, 255, 178, 0.18), rgba(124, 255, 178, 0.04));
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(124, 255, 178, 0.7);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong,
.toplink,
.account-copy,
.account-dropdown a,
.account-dropdown button,
.primary-button,
.secondary-button,
.ghost-button,
.kpi-card strong,
.chart-head strong,
.metric-card strong,
.dashboard-chip strong,
.hero-actions a,
.list-row strong,
.section-header h2 {
  color: var(--ink-strong);
}

.brand-copy small,
.panel-label,
.eyebrow,
.hero-text,
.feature-card p,
.feature-card a,
.meta-row span,
.dashboard-chip span,
.dashboard-chip strong,
.section-head span,
.section-header span,
.chart-meta span,
.kpi-card small,
.kpi-label,
.footer span,
.account-dropdown a,
.account-dropdown button,
.subnav-link,
.list-row strong,
.list-row span,
.field span,
.code-block,
.terminal-copyline {
  overflow-wrap: anywhere;
}

.feature-card p,
.metric-card span,
.clean-list,
.info-card,
.flash,
.field-hint,
.inline-note,
.field span,
.list-row span,
.meta-row,
.footer,
.chart-label,
.chart-meta,
.kpi-card small,
.kpi-label,
.terminal-kicker,
.terminal-copyline {
  color: var(--muted);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.top-search input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(4, 10, 6, 0.86);
  color: var(--ink-strong);
  outline: none;
}

.top-search input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

.top-search input::placeholder {
  color: rgba(123, 207, 147, 0.72);
}

.top-search input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(124, 255, 178, 0.08);
}

.top-search button,
.ghost-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.top-search button:hover,
.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover,
.toplink:hover,
.account-pill:hover {
  transform: translateY(-1px);
}

.top-search button,
.primary-button {
  border: 1px solid rgba(124, 255, 178, 0.34);
  background: linear-gradient(180deg, rgba(14, 52, 28, 0.98), rgba(10, 35, 20, 0.98));
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(124, 255, 178, 0.08), 0 0 30px rgba(124, 255, 178, 0.08);
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  background: rgba(8, 20, 12, 0.88);
  color: var(--ink);
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 127, 155, 0.42);
  background: linear-gradient(180deg, rgba(68, 18, 30, 0.98), rgba(38, 10, 18, 0.98));
  color: #ffd7df;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.danger-button:hover {
  transform: translateY(-1px);
}

.topnav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.toplink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 2px;
  font-weight: 600;
  border: 0;
  background: transparent;
}

.top-login-button {
  color: var(--ink-strong);
}

.account-menu {
  position: relative;
}

.account-menu summary {
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 18, 11, 0.96);
  cursor: pointer;
}

.account-avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at center, rgba(124, 255, 178, 0.22), rgba(124, 255, 178, 0.06));
  color: var(--accent-strong);
  font-weight: 700;
  flex: 0 0 auto;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-copy {
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.account-caret {
  color: var(--muted);
  font-size: 0.9rem;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 18, 11, 0.98);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.account-dropdown a,
.account-dropdown button {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: rgba(124, 255, 178, 0.08);
}

.account-dropdown form {
  margin: 0;
}

main {
  padding: 28px 0;
}

.terminal-hero {
  min-height: min(70vh, 720px);
  padding: 36px;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  overflow: hidden;
  position: relative;
}

.terminal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(124, 255, 178, 0.04), transparent 28%, transparent 72%, rgba(124, 255, 178, 0.03));
}

.terminal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.terminal-kicker,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.terminal-hero h1,
.dashboard-header h1,
.split-card h1,
.error-card h1,
.login-card h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  color: var(--ink-strong);
  text-shadow: 0 0 22px rgba(124, 255, 178, 0.12);
}

.terminal-copyline {
  max-width: 56ch;
  font-size: 1.02rem;
}

.hero-actions,
.flash-stack,
.feature-grid,
.metric-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.globe-panel {
  position: relative;
  min-height: 360px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(124, 255, 178, 0.12), rgba(124, 255, 178, 0.02) 36%, transparent 60%),
    linear-gradient(180deg, rgba(7, 18, 11, 0.84), rgba(4, 10, 6, 0.98));
  overflow: hidden;
}

.globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.globe-overlay {
  position: absolute;
  inset: auto 16px 16px auto;
  display: flex;
  gap: 12px;
  z-index: 2;
}

.globe-stat {
  min-width: 92px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(4, 10, 6, 0.74);
  display: grid;
  gap: 4px;
}

.globe-stat span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.globe-stat strong {
  color: var(--ink-strong);
  font-size: 1.35rem;
}

.kpi-grid,
.chart-grid,
.results-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.kpi-card {
  padding: 22px;
  border-radius: 22px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card strong {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  text-shadow: 0 0 16px rgba(124, 255, 178, 0.14);
}

.chart-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.chart-card {
  padding: 20px;
  border-radius: 22px;
}

.chart-head,
.dashboard-header,
.section-header,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.chart-head strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
}

.chart-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.chart-svg {
  width: 100%;
  height: 220px;
  margin-top: 12px;
  border-radius: 14px;
  background:
    linear-gradient(rgba(124, 255, 178, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 255, 178, 0.04) 1px, transparent 1px);
  background-size: 100% 44px, 44px 100%;
}

.chart-scale {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 8px;
  margin-top: 10px;
  font-size: 0.72rem;
  color: rgba(123, 207, 147, 0.66);
}

.compact-chart-grid {
  margin-bottom: 24px;
}

.compact-chart .chart-svg {
  height: 160px;
}

.dashboard-shell {
  padding: 8px 0 2px;
}

.dashboard-chip,
.panel-card,
.info-card,
.metric-card,
.feature-card,
.split-card,
.error-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.dashboard-chip {
  min-width: 150px;
}

.metric-card {
  flex: 1 1 220px;
}

.metric-card strong {
  display: block;
  font-size: 2.3rem;
}

.feature-grid {
  margin-top: 24px;
}

.feature-card,
.metric-card {
  flex: 1 1 220px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
}

.repo-layout {
  margin-top: 24px;
}

.page-main,
.page-side {
  display: grid;
  gap: 24px;
  align-content: start;
  min-width: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.stack-list form {
  margin: 0;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(4, 11, 7, 0.74);
}

.list-row span {
  font-size: 0.94rem;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.subnav-link {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(4, 11, 7, 0.82);
  border: 1px solid var(--line);
  color: var(--muted);
}

.subnav-link.is-active {
  background: rgba(124, 255, 178, 0.1);
  color: var(--accent-strong);
  border-color: var(--line-strong);
}

.form-stack {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(4, 10, 6, 0.9);
  color: var(--ink-strong);
}

.field textarea {
  resize: vertical;
}

.top-gap {
  margin-top: 18px;
}

.field-hint,
.inline-note {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.warning-note {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 199, 120, 0.28);
  background: rgba(58, 43, 9, 0.28);
  color: #ffd89a;
}

.meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.code-block {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(2, 7, 4, 0.92);
  border: 1px solid var(--line);
  color: var(--ink);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.markdown-preview {
  color: var(--ink);
  line-height: 1.7;
}

.markdown-preview > :first-child {
  margin-top: 0;
}

.markdown-preview > :last-child {
  margin-bottom: 0;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
  color: var(--ink-strong);
  line-height: 1.2;
  margin: 1.2em 0 0.5em;
}

.markdown-preview p,
.markdown-preview ul,
.markdown-preview ol,
.markdown-preview blockquote,
.markdown-preview table,
.markdown-preview pre {
  margin: 0 0 1rem;
}

.markdown-preview a {
  color: var(--accent-strong);
  text-decoration: underline;
}

.markdown-preview img {
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.markdown-preview pre,
.markdown-preview code {
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.markdown-preview pre {
  padding: 16px;
  border-radius: 16px;
  background: rgba(2, 7, 4, 0.92);
  border: 1px solid var(--line);
  overflow: auto;
}

.markdown-preview table {
  width: 100%;
  border-collapse: collapse;
}

.markdown-preview th,
.markdown-preview td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.markdown-preview blockquote {
  margin-left: 0;
  padding-left: 16px;
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
}

.image-preview {
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(2, 7, 4, 0.92);
}

.image-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.copy-token-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(4, 11, 7, 0.82);
}

.copy-token-value {
  font-family: "IBM Plex Mono", "Consolas", monospace;
  color: var(--ink-strong);
  word-break: break-all;
}

.inline-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.compact-button {
  min-height: 38px;
  height: 38px;
  padding: 0 14px;
}

.feature-card h2,
.split-card h2,
.section-head h2,
.chart-head strong,
.dashboard-chip strong {
  overflow-wrap: anywhere;
}

.search-results {
  margin-top: 24px;
}

.login-shell {
  min-height: min(78vh, 840px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(100%, 460px);
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 18, 11, 0.97), rgba(4, 10, 6, 0.97));
  box-shadow: var(--shadow);
  text-align: center;
}

.login-copy {
  margin: 12px 0 24px;
  color: var(--muted);
}

.primary-button-wide,
.secondary-button-wide {
  width: 100%;
  justify-content: center;
}

.login-secondary {
  margin-top: 12px;
}

.flash-stack {
  margin: 18px 0 0;
}

.flash {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(8, 20, 12, 0.92);
  border: 1px solid var(--line);
}

.flash-success {
  border-color: rgba(124, 255, 178, 0.28);
  color: var(--accent-strong);
}

.flash-error {
  border-color: rgba(255, 127, 155, 0.3);
  color: #ff9fb3;
}

.flash-neutral {
  border-color: var(--line);
}

.error-shell {
  display: grid;
  place-items: center;
  min-height: 52vh;
}

.error-card {
  width: min(100%, 620px);
  text-align: center;
}

.error-code {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-weight: 700;
}

.footer {
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(123, 207, 147, 0.8);
}

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

  .top-search {
    order: 3;
    width: 100%;
  }

  .topnav {
    justify-content: flex-start;
  }

  .terminal-hero,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .globe-panel {
    min-height: 340px;
  }
}

@media (max-width: 860px) {
  .dashboard-header,
  .chart-head,
  .section-header,
  .section-head,
  .list-row,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-scale {
    grid-template-columns: repeat(7, 1fr);
  }

  .account-dropdown {
    left: 0;
    right: auto;
    width: min(280px, calc(100vw - 52px));
    min-width: 0;
  }

  .page-grid {
    gap: 18px;
  }

  .feature-grid,
  .metric-grid {
    flex-direction: column;
  }

  .feature-card,
  .metric-card {
    flex-basis: auto;
  }

  .globe-overlay {
    inset: auto 12px 12px 12px;
    justify-content: space-between;
  }

  .globe-stat {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(calc(100% - 18px), var(--max-width));
    padding-top: 10px;
  }

  .topbar,
  .footer,
  .terminal-hero,
  .login-card,
  .split-card,
  .metric-card,
  .feature-card,
  .panel-card,
  .info-card,
  .error-card,
  .kpi-card,
  .chart-card {
    padding: 18px;
  }

  main {
    padding: 18px 0;
  }

  .topbar {
    gap: 12px;
    padding: 14px;
    top: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .brand-copy strong {
    font-size: 0.98rem;
  }

  .brand-copy small {
    font-size: 0.8rem;
  }

  .top-search {
    width: 100%;
    gap: 8px;
  }

  .top-search input {
    height: 44px;
    padding: 0 14px;
  }

  .top-search button,
  .primary-button,
  .secondary-button,
  .ghost-button {
    height: 44px;
    padding: 0 16px;
  }

  .topnav {
    width: 100%;
  }

  .top-login-button,
  .account-menu,
  .account-pill {
    width: 100%;
  }

  .account-pill {
    justify-content: flex-start;
  }

  .terminal-hero h1,
  .dashboard-header h1,
  .split-card h1,
  .error-card h1,
  .login-card h1 {
    font-size: clamp(2rem, 10vw, 3.3rem);
  }

  .terminal-hero {
    min-height: auto;
    gap: 20px;
  }

  .terminal-copy {
    gap: 14px;
  }

  .terminal-copyline {
    font-size: 0.96rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .globe-panel {
    min-height: 280px;
  }

  .globe-overlay {
    position: static;
    padding: 12px;
    background: linear-gradient(180deg, transparent, rgba(4, 10, 6, 0.7));
  }

  .kpi-grid,
  .chart-grid,
  .results-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .kpi-card {
    min-height: 126px;
  }

  .chart-svg {
    height: 180px;
  }

  .compact-chart .chart-svg {
    height: 140px;
  }

  .chart-scale {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    font-size: 0.68rem;
  }

  .account-copy {
    max-width: 100px;
  }

  .dashboard-chip,
  .metric-card,
  .feature-card,
  .split-card,
  .chart-card,
  .kpi-card {
    width: 100%;
  }

  .list-row,
  .meta-row,
  .section-head,
  .section-header,
  .dashboard-header {
    gap: 10px;
  }

  .stack-list form .primary-button,
  .stack-list form .secondary-button,
  .page-side .primary-button,
  .page-side .secondary-button,
  .page-main .primary-button,
  .page-main .secondary-button {
    width: 100%;
  }

  .subnav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .subnav::-webkit-scrollbar {
    display: none;
  }

  .subnav-link {
    flex: 0 0 auto;
  }

  .list-row {
    align-items: flex-start;
  }

  .copy-token-card {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .list-row > div,
  .list-row > a,
  .list-row > span {
    min-width: 0;
  }

  .list-row strong,
  .list-row span {
    max-width: 100%;
  }

  .account-dropdown {
    width: 100%;
  }

  .footer {
    gap: 6px;
  }
}
