:root {
  color-scheme: dark;
  --bg: #06050b;
  --bg-elevated: #0d0c15;
  --glass-surface: rgb(20 19 32 / 66%);
  --glass-surface-strong: rgb(16 15 27 / 88%);
  --glass-border: rgb(255 255 255 / 10%);
  --glass-highlight: rgb(255 255 255 / 16%);
  --line-soft: rgb(255 255 255 / 7%);
  --text: #f7f5ff;
  --muted: #aaa6ba;
  --muted-bright: #c9c5d6;
  --accent-violet: #a68cff;
  --accent-violet-deep: #7257e8;
  --accent-cyan: #55d9ff;
  --accent: var(--accent-violet);
  --danger: #ff7895;
  --warning: #ffc873;
  --success: #67e8b8;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-float: 0 32px 100px rgb(0 0 0 / 46%);
  --shadow-card: 0 18px 55px rgb(0 0 0 / 22%);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --z-ambient: -1;
  --z-content: 1;
  --z-header: 50;
  --z-skip: 100;
  --font-sans: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-family: var(--font-sans);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 13% 5%, rgb(103 70 185 / 16%), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgb(36 143 182 / 11%), transparent 32rem),
    linear-gradient(145deg, #080610 0%, #05050a 52%, #080713 100%);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 3%) .6px, transparent .6px);
  background-size: 5px 5px;
  content: "";
  opacity: .26;
  pointer-events: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select,
a {
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid rgb(85 217 255 / 62%);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 7vw, 5.9rem);
  font-weight: 650;
  letter-spacing: -.072em;
  line-height: .94;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 620;
  letter-spacing: -.055em;
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 610;
  letter-spacing: -.018em;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: var(--z-skip);
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  border: 1px solid var(--glass-highlight);
  border-radius: 12px;
  background: #171425;
  color: var(--text);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient-layer {
  position: fixed;
  z-index: var(--z-ambient);
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  width: min(56vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .16;
}

.orb-violet {
  top: -34%;
  left: -14%;
  background: #7c4dff;
}

.orb-cyan {
  right: -22%;
  bottom: -44%;
  background: #27c2ff;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2.5%) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 32%, black, transparent 72%);
  opacity: .34;
}

.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: #b7a7ff;
  font-size: .72rem;
  font-weight: 720;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.subtitle,
.muted,
.showcase-copy,
.privacy-note {
  color: var(--muted);
  line-height: 1.65;
}

.login-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(76px, 8vw, 112px) clamp(18px, 4vw, 56px) 48px;
  isolation: isolate;
  overflow: hidden;
}

.login-topbar {
  position: absolute;
  z-index: 3;
  top: max(22px, env(safe-area-inset-top));
  right: clamp(18px, 4vw, 56px);
}

.login-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, .76fr);
  width: min(100%, 1180px);
  min-height: min(720px, calc(100dvh - 150px));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgb(25 21 42 / 60%), rgb(10 9 17 / 44%));
  box-shadow: var(--shadow-float), inset 0 1px 0 rgb(255 255 255 / 9%);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  overflow: hidden;
}

.login-layout::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgb(255 255 255 / 7%), transparent 30%, transparent 72%, rgb(85 217 255 / 4%));
  content: "";
  pointer-events: none;
}

.login-showcase {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 82px);
  overflow: hidden;
}

.login-showcase h1 {
  max-width: 720px;
  background: linear-gradient(115deg, #fff 12%, #d7d0ff 56%, #8ce7ff 112%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgb(103 232 184 / 10%), 0 0 18px rgb(103 232 184 / 45%);
}

.showcase-copy {
  max-width: 590px;
  margin-bottom: 32px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.login-features {
  display: grid;
  gap: 11px;
  width: fit-content;
  margin-bottom: 36px;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-bright);
  font-size: .88rem;
}

.feature-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 11px;
  background: rgb(255 255 255 / 4%);
  color: #b6a7ff;
}

.feature-icon .icon {
  width: 16px;
  height: 16px;
}

.glass-preview {
  position: absolute;
  right: -86px;
  bottom: -62px;
  width: 380px;
  height: 246px;
  padding: 28px;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: linear-gradient(140deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 2%));
  box-shadow: 0 24px 80px rgb(0 0 0 / 34%), inset 0 1px 0 rgb(255 255 255 / 13%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: rotate(-7deg);
}

.preview-topline {
  display: flex;
  gap: 8px;
}

.preview-pill {
  width: 108px;
  height: 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 15%);
}

.preview-pill.short {
  width: 54px;
}

.preview-chart {
  display: flex;
  height: 142px;
  align-items: end;
  gap: 10px;
  margin-top: 28px;
}

.chart-bar {
  width: 24px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(to top, rgb(118 87 232 / 72%), rgb(85 217 255 / 78%));
  box-shadow: 0 0 24px rgb(85 217 255 / 13%);
}

.bar-1 { height: 32%; }
.bar-2 { height: 56%; }
.bar-3 { height: 44%; }
.bar-4 { height: 78%; }
.bar-5 { height: 66%; }
.bar-6 { height: 92%; }

.login-card {
  position: relative;
  z-index: 2;
  align-self: center;
  margin: clamp(18px, 3vw, 34px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  background: linear-gradient(145deg, rgb(19 17 31 / 94%), rgb(9 8 16 / 90%));
  box-shadow: 0 28px 70px rgb(0 0 0 / 34%), inset 0 1px 0 rgb(255 255 255 / 9%);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  animation: card-in 440ms var(--ease-out) both;
}

.access-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 36px;
  place-items: center;
  border: 1px solid rgb(166 140 255 / 28%);
  border-radius: 17px;
  background: linear-gradient(145deg, rgb(166 140 255 / 20%), rgb(85 217 255 / 7%));
  color: #d7cdff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 14px 40px rgb(89 62 186 / 18%);
}

.access-icon .icon {
  width: 24px;
  height: 24px;
}

.login-card h2 {
  max-width: 420px;
}

.login-card .subtitle {
  margin-bottom: 0;
}

.field {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.field > span:first-child {
  color: var(--muted-bright);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .02em;
}

.input-shell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgb(4 4 9 / 54%);
  padding: 0 15px;
  color: #827a9a;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.input-shell:focus-within {
  border-color: rgb(166 140 255 / 64%);
  background: rgb(9 7 17 / 78%);
  box-shadow: 0 0 0 4px rgb(166 140 255 / 10%), 0 16px 40px rgb(0 0 0 / 20%);
}

input,
select {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid var(--glass-border);
  border-radius: 13px;
  background: rgb(7 6 12 / 64%);
  padding: 0 14px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.input-shell input {
  min-width: 0;
  min-height: 56px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  outline: 0;
}

input::placeholder {
  color: #777187;
}

select:hover,
select:focus {
  border-color: rgb(166 140 255 / 46%);
  background: rgb(13 11 22 / 80%);
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 13px;
  padding: 0 18px;
  background: linear-gradient(115deg, var(--accent-violet-deep), #8571f0 56%, #4b9dc5 140%);
  color: #fff;
  font-weight: 680;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), 0 12px 30px rgb(87 61 182 / 20%);
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover:not(:disabled) {
  border-color: rgb(255 255 255 / 18%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 18px 42px rgb(87 61 182 / 29%);
  transform: translateY(-2px);
}

.button:active:not(:disabled) {
  transform: translateY(0) scale(.985);
}

.button.secondary,
.button.ghost {
  border-color: var(--glass-border);
  background: rgb(255 255 255 / 4.5%);
  color: var(--muted-bright);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.button.secondary:hover:not(:disabled),
.button.ghost:hover:not(:disabled) {
  background: rgb(255 255 255 / 8%);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 9%);
}

.button.ghost {
  background: transparent;
}

.button.danger {
  color: #ffb5c5;
}

.login-submit {
  width: 100%;
  justify-content: space-between;
  padding-inline: 20px;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: .76rem;
}

.privacy-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: #8d83a8;
}

.privacy-note p {
  margin: 0;
}

.error-box {
  padding: 12px 14px;
  border: 1px solid rgb(255 120 149 / 30%);
  border-radius: 12px;
  background: rgb(255 120 149 / 8%);
  color: #ffc0ce;
  font-size: .86rem;
  line-height: 1.5;
}

.locale-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgb(12 10 20 / 58%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.locale-switch button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8f899e;
  font-size: .7rem;
  font-weight: 760;
  letter-spacing: .07em;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.locale-switch button[aria-pressed="true"] {
  background: rgb(255 255 255 / 9%);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
}

.workspace {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.app-header {
  position: sticky;
  z-index: var(--z-header);
  top: 0;
  border-bottom: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgb(9 8 15 / 90%), rgb(9 8 15 / 72%));
  box-shadow: 0 16px 42px rgb(0 0 0 / 18%);
  backdrop-filter: blur(26px) saturate(135%);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(300px, 1fr);
  width: min(100%, 1480px);
  min-height: 82px;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin: 0 auto;
  padding: 12px clamp(18px, 3vw, 42px);
}

.console-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.console-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, 6px);
  place-content: center;
  gap: 4px;
  border: 1px solid rgb(166 140 255 / 26%);
  border-radius: 13px;
  background: linear-gradient(145deg, rgb(166 140 255 / 17%), rgb(85 217 255 / 5%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), 0 10px 24px rgb(76 52 163 / 15%);
}

.console-mark span {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #b7a8ff;
  box-shadow: 0 0 12px rgb(166 140 255 / 40%);
}

.console-mark span:nth-child(2),
.console-mark span:nth-child(3) {
  background: #64d9fa;
}

.console-label {
  color: #eeebfa;
  font-size: .84rem;
  font-weight: 680;
  letter-spacing: -.01em;
}

.console-subtitle {
  margin-top: 3px;
  color: #817c8c;
  font-size: .67rem;
  letter-spacing: .02em;
}

.nav-list {
  display: flex;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  background: rgb(255 255 255 / 3.5%);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-button {
  position: relative;
  display: inline-flex;
  min-width: 0;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 16px;
  background: transparent;
  color: #918c9d;
  font-size: .79rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms var(--ease-out);
}

.nav-button:hover {
  background: rgb(255 255 255 / 5%);
  color: #d8d3e2;
}

.nav-button[aria-current="page"] {
  border-color: rgb(166 140 255 / 20%);
  background: linear-gradient(145deg, rgb(166 140 255 / 17%), rgb(85 217 255 / 5%));
  color: #f5f2ff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
}

.nav-button[aria-current="page"] .icon {
  color: #bcafff;
  filter: drop-shadow(0 0 8px rgb(166 140 255 / 35%));
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.signout-button {
  min-height: 44px;
  white-space: nowrap;
}

.content {
  width: min(100%, 1420px);
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) clamp(18px, 4vw, 54px) 88px;
}

.page-section {
  min-width: 0;
  animation: section-in 420ms var(--ease-out) both;
  scroll-margin-top: 110px;
}

.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.page-heading-copy {
  min-width: 0;
}

.page-heading h1 {
  margin-bottom: 14px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  background: linear-gradient(112deg, #fff 8%, #d8d1f1 64%, #9be8ff 125%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.page-heading .subtitle {
  max-width: 680px;
  margin-bottom: 0;
  font-size: .98rem;
}

.heading-glyph {
  display: grid;
  width: clamp(62px, 7vw, 88px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgb(166 140 255 / 14%), rgb(85 217 255 / 5%));
  color: #b9adf4;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%), 0 22px 60px rgb(53 37 115 / 17%);
}

.heading-glyph .icon {
  width: 28px;
  height: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 16px;
}

.card-grid > * {
  min-width: 0;
}

.overview-grid {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.48fr);
  align-items: stretch;
}

.overview-metrics-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.overview-metrics-grid > * {
  min-width: 0;
  min-height: 168px;
}

.card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgb(28 25 43 / 60%), rgb(12 11 19 / 72%));
  padding: 22px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgb(255 255 255 / 5%);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  overflow: hidden;
}

.card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgb(255 255 255 / 28%), transparent 92%);
  content: "";
  opacity: .58;
  pointer-events: none;
}

.metric-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.metric-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 14px rgb(85 217 255 / 42%);
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 630;
  letter-spacing: .025em;
}

.metric-value {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: #f7f5ff;
  font-size: clamp(1.6rem, 2.35vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  font-weight: 610;
  letter-spacing: -.055em;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.key-limit-card {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 352px;
  border-color: rgb(166 140 255 / 20%);
  background:
    radial-gradient(circle at 92% 5%, rgb(85 217 255 / 14%), transparent 17rem),
    radial-gradient(circle at 5% 100%, rgb(126 87 232 / 20%), transparent 20rem),
    linear-gradient(145deg, rgb(35 29 57 / 82%), rgb(11 10 18 / 86%));
  padding: clamp(24px, 4vw, 34px);
}

.overview-grid > .key-limit-card {
  grid-column: auto;
  grid-row: auto;
}

.key-limit-card::after {
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 220px;
  height: 220px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 24px rgb(255 255 255 / 1.5%), inset 0 0 0 48px rgb(255 255 255 / 1.5%);
  content: "";
  pointer-events: none;
}

.key-limit-card .metric-value {
  margin-top: auto;
  font-size: clamp(2.7rem, 5.1vw, 5.2rem);
  background: linear-gradient(100deg, #fff 12%, #d5ccff 56%, #79e1ff 116%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.key-limit-card-long .metric-value {
  font-size: clamp(2.35rem, 3.85vw, 4.15rem);
  letter-spacing: -.065em;
}

.key-used {
  position: relative;
  z-index: 1;
  margin: 22px 0 10px;
  color: #d7d1e4;
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}

.key-progress {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: .65rem;
  accent-color: var(--accent);
  border: 0;
  border-radius: 999px;
  overflow: hidden;
}

.key-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
}

.key-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
  box-shadow: 0 0 20px rgb(85 217 255 / 24%);
}

.key-progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
}

.key-limit-card .muted,
.sync-warning {
  position: relative;
  z-index: 1;
  margin: 13px 0 0;
  font-size: .75rem;
}

.sync-warning {
  color: var(--warning);
  line-height: 1.55;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin-top: 16px;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c6bbe9;
}

.card-heading .icon {
  width: 17px;
  height: 17px;
}

.card-heading h3 {
  margin: 0;
}

.model-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.model-list li,
.status-pill {
  max-width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(255 255 255 / 4%);
  color: #c8c3d2;
  font: .72rem/1.2 var(--font-mono);
  overflow-wrap: anywhere;
}

.endpoint-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.endpoint-row code {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgb(4 4 8 / 42%);
  padding: 13px 14px;
  color: #bcefff;
  font-family: var(--font-mono);
  font-size: .78rem;
  overflow-wrap: anywhere;
}

.model-catalog-card {
  margin-top: 16px;
  padding: clamp(22px, 3vw, 34px);
}

.catalog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.catalog-heading-copy {
  min-width: 0;
}

.catalog-subtitle {
  max-width: 680px;
  margin: 9px 0 0;
  font-size: .83rem;
}

.catalog-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgb(103 232 184 / 16%);
  border-radius: 999px;
  background: rgb(103 232 184 / 6%);
  padding: 8px 12px;
  color: #b9f4dc;
  font-size: .72rem;
  font-weight: 650;
  white-space: nowrap;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  margin-top: 24px;
}

.catalog-group {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(145deg, rgb(255 255 255 / 4.5%), rgb(255 255 255 / 1.8%));
  padding: 15px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.catalog-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.catalog-group-heading h4 {
  margin: 0;
  color: #e7e1f4;
  font-size: .8rem;
  letter-spacing: -.01em;
}

.catalog-group-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgb(166 140 255 / 18%);
  border-radius: 8px;
  background: rgb(166 140 255 / 8%);
  color: #c8bcf5;
  font: 650 .66rem/1 var(--font-mono);
}

.catalog-model-list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-model {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 8px 7px;
}

.catalog-model:nth-child(odd) {
  background: rgb(255 255 255 / 2.4%);
}

.catalog-model-name {
  display: grid;
  min-width: 0;
  gap: 2px;
  overflow-wrap: anywhere;
}

.catalog-model-id {
  color: #e2ddec;
  font: 650 .72rem/1.35 var(--font-mono);
}

.catalog-model-label {
  color: var(--text-muted);
  font-size: .68rem;
  line-height: 1.35;
}

.coefficient-pill {
  min-width: 48px;
  border: 1px solid rgb(85 217 255 / 17%);
  border-radius: 8px;
  background: rgb(85 217 255 / 6%);
  padding: 5px 7px;
  color: #aeeaff;
  font: 700 .68rem/1 var(--font-mono);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.coefficient-pill.unavailable {
  max-width: 12rem;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: right;
  color: var(--muted);
  background: rgb(255 255 255 / 5.5%);
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  align-items: end;
  gap: 13px;
  margin-bottom: 16px;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-strip {
  margin-bottom: 16px;
}

.summary-strip .metric-card {
  min-height: 140px;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .79rem;
}

th,
td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
}

th {
  background: rgb(255 255 255 / 2.5%);
  color: #8f899b;
  font-size: .64rem;
  font-weight: 650;
  letter-spacing: .085em;
  text-transform: uppercase;
}

td {
  color: #cdc8d5;
  font-variant-numeric: tabular-nums;
}

tbody tr {
  transition: background 150ms ease;
}

tbody tr:hover {
  background: rgb(166 140 255 / 4%);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.status-code {
  color: var(--success);
  font-weight: 720;
}

.status-code.error {
  color: var(--danger);
}

.empty-state,
.loading-state {
  padding: 56px 22px;
  color: var(--muted);
  text-align: center;
}

.loading-state::after {
  display: block;
  width: 32px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  content: "";
  animation: loading-pulse 1.2s ease-in-out infinite;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.guide-tabs {
  display: flex;
  max-width: 100%;
  gap: 7px;
  margin-bottom: 16px;
  padding-bottom: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.guide-tabs .button {
  flex: 0 0 auto;
}

.guide-tabs .button[aria-selected="true"] {
  border-color: rgb(166 140 255 / 28%);
  background: linear-gradient(145deg, rgb(166 140 255 / 18%), rgb(85 217 255 / 5%));
  color: var(--text);
}

.setup-card {
  padding: clamp(22px, 4vw, 36px);
}

.guide-step {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}

.guide-step:last-child {
  border-bottom: 0;
}

.guide-step .muted {
  max-width: 760px;
}

.code-block {
  position: relative;
  max-width: 100%;
  margin-top: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  background: rgb(3 3 7 / 72%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
  overflow: hidden;
}

.code-block pre {
  max-width: 100%;
  margin: 0;
  padding: 20px;
  overflow: auto;
  color: #bfeeff;
  font: .76rem/1.7 var(--font-mono);
  white-space: pre;
}

.code-actions {
  display: flex;
  justify-content: flex-end;
  padding: 9px;
  border-top: 1px solid var(--line-soft);
  background: rgb(255 255 255 / 2%);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes section-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loading-pulse {
  0%, 100% { opacity: .35; transform: scaleX(.7); }
  50% { opacity: 1; transform: scaleX(1); }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .login-layout,
  .login-card,
  .app-header,
  .card,
  .locale-switch {
    background: var(--glass-surface-strong);
  }
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .console-subtitle {
    display: none;
  }

  .login-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  }

  .login-showcase {
    padding: 48px;
  }

  .glass-preview {
    opacity: .72;
  }
}

@media (max-width: 840px) {
  .app-header {
    top: 0;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    gap: 10px;
    padding: 10px 14px 9px;
  }

  .header-actions {
    grid-column: 2;
  }

  .nav-list {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: stretch;
  }

  .nav-button {
    flex: 1 0 auto;
  }

  .content {
    padding-top: 36px;
  }

  .login-layout {
    grid-template-columns: 1fr;
    width: min(100%, 650px);
  }

  .login-showcase {
    min-height: 390px;
    justify-content: flex-start;
    padding: 46px 42px 32px;
  }

  .login-showcase h1 {
    max-width: 570px;
    font-size: clamp(3rem, 10vw, 5rem);
  }

  .showcase-copy {
    max-width: 520px;
    margin-bottom: 0;
  }

  .login-features,
  .glass-preview {
    display: none;
  }

  .login-card {
    margin-top: 0;
  }
}

@media (max-width: 1000px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid > .key-limit-card {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .page-heading {
    align-items: center;
  }

  .page-heading h1 {
    font-size: clamp(2.8rem, 15vw, 5rem);
  }

  .heading-glyph {
    width: 62px;
    border-radius: 19px;
  }

  .key-limit-card {
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .login-shell {
    place-items: start center;
    padding: 74px 10px 18px;
  }

  .login-topbar {
    top: 16px;
    right: 12px;
  }

  .login-layout {
    min-height: auto;
    border-radius: 24px;
  }

  .login-showcase {
    min-height: auto;
    padding: 34px 24px 24px;
  }

  .login-showcase h1 {
    margin-bottom: 12px;
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .login-card {
    margin: 8px;
    padding: 28px 22px;
    border-radius: 20px;
  }

  .access-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 28px;
  }

  .console-heading > div {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .signout-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .signout-button {
    width: 44px;
    padding: 0;
  }

  .nav-button {
    gap: 6px;
    padding-inline: 11px;
    font-size: .73rem;
  }

  .content {
    padding: 30px 12px 56px;
  }

  .page-heading {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 28px;
  }

  .heading-glyph {
    display: none;
  }

  .page-heading .subtitle {
    font-size: .9rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .overview-metrics-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .key-limit-card {
    grid-column: auto;
    min-height: 300px;
  }

  .card,
  .setup-card {
    padding: 19px;
    border-radius: 16px;
  }

  .table-card {
    padding: 0;
  }

  .filter-actions .button {
    flex: 1 1 100%;
  }

  .endpoint-row,
  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .endpoint-row .button,
  .pagination .button {
    width: 100%;
  }

  .catalog-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .catalog-count {
    width: fit-content;
  }
}

@media (max-width: 480px) {
  .nav-button {
    flex-direction: column;
    gap: 3px;
    min-height: 52px;
    padding: 5px 10px;
    font-size: .65rem;
  }

  .nav-button .icon {
    width: 17px;
    height: 17px;
  }

  .metric-value,
  code,
  .subtitle,
  .showcase-copy,
  td {
    overflow-wrap: anywhere;
  }
}

@media (prefers-contrast: more) {
  :root {
    --glass-border: rgb(255 255 255 / 24%);
    --muted: #c6c2d0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .ambient-layer,
  .glass-preview {
    display: none;
  }

  .button,
  .card,
  .nav-list,
  .locale-switch,
  .login-layout,
  .login-card {
    border: 1px solid CanvasText;
  }
}
