:root {
  color-scheme: light;
  --page: #f5f7fb;
  --ink: #0f172a;
  --muted: #65738a;
  --line: #dbe3ef;
  --surface: #ffffff;
  --soft: #f1f5fb;
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --brand-dark: #1745b8;
  --danger: #b42318;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

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

.marketing-shell {
  min-height: 100vh;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 15%, rgba(37, 99, 235, 0.28), transparent 26%),
    radial-gradient(circle at 78% 14%, rgba(6, 182, 212, 0.22), transparent 24%),
    linear-gradient(135deg, #07111f 0%, #0c1730 48%, #101827 100%);
  color: #f8fbff;
}

.marketing-nav {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 4px 34px;
}

.nav-brand,
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo,
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 900;
}

.nav-brand strong,
.brand strong {
  display: block;
  font-size: 15px;
}

.nav-brand span,
.brand span {
  display: block;
  margin-top: 3px;
  color: #9fb0c7;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #d7e2f2;
  font-size: 14px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-login {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font-weight: 900;
}

.hero-layout {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 34px;
  align-items: center;
  min-height: 620px;
}

.hero-visual {
  display: grid;
  gap: 14px;
}

.visual-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
}

.visual-card.main {
  padding: 26px;
  min-height: 190px;
  display: grid;
  align-content: end;
  background:
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.35), transparent 34%),
    rgba(255, 255, 255, 0.08);
}

.visual-card span {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 900;
}

.visual-card strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.visual-card p {
  color: #c7d4e8;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-copy {
  padding: 24px 0 36px;
}

.hero-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(147, 197, 253, 0.34);
  border-radius: 999px;
  padding: 9px 13px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.42);
  font-size: 14px;
  font-weight: 800;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: #c7d4e8;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.button.secondary,
.button.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #eaf2ff;
}

.button.full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.hero-stats div,
.feature-strip article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  padding: 16px;
}

.hero-stats strong,
.feature-strip strong {
  display: block;
  font-size: 20px;
}

.hero-stats span,
.feature-strip p {
  display: block;
  margin-top: 7px;
  color: #bbcae0;
  font-size: 13px;
  line-height: 1.55;
}

.auth-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.login-root {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background-color: #f5f7fb;
  background-image:
    radial-gradient(360px 280px at 8% 6%, rgba(125, 211, 252, 0.28) 0%, transparent 60%),
    radial-gradient(380px 300px at 92% 8%, rgba(196, 181, 253, 0.28) 0%, transparent 60%),
    radial-gradient(320px 260px at 28% 38%, rgba(147, 197, 253, 0.2) 0%, transparent 65%),
    radial-gradient(300px 240px at 78% 48%, rgba(216, 180, 254, 0.18) 0%, transparent 65%),
    radial-gradient(340px 280px at 6% 88%, rgba(167, 243, 208, 0.2) 0%, transparent 60%);
  overflow: hidden;
  position: relative;
}

@media (min-width: 1024px) {
  .login-root {
    grid-template-columns: 1fr 1fr;
  }
}

.login-tools {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.tool-button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--brand);
  cursor: pointer;
  font-weight: 900;
}

.promo-panel {
  display: none;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .promo-panel {
    display: block;
  }
}

.promo-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 46px;
  color: #1f2937;
  position: relative;
  z-index: 2;
}

.promo-logo-text {
  border: 0;
  padding: 0;
  background: linear-gradient(135deg, #158efe, #ca65fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  font-size: 50px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.promo-sub {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  color: #1f2937;
  font-size: 32px;
  font-weight: 800;
}

.promo-desc {
  max-width: 580px;
  margin-top: 18px;
  color: rgba(31, 41, 55, 0.68);
  line-height: 1.8;
  font-size: 15px;
}

.promo-orb {
  position: absolute;
  left: 50%;
  bottom: -70px;
  width: 430px;
  height: 430px;
  transform: translateX(-50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.72) 0%, transparent 38%),
    radial-gradient(circle at 72% 62%, rgba(100, 140, 255, 0.34) 0%, transparent 48%),
    linear-gradient(145deg, rgba(235, 238, 252, 0.92), rgba(195, 208, 245, 0.55));
  box-shadow: inset -18px -22px 50px rgba(130, 150, 220, 0.18), 0 0 90px rgba(90, 130, 255, 0.18);
}

.orb-ring {
  position: absolute;
  inset: 58px;
  border: 1px solid rgba(21, 142, 254, 0.22);
  border-radius: 50%;
}

.orb-core {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #158efe, #ca65fe);
  font-weight: 900;
  font-size: 28px;
}

.blur-ball {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.36;
}

.ball-a {
  top: 110px;
  left: -90px;
  background: #9db7e0;
}

.ball-b {
  top: 130px;
  right: -70px;
  background: #eece50;
}

.login-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.login-card-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-card-inner {
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top-color: rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  padding: 8px 22px 24px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.55), rgba(235, 242, 252, 0.32));
  backdrop-filter: saturate(180%) blur(40px);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.75),
    inset 0 -1px rgba(15, 23, 42, 0.04),
    0 12px 28px -6px rgba(15, 23, 42, 0.12),
    0 28px 56px -12px rgba(15, 23, 42, 0.2);
}

.login-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 26px;
}

.login-head-brand {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.login-head-brand-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #158efe, #ca65fe);
  font-weight: 900;
}

.login-head-brand-name {
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.login-card-head h2 {
  margin: 22px 0 0;
  font-size: 24px;
}

.login-card-body {
  padding: 16px 10px 0;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.check-line {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.check-line input {
  width: auto;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-weight: 800;
}

.gradient-btn {
  border-radius: 999px;
  background: linear-gradient(180deg, #53acff, #0084ff);
}

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

.card-kicker {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.auth-card-head h2 {
  margin: 7px 0 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.auth-card-head p,
.form-note {
  color: var(--muted);
  line-height: 1.65;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-radius: 14px;
  padding: 5px;
  margin: 20px 0;
  background: var(--soft);
}

.auth-tab {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.auth-tab.is-active {
  color: var(--ink);
  background: #fff;
}

.auth-pane {
  display: none;
  gap: 14px;
}

.auth-pane.is-active {
  display: grid;
}

label {
  display: grid;
  gap: 7px;
  color: #41506a;
  font-size: 14px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--brand);
}

.message {
  margin-top: 14px;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff1f0;
  color: var(--danger);
  font-size: 14px;
}

.feature-strip {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 26px;
}

.feature-strip span {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 900;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  background: #101828;
  color: #f8fafc;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.nav-section {
  display: grid;
  gap: 8px;
}

.nav-section-title {
  padding: 0 14px 4px;
  color: rgba(219, 228, 240, 0.55);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.nav-item {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  color: #dbe4f0;
  background: transparent;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-collapse-button {
  margin-top: auto;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  color: #dbe4f0;
  background: transparent;
  cursor: pointer;
}

.sidebar-collapse-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.main {
  padding: 28px;
  background: var(--page);
}

.topbar,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.topbar h1,
.section-head h2 {
  margin: 0;
}

.topbar p {
  margin: 8px 0 0;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-label {
  color: var(--muted);
  font-size: 14px;
}

.toolbar-item {
  position: relative;
  display: inline-flex;
}

.nav-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}

.toolbar-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: 148px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(194, 198, 214, 0.45);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.toolbar-menu[hidden] {
  display: none;
}

.toolbar-menu-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #424754;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.toolbar-menu-button:hover,
.toolbar-menu-button.is-active {
  background: rgba(0, 65, 145, 0.08);
  color: var(--brand-dark);
}

.language-flag {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.language-flag-text {
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 900;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.metric,
.view,
.list-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric {
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.metric strong {
  font-size: 24px;
}

.view {
  display: none;
  padding: 20px;
}

.view.is-active {
  display: block;
}

.view[data-view-panel="setup"] {
  gap: 14px;
}

.view[data-view-panel="setup"].is-active {
  display: grid;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.panel-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.form-card {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.form-card h3 {
  margin: 0;
}

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

.inline-form {
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dashboard-check {
  align-self: end;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 13px;
}

.result-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
}

.section-head.compact {
  align-items: center;
  margin: 18px 0 12px;
}

.section-head.compact h2 {
  font-size: 17px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.info-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.info-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.info-item strong {
  display: block;
  overflow-wrap: anywhere;
}

.compact-list .list-item {
  padding: 12px;
}

.list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.copy-button,
.danger-button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.copy-button {
  background: #eaf2ff;
  color: var(--brand-dark);
}

.copy-button.is-active {
  background: #dbeafe;
}

.danger-button {
  background: #fff1f0;
  color: var(--danger);
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  padding: 14px;
}

.channel-ok {
  border-color: #bbf7d0;
  background: #f6fef9;
}

.channel-warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.channel-bad {
  border-color: #fecaca;
  background: #fff7f7;
}

.list-item strong {
  display: block;
  margin-bottom: 6px;
}

.list-item small,
.empty {
  color: var(--muted);
}

.script-box {
  min-height: 240px;
  overflow: auto;
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f172a;
  color: #dbeafe;
  padding: 16px;
  white-space: pre-wrap;
}

.console-shell {
  min-height: 100vh;
  display: block;
  background:
    radial-gradient(circle at 76% 12%, rgba(80, 139, 255, 0.24), transparent 360px),
    radial-gradient(circle at 28% 92%, rgba(86, 214, 236, 0.2), transparent 420px),
    linear-gradient(135deg, #f8fbff 0%, #eef7ff 42%, #dff6fb 100%);
  color: #111827;
}

.console-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  width: 196px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 10px 10px;
  border-right: 1px solid rgba(203, 213, 225, 0.62);
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.98) 0%, rgba(241, 248, 255, 0.96) 62%, rgba(224, 246, 252, 0.96) 100%);
  color: #111827;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 10px 0 28px rgba(59, 130, 246, 0.1);
  will-change: width, padding;
  transition: width 0.34s cubic-bezier(0.16, 1, 0.3, 1), padding 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.console-brand {
  min-height: 48px;
  align-items: center;
  padding: 0 2px 8px;
}

.console-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #0058be;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 88, 190, 0.22);
  overflow: hidden;
  flex: 0 0 auto;
}

.console-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.console-brand strong {
  color: #1e293b;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.console-brand span {
  color: #424754;
  font-size: 12px;
  font-weight: 800;
}

.console-brand div:last-child,
.console-nav .nav-item span:not(.material-symbols-outlined),
.console-sidebar-footer span:not(.material-symbols-outlined) {
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  max-width: 132px;
  transition: opacity 0.18s ease, max-width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.console-sidebar-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 0 12px;
  overscroll-behavior: contain;
}

.console-sidebar-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.console-nav {
  flex: 0 0 auto;
  display: grid;
  grid-auto-rows: 50px;
  align-content: start;
  gap: 4px;
  margin-top: 4px;
  overflow: visible;
}

.console-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  height: 50px;
  border-radius: 9px;
  padding: 0 10px;
  color: #5f6f82;
  font-size: 15px;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.console-nav .nav-item .material-symbols-outlined {
  font-size: 20px;
}

.console-nav .nav-item:hover {
  color: #1e293b;
  background: rgba(226, 241, 255, 0.78);
  transform: none;
  box-shadow: none;
}

.console-nav .nav-item.is-active {
  color: #1e293b;
  border: 1px solid rgba(191, 219, 254, 0.95);
  background: linear-gradient(90deg, rgba(239, 248, 255, 0.98), rgba(255, 255, 255, 0.9));
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.08);
}

.console-nav .nav-item.is-active::before {
  display: none;
}

.console-sidebar-footer {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  margin: 0 -10px -10px;
  padding: 10px 18px 12px;
  border-top: 1px solid rgba(194, 198, 214, 0.36);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.console-upgrade-button,
.console-sidebar .sidebar-collapse-button {
  width: 100%;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.console-sidebar .sidebar-collapse-button .material-symbols-outlined {
  width: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 28px;
  font-weight: 300;
}

.console-upgrade-button {
  color: #fff;
  background: #0058be;
}

.console-sidebar .sidebar-collapse-button {
  margin: 0;
  color: #424754;
  background: transparent;
}

.console-upgrade-button:hover,
.console-sidebar .sidebar-collapse-button:hover {
  transform: translateX(2px);
  color: #0058be;
  background: rgba(0, 88, 190, 0.05);
  box-shadow: none;
}

.console-shell .main {
  min-height: 100vh;
  margin-left: 196px;
  padding: 0;
  background: transparent;
  will-change: margin-left;
  transition: margin-left 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.console-topbar {
  position: fixed;
  top: 0;
  left: 196px;
  right: 0;
  z-index: 40;
  height: 50px;
  align-items: center;
  margin: 0;
  padding: 0 24px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.54);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  will-change: left;
  transition: left 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.console-topbar-title {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.console-topbar-title h1 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.console-topbar-title p {
  max-width: min(620px, 48vw);
  margin: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.console-top-link {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #111827;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.console-top-link:hover {
  color: #0058be;
  background: rgba(0, 88, 190, 0.06);
}

.console-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 13px 0 10px;
  color: #0f766e;
  background: rgba(240, 253, 250, 0.92);
  border: 1px solid rgba(20, 184, 166, 0.28);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 20px -16px rgba(15, 118, 110, 0.6);
}

.console-balance-pill .material-symbols-outlined {
  font-size: 19px;
}

.console-user-button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(194, 198, 214, 0.5);
  border-radius: 999px;
  padding: 4px 8px 4px 4px;
  color: #111827;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.console-user-button:hover {
  color: #0058be;
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
}

.console-user-avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #0058be);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  flex: 0 0 auto;
}

.console-user-button span:not(.material-symbols-outlined) {
  max-width: 150px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.console-user-button .material-symbols-outlined {
  font-size: 20px;
}

.console-user-menu {
  width: 180px;
}

.toolbar-menu-button.danger {
  color: #b42318;
}

.toolbar-menu-button.danger:hover {
  background: #fff1f0;
  color: #b42318;
}

.console-shell .nav-icon {
  color: #424754;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.console-shell .nav-icon:hover {
  color: #0058be;
  background: rgba(0, 88, 190, 0.06);
  transform: translateY(-1px);
}

.console-shell .session-label {
  color: #424754;
  font-weight: 700;
}

.console-shell .button.ghost {
  border-radius: 999px;
  color: #0058be;
  background: rgba(216, 226, 255, 0.8);
}

.console-shell.is-sidebar-collapsed .console-sidebar {
  width: 66px;
  padding: 14px 8px;
}

.console-shell.is-sidebar-collapsed .console-brand {
  justify-content: center;
  min-height: 48px;
  padding: 0 0 8px;
}

.console-shell.is-sidebar-collapsed .console-brand-mark {
  width: 38px;
  height: 38px;
}

.console-shell.is-sidebar-collapsed .console-brand div:last-child,
.console-shell.is-sidebar-collapsed .console-nav .nav-item span:not(.material-symbols-outlined),
.console-shell.is-sidebar-collapsed .console-sidebar-footer span:not(.material-symbols-outlined) {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
}

.console-shell.is-sidebar-collapsed .console-sidebar-footer {
  margin: 0 -8px -14px;
  padding: 10px 8px 12px;
}

.console-shell.is-sidebar-collapsed .console-nav .nav-item,
.console-shell.is-sidebar-collapsed .console-sidebar .sidebar-collapse-button {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.console-shell.is-sidebar-collapsed .console-sidebar .sidebar-collapse-button {
  width: 100%;
  gap: 0;
}

.console-shell.is-sidebar-collapsed .console-nav .nav-item {
  gap: 0;
}

.console-shell.is-sidebar-collapsed .console-nav .nav-item.is-active::before {
  left: -8px;
}

.console-shell.is-sidebar-collapsed .main {
  margin-left: 66px;
}

.console-shell.is-sidebar-collapsed .console-topbar {
  left: 66px;
}

.console-shell .dashboard {
  min-height: 100vh;
  padding-top: 50px;
  display: block;
}

.console-shell .message {
  position: sticky;
  top: 78px;
  z-index: 45;
  margin: 16px 32px 0;
}

.console-shell .view:not(.console-view) {
  margin: 32px 32px 32px;
  padding: 32px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(0, 88, 190, 0.04), transparent 360px),
    rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 24px -12px rgba(59, 130, 246, 0.16);
}

.console-shell .view:not(.console-view) .section-head {
  margin-bottom: 24px;
}

.console-shell .view:not(.console-view) > .section-head:first-child {
  justify-content: flex-end;
  min-height: 0;
}

.console-shell .view:not(.console-view) > .section-head:first-child h2,
.console-shell .view:not(.console-view) > h2:first-child {
  display: none;
}

.console-shell .view:not(.console-view) > .section-head:first-child:has(> h2:only-child) {
  display: none;
}

.console-shell .view:not(.console-view) .section-head h2 {
  color: #111827;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.console-shell .panel-card,
.console-shell .form-card,
.console-shell .info-item,
.console-shell .list-item,
.console-shell .result-box {
  border-color: rgba(194, 198, 214, 0.48);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 20px -16px rgba(59, 130, 246, 0.22);
}

.console-shell .form-card {
  padding: 22px;
}

.console-shell .form-card h3 {
  color: #111827;
  font-size: 20px;
}

.console-shell .form-card input,
.console-shell .form-card select,
.console-shell .dashboard-check {
  border-color: rgba(194, 198, 214, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.console-shell .list-item {
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.console-shell .list-item:hover {
  background: rgba(219, 226, 250, 0.42);
  transform: translateY(-1px);
}

.console-shell .copy-button {
  color: #0058be;
  background: rgba(216, 226, 255, 0.8);
}

.console-shell .copy-button.is-active {
  color: #fff;
  background: #0058be;
}

.console-view {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background:
    radial-gradient(circle at 78% 6%, rgba(89, 136, 255, 0.28), transparent 390px),
    radial-gradient(circle at 18% 96%, rgba(85, 214, 236, 0.2), transparent 430px),
    linear-gradient(135deg, #f8fbff 0%, #eef7ff 44%, #dff6fb 100%);
}

.console-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  padding: 20px 20px 24px;
}

.console-shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  pointer-events: none;
}

.console-page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.console-page-head > div:first-child {
  display: none;
}

.console-page-head h2 {
  margin: 0;
  color: #111827;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.console-page-head p {
  margin: 10px 0 0;
  color: #424754;
  font-size: 16px;
}

.console-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.console-glass-card {
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 18px;
  box-shadow: 0 12px 28px -18px rgba(37, 99, 235, 0.26);
}

.console-stat-card {
  min-height: 156px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.console-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.46), transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.console-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px -14px rgba(59, 130, 246, 0.34);
}

.console-stat-card:hover::before {
  opacity: 1;
}

.console-metrics,
.console-monitor-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.console-stat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.console-stat-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0058be;
  background: #e8f1ff;
}

.console-stat-icon.amber {
  color: #b45309;
  background: #f8eadc;
}

.console-stat-icon.slate {
  color: #475569;
  background: #e9edf8;
}

.console-stat-icon.blue {
  color: #2170e4;
  background: #e5efff;
}

.console-badge,
.console-live-pill,
.console-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.console-badge.success,
.console-status-pill.ok {
  color: #047857;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.console-badge.rose {
  color: #e11d48;
  background: #ffe4e6;
}

.console-status-pill.warn {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.console-status-pill.bad {
  color: #b42318;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.console-stat-card p,
.console-monitor-card p {
  margin: 0 0 8px;
  color: #424754;
  font-size: 14px;
  font-weight: 700;
}

.console-stat-card strong,
.console-monitor-card strong {
  color: #111827;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.console-overview-grid,
.console-two-col {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 28px;
}

.console-side-stack {
  display: grid;
  gap: 28px;
}

.console-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.console-card-head h3 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.console-card-head span {
  color: #64748b;
  font-size: 13px;
}

.console-trend-card > .console-card-head span {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.console-trend-card {
  min-height: 100%;
}

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

.console-traffic-overview {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.console-traffic-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.console-traffic-stat {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 104px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.06);
}

.console-traffic-stat::after {
  content: none;
  position: absolute;
  right: -22px;
  bottom: -26px;
  width: 88px;
  height: 88px;
  border: 7px solid rgba(0, 88, 190, 0.07);
  border-radius: 50%;
}

.console-traffic-stat > .material-symbols-outlined {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0058be;
  background: rgba(0, 88, 190, 0.1);
  font-size: 21px;
}

.console-traffic-stat:nth-child(2) > .material-symbols-outlined {
  color: #7c3aed;
  background: #f1eaff;
}

.console-traffic-stat:nth-child(3) > .material-symbols-outlined,
.console-traffic-stat:nth-child(5) > .material-symbols-outlined {
  color: #059669;
  background: #e8f8f1;
}

.console-traffic-stat:nth-child(4) > .material-symbols-outlined {
  color: #d97706;
  background: #fff3dc;
}

.console-traffic-stat:nth-child(6) > .material-symbols-outlined {
  color: #dc2626;
  background: #feecec;
}

.console-traffic-stat p {
  margin: 12px 0 6px;
  color: #424754;
  font-size: 14px;
  font-weight: 800;
}

.console-traffic-stat strong {
  display: block;
  color: #111827;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.console-traffic-stat small {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 750;
}

.console-traffic-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 20px;
  align-items: stretch;
  min-width: 0;
}

.console-traffic-chart,
.console-token-panel {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.console-traffic-chart {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 318px;
  padding: 22px 24px 18px;
}

.console-traffic-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.console-traffic-chart-head strong,
.console-token-total strong {
  color: #1e293b;
  font-size: 18px;
  font-weight: 900;
}

.console-traffic-chart-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.console-traffic-chart-head i {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #3b82f6;
}

.console-traffic-chart-head i:last-child {
  background: #10b981;
}

.console-traffic-bars {
  position: relative;
  min-height: 268px;
  display: grid;
  grid-template-columns: repeat(14, minmax(24px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 28px 6px 24px;
  background-image: linear-gradient(to top, rgba(226, 232, 240, 0.72) 1px, transparent 1px);
  background-size: 100% 52px;
}

.console-traffic-line-stage {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 246px;
  margin-top: 18px;
  border: 1px solid rgba(194, 198, 214, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(to top, rgba(226, 232, 240, 0.72) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 88, 190, 0.04), rgba(255, 255, 255, 0.2));
  background-size: 100% 48px, 100% 100%;
  overflow: visible;
}

.console-traffic-line-chart {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 220px;
  display: block;
  pointer-events: none;
}

.console-traffic-area {
  fill: url(#overviewUsageArea);
}

.console-traffic-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.console-traffic-line.token {
  stroke: #0058be;
  filter: drop-shadow(0 7px 10px rgba(0, 88, 190, 0.22));
}

.console-traffic-line.request {
  stroke: #10b981;
  stroke-width: 3.5;
  opacity: 0.9;
}

.console-traffic-today-point {
  fill: #fff;
  stroke: #0058be;
  stroke-width: 5;
  filter: drop-shadow(0 5px 9px rgba(0, 88, 190, 0.28));
}

.console-traffic-hotspots {
  position: absolute;
  inset: 0 14px 28px;
  z-index: 3;
  pointer-events: none;
}

.console-traffic-hotspot {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  transform: translateX(-50%);
  pointer-events: auto;
}

.console-traffic-hotspot::before {
  content: "";
  position: absolute;
  inset: 18px auto 12px 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(0, 88, 190, 0);
  transition: background 0.16s ease;
}

.console-traffic-hotspot:hover::before {
  background: rgba(0, 88, 190, 0.18);
}

.console-traffic-tooltip {
  position: absolute;
  left: 50%;
  top: 18px;
  min-width: 198px;
  display: grid;
  gap: 7px;
  padding: 12px 13px;
  border-radius: 12px;
  color: #fff;
  background: rgba(17, 24, 39, 0.9);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.console-traffic-hotspot:hover .console-traffic-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.console-traffic-hotspot:first-child .console-traffic-tooltip {
  left: 0;
  transform: translate(0, 8px);
}

.console-traffic-hotspot:first-child:hover .console-traffic-tooltip {
  transform: translate(0, 0);
}

.console-traffic-hotspot:last-child .console-traffic-tooltip {
  left: auto;
  right: 0;
  transform: translate(0, 8px);
}

.console-traffic-hotspot:last-child:hover .console-traffic-tooltip {
  transform: translate(0, 0);
}

.console-traffic-tooltip strong {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.console-traffic-tooltip span,
.console-traffic-tooltip b {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.console-traffic-tooltip i {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.console-traffic-tooltip i.blue {
  color: #60a5fa;
}

.console-traffic-tooltip i.green {
  color: #6ee7b7;
}

.console-traffic-tooltip i.amber {
  color: #fbbf24;
}

.console-traffic-axis {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 0;
  padding: 0 14px 12px;
}

.console-traffic-axis span {
  min-width: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.console-traffic-bar {
  height: 232px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  position: relative;
}

.console-traffic-bar span {
  width: 11px;
  min-height: 8px;
  border-radius: 999px 999px 4px 4px;
  transition: height 0.22s ease, opacity 0.22s ease;
}

.console-traffic-bar .request {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
}

.console-traffic-bar .token {
  background: linear-gradient(180deg, #6ee7b7, #10b981);
}

.console-traffic-bar:hover span {
  opacity: 0.72;
}

.console-traffic-bar em {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.console-token-panel {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 22px 20px;
}

.console-token-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.console-token-total span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.console-token-line {
  display: grid;
  gap: 10px;
}

.console-token-line div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.console-token-line span {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.console-token-line strong {
  color: #1e293b;
  font-size: 13px;
  font-weight: 950;
}

.console-token-line em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.console-token-line p {
  overflow: hidden;
  height: 9px;
  margin: 0;
  border-radius: 999px;
  background: rgba(219, 226, 250, 0.9);
}

.console-token-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #3b82f6;
}

.console-token-line.green i {
  background: #10b981;
}

.console-token-line.amber i {
  background: #f59e0b;
}

.console-token-line.violet i {
  background: #8b5cf6;
}

.console-trend-row,
.console-quota-card {
  border: 1px solid rgba(194, 198, 214, 0.44);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
}

.console-trend-row {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.console-trend-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.console-trend-main strong,
.console-quota-title strong {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.console-trend-main small,
.console-quota-title span,
.console-quota-reset {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.console-trend-meter {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(219, 226, 250, 0.9);
}

.console-trend-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0058be, #60a5fa);
}

.console-quota-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.console-quota-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.console-platform-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.console-platform-metric {
  border: 1px solid rgba(194, 198, 214, 0.38);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(248, 250, 255, 0.68);
}

.console-platform-metric span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.console-platform-metric strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.console-filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.console-filter-grid label {
  display: grid;
  gap: 7px;
  color: #424754;
  font-size: 13px;
  font-weight: 800;
}

.console-filter-grid input,
.console-filter-grid select {
  width: 100%;
  border: 1px solid rgba(194, 198, 214, 0.8);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.68);
}

.console-primary-button,
.console-soft-button,
.console-link-button,
.console-action-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.console-primary-button {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 18px;
  color: #fff;
  background: #0058be;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.console-primary-button:hover,
.console-soft-button:hover,
.console-action-tile:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.32);
}

.console-soft-button {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  color: #0058be;
  background: rgba(216, 226, 255, 0.8);
}

.console-soft-button.is-loading .material-symbols-outlined {
  animation: consoleSpin 0.8s linear infinite;
}

.console-icon-button {
  width: 48px;
  min-width: 48px;
  padding: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.console-icon-button.is-loading .material-symbols-outlined {
  animation: consoleSpin 0.8s linear infinite;
}

.console-link-button {
  padding: 6px 0;
  color: #0058be;
  background: transparent;
}

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

.console-action-tile {
  min-height: 112px;
  flex-direction: column;
  border: 1px solid rgba(194, 198, 214, 0.48);
  border-radius: 16px;
  color: #111827;
  background: rgba(255, 255, 255, 0.58);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.console-action-tile span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7ebf8;
}

.console-usage-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.console-usage-stat-card {
  min-height: 136px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 22px;
  overflow: hidden;
}

.console-usage-stat-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  pointer-events: none;
}

.console-usage-stat-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #2563eb;
  background: #e8f1ff;
}

.console-usage-stat-card.green .console-usage-stat-icon {
  color: #16a34a;
  background: #dcfce7;
}

.console-usage-stat-card.amber .console-usage-stat-icon {
  color: #d97706;
  background: #fef3c7;
}

.console-usage-stat-card.cyan .console-usage-stat-icon {
  color: #0891b2;
  background: #cffafe;
}

.console-usage-stat-card.violet .console-usage-stat-icon,
.console-usage-stat-card.purple .console-usage-stat-icon {
  color: #7c3aed;
  background: #ede9fe;
}

.console-usage-stat-card.slate .console-usage-stat-icon {
  color: #475569;
  background: #e2e8f0;
}

.console-usage-stat-icon .material-symbols-outlined {
  font-size: 24px;
}

.console-usage-stat-card div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.console-usage-stat-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 850;
}

.console-usage-stat-card strong {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: #111827;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.console-usage-stat-card small {
  display: block;
  overflow: hidden;
  max-width: 100%;
  margin-top: 7px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.42;
  white-space: normal;
}

.console-usage-stat-card small span {
  display: block;
}

.console-usage-stat-card small b {
  font-weight: 920;
}

.console-usage-stat-card small b.blue {
  color: #0284c7;
}

.console-usage-stat-card small b.amber {
  color: #d97706;
}

.console-usage-stat-card small s {
  color: #94a3b8;
  text-decoration-thickness: 2px;
}

.console-usage-filter-card {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  overflow: visible;
}

.console-usage-filter-fields {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(190px, 300px);
  gap: 28px;
  align-items: end;
}

.console-usage-filter-fields label {
  position: relative;
  display: grid;
  gap: 9px;
  color: #475569;
  font-size: 14px;
  font-weight: 850;
}

.console-usage-filter-fields input,
.console-usage-filter-fields select {
  height: 50px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 0 16px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.console-usage-select,
.console-usage-range {
  position: relative;
}

.console-usage-select-button {
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 0 16px;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  font-size: 15px;
  font-weight: 850;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.console-usage-select-button:hover,
.console-usage-select-button:focus-visible {
  border-color: rgba(45, 212, 191, 0.78);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
  outline: none;
}

.console-usage-select-button .material-symbols-outlined {
  color: #94a3b8;
  font-size: 22px;
}

.console-usage-select-menu,
.console-usage-range-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.console-usage-select-menu[hidden],
.console-usage-range-menu[hidden] {
  display: none;
}

.console-usage-select-menu {
  width: min(290px, 80vw);
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
}

.console-usage-select-menu button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  color: #334155;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 820;
}

.console-usage-select-menu button:hover,
.console-usage-select-menu button.is-active {
  background: #f1f5f9;
}

.console-usage-range-menu {
  width: 512px;
  padding: 14px 18px 14px;
}

.console-usage-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 28px;
  padding-bottom: 14px;
}

.console-usage-range-grid button {
  height: 44px;
  border: 0;
  border-radius: 9px;
  color: #475569;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 820;
}

.console-usage-range-grid button:hover,
.console-usage-range-grid button.is-active {
  color: #0f766e;
  background: #ccfbf1;
}

.console-usage-range-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.console-usage-range-custom label {
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.console-usage-range-custom input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 9px;
  padding: 0 12px;
  color: #111827;
  background: #f8fafc;
  font-weight: 820;
}

.console-usage-range-custom > .material-symbols-outlined {
  align-self: center;
  color: #94a3b8;
}

.console-usage-range-custom button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: #fff;
  background: #0f9f91;
  cursor: pointer;
  font-weight: 900;
}

.console-usage-filter-fields input:focus,
.console-usage-filter-fields select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.console-usage-filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.console-usage-filter-actions .console-soft-button,
.console-usage-filter-actions .console-primary-button {
  min-width: 92px;
  border-radius: 14px;
}

.console-usage-table-card {
  z-index: 1;
  padding: 0;
  overflow: hidden;
}

.console-usage-table-shell {
  display: grid;
  min-height: 0;
}

.console-usage-scroll-wrap {
  max-height: min(780px, calc(100vh - 300px));
  min-height: 680px;
  overscroll-behavior: contain;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: contain;
}

.console-usage-table-shell .console-key-empty {
  min-height: 680px;
  display: grid;
  place-items: center;
}

.console-usage-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1760px;
}

.console-usage-table th,
.console-usage-table td {
  padding: 18px 18px;
  white-space: nowrap;
}

.console-usage-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  letter-spacing: 0.03em;
}

.console-usage-table th:first-child,
.console-usage-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 132px;
  min-width: 132px;
  background: rgba(251, 252, 255, 0.98);
  box-shadow: 10px 0 18px -16px rgba(15, 23, 42, 0.45);
}

.console-usage-table th:first-child {
  z-index: 5;
  background: rgba(242, 243, 253, 0.98);
}

.console-usage-table tbody tr:hover > td:first-child {
  background: #eef2ff;
}

.console-usage-key-name,
.console-usage-model {
  display: block;
  max-width: 190px;
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
}

.console-usage-endpoint {
  color: #475569;
  font-weight: 760;
}

.console-usage-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 8px;
  padding: 0 9px;
  color: #2563eb;
  background: #dbeafe;
  font-size: 13px;
  font-weight: 850;
}

.console-usage-badge.billing {
  color: #4f46e5;
  background: #e0e7ff;
}

.console-usage-token-cell span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 850;
}

.console-usage-token-cell i {
  font-style: normal;
  font-weight: 950;
}

.console-usage-token-cell .down {
  color: #10b981;
}

.console-usage-token-cell .up {
  color: #8b5cf6;
}

.console-usage-cost {
  color: #16a34a;
  font-weight: 950;
}

.console-usage-user-agent {
  max-width: 320px;
  min-width: 260px;
  color: #64748b;
  line-height: 1.45;
  white-space: normal;
}

.console-usage-pagination {
  margin-top: 0;
}

.console-table-wrap {
  overflow: auto;
  border: 1px solid rgba(194, 198, 214, 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  scrollbar-width: auto;
  scrollbar-color: rgba(100, 116, 139, 0.56) rgba(226, 232, 240, 0.78);
}

.console-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.console-table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.78);
}

.console-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  background: rgba(100, 116, 139, 0.56);
}

.console-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.72);
}

.console-table-wrap::-webkit-scrollbar-thumb:active {
  background: rgba(30, 41, 59, 0.9);
}

.console-data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  text-align: left;
}

.console-data-table th,
.console-data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(194, 198, 214, 0.34);
  vertical-align: middle;
}

.console-data-table th {
  color: #424754;
  background: rgba(242, 243, 253, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.console-data-table td {
  color: #111827;
  font-size: 14px;
}

.console-data-table tr {
  transition: background 0.18s ease;
}

.console-data-table tbody tr:hover {
  background: rgba(219, 226, 250, 0.5);
}

.console-data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.console-data-table small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.console-keys .console-content {
  gap: 20px;
}

.console-key-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(160px, 220px) minmax(150px, 210px);
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.console-key-search {
  position: relative;
  display: block;
}

.console-key-search .material-symbols-outlined {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 22px;
}

.console-key-toolbar input,
.console-key-toolbar select,
.console-key-form input,
.console-key-form select,
.console-key-form textarea {
  width: 100%;
  border: 1px solid rgba(194, 198, 214, 0.8);
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.76);
  color: #111827;
  outline: none;
}

.console-key-search input {
  padding-left: 46px;
}

.console-key-form {
  display: grid;
  gap: 18px;
}

.console-form-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.console-form-title h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
}

.console-form-title p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

.console-key-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.console-key-form label {
  display: grid;
  gap: 7px;
  color: #424754;
  font-size: 13px;
  font-weight: 800;
}

.console-key-form-wide {
  grid-column: span 2;
}

body.console-modal-open {
  overflow: hidden;
}

.console-key-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
}

.console-key-modal[hidden] {
  display: none;
}

.console-key-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
  cursor: default;
}

.console-key-modal-card {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  max-height: min(88vh, 860px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(194, 198, 214, 0.74);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
}

.console-key-modal-head,
.console-key-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 32px;
}

.console-key-modal-head {
  border-bottom: 1px solid rgba(194, 198, 214, 0.5);
}

.console-key-modal-head h3 {
  margin: 0;
  color: #111827;
  font-size: 26px;
  line-height: 1.15;
}

.console-key-modal-head p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
}

.console-key-modal-close,
.console-key-modal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.console-key-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #94a3b8;
  background: transparent;
}

.console-key-modal-close:hover {
  color: #1f2937;
  background: #f1f5f9;
}

.console-key-modal-body {
  display: grid;
  gap: 24px;
  overflow: auto;
  padding: 26px 32px 30px;
}

.console-key-modal-fields,
.console-key-modal-options,
.console-key-modal-reveal {
  display: grid;
  gap: 16px;
}

.console-key-modal-two,
.console-key-modal-three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.console-key-modal-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.console-key-modal-field {
  display: grid;
  gap: 9px;
  color: #334155;
  font-size: 15px;
  font-weight: 850;
}

.console-key-modal-field input,
.console-key-modal-field select,
.console-key-modal-field textarea {
  width: 100%;
  border: 1px solid #d9deea;
  border-radius: 16px;
  padding: 15px 16px;
  background: #fff;
  color: #111827;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.console-key-modal-field textarea {
  resize: vertical;
}

.console-key-modal-field input:focus,
.console-key-modal-field select:focus,
.console-key-modal-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.console-key-modal-field em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.console-key-money-input {
  display: flex;
  align-items: center;
  border: 1px solid #d9deea;
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.console-key-money-input:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.console-key-money-input > span {
  padding-left: 16px;
  color: #64748b;
  font-size: 20px;
  font-weight: 850;
}

.console-key-money-input input {
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}

.console-key-money-input input:focus {
  box-shadow: none;
}

.console-key-switch-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #334155;
  font-size: 15px;
  font-weight: 850;
}

.console-key-switch-row input {
  appearance: none;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #d9dee8;
  cursor: pointer;
  transition: background 0.18s ease;
}

.console-key-switch-row input::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease;
}

.console-key-switch-row input:checked {
  background: #0058be;
}

.console-key-switch-row input:checked::before {
  transform: translateX(22px);
}

.console-key-modal-reveal {
  padding: 16px;
  border: 1px solid rgba(194, 198, 214, 0.62);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.82);
}

.console-key-modal-foot {
  justify-content: flex-end;
  border-top: 1px solid rgba(194, 198, 214, 0.5);
  background: rgba(248, 250, 252, 0.78);
}

.console-key-modal-secondary {
  min-height: 44px;
  border: 1px solid rgba(194, 198, 214, 0.75);
  border-radius: 12px;
  padding: 0 20px;
  color: #334155;
  background: #fff;
  font-weight: 850;
}

.console-key-modal-secondary:hover {
  background: #f8fafc;
}

.console-key-table-card {
  padding: 0;
  overflow: hidden;
}

.console-key-table-shell {
  display: grid;
  min-height: 0;
}

.console-key-scroll-wrap {
  max-height: min(680px, calc(100vh - 246px));
  min-height: 430px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  scrollbar-color: rgba(100, 116, 139, 0.68) rgba(219, 226, 240, 0.9);
}

.console-key-scroll-wrap::-webkit-scrollbar {
  width: 12px;
  height: 14px;
}

.console-key-scroll-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(219, 226, 240, 0.9);
}

.console-key-scroll-wrap::-webkit-scrollbar-thumb {
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.68);
}

.console-key-scroll-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.82);
}

.console-key-scroll-wrap::-webkit-scrollbar-thumb:active {
  background: rgba(15, 23, 42, 0.94);
}

.console-key-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1420px;
}

.console-key-table th,
.console-key-table td {
  padding: 14px 16px;
  white-space: nowrap;
}

.console-key-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.console-key-table th:first-child,
.console-key-table td:first-child,
.console-key-table th:last-child,
.console-key-table td:last-child {
  position: sticky;
  background: rgba(251, 252, 255, 0.98);
}

.console-key-table th:first-child,
.console-key-table td:first-child {
  left: 0;
  z-index: 3;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  box-shadow: 10px 0 18px -16px rgba(15, 23, 42, 0.45);
}

.console-key-table th:last-child,
.console-key-table td:last-child {
  right: 0;
  z-index: 3;
  width: 150px;
  min-width: 150px;
  box-shadow: -10px 0 18px -16px rgba(15, 23, 42, 0.45);
}

.console-key-table th:first-child,
.console-key-table th:last-child {
  z-index: 5;
  background: rgba(242, 243, 253, 0.98);
}

.console-key-table tbody tr:hover > td:first-child,
.console-key-table tbody tr:hover > td:last-child {
  background: #eef2ff;
}

.console-key-table th:nth-child(3),
.console-key-table td:nth-child(3) {
  width: 410px;
}

.console-key-value-cell {
  min-width: 260px;
}

.console-key-rate-cell {
  min-width: 150px;
}

.console-key-name {
  display: block;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-key-preview {
  display: inline-flex;
  align-items: center;
  max-width: 210px;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  color: #1d4ed8;
  background: #eef4ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.console-key-usage-cell {
  min-width: 132px;
}

.console-key-usage-cell span {
  display: block;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
  white-space: nowrap;
}

.console-key-usage-cell strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.console-table-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  border: 0;
  border-radius: 8px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
  vertical-align: middle;
}

.console-table-icon:hover {
  color: #0058be;
  background: rgba(0, 88, 190, 0.1);
}

.console-table-icon .material-symbols-outlined {
  font-size: 18px;
}

.console-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border-radius: 10px;
  padding: 6px 8px;
  color: #4753b8;
  background: rgba(232, 238, 255, 0.92);
  white-space: nowrap;
}

.console-group-badge .material-symbols-outlined {
  font-size: 17px;
}

.console-group-badge strong {
  max-width: 220px;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.console-group-badge em {
  border-radius: 7px;
  padding: 2px 6px;
  color: #334155;
  background: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.console-key-group-cell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 330px;
}

.console-group-picker-button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  padding: 0;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.console-group-picker-button:hover {
  color: #0058be;
}

.console-group-picker-button .material-symbols-outlined {
  color: #94a3b8;
  font-size: 18px;
}

.console-group-picker {
  position: fixed;
  z-index: 130;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(194, 198, 214, 0.74);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.console-group-picker[hidden] {
  display: none;
}

.console-group-picker-search {
  position: relative;
  display: block;
}

.console-group-picker-search .material-symbols-outlined {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 22px;
}

.console-group-picker-search input {
  width: 100%;
  border: 1px solid rgba(194, 198, 214, 0.8);
  border-radius: 12px;
  padding: 12px 14px 12px 46px;
  background: rgba(248, 250, 252, 0.9);
  color: #111827;
  outline: none;
}

.console-group-picker-search input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.console-group-picker-list {
  max-height: 270px;
  display: grid;
  gap: 8px;
  overflow: auto;
}

.console-group-picker-option {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.console-group-picker-option:hover,
.console-group-picker-option.is-selected {
  border-color: rgba(191, 219, 254, 0.86);
  background: rgba(239, 246, 255, 0.86);
}

.console-group-picker-rate {
  border-radius: 10px;
  padding: 5px 9px;
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.92);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.console-group-picker-option > .material-symbols-outlined {
  color: #0f766e;
  font-size: 20px;
}

.console-key-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.console-key-actions button {
  display: inline-flex;
  min-width: auto;
  height: 34px;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 9px;
  padding: 0 6px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
}

.console-key-actions button:hover {
  color: #0058be;
}

.console-key-actions button.danger:hover {
  color: #b42318;
}

.console-key-actions .material-symbols-outlined {
  font-size: 21px;
}

.console-key-actions small {
  margin: 0;
  font-size: 11px;
}

.console-key-pagination {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 14px 18px;
  color: #475569;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

.console-key-pagination-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.console-key-page-summary {
  color: #475569;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}

.console-key-page-muted {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.console-key-page-size {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #475569;
  font-weight: 800;
  white-space: nowrap;
}

.console-key-page-size select {
  min-width: 96px;
  height: 38px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 12px;
  padding: 0 40px 0 18px;
  color: #0f172a;
  background-color: #fff;
  outline: none;
  font-weight: 850;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #94a3b8 50%),
    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 15px,
    calc(100% - 16px) 15px;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.console-key-page-size select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.console-key-pager {
  display: inline-flex;
  overflow: hidden;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.console-key-pager button {
  display: grid;
  width: 48px;
  height: 40px;
  place-items: center;
  border: 0;
  border-right: 1px solid rgba(226, 232, 240, 0.95);
  color: #94a3b8;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 850;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.console-key-pager button:last-child {
  border-right: 0;
}

.console-key-pager button:not(:disabled):hover {
  color: #0f172a;
  background: #f8fafc;
}

.console-key-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.console-key-pager button.is-active {
  color: #111827;
  border-color: rgba(203, 213, 225, 0.95);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.95);
}

.console-key-page-ellipsis {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-right: 1px solid rgba(226, 232, 240, 0.95);
  color: #94a3b8;
  font-size: 15px;
  font-weight: 850;
}

.console-key-pager .material-symbols-outlined {
  font-size: 28px;
}

.console-copy-toast {
  position: fixed;
  top: 92px;
  right: 32px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(191, 219, 254, 0.92);
  border-radius: 14px;
  padding: 0 16px;
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  font-size: 14px;
  font-weight: 850;
  animation: consoleToastIn 0.2s ease-out;
}

.console-copy-toast[hidden] {
  display: none;
}

.console-copy-toast .material-symbols-outlined {
  font-size: 20px;
}

@keyframes consoleToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.console-key-empty {
  padding: 48px;
  text-align: center;
}

.console-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: #0058be;
}

.console-dot.warn {
  background: #f59e0b;
}

.console-dot.bad {
  background: #ef4444;
}

.console-compact-list {
  display: grid;
  gap: 10px;
}

.console-mini-row {
  border: 1px solid rgba(194, 198, 214, 0.42);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.48);
}

.console-mini-row strong {
  display: block;
  color: #111827;
  margin-bottom: 5px;
}

.console-mini-row small,
.console-compact-list .empty {
  color: #64748b;
}

.console-live-pill {
  color: #0058be;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e5e7eb;
}

.console-live-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0058be;
  animation: consolePulse 1.4s infinite;
}

.console-monitor-card {
  min-height: 150px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.console-monitor-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.28);
}

.console-monitor-card .material-symbols-outlined {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 88, 190, 0.1);
  color: #0058be;
}

.console-monitor-card::before {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 88, 190, 0.18), transparent 68%);
  filter: blur(8px);
}

.console-monitor-card.warn::before {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 68%);
}

.console-monitor-card.bad::before {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.18), transparent 68%);
}

.console-monitor-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 18px;
  color: #64748b;
  font-size: 13px;
}

.console-monitor-table td:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.console-model-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #0058be;
  background: rgba(0, 88, 190, 0.1);
}

.console-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  min-width: 92px;
}

.console-sparkline span {
  width: 8px;
  border-radius: 4px 4px 0 0;
  background: rgba(0, 88, 190, 0.75);
  animation: consolePulseLine 1.5s infinite ease-in-out alternate;
  transform-origin: bottom;
}

.console-sparkline.warn span {
  background: rgba(245, 158, 11, 0.78);
}

.console-sparkline.bad span {
  background: rgba(239, 68, 68, 0.78);
}

.console-sparkline span:nth-child(2) { animation-delay: 0.1s; }
.console-sparkline span:nth-child(3) { animation-delay: 0.2s; }
.console-sparkline span:nth-child(4) { animation-delay: 0.3s; }
.console-sparkline span:nth-child(5) { animation-delay: 0.4s; }
.console-sparkline span:nth-child(6) { animation-delay: 0.5s; }
.console-sparkline span:nth-child(7) { animation-delay: 0.6s; }
.console-sparkline span:nth-child(8) { animation-delay: 0.7s; }

.console-animate-in {
  animation: consoleFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

@keyframes consoleFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes consolePulseLine {
  0%, 100% {
    opacity: 0.7;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.18);
  }
}

@keyframes consolePulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.24);
  }
}

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

.portal-theme-dark .console-view {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 420px),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.12), transparent 340px),
    #08111f;
}

.portal-theme-dark .console-shell {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 430px),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.12), transparent 360px),
    #08111f;
}

.portal-theme-dark .console-sidebar,
.portal-theme-dark .console-topbar {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.74);
}

.portal-theme-dark .console-brand strong,
.portal-theme-dark .console-nav .nav-item:hover,
.portal-theme-dark .console-nav .nav-item.is-active,
.portal-theme-dark .console-top-link:hover,
.portal-theme-dark .console-shell .nav-icon:hover,
.portal-theme-dark .console-shell .button.ghost {
  color: #adc6ff;
}

.portal-theme-dark .console-brand span,
.portal-theme-dark .console-nav .nav-item,
.portal-theme-dark .console-sidebar .sidebar-collapse-button,
.portal-theme-dark .console-shell .session-label,
.portal-theme-dark .console-shell .nav-icon,
.portal-theme-dark .console-top-link {
  color: #cbd5e1;
}

.portal-theme-dark .console-nav .nav-item:hover,
.portal-theme-dark .console-nav .nav-item.is-active,
.portal-theme-dark .console-top-link:hover,
.portal-theme-dark .console-shell .nav-icon:hover {
  background: rgba(173, 198, 255, 0.1);
}

.portal-theme-dark .console-nav .nav-item.is-active::before {
  background: #adc6ff;
}

.portal-theme-dark .console-user-button,
.portal-theme-dark .console-shell .view:not(.console-view),
.portal-theme-dark .console-shell .panel-card,
.portal-theme-dark .console-shell .form-card,
.portal-theme-dark .console-shell .info-item,
.portal-theme-dark .console-shell .list-item,
.portal-theme-dark .console-shell .result-box,
.portal-theme-dark .console-shell .form-card input,
.portal-theme-dark .console-shell .form-card select,
.portal-theme-dark .console-shell .dashboard-check {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
}

.portal-theme-dark .console-balance-pill {
  color: #adc6ff;
  background: rgba(59, 130, 246, 0.18);
}

.portal-theme-dark .console-user-button:hover {
  color: #adc6ff;
  background: rgba(30, 41, 59, 0.9);
}

.portal-theme-dark .console-topbar-title h1 {
  color: #f8fafc;
}

.portal-theme-dark .console-topbar-title p {
  color: #cbd5e1;
}

.portal-theme-dark .console-page-head h2,
.portal-theme-dark .console-card-head h3,
.portal-theme-dark .console-stat-card strong,
.portal-theme-dark .console-monitor-card strong,
.portal-theme-dark .console-trend-main strong,
.portal-theme-dark .console-quota-title strong,
.portal-theme-dark .console-platform-metric strong,
.portal-theme-dark .console-key-usage-cell strong,
.portal-theme-dark .console-mini-row strong,
.portal-theme-dark .console-data-table td,
.portal-theme-dark .console-action-tile,
.portal-theme-dark .console-shell .view:not(.console-view) .section-head h2,
.portal-theme-dark .console-shell .form-card h3,
.portal-theme-dark .console-shell .list-item strong,
.portal-theme-dark .console-shell .info-item strong {
  color: #f8fafc;
}

.portal-theme-dark .console-page-head p,
.portal-theme-dark .console-card-head span,
.portal-theme-dark .console-stat-card p,
.portal-theme-dark .console-monitor-card p,
.portal-theme-dark .console-trend-main small,
.portal-theme-dark .console-quota-title span,
.portal-theme-dark .console-quota-reset,
.portal-theme-dark .console-platform-metric span,
.portal-theme-dark .console-key-usage-cell span,
.portal-theme-dark .console-data-table th,
.portal-theme-dark .console-data-table small,
.portal-theme-dark .console-mini-row small,
.portal-theme-dark .console-compact-list .empty,
.portal-theme-dark .console-shell .list-item small,
.portal-theme-dark .console-shell .empty,
.portal-theme-dark .console-shell .info-item span {
  color: #cbd5e1;
}

.portal-theme-dark .console-glass-card,
.portal-theme-dark .console-filter-grid input,
.portal-theme-dark .console-filter-grid select,
.portal-theme-dark .console-key-toolbar input,
.portal-theme-dark .console-key-toolbar select,
.portal-theme-dark .console-key-form input,
.portal-theme-dark .console-key-form select,
.portal-theme-dark .console-key-form textarea,
.portal-theme-dark .console-table-wrap,
.portal-theme-dark .console-trend-row,
.portal-theme-dark .console-quota-card,
.portal-theme-dark .console-platform-metric,
.portal-theme-dark .console-mini-row,
.portal-theme-dark .console-action-tile {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
}

.portal-theme-dark .console-table-wrap {
  scrollbar-color: rgba(148, 163, 184, 0.68) rgba(30, 41, 59, 0.92);
}

.portal-theme-dark .console-table-wrap::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.92);
}

.portal-theme-dark .console-table-wrap::-webkit-scrollbar-thumb {
  border-color: rgba(15, 23, 42, 0.82);
  background: rgba(148, 163, 184, 0.68);
}

.portal-theme-dark .console-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(203, 213, 225, 0.78);
}

.portal-theme-dark .console-table-wrap::-webkit-scrollbar-thumb:active {
  background: rgba(71, 85, 105, 0.98);
}

.portal-theme-dark .console-key-table-card .console-table-wrap {
  scrollbar-color: rgba(203, 213, 225, 0.78) rgba(30, 41, 59, 0.98);
}

.portal-theme-dark .console-trend-meter {
  background: rgba(51, 65, 85, 0.84);
}

.portal-theme-dark .console-traffic-stat,
.portal-theme-dark .console-traffic-chart,
.portal-theme-dark .console-token-panel {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
}

.portal-theme-dark .console-traffic-stat::after {
  border-color: rgba(96, 165, 250, 0.12);
}

.portal-theme-dark .console-traffic-stat p,
.portal-theme-dark .console-traffic-stat small,
.portal-theme-dark .console-traffic-chart-head span,
.portal-theme-dark .console-token-total span,
.portal-theme-dark .console-token-line span,
.portal-theme-dark .console-token-line em,
.portal-theme-dark .console-traffic-bar em {
  color: #cbd5e1;
}

.portal-theme-dark .console-traffic-stat strong,
.portal-theme-dark .console-traffic-chart-head strong,
.portal-theme-dark .console-token-total strong,
.portal-theme-dark .console-token-line strong {
  color: #f8fafc;
}

.portal-theme-dark .console-token-total {
  border-color: rgba(148, 163, 184, 0.24);
}

.portal-theme-dark .console-token-line p {
  background: rgba(51, 65, 85, 0.84);
}

.portal-theme-dark .console-traffic-bars {
  background-image: linear-gradient(to top, rgba(51, 65, 85, 0.72) 1px, transparent 1px);
}

.portal-theme-dark .console-data-table th {
  background: rgba(30, 41, 59, 0.72);
}

.portal-theme-dark .console-key-table th:first-child,
.portal-theme-dark .console-key-table td:first-child,
.portal-theme-dark .console-key-table th:last-child,
.portal-theme-dark .console-key-table td:last-child {
  background: rgba(15, 23, 42, 0.98);
}

.portal-theme-dark .console-key-table th:first-child,
.portal-theme-dark .console-key-table th:last-child {
  background: rgba(30, 41, 59, 0.98);
}

.portal-theme-dark .console-key-table tbody tr:hover > td:first-child,
.portal-theme-dark .console-key-table tbody tr:hover > td:last-child {
  background: rgba(30, 41, 59, 0.98);
}

.portal-theme-dark .console-usage-stat-card,
.portal-theme-dark .console-usage-filter-card,
.portal-theme-dark .console-usage-table-card {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
}

.portal-theme-dark .console-usage-stat-card p,
.portal-theme-dark .console-usage-stat-card small,
.portal-theme-dark .console-usage-filter-fields label,
.portal-theme-dark .console-usage-endpoint,
.portal-theme-dark .console-usage-user-agent {
  color: #cbd5e1;
}

.portal-theme-dark .console-usage-stat-card strong,
.portal-theme-dark .console-usage-key-name,
.portal-theme-dark .console-usage-model {
  color: #f8fafc;
}

.portal-theme-dark .console-usage-filter-fields input,
.portal-theme-dark .console-usage-filter-fields select,
.portal-theme-dark .console-usage-select-button,
.portal-theme-dark .console-usage-range-custom input {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
}

.portal-theme-dark .console-usage-select-button .material-symbols-outlined {
  color: #cbd5e1;
}

.portal-theme-dark .console-usage-select-menu,
.portal-theme-dark .console-usage-range-menu {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.portal-theme-dark .console-usage-select-menu button,
.portal-theme-dark .console-usage-range-grid button {
  color: #cbd5e1;
}

.portal-theme-dark .console-usage-select-menu button:hover,
.portal-theme-dark .console-usage-select-menu button.is-active {
  background: rgba(30, 41, 59, 0.92);
}

.portal-theme-dark .console-usage-range-grid button:hover,
.portal-theme-dark .console-usage-range-grid button.is-active {
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.18);
}

.portal-theme-dark .console-usage-range-custom {
  border-color: rgba(148, 163, 184, 0.24);
}

.portal-theme-dark .console-usage-range-custom label,
.portal-theme-dark .console-usage-range-custom > .material-symbols-outlined {
  color: #cbd5e1;
}

.portal-theme-dark .console-usage-table th:first-child,
.portal-theme-dark .console-usage-table td:first-child {
  background: rgba(15, 23, 42, 0.98);
}

.portal-theme-dark .console-usage-table th:first-child {
  background: rgba(30, 41, 59, 0.98);
}

.portal-theme-dark .console-usage-table tbody tr:hover > td:first-child {
  background: rgba(30, 41, 59, 0.98);
}

.portal-theme-dark .console-icon-button {
  background: rgba(15, 23, 42, 0.78);
}

.portal-theme-dark .console-key-toolbar input,
.portal-theme-dark .console-key-toolbar select,
.portal-theme-dark .console-key-form input,
.portal-theme-dark .console-key-form select,
.portal-theme-dark .console-key-form textarea,
.portal-theme-dark .console-key-page-size select {
  color: #f8fafc;
}

.portal-theme-dark .console-form-title h3,
.portal-theme-dark .console-key-form label,
.portal-theme-dark .console-key-name {
  color: #f8fafc;
}

.portal-theme-dark .console-form-title p,
.portal-theme-dark .console-key-pagination,
.portal-theme-dark .console-key-page-size,
.portal-theme-dark .console-key-actions button {
  color: #cbd5e1;
}

.portal-theme-dark .console-key-pagination {
  border-color: rgba(51, 65, 85, 0.95);
  background: rgba(15, 23, 42, 0.96);
}

.portal-theme-dark .console-key-page-summary,
.portal-theme-dark .console-key-page-size {
  color: #cbd5e1;
}

.portal-theme-dark .console-key-page-muted {
  color: #64748b;
}

.portal-theme-dark .console-key-page-size select {
  border-color: rgba(71, 85, 105, 0.95);
  background-color: rgba(15, 23, 42, 0.96);
  background-image:
    linear-gradient(45deg, transparent 50%, #94a3b8 50%),
    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
}

.portal-theme-dark .console-key-pager {
  border-color: rgba(71, 85, 105, 0.95);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.portal-theme-dark .console-key-pager button {
  border-color: rgba(71, 85, 105, 0.95);
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.96);
}

.portal-theme-dark .console-key-pager button:not(:disabled):hover {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.98);
}

.portal-theme-dark .console-key-pager button.is-active {
  color: #0f172a;
  border-color: rgba(226, 232, 240, 0.9);
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.portal-theme-dark .console-key-page-ellipsis {
  border-color: rgba(71, 85, 105, 0.95);
  color: #64748b;
}

.portal-theme-dark .console-key-preview {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.2);
}

.portal-theme-dark .console-group-badge {
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.18);
}

.portal-theme-dark .console-group-badge em {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
}

.portal-theme-dark .console-group-picker {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.portal-theme-dark .console-group-picker-search input {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
}

.portal-theme-dark .console-group-picker-button {
  color: #cbd5e1;
}

.portal-theme-dark .console-group-picker-button:hover {
  color: #adc6ff;
}

.portal-theme-dark .console-group-picker-option:hover,
.portal-theme-dark .console-group-picker-option.is-selected {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(30, 41, 59, 0.9);
}

.portal-theme-dark .console-group-picker-rate {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.2);
}

.portal-theme-dark .console-key-modal-backdrop {
  background: rgba(2, 6, 23, 0.68);
}

.portal-theme-dark .console-key-modal-card {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.portal-theme-dark .console-key-modal-head,
.portal-theme-dark .console-key-modal-foot {
  border-color: rgba(148, 163, 184, 0.24);
}

.portal-theme-dark .console-key-modal-foot {
  background: rgba(15, 23, 42, 0.78);
}

.portal-theme-dark .console-key-modal-head h3,
.portal-theme-dark .console-key-modal-field,
.portal-theme-dark .console-key-switch-row {
  color: #f8fafc;
}

.portal-theme-dark .console-key-modal-head p,
.portal-theme-dark .console-key-modal-field em {
  color: #cbd5e1;
}

.portal-theme-dark .console-key-modal-close {
  color: #cbd5e1;
}

.portal-theme-dark .console-key-modal-close:hover,
.portal-theme-dark .console-key-modal-secondary:hover {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.92);
}

.portal-theme-dark .console-key-modal-field input,
.portal-theme-dark .console-key-modal-field select,
.portal-theme-dark .console-key-modal-field textarea,
.portal-theme-dark .console-key-money-input,
.portal-theme-dark .console-key-modal-secondary,
.portal-theme-dark .console-key-modal-reveal {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
}

.portal-theme-dark .console-key-money-input > span {
  color: #cbd5e1;
}

.portal-theme-dark .console-key-switch-row input {
  background: #334155;
}

.portal-theme-dark .console-key-switch-row input:checked {
  background: #3b82f6;
}

.portal-theme-dark .console-copy-toast {
  border-color: rgba(96, 165, 250, 0.48);
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.94);
}

.portal-theme-dark .console-data-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .console-animate-in,
  .console-sparkline span,
  .console-live-pill span,
  .console-copy-toast {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .login-layout,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 4px;
    overflow-x: auto;
    max-width: 100%;
  }

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

  .console-sidebar {
    position: fixed;
    width: 66px;
    padding: 22px 10px;
  }

  .console-brand {
    justify-content: center;
    min-height: 66px;
    padding: 0 0 12px;
  }

  .console-brand div:last-child,
  .console-nav .nav-item span:last-child,
  .console-sidebar-footer span:not(.material-symbols-outlined) {
    max-width: 0;
    opacity: 0;
    pointer-events: none;
  }

  .console-nav .nav-item {
    justify-content: center;
    padding: 0;
  }

  .console-nav .nav-item.is-active::before {
    left: -8px;
  }

  .console-shell .main {
    margin-left: 66px;
  }

  .console-topbar {
    left: 66px;
    padding: 0 16px;
  }

  .console-top-link,
  .console-shell .session-label {
    display: none;
  }

  .console-shell .view:not(.console-view) {
    margin: 24px 18px;
    padding: 22px;
  }

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

  .login-intro h1 {
    font-size: 36px;
  }

  .console-content {
    padding: 22px;
  }

  .console-page-head,
  .console-head-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .console-page-head h2 {
    font-size: 30px;
  }

  .console-metrics,
  .console-monitor-summary,
  .console-usage-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .console-traffic-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .console-traffic-body {
    grid-template-columns: 1fr;
  }

  .console-overview-grid,
  .console-two-col,
  .console-filter-grid,
  .console-key-toolbar,
  .console-key-form-grid,
  .console-key-modal-two,
  .console-key-modal-three {
    grid-template-columns: 1fr;
  }

  .console-key-form-wide {
    grid-column: span 1;
  }

  .console-trend-main,
  .console-quota-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 620px) {
  .console-metrics,
  .console-monitor-summary,
  .console-usage-stats,
  .console-action-grid,
  .console-platform-metrics,
  .console-traffic-summary {
    grid-template-columns: 1fr;
  }

  .console-traffic-bars {
    gap: 6px;
    overflow-x: auto;
    grid-template-columns: repeat(14, 28px);
  }
}
