@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Noto+Sans+SC:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #030711;
  --bg-strong: #08111f;
  --bg-soft: #0d1827;
  --panel: rgba(10, 18, 31, 0.9);
  --panel-strong: rgba(9, 16, 28, 0.98);
  --panel-alt: rgba(13, 24, 40, 0.94);
  --line: rgba(133, 255, 247, 0.12);
  --line-strong: rgba(133, 255, 247, 0.24);
  --text: #eef7ff;
  --muted: #8ba0bb;
  --cyan: #7af7ff;
  --cyan-strong: #26d9ff;
  --lime: #9eff6b;
  --orange: #ffb84d;
  --pink: #ff5df1;
  --danger: #ff7b8f;
  --success: #87ff9a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
  --glow-cyan: 0 0 0 1px rgba(122, 247, 255, 0.15), 0 0 32px rgba(38, 217, 255, 0.18);
  --glow-lime: 0 0 0 1px rgba(158, 255, 107, 0.12), 0 0 32px rgba(158, 255, 107, 0.16);
  --glow-orange: 0 0 0 1px rgba(255, 184, 77, 0.14), 0 0 32px rgba(255, 184, 77, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(38, 217, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(255, 93, 241, 0.12), transparent 24rem),
    radial-gradient(circle at 76% 90%, rgba(158, 255, 107, 0.1), transparent 26rem),
    linear-gradient(180deg, #02050c 0%, #050b15 36%, #060d18 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 247, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 247, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
  opacity: 0.24;
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.ambient-cyan {
  top: -8rem;
  left: -10rem;
  background: rgba(38, 217, 255, 0.9);
}

.ambient-lime {
  right: -8rem;
  top: 22%;
  background: rgba(158, 255, 107, 0.8);
}

.ambient-orange {
  bottom: -10rem;
  left: 40%;
  background: rgba(255, 184, 77, 0.75);
}

.flash {
  border-radius: 1rem;
  border: 1px solid transparent;
  padding: 0.95rem 1rem;
  backdrop-filter: blur(18px);
}

.toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  min-width: 18rem;
  max-width: min(28rem, calc(100vw - 2rem));
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

.flash.error {
  background: rgba(255, 123, 143, 0.12);
  color: #ffd3da;
  border-color: rgba(255, 123, 143, 0.24);
}

.flash.success {
  background: rgba(122, 247, 255, 0.12);
  color: #dffcff;
  border-color: rgba(122, 247, 255, 0.24);
}

.hidden {
  display: none !important;
}

.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(12, 19, 32, 0.98), rgba(7, 12, 22, 0.98)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(122, 247, 255, 0.04), transparent 30%, transparent 68%, rgba(158, 255, 107, 0.035));
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.tiny {
  font-size: 0.82rem;
}

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

.brand h1,
.sidebar-brand h1 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.brand p,
.sidebar-brand p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  color: #04101f;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background:
    linear-gradient(135deg, rgba(122, 247, 255, 1), rgba(158, 255, 107, 0.95));
  box-shadow: 0 0 24px rgba(122, 247, 255, 0.3);
}

.button {
  border: none;
  border-radius: 999px;
  padding: 0.82rem 1.15rem;
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 120ms ease, border-color 120ms ease;
}

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

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button.primary {
  background: linear-gradient(135deg, rgba(122, 247, 255, 0.95), rgba(0, 170, 255, 0.95));
  color: #04101a;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(38, 217, 255, 0.28);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.56rem 0.86rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.sync-pill::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  flex: 0 0 auto;
}

.key-pill {
  font-family: "JetBrains Mono", monospace;
}

.sync-pill.healthy {
  color: var(--success);
  background: rgba(135, 255, 154, 0.1);
  border-color: rgba(135, 255, 154, 0.18);
}

.sync-pill.pending {
  color: var(--orange);
  background: rgba(255, 184, 77, 0.12);
  border-color: rgba(255, 184, 77, 0.18);
}

.sync-pill.error {
  color: var(--danger);
  background: rgba(255, 123, 143, 0.12);
  border-color: rgba(255, 123, 143, 0.2);
}

input,
select {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(122, 247, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.82rem 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(122, 247, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(38, 217, 255, 0.1);
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  color: var(--muted);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.content {
  width: min(1320px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.login-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 32rem);
  gap: 1.5rem;
  padding: 2rem;
  align-items: center;
}

.login-showcase,
.login-card {
  position: relative;
  z-index: 1;
}

.login-showcase {
  display: grid;
  gap: 1.5rem;
}

.login-showcase-panel {
  padding: 2rem;
  border-radius: 1.75rem;
  background:
    linear-gradient(140deg, rgba(8, 20, 35, 0.9), rgba(5, 10, 18, 0.84));
  border: 1px solid rgba(122, 247, 255, 0.16);
  box-shadow: var(--glow-cyan);
}

.login-showcase-panel h1 {
  margin: 0.65rem 0 0.9rem;
  max-width: 10ch;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.login-showcase-panel p {
  max-width: 42rem;
  font-size: 1rem;
}

.login-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.glass-tile {
  padding: 1.15rem 1.2rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-soft);
}

.glass-tile span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.glass-tile strong {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
}

.login-card {
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(12, 20, 34, 0.98), rgba(6, 10, 18, 0.98));
  border: 1px solid rgba(122, 247, 255, 0.2);
  box-shadow: var(--glow-cyan), var(--shadow);
}

.login-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.login-card-head h2 {
  margin: 0.1rem 0 0.4rem;
  font-size: 1.4rem;
}

.login-card-head p {
  margin: 0;
  color: var(--muted);
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 18.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.2rem;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1.8rem;
  background:
    linear-gradient(180deg, rgba(7, 14, 24, 0.98), rgba(5, 10, 18, 0.98));
  border: 1px solid rgba(122, 247, 255, 0.12);
  box-shadow: var(--shadow);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(122, 247, 255, 0.06), transparent 30%),
    radial-gradient(circle at top left, rgba(122, 247, 255, 0.1), transparent 32%);
  pointer-events: none;
}

.sidebar-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-intro {
  padding: 1.15rem;
  background:
    linear-gradient(160deg, rgba(12, 30, 52, 0.86), rgba(9, 15, 24, 0.96));
  box-shadow: var(--glow-cyan);
}

.sidebar-intro h2 {
  margin: 0.7rem 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.sidebar-nav {
  display: grid;
  gap: 0.8rem;
}

.tab {
  position: relative;
  text-align: left;
  width: 100%;
  padding: 1rem 1.05rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
  overflow: hidden;
}

.tab::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(122, 247, 255, 0), rgba(122, 247, 255, 0.95), rgba(158, 255, 107, 0));
  opacity: 0;
  transition: opacity 140ms ease;
}

.tab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(122, 247, 255, 0.06), transparent 44%);
  opacity: 0;
  transition: opacity 140ms ease;
}

.tab .tab-label {
  display: block;
  color: var(--muted);
  margin-bottom: 0.38rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tab strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.tab small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.tab.active {
  background:
    linear-gradient(135deg, rgba(24, 57, 91, 0.88), rgba(9, 16, 26, 0.96));
  border-color: rgba(122, 247, 255, 0.22);
  box-shadow: var(--glow-cyan);
}

.tab.active::before,
.tab.active::after {
  opacity: 1;
}

.sidebar-note {
  margin-top: auto;
  padding: 1rem 1.05rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-note span {
  display: block;
  color: var(--orange);
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.sidebar-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.88rem;
}

.workspace {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  border-radius: 1.65rem;
  background:
    linear-gradient(180deg, rgba(9, 17, 29, 0.9), rgba(6, 10, 18, 0.88));
  border: 1px solid rgba(122, 247, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(122, 247, 255, 0.05), transparent 35%, transparent 65%, rgba(255, 184, 77, 0.05));
  pointer-events: none;
}

.topbar-copy h2 {
  margin: 0.55rem 0 0.35rem;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.topbar-copy p:last-child {
  margin: 0;
}

.user-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.workspace-content {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.8fr);
  gap: 1rem;
  padding: 1.35rem;
  background:
    linear-gradient(135deg, rgba(10, 27, 44, 0.98), rgba(6, 11, 20, 0.98));
  border-color: rgba(122, 247, 255, 0.16);
  box-shadow: var(--glow-cyan), var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 247, 255, 0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-copy h3 {
  margin: 0.55rem 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
  max-width: 16ch;
}

.hero-copy p {
  max-width: 62ch;
}

.hero-aside {
  display: grid;
  gap: 0.9rem;
}

.hero-stat {
  padding: 1rem 1.05rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-label {
  display: block;
  color: var(--muted);
  margin-bottom: 0.42rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  line-height: 1.5;
  word-break: break-word;
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
}

.history-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.split-grid {
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
}

.metric-card {
  min-height: 8.5rem;
  padding: 1.15rem;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  opacity: 0.95;
}

.metric-card.neon-cyan::before {
  background: linear-gradient(180deg, var(--cyan), var(--cyan-strong));
}

.metric-card.neon-lime::before {
  background: linear-gradient(180deg, var(--lime), #4ddc88);
}

.metric-card.neon-orange::before {
  background: linear-gradient(180deg, var(--orange), var(--pink));
}

.metric-card::after {
  content: "";
  position: absolute;
  top: -2.2rem;
  right: -1.8rem;
  width: 7.4rem;
  height: 7.4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.11), transparent 72%);
  opacity: 0.4;
  pointer-events: none;
}

.metric-card .label {
  display: block;
  color: var(--muted);
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
}

.metric-card strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.82rem;
  line-height: 1.12;
  text-shadow: 0 0 18px rgba(122, 247, 255, 0.08);
}

.section-card {
  padding: 1.2rem;
}

.card-header {
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header.between {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.card-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card-header p {
  margin: 0.35rem 0 0;
}

.card-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
}

.chart-frame {
  position: relative;
  min-height: 220px;
  margin-bottom: 1rem;
}

.line-chart {
  min-height: 220px;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(122, 247, 255, 0.05), rgba(122, 247, 255, 0)),
    radial-gradient(circle at top, rgba(122, 247, 255, 0.06), transparent 62%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.line-chart svg {
  display: block;
  width: 100%;
  height: 220px;
}

.line-chart-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.line-chart-axis text {
  fill: var(--muted);
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
}

.line-chart-area {
  fill: url(#usageAreaGradient);
}

.line-chart-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(38, 217, 255, 0.32));
}

.line-chart-point {
  fill: #09101b;
  stroke: var(--orange);
  stroke-width: 2;
}

.line-chart-hit {
  fill: transparent;
  cursor: pointer;
}

.chart-tooltip {
  position: absolute;
  min-width: 200px;
  max-width: 260px;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: rgba(5, 10, 17, 0.96);
  border: 1px solid rgba(122, 247, 255, 0.14);
  box-shadow: var(--shadow-soft);
  pointer-events: none;
  z-index: 5;
}

.chart-tooltip-title {
  margin-bottom: 0.55rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--text);
}

.chart-tooltip-grid {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.model-bars {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.model-bar-row {
  display: grid;
  gap: 0.45rem;
}

.model-bar-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.model-bar-track {
  width: 100%;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.model-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--orange));
}

.chart-empty {
  min-height: 7rem;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.015);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.82rem 0.5rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  font-weight: 500;
  background: rgba(8, 14, 23, 0.95);
  backdrop-filter: blur(10px);
}

tbody tr:hover {
  background: rgba(122, 247, 255, 0.04);
}

tbody tr.history-row-failed {
  background: rgba(255, 123, 143, 0.05);
}

.empty {
  color: var(--muted);
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.8rem;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-badge.success {
  color: var(--success);
  background: rgba(135, 255, 154, 0.1);
}

.status-badge.failed {
  color: var(--danger);
  background: rgba(255, 123, 143, 0.12);
}

.filters-grid {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  align-items: end;
}

.filter-actions,
.pager,
.quick-ranges,
.filter-pills {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.filter-pill,
.route-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
}

.quick-range-btn.active {
  border-color: rgba(122, 247, 255, 0.18);
  background: rgba(38, 217, 255, 0.14);
  color: var(--text);
  box-shadow: 0 0 16px rgba(38, 217, 255, 0.12);
}

.result-meta {
  padding: 0 0.15rem;
}

.history-model-cell {
  display: grid;
  gap: 0.22rem;
}

.history-model-main {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.history-model-meta {
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 24rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

  .login-highlight-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .workspace {
    order: 1;
  }
}

@media (max-width: 920px) {
  .topbar,
  .card-header.between,
  .hero-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .topbar {
    align-items: stretch;
  }

  .user-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .toast {
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .login-stage,
  .app-shell {
    padding: 1rem;
  }

  .topbar,
  .sidebar,
  .section-card,
  .hero-card,
  .login-card,
  .login-showcase-panel {
    border-radius: 1.25rem;
  }

  .metrics-grid,
  .history-summary-grid,
  .split-grid,
  .filters-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
