* { box-sizing: border-box; }
:root {
  --bg: #050816;
  --bg-2: #08101e;
  --panel: rgba(10, 15, 35, .76);
  --panel-strong: rgba(10, 15, 35, .92);
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.14);
  --text: #eef2ff;
  --muted: #9aa4c1;
  --muted-2: #7883a6;
  --cyan: #58d6ff;
  --cyan-2: #29c8ff;
  --purple: #8b5cf6;
  --pink: #ff63d8;
  --green: #29d39a;
  --yellow: #ffd166;
  --card: rgba(255,255,255,.04);
  --card-2: rgba(255,255,255,.06);
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --shadow-soft: 0 14px 48px rgba(0,0,0,.22);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
}
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(139,92,246,.20), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(88,214,255,.18), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(255,99,216,.12), transparent 26%),
    linear-gradient(180deg, #02040a, var(--bg));
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .45;
  mask-image: radial-gradient(circle at center, black 22%, transparent 74%);
}
body::after {
  background:
    radial-gradient(circle at 12% 18%, rgba(88,214,255,.15), transparent 18%),
    radial-gradient(circle at 86% 14%, rgba(139,92,246,.12), transparent 16%),
    radial-gradient(circle at 54% 90%, rgba(255,99,216,.10), transparent 18%);
  filter: blur(18px);
  opacity: .65;
}
.home-page {
  background: #f3f6fb;
  color: #111827;
}
.home-page::before,
.home-page::after {
  display: none;
}
.home-page .topbar {
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(15,23,42,.08);
  backdrop-filter: blur(14px);
}
.home-page .brand,
.home-page .brand-copy strong,
.home-page .nav-links a.is-active,
.home-page .nav-links a:hover,
.home-page .nav-user-chip,
.home-page .btn,
.home-page .hero-meta-card strong,
.home-page .feature-card h3,
.home-page .pricing-card strong,
.home-page .section-head h2,
.home-page .hero h1 {
  color: #111827;
}
.home-page .brand-copy em,
.home-page .brand-pill,
.home-page .nav-links,
.home-page .nav-links a,
.home-page .hero p,
.home-page .section-head p,
.home-page .feature-card p,
.home-page .feature-meta span,
.home-page .pricing-card p,
.home-page .pricing-card li,
.home-page .small-tag {
  color: #64748b;
}
.home-page .brand-mark {
  background: linear-gradient(135deg, #4f46e5, #38bdf8);
  box-shadow: 0 0 18px rgba(56,189,248,.22);
}
.home-page .brand-pill,
.home-page .nav-user-chip,
.home-page .nav-links a.is-active,
.home-page .badge,
.home-page .hero-meta-card,
.home-page .feature-status,
.home-page .feature-icon,
.home-page .notice-bar {
  background: #ffffff;
  border-color: rgba(15,23,42,.08);
}
.home-page .section-shell,
.home-page .feature-card,
.home-page .pricing-card,
.home-page .hero-orbit {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 12px 36px rgba(15,23,42,.06);
}
.home-page .btn {
  background: #ffffff;
  border-color: rgba(15,23,42,.10);
}
.home-page .btn-primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: none;
}
.home-page .hero-actions .btn-primary {
  line-height: 1;
  overflow: hidden;
}
.home-page .hero h1 span {
  background: linear-gradient(135deg, #111827 10%, #2563eb 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  color: transparent;
}
.home-page .hero-orbit {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
}
.home-page .hero-orbit::before {
  display: none;
}
.home-page .hero-orbit-bg {
  background:
    radial-gradient(circle at 50% 40%, rgba(37,99,235,.08), transparent 32%),
    radial-gradient(circle at 30% 20%, rgba(56,189,248,.14), transparent 15%),
    radial-gradient(circle at 70% 70%, rgba(99,102,241,.10), transparent 18%);
}
.home-page .center-core {
  width: 120px;
  height: 120px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
  background: radial-gradient(circle at 35% 30%, rgba(96,165,250,.28), rgba(255,255,255,.96) 55%, rgba(248,250,252,.98) 100%);
  border: 1px solid rgba(37,99,235,.16);
  box-shadow: 0 0 40px rgba(56,189,248,.16), inset 0 0 18px rgba(255,255,255,.8);
  color: #111827;
  position: relative;
  z-index: 2;
}
.home-page .home-logo-ring {
  --orbit-size: 360px;
  --node-size: 54px;
  --orbit-radius: 150px;
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--orbit-size);
  height: var(--orbit-size);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}
.home-page .home-logo-ring::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--orbit-radius) * 2);
  height: calc(var(--orbit-radius) * 2);
  margin-left: calc(var(--orbit-radius) * -1);
  margin-top: calc(var(--orbit-radius) * -1);
  border-radius: 50%;
  border: 1px dashed rgba(37,99,235,.14);
}
.home-page .home-logo-ring span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--orbit-radius) * -1));
}
.home-page .home-logo-ring span img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--a)));
  animation: spinReverse 24s linear infinite;
}
@keyframes spinReverse {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}
.home-page .orbit-logo-openai,
.home-page .orbit-logo-gemini,
.home-page .orbit-logo-banana,
.home-page .orbit-logo-image,
.home-page .orbit-logo-sora,
.home-page .orbit-logo-veo,
.home-page .orbit-logo-extra1,
.home-page .orbit-logo-extra2 {
  transform: scale(1);
}
.auth-page {
  background: #f3f6fb;
  color: #111827;
}
.auth-page::before,
.auth-page::after {
  display: none;
}
.auth-page .topbar {
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(15,23,42,.08);
  backdrop-filter: blur(14px);
}
.auth-page .brand,
.auth-page .brand-copy strong,
.auth-page .nav-links a.is-active,
.auth-page .nav-links a:hover,
.auth-page .btn,
.auth-page .auth-simple-side h1,
.auth-page .auth-simple-card h2 {
  color: #111827;
}
.auth-page .brand-copy em,
.auth-page .brand-pill,
.auth-page .nav-links,
.auth-page .nav-links a,
.auth-page .auth-simple-side p,
.auth-page .auth-simple-card p,
.auth-page .auth-tip {
  color: #64748b;
}
.auth-page .topbar {
  background: rgba(255,255,255,.88);
}
.auth-page .nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.auth-page .nav-links { justify-content: center; }
.auth-page .nav-actions {
  justify-self: end;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.auth-page .flash {
  margin: 0 auto 18px;
  width: min(980px, 100%);
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: -.01em;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.10);
  background: #ffffff;
}
.auth-page .flash-error {
  color: #b91c1c;
  border-color: rgba(220,38,38,.18);
  background: linear-gradient(180deg, #fff7f7, #ffffff);
}
.auth-page .flash-success {
  color: #166534;
  border-color: rgba(22,163,74,.18);
  background: linear-gradient(180deg, #f3fff7, #ffffff);
}
.auth-page .auth-form label {
  color: #111827;
  font-weight: 700;
  font-size: 14px;
}
.auth-page input,
.auth-page textarea {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(15,23,42,.12);
  font-size: 15px;
}
.auth-page input::placeholder,
.auth-page textarea::placeholder {
  color: #94a3b8;
}
.auth-page input:focus,
.auth-page textarea:focus {
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
  background: #ffffff;
}
.auth-page .auth-form .btn.btn-block {
  font-size: 17px;
  font-weight: 800;
  min-height: 50px;
}
.auth-page .btn {
  background: #ffffff;
  border-color: rgba(15,23,42,.10);
}
.auth-page .btn-primary {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  border-color: transparent;
}
.auth-shell-simple {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}
.auth-unified-card {
  width: min(560px, 100%);
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(15,23,42,.06);
  padding: 30px;
}
.auth-unified-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.auth-unified-brand strong {
  display: block;
  font-size: 15px;
  color: #111827;
}
.auth-unified-brand span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}
.auth-unified-head h1 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -.05em;
  color: #111827;
}
.auth-unified-head p {
  margin: 0 0 20px;
  color: #64748b;
  line-height: 1.8;
}
.auth-page .auth-form label {
  color: #111827;
  font-weight: 600;
}
.auth-page input,
.auth-page textarea {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(15,23,42,.12);
}
.auth-page input::placeholder,
.auth-page textarea::placeholder {
  color: #94a3b8;
}
.auth-page .auth-form .btn.btn-block {
  font-size: 17px;
  font-weight: 800;
  min-height: 50px;
}
@media (max-width: 900px) {
  .auth-unified-card {
    width: min(560px, 100%);
    padding: 22px;
  }
  .auth-unified-head h1 {
    font-size: 34px;
  }
}
.auth-switch-link {
  margin-top: 16px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 14px;
}
.auth-switch-link-spaced {
  margin-top: 28px;
}
.auth-switch-link a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1280px, calc(100vw - 32px)); margin: 0 auto; position: relative; z-index: 1; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(5,8,22,.92), rgba(5,8,22,.60));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 0; flex-wrap: wrap;
}
.brand-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 900; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text);
}
.brand-mark {
  width: 18px; height: 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 0 24px rgba(88,214,255,.55);
}
.brand-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-copy strong { font-size: 20px; }
.brand-copy em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .18em; }
.brand-pill {
  display: inline-flex; align-items: center;
  padding: 7px 10px; border-radius: 999px;
  font-size: 12px; color: var(--muted);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.nav-links, .nav-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.nav-links { gap: 14px; color: var(--muted); }
.nav-links a {
  padding: 8px 10px; border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.nav-actions { gap: 12px; }
.nav-logout-form { margin: 0; }
.nav-logout-form button { font: inherit; }
.nav-user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  max-width: 320px;
}
.nav-user-type {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37,99,235,.10);
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}
.nav-user-chip .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--green); box-shadow: 0 0 16px var(--green);
  flex: 0 0 auto;
}
.main-wrap { padding: 28px 0 60px; }
.flash {
  padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.flash-success { background: rgba(34,197,94,.12); color: #baf7cb; }
.flash-error { background: rgba(239,68,68,.12); color: #ffb4b4; }
.section-shell,
.page-shell,
.auth-card,
.table-card,
.feature-card,
.metric-card,
.info-card,
.pricing-card,
.main-panel,
.side-panel,
.auth-side,
.hero-meta-card,
.auth-highlight-card,
.hero-orbit,
.dashboard-hero,
.feature-hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.section-shell { padding: 24px; margin-bottom: 18px; }
.page-shell { padding: 0; border: 0; box-shadow: none; background: transparent; }
.page-shell.two-col,
.auth-layout,
.dashboard-layout,
.feature-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}
.home-page .hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 26px;
  align-items: center;
  padding: 22px 16px 26px;
  min-height: 74vh;
}
.home-page .hero-copy {
  max-width: 720px;
}
.home-page .hero h1 {
  font-size: clamp(40px, 4.8vw, 72px);
  white-space: nowrap;
}
.home-page .hero p {
  font-size: 18px;
  line-height: 1.85;
}
.home-page .hero-orbit {
  min-height: 640px;
}
.home-page .center-core {
  width: 190px;
  height: 190px;
  font-size: 38px;
}
.home-page .orbit span {
  width: 124px;
  height: 48px;
  font-size: 15px;
}
.home-page .hero-meta-grid {
  gap: 14px;
  margin-top: 22px;
}
.home-page .hero-meta-card {
  padding: 20px;
}
.home-page .hero-actions {
  margin-top: 28px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted);
  border: 1px solid rgba(255,255,255,.08); font-size: 13px;
}
.hero h1,
.page-shell h1,
.auth-card h1,
.auth-side h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: .96;
  letter-spacing: -0.06em;
}
.hero h1 span { background: linear-gradient(135deg, #fff 10%, #8adfff 35%, #ff82df 65%, #fff 100%); -webkit-background-clip: text; color: transparent; }
.hero p,
.lead-text,
.section-head p,
.auth-card p,
.auth-side p,
.side-panel p,
.feature-card p,
.info-card p,
.pricing-card p,
.pricing-card ul,
.info-card ul,
.status-box,
.auth-tip,
.table-card,
table,
.feature-meta,
.table-toolbar,
.table-note {
  color: var(--muted);
  line-height: 1.8;
}
.section-head { margin-bottom: 18px; }
.section-head h2 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.04em; }
.section-head-inline {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.text-link {
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05); color: var(--text); font-weight: 700; cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.20); }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--cyan)); border-color: transparent; }
.btn-ghost { background: rgba(255,255,255,.03); }
.btn-small { padding: 9px 12px; font-size: 13px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #f97316); border-color: transparent; }
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 26px;
}
.notice-bar {
  margin-top: 18px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 184, 0, .12); color: #ffd98b; border: 1px solid rgba(255, 184, 0, .18);
  display: inline-flex; align-items: center; gap: 8px;
}
.notice-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #ffd98b; box-shadow: 0 0 16px #ffd98b;
}
.hero-meta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 20px;
}
.hero-meta-card,
.auth-highlight-card,
.metric-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-meta-card strong,
.auth-highlight-card strong,
.metric-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--text);
}
.hero-meta-card span,
.auth-highlight-card span,
.metric-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.hero-orbit {
  min-height: 580px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .16s ease, box-shadow .2s ease;
}
.hero-orbit.tilt-surface {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}
.hero-orbit-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.11), transparent 32%),
    radial-gradient(circle at 30% 20%, rgba(88,214,255,.18), transparent 15%),
    radial-gradient(circle at 70% 70%, rgba(139,92,246,.14), transparent 18%);
  opacity: .8;
}
.hero-orbit::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 80px rgba(255,255,255,.03);
}
.center-core {
  width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center;
  font-size: 34px; font-weight: 900; letter-spacing: .12em;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.22), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 40px rgba(88,214,255,.25);
  position: relative; z-index: 2;
}
.orbit {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  animation: spin 26s linear infinite;
}
.orbit-b { inset: 4%; animation-duration: 38s; animation-direction: reverse; }
.orbit span {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: inline-flex; align-items: center; justify-content: center;
  width: 118px; height: 46px; border-radius: 999px; font-weight: 800; font-size: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.orbit span:nth-child(1) { transform: rotate(0deg) translateY(-220px); }
.orbit span:nth-child(2) { transform: rotate(60deg) translateY(-220px); }
.orbit span:nth-child(3) { transform: rotate(120deg) translateY(-220px); }
.orbit span:nth-child(4) { transform: rotate(180deg) translateY(-220px); }
.orbit span:nth-child(5) { transform: rotate(240deg) translateY(-220px); }
.orbit span:nth-child(6) { transform: rotate(300deg) translateY(-220px); }
.feature-grid,
.pricing-grid,
.dashboard-grid,
.dashboard-grid-5,
.dashboard-grid-4,
.dashboard-grid-3 {
  display: grid;
  gap: 16px;
}
.feature-grid { grid-template-columns: repeat(5, 1fr); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); }
.dashboard-grid { grid-template-columns: repeat(4, 1fr); }
.dashboard-grid-5 { grid-template-columns: repeat(5, 1fr); }
.dashboard-grid-4 { grid-template-columns: repeat(4, 1fr); }
.dashboard-grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature-card,
.pricing-card,
.metric-card,
.info-card,
.main-panel,
.side-panel,
.auth-card,
.table-card,
.auth-side,
.dashboard-hero,
.feature-hero-card {
  padding: 20px;
}
.feature-card {
  min-height: 230px;
  display: block;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.065);
  box-shadow: 0 18px 46px rgba(0,0,0,.24);
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 14px; font-size: 24px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.feature-status {
  display: inline-flex; align-items: center; margin-bottom: 12px;
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.feature-status.is-open { background: rgba(34,197,94,.12); color: #baf7cb; }
.feature-status.is-locked { background: rgba(255,184,0,.12); color: #ffd98b; }
.feature-card h3,
.pricing-card h3,
.info-card h3,
.auth-card h2,
.auth-side h2,
.main-panel h1,
.feature-hero-card h3 { margin: 0 0 10px; letter-spacing: -.03em; }
.feature-card p,
.feature-meta,
.pricing-card p,
.pricing-card ul,
.info-card ul,
.auth-tip,
.table-card,
.table-toolbar,
.table-note,
.feature-hero-card span {
  color: var(--muted);
}
.feature-meta {
  margin-top: 16px; display: flex; justify-content: space-between; gap: 10px; font-size: 13px;
}
.price-line { font-size: 24px; margin: 10px 0; }
.price-line strong { font-size: 48px; color: white; }
.small-tag {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.highlight { border-color: rgba(88,214,255,.28); box-shadow: 0 0 0 1px rgba(88,214,255,.18), var(--shadow); }
.page-shell.two-col {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px;
  background: transparent; border: 0; box-shadow: none; padding: 0;
}
.status-box {
  padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08); margin: 20px 0;
}
.status-box.is-open { background: rgba(34,197,94,.10); color: #baf7cb; }
.status-box.is-locked { background: rgba(255,184,0,.10); color: #ffd98b; }
.demo-form label,
.auth-form label,
.admin-action-form label {
  display: flex; flex-direction: column; gap: 8px; font-weight: 600; margin-bottom: 14px;
}
textarea, input {
  width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04); color: white; padding: 14px; outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
textarea:focus, input:focus {
  border-color: rgba(88,214,255,.38);
  box-shadow: 0 0 0 4px rgba(88,214,255,.08);
  background: rgba(255,255,255,.06);
}
.api-result {
  margin-top: 18px; padding: 16px; border-radius: 16px; min-height: 80px;
  background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.06); white-space: pre-wrap;
}
.auth-shell {
  display: grid; place-items: center; min-height: 72vh;
}
.auth-shell-wide { align-items: stretch; }
.auth-layout { align-items: stretch; }
.auth-side,
.auth-card {
  position: relative;
  overflow: hidden;
}
.auth-side::before,
.dashboard-hero::before,
.feature-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(88,214,255,.08), transparent 32%);
  pointer-events: none;
}
.auth-highlights,
.auth-note-list,
.dashboard-hero-actions,
.dashboard-topstats,
.feature-stack {
  display: grid;
  gap: 12px;
}
.auth-highlight-card {
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.auth-highlight-card span { display: block; margin-top: 6px; }
.auth-card { width: min(560px, 100%); }
.auth-card h2 { margin-top: 6px; font-size: 34px; }
.auth-form { margin-top: 20px; }
.admin-logo-card {
  margin-top: 20px;
  padding: 20px;
}
.admin-logo-form {
  margin-top: 16px;
}
.admin-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.admin-logo-slot {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.admin-logo-slot-title {
  font-size: 13px;
  color: var(--muted);
}
.admin-logo-preview {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 12px;
}
@media (max-width: 900px) {
  .admin-logo-grid {
    grid-template-columns: 1fr;
  }
}
.table-toolbar {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 18px 20px 0;
}
.table-note { font-size: 13px; }
.table-scroll { overflow: auto; width: 100%; }
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.admin-table { min-width: 1700px; }
th, td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
  vertical-align: top;
}
thead th {
  position: sticky;
  z-index: 5;
  background: rgba(10,15,35,.96);
  white-space: nowrap;
}
thead .group-row th {
  top: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  background: rgba(12,18,40,.98);
}
thead .column-row th { top: 42px; }
.table-group-row th { border-bottom-color: rgba(255,255,255,.12); }
.sticky-col {
  position: sticky;
  z-index: 4;
  background: rgba(10,15,35,.98);
}
.sticky-col.sticky-1 { left: 0; min-width: 100px; }
.sticky-col.sticky-2 { left: 100px; min-width: 140px; }
.sticky-col.sticky-3 { left: 240px; min-width: 120px; }
tbody .sticky-col.sticky-1,
tbody .sticky-col.sticky-2,
tbody .sticky-col.sticky-3 {
  background: rgba(8,13,28,.98);
}
.table-status {
  display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.table-status.ok { background: rgba(34,197,94,.12); color: #baf7cb; }
.table-status.danger { background: rgba(239,68,68,.12); color: #ffb4b4; }
.cell-stack {
  display: flex; flex-direction: column; gap: 3px;
}
.cell-stack strong { color: var(--text); }
.cell-muted { color: var(--muted-2); font-size: 12px; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.stack-form { flex-direction: column; align-items: stretch; min-width: 180px; }
.admin-action-form { display: flex; flex-direction: column; gap: 8px; }
.admin-action-form .btn { width: 100%; }
.dashboard-shell { align-items: start; }
.dashboard-hero {
  display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap;
  margin-bottom: 18px;
}
.dashboard-title { max-width: 680px; }
.dashboard-title h1 { margin-bottom: 10px; }
.dashboard-badges,
.feature-summary,
.dashboard-topstats {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.dashboard-badge,
.stat-badge,
.feature-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 13px;
}
.dashboard-hero-card {
  min-width: 220px;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.metric-group {
  margin-top: 20px;
}
.group-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.group-head h3 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.group-head p { margin: 0; font-size: 13px; color: var(--muted-2); }
.metric-card {
  min-height: 112px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.metric-card strong { font-size: 28px; line-height: 1.1; }
.metric-card span { font-size: 13px; color: var(--muted); }
.metric-card.is-tall { min-height: 140px; }
.info-card ul,
.pricing-card ul {
  padding-left: 18px;
  margin: 10px 0 0;
}
.info-card li,
.pricing-card li { margin-bottom: 8px; }
.feature-hero-card {
  min-width: 220px;
  max-width: 320px;
  position: relative;
}
.feature-hero-card strong { display: block; font-size: 24px; margin: 10px 0 8px; }
.feature-hero-card span { display: block; font-size: 14px; line-height: 1.6; }
.feature-summary { margin-top: 16px; }
.feature-pill { color: var(--text); }
.feature-stack .status-box { margin: 0; }
.auth-tip {
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.site-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 22px 0 36px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-inner strong { color: var(--text); margin-right: 8px; }
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease, box-shadow .25s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (max-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero,
  .page-shell.two-col,
  .auth-layout,
  .feature-layout { grid-template-columns: 1fr; }
  .hero-meta-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-hero { flex-direction: column; }
  .hero-orbit { min-height: 420px; }
  .orbit span { width: 96px; height: 40px; font-size: 13px; }
  .orbit span:nth-child(1) { transform: rotate(0deg) translateY(-160px); }
  .orbit span:nth-child(2) { transform: rotate(60deg) translateY(-160px); }
  .orbit span:nth-child(3) { transform: rotate(120deg) translateY(-160px); }
  .orbit span:nth-child(4) { transform: rotate(180deg) translateY(-160px); }
  .orbit span:nth-child(5) { transform: rotate(240deg) translateY(-160px); }
  .orbit span:nth-child(6) { transform: rotate(300deg) translateY(-160px); }
  .admin-table { min-width: 1450px; }
}
@media (max-width: 760px) {
  .container { width: min(100vw - 20px, 1280px); }
  .nav-row { align-items: stretch; }
  .nav-links { gap: 8px; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .brand-pill { width: 100%; justify-content: center; }
  .section-shell,
  .auth-card,
  .main-panel,
  .side-panel,
  .pricing-card,
  .feature-card,
  .metric-card,
  .info-card,
  .auth-side,
  .table-card,
  .dashboard-hero,
  .feature-hero-card { padding: 18px; }
  .feature-grid,
  .dashboard-grid,
  .dashboard-grid-5,
  .dashboard-grid-4,
  .dashboard-grid-3 { grid-template-columns: 1fr; }
  .table-toolbar { padding: 16px 16px 0; }
  .admin-table { min-width: 1300px; }
  .hero h1,
  .page-shell h1,
  .auth-card h1,
  .auth-side h1 { font-size: 42px; }
  .auth-card h2 { font-size: 30px; }
  .center-core { width: 140px; height: 140px; }
}

.studio-page {
  background: #f3f6fb;
  color: #111827;
}
.studio-page::before,
.studio-page::after {
  display: none;
}
.studio-page .topbar {
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(15,23,42,.08);
  backdrop-filter: blur(14px);
}
.studio-page .nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.studio-page .nav-links {
  justify-content: center;
}
.studio-page .nav-actions {
  justify-self: end;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.studio-page .nav-actions .btn {
  min-width: 72px;
  justify-content: center;
}
.studio-page .brand-pill {
  white-space: nowrap;
}
.studio-page .brand,
.studio-page .brand-copy strong,
.studio-page .nav-links a.is-active,
.studio-page .nav-links a:hover,
.studio-page .nav-user-chip,
.studio-page .btn,
.studio-page .studio-main-top h2,
.studio-page .studio-tool strong,
.studio-page .chat-bubble strong,
.studio-page .studio-mode-tag,
.studio-page .studio-logo-chip em {
  color: #111827;
}
.studio-page .brand-copy em,
.studio-page .brand-pill,
.studio-page .nav-links,
.studio-page .nav-links a,
.studio-page .studio-sidebar-head p,
.studio-page .studio-tool span,
.studio-page .studio-main-top p,
.studio-page .chat-bubble p,
.studio-page .studio-input-tips {
  color: #64748b;
}
.studio-page .chat-action-row {
  margin-top: 10px;
}
.studio-page .chat-action-link {
  color: #2563eb;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.studio-page .brand-mark {
  background: linear-gradient(135deg, #4f46e5, #38bdf8);
  box-shadow: 0 0 18px rgba(56,189,248,.22);
}
.studio-page .brand-pill,
.studio-page .nav-user-chip,
.studio-page .nav-links a.is-active,
.studio-page .studio-mode-tag,
.studio-page .studio-logo-chip,
.studio-page .chat-avatar,
.studio-page .studio-tool-icon {
  background: #ffffff;
  border-color: rgba(15,23,42,.08);
}
.studio-page .btn {
  background: #ffffff;
  border-color: rgba(15,23,42,.10);
}
.studio-page .btn-primary {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  border-color: transparent;
}
.studio-page .flash {
  border-color: rgba(15,23,42,.08);
}
.studio-page .studio-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 16px;
  min-height: calc(100vh - 132px);
}
.studio-page .studio-sidebar,
.studio-page .studio-chat-card,
.studio-page .studio-input-shell,
.studio-page .studio-model-item {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: none;
}
.studio-page .studio-sidebar {
  padding: 10px;
  border-radius: 20px;
  min-height: calc(100vh - 154px);
  height: calc(100vh - 154px);
  overflow-y: auto;
  overflow-x: hidden;
}
.studio-page .studio-sidebar-inner {
  zoom: 0.85;
  width: 100%;
}
.studio-page .studio-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px 10px;
  white-space: nowrap;
}
.studio-page .studio-brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #111827, #475569);
  display: inline-block;
  flex: 0 0 auto;
}
.studio-page .studio-sidebar-brand strong {
  display: block;
  color: #111827;
  font-size: 17px;
  line-height: 1.1;
}
.studio-page .studio-sidebar-brand span {
  display: none;
}
.studio-page .studio-sidebar-head {
  padding: 0 4px 8px;
}
.studio-page .studio-side-label {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.studio-page .studio-sidebar-head p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.5;
}
.studio-page .studio-group-list {
  display: grid;
  gap: 6px;
}
.studio-page .studio-group {
  padding-top: 6px;
  border-top: 1px solid rgba(15,23,42,.06);
}
.studio-page .studio-group:first-child {
  border-top: 0;
  padding-top: 0;
}
.studio-page .studio-group-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
  padding: 0 3px;
}
.studio-page .studio-group-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.06);
  flex: 0 0 auto;
  overflow: hidden;
}
.studio-page .studio-group-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.studio-page .studio-group-head strong {
  display: block;
  font-size: 14px;
  color: #111827;
  line-height: 1.15;
}
.studio-page .studio-group-head span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}
.studio-page .studio-model-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-left: 28px;
}
.studio-page .studio-model-item {
  width: auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.06);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background .18s ease;
}
.studio-page .studio-model-item img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: 0 0 auto;
  object-fit: cover;
}
.studio-page .studio-model-item > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}
.studio-page .studio-model-item strong {
  display: inline;
  color: #111827;
  font-size: 10px;
  line-height: 1.05;
  font-weight: 700;
}
.studio-page .studio-model-item span {
  display: inline;
  color: #94a3b8;
  font-size: 8px;
  margin-left: 0;
  line-height: 1.05;
}
.studio-page .studio-model-item:hover,
.studio-page .studio-model-item.is-active {
  border-color: rgba(244,114,182,.28);
  background: #fff5f7;
  box-shadow: none;
}
.studio-page .studio-main {
  padding: 0;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.studio-page .studio-sidebar-head h1 {
  margin: 14px 0 8px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.studio-page .studio-tool-list {
  display: grid;
  gap: 10px;
}
.studio-page .studio-tool {
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 18px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.studio-page .studio-tool:hover,
.studio-page .studio-tool.is-active {
  transform: none;
  border-color: rgba(37,99,235,.24);
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(37,99,235,.08);
}
.studio-page .studio-tool-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.studio-page .studio-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
}
.studio-page .studio-main {
  padding: 0;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.studio-page .studio-chat-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  background: #ffffff;
}
.studio-page .studio-chat-header-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.studio-page .studio-chat-header h2 {
  margin: 2px 0 6px;
  font-size: 22px;
  letter-spacing: -.03em;
  color: #111827;
}
.studio-page .studio-chat-header p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}
.studio-page .studio-main-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.studio-page .studio-main-top h2 {
  margin: 12px 0 8px;
  font-size: 28px;
  letter-spacing: -.04em;
}
.studio-page .studio-top-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.studio-page .studio-model-select {
  min-width: 160px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: #ffffff;
  color: #111827;
  padding: 11px 14px;
  outline: none;
}
.studio-page .studio-chat-card {
  display: flex;
  flex-direction: column;
  min-height: 640px;
  border-radius: 22px;
  overflow: hidden;
  background: #fbfcfe;
}
.studio-page .studio-chat-thread {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
}
.studio-page .studio-chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 220px;
  margin: 8px 0 4px;
  padding: 24px 18px;
  border-radius: 20px;
  background: transparent;
  border: 0;
}
.studio-page .studio-chat-empty-logo-wrap {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.08);
}
.studio-page .studio-chat-empty-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}
.studio-page .studio-chat-empty strong {
  color: #111827;
  font-size: 16px;
  letter-spacing: -.02em;
}
.studio-page .studio-upgrade-tip {
  color: #92400e;
  background: linear-gradient(180deg, #fff9ed, #fffdf8);
  border-color: rgba(245, 158, 11, .22);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.studio-page .studio-upgrade-link {
  margin-left: 8px;
  color: #2563eb;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.studio-page .chat-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.studio-page .chat-message-user {
  justify-content: flex-end;
}
.studio-page .chat-message-user .chat-avatar {
  order: 2;
}
.studio-page .chat-message-user .chat-bubble {
  order: 1;
  background: #edf5ff;
  border-color: rgba(59,130,246,.14);
}
.studio-page .chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #2563eb;
}
.studio-page .chat-bubble {
  max-width: min(760px, 88%);
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.08);
}
.studio-page .studio-input-bar {
  padding: 0 18px 18px;
}
.studio-page .studio-input-shell {
  border-radius: 18px;
  padding: 14px;
  background: #ffffff;
}
.studio-page .studio-input-shell textarea {
  min-height: 84px;
  resize: vertical;
  border: 0;
  padding: 8px 2px 6px;
  line-height: 1.65;
  font-size: 15px;
  background: transparent;
  color: #111827;
  box-shadow: none;
  outline: none;
}
.studio-page .studio-input-shell textarea:disabled {
  text-align: center;
  color: #94a3b8;
  padding-top: 26px;
  cursor: not-allowed;
}
.studio-page .studio-input-shell textarea:disabled::placeholder {
  color: #94a3b8;
  text-align: center;
}
.studio-page .studio-input-shell textarea::placeholder {
  color: #94a3b8;
}
.studio-page .studio-input-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.studio-page .studio-sidebar-head p {
  margin: 0 0 16px;
  color: #64748b;
  line-height: 1.8;
}
.studio-page .studio-group-list {
  display: grid;
  gap: 14px;
}
.studio-page .studio-group {
  padding-top: 8px;
  border-top: 1px solid rgba(15,23,42,.08);
}
.studio-page .studio-group-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.studio-page .studio-group-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.08);
  font-size: 18px;
  flex: 0 0 auto;
}
.studio-page .studio-group-head strong {
  display: block;
  font-size: 16px;
  color: #111827;
}
.studio-page .studio-group-head span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.studio-page .studio-model-list {
  display: grid;
  gap: 8px;
}
.studio-page .studio-model-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.08);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.studio-page .studio-model-item img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: 0 0 auto;
}
.studio-page .studio-model-item strong {
  display: block;
  color: #111827;
  font-size: 14px;
}
.studio-page .studio-model-item span {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}
.studio-page .studio-model-item:hover,
.studio-page .studio-model-item.is-active {
  border-color: rgba(37,99,235,.28);
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(37,99,235,.08);
}
.studio-page .studio-current-model-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.08);
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}
.studio-page .studio-chat-card {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 154px);
  min-height: calc(100vh - 154px);
  max-height: calc(100vh - 154px);
  border-radius: 22px;
  overflow: hidden;
  background: #fbfcfe;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: none;
}
@media (max-width: 1080px) {
  .studio-page .studio-shell {
    grid-template-columns: 1fr;
  }
  .studio-page .studio-sidebar,
  .studio-page .studio-chat-card {
    min-height: 520px;
    height: 520px;
    max-height: 520px;
  }
  .studio-page .studio-sidebar-inner {
    zoom: 1;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .studio-page .studio-sidebar,
  .studio-page .studio-main {
    padding: 0;
  }
  .studio-page .studio-sidebar {
    padding: 16px;
  }
  .studio-page .studio-chat-header {
    padding: 16px 14px 12px;
    align-items: flex-start;
    flex-direction: column;
  }
  .studio-page .studio-sidebar-head h1,
  .studio-page .studio-chat-header h2 {
    font-size: 24px;
  }
  .studio-page .studio-chat-thread,
  .studio-page .studio-input-bar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .studio-page .chat-bubble {
    max-width: 100%;
  }
}
@media (max-width: 640px) {
  .container {
    width: min(100vw - 20px, 1280px);
  }
  .topbar {
    position: static;
  }
  .nav-row,
  .home-page .nav-row,
  .auth-page .nav-row,
  .studio-page .nav-row {
    grid-template-columns: 1fr;
    display: grid;
    gap: 10px;
    justify-items: stretch;
  }
  .brand-group {
    justify-content: space-between;
  }
  .brand-pill {
    width: 100%;
    justify-content: center;
  }
  .nav-links,
  .auth-page .nav-links,
  .studio-page .nav-links,
  .home-page .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav-actions,
  .auth-page .nav-actions,
  .studio-page .nav-actions,
  .home-page .nav-actions {
    justify-self: stretch;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav-actions .btn,
  .nav-actions form {
    flex: 1 1 auto;
  }
  .home-page .hero {
    grid-template-columns: 1fr;
    padding: 18px 0 20px;
    min-height: auto;
  }
  .home-page .hero-copy {
    max-width: 100%;
  }
  .home-page .hero h1 {
    font-size: 34px;
    white-space: normal;
    line-height: 1.05;
  }
  .home-page .hero p {
    font-size: 16px;
    line-height: 1.8;
  }
  .home-page .hero-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .home-page .home-logo-ring {
    --orbit-size: 280px;
    --orbit-radius: 110px;
  }
  .home-page .center-core {
    width: 92px;
    height: 92px;
    font-size: 18px;
  }
  .home-page .home-logo-ring span img {
    width: 34px;
    height: 34px;
  }
  .studio-page .studio-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .studio-page .studio-sidebar {
    min-height: auto;
    height: auto;
    overflow: visible;
  }
  .studio-page .studio-sidebar-inner {
    zoom: 1;
    width: 100%;
  }
  .studio-page .studio-chat-card {
    height: calc(100vh - 180px);
    min-height: calc(100vh - 180px);
    max-height: calc(100vh - 180px);
  }
  .studio-page .studio-chat-header {
    padding: 14px 14px 10px;
  }
  .studio-page .studio-chat-header h2 {
    font-size: 22px;
  }
  .studio-page .studio-current-model-chip {
    font-size: 12px;
  }
  .studio-page .studio-model-item {
    width: 100%;
    max-width: 100%;
  }
  .auth-unified-card {
    padding: 20px;
    border-radius: 20px;
  }
  .auth-unified-head h1 {
    font-size: 32px;
  }
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn,
  .hero-actions form,
  .hero-actions form button {
    width: 100%;
  }
  .table-scroll {
    overflow-x: auto;
  }
}
