:root {
  --bg: #071019;
  --bg-soft: #0c1827;
  --panel: rgba(10, 22, 36, 0.84);
  --panel-strong: #102034;
  --panel-soft: rgba(8, 18, 30, 0.72);
  --line: rgba(139, 160, 184, 0.14);
  --line-strong: rgba(139, 160, 184, 0.28);
  --text: #eef4fb;
  --muted: #92a7c0;
  --accent: #68dfc4;
  --accent-2: #f5b56a;
  --danger: #ff8d8d;
  --ok: #88ffba;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

:root[data-theme="light"] {
  --bg: #f4efe5;
  --bg-soft: #faf7f1;
  --panel: rgba(255, 252, 247, 0.94);
  --panel-strong: #fff8ee;
  --panel-soft: rgba(255, 250, 244, 0.88);
  --line: rgba(112, 95, 74, 0.12);
  --line-strong: rgba(112, 95, 74, 0.24);
  --text: #1e1a16;
  --muted: #726252;
  --accent: #0e9f6e;
  --accent-2: #c77b2b;
  --danger: #b94a48;
  --ok: #14804a;
  --shadow: 0 24px 70px rgba(98, 76, 50, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at left top, rgba(104, 223, 196, 0.18), transparent 28%),
    radial-gradient(circle at right top, rgba(245, 181, 106, 0.15), transparent 32%),
    linear-gradient(180deg, #071019, #0a1321 48%, #08111b);
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at left top, rgba(14, 159, 110, 0.08), transparent 26%),
    radial-gradient(circle at right top, rgba(199, 123, 43, 0.1), transparent 30%),
    linear-gradient(180deg, #fbf7f0, #f5efe6 48%, #efe7da);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 72px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 14px 18px;
  position: sticky;
  top: 12px;
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7, 16, 25, 0.78);
  backdrop-filter: blur(24px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

body[data-theme="light"] .topbar {
  background: rgba(255, 249, 241, 0.88);
  box-shadow: 0 14px 36px rgba(118, 90, 60, 0.12);
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

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

.language-switcher {
  width: auto;
  min-width: 148px;
}

.nav a,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(6, 13, 23, 0.45);
  color: var(--muted);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

body[data-theme="light"] .nav a,
body[data-theme="light"] .pill {
  background: rgba(255, 255, 255, 0.9);
}

.nav a:hover,
.pill:hover {
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.nav a.active {
  color: #04131f;
  background: linear-gradient(135deg, var(--accent), #7ef4d4);
  border-color: transparent;
  font-weight: 700;
}

.hero,
.public-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: end;
}

.public-hero {
  min-height: 420px;
  padding: 48px 0 34px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 12px;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 82px);
  line-height: 0.95;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
}

.actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inline-actions-tight {
  align-items: center;
  gap: 10px;
}

.panel,
.hero-card,
.auth-card,
.stat-card,
.info-card {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .console-nav a,
body[data-theme="light"] .console-summary,
body[data-theme="light"] .quick-start-grid div,
body[data-theme="light"] .model-plaza-signal div,
body[data-theme="light"] .docs-kv,
body[data-theme="light"] .model-card,
body[data-theme="light"] .price-detail-card,
body[data-theme="light"] .table-scroll,
body[data-theme="light"] .steps-band,
body[data-theme="light"] .key-card,
body[data-theme="light"] .provider-card {
  background: rgba(255, 251, 246, 0.92);
}

body[data-theme="light"] .stat-card {
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.96), rgba(251, 245, 237, 0.96));
}

.hero-card,
.panel,
.auth-card,
.info-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.product-signal {
  display: grid;
  gap: 12px;
  justify-items: start;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.product-signal span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.product-signal strong {
  font-size: 30px;
  line-height: 1.1;
}

.product-signal code,
.quick-start-grid code {
  overflow-wrap: anywhere;
}

.section-band,
.steps-band,
.cta-band,
.dashboard-header {
  margin-top: 28px;
}

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

.section-heading {
  margin-bottom: 14px;
}

.steps-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(6, 13, 23, 0.28);
}

.steps-band article {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.steps-band article:last-child {
  border-right: 0;
}

.steps-band span {
  color: var(--accent-2);
  font-weight: 800;
}

.steps-band p,
.cta-band p {
  color: var(--muted);
}

.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
}

.dashboard-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.section-tabs {
  margin-top: 22px;
}

.section-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-tab-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(6, 13, 23, 0.45);
  color: var(--muted);
}

.section-tab-nav a.active {
  color: #04131f;
  background: linear-gradient(135deg, var(--accent), #7ef4d4);
  border-color: transparent;
  font-weight: 700;
}

.console-shell {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.console-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
  border-radius: 24px;
}

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

.console-nav a {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(6, 13, 23, 0.38);
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.console-nav a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.console-nav a.active {
  color: var(--text);
  background: rgba(104, 223, 196, 0.1);
  border-color: rgba(104, 223, 196, 0.4);
}

body[data-theme="light"] .console-nav a.active {
  background: rgba(14, 159, 110, 0.1);
  border-color: rgba(14, 159, 110, 0.25);
}

.console-content {
  display: grid;
  gap: 22px;
}

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

.console-summary {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(6, 13, 23, 0.38);
}

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

.console-summary strong {
  font-size: 20px;
}

.console-logout {
  width: 100%;
}

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

.quick-start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-start-grid div {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(6, 12, 22, 0.66);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-start-grid span {
  color: var(--muted);
  font-size: 13px;
}

.panel-grid,
.cards,
.stats-grid {
  display: grid;
  gap: 20px;
}

.panel-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 28px;
}

.filter-bar,
.search-box {
  display: grid;
  gap: 10px;
}

.filter-bar {
  grid-template-columns: minmax(280px, 1.2fr) repeat(2, minmax(180px, 0.5fr));
  margin-bottom: 18px;
}

.search-box span {
  color: var(--muted);
  font-size: 13px;
}

.model-plaza-hero {
  display: grid;
  gap: 20px;
}

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

.model-plaza-signal div,
.docs-kv {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 12, 22, 0.66);
}

.model-plaza-signal span,
.docs-kv span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.model-plaza-signal strong code,
.docs-kv strong code {
  font-size: 13px;
}

.model-detail-hero {
  display: grid;
  gap: 18px;
}

.model-detail-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.model-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 20px;
  margin-top: 22px;
}

.full-span {
  grid-column: 1 / -1;
}

.model-link {
  color: var(--text);
}

.model-link:hover {
  color: var(--accent);
}

.small-pill {
  padding: 8px 12px;
  font-size: 12px;
}

.pricing-group {
  margin-top: 22px;
}

.model-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.model-card-link {
  display: block;
}

.model-card {
  display: grid;
  gap: 16px;
  height: 100%;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(12, 24, 39, 0.98), rgba(8, 18, 30, 0.92));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.model-card:hover {
  transform: translateY(-3px);
  border-color: rgba(104, 223, 196, 0.3);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.24);
}

.model-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.model-card-top h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.model-card-meta,
.model-card-price-row div,
.model-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.model-card-meta span,
.model-card-price-row span,
.model-card-footer {
  color: var(--muted);
  font-size: 13px;
}

.model-card-price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.model-card-price-row strong,
.model-card-meta strong {
  color: var(--text);
}

.model-card-footer {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.model-card-cta {
  color: var(--accent);
  font-weight: 700;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.docs-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.price-detail-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 12, 22, 0.66);
}

.price-detail-header span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-detail-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
}

.price-detail-table > div:nth-child(odd) {
  color: var(--muted);
}

.pricing-detail-full-table code {
  font-size: 12px;
}

.docs-card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.docs-card h3 {
  margin: 0 0 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-pill.supported {
  color: var(--ok);
  border-color: rgba(136, 255, 186, 0.25);
  background: rgba(136, 255, 186, 0.08);
}

.status-pill.coming-soon {
  color: var(--accent-2);
  border-color: rgba(245, 181, 106, 0.25);
  background: rgba(245, 181, 106, 0.08);
}

.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.admin-filter-bar {
  margin-bottom: 14px;
}

.pagination-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.mini-pre {
  max-width: 420px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.key-once-pre {
  max-width: 100%;
  margin-top: 10px;
}

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

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

.stat-card {
  border-radius: var(--radius-md);
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(16, 32, 52, 0.96), rgba(10, 20, 33, 0.92));
  min-height: 120px;
}

.stat-card span {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 28px;
}

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

.full {
  grid-column: 1 / -1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

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

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
}

th,
td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

input,
textarea,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 22, 0.88);
  color: var(--text);
  padding: 12px 14px;
}

body[data-theme="light"] input,
body[data-theme="light"] textarea,
body[data-theme="light"] select {
  background: rgba(255, 255, 255, 0.92);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(104, 223, 196, 0.45);
  box-shadow: 0 0 0 4px rgba(104, 223, 196, 0.08);
}

td input,
td select {
  min-width: 120px;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  color: #04131f;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #7ef4d4);
}

button.secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

body[data-theme="light"] button.secondary {
  background: rgba(255, 255, 255, 0.78);
}

.small-button {
  padding: 8px 12px;
  font-size: 12px;
}

.auth-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.auth-notice-grid {
  margin-bottom: 18px;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 448px);
  gap: 22px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.auth-showcase,
.auth-sign-card {
  position: relative;
  overflow: hidden;
}

.auth-showcase {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 620px;
  padding: 34px 36px;
  border: 1px solid rgba(90, 168, 255, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 18%, rgba(82, 173, 255, 0.34), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(19, 110, 255, 0.22), transparent 26%),
    linear-gradient(180deg, rgba(7, 22, 42, 0.96), rgba(7, 18, 34, 0.98));
  box-shadow: 0 22px 70px rgba(0, 16, 40, 0.32);
}

.auth-showcase::after,
.auth-sign-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 174, 255, 0.22), transparent 66%);
  pointer-events: none;
}

.auth-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(118, 193, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 26, 48, 0.72);
}

.auth-brand-lockup strong,
.auth-mini-brand {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-brand-lockup p {
  margin: 2px 0 0;
}

.auth-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6cd8ff, #1f6fff);
  color: #03101d;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(31, 111, 255, 0.28);
}

.auth-hero-title {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.auth-hero-lead {
  max-width: 480px;
  color: rgba(220, 235, 255, 0.72);
  font-size: 15px;
  line-height: 1.65;
}

.auth-feature-list {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin-top: 6px;
}

.auth-feature-list article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(122, 192, 255, 0.14);
  border-radius: 16px;
  background: rgba(10, 23, 42, 0.56);
}

.auth-feature-list strong {
  color: #f4f8ff;
  font-size: 13px;
}

.auth-feature-list span {
  color: #9ec8f1;
  font-size: 13px;
}

.auth-sign-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 620px;
  padding: 26px;
  border: 1px solid rgba(108, 181, 255, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.94), rgba(9, 18, 34, 0.98)),
    linear-gradient(135deg, rgba(50, 128, 255, 0.08), transparent);
  box-shadow: 0 22px 70px rgba(0, 10, 30, 0.28);
}

.auth-card-head {
  display: grid;
  gap: 6px;
}

.auth-card-head h2,
.auth-card-head p {
  margin: 0;
}

.auth-mini-brand {
  color: #7eccff;
  font-size: 11px;
  font-weight: 700;
}

.auth-card-head h2 {
  font-size: 28px;
  line-height: 1.08;
}

.auth-card-head .muted {
  font-size: 14px;
}

.auth-oauth-grid {
  gap: 10px;
}

.auth-social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(113, 185, 255, 0.18);
  border-radius: 14px;
  background: rgba(13, 27, 48, 0.82);
  color: #edf7ff;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.auth-social-button:hover {
  border-color: rgba(126, 198, 255, 0.34);
  background: rgba(17, 39, 68, 0.92);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 13, 23, 0.4);
}

.auth-switcher-wide {
  width: 100%;
}

.auth-switcher-wide button {
  flex: 1 1 0;
}

.auth-switcher button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.auth-switcher button.active {
  color: #04131f;
  background: linear-gradient(135deg, var(--accent), #7ef4d4);
  font-weight: 700;
}

.auth-panel-stack {
  display: grid;
}

.auth-panel {
  display: none;
  gap: 12px;
}

.auth-form-panel,
.auth-form-panel form {
  display: grid;
  gap: 12px;
}

.auth-panel.active {
  display: grid;
}

.auth-panel h3,
.auth-tool-grid h3 {
  margin: 0;
}

.auth-tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.auth-tool-grid form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(111, 183, 255, 0.12);
  border-radius: 16px;
  background: rgba(11, 24, 42, 0.72);
}

body[data-theme="light"] .auth-switcher {
  background: rgba(255, 250, 244, 0.92);
}

body[data-theme="light"] .auth-page {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 448px);
}

body[data-theme="light"] .auth-showcase {
  background:
    radial-gradient(circle at 16% 18%, rgba(83, 156, 255, 0.14), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(31, 111, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(240, 247, 255, 0.96), rgba(228, 239, 255, 0.98));
  border-color: rgba(70, 133, 214, 0.14);
  box-shadow: 0 18px 56px rgba(54, 95, 146, 0.12);
}

body[data-theme="light"] .auth-showcase::after,
body[data-theme="light"] .auth-sign-card::after {
  background: radial-gradient(circle, rgba(31, 111, 255, 0.12), transparent 68%);
}

body[data-theme="light"] .auth-brand-lockup,
body[data-theme="light"] .auth-feature-list article,
body[data-theme="light"] .auth-social-button,
body[data-theme="light"] .auth-tool-grid form {
  background: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .auth-showcase .lead,
body[data-theme="light"] .auth-showcase .muted,
body[data-theme="light"] .auth-feature-list span {
  color: #48607c;
}

body[data-theme="light"] .auth-feature-list strong {
  color: #18365b;
}

body[data-theme="light"] .auth-sign-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.98)),
    linear-gradient(135deg, rgba(31, 111, 255, 0.04), transparent);
  border-color: rgba(70, 133, 214, 0.14);
  box-shadow: 0 18px 56px rgba(54, 95, 146, 0.12);
}

body[data-theme="light"] .auth-social-button {
  color: #163152;
  border-color: rgba(70, 133, 214, 0.14);
}

.auth-helper-stack,
.oauth-stack {
  display: grid;
  gap: 10px;
}

.oauth-pill {
  width: 100%;
}

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(104, 223, 196, 0.2);
  background: rgba(104, 223, 196, 0.08);
}

.error {
  color: var(--danger);
}

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

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: rgba(4, 10, 18, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

body[data-theme="light"] pre {
  background: rgba(249, 243, 234, 0.96);
}

.key-card,
.provider-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.panel > h3,
.panel h2 {
  margin-top: 0;
}

.stack {
  display: grid;
  gap: 14px;
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .console-shell,
  .hero,
  .public-hero,
  .panel-grid,
  .dashboard-grid,
  .cards,
  .feature-grid,
  .steps-band,
  .stats-grid,
  .quick-start-grid,
  .docs-card-grid,
  .model-card-grid,
  .model-detail-grid,
  .model-plaza-signal,
  .auth-wrap {
    grid-template-columns: 1fr;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-showcase,
  .auth-sign-card {
    min-height: auto;
  }

  .auth-tool-grid {
    grid-template-columns: 1fr;
  }

  .product-signal {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }

  .steps-band article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps-band article:last-child {
    border-bottom: 0;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    position: static;
  }

  .language-switcher {
    width: 100%;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .console-sidebar {
    position: static;
  }
}
