:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eef1f8;
  background: #080b12;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #080b12;
  --panel: #0d111b;
  --panel-2: #111724;
  --line: rgba(255,255,255,.085);
  --muted: #8d95a8;
  --text: #f4f6fb;
  --accent: #8f7cff;
  --mint: #5be7c4;
  --danger: #ff758f;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; background:
  radial-gradient(circle at 75% -10%, rgba(122,92,255,.14), transparent 28rem),
  radial-gradient(circle at 100% 60%, rgba(72,220,187,.06), transparent 35rem),
  var(--bg);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0,1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 20px 14px 16px;
  border-right: 1px solid var(--line); background: rgba(8,11,18,.9); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 5px 9px 24px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  color: #07090f; font-weight: 900; background: linear-gradient(135deg, #9c8bff, #62f0c9);
  box-shadow: 0 8px 26px rgba(117,99,255,.25);
}
.brand strong { display: block; letter-spacing: -.02em; font-size: 15px; }
.brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }

.main-nav { display: grid; gap: 5px; }
.nav-item {
  display: flex; gap: 11px; align-items: center; min-height: 42px; width: 100%; padding: 0 12px;
  border: 1px solid transparent; border-radius: 11px; color: #aeb5c5; background: transparent; text-align: left;
}
.nav-item:hover { color: white; background: rgba(255,255,255,.035); }
.nav-item.active { color: white; background: rgba(143,124,255,.11); border-color: rgba(143,124,255,.2); }
.nav-icon { width: 22px; color: #a997ff; font-size: 15px; text-align: center; }
.sidebar-spacer { flex: 1; }

.credit-card { padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.credit-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.credit-row strong { color: white; font-size: 12px; }
.credit-track { height: 5px; border-radius: 999px; background: rgba(255,255,255,.08); margin: 11px 0; overflow: hidden; }
.credit-track div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--mint)); border-radius: inherit; }
.credit-card button { border: 0; background: none; color: #c7bfff; font-size: 11px; padding: 0; }

.profile { margin-top: 10px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; padding: 9px;
  border: 0; border-radius: 12px; background: transparent; color: white; text-align: left; }
.profile:hover { background: rgba(255,255,255,.035); }
.avatar { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: #1b2231; color: #dadfff; font-size: 10px; font-weight: 800; }
.profile strong { display: block; font-size: 11px; }
.profile small { display: block; color: var(--muted); font-size: 9.5px; margin-top: 2px; }
.dots { color: var(--muted); font-size: 11px; }

.workspace { min-width: 0; padding: 0 28px 36px; }
.topbar { height: 92px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 4px; color: #858fa5; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.topbar h1 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.top-actions { display: flex; gap: 8px; align-items: center; }

button.ghost, button.primary, button.generate-button {
  border: 1px solid var(--line); border-radius: 10px; color: white; min-height: 37px; padding: 0 14px;
}
button.ghost { background: rgba(255,255,255,.025); color: #bec5d3; }
button.ghost:hover { background: rgba(255,255,255,.06); }
button.primary { background: linear-gradient(180deg, #967fff, #7762ee); border-color: rgba(178,164,255,.45); box-shadow: 0 8px 22px rgba(101,82,220,.18); }
button.primary.small { min-height: 36px; font-size: 12px; }

.create-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); gap: 24px; padding-top: 24px; max-width: 1400px; margin: 0 auto; }
.composer-panel { min-width: 0; }
.mode-switch { display: inline-flex; padding: 4px; gap: 3px; background: #0c111a; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.mode-switch button { border: 0; color: #8e97aa; background: transparent; border-radius: 8px; padding: 8px 11px; font-size: 11px; }
.mode-switch button.selected { color: white; background: #171d2a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }

.prompt-card, .settings-card, .queue-card, .recent-card {
  border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(17,23,36,.9), rgba(12,16,25,.9));
  box-shadow: 0 16px 45px rgba(0,0,0,.12);
}
.prompt-card { padding: 16px; }
.prompt-header, .settings-title, .queue-head, .section-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.label { display: block; color: #e8ebf3; font-size: 11px; font-weight: 750; }
.hint { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.icon-button, .text-button { border: 0; background: transparent; color: #a9b0c1; font-size: 10px; }
.icon-button:hover, .text-button:hover { color: white; }
.prompt-card textarea {
  width: 100%; min-height: 184px; resize: vertical; border: 0; outline: 0; padding: 20px 1px 10px; color: #eef1f8; background: transparent;
  line-height: 1.65; font-size: 14px;
}
.prompt-footer { border-top: 1px solid var(--line); padding-top: 11px; display: flex; align-items: center; justify-content: space-between; color: #626d82; font-size: 9.5px; }
.prompt-footer > div { display: flex; gap: 4px; }

.settings-card { padding: 16px; margin-top: 14px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.field { display: grid; gap: 6px; color: #9ca5b6; font-size: 9.5px; }
.field select, .field input {
  width: 100%; height: 39px; border: 1px solid var(--line); border-radius: 9px; background: #0b1019; color: #e6e9f0; padding: 0 11px; outline: none;
}
.field select:focus, .field input:focus { border-color: rgba(143,124,255,.55); box-shadow: 0 0 0 3px rgba(143,124,255,.08); }
.advanced-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.advanced-box .settings-grid { margin-top: 0; }

.generate-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; }
.generate-row .cost { display: block; color: #c6ccd8; font-size: 10px; }
.generate-row small { display: block; color: #697387; font-size: 9px; margin-top: 3px; }
.generate-button {
  min-width: 178px; min-height: 46px !important; border-radius: 12px !important; background: linear-gradient(135deg, #8d77ff, #6650d7);
  border-color: rgba(179,164,255,.42) !important; font-weight: 750; font-size: 12px; box-shadow: 0 13px 32px rgba(89,70,207,.26);
}
.generate-button span { opacity: .55; margin-left: 8px; font-size: 9px; }

.preview-panel { min-width: 0; display: grid; gap: 14px; align-content: start; }
.preview-stage {
  aspect-ratio: 16/10; min-height: 300px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 18px;
  background:
    radial-gradient(circle at 70% 20%, rgba(130,107,255,.22), transparent 28%),
    linear-gradient(180deg, #101627 0%, #0b0f18 55%, #070910 100%);
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
}
.stage-overlay { position: absolute; inset: 13px 13px auto; display: flex; justify-content: space-between; z-index: 3; }
.stage-badge { padding: 5px 8px; background: rgba(6,8,13,.55); border: 1px solid rgba(255,255,255,.08); border-radius: 7px; color: #9ea6b7; font-size: 8px; backdrop-filter: blur(8px); }
.stage-menu { border: 0; background: rgba(6,8,13,.55); color: #9ea6b7; border-radius: 7px; width: 30px; height: 26px; }
.orb { position: absolute; border-radius: 50%; filter: blur(4px); }
.orb-a { width: 160px; height: 160px; background: radial-gradient(circle at 35% 35%, rgba(186,173,255,.9), rgba(98,73,222,.06) 64%, transparent 65%); right: 11%; top: 12%; opacity: .22; }
.orb-b { width: 115px; height: 115px; background: radial-gradient(circle at 50% 50%, rgba(74,229,196,.72), transparent 67%); left: 8%; bottom: -13%; opacity: .12; }
.grid-floor {
  position: absolute; left: -15%; right: -15%; bottom: -38%; height: 65%; transform: perspective(300px) rotateX(62deg);
  background-image: linear-gradient(rgba(130,115,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(130,115,255,.12) 1px, transparent 1px);
  background-size: 30px 30px; mask-image: linear-gradient(to bottom, transparent, black);
}
.preview-copy { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 2; padding: 20px; }
.preview-copy .play { width: 42px; height: 42px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 10px; padding-left: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.preview-copy strong { font-size: 12px; }
.preview-copy small { color: #7f899c; font-size: 9.5px; margin-top: 5px; }

.queue-card, .recent-card { padding: 14px; }
.live-dot { color: #64dabd; font-size: 9px; }
.queue-job { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding-top: 13px; margin-top: 11px; border-top: 1px solid var(--line); }
.queue-thumb { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, rgba(142,123,255,.25), rgba(68,218,187,.1)); border: 1px solid var(--line); color: #a794ff; }
.queue-info strong, .queue-info span { display: block; }
.queue-info strong { font-size: 10px; }
.queue-info span { color: var(--muted); font-size: 8.5px; margin-top: 3px; }
.mini-progress { margin-top: 7px; height: 3px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.mini-progress div { height: 100%; background: #8c78ff; }
.empty-queue { margin-top: 12px; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; color: #687286; font-size: 9.5px; text-align: center; }

.recent-list { display: grid; gap: 4px; margin-top: 10px; }
.recent-item { width: 100%; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 10px; align-items: center; border: 0; border-radius: 10px; background: transparent; padding: 7px; color: white; text-align: left; }
.recent-item:hover { background: rgba(255,255,255,.035); }
.project-thumb { width: 48px; height: 34px; border-radius: 7px; border: 1px solid rgba(255,255,255,.08); }
.project-thumb.city { background: radial-gradient(circle at 60% 25%, #f49ade 0 4%, transparent 5%), linear-gradient(145deg, #251950, #234d61 55%, #111523); }
.project-thumb.watch { background: radial-gradient(circle, #e9c98d 0 18%, #5d4627 20% 27%, transparent 29%), linear-gradient(145deg, #1c1c1c, #474037); }
.project-thumb.forest { background: radial-gradient(circle at 70% 15%, #c7d3ff 0 7%, transparent 8%), linear-gradient(145deg, #132f31, #0d1522 60%, #201834); }
.project-copy { min-width: 0; }
.project-copy strong { display: block; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-copy small { display: block; color: #788296; font-size: 8px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { color: #6fd5bb; background: rgba(72,205,173,.08); border: 1px solid rgba(72,205,173,.12); padding: 3px 6px; border-radius: 6px; font-size: 7.5px; }
.status.rendering { color: #c4baff; background: rgba(143,124,255,.1); border-color: rgba(143,124,255,.15); }

.placeholder-page { min-height: calc(100vh - 130px); display: grid; place-items: center; align-content: center; text-align: center; padding: 40px 20px; }
.placeholder-page h2 { margin: 6px 0 8px; font-size: clamp(28px,4vw,48px); letter-spacing: -.045em; }
.placeholder-page > p:not(.eyebrow) { max-width: 560px; color: var(--muted); margin: 0; font-size: 13px; line-height: 1.7; }
.placeholder-visual { width: 150px; height: 150px; position: relative; display: grid; place-items: center; margin-bottom: 28px; }
.placeholder-visual > span { font-size: 26px; color: #ab9cff; text-shadow: 0 0 30px rgba(147,126,255,.6); }
.placeholder-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(145,126,255,.16); }
.r2 { inset: 18px; border-color: rgba(75,224,190,.15); }
.r3 { inset: 37px; border-color: rgba(255,255,255,.11); }
.placeholder-actions { display: flex; gap: 9px; margin-top: 22px; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; padding: 11px 14px; border-radius: 10px; background: #171d2a; color: #eef1f8; border: 1px solid var(--line); box-shadow: 0 14px 45px rgba(0,0,0,.32); font-size: 11px; animation: toastIn .25s ease both; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0 } }

@media (max-width: 1060px) {
  .app-shell { grid-template-columns: 76px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand > div:not(.brand-mark), .nav-item:not(.active) { }
  .brand strong, .brand span, .nav-item { font-size: 0; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-icon { font-size: 15px; }
  .credit-card { display: none; }
  .profile { grid-template-columns: 1fr; justify-items: center; }
  .profile > span:not(.avatar) { display: none; }
}

@media (max-width: 840px) {
  .create-grid { grid-template-columns: 1fr; }
  .preview-panel { grid-template-columns: 1fr 1fr; }
  .preview-stage { grid-column: 1 / -1; }
  .workspace { padding-inline: 18px; }
}

@media (max-width: 640px) {
  .app-shell { display: block; }
  .sidebar {
    position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 66px; padding: 8px 10px;
    border-right: 0; border-top: 1px solid var(--line); flex-direction: row; align-items: center; background: rgba(8,11,18,.94);
  }
  .brand, .credit-card, .profile, .sidebar-spacer { display: none; }
  .main-nav { width: 100%; grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .nav-item, .nav-item.active { min-height: 48px; display: grid; place-items: center; gap: 2px; padding: 4px; font-size: 8px; }
  .nav-icon { font-size: 14px; line-height: 1; }
  .workspace { padding: 0 13px 90px; }
  .topbar { height: 76px; }
  .topbar h1 { font-size: 19px; }
  .top-actions .ghost { display: none; }
  .top-actions .primary { padding: 0 10px; font-size: 10px; }
  .create-grid { padding-top: 16px; gap: 15px; }
  .mode-switch { width: 100%; }
  .mode-switch button { flex: 1; padding-inline: 5px; }
  .settings-grid { grid-template-columns: 1fr; }
  .generate-row { align-items: stretch; flex-direction: column; }
  .generate-button { width: 100%; }
  .preview-panel { grid-template-columns: 1fr; }
  .preview-stage { min-height: 240px; }
  .recent-item { grid-template-columns: 42px minmax(0,1fr); }
  .project-thumb { width: 42px; }
  .recent-item .status { display: none; }
  .prompt-card textarea { min-height: 155px; font-size: 13px; }
  .placeholder-actions { flex-direction: column; width: 100%; max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}


/* Full landing pages */
.landing-page { max-width: 1400px; margin: 0 auto; padding: 26px 0 40px; }
.landing-header { margin-bottom: 24px; }
.landing-header h2 { margin: 4px 0 7px; font-size: 28px; letter-spacing: -.04em; }
.landing-header > p:last-child { margin: 0; max-width: 720px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.landing-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.search-box { min-width: min(420px, 52vw); height: 39px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: #0c1019; padding: 0 12px; color: #687286; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: white; font-size: 11px; }
.toolbar-actions { display: flex; gap: 8px; }
button.mini { min-height: 34px; padding: 0 11px; font-size: 10px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.metric-card { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(17,23,36,.9), rgba(12,16,25,.9)); padding: 16px; }
.metric-card span { display: block; color: var(--muted); font-size: 9px; }
.metric-card strong { display: block; margin-top: 8px; font-size: 23px; letter-spacing: -.04em; }
.metric-card small { display: block; color: #70798c; font-size: 8.5px; margin-top: 5px; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin: 22px 0 11px; }
.section-heading h3 { margin: 0; font-size: 14px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 9.5px; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.full-project-card, .new-project-card, .asset-card { border: 1px solid var(--line); border-radius: 14px; background: #0d121d; color: white; text-align: left; overflow: hidden; }
.full-project-card { padding: 0; }
.full-project-card:hover, .asset-card:hover { border-color: rgba(143,124,255,.34); transform: translateY(-1px); }
.project-cover { height: 120px; position: relative; background: #151b28; }
.project-cover.city { background: radial-gradient(circle at 63% 30%, rgba(240,123,211,.7), transparent 7%), linear-gradient(140deg,#291a50,#163b50 58%,#111522); }
.project-cover.forest { background: radial-gradient(circle at 70% 17%, #d4ddff 0 7%, transparent 8%), linear-gradient(145deg,#163d37,#0c1721 60%,#221b36); }
.project-cover.watch { background: radial-gradient(circle at 53% 50%,#f0d7a2 0 12%,#735633 13% 23%,transparent 24%),linear-gradient(145deg,#181818,#51483c); }
.project-cover.coffee { background: radial-gradient(circle at 30% 40%,#a86b3d 0 10%,transparent 11%),linear-gradient(145deg,#3b2a20,#151b1d); }
.project-cover.tokyo { background: linear-gradient(135deg,#2d154c,#23496d 52%,#161526); }
.project-menu { position: absolute; right: 10px; top: 8px; background: rgba(5,7,11,.55); padding: 3px 7px; border-radius: 7px; color: #aeb4c4; font-size: 9px; }
.full-project-copy { display: flex; justify-content: space-between; align-items: start; gap: 8px; padding: 13px 13px 0; }
.full-project-copy strong, .full-project-copy small { display: block; }
.full-project-copy strong { font-size: 10.5px; }
.full-project-copy small { color: var(--muted); font-size: 8.5px; margin-top: 3px; }
.full-project-card > p { margin: 8px 13px 13px; color: #687286; font-size: 8.5px; }
.new-project-card { min-height: 184px; display: grid; place-items: center; align-content: center; text-align: center; padding: 20px; border-style: dashed; color: #c9cede; }
.new-project-card span { font-size: 24px; color: #9c8cff; }
.new-project-card strong { margin-top: 7px; font-size: 10px; }
.new-project-card small { max-width: 170px; margin-top: 4px; color: var(--muted); font-size: 8.5px; line-height: 1.5; }

.filter-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; }
.filter-tabs button { border: 1px solid transparent; border-radius: 8px; background: transparent; color: #8f98aa; padding: 7px 10px; font-size: 9px; white-space: nowrap; }
.filter-tabs button.active { background: rgba(143,124,255,.11); color: white; border-color: rgba(143,124,255,.18); }
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.asset-card { padding: 9px; }
.asset-preview { height: 112px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 10px; overflow: hidden; }
.asset-preview span { opacity: .5; }
.asset-city { background: linear-gradient(145deg,#251950,#234d61 55%,#111523); }
.asset-person { background: radial-gradient(circle at 50% 35%,#b79d8e 0 16%,transparent 17%),linear-gradient(145deg,#3d3444,#161b28); }
.asset-forest { background: linear-gradient(145deg,#173d36,#0b1822 65%,#201935); }
.asset-logo { background: linear-gradient(145deg,#171c2a,#26213f); }
.asset-audio { background: repeating-linear-gradient(90deg,#171d2b 0 5px,#292141 5px 9px); }
.asset-watch { background: radial-gradient(circle,#e9c98d 0 18%,#5d4627 20% 27%,transparent 29%),linear-gradient(145deg,#1c1c1c,#474037); }
.asset-card strong { display: block; font-size: 9.5px; }
.asset-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.drop-zone { margin-top: 16px; min-height: 110px; display: grid; place-items: center; align-content: center; border: 1px dashed rgba(143,124,255,.25); border-radius: 14px; background: rgba(143,124,255,.035); text-align: center; cursor: pointer; }
.drop-zone span { color: #9b89ff; font-size: 20px; }
.drop-zone strong { font-size: 9.5px; margin-top: 5px; }
.drop-zone small { color: var(--muted); font-size: 8px; margin-top: 4px; }

.info-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; margin-bottom: 16px; border: 1px solid rgba(143,124,255,.17); border-radius: 13px; background: rgba(143,124,255,.055); }
.info-banner > span { color: #a694ff; font-size: 18px; }
.info-banner strong { display: block; font-size: 10px; }
.info-banner p { margin: 3px 0 0; color: var(--muted); font-size: 8.5px; }
.model-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.model-card { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #0d121d; }
.model-card.selected-model { border-color: rgba(143,124,255,.37); box-shadow: inset 0 0 0 1px rgba(143,124,255,.08); }
.model-card-head { display: flex; justify-content: space-between; align-items: center; }
.model-logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(143,124,255,.11); color: #aa9bff; }
.model-card-head > span { color: #8c96a9; font-size: 7.5px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; }
.model-card h3 { margin: 13px 0 6px; font-size: 12px; }
.model-card p { min-height: 42px; margin: 0; color: var(--muted); font-size: 8.5px; line-height: 1.55; }
.model-specs { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.model-specs span { padding: 4px 6px; border-radius: 6px; background: #151b27; color: #8e97a8; font-size: 7.5px; }
.routing-table { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.table-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr .7fr; gap: 12px; align-items: center; min-height: 46px; padding: 0 14px; border-top: 1px solid var(--line); font-size: 8.5px; color: #929bac; }
.table-row:first-child { border-top: 0; }
.table-row strong { color: #e5e8ef; }
.table-head { min-height: 34px; color: #687286; background: rgba(255,255,255,.025); }
.ok { color: #66d9bc; }

.export-list { display: grid; gap: 7px; }
.export-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto 60px auto; gap: 12px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #0d121d; }
.export-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(145deg,#201b3d,#122b31); font-size: 9px; }
.export-row strong, .export-row small { display: block; }
.export-row strong { font-size: 9.5px; }
.export-row small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.export-size { color: #7f899b; font-size: 8px; }

.docs-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 24px; align-items: start; }
.docs-nav { position: sticky; top: 112px; display: grid; gap: 3px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #0c111a; }
.docs-nav strong { color: #626d81; font-size: 8px; text-transform: uppercase; margin: 8px 7px 4px; letter-spacing: .1em; }
.docs-nav button { border: 0; background: transparent; color: #98a1b2; text-align: left; border-radius: 7px; padding: 7px; font-size: 8.5px; }
.docs-nav button.active, .docs-nav button:hover { color: white; background: rgba(255,255,255,.04); }
.docs-content { max-width: 760px; }
.docs-kicker { color: #9f8fff; font-size: 8px; letter-spacing: .12em; font-weight: 800; }
.docs-content h2 { margin: 7px 0 10px; font-size: 28px; letter-spacing: -.04em; }
.docs-content h3 { margin: 25px 0 10px; font-size: 14px; }
.docs-content > p { color: #9aa3b4; font-size: 10px; line-height: 1.8; }
.workflow-steps { display: grid; gap: 8px; }
.workflow-steps > div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #0d121d; }
.workflow-steps b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: rgba(143,124,255,.1); color: #a896ff; font-size: 9px; }
.workflow-steps strong, .workflow-steps small { display: block; }
.workflow-steps strong { font-size: 9.5px; }
.workflow-steps small { margin-top: 3px; color: var(--muted); font-size: 8.5px; }
.doc-callout { margin: 18px 0; padding: 13px; border-left: 2px solid #8f7cff; background: rgba(143,124,255,.05); }
.doc-callout strong { font-size: 9px; }
.doc-callout p { margin: 4px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.6; }

.api-hero { display: grid; grid-template-columns: 1.4fr .6fr; gap: 20px; align-items: center; padding: 20px; border: 1px solid rgba(143,124,255,.16); border-radius: 16px; background: linear-gradient(135deg,rgba(143,124,255,.08),rgba(75,224,190,.035)); }
.api-hero h2 { margin: 8px 0; max-width: 700px; font-size: 25px; letter-spacing: -.04em; }
.api-hero p { margin: 0; color: var(--muted); font-size: 9.5px; line-height: 1.65; }
.api-status { color: #72d9be; font-size: 8px; }
.api-key-box { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5,8,13,.45); }
.api-key-box span, .api-key-box code { display: block; }
.api-key-box span { color: var(--muted); font-size: 8px; }
.api-key-box code { margin: 7px 0 11px; color: #d9deea; font-size: 9px; }
.api-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 15px; }
.api-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #0d121d; }
.method { display: inline-block; padding: 3px 5px; border-radius: 5px; margin-right: 6px; font-size: 7px; font-weight: 800; }
.method.post { color: #a799ff; background: rgba(143,124,255,.11); }
.method.get { color: #6fe0c1; background: rgba(75,224,190,.08); }
.api-card code { font-size: 9px; }
.api-card p { margin: 8px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.5; }
.code-panel { margin-top: 15px; border: 1px solid var(--line); border-radius: 12px; background: #080c13; overflow: hidden; }
.code-head { height: 36px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); color: #8992a4; font-size: 8.5px; }
.code-panel pre { margin: 0; padding: 15px; overflow-x: auto; color: #bac2d0; font-size: 9px; line-height: 1.7; }

.plan-hero { display: flex; justify-content: space-between; align-items: center; padding: 20px; border: 1px solid rgba(143,124,255,.2); border-radius: 15px; background: linear-gradient(135deg,rgba(143,124,255,.11),rgba(75,224,190,.035)); }
.plan-pill { color: #b5a8ff; font-size: 7px; letter-spacing: .12em; }
.plan-hero h2 { margin: 5px 0; font-size: 24px; }
.plan-hero p { margin: 0; color: var(--muted); font-size: 9px; }
.plan-price { text-align: right; }
.plan-price strong { display: block; font-size: 27px; letter-spacing: -.04em; }
.plan-price span { display: block; color: var(--muted); font-size: 8px; }
.usage-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 14px; }
.usage-grid article { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #0d121d; }
.usage-grid article > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 8.5px; }
.usage-grid article > div:first-child span { color: var(--muted); }
.usage-bar { height: 5px; margin: 11px 0 7px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.usage-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--accent),var(--mint)); }
.usage-grid small { color: #687286; font-size: 8px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.price-card { position: relative; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #0d121d; }
.price-card.current { border-color: rgba(143,124,255,.35); }
.current-badge { position: absolute; right: 12px; top: 12px; color: #ad9dff; font-size: 7px; }
.price-card h3 { margin: 0; font-size: 13px; }
.price-card p { margin: 5px 0 16px; color: var(--muted); font-size: 8.5px; }
.price-card > strong { display: block; font-size: 18px; }
.price-card > small { display: block; color: #778195; font-size: 8px; margin: 4px 0 13px; }

.settings-layout { display: grid; grid-template-columns: 190px minmax(0,700px); gap: 18px; }
.settings-nav { display: grid; align-content: start; gap: 4px; }
.settings-nav button { border: 0; border-radius: 8px; background: transparent; color: #929bad; text-align: left; padding: 9px 10px; font-size: 9px; }
.settings-nav button.active { color: white; background: rgba(143,124,255,.1); }
.settings-form { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #0d121d; }
.profile-header { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.large-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,#8171df,#54dabb); color: #07100f; font-weight: 900; }
.profile-header h3 { margin: 0; font-size: 12px; }
.profile-header p { margin: 3px 0 0; color: var(--muted); font-size: 8.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.toggle-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { font-size: 9px; }
.toggle-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.settings-actions { display: flex; justify-content: end; gap: 8px; padding-top: 15px; border-top: 1px solid var(--line); }

.project-detail-title .text-button { padding: 0; margin-bottom: 14px; }
.project-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 14px; }
.project-stage-large { min-height: 330px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: radial-gradient(circle at 70% 20%,rgba(130,107,255,.2),transparent 28%),linear-gradient(180deg,#101627,#080b12); }
.project-inspector { display: grid; gap: 12px; align-content: start; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #0d121d; }
.scene-strip { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.scene-card { border: 1px solid var(--line); border-radius: 11px; background: #0d121d; color: white; text-align: left; padding: 8px; }
.scene-card > span { color: #6f7890; font-size: 7px; }
.scene-thumb { height: 72px; margin: 6px 0 8px; border-radius: 8px; background: linear-gradient(145deg,#281c4c,#193742); }
.scene-2 { background: linear-gradient(145deg,#193a3d,#121927); }
.scene-3 { background: linear-gradient(145deg,#402739,#161a27); }
.scene-4 { background: linear-gradient(145deg,#232b51,#151828); }
.scene-5 { background: linear-gradient(145deg,#304338,#141923); }
.scene-card strong, .scene-card small { display: block; }
.scene-card strong { font-size: 8.5px; }
.scene-card small { color: var(--muted); font-size: 7.5px; margin-top: 2px; }

@media (max-width: 980px) {
  .metric-grid, .model-grid { grid-template-columns: repeat(2,1fr); }
  .project-grid { grid-template-columns: repeat(2,1fr); }
  .asset-grid { grid-template-columns: repeat(3,1fr); }
  .docs-layout { grid-template-columns: 170px minmax(0,1fr); }
  .api-hero { grid-template-columns: 1fr; }
  .project-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .landing-page { padding-top: 18px; }
  .landing-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; min-width: 0; }
  .metric-grid, .project-grid, .asset-grid, .model-grid, .api-grid, .usage-grid, .pricing-grid, .form-grid { grid-template-columns: 1fr; }
  .docs-layout, .settings-layout { grid-template-columns: 1fr; }
  .docs-nav, .settings-nav { position: static; grid-template-columns: repeat(2,1fr); }
  .info-banner { grid-template-columns: auto 1fr; }
  .info-banner button { grid-column: 1/-1; }
  .table-row { grid-template-columns: 1.1fr .9fr .8fr; }
  .table-row > *:nth-child(3) { display: none; }
  .export-row { grid-template-columns: 36px minmax(0,1fr) auto; }
  .export-row .export-size, .export-row .status { display: none; }
  .plan-hero { align-items: flex-start; flex-direction: column; gap: 16px; }
  .plan-price { text-align: left; }
  .scene-strip { grid-template-columns: repeat(2,1fr); }
}
