:root {
  --ink: #edf2ff;
  --muted: #98a4c4;
  --muted-strong: #c3cbe0;
  --surface: rgba(18, 27, 54, 0.78);
  --line: rgba(169, 191, 255, 0.14);
  --accent: #7c8cff;
  --accent-bright: #aab5ff;
  --accent-mint: #62e5c8;
  --shadow: 0 24px 64px rgba(2, 6, 23, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  background: #0b1020;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 85% -8%, rgba(87, 103, 255, 0.22), transparent 31rem),
    radial-gradient(circle at 34% 105%, rgba(60, 200, 177, 0.11), transparent 30rem),
    #0b1020;
}

a {
  color: inherit;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex: 0 0 260px;
  width: 260px;
  min-height: 100vh;
  padding: 28px 18px 20px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(9, 14, 30, 0.72);
  backdrop-filter: blur(22px);
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand {
  padding: 0 10px 29px;
}

.brand-logo {
  width: 170px;
  height: auto;
  display: block;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(197, 207, 255, 0.34);
  border-radius: 12px;
  color: #fff;
  font-weight: 850;
  letter-spacing: -0.07em;
  background: linear-gradient(145deg, #7787ff, #4653ca);
  box-shadow: 0 8px 22px rgba(81, 97, 238, 0.34);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: -0.035em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.115em;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-item {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-item:hover {
  color: var(--ink);
  background: rgba(123, 140, 255, 0.08);
  transform: translateX(2px);
}

.nav-item.active {
  color: #fff;
  border-color: rgba(145, 160, 255, 0.18);
  background: linear-gradient(100deg, rgba(114, 133, 255, 0.22), rgba(114, 133, 255, 0.06));
}

.nav-icon {
  width: 17px;
  color: var(--accent-bright);
  font-size: 18px;
  text-align: center;
  line-height: 1;
}

.sidebar-bottom {
  display: grid;
  gap: 4px;
  margin-top: auto;
}

.sidebar-note {
  margin: 18px 10px 0;
  color: #697596;
  font-size: 11px;
  line-height: 1.55;
}

.sidebar-beta-code {
  display: grid;
  gap: 4px;
  margin: 10px 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(145, 160, 255, 0.18);
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(114, 133, 255, 0.12), rgba(114, 133, 255, 0.03));
}

.sidebar-beta-code-label {
  color: var(--accent-mint);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.13em;
}

.sidebar-beta-code-value {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.main {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.page-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 76px 48px 42px;
}

.dashboard-page .page-content {
  padding-top: 28px;
}

.mobile-header {
  display: none;
}

.hero {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 4px 34px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--accent-mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  width: 22px;
  height: 1px;
  background: currentColor;
}

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

h1 {
  margin: 13px 0 17px;
  font-size: clamp(38px, 4.3vw, 61px);
  font-weight: 750;
  letter-spacing: -0.067em;
  line-height: 0.99;
}

h1 em {
  color: var(--accent-bright);
  font-style: normal;
}

.hero-description {
  max-width: 550px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.66;
}

.hero-orb {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(172, 188, 255, 0.22);
  border-radius: 50%;
  color: #c6ceff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.09em;
  background: radial-gradient(circle at 36% 28%, #5364d5, #242a62 53%, #171d49);
  box-shadow: inset 0 0 35px rgba(170, 185, 255, 0.2), 0 25px 50px rgba(34, 41, 113, 0.32);
}

.orb-ring {
  position: absolute;
  border: 1px solid rgba(205, 215, 255, 0.22);
  border-radius: 50%;
}

.orb-ring-one {
  width: 105px;
  height: 105px;
}

.orb-ring-two {
  width: 175px;
  height: 175px;
  border-style: dashed;
  animation: spin 22s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.selection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.47fr) minmax(270px, 0.8fr);
  gap: 18px;
}

.selection-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.selection-panel {
  padding: 29px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2 {
  margin: 8px 0 0;
  font-size: 22px;
  letter-spacing: -0.045em;
}

.step-pill {
  padding: 7px 9px;
  border: 1px solid rgba(152, 169, 255, 0.2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(105, 123, 246, 0.08);
}

.selection-text {
  margin: 10px 0 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.selection-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.character-field {
  grid-column: 1 / -1;
}

label {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.optional {
  color: #6f7b99;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

select {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  padding: 0 39px 0 13px;
  appearance: none;
  border: 1px solid rgba(167, 184, 244, 0.17);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  background: #0d1530 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a4c4' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") calc(100% - 13px) center / 16px no-repeat;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

select:hover:not(:disabled) {
  border-color: rgba(173, 189, 255, 0.38);
}

select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(112, 130, 255, 0.14);
}

select:disabled {
  cursor: not-allowed;
  color: #65708d;
  background-color: #0b1128;
}

option {
  color: #edf2ff;
  background: #111a39;
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 0 13px;
  border: 1px solid rgba(167, 184, 244, 0.17);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-transform: none;
  background: #0d1530;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input {
  height: 48px;
}

textarea {
  min-height: 128px;
  padding-top: 12px;
  resize: vertical;
}

input:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: rgba(173, 189, 255, 0.38);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(112, 130, 255, 0.14);
}

input:disabled,
textarea:disabled {
  cursor: not-allowed;
  color: #65708d;
  background-color: #0b1128;
}

input::placeholder,
textarea::placeholder {
  color: #7080a3;
}

.form-message {
  min-height: 18px;
  margin: 13px 0 0;
  color: #ffb4b4;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.form-message.is-visible {
  opacity: 1;
}

.confirm-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 27px;
  width: 100%;
  margin-top: 7px;
  padding: 0 19px;
  border: 1px solid rgba(224, 230, 255, 0.2);
  border-radius: 11px;
  cursor: pointer;
  color: #10152d;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(110deg, #a2b0ff, #6e80ef);
  box-shadow: 0 12px 27px rgba(68, 84, 209, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.confirm-button:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 17px 31px rgba(68, 84, 209, 0.36);
}

.submit-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(224, 230, 255, 0.2);
  border-radius: 11px;
  cursor: pointer;
  color: #10152d;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(110deg, #a2b0ff, #6e80ef);
  box-shadow: 0 12px 27px rgba(68, 84, 209, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.submit-button:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 17px 31px rgba(68, 84, 209, 0.36);
}

.error-text {
  min-height: 18px;
  margin-top: 10px;
  color: #ffb4b4;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.beta-access {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-top: 12px;
}

.beta-banner {
  width: 100%;
  max-width: 700px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 21, 48, 0.65);
}

.login-banner-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
}

.login-submit-button {
  margin-top: 16px;
}

#login-error {
  margin-top: 12px;
}

.login-page .panel-heading h2 {
  margin-bottom: 10px;
}

#errorMessage {
  min-height: 18px;
  margin: 0;
  color: #ffb4b4;
  font-size: 12px;
}

.filter-row {
  margin: 16px 0 20px;
}

.filter-row label {
  display: block;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: none;
}

.filter-row select {
  max-width: 300px;
}

.filter-inline {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.filter-inline label {
  flex: 1;
}

.trends-nav-button {
  width: auto;
  min-width: 154px;
  margin-top: 0;
  padding: 0 18px;
  white-space: nowrap;
}

.history-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 16px 0 22px;
}

.history-filters .filter-row {
  margin: 0;
}

.history-filters .filter-row select {
  max-width: none;
}

.history-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 18, 41, 0.62);
}

.history-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  color: #e8ecff;
  font-size: 13px;
}

.history-table th,
.history-table td {
  padding: 12px 13px;
  border-bottom: 1px solid rgba(162, 181, 244, 0.14);
  text-align: left;
}

.history-table th {
  color: #a9b4d5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.history-table tbody tr:hover {
  background: rgba(109, 129, 246, 0.08);
}

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

.sortable {
  cursor: pointer;
}

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

.dashboard-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 4px 0 16px;
}

.dashboard-meta-card {
  padding: 14px 15px;
}

.dashboard-page .dashboard-meta-card,
.dashboard-page .kpi-grid .kpi-card {
  text-align: center;
}

.dashboard-meta-value {
  margin-top: 8px;
  color: #eaf0ff;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: break-word;
}

.kpi-card {
  padding: 16px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 21, 48, 0.76);
}

.dashboard-page .kpi-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dashboard-page .kpi-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.dashboard-page .kpi-card:hover {
  transform: translateY(-3px);
}

.dashboard-page .kpi-card:hover::after {
  opacity: 1;
}

.kpi-label {
  color: #a9b4d5;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kpi-value {
  margin-top: 8px;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.kpi-delta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.kpi-card.blue {
  border-color: rgba(130, 178, 255, 0.35);
}

.dashboard-page .kpi-card.blue {
  box-shadow: inset 0 0 0 1px rgba(130, 178, 255, 0.22), 0 8px 24px rgba(76, 125, 255, 0.16);
}

.dashboard-page .kpi-card.blue::after {
  box-shadow: inset 0 0 0 1px rgba(130, 178, 255, 0.55), inset 0 0 24px rgba(130, 178, 255, 0.2), 0 0 24px rgba(96, 165, 250, 0.28);
}

.kpi-card.orange {
  border-color: rgba(255, 176, 113, 0.35);
}

.dashboard-page .kpi-card.orange {
  box-shadow: inset 0 0 0 1px rgba(255, 176, 113, 0.22), 0 8px 24px rgba(245, 158, 11, 0.14);
}

.dashboard-page .kpi-card.orange::after {
  box-shadow: inset 0 0 0 1px rgba(255, 176, 113, 0.55), inset 0 0 24px rgba(255, 176, 113, 0.2), 0 0 24px rgba(245, 158, 11, 0.26);
}

.kpi-card.purple {
  border-color: rgba(187, 154, 255, 0.35);
}

.dashboard-page .kpi-card.purple {
  box-shadow: inset 0 0 0 1px rgba(187, 154, 255, 0.22), 0 8px 24px rgba(167, 139, 250, 0.15);
}

.dashboard-page .kpi-card.purple::after {
  box-shadow: inset 0 0 0 1px rgba(187, 154, 255, 0.55), inset 0 0 24px rgba(187, 154, 255, 0.2), 0 0 24px rgba(167, 139, 250, 0.28);
}

.kpi-card.green {
  border-color: rgba(118, 228, 187, 0.35);
}

.dashboard-page .kpi-card.green {
  box-shadow: inset 0 0 0 1px rgba(118, 228, 187, 0.22), 0 8px 24px rgba(34, 197, 94, 0.14);
}

.dashboard-page .kpi-card.green::after {
  box-shadow: inset 0 0 0 1px rgba(118, 228, 187, 0.55), inset 0 0 24px rgba(118, 228, 187, 0.2), 0 0 24px rgba(34, 197, 94, 0.24);
}

.kpi-card.red {
  border-color: rgba(255, 132, 132, 0.35);
}

.dashboard-page .kpi-card.red {
  box-shadow: inset 0 0 0 1px rgba(255, 132, 132, 0.22), 0 8px 24px rgba(239, 68, 68, 0.15);
}

.dashboard-page .kpi-card.red::after {
  box-shadow: inset 0 0 0 1px rgba(255, 132, 132, 0.55), inset 0 0 24px rgba(255, 132, 132, 0.2), 0 0 24px rgba(239, 68, 68, 0.26);
}

.kpi-card.teal {
  border-color: rgba(115, 223, 229, 0.35);
}

.dashboard-page .kpi-card.teal {
  box-shadow: inset 0 0 0 1px rgba(115, 223, 229, 0.22), 0 8px 24px rgba(20, 184, 166, 0.14);
}

.dashboard-page .kpi-card.teal::after {
  box-shadow: inset 0 0 0 1px rgba(115, 223, 229, 0.55), inset 0 0 24px rgba(115, 223, 229, 0.2), 0 0 24px rgba(20, 184, 166, 0.26);
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-page .kpi-card {
    transition: none;
  }

  .dashboard-page .kpi-card:hover {
    transform: none;
  }
}

.chart-section {
  margin-top: 16px;
}

.chart-box {
  height: 340px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 21, 48, 0.76);
}

.chart-box canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.individual-metric-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  text-align:center;
}

.individual-metric-blue {
  color: #95c4ff;
}

.individual-metric-orange {
  color: #ffcd90;
}

.individual-metric-purple {
  color: #d2b7ff;
}

.individual-metric-green {
  color: #9df2ce;
}

.individual-metric-red {
  color: #ffb8b8;
}

.individual-metric-teal {
  color: #a5f0f4;
}

.individual-page .page-content > .selection-panel + .selection-panel {
  margin-top: 24px;
}

.individual-page .page-footer {
  margin-top: 26px;
}

.trends-page .trends-section + .trends-section {
  margin-top: 24px;
}

.trends-page .page-content > .selection-panel + .selection-panel {
  margin-top: 24px;
}

.trends-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.trends-month-card {
  padding: 16px;
}

.trends-month-name {
  margin-top: 7px;
  color: #eaf0ff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.trends-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.trends-metric-chip {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 16, 36, 0.55);
}

.trends-metric-label {
  display: block;
  color: #a9b4d5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trends-metric-value {
  display: block;
  margin-top: 5px;
  color: #e8ecff;
  font-size: 16px;
  font-weight: 750;
}

.trends-empty-card {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 650;
}

.delta-positive {
  color: #5be2a8;
  font-weight: 700;
}

.delta-negative {
  color: #ff8f8f;
  font-weight: 700;
}

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

.confirm-button:focus-visible,
.menu-button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent-mint);
  outline-offset: 3px;
}


.page-footer {
  width: min(1120px, 100%);
  margin: auto auto 0;
  padding: 20px 52px 24px;
  color: #65718f;
  font-size: 11px;
}

.page-footer span {
  padding: 0 7px;
  color: #8b96b5;
}

@media (max-width: 840px) {
  .sidebar {
    position: fixed;
    z-index: 20;
    width: 272px;
    transform: translateX(-103%);
    transition: transform 0.22s ease;
    box-shadow: 22px 0 40px rgba(0, 0, 0, 0.3);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    z-index: 10;
    inset: 0;
    background: rgba(3, 7, 18, 0.64);
    backdrop-filter: blur(2px);
  }

  .mobile-header {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 16, 32, 0.74);
    backdrop-filter: blur(14px);
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
    border: 0;
    cursor: pointer;
    color: var(--muted-strong);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
  }

  .menu-button span:first-child {
    color: var(--accent-bright);
    font-size: 18px;
  }

  .mobile-brand {
    color: #eef1ff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.04em;
  }

  .page-content {
    padding: 57px 28px 36px;
  }

  .dashboard-page .page-content {
    padding-top: 22px;
  }

  .page-footer {
    padding: 20px 28px 24px;
  }

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

  .dashboard-meta-value {
    font-size: 18px;
  }

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

@media (max-width: 640px) {
  .page-content {
    padding: 43px 18px 25px;
  }

  .dashboard-page .page-content {
    padding-top: 16px;
  }

  .hero {
    min-height: auto;
    padding: 0 3px 35px;
  }

  h1 {
    font-size: clamp(37px, 11vw, 52px);
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-orb {
    display: none;
  }

  .selection-layout {
    grid-template-columns: 1fr;
  }

  .selection-panel {
    border-radius: 17px;
  }

  .selection-panel {
    padding: 23px 18px;
  }

  .selection-fields {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .filter-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .trends-nav-button {
    width: 100%;
  }

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

  .character-field {
    grid-column: auto;
  }

  .page-footer {
    padding: 18px 20px 23px;
    font-size: 10px;
  }

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

  .dashboard-meta-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-meta-value {
    font-size: 17px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}