:root {
  color-scheme: dark;
  --bg: #020303;
  --surface: #181a1e;
  --surface-2: #22262c;
  --surface-3: #2a2f37;
  --line: #30333a;
  --muted: #9ba3af;
  --text: #eef3f8;
  --green: #18d47f;
  --green-2: #0ea96a;
  --blue: #4a8fff;
  --amber: #ffba21;
  --purple: #8b5cf6;
  --danger: #ef5b63;
  --radius: 8px;
  --max: 1440px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-width: 320px;
}

body::selection {
  background: rgba(24, 212, 127, 0.35);
}

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

button,
input {
  font: inherit;
}

.app-error {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 100;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  background: #ef4444;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 46px);
  overflow: hidden;
  color: #14233b;
  background:
    radial-gradient(circle at 18% 12%, rgba(23, 213, 183, 0.18), transparent 30%),
    radial-gradient(circle at 84% 86%, rgba(75, 94, 255, 0.2), transparent 31%),
    linear-gradient(135deg, #07101c, #101827 52%, #07111e);
}

.auth-stage {
  width: min(1440px, 100%);
  min-height: min(880px, calc(100vh - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(440px, 0.88fr);
  overflow: hidden;
  border: 1px solid rgba(132, 185, 255, 0.38);
  border-radius: 32px;
  background: #f9fbff;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42), 0 0 60px rgba(63, 120, 255, 0.15);
}

.auth-showcase {
  position: relative;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 4vw, 62px);
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 72% 34%, rgba(255, 255, 255, 0.26), transparent 30%),
    linear-gradient(145deg, #13c9a5 0%, #24b5c3 44%, #3f83f8 100%);
}

.auth-showcase::before,
.auth-showcase::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.auth-showcase::before {
  width: 580px;
  height: 580px;
  right: -250px;
  top: -220px;
}

.auth-showcase::after {
  width: 440px;
  height: 440px;
  left: -250px;
  bottom: -250px;
}

.auth-showcase-brand,
.auth-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  letter-spacing: 0.14em;
  font-size: 19px;
  font-weight: 650;
}

.auth-showcase-brand span:last-child,
.auth-brand span:last-child {
  white-space: nowrap;
}

.auth-logo {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(145deg, #6156ff, #0477ff 52%, #20d4c1);
  box-shadow: 0 8px 24px rgba(24, 87, 255, 0.28);
}

.auth-logo::before,
.auth-logo i::before,
.auth-logo i::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 3px solid #ffffff;
  transform: rotate(30deg);
}

.auth-logo i::before {
  inset: 5px 11px;
  border-width: 2px;
  opacity: 0.72;
}

.auth-logo i::after {
  inset: 13px 5px;
  border-width: 2px;
  opacity: 0.5;
}

.auth-showcase-copy {
  position: relative;
  z-index: 2;
  margin-top: clamp(54px, 7vh, 90px);
  max-width: 670px;
}

.auth-eyebrow,
.auth-step {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.auth-showcase-copy h1 {
  margin: 18px 0;
  font-size: clamp(42px, 4.3vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.auth-showcase-copy p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.75;
}

.auth-network {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 280px;
  margin-top: 32px;
}

.auth-editor-card {
  position: absolute;
  left: 0;
  top: 8px;
  width: min(57%, 410px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  background: rgba(11, 29, 54, 0.82);
  box-shadow: 0 24px 55px rgba(9, 62, 112, 0.3);
  backdrop-filter: blur(16px);
}

.auth-editor-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-editor-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.auth-editor-bar b {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.auth-editor-body {
  height: 154px;
  display: grid;
  grid-template-columns: 50px 1fr;
}

.auth-editor-nav {
  padding: 20px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-editor-nav i,
.auth-code-lines i {
  display: block;
  height: 7px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.auth-code-lines {
  padding: 24px 28px;
}

.auth-code-lines i:nth-child(1),
.auth-code-lines i:nth-child(4) { width: 76%; background: #32d8bf; }
.auth-code-lines i:nth-child(2),
.auth-code-lines i:nth-child(5) { width: 58%; background: #7e8fff; }
.auth-code-lines i:nth-child(3) { width: 88%; }
.auth-code-lines i:nth-child(6) { width: 42%; }

.auth-route-core {
  position: absolute;
  left: 47%;
  top: 112px;
  width: 142px;
  height: 82px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  color: #17304f;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(18, 61, 124, 0.24);
}

.auth-route-core .auth-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.auth-route-core b { font-size: 12px; }

.auth-route-line {
  position: absolute;
  left: calc(47% + 134px);
  width: 12%;
  height: 1px;
  background: rgba(255, 255, 255, 0.72);
  transform-origin: left;
}

.auth-route-line::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff;
}

.line-one { top: 128px; transform: rotate(-18deg); }
.line-two { top: 152px; }
.line-three { top: 176px; transform: rotate(18deg); }

.auth-model-node {
  position: absolute;
  right: 0;
  width: 116px;
  min-height: 50px;
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 13px;
  color: #17304f;
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 850;
}

.auth-model-node i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16c79a;
  box-shadow: 0 0 0 5px rgba(22, 199, 154, 0.12);
}

.auth-model-node small {
  grid-column: 2;
  color: #52647b;
  font-size: 10px;
}

.node-one { top: 66px; }
.node-two { top: 130px; }
.node-three { top: 194px; }

.auth-capabilities {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.auth-capabilities span {
  display: grid;
  gap: 4px;
}

.auth-capabilities b {
  color: #ffffff;
  font-size: 18px;
}

.auth-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 4vw, 62px);
  background: #ffffff;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e6ecf4;
}

.auth-brand {
  color: #12213a;
  font-size: 17px;
}

.auth-service-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52647b;
  font-size: 13px;
  font-weight: 750;
}

.auth-service-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16c784;
  box-shadow: 0 0 0 5px rgba(22, 199, 132, 0.12);
}

.auth-form-wrap {
  display: grid;
  align-items: center;
  flex: 1;
  padding: 44px 0 30px;
}

.auth-form {
  display: grid;
  gap: 20px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form h1 {
  margin: 4px 0 0;
  color: #12213a;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.auth-form label {
  display: grid;
  gap: 9px;
  color: #344760;
  font-size: 13px;
  font-weight: 800;
}

.auth-form label span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.auth-form label em {
  padding: 2px 7px;
  border-radius: 999px;
  color: #73849a;
  background: #eef3f9;
  font-size: 10px;
  font-style: normal;
}

.auth-form input {
  width: 100%;
  height: 60px;
  padding: 0 18px;
  border: 1px solid #ced8e7;
  border-radius: 14px;
  outline: none;
  color: #14233b;
  background: #fbfcff;
  font-size: 16px;
  font-weight: 650;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-form input::placeholder {
  color: #a6a9b3;
}

.auth-form input:focus {
  border-color: #347cff;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(52, 124, 255, 0.12), 0 10px 28px rgba(44, 91, 170, 0.08);
}

.auth-step {
  color: #347cff;
}

.auth-subtitle {
  margin: -8px 0 8px;
  color: #6f7f94;
  font-size: 15px;
  line-height: 1.65;
}

.auth-subtitle strong {
  color: #344760;
  overflow-wrap: anywhere;
}

.auth-form .auth-hint {
  margin: -5px 0 2px;
  color: #718197;
  font-size: 12px;
  font-weight: 650;
}

.auth-primary {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(100deg, #126dff, #5359ff 58%, #a23cff);
  box-shadow: 0 15px 32px rgba(59, 82, 255, 0.26);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 19px 38px rgba(59, 82, 255, 0.34);
}

.auth-action-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.auth-primary:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.auth-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  color: #60738d;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.auth-back .auth-action-icon {
  width: 17px;
  height: 17px;
}

.auth-mailbox-link {
  width: fit-content;
  margin-top: -12px;
  color: #176dff;
  font-size: 12px;
  font-weight: 800;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #8a98aa;
  font-size: 11px;
  text-align: center;
}

.auth-footer a {
  color: #42658f;
  font-weight: 750;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(18px, 11vw, 360px);
  background: #191919;
  border-bottom: 1px solid #2d2d2d;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #f5f8fb;
  justify-self: start;
}

.brand-mark {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #ff8a3d, #28dda2 62%, #5595ff);
  font-size: 17px;
  box-shadow: 0 0 22px rgba(24, 212, 127, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.4vw, 46px);
  font-weight: 800;
}

.nav-link {
  color: #f1f1f1;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green);
}

.account {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pill-user {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px 0 8px;
  background: #2a2a2b;
  color: #dfe3ea;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.pill-user span,
.profile-strip span {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #3a3a3d;
  color: #cbd1dc;
  font-size: 24px;
  line-height: 1;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  color: #dce3eb;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 32px 72px;
}

.section[hidden] {
  display: none;
}

.hero {
  text-align: center;
  min-height: auto;
}

.hero-kicker {
  margin: 0 auto;
  color: #98a8bd;
  font-size: clamp(18px, 1.45vw, 27px);
  font-weight: 800;
}

.hero-actions {
  margin-top: 45px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.primary-btn,
.outline-btn {
  min-width: 160px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
}

.primary-btn {
  background: linear-gradient(180deg, #3bd99e, #20bd7a);
  color: white;
  box-shadow: 0 10px 26px rgba(24, 212, 127, 0.3);
}

.outline-btn {
  border: 3px solid var(--green-2);
  color: var(--green);
}

.logo-marquee {
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(92px, 1fr));
  gap: 34px;
  align-items: center;
  color: rgba(255, 255, 255, 0.52);
}

.tool-logo {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.tool-logo span {
  font-size: 47px;
  line-height: 1;
  filter: grayscale(1);
}

.tool-logo b {
  color: rgba(255, 255, 255, 0.25);
  font-size: 16px;
}

.tool-logo.wide {
  min-width: 150px;
}

.intro {
  margin-top: 80px;
}

.intro h1,
.section-head h2,
.guide h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 54px);
  letter-spacing: 0;
}

.title-line {
  width: 92px;
  height: 6px;
  border-radius: 999px;
  margin: 23px auto 33px;
  background: linear-gradient(90deg, var(--green), rgba(24, 212, 127, 0.08));
}

.tabs {
  width: min(100%, 1100px);
  min-height: 93px;
  margin: 0 auto 75px;
  padding: 10px;
  background: #191919;
  border-radius: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tabs button {
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #9ca5b3;
  font-size: 23px;
  font-weight: 900;
  cursor: pointer;
}

.tabs button span {
  display: block;
  margin-top: 7px;
  font-size: 16px;
  font-weight: 600;
}

.tabs button b {
  display: block;
}

.tabs .selected {
  color: #f5f7fb;
  background: #383838;
}

.product-shot {
  width: min(100%, 760px);
  min-height: 600px;
  margin: 0 auto;
  border-radius: var(--radius);
  padding: 54px 58px;
  color: #12161c;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 10%, rgba(69, 83, 255, 0.74), transparent 30%),
    radial-gradient(circle at 0 0, rgba(210, 238, 255, 0.95), transparent 46%),
    linear-gradient(135deg, #f7fbff, #dceeff 48%, #7866ff);
}

.app-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 14px;
  color: white;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff8c3d, #28dca0, #6065ff);
  box-shadow: 0 9px 26px rgba(78, 96, 255, 0.28);
}

.product-shot h2 {
  margin: 0 0 50px;
  font-size: 44px;
}

.mock-window {
  height: 330px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
  text-align: left;
  color: #eef2f8;
  background: #07090d;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.mock-window aside {
  background: #536477;
  padding: 18px 14px;
}

.mock-window aside i {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: #ff6d5c;
}

.mock-window aside i:nth-child(2) {
  background: #ffcb4d;
}

.mock-window aside i:nth-child(3) {
  background: #54da74;
}

.mock-window aside p {
  margin: 14px 0 0;
  color: #dbe3ed;
  font-size: 12px;
}

.mock-window aside .current {
  padding: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
}

.mock-code {
  padding: 22px;
}

.mock-code div {
  height: 22px;
  margin-bottom: 34px;
  border-radius: 4px;
  background: #151922;
}

.mock-code pre {
  margin: 0;
  color: #d8e3f4;
  font-size: 14px;
  line-height: 1.7;
}

.section-head {
  text-align: center;
  margin-bottom: 70px;
}

.badge {
  width: max-content;
  margin: 0 auto 28px;
  padding: 12px 26px;
  border-radius: 999px;
  color: #9aa7b8;
  background: #202937;
  border: 2px solid #405066;
  font-weight: 800;
}

.plans {
  padding-top: 90px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 42px;
}

.plan-card {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1c20;
  border: 1px solid transparent;
  position: relative;
}

.plan-card.featured {
  border: 4px solid var(--green-2);
}

.popular {
  position: absolute;
  top: 58px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--green);
  font-weight: 900;
}

.plan-top {
  min-height: 260px;
  padding: 58px 44px 34px;
  text-align: center;
  background: #193126;
}

.plan-top h3 {
  margin: 0 0 35px;
  font-size: 32px;
}

.plan-top h3 span {
  display: inline-flex;
  margin-left: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--green);
  background: rgba(24, 212, 127, 0.13);
  font-size: 14px;
  vertical-align: middle;
}

.plan-top h3 .plan-name {
  display: inline;
  margin-left: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
}

.plan-top strong {
  display: block;
  color: #26c978;
  font-size: clamp(35px, 4vw, 62px);
  line-height: 1;
  white-space: nowrap;
}

.plan-top small,
.plan-top p {
  color: #a5adba;
}

.plan-top p {
  margin: 22px 0 0;
  font-size: 18px;
}

.plan-card ul {
  margin: 0;
  padding: 20px 44px;
  list-style: none;
  flex: 1;
}

.plan-card li {
  padding: 18px 0;
  border-bottom: 1px solid #2b2d33;
  color: #cbd2dc;
  font-size: 17px;
}

.plan-card li::before {
  content: "✓";
  margin-right: 23px;
  color: var(--green);
  font-weight: 900;
}

.plan-card button {
  margin: auto 44px 44px;
  height: 62px;
  border: 0;
  border-radius: 999px;
  background: #dbe3ec;
  color: #606975;
  font-size: 20px;
  font-weight: 900;
}

.plan-card button:disabled {
  background: #abb2bb;
}

.plan-card.compact {
  min-height: 260px;
}

.plan-card.compact .plan-top {
  min-height: 260px;
}

.pricing .section-head h2 span {
  color: var(--green);
}

.pricing .section-head h2 .title-rest {
  color: inherit;
}

.pricing .section-head > p:last-child {
  color: #aab5c5;
  font-weight: 800;
}

.compact-row {
  margin-top: 90px;
  grid-template-columns: repeat(8, 1fr);
}

.price-tools {
  margin-top: 90px;
}

.segmented {
  width: max-content;
  margin: 0 auto 50px;
  padding: 8px;
  background: #171719;
  border-radius: 999px;
}

.segmented button,
.filters button {
  border: 0;
  color: #9ca6b7;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.segmented button {
  min-width: 150px;
  height: 44px;
  border-radius: 999px;
}

.segmented .selected {
  color: #eef3f8;
  background: #3a3a3c;
}

.filters {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.filters label {
  width: min(100%, 360px);
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: #8894a5;
  border-radius: 8px;
  background: #161719;
}

.filters input {
  width: 100%;
  border: 0;
  outline: none;
  color: #dfe7f1;
  background: transparent;
}

.filters .selected {
  color: var(--green);
}

.table-wrap {
  margin-top: 40px;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #31343a;
  background: #1a1c20;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #303238;
  color: #a8b2c0;
}

th {
  font-weight: 800;
}

td b {
  display: inline-block;
  margin: 0 10px 8px 0;
  color: #e8edf5;
  font-size: 18px;
}

td em {
  margin-right: 5px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--green);
  background: rgba(24, 212, 127, 0.15);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

td em.flag {
  color: #d168ff;
  background: rgba(158, 76, 255, 0.18);
}

.model-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-right: 12px;
  border-radius: 8px;
  background: #25272c;
  color: #858c98;
}

.blue {
  color: var(--blue);
  font-weight: 900;
}

.amber {
  color: var(--amber);
  font-weight: 900;
}

.green {
  color: var(--green);
  font-weight: 900;
}

.guide {
  max-width: 1460px;
}

.guide h2 {
  font-size: clamp(34px, 3.1vw, 54px);
  margin-bottom: 60px;
}

.guide hr {
  border: 0;
  height: 1px;
  background: #232323;
  margin-bottom: 70px;
}

.guide article {
  max-width: 1320px;
  margin-bottom: 70px;
}

.guide h3 {
  margin: 0 0 28px;
  font-size: 30px;
}

.guide h4 {
  margin: 32px 0 26px;
  font-size: 22px;
}

.guide p,
.guide blockquote {
  color: #a5aab3;
  font-size: 18px;
  line-height: 1.9;
}

.guide blockquote {
  margin: 0 0 26px;
  padding: 8px 0 8px 24px;
  border-left: 5px solid #275a91;
}

.guide a {
  color: var(--green);
  font-weight: 900;
}

kbd {
  padding: 5px 11px;
  border-radius: 6px;
  background: #1c2634;
  color: #eef5ff;
  font-weight: 800;
}

.doc-card {
  height: 140px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 30px;
  border-radius: 8px;
  background: #15161a;
  border: 1px solid #2a2d34;
  color: #edf3fa;
}

.doc-card span {
  color: #8ab8ff;
  font-size: 30px;
}

.doc-card b,
.doc-card small {
  display: block;
}

.doc-card small {
  color: #8994a4;
  margin-top: 8px;
}

.doc-card i {
  color: #798394;
  font-style: normal;
  font-size: 22px;
}

.code-block {
  padding: 28px;
  border-radius: 8px;
  background: #111317;
  color: #d7e2f0;
  border: 1px solid #2c3038;
  white-space: pre-line;
  line-height: 1.8;
}

.dashboard {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  max-width: 1500px;
  padding-top: 28px;
}

.side-menu {
  position: sticky;
  top: 108px;
  align-self: start;
  padding: 12px;
  border-radius: 24px;
  background: #191d22;
}

.side-menu a {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  color: #a9b1bd;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
}

.side-menu .active {
  color: #f4f8fc;
  background: #25282f;
}

.side-menu span {
  color: var(--green);
}

.profile-strip {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  border-radius: 22px;
  background: #202228;
}

.profile-strip div {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 21px;
}

.profile-strip button {
  height: 38px;
  border: 0;
  border-radius: 12px;
  padding: 0 15px;
  color: #ff7379;
  background: rgba(239, 91, 99, 0.14);
  font-weight: 800;
}

.metric-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.key-quick {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: #202228;
}

.key-quick > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.key-quick b,
.key-quick small {
  display: block;
}

.key-quick small {
  margin-top: 4px;
  color: #929baa;
}

.key-quick button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  color: var(--green);
  background: rgba(24, 212, 127, 0.13);
  font-weight: 900;
}

.key-quick code {
  grid-column: 1 / -1;
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #d8e3f4;
  background: #111317;
  overflow-wrap: anywhere;
}

.metric-row article,
.mini,
.credit-grid div {
  min-height: 82px;
  border-radius: 14px;
  background: #282d35;
  padding: 16px;
}

.metric-row span,
.mini span,
.credit-grid span,
.quota span {
  display: block;
  color: #929baa;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.router-status {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(460px, 1.2fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: #202228;
}

.router-status > div:first-child {
  display: flex;
  gap: 14px;
  align-items: center;
}

.router-status b,
.router-status small {
  display: block;
}

.router-status small {
  margin-top: 5px;
  color: #929baa;
}

.router-status code {
  padding: 2px 6px;
  border-radius: 6px;
  color: #d8e3f4;
  background: #111317;
}

.router-status dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.router-status dl div {
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: #282d35;
}

.router-status dt {
  color: #929baa;
  font-size: 12px;
  font-weight: 800;
}

.router-status dd {
  margin: 6px 0 0;
  overflow: hidden;
  color: #eef3f8;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.router-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  vertical-align: middle;
}

.router-badge.mock {
  color: var(--amber);
  background: rgba(255, 186, 33, 0.14);
}

.router-badge.live {
  color: var(--green);
  background: rgba(24, 212, 127, 0.14);
}

.metric-row small,
.credit-grid small {
  color: #9aa3b0;
  font-size: 14px;
}

.dash-main h3 {
  margin: 18px 0 12px;
  font-size: 22px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dash-grid > .panel {
  max-height: 520px;
  overflow: auto;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(520px, 1.05fr);
  gap: 16px;
}

.usage-panel {
  margin-top: 16px;
}

.ops-grid .usage-panel {
  margin-top: 16px;
}

.usage-table-wrap {
  max-height: 300px;
  overflow: auto;
}

.usage-table {
  min-width: 760px;
}

.key-table {
  min-width: 900px;
}

.key-table td:first-child b,
.key-table td:first-child small {
  display: block;
}

.key-table td:first-child small {
  margin-top: 6px;
  color: #8e99a9;
  font-size: 12px;
}

.key-table code {
  padding: 6px 8px;
  border-radius: 8px;
  color: #d8e3f4;
  background: #111317;
}

.key-table button {
  min-width: 56px;
  margin-right: 8px;
}

.key-table .danger-action {
  color: var(--danger);
  background: rgba(239, 91, 99, 0.13);
}

.usage-table em {
  padding: 4px 8px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
}

.usage-table .status-ok {
  color: var(--green);
  background: rgba(24, 212, 127, 0.13);
}

.usage-table .status-bad {
  color: var(--danger);
  background: rgba(239, 91, 99, 0.13);
}

.panel {
  border-radius: 22px;
  background: #202228;
  overflow: hidden;
}

.panel header {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid #2c3038;
}

.panel header div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
}

.panel header small {
  grid-column: 2;
  color: #929baa;
}

.panel-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.purple {
  color: #9b90ff;
  background: rgba(105, 91, 255, 0.2);
}

.green-icon {
  color: var(--green);
  background: rgba(24, 212, 127, 0.16);
}

.panel button,
.balance button {
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--green);
  background: rgba(24, 212, 127, 0.13);
  font-weight: 900;
}

.subscription-list {
  padding: 20px 24px 12px;
  display: grid;
  gap: 16px;
}

.subscription-list > div {
  min-height: 86px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-radius: 14px;
  background: #2a2f37;
}

.subscription-list em {
  padding: 4px 8px;
  border-radius: 999px;
  background: #25c9bb;
  color: white;
  font-style: normal;
}

.subscription-list small {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: #8e99a9;
}

mark {
  color: #ff8d20;
  background: transparent;
  font-weight: 900;
}

mark.ok {
  color: var(--green);
}

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

.quota {
  position: relative;
  min-height: 120px;
  padding: 20px;
  border-radius: 14px;
  background: #2a2f37;
}

.quota b,
.mini b,
.credit-grid b {
  font-size: 22px;
}

.quota i {
  display: block;
  height: 8px;
  margin-top: 20px;
  border-radius: 999px;
  background: #37526d;
  overflow: hidden;
}

.quota u {
  display: block;
  height: 100%;
  background: var(--green);
}

.quota em {
  position: absolute;
  right: 18px;
  bottom: 45px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #1c1f25;
  color: #d7dde7;
  font-style: normal;
}

.balance {
  margin: 24px;
  min-height: 106px;
  position: relative;
  padding: 26px;
  border-radius: 14px;
  background: #1d382a;
}

.balance strong {
  display: block;
  font-size: 42px;
}

.balance span {
  color: #97a8a0;
}

.balance div {
  position: absolute;
  right: 24px;
  top: 42px;
  display: flex;
  gap: 10px;
}

.balance .ghost {
  color: #c1cad7;
  background: transparent;
}

.credit-grid {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.credit-grid div:nth-child(n+3) {
  min-height: 98px;
}

.chat {
  position: fixed;
  right: 38px;
  bottom: 36px;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  color: #082015;
  background: #19d26f;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

body[data-page="dashboard"] {
  background: #000000;
}

body[data-page="dashboard"] .topbar {
  display: none;
}

.extracted-dashboard {
  --dash-bg: #000000;
  --dash-menu: #161a21;
  --dash-panel: #202127;
  --dash-card: #2a2c35;
  --dash-muted: #9aa1ae;
  --dash-text: #f4f6fb;
  --dash-line: rgba(255, 255, 255, 0.05);
  --dash-blue: #89bdff;
  --dash-green: #12df89;
  max-width: 1560px;
  min-height: 100vh;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 56px;
  padding: 8px 28px 96px;
  background: var(--dash-bg);
}

.extracted-dashboard .profile-strip {
  display: none;
}

.extracted-dashboard .side-menu {
  top: 132px;
  width: 360px;
  padding: 12px;
  border: 0;
  border-radius: 32px;
  background: var(--dash-menu);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.extracted-dashboard .side-menu a {
  height: 86px;
  gap: 22px;
  padding: 0 30px;
  border: 4px solid transparent;
  border-radius: 24px;
  color: #a9afb9;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
}

.extracted-dashboard .side-menu .active {
  color: var(--dash-text);
  background: #202229;
  border-color: var(--dash-blue);
  box-shadow: 0 0 0 2px rgba(137, 189, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.extracted-dashboard .side-menu span {
  width: 36px;
  display: inline-grid;
  place-items: center;
  color: #11e093;
  font-size: 34px;
  font-weight: 800;
}

.extracted-dashboard .dash-main {
  min-width: 0;
}

.extracted-dashboard .metric-row {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 28px;
}

.extracted-dashboard .metric-row article {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 34px;
  border-radius: 36px;
  background: var(--dash-card);
}

.extracted-dashboard .metric-row span {
  margin-bottom: 18px;
  color: var(--dash-muted);
  font-size: 28px;
  font-weight: 750;
}

.extracted-dashboard .metric-row strong {
  color: var(--dash-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 44px;
  font-weight: 950;
  letter-spacing: 0;
}

.extracted-dashboard .metric-row small {
  color: #9aa1ae;
  font-size: 24px;
}

.extracted-dashboard .dash-main > h3 {
  margin: 52px 0 28px;
  color: var(--dash-text);
  font-size: 30px;
  font-weight: 950;
}

.extracted-dashboard .dash-grid {
  grid-template-columns: 1fr;
  gap: 28px;
}

.extracted-dashboard .dash-grid > .panel {
  max-height: none;
  overflow: hidden;
}

.extracted-dashboard .credit-panel {
  display: none;
}

.extracted-dashboard .panel {
  border-radius: 36px;
  background: var(--dash-panel);
}

.extracted-dashboard .panel header {
  min-height: 150px;
  padding: 38px 48px;
  border-bottom: 1px solid var(--dash-line);
}

.extracted-dashboard .panel header div {
  column-gap: 24px;
}

.extracted-dashboard .panel header b {
  color: var(--dash-text);
  font-size: 28px;
  font-weight: 950;
}

.extracted-dashboard .panel header small {
  margin-top: 8px;
  color: var(--dash-muted);
  font-size: 22px;
  font-weight: 720;
}

.extracted-dashboard .panel-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  font-size: 34px;
}

.extracted-dashboard .purple {
  color: #7f83ff;
  background: rgba(92, 92, 190, 0.28);
}

.extracted-dashboard .green-icon {
  color: var(--dash-green);
  background: rgba(18, 223, 137, 0.14);
}

.extracted-dashboard .panel button,
.extracted-dashboard .key-quick button,
.extracted-dashboard .balance button {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 12px;
  color: var(--dash-green);
  background: rgba(18, 223, 137, 0.12);
  font-size: 22px;
  font-weight: 950;
}

.extracted-dashboard .subscription-list {
  padding: 50px 48px 24px;
}

.extracted-dashboard .subscription-list > div {
  min-height: 160px;
  padding: 34px;
  border-radius: 30px;
  background: var(--dash-card);
}

.extracted-dashboard .subscription-list b {
  color: var(--dash-text);
  font-size: 30px;
  font-weight: 950;
}

.extracted-dashboard .subscription-list strong {
  color: var(--dash-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 30px;
  font-weight: 950;
}

.extracted-dashboard .subscription-list em {
  margin-left: 10px;
  padding: 8px 14px;
  background: #20c7b6;
  font-size: 22px;
}

.extracted-dashboard .subscription-list small {
  color: #a0a7b5;
  font-size: 22px;
  font-weight: 780;
}

.extracted-dashboard .quota-grid {
  padding: 0 48px 48px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.extracted-dashboard .quota,
.extracted-dashboard .mini,
.extracted-dashboard .credit-grid div {
  min-height: 180px;
  padding: 28px;
  border-radius: 28px;
  background: var(--dash-card);
}

.extracted-dashboard .quota span,
.extracted-dashboard .mini span,
.extracted-dashboard .credit-grid span {
  color: var(--dash-muted);
  font-size: 24px;
  font-weight: 820;
}

.extracted-dashboard .quota b,
.extracted-dashboard .mini b,
.extracted-dashboard .credit-grid b {
  color: var(--dash-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 34px;
  font-weight: 950;
}

.extracted-dashboard .quota i {
  height: 16px;
  margin-top: 26px;
  background: #2b4665;
}

.extracted-dashboard .quota em {
  right: 28px;
  bottom: 64px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #1c1e24;
  font-size: 20px;
}

.extracted-dashboard .quota:first-child u {
  background: #31506e;
}

.extracted-dashboard .quota:nth-child(2) u {
  background: var(--dash-green);
}

.extracted-dashboard .router-status,
.extracted-dashboard .key-quick,
.extracted-dashboard .ops-grid {
  margin-top: 28px;
}

.extracted-dashboard .router-status,
.extracted-dashboard .key-quick {
  border-radius: 28px;
  background: var(--dash-panel);
}

.extracted-dashboard .router-status {
  grid-template-columns: 1fr;
  padding: 28px;
}

.extracted-dashboard .key-quick {
  padding: 28px;
}

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

.extracted-dashboard .usage-panel {
  margin-top: 0;
}

.extracted-dashboard .chat,
body[data-page="dashboard"] .chat {
  width: 92px;
  height: 92px;
  right: 40px;
  bottom: 28px;
  background: #1fca5b;
}

body.theme-light {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f7fb;
  --surface-3: #edf3f8;
  --line: #e4eaf1;
  --muted: #6b7482;
  --text: #182232;
  background: #ffffff;
  color: var(--text);
}

body.theme-light .topbar {
  background: rgba(250, 252, 255, 0.94);
  border-bottom-color: #e5ebf2;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

body.theme-light .brand,
body.theme-light .nav-link {
  color: #1f2937;
}

body.theme-light .nav-link:hover,
body.theme-light .nav-link.active {
  color: var(--green);
}

body.theme-light .pill-user {
  color: #263344;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

body.theme-light .pill-user span,
body.theme-light .profile-strip span {
  color: #5a6573;
  background: #f2f6fb;
}

body.theme-light .icon-btn {
  color: #263344;
}

body.theme-light .hero-kicker,
body.theme-light .pricing .section-head > p:last-child,
body.theme-light .guide p,
body.theme-light .guide blockquote,
body.theme-light .tabs button,
body.theme-light .plan-top p,
body.theme-light .plan-top small,
body.theme-light .metric-row span,
body.theme-light .mini span,
body.theme-light .credit-grid span,
body.theme-light .quota span,
body.theme-light .panel header small,
body.theme-light .subscription-list small,
body.theme-light .balance span,
body.theme-light .credit-grid small {
  color: var(--muted);
}

body.theme-light .logo-marquee {
  color: rgba(17, 24, 39, 0.46);
}

body.theme-light .tool-logo span {
  filter: none;
}

body.theme-light .tool-logo b {
  color: rgba(17, 24, 39, 0.4);
}

body.theme-light .tabs,
body.theme-light .segmented {
  background: #f2f4f7;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

body.theme-light .tabs .selected,
body.theme-light .segmented .selected {
  color: #1f2937;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

body.theme-light .badge {
  color: #64748b;
  background: #eef5ff;
  border-color: #d9e5f4;
}

body.theme-light .plan-card {
  background: #ffffff;
  border-color: #eef2f7;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
}

body.theme-light .plan-card.featured {
  border-color: var(--green-2);
}

body.theme-light .plan-top {
  background: linear-gradient(180deg, #effaf5, #f8fcfa);
}

body.theme-light .plan-top h3 {
  color: #1f2937;
}

body.theme-light .plan-top h3 span,
body.theme-light td em {
  background: rgba(24, 212, 127, 0.11);
}

body.theme-light .plan-card li {
  color: #3f4a59;
  border-bottom-color: #edf1f6;
}

body.theme-light .plan-card button {
  color: #5b6572;
  background: #e5ebf2;
}

body.theme-light .plan-card button:not(:disabled):hover {
  color: #0f2a1e;
  background: #d9f8e9;
}

body.theme-light .filters label,
body.theme-light .table-wrap,
body.theme-light .doc-card,
body.theme-light .profile-strip,
body.theme-light .metric-row article,
body.theme-light .router-status,
body.theme-light .key-quick,
body.theme-light .panel,
body.theme-light .side-menu {
  background: #f5f8fb;
  border-color: var(--line);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.05);
}

body.theme-light .filters input {
  color: #1f2937;
}

body.theme-light .segmented button,
body.theme-light .filters button,
body.theme-light .side-menu a {
  color: #566273;
}

body.theme-light .filters .selected {
  color: var(--green);
}

body.theme-light table {
  background: #ffffff;
}

body.theme-light th,
body.theme-light td {
  color: #647084;
  border-bottom-color: #e7edf4;
}

body.theme-light td b,
body.theme-light .doc-card,
body.theme-light .profile-strip,
body.theme-light .metric-row strong,
body.theme-light .panel,
body.theme-light .quota b,
body.theme-light .mini b,
body.theme-light .credit-grid b {
  color: #182232;
}

body.theme-light .model-icon {
  color: #9aa4b2;
  background: #f2f4f7;
}

body.theme-light .guide hr {
  background: #e7edf4;
}

body.theme-light .guide blockquote {
  border-left-color: #c7d5e8;
}

body.theme-light kbd {
  color: #263344;
  background: #eef4fb;
  border: 1px solid #d8e2ee;
}

body.theme-light .code-block {
  color: #263344;
  background: #f7fafc;
  border-color: #dfe7f0;
}

body.theme-light .key-quick code {
  color: #263344;
  background: #f7fafc;
}

body.theme-light .router-status code {
  color: #263344;
  background: #f7fafc;
}

body.theme-light .router-status dl div {
  background: #edf3f8;
}

body.theme-light .router-status dd {
  color: #182232;
}

body.theme-light .key-table code {
  color: #263344;
  background: #f7fafc;
}

body.theme-light .side-menu .active {
  color: #172033;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

body.theme-light .panel header {
  border-bottom-color: #e5ecf3;
}

body.theme-light .subscription-list > div,
body.theme-light .quota,
body.theme-light .mini,
body.theme-light .credit-grid div {
  background: #edf3f8;
}

body.theme-light .quota i {
  background: #dae6f1;
}

body.theme-light .quota em {
  color: #425066;
  background: #ffffff;
}

body.theme-light .balance {
  background: linear-gradient(180deg, #eafff5, #f4fbf8);
}

body.theme-light .balance .ghost {
  color: #536173;
}

body[data-page="dashboard"].theme-light {
  background: #000000;
  color: #f4f6fb;
}

body[data-page="dashboard"] .extracted-dashboard .side-menu,
body[data-page="dashboard"] .extracted-dashboard .panel,
body[data-page="dashboard"] .extracted-dashboard .router-status,
body[data-page="dashboard"] .extracted-dashboard .key-quick {
  background: var(--dash-panel);
}

body[data-page="dashboard"] .extracted-dashboard .side-menu {
  background: var(--dash-menu);
}

body[data-page="dashboard"] .extracted-dashboard .metric-row article,
body[data-page="dashboard"] .extracted-dashboard .subscription-list > div,
body[data-page="dashboard"] .extracted-dashboard .quota,
body[data-page="dashboard"] .extracted-dashboard .mini,
body[data-page="dashboard"] .extracted-dashboard .credit-grid div {
  background: var(--dash-card);
}

body[data-page="dashboard"] .extracted-dashboard .metric-row strong,
body[data-page="dashboard"] .extracted-dashboard .subscription-list b,
body[data-page="dashboard"] .extracted-dashboard .subscription-list strong,
body[data-page="dashboard"] .extracted-dashboard .quota b,
body[data-page="dashboard"] .extracted-dashboard .mini b {
  color: var(--dash-text);
}

/* 登录页视觉层：同源透明插画仅承载材质，表单与连接标签保持原生 DOM。 */
.auth-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  padding: 20px 20px 12px;
  gap: 14px;
  color: #101b45;
  color-scheme: light;
  background:
    radial-gradient(ellipse at 5% 20%, #dfebfa 0, transparent 50%),
    radial-gradient(ellipse at 90% 10%, #e9def8 0, transparent 52%),
    linear-gradient(125deg, #edf3fc, #e5eafb 55%, #eee6fa);
}
.auth-stage {
  position: relative;
  width: min(1600px, 100%);
  min-height: 900px;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 3.5vw, 60px);
  padding: 30px clamp(30px, 5vw, 80px) 46px 32px;
  border: 1px solid #ffffff;
  border-radius: 34px;
  background: radial-gradient(ellipse at 28% 62%, #a9bffd42, transparent 47%), linear-gradient(120deg, #ffffff55, #edf2ff38 55%, #ffffff44);
  box-shadow: inset 0 0 40px #ffffff44, 0 24px 70px #647ba414;
}
.auth-stage::before, .auth-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.auth-stage::before {
  inset: 0;
  background:
    radial-gradient(circle at 5% 40%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 38% 3%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 93% 61%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 27% 94%, #fff 0 2px, transparent 3px);
}
.auth-stage::after { display: none; }
.auth-ambient-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .42; pointer-events: none; }
.auth-showcase {
  align-self: stretch;
  min-height: 0;
  padding: 0;
  overflow: visible;
  color: #101b45;
  background: transparent;
}
.auth-showcase::before, .auth-showcase::after { display: none; }
.auth-showcase-brand {
  gap: 12px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .025em;
}
.auth-logo-image { display: block; width: 52px; height: 52px; flex: none; }
.auth-showcase-copy { max-width: none; margin: 68px 0 0; text-align: center; }
.auth-showcase-copy h1 {
  margin: 0;
  font-size: clamp(25px, 2.35vw, 38px);
  line-height: 1.45;
  letter-spacing: -.045em;
  font-weight: 750;
}
.auth-showcase-copy p { max-width: none; margin: 14px 0 0; color: #5c6b8c; font-size: 18px; line-height: 1.7; }
.auth-network { flex: none; height: auto; aspect-ratio: 2 / 1; min-height: 0; margin-top: 26px; }
.auth-model-stack, .auth-feature-stack {
  position: absolute; z-index: 4;
  display: flex; flex-direction: column; justify-content: space-between;
}
/* 标签中心对齐场景中的光带端点；场景与标签共用2:1坐标比例。 */
.auth-model-stack { top: calc(15% - 31px); bottom: calc(21% - 31px); left: 2%; }
.auth-feature-stack { top: calc(22% - 31px); bottom: calc(34% - 31px); right: 0; }
.auth-model-node, .auth-feature-stack > span {
  position: relative; inset: auto; width: auto; min-height: 62px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid #fffffff2; border-radius: 14px;
  color: #1f2a50; background: linear-gradient(135deg, #ffffff98, #ffffff48);
  box-shadow: inset 0 1px 8px #ffffff70, 0 12px 26px #7490b915;
  backdrop-filter: blur(12px);
  font-size: 14px; font-weight: 450; white-space: nowrap;
}
.auth-model-node .auth-ui-icon, .auth-feature-stack .auth-ui-icon {
  width: 25px; height: 25px; flex: none; color: #6288ff;
}
.auth-feature-stack b { font-size: 14px; font-weight: 550; }
.auth-route-map {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; transform: none;
}
.auth-route-map::before, .auth-route-map::after { display: none; }
.auth-route-core {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; clip-path: none;
  background: transparent; box-shadow: none; transform: none;
}
.auth-router-core-art {
  display: block; width: 100%; height: 100%; object-fit: contain;
  /* 同色场景边缘渐隐，保留完整光带与折射，不再拼接单独的连线或底座。 */
  -webkit-mask-image: radial-gradient(ellipse 75% 50% at center, #000 65%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 50% at center, #000 65%, transparent 100%);
}
.auth-capabilities {
  width: calc(100% - 20px); min-height: 112px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin: 22px auto 0; padding: 24px 14px;
  border: 1px solid #fffffff0; border-radius: 23px;
  background: linear-gradient(135deg, #ffffff8a, #ffffff50); box-shadow: inset 0 0 14px #ffffff50;
}
.auth-capabilities span {
  grid-template-columns: 38px 1fr; align-content: center; gap: 5px 10px;
  padding: 0 12px; border-right: 1px solid #becceb60;
}
.auth-capabilities span:last-child { border-right: 0; }
.auth-capabilities .auth-ui-icon { grid-row: 1 / span 2; width: 35px; height: 35px; color: #7193ff; align-self: center; }
.auth-capabilities b { color: #16224b; font-size: 16px; font-weight: 600; }
.auth-capabilities small { color: #5f6c89; font-size: 12px; white-space: nowrap; }
.auth-card {
  position: relative; z-index: 3;
  align-self: center; min-height: 764px; margin-top: 24px;
  padding: 56px clamp(26px, 3.25vw, 52px) 28px;
  border: 1px solid #fff; border-radius: 30px;
  background: linear-gradient(150deg, #ffffffb0, #f8faff85);
  box-shadow: inset 0 0 22px #ffffffad, 0 24px 65px #7c83bc18, -8px 0 30px #97cbff14;
  backdrop-filter: blur(24px); transform: none;
}
.auth-form-wrap { flex: 1; align-items: start; padding: 0 0 28px; }
.auth-form { max-width: none; width: 100%; gap: 28px; margin: 0; }
.auth-form h1 { margin: 0; color: #101b45; font-size: clamp(23px, 1.9vw, 30px); font-weight: 700; text-align: center; letter-spacing: -.035em; }
.auth-subtitle { margin: -14px 0 0; color: #596986; font-size: 15px; text-align: center; }
.auth-steps {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  list-style: none; padding: 0 42px; margin: 10px 0 6px;
}
.auth-steps::before { content: ""; order: 1; height: 1px; flex: 1; background: #ccd5e9; }
.auth-steps li { display: flex; align-items: center; gap: 10px; color: #6c7890; font-size: 14px; }
.auth-steps li:last-child { order: 2; }
.auth-steps b { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #c9d2e8; border-radius: 50%; font-weight: 500; font-size: 15px; }
.auth-steps [aria-current] { color: #16264e; }
.auth-steps [aria-current] b { color: #fff; background: linear-gradient(120deg, #3785ff, #7861ff); border-color: transparent; }
.auth-form label { gap: 10px; color: #17264c; font-size: 15px; font-weight: 500; }
.auth-form input { height: 56px; padding: 0 16px; border: 1px solid #cbd4e8; border-radius: 11px; background: #ffffff8a; font-size: 16px; font-weight: 400; }
.auth-form input::placeholder { color: #7a87a1; }
.auth-form input:focus { border-color: #708af8; background: #ffffffc9; box-shadow: 0 0 0 3px #657cff16; }
.auth-form .auth-hint { margin: -8px 0; color: #70596b; font-size: 12px; line-height: 1.6; font-weight: 500; }
/* 空反馈不占据大块空间；加载与错误文案仍使用同一个 live region。 */
.auth-form .auth-hint:empty { display: none; }
.auth-primary {
  position: relative; min-height: 60px; justify-content: center; margin-top: 4px;
  border-radius: 11px; font-size: 16px; font-weight: 550;
  background: linear-gradient(105deg, #3e86ff, #6867ff 58%, #9759ff);
  box-shadow: 0 12px 25px #6666ef24;
}
.auth-primary .auth-action-icon { position: absolute; right: 20px; width: 20px; height: 20px; }
.auth-next-step { margin: -4px 0 0; text-align: center; font-size: 14px; color: #5b6887; }
.auth-security { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 24px 0; border-top: 1px solid #ccd7eb90; color: #5c6b87; font-size: 14px; }
.auth-security .auth-ui-icon { width: 24px; height: 24px; color: #6e80a4; }
.auth-security b { font-weight: 400; }
.auth-footer { gap: 36px; font-size: 13px; }
.auth-footer i { width: 1px; height: 12px; background: #c6d1e4; }
.auth-footer a { font-weight: 400; color: #52617f; padding: 8px 0; }
.auth-shell a:focus-visible, .auth-shell button:focus-visible { outline: 3px solid #647eff; outline-offset: 4px; }
.auth-disclaimer { margin: 0; text-align: center; color: #5b6b8c; font-size: 12px; line-height: 1.6; }
.auth-code-form { gap: 22px; }
.auth-otp { min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; padding: 0; border: 0; }
.auth-form .auth-otp input { width: 100%; height: 60px; padding: 0; font-size: 23px; text-align: center; }
.auth-form .auth-otp input.is-filled { border-color: #8296ee; background: #ffffffc9; }
.auth-code-progress { height: 3px; border-radius: 3px; background: #c6d1e54d; overflow: hidden; }
.auth-code-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #368bff, #9c71fb); transition: width .18s; }
.auth-code-status[data-state="error"] { color: #b33248; }
.auth-code-status[data-state="success"] { color: #187756; }
.auth-code-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-code-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 4px; border: 0; border-radius: 8px; background: transparent; color: #536581; font-size: 12px; cursor: pointer; }
.auth-code-actions button:hover:not(:disabled) { background: #e1e8fb; }
.auth-code-actions button:disabled { opacity: .6; cursor: not-allowed; }
.auth-code-actions .auth-action-icon { width: 16px; height: 16px; }
.auth-console-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; color: #596b88; font-size: 12px; }
.auth-console-note .auth-ui-icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
  .auth-shell *, .auth-shell *::before, .auth-shell *::after { transition: none !important; }
}

@media (max-width: 1180px) {
  .topbar {
    padding: 0 24px;
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    justify-content: center;
    gap: 18px;
  }

  .logo-marquee,
  .compact-row {
    grid-template-columns: repeat(5, 1fr);
  }

  .plan-grid,
  .ops-grid,
  .router-status,
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .dashboard .metric-row,
  .dashboard .quota-grid,
  .dashboard .credit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .side-menu {
    position: static;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 801px) and (max-width: 1200px) {
  .auth-stage {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
    gap: 20px;
    padding: 28px;
  }

  .auth-showcase {
    padding: 0;
  }

  .auth-network {
    height: auto;
    transform: none;
  }

  .auth-model-node, .auth-feature-stack > span { font-size: 10px; padding: 8px; gap: 5px; min-height: 48px; }
  .auth-model-node .auth-ui-icon, .auth-feature-stack .auth-ui-icon { width: 20px; height: 20px; }
  .auth-feature-stack b { font-size: 11px; }
  .auth-showcase-copy { margin-top: 72px; }
  .auth-showcase-copy h1 { font-size: 27px; }

  .auth-capabilities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auth-capabilities span {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0 8px;
    text-align: center;
  }

  .auth-capabilities .auth-ui-icon {
    grid-row: auto;
  }

  .auth-card {
    padding-right: 24px;
    padding-left: 24px;
    transform: none;
  }
}

/* 平板保留主视觉，隐藏会与水晶重叠的装饰标签，不压缩表单可用宽度。 */
@media (min-width: 801px) and (max-width: 1100px) {
  .auth-model-stack, .auth-feature-stack { display: none; }
  .auth-capabilities small { white-space: normal; }
}

@media (max-width: 800px) {
  .auth-shell {
    padding: 12px;
    place-items: stretch;
    background:
      radial-gradient(circle at 15% 10%, rgba(90, 185, 255, 0.22), transparent 34%),
      radial-gradient(circle at 90% 90%, rgba(178, 112, 255, 0.2), transparent 35%),
      #f5f7ff;
  }

  .auth-stage {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 20px 12px 12px;
    gap: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.32);
  }

  .auth-showcase {
    display: block;
  }

  .auth-showcase-brand { font-size: 17px; margin: 0 auto; }
  .auth-showcase-brand .auth-logo-image { width: 38px; height: 38px; }
  .auth-showcase-copy, .auth-network, .auth-capabilities { display: none; }

  .auth-card {
    min-height: 580px;
    margin: 0;
    padding: 30px 20px 20px;
    border-radius: 22px;
    transform: none;
  }

  .auth-form input {
    height: 56px;
  }

  .auth-form .auth-otp input {
    height: 54px;
    border-radius: 10px;
    font-size: 20px;
  }

  .auth-otp {
    gap: 6px;
  }

  .auth-code-actions {
    gap: 8px;
  }

  .auth-primary {
    min-height: 58px;
  }

  .auth-footer {
    padding-top: 8px;
  }

  .auth-security {
    padding-top: 20px;
  }

  .auth-form h1 { font-size: 23px; }
  .auth-subtitle { font-size: 12px; }
  .auth-form { gap: 22px; }
  .auth-steps { padding: 0 10px; }
  .auth-security { font-size: 12px; }
  .auth-shell { align-content: center; }

  .topbar {
    height: auto;
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brand,
  .account {
    justify-self: center;
  }

  .nav {
    width: 100%;
    overflow: auto;
    justify-content: start;
    padding-bottom: 6px;
  }

  .section {
    padding: 34px 18px 52px;
  }

  .hero-actions,
  .filters,
  .profile-strip {
    flex-direction: column;
  }

  .logo-marquee,
  .compact-row {
    margin-top: 70px;
    grid-template-columns: repeat(2, 1fr);
  }

  .tabs,
  .key-quick,
  .router-status dl,
  .side-menu {
    grid-template-columns: 1fr;
  }

  .metric-row,
  .quota-grid,
  .credit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscription-list,
  .quota-grid,
  .credit-grid {
    padding: 12px;
  }

  .dash-grid > .panel {
    max-height: 420px;
  }

  .subscription-list > div,
  .quota,
  .balance,
  .mini,
  .credit-grid div {
    min-height: auto;
    padding: 12px;
  }

  .quota b,
  .mini b,
  .credit-grid b {
    font-size: 18px;
  }

  .usage-table-wrap {
    max-height: 320px;
  }

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

  .product-shot {
    padding: 32px 18px;
    min-height: auto;
  }

  .mock-window {
    grid-template-columns: 1fr;
  }

  .mock-window aside {
    display: none;
  }

  .subscription-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .balance div {
    position: static;
    margin-top: 18px;
  }
}
