/* =====================================================================
   RoLiquid — shared stylesheet
   Calm grey studio theme. One accent (lime) for primary actions,
   cyan for selection/focus. Used by every page.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Obsidian surfaces: near-black with a faint blue cast, stepping up in small, even jumps */
  --bg: #07080c;
  --rail: #05060a;
  --panel: #0e1016;
  --panel-2: #141720;
  --panel-3: #1b1f2a;
  --hover: #232836;
  --line: rgba(148, 163, 214, 0.09);
  --line-2: rgba(148, 163, 214, 0.15);
  --text: #f5f7fb;
  --text-2: #c3c8d6;
  --muted: #8a91a6;
  --faint: #5a6076;

  /* Electric accents: lime = primary action, cyan = focus/selection, violet = highlight */
  --lime: #b6f23a;
  --lime-hover: #c8ff55;
  --lime-ink: #0d1600;
  --lime-soft: rgba(182, 242, 58, 0.12);
  --cyan: #22e1ff;
  --cyan-soft: rgba(34, 225, 255, 0.12);
  --violet: #9b6bff;
  --violet-soft: rgba(155, 107, 255, 0.14);
  --amber: #ffc24b;
  --red: #ff6b7a;
  --glow-cyan: 0 0 0 1px rgba(34, 225, 255, .35), 0 0 24px -4px rgba(34, 225, 255, .45);
  --glow-lime: 0 0 0 1px rgba(182, 242, 58, .45), 0 0 26px -6px rgba(182, 242, 58, .6);
  --glow-violet: 0 0 0 1px rgba(155, 107, 255, .4), 0 0 28px -6px rgba(155, 107, 255, .55);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --rail-w: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: rgba(34, 184, 207, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: #3c3d44 transparent; }
.scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll::-webkit-scrollbar-thumb { background: #3c3d44; border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
.scroll::-webkit-scrollbar-track { background: transparent; }

/* ---------- 3. App shell: left rail ---------- */
.app { display: flex; min-height: 100vh; }
.rail {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--rail-w);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 0; background: var(--rail); border-right: 1px solid var(--line);
}
.rail-logo { width: 40px; height: 40px; margin-bottom: 14px; display: grid; place-items: center; border-radius: 12px; }
.rail-logo:hover { background: var(--panel-2); }
.rail-item {
  width: 62px; padding: 9px 0 7px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted); font-size: 10.5px; font-weight: 600; transition: background .15s, color .15s;
}
.rail-item svg { width: 20px; height: 20px; }
.rail-item:hover { color: var(--text); background: var(--panel-2); }
.rail-item.is-active { color: #fff; background: var(--panel-3); }
.rail-item.is-active svg { color: var(--lime); }
.rail-spacer { flex: 1; }
.rail-status { position: relative; }
.rail-status .dot { position: absolute; top: 7px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); border: 2px solid var(--rail); }
.rail-status.is-live .dot { background: var(--lime); }
.main { flex: 1; min-width: 0; margin-left: var(--rail-w); }

/* ---------- 4. Top bar (content pages) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 16px;
  padding: 0 28px; background: rgba(27, 28, 32, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand small { font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 99px;
  background: var(--panel); border: 1px solid var(--line-2); font-size: 12px; color: var(--text-2); white-space: nowrap;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status-pill.is-live .dot { background: var(--lime); }
.cap-pill { font-family: var(--mono); font-size: 11.5px; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 10px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { background: var(--lime); color: var(--lime-ink); }
.btn-primary:hover:not(:disabled) { background: var(--lime-hover); }
.btn-secondary { background: var(--panel-3); color: var(--text); border: 1px solid var(--line-2); }
.btn-secondary:hover:not(:disabled) { background: var(--hover); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { color: #fff; background: var(--panel-2); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: 12px; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; color: var(--text-2);
  transition: background .15s, color .15s;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: var(--panel-3); color: #fff; }
.icon-btn.is-active { background: var(--cyan-soft); color: var(--cyan); }
.link-btn { color: var(--cyan); font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

/* ---------- 6. Tabs, segmented controls, chips ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.tabs > button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 12px;
  border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s;
}
.tabs > button svg { width: 16px; height: 16px; }
.tabs > button:hover { color: var(--text); }
.tabs > button.is-active { background: var(--panel-3); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.tabs > button.is-active svg { color: var(--lime); }
.tabs.pill { border-radius: 99px; display: inline-flex; }
.tabs.pill > button { border-radius: 99px; flex: none; padding: 0 16px; }

.seg { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.seg > button { flex: 1; height: 30px; padding: 0 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.seg > button svg { width: 15px; height: 15px; }
.seg > button:hover { color: var(--text); }
.seg > button.is-active { background: var(--panel-3); color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px;
  font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--panel-2); border: 1px solid var(--line-2); transition: all .15s;
}
.chip:hover { color: #fff; border-color: #50525a; background: var(--panel-3); }
.chip.is-active { color: #fff; border-color: var(--cyan); background: var(--cyan-soft); }
.chip .count { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

.ask-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px;
  font-size: 12.5px; font-weight: 700; color: #d9f99d; background: var(--lime-soft); border: 1px solid rgba(132, 204, 22, .35);
  transition: background .15s, border-color .15s;
}
.ask-chip svg { width: 14px; height: 14px; }
.ask-chip:hover { background: rgba(132, 204, 22, .2); border-color: rgba(132, 204, 22, .6); }

/* ---------- 7. Form fields ---------- */
.label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.label .hint { font-weight: 500; color: var(--muted); }
.field {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px;
  font-size: 13.5px; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: var(--faint); }
.field:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 184, 207, .15); }
select.field { appearance: none; -webkit-appearance: none; padding-right: 32px; color-scheme: dark; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238d8e97' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.search .field { padding-left: 34px; height: 36px; }

/* Prompt box: textarea with an inner footer row */
.prompt-box { background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.prompt-box:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 184, 207, .12); }
.prompt-box textarea { display: block; width: 100%; border: 0; outline: none; resize: none; background: transparent; padding: 14px 14px 6px; font-size: 14px; line-height: 1.6; color: var(--text); min-height: 110px; }
.prompt-box textarea::placeholder { color: var(--faint); }
.prompt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 10px 12px; }
.prompt-foot .count { font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* Range slider */
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(var(--cyan), var(--cyan)) 0 0 / var(--fill, 50%) 100% no-repeat, var(--panel-3);
}
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--cyan); box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 4px solid var(--cyan); }

/* Switch */
.switch { position: relative; flex-shrink: 0; width: 38px; height: 22px; border-radius: 99px; background: var(--panel-3); border: 1px solid var(--line-2); transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #9c9da5; transition: transform .2s, background .2s; }
.switch[aria-checked="true"] { background: var(--lime); border-color: var(--lime); }
.switch[aria-checked="true"]::after { transform: translateX(16px); background: #fff; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.toggle-row .t { font-size: 13px; font-weight: 600; color: var(--text); }
.toggle-row .d { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* Dropzone */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 180px; padding: 18px; border-radius: 14px; border: 1.5px dashed #4a4b53; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--cyan); background: #1f2126; }
.dropzone .dz-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-3); color: var(--text-2); }
.dropzone .dz-icon svg { width: 20px; height: 20px; }
.dropzone strong { font-size: 13.5px; }
.dropzone span { font-size: 12px; color: var(--muted); }
.dropzone img { max-height: 210px; width: 100%; object-fit: contain; border-radius: 10px; }

/* ---------- 8. Cards & badges ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; }
.badge-grey { color: var(--text-2); background: rgba(20, 21, 24, .75); border: 1px solid var(--line-2); }
.badge-lime { color: #d9f99d; background: rgba(132, 204, 22, .14); border: 1px solid rgba(132, 204, 22, .3); }
.badge-cyan { color: #a5f3fc; background: var(--cyan-soft); border: 1px solid rgba(34, 184, 207, .3); }

.asset-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.asset-card { position: relative; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; cursor: pointer; }
.asset-card:hover { border-color: #4d4f57; transform: translateY(-2px); }
.asset-thumb { display: block; position: relative; aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 40%, #34353b, #25262b 75%); overflow: hidden; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .4s; }
.asset-card:hover .asset-thumb img { transform: scale(1.04); }
.asset-thumb .tl { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.asset-thumb .tr { position: absolute; top: 10px; right: 10px; }
.asset-body { padding: 12px 14px 14px; }
.asset-body h3 { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.skeleton { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ---------- 9. Content pages ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 36px 32px 80px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); margin-top: 6px; font-size: 14.5px; max-width: 640px; }
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-title h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 16px; }
.empty strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }

/* Home hero */
.hero {
  position: relative; padding: 72px 32px 56px; text-align: center;
  background:
    radial-gradient(800px 340px at 50% 0%, rgba(34, 184, 207, .10), transparent 70%),
    radial-gradient(600px 300px at 80% 20%, rgba(132, 204, 22, .05), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.025em; }
.hero > p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.hero-mode { margin: 26px auto 18px; }
.hero-box { max-width: 760px; margin: 0 auto; text-align: left; }
.hero-box .prompt-box { background: var(--panel); border-radius: 18px; }
.hero-box .prompt-box textarea { min-height: 120px; font-size: 15px; padding: 18px 18px 8px; }
.hero-box .dropzone { background: var(--panel); border-radius: 18px; min-height: 196px; }
.hero-controls { max-width: 760px; margin: 14px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hero-controls .left, .hero-controls .right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-controls .right { margin-left: auto; }
.hero-controls select.field { height: 38px; padding-top: 0; padding-bottom: 0; width: auto; background-color: var(--panel); font-size: 12.5px; font-weight: 600; }

/* Feature strip */
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 40px 0 48px; }
.feature { padding: 20px; }
.feature .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-3); color: var(--lime); margin-bottom: 14px; }
.feature .ico svg { width: 19px; height: 19px; }
.feature h3 { font-size: 15px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Specs */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.step-card { padding: 24px; }
.step-num { font-family: var(--mono); font-size: 11.5px; color: var(--lime); font-weight: 600; }
.step-card h3 { font-size: 17px; font-weight: 700; margin-top: 10px; }
.step-card p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.code {
  font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--text-2); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; white-space: pre; margin-top: 16px;
}
.code .c { color: var(--faint); }
.code .k { color: #7dd3e6; }
.code .s { color: #bef264; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; font-weight: 700; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table td:nth-child(2) { font-family: var(--mono); color: #fff; white-space: nowrap; }
.table td:nth-child(3) { color: var(--muted); }
.doc-section { margin-top: 56px; }
.doc-section > h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.doc-section > p { color: var(--muted); margin-top: 6px; max-width: 720px; }

/* ---------- 10. Create workspace ---------- */
.ws {
  height: 100vh; display: grid; gap: 12px; padding: 12px;
  grid-template-columns: 340px minmax(0, 1fr) 330px;
}
.ws-panel { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ws-panel-head { padding: 12px 12px 0; }
.ws-panel-body { flex: 1; min-height: 0; padding: 16px; }
.ws-panel-foot { padding: 14px 16px 16px; border-top: 1px solid var(--line); background: #1f2024; }
.group + .group { margin-top: 22px; }
.group-title { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 700; margin-bottom: 10px; }
.group-title .value { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); font-weight: 600; }
.range-labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 8px; }
.presets { display: flex; gap: 6px; margin-top: 12px; }
.presets button { flex: 1; padding: 7px 4px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 11.5px; font-weight: 600; color: var(--text-2); line-height: 1.3; transition: all .15s; }
.presets button b { display: block; font-family: var(--mono); font-size: 12px; color: #fff; }
.presets button:hover { border-color: #55575f; }
.presets button.is-active { border-color: var(--cyan); background: var(--cyan-soft); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.collapsible > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; padding: 4px 0 12px; }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary svg { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.collapsible[open] > summary svg { transform: rotate(180deg); }
.gen-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.gen-meta .mode { display: inline-flex; align-items: center; gap: 6px; }
.gen-meta .mode .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.gen-meta .mode.is-live .dot { background: var(--lime); }

/* Progress */
.progress { margin-bottom: 12px; }
.progress-top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 7px; }
.progress-top b { font-weight: 600; color: var(--text); }
.progress-top span { font-family: var(--mono); color: var(--cyan); }
.progress-track { height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--cyan); border-radius: inherit; transition: width .15s linear; }
.steps-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.steps-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); }
.steps-list li .i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #4a4b53; flex-shrink: 0; display: grid; place-items: center; }
.steps-list li.is-active { color: var(--text); }
.steps-list li.is-active .i { border-color: var(--cyan); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps-list li.is-done { color: var(--text-2); }
.steps-list li.is-done .i { border-color: var(--lime); background: var(--lime); }
.steps-list li.is-done .i::after { content: ''; width: 5px; height: 3px; border-left: 1.5px solid var(--lime-ink); border-bottom: 1.5px solid var(--lime-ink); transform: rotate(-45deg) translate(1px, -1px); }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(20, 32, 3, .25); border-top-color: var(--lime-ink); animation: spin .7s linear infinite; }
.spinner.light { border-color: rgba(255, 255, 255, .2); border-top-color: var(--cyan); }

/* Viewport frame */
.stage { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stage-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.stage-bar .divider { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; }
.stage-bar .title { font-size: 13px; font-weight: 700; padding: 0 6px; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-bar .spacer { flex: 1; }
.viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; transition: background .3s; }
.viewport.bg-studio { background: radial-gradient(ellipse 75% 70% at 50% 42%, #3a3b42 0%, #2a2b30 55%, #222327 100%); }
.viewport.bg-dark { background: radial-gradient(ellipse 75% 70% at 50% 42%, #24252a 0%, #18191c 70%); }
.viewport.bg-light { background: radial-gradient(ellipse 75% 70% at 50% 42%, #6a6c74 0%, #4c4e55 60%, #3d3f45 100%); }
.viewport canvas { width: 100% !important; height: 100% !important; outline: none; cursor: grab; }
.viewport canvas:active { cursor: grabbing; }
.vp-corner { position: absolute; pointer-events: none; }
.vp-corner > * { pointer-events: auto; }
.stats-card { top: 14px; left: 14px; min-width: 200px; padding: 12px 14px; border-radius: 12px; background: rgba(28, 29, 33, .82); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stats-card .row { display: flex; justify-content: space-between; gap: 18px; font-size: 12px; padding: 3px 0; }
.stats-card .row span:first-child { color: var(--muted); }
.stats-card .row span:last-child { font-family: var(--mono); color: #fff; }
.stats-card .ok { color: #bef264 !important; }
.stats-card .bad { color: var(--red) !important; }
.cap-bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 8px; }
.cap-bar > span { display: block; height: 100%; width: 0; background: var(--lime); transition: width .5s; }
.cap-bar.is-over > span { background: var(--red); }
.hint-card { right: 14px; bottom: 14px; font-size: 11px; color: var(--muted); padding: 6px 10px; border-radius: 8px; background: rgba(28, 29, 33, .7); }
.action-bar {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px;
  border-radius: 14px; background: rgba(32, 33, 38, .92); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.action-bar .divider { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; }
.gen-overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .3s; }
.gen-overlay.is-on { opacity: 1; }
.gen-overlay .pill { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 99px; background: rgba(28, 29, 33, .9); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.gen-overlay .scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(34, 184, 207, .7); box-shadow: 0 0 18px 4px rgba(34, 184, 207, .35); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0% { top: 8%; } 50% { top: 92%; } 100% { top: 8%; } }
.webgl-error { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }

/* Right panel: creations */
.creations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.creation {
  position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #2a2b30; border: 1.5px solid transparent; cursor: pointer; transition: border-color .15s;
}
.creation img { width: 100%; height: 100%; object-fit: cover; }
.creation:hover { border-color: #55575f; }
.creation.is-active { border-color: var(--lime); }
.creation .tag { position: absolute; left: 6px; bottom: 6px; font-family: var(--mono); font-size: 9.5px; padding: 2px 5px; border-radius: 5px; background: rgba(20, 21, 24, .8); color: var(--text-2); opacity: 0; transition: opacity .15s; }
.creation:hover .tag, .creation.is-active .tag { opacity: 1; }
.creation .del { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(20, 21, 24, .8); color: var(--text-2); opacity: 0; transition: opacity .15s; }
.creation .del svg { width: 13px; height: 13px; }
.creation:hover .del { opacity: 1; }
.creation .del:hover { color: var(--red); }
.creations-empty { grid-column: 1 / -1; text-align: center; padding: 34px 10px; color: var(--muted); font-size: 12.5px; border: 1px dashed var(--line-2); border-radius: 12px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-family: var(--mono); font-size: 12px; text-align: right; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); padding: 5px 0; }
.check .m { width: 17px; height: 17px; border-radius: 5px; flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; }
.check .m svg { width: 10px; height: 10px; }
.check.ok .m { background: var(--lime-soft); color: var(--lime); }
.check.warn .m { background: rgba(242, 179, 61, .15); color: var(--amber); }
.check.bad .m { background: rgba(240, 113, 107, .15); color: var(--red); }

/* ---------- 11. Ask AI ---------- */
.ask { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ask-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
.msg { max-width: 100%; font-size: 13px; line-height: 1.55; }
.msg.user { align-self: flex-end; max-width: 88%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--panel-3); color: #fff; }
.msg.bot { display: flex; gap: 10px; }
.msg.bot .avatar { width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: var(--lime-soft); color: var(--lime); }
.msg.bot .avatar svg { width: 15px; height: 15px; }
.msg.bot .body { flex: 1; min-width: 0; color: var(--text-2); }
.msg.bot .body > p + p { margin-top: 6px; }
.typing { display: inline-flex; gap: 4px; padding: 8px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.suggestion { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.suggestion h4 { font-size: 12.5px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.suggestion p { margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.suggestion .meta { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.suggestion .actions { margin-top: 10px; display: flex; gap: 6px; }
.ask-input { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); }
.ask-input:focus-within { border-color: var(--cyan); }
.ask-input textarea { flex: 1; border: 0; outline: none; resize: none; background: transparent; font-size: 13px; line-height: 1.5; max-height: 120px; min-height: 22px; }
.ask-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------- 12. Modal & toasts ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 10, 12, .6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); transform: translateY(10px); transition: transform .25s; }
.modal-backdrop.is-open .modal { transform: none; }
.modal.wide { max-width: 680px; height: min(720px, calc(100vh - 32px)); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 0; }
.modal-head h2 { font-size: 17px; font-weight: 800; }
.modal-head p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.modal-body { padding: 18px 22px 22px; flex: 1; min-height: 0; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2); }
.note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--amber); }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; max-width: 380px; padding: 11px 14px; border-radius: 12px; font-size: 13px; background: #2b2c32; border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: toastIn .25s ease-out; }
.toast .ti { width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; }
.toast .ti svg { width: 11px; height: 11px; }
.toast.success .ti { background: var(--lime-soft); color: var(--lime); }
.toast.info .ti { background: var(--cyan-soft); color: var(--cyan); }
.toast.error .ti { background: rgba(240, 113, 107, .15); color: var(--red); }
.toast.out { animation: toastOut .25s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

footer.site-foot { border-top: 1px solid var(--line); padding: 26px 32px; color: var(--faint); font-size: 12px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1280px) {
  .ws { grid-template-columns: 310px minmax(0, 1fr) 290px; }
}
@media (max-width: 1080px) {
  .ws { height: auto; grid-template-columns: 320px minmax(0, 1fr); }
  .ws > .stage { min-height: 560px; }
  .ws > .ws-panel.right { grid-column: 1 / -1; max-height: 520px; }
}
@media (max-width: 760px) {
  :root { --rail-w: 0px; }
  .rail { inset: auto 0 0 0; width: 100%; height: 62px; flex-direction: row; justify-content: space-around; padding: 0 6px; border-right: 0; border-top: 1px solid var(--line); }
  .rail-logo, .rail-spacer { display: none; }
  .rail-item { width: auto; flex: 1; }
  .main { padding-bottom: 62px; }
  .ws { grid-template-columns: 1fr; }
  .ws > .stage { order: -1; min-height: 440px; }
  .topbar { padding: 0 16px; }
  .topbar .cap-pill { display: none; }
  .page { padding: 26px 16px 60px; }
  .hero { padding: 48px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* The viewport hint only shows when there is room next to the stats card. */
@media (max-width: 1499px) { .hint-card { display: none; } }

/* ---------- 14. Accounts, credits & plans ---------- */
.avatar-chip { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: var(--lime-ink); background: var(--lime); }
.credit-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #d9f99d; background: var(--lime-soft); border: 1px solid rgba(132, 204, 22, .3); white-space: nowrap; }
.credit-pill svg { width: 13px; height: 13px; }
.credit-pill.is-empty { color: #fecaca; background: rgba(240, 113, 107, .12); border-color: rgba(240, 113, 107, .35); }
.auth-modal { max-width: 440px; }
.auth-providers { display: grid; gap: 8px; }
.auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border-radius: 11px; font-size: 13.5px; font-weight: 700; background: var(--panel-2); border: 1px solid var(--line-2); transition: background .15s, border-color .15s; }
.auth-btn svg { width: 18px; height: 18px; }
.auth-btn:hover { background: var(--panel-3); border-color: #50525a; }
.divider-text { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--faint); font-size: 12px; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.trial-strip { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.demo-note { display: flex; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 12px; color: var(--text-2); border: 1px dashed var(--line-2); }
.demo-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--cyan); }
.upgrade-modal { max-width: 1040px; }
.upgrade-modal .modal-head h2 { font-size: 20px; }
.plan-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 18px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line-2); }
.plan-card.popular { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime) inset; background: linear-gradient(180deg, rgba(132, 204, 22, .07), var(--panel-2) 40%); }
.plan-flag { position: absolute; top: -11px; left: 18px; height: 22px; padding: 0 10px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; color: var(--lime-ink); background: var(--lime); }
.plan-card h3 { font-size: 15px; font-weight: 800; }
.price { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.price span { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.plan-credits { font-size: 13px; color: var(--text-2); }
.plan-credits b { color: #fff; font-family: var(--mono); }
.plan-models { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.plan-feat { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.plan-feat li { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.plan-feat svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 3px; color: var(--lime); }
.demo-activate { margin-top: 12px; font-size: 11.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.demo-activate:hover { color: var(--cyan); }
.account-menu { position: fixed; z-index: 70; width: 260px; padding: 14px; border-radius: 14px; background: #2a2b30; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.am-head b { display: block; font-size: 13.5px; }
.am-head span { font-size: 12px; color: var(--muted); word-break: break-all; }
.am-plan { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 12px; font-weight: 600; }
.am-actions { display: grid; gap: 4px; margin-top: 12px; }
.am-actions .btn { justify-content: flex-start; }
.rail-account { display: contents; }
.faq { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 18px; }
.faq .card { padding: 18px 20px; }
.faq h3 { font-size: 14px; font-weight: 700; }
.faq p { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- 15. Style picker & concept preview ---------- */
.style-cards { display: grid; gap: 8px; }
.style-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; border-radius: 12px; background: var(--panel-2); border: 1.5px solid var(--line-2); transition: border-color .15s, background .15s; }
.style-card:hover { border-color: #55575f; }
.style-card.is-active { border-color: var(--lime); background: rgba(132, 204, 22, .07); }
.style-card .art { width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--bg); }
.style-card .art svg { width: 34px; height: 34px; }
.style-card .t { font-size: 13px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.style-card .d { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.style-card .tag { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--muted); }
.concept-card { position: absolute; left: 14px; bottom: 72px; width: 150px; padding: 6px; border-radius: 12px; background: rgba(28, 29, 33, .9); border: 1px solid var(--line-2); }
.concept-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: var(--panel-3); }
.concept-card span { display: block; font-size: 11px; color: var(--muted); padding: 5px 2px 0; }
.plan-note { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 9px; font-size: 11.5px; color: var(--text-2); background: var(--panel-2); }
.presets button:disabled { opacity: .45; cursor: not-allowed; }
@media (min-width: 900px) { .upgrade-modal .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) and (max-width: 1100px) { .upgrade-modal .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 16. Style bundles (example "packages") ---------- */
.bundle {
  position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -40px 60px -30px rgba(0, 0, 0, .55);
}
.bundle-classic {
  /* Classic Roblox studded panel: purple base, embossed L studs, glossy diagonal streaks, thick dark frame */
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255,255,255,.10) 18% 24%, transparent 24% 29%, rgba(255,255,255,.07) 29% 31%, transparent 31% 68%, rgba(255,255,255,.08) 68% 73%, transparent 73%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M8 6v9h6' fill='none' stroke='%234a1a8c' stroke-opacity='.55' stroke-width='1.6' transform='translate(.8 .8)'/%3E%3Cpath d='M8 6v9h6' fill='none' stroke='%23c9a2ff' stroke-opacity='.5' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 22px 22px,
    linear-gradient(180deg, #9a55f5 0%, #8240e6 55%, #6c2fcf 100%);
  box-shadow: inset 0 0 0 4px #1d1430, inset 0 6px 0 4px rgba(255,255,255,.12), inset 0 -14px 24px -10px rgba(40,10,80,.55);
}
.bundle-classic::before { background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); }
.bundle-classic .bundle-floor { background: radial-gradient(closest-side, rgba(40, 10, 80, .55), transparent); }
.style-card .bundle-classic { box-shadow: inset 0 0 0 2.5px #1d1430, inset 0 3px 0 2.5px rgba(255,255,255,.12); background-size: auto, 14px 14px, auto; }
.bundle-high { background: radial-gradient(120% 90% at 50% 0%, #2f4a63 0%, #22334a 45%, #171f2b 100%); }
.bundle-max { background: radial-gradient(120% 90% at 50% 0%, #3d5a2a 0%, #283b1e 45%, #182214 100%); }
.bundle::before { /* soft spotlight behind the hero piece */
  content: ''; position: absolute; left: 50%; top: 42%; width: 70%; height: 80%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent); z-index: -1;
}
.bundle-floor { position: absolute; left: 12%; right: 12%; bottom: 9%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); }
.bundle-sheen { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 35%); pointer-events: none; }
.bundle .b {
  position: absolute; bottom: 14%; object-fit: contain; object-position: center bottom; user-select: none;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .45)) drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.bundle .b[src=""], .bundle .b:not([src]) { opacity: 0; }
.bundle .b1 { left: 5%; width: 36%; height: 58%; transform: rotate(-9deg); z-index: 1; }
.bundle .b2 { left: 31%; width: 38%; height: 74%; z-index: 3; }
.bundle .b3 { right: 5%; width: 36%; height: 58%; transform: rotate(9deg); z-index: 2; }
.bundle-high .b1, .bundle-high .b3 { width: 40%; height: 46%; bottom: 22%; }
.bundle-high .b2 { left: 18%; width: 64%; height: 64%; bottom: 10%; }
.bundle-high .b1 { left: 1%; } .bundle-high .b3 { right: 1%; }
.style-show-card:hover .bundle .b1, .style-card:hover .bundle .b1 { transform: translateX(-5%) rotate(-13deg); }
.style-show-card:hover .bundle .b3, .style-card:hover .bundle .b3 { transform: translateX(5%) rotate(13deg); }
.style-show-card:hover .bundle .b2, .style-card:hover .bundle .b2 { transform: translateY(-4%) scale(1.05); }

/* Home page style showcase */
.style-show { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 44px; }
.style-show-card {
  display: flex; flex-direction: column; text-align: left; padding: 10px; border-radius: 20px; background: var(--panel);
  border: 1.5px solid var(--line); transition: border-color .2s, transform .25s, box-shadow .25s;
}
.style-show-card:hover { border-color: #4d4f57; transform: translateY(-3px); box-shadow: 0 22px 50px -24px rgba(0, 0, 0, .7); }
.style-show-card.is-active { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(132, 204, 22, .15); }
.style-show-card .info { padding: 14px 8px 6px; }
.style-show-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.style-show-card h3 { font-size: 17px; font-weight: 800; }
.style-show-card p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.style-show-card .go { margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--cyan); display: inline-flex; align-items: center; gap: 6px; }
.style-show-card .go svg { width: 14px; height: 14px; transition: transform .2s; }
.style-show-card:hover .go svg { transform: translateX(3px); }
.badge-style { color: var(--text-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); }

/* Create page: style cards now show a mini bundle */
.style-card { padding: 8px; gap: 12px; }
.style-card .bundle { width: 92px; flex-shrink: 0; border-radius: 10px; aspect-ratio: 4 / 3; }
.style-card .bundle .b { filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .5)); }

/* ---------- 17. Pricing, Meshy-style colors ---------- */
.plan-card { --accent: #a3e635; --accent-rgb: 163, 230, 53; padding: 0; gap: 0; overflow: visible;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .08), var(--panel-2) 38%); border-color: rgba(var(--accent-rgb), .18); }
.plan-card[data-plan="free"] { --accent: #a3e635; --accent-rgb: 163, 230, 53; }
.plan-card[data-plan="starter"] { --accent: #60a5fa; --accent-rgb: 96, 165, 250; }
.plan-card[data-plan="pro"] { --accent: #c084fc; --accent-rgb: 192, 132, 252; }
.plan-card[data-plan="ultra"] { --accent: #fbbf24; --accent-rgb: 251, 191, 36; }
.plan-card[data-plan="max"] { --accent: #fb7185; --accent-rgb: 251, 113, 133; }
.plan-top { padding: 22px 20px 20px; border-radius: 15px 15px 18px 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(0, 0, 0, .12)); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05); }
.plan-card h3 { font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: -0.01em; }
.plan-tagline { font-size: 12px; color: var(--muted); margin-top: 2px; }
.price { margin: 18px 0 2px; font-size: 38px; }
.plan-billing { font-size: 11px; color: var(--faint); margin-bottom: 16px; }
.plan-body { padding: 18px 20px 20px; }
.plan-credits { font-size: 14.5px; font-weight: 700; color: #facc15; }
.plan-credits b { color: #facc15; font-family: var(--font); }
.plan-models { font-size: 12.5px; color: var(--text-2); margin: 2px 0 0; }
.plan-card.popular { border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .45) inset, 0 30px 60px -30px rgba(var(--accent-rgb), .45);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .14), var(--panel-2) 42%); }
.plan-flag { top: -28px; left: -1.5px; right: -1.5px; height: 30px; justify-content: center; border-radius: 14px 14px 0 0; font-size: 12px; color: #f5e8ff;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .55), rgba(var(--accent-rgb), .3)); border: 1.5px solid rgba(var(--accent-rgb), .7); border-bottom: 0; }
.plan-card.popular { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.plan-grid { padding-top: 30px; }
.plan-card .btn-primary { box-shadow: 0 8px 22px -10px rgba(132, 204, 22, .8); }

/* ---------- 18. Motion: blur-in reveals ---------- */
.reveal {
  opacity: 0; transform: translateY(18px) scale(.985); filter: blur(10px);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1), filter .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform, filter;
}
.reveal.is-in { opacity: 1; transform: none; filter: blur(0); }
.words-in .word { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(14px); animation: wordIn .85s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes wordIn { to { opacity: 1; filter: blur(0); transform: none; } }
.main { animation: pageIn .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pageIn { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.modal { filter: blur(6px); transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s; }
.modal-backdrop.is-open .modal { filter: none; }
.toast { animation: toastIn .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.tabs > button, .seg > button, .chip, .btn { transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(132, 204, 22, .9); }

/* ---------- 19. Site-wide shading (subtle depth, not glow) ---------- */
body {
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(255, 255, 255, .035), transparent 60%),
    linear-gradient(180deg, #1d1e22 0%, #1a1b1f 40%, #18191c 100%) fixed;
}
.rail { background: linear-gradient(180deg, #18191c 0%, #141518 100%); box-shadow: 1px 0 0 rgba(255, 255, 255, .02), 6px 0 24px -12px rgba(0, 0, 0, .6); }
.rail-item.is-active { background: linear-gradient(180deg, #393a41, #2f3036); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 4px 10px -6px rgba(0, 0, 0, .6); }
.topbar { background: linear-gradient(180deg, rgba(31, 32, 36, .92), rgba(26, 27, 31, .88)); box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .8); }

/* Surfaces: light from above, soft shadow below */
.card, .ws-panel, .stage, .asset-card, .style-show-card {
  background: linear-gradient(180deg, #26272c 0%, #212226 55%, #1f2024 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 14px 32px -22px rgba(0, 0, 0, .75);
}
.ws-panel-foot { background: linear-gradient(180deg, #1f2024, #1c1d21); }
.stage-bar { background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent); }
.asset-thumb { background: radial-gradient(circle at 50% 35%, #3a3b42, #26272c 72%); box-shadow: inset 0 -30px 40px -30px rgba(0, 0, 0, .5); }
.creation { background: radial-gradient(circle at 50% 35%, #34353b, #26272c 75%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }

/* Controls */
.btn-primary { background: linear-gradient(180deg, #96dc2c 0%, #84cc16 55%, #74b411 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px -10px rgba(132, 204, 22, .7); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #a3e635 0%, #8fd420 60%, #7cc015 100%); }
.btn-secondary { background: linear-gradient(180deg, #393a41, #303137); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 4px 10px -8px rgba(0, 0, 0, .6); }
.btn-secondary:hover:not(:disabled) { background: linear-gradient(180deg, #42434a, #383940); }
.tabs, .seg { background: linear-gradient(180deg, #1b1c20, #1e1f23); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35); }
.tabs > button.is-active, .seg > button.is-active { background: linear-gradient(180deg, #3b3c43, #313238); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .35); }
.chip { background: linear-gradient(180deg, #2e2f35, #28292e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.field, .prompt-box, .ask-input, .dropzone { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25); }
.hero-box .prompt-box, .hero-box .dropzone { background: linear-gradient(180deg, #25262b, #212226); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 20px 50px -30px rgba(0, 0, 0, .8); }
.switch { box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4); }
.switch[aria-checked="true"] { background: linear-gradient(180deg, #96dc2c, #78bb12); }
.switch::after { box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.range { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
.stats-card, .action-bar, .hint-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 28px -16px rgba(0, 0, 0, .8); }
.modal { background: linear-gradient(180deg, #26272c 0%, #212226 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 80px -20px rgba(0, 0, 0, .75); }
.hero { background:
    radial-gradient(800px 340px at 50% 0%, rgba(34, 184, 207, .09), transparent 70%),
    radial-gradient(600px 300px at 80% 20%, rgba(132, 204, 22, .045), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 60%); }

/* ---------- 20. Small-screen fixes: grids never overflow the viewport ---------- */
.style-show { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.asset-grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.features { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.faq { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.plan-grid { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.main { overflow-x: clip; }
@media (max-width: 760px) {
  .brand small { display: none; }
  .rail-item { font-size: 9.5px; padding: 7px 0 5px; }
  .rail-item svg { width: 18px; height: 18px; }
  .style-show-card .row { flex-wrap: wrap; }
}
.bundle-max .b1 { left: 1%; width: 40%; height: 66%; bottom: 10%; }
.bundle-max .b2 { left: 26%; width: 48%; height: 84%; bottom: 6%; }
.bundle-max .b3 { right: 1%; width: 40%; height: 66%; bottom: 10%; }

/* ---------- 21. Style backgrounds for High & Max ---------- */
.bundle-high {
  /* Sleek blue arena: angled tech panels, two light beams, framed */
  background:
    linear-gradient(118deg, transparent 0 30%, rgba(160, 210, 255, .10) 30% 38%, transparent 38% 60%, rgba(160, 210, 255, .06) 60% 64%, transparent 64%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28'%3E%3Cpath d='M0 14 L12 0 H36 L48 14 L36 28 H12 Z' fill='none' stroke='%239cc9ff' stroke-opacity='.10' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 48px 28px,
    radial-gradient(120% 85% at 50% 0%, #3d7fd6 0%, #23549e 45%, #142e5c 100%);
  box-shadow: inset 0 0 0 4px #0b1730, inset 0 6px 0 4px rgba(255, 255, 255, .10), inset 0 -18px 30px -12px rgba(5, 15, 40, .6);
}
.bundle-high::before { background: radial-gradient(closest-side, rgba(170, 220, 255, .28), transparent); }
.bundle-high .bundle-floor { background: radial-gradient(closest-side, rgba(5, 15, 40, .6), transparent); }
.bundle-max {
  /* Premium studio: deep green-black, fine hex mesh, warm spotlight from above */
  background:
    radial-gradient(60% 55% at 50% 30%, rgba(190, 242, 100, .18), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48'%3E%3Cpath d='M14 0 L28 8 V24 L14 32 L0 24 V8 Z M14 32 V48' fill='none' stroke='%23d9f99d' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 28px 48px,
    linear-gradient(180deg, #24311c 0%, #172013 55%, #0e140b 100%);
  box-shadow: inset 0 0 0 4px #0a0f08, inset 0 6px 0 4px rgba(255, 255, 255, .08), inset 0 -18px 30px -12px rgba(0, 0, 0, .6);
}
.bundle-max::before { background: radial-gradient(closest-side, rgba(255, 255, 240, .16), transparent); }
.style-card .bundle-high, .style-card .bundle-max { box-shadow: inset 0 0 0 2.5px rgba(0, 0, 0, .6), inset 0 3px 0 2.5px rgba(255, 255, 255, .1); }
.style-card .bundle-high { background-size: auto, 30px 18px, auto; }
.style-card .bundle-max { background-size: auto, 18px 31px, auto; }

/* ---------- 22. Viewport on phones ---------- */
@media (max-width: 760px) {
  .stats-card { min-width: 0; padding: 8px 10px; top: 10px; left: 10px; }
  .stats-card .row { font-size: 11px; gap: 10px; padding: 1px 0; }
  .stats-card .row:nth-child(1), .stats-card .row:nth-child(3), .stats-card .row:nth-child(4) { display: none; }
  .action-bar { left: 8px; right: 8px; transform: none; justify-content: center; flex-wrap: wrap; bottom: 10px; }
  .action-bar .btn-sm { height: 30px; padding: 0 9px; font-size: 11.5px; }
  .action-bar .divider { display: none; }
  .concept-card { width: 96px; bottom: 96px; }
}

/* =====================================================================
   23. OBSIDIAN THEME
   Deep near-black surfaces, crisp hairline borders, and electric
   cyan / violet / lime accents with soft glows. Overrides the grey
   shading in sections 3-22 (kept above for layout).
   ===================================================================== */
body {
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(155, 107, 255, .10), transparent 60%),
    radial-gradient(1000px 560px at 92% -12%, rgba(34, 225, 255, .08), transparent 60%),
    linear-gradient(180deg, #08090e 0%, #06070b 60%, #050609 100%) fixed;
}
::selection { background: rgba(34, 225, 255, .32); }
.scroll { scrollbar-color: #262b3a transparent; }
.scroll::-webkit-scrollbar-thumb { background: #262b3a; }

/* Rail + top bar: glassy obsidian */
.rail { background: linear-gradient(180deg, rgba(10, 11, 17, .96), rgba(5, 6, 10, .98)); border-right-color: var(--line); box-shadow: 1px 0 0 rgba(155, 107, 255, .05), 10px 0 40px -20px rgba(0, 0, 0, .9); }
.rail-logo:hover { background: var(--panel-2); box-shadow: var(--glow-cyan); }
.rail-item:hover { background: rgba(255, 255, 255, .04); }
.rail-item.is-active { color: #fff; background: linear-gradient(180deg, rgba(34, 225, 255, .14), rgba(155, 107, 255, .10)); box-shadow: inset 0 0 0 1px rgba(34, 225, 255, .22), 0 6px 18px -10px rgba(34, 225, 255, .55); }
.rail-item.is-active svg { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(34, 225, 255, .6)); }
.rail-status .dot { border-color: var(--rail); }
.rail-status.is-live .dot, .status-pill.is-live .dot, .gen-meta .mode.is-live .dot { background: var(--lime); box-shadow: 0 0 8px rgba(182, 242, 58, .9); }
.rail-status.is-down .dot, .status-pill.is-down .dot, .gen-meta .mode.is-down .dot { background: var(--red); box-shadow: 0 0 8px rgba(255, 107, 122, .8); }
.topbar { background: linear-gradient(180deg, rgba(10, 11, 17, .82), rgba(7, 8, 12, .72)); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .95); }
.status-pill { background: rgba(14, 16, 22, .8); border-color: var(--line-2); }

/* Surfaces: obsidian glass with a 1px light edge on top */
.card, .ws-panel, .stage, .asset-card, .style-show-card, .modal {
  background: linear-gradient(180deg, rgba(22, 25, 34, .92) 0%, rgba(14, 16, 22, .94) 55%, rgba(11, 12, 17, .96) 100%);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 0 rgba(0, 0, 0, .6), 0 24px 48px -28px rgba(0, 0, 0, .95);
}
.ws-panel-foot { background: linear-gradient(180deg, rgba(10, 11, 16, .6), rgba(7, 8, 12, .9)); border-top-color: var(--line); }
.stage-bar { background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); border-bottom-color: var(--line); }
.asset-thumb { background: radial-gradient(circle at 50% 35%, #1d2230, #0c0e14 72%); }
.creation { background: radial-gradient(circle at 50% 35%, #1b2030, #0d0f15 75%); }
.viewport.bg-studio { background: radial-gradient(ellipse 75% 70% at 50% 42%, #232838 0%, #131620 55%, #0a0b10 100%); }
.viewport.bg-dark { background: radial-gradient(ellipse 75% 70% at 50% 42%, #141722 0%, #07080c 70%); }
.stats-card, .action-bar, .hint-card, .concept-card, .gen-overlay .pill { background: rgba(10, 12, 18, .78); border-color: var(--line-2); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.toast, .account-menu { background: rgba(16, 18, 26, .96); border-color: var(--line-2); }
.modal-backdrop { background: rgba(3, 4, 8, .7); backdrop-filter: blur(8px); }

/* Glowing gradient borders on hover / selection (border drawn with a mask so the fill stays dark) */
.asset-card, .style-show-card { position: relative; }
.asset-card::after, .style-show-card::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(34, 225, 255, .9), rgba(155, 107, 255, .9) 50%, rgba(182, 242, 58, .8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .3s;
}
.asset-card:hover, .style-show-card:hover { border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(34, 225, 255, .35), 0 20px 50px -30px rgba(155, 107, 255, .45); }
.asset-card:hover::after, .style-show-card:hover::after, .style-show-card.is-active::after { opacity: 1; }
.style-show-card.is-active { border-color: transparent; box-shadow: 0 0 0 3px rgba(155, 107, 255, .14), 0 30px 60px -30px rgba(155, 107, 255, .6); }
.style-show-card .go { color: var(--cyan); }

/* Buttons */
.btn-primary {
  color: var(--lime-ink);
  background: linear-gradient(180deg, #d4ff6a 0%, #b6f23a 45%, #8fd11c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .15), 0 0 0 1px rgba(182, 242, 58, .5), 0 10px 28px -10px rgba(182, 242, 58, .75);
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #e2ff8a 0%, #c8ff55 45%, #a3e635 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 1px rgba(200, 255, 85, .7), 0 14px 36px -10px rgba(182, 242, 58, .95); }
.plan-card .btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 1px rgba(182, 242, 58, .5), 0 10px 28px -12px rgba(182, 242, 58, .8); }
.btn-secondary { color: var(--text); background: linear-gradient(180deg, #1d212d, #151821); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 16px -10px rgba(0, 0, 0, .9); }
.btn-secondary:hover:not(:disabled) { background: linear-gradient(180deg, #252a38, #1a1e29); border-color: rgba(34, 225, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 20px -8px rgba(34, 225, 255, .5); }
.btn-ghost:hover:not(:disabled), .icon-btn:hover { background: rgba(255, 255, 255, .05); }
.icon-btn.is-active { background: var(--cyan-soft); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(34, 225, 255, .3); }
.link-btn { color: var(--cyan); }

/* Tabs, segments, chips */
.tabs, .seg { background: rgba(5, 6, 10, .7); border-color: var(--line); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
.tabs > button.is-active, .seg > button.is-active { color: #fff; background: linear-gradient(180deg, #232838, #191d29); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(34, 225, 255, .18), 0 4px 14px -6px rgba(34, 225, 255, .35); }
.tabs > button.is-active svg { color: var(--cyan); }
.chip { background: linear-gradient(180deg, #161a24, #11141c); border-color: var(--line-2); }
.chip:hover { border-color: rgba(155, 107, 255, .45); background: #1a1e2a; }
.chip.is-active { border-color: var(--cyan); background: var(--cyan-soft); box-shadow: 0 0 16px -6px rgba(34, 225, 255, .6); }
.ask-chip { color: #e4ffb0; background: var(--lime-soft); border-color: rgba(182, 242, 58, .4); }
.ask-chip:hover { background: rgba(182, 242, 58, .2); border-color: rgba(182, 242, 58, .7); box-shadow: 0 0 18px -6px rgba(182, 242, 58, .7); }
.badge-lime { color: #e4ffb0; background: var(--lime-soft); border-color: rgba(182, 242, 58, .35); }
.badge-cyan { color: #b5f5ff; border-color: rgba(34, 225, 255, .35); }
.badge-grey, .badge-style { background: rgba(8, 9, 14, .8); border-color: var(--line-2); }

/* Fields: dark wells that light up cyan on focus */
.field, .prompt-box, .ask-input, .dropzone { background: rgba(4, 5, 9, .7); border-color: var(--line-2); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5); }
.field:focus, .prompt-box:focus-within, .ask-input:focus-within { border-color: rgba(34, 225, 255, .7); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5), 0 0 0 3px rgba(34, 225, 255, .12), 0 0 24px -6px rgba(34, 225, 255, .5); }
.dropzone { border-color: rgba(148, 163, 214, .22); }
.dropzone:hover, .dropzone.is-drag { border-color: var(--cyan); background: rgba(34, 225, 255, .04); }
.dropzone .dz-icon { background: var(--panel-3); color: var(--cyan); }
select.field { background-color: rgba(4, 5, 9, .7); }

/* Home hero: aurora behind the prompt, glowing gradient frame around the box */
.hero {
  background:
    radial-gradient(700px 320px at 50% -4%, rgba(34, 225, 255, .16), transparent 70%),
    radial-gradient(520px 300px at 18% 10%, rgba(155, 107, 255, .16), transparent 70%),
    radial-gradient(520px 280px at 84% 18%, rgba(182, 242, 58, .07), transparent 70%);
  border-bottom-color: var(--line);
}
.hero h1 { background: linear-gradient(180deg, #ffffff 30%, #b9c3dd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .word { background: inherit; -webkit-background-clip: text; background-clip: text; }
.hero-box .prompt-box, .hero-box .dropzone {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(16, 18, 26, .96), rgba(9, 10, 15, .98)) padding-box,
    linear-gradient(135deg, rgba(34, 225, 255, .55), rgba(155, 107, 255, .5) 50%, rgba(182, 242, 58, .35)) border-box;
  box-shadow: 0 30px 80px -40px rgba(34, 225, 255, .35), 0 20px 60px -30px rgba(155, 107, 255, .35);
}
.hero-box .prompt-box:focus-within { box-shadow: 0 0 0 4px rgba(34, 225, 255, .10), 0 30px 80px -30px rgba(34, 225, 255, .55), 0 20px 60px -30px rgba(155, 107, 255, .45); }
.hero-controls select.field { background-color: rgba(14, 16, 22, .9); }

/* Feature icons, steps, code */
.feature .ico { background: linear-gradient(135deg, rgba(34, 225, 255, .16), rgba(155, 107, 255, .16)); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(34, 225, 255, .2); }
.step-num { color: var(--violet); }
.code { background: rgba(4, 5, 9, .8); border-color: var(--line); }
.code .k { color: #7ee8ff; }
.code .s { color: #d4ff6a; }

/* Controls */
.range { background: linear-gradient(90deg, var(--cyan), var(--violet)) 0 0 / var(--fill, 50%) 100% no-repeat, #1b1f2a; }
.range::-webkit-slider-thumb { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 225, 255, .15), 0 0 14px rgba(34, 225, 255, .7); }
.range::-moz-range-thumb { border-color: var(--cyan); }
.group-title .value { color: var(--cyan); }
.switch { background: #1b1f2a; border-color: var(--line-2); }
.switch[aria-checked="true"] { background: linear-gradient(180deg, #c8ff55, #8fd11c); border-color: transparent; box-shadow: 0 0 14px -2px rgba(182, 242, 58, .7); }
.presets button { background: #11141c; border-color: var(--line-2); }
.presets button.is-active { border-color: var(--cyan); background: var(--cyan-soft); box-shadow: 0 0 18px -6px rgba(34, 225, 255, .6); }
.style-card { background: #11141c; border-color: var(--line-2); }
.style-card:hover { border-color: rgba(155, 107, 255, .45); }
.style-card.is-active { border-color: var(--violet); background: var(--violet-soft); box-shadow: 0 0 22px -8px rgba(155, 107, 255, .8); }
.creation.is-active { border-color: var(--cyan); box-shadow: 0 0 16px -4px rgba(34, 225, 255, .7); }
.creation:hover { border-color: rgba(155, 107, 255, .5); }

/* Progress: cyan -> violet beam */
.progress-track { background: #151821; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.progress-fill { background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 12px rgba(34, 225, 255, .7); }
.progress-top span { color: var(--cyan); }
.steps-list li.is-active .i { border-color: var(--cyan); border-top-color: transparent; }
.steps-list li.is-done .i { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 8px rgba(182, 242, 58, .6); }
.gen-overlay .scan { background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent); box-shadow: 0 0 22px 5px rgba(34, 225, 255, .35); }
.spinner.light { border-top-color: var(--cyan); }
.cap-bar > span { background: linear-gradient(90deg, var(--lime), var(--cyan)); }

/* Queue counter ("You're #X in line") */
.queue-pill {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(20, 16, 36, .95), rgba(12, 12, 22, .95)) padding-box,
              linear-gradient(135deg, rgba(155, 107, 255, .8), rgba(34, 225, 255, .6)) border-box;
  box-shadow: 0 0 26px -10px rgba(155, 107, 255, .8);
}
.queue-pill.hidden { display: none; }
.queue-pill .queue-num { min-width: 44px; height: 44px; padding: 0 8px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-size: 18px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--violet), #5b3bd6); box-shadow: 0 0 18px -4px rgba(155, 107, 255, .9); }
.queue-pill b { display: block; font-size: 13px; color: #fff; }
.queue-pill small { display: block; font-size: 11.5px; color: var(--text-2); margin-top: 1px; }
@keyframes queuePulse { 50% { box-shadow: 0 0 28px -2px rgba(155, 107, 255, 1); } }
@media (prefers-reduced-motion: no-preference) {
  .queue-pill .queue-num { animation: queuePulse 2.2s ease-in-out infinite; }
}

/* Account, credits, plans */
.avatar-chip { background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #05060a; }
.credit-pill { color: #e4ffb0; background: var(--lime-soft); border-color: rgba(182, 242, 58, .35); }
.auth-btn { background: #141720; border-color: var(--line-2); }
.auth-btn:hover { background: #1b1f2a; border-color: rgba(34, 225, 255, .4); }
.plan-card { background: linear-gradient(180deg, rgba(var(--accent-rgb), .10), rgba(14, 16, 22, .96) 40%); border-color: rgba(var(--accent-rgb), .22); }
.plan-card[data-plan="free"] { --accent: #b6f23a; --accent-rgb: 182, 242, 58; }
.plan-card[data-plan="starter"] { --accent: #22e1ff; --accent-rgb: 34, 225, 255; }
.plan-card[data-plan="pro"] { --accent: #9b6bff; --accent-rgb: 155, 107, 255; }
.plan-card[data-plan="ultra"] { --accent: #ffc24b; --accent-rgb: 255, 194, 75; }
.plan-card[data-plan="max"] { --accent: #ff5fa8; --accent-rgb: 255, 95, 168; }
.plan-card:hover { border-color: rgba(var(--accent-rgb), .5); box-shadow: 0 30px 60px -34px rgba(var(--accent-rgb), .6); }
.plan-card.popular { background: linear-gradient(180deg, rgba(var(--accent-rgb), .18), rgba(14, 16, 22, .96) 45%); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .55) inset, 0 0 60px -20px rgba(var(--accent-rgb), .6); }
.plan-top { background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .25)); }
.plan-card h3 { text-shadow: 0 0 18px rgba(var(--accent-rgb), .45); }
.trial-strip, .plan-note, .note { background: #11141c; border-color: var(--line-2); }

footer.site-foot { border-top-color: var(--line); }

/* Account menu: localhost-only test tools */
.am-dev { display: grid; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.am-dev > span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--amber); }

/* Phones: keep the top bar on one line (the generator status shows on the Create page) */
@media (max-width: 560px) {
  .topbar .right .status-pill, .topbar .right .btn-ghost { display: none; }
  .topbar .right { gap: 6px; }
}

/* Developer-only content (shown on localhost or with ?dev=1) */
html:not(.is-dev) .dev-only { display: none !important; }

/* ---------- Revision editor (chat with the AI helper) + feedback ---------- */
.revise-card { position: absolute; right: 14px; bottom: 72px; width: min(320px, calc(100% - 28px)); max-height: min(380px, calc(100% - 150px)); display: flex; flex-direction: column; border-radius: 14px; background: rgba(28, 29, 33, .94); border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 6; }
.revise-card.hidden { display: none; }
.revise-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.revise-head b { display: inline-flex; align-items: center; gap: 6px; }
.revise-head b svg { width: 14px; height: 14px; color: var(--lime, #a3e635); }
.revise-cost { margin-left: auto; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.revise-log { flex: 1; min-height: 80px; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.revise-log .msg { max-width: 88%; padding: 8px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.revise-log .msg.ai { align-self: flex-start; background: var(--panel-2); color: var(--text-2); border-bottom-left-radius: 4px; }
.revise-log .msg.me { align-self: flex-end; background: rgba(163, 230, 53, .16); color: #fff; border-bottom-right-radius: 4px; }
.revise-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.revise-form .field { flex: 1; min-width: 0; height: 34px; font-size: 12.5px; }
.vote { display: inline-flex; gap: 2px; }
.vote.hidden { display: none; }
.vote .icon-btn { font-size: 15px; line-height: 1; opacity: .75; }
.vote .icon-btn.is-active { opacity: 1; background: var(--panel-3); }
@media (min-width: 900px) { .upgrade-modal .plan-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin: 0 auto; } }
@media (max-width: 640px) { .revise-card { right: 8px; left: 8px; width: auto; bottom: 64px; } }

/* =====================================================================
   24. MATTE GREY THEME (current)
   Soft dark-grey matte surfaces, hairline borders, no neon glows.
   One accent (lime) for primary actions, a calm teal for selection.
   Overrides the Obsidian theme above.
   ===================================================================== */
:root {
  --bg: #1b1c1f;
  --rail: #17181a;
  --panel: #222326;
  --panel-2: #27282c;
  --panel-3: #2e2f34;
  --hover: #36373c;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --text: #ededf0;
  --text-2: #bcbec5;
  --muted: #8d8f97;
  --faint: #60626a;
  --lime: #a9e34b;
  --lime-hover: #b9ec62;
  --lime-ink: #142000;
  --lime-soft: rgba(169, 227, 75, 0.12);
  --cyan: #7cc8d8;
  --cyan-soft: rgba(124, 200, 216, 0.12);
  --violet: #a594e0;
  --violet-soft: rgba(165, 148, 224, 0.12);
  --glow-cyan: none; --glow-lime: none; --glow-violet: none;
}
body { background: #1b1c1f; }
::selection { background: rgba(124, 200, 216, .3); }
.scroll { scrollbar-color: #3a3b40 transparent; }
.scroll::-webkit-scrollbar-thumb { background: #3a3b40; }

.rail { background: #17181a; border-right-color: var(--line); box-shadow: none; }
.rail-logo:hover { background: var(--panel-2); box-shadow: none; }
.rail-item:hover { background: rgba(255, 255, 255, .04); }
.rail-item.is-active { color: #fff; background: #2a2b30; box-shadow: inset 0 0 0 1px var(--line-2); }
.rail-item.is-active svg { color: var(--lime); filter: none; }
.rail-status.is-live .dot, .status-pill.is-live .dot, .gen-meta .mode.is-live .dot { box-shadow: none; }
.rail-status.is-down .dot, .status-pill.is-down .dot, .gen-meta .mode.is-down .dot { box-shadow: none; }
.topbar { background: rgba(27, 28, 31, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line); box-shadow: none; }
.status-pill { background: var(--panel); border-color: var(--line-2); }

.card, .ws-panel, .stage, .asset-card, .style-show-card, .modal {
  background: var(--panel); border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 12px 30px -24px rgba(0, 0, 0, .7);
}
.ws-panel-foot { background: var(--panel); border-top-color: var(--line); }
.stage-bar { background: transparent; border-bottom-color: var(--line); }
.asset-thumb { background: radial-gradient(circle at 50% 38%, #34353a, #26272b 75%); }
.creation { background: radial-gradient(circle at 50% 38%, #323338, #26272b 78%); }
.viewport.bg-studio { background: radial-gradient(ellipse 75% 70% at 50% 42%, #34353a 0%, #27282c 60%, #212225 100%); }
.viewport.bg-dark { background: radial-gradient(ellipse 75% 70% at 50% 42%, #242528 0%, #18191b 75%); }
.stats-card, .action-bar, .hint-card, .concept-card, .gen-overlay .pill { background: rgba(30, 31, 34, .88); border-color: var(--line-2); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .7); }
.toast, .account-menu { background: #26272b; border-color: var(--line-2); }
.modal-backdrop { background: rgba(10, 10, 12, .6); backdrop-filter: blur(6px); }

.asset-card::after, .style-show-card::after { display: none; }
.asset-card:hover, .style-show-card:hover { border-color: var(--line-2); box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .8); transform: translateY(-2px); }
.style-show-card.is-active { border-color: rgba(169, 227, 75, .55); box-shadow: 0 0 0 1px rgba(169, 227, 75, .35); }
.style-show-card .go { color: var(--lime); }

.btn-primary { color: var(--lime-ink); background: var(--lime); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12); }
.btn-primary:hover:not(:disabled) { background: var(--lime-hover); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12); transform: translateY(-1px); }
.plan-card .btn-primary { box-shadow: none; }
.btn-secondary { color: var(--text); background: #303136; border-color: var(--line-2); box-shadow: none; }
.btn-secondary:hover:not(:disabled) { background: #393a40; border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover:not(:disabled), .icon-btn:hover { background: rgba(255, 255, 255, .05); }
.icon-btn.is-active { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: none; }
.link-btn { color: var(--lime); }

.tabs, .seg { background: #1c1d20; border-color: var(--line); box-shadow: none; }
.tabs > button.is-active, .seg > button.is-active { color: #fff; background: #313237; box-shadow: none; }
.tabs > button.is-active svg { color: var(--lime); }
.chip { background: #2a2b2f; border-color: var(--line-2); }
.chip:hover { border-color: rgba(255, 255, 255, .2); background: #303136; }
.chip.is-active { border-color: var(--lime); background: var(--lime-soft); box-shadow: none; }
.ask-chip { color: #d8f5a8; background: var(--lime-soft); border-color: rgba(169, 227, 75, .3); }
.ask-chip:hover { background: rgba(169, 227, 75, .18); border-color: rgba(169, 227, 75, .5); box-shadow: none; }
.badge-lime { color: #d8f5a8; }
.badge-cyan { color: #c6e8ef; border-color: rgba(124, 200, 216, .3); }
.badge-grey, .badge-style { background: #2a2b2f; border-color: var(--line-2); }

.field, .prompt-box, .ask-input, .dropzone { background: #1c1d20; border-color: var(--line-2); box-shadow: none; }
.field:focus, .prompt-box:focus-within, .ask-input:focus-within { border-color: rgba(169, 227, 75, .55); box-shadow: 0 0 0 3px rgba(169, 227, 75, .08); }
.dropzone { border-color: rgba(255, 255, 255, .14); }
.dropzone:hover, .dropzone.is-drag { border-color: var(--lime); background: rgba(169, 227, 75, .04); }
.dropzone .dz-icon { background: var(--panel-3); color: var(--lime); }
select.field { background-color: #1c1d20; }

.hero { background: radial-gradient(700px 300px at 50% -6%, rgba(255, 255, 255, .045), transparent 70%); border-bottom-color: var(--line); }
.hero h1 { background: none; color: var(--text); }
.hero h1 .word { background: none; color: inherit; }
.hero-box .prompt-box, .hero-box .dropzone { border: 1px solid var(--line-2); background: #222326; box-shadow: 0 24px 60px -40px rgba(0, 0, 0, .9); }
.hero-box .prompt-box:focus-within { border-color: rgba(169, 227, 75, .5); box-shadow: 0 0 0 3px rgba(169, 227, 75, .08); }
.hero-controls select.field { background-color: #222326; }

.feature .ico { background: #2e2f34; color: var(--lime); box-shadow: none; }
.step-num { color: var(--lime); }
.code { background: #1c1d20; border-color: var(--line); }

.range { background: linear-gradient(var(--lime), var(--lime)) 0 0 / var(--fill, 50%) 100% no-repeat, #34353a; }
.range::-webkit-slider-thumb { border-color: var(--lime); box-shadow: none; }
.range::-moz-range-thumb { border-color: var(--lime); }
.group-title .value { color: var(--lime); }
.switch { background: #34353a; border-color: var(--line-2); }
.switch[aria-checked="true"] { background: var(--lime); border-color: transparent; box-shadow: none; }
.presets button { background: #1c1d20; border-color: var(--line-2); }
.presets button.is-active { border-color: var(--lime); background: var(--lime-soft); box-shadow: none; }
.style-card { background: #1c1d20; border-color: var(--line-2); }
.style-card:hover { border-color: rgba(255, 255, 255, .2); }
.style-card.is-active { border-color: var(--lime); background: var(--lime-soft); box-shadow: none; }
.creation.is-active { border-color: var(--lime); box-shadow: none; }
.creation:hover { border-color: rgba(255, 255, 255, .22); }

.progress-track { background: #34353a; box-shadow: none; }
.progress-fill { background: var(--lime); box-shadow: none; }
.progress-top span { color: var(--lime); }
.steps-list li.is-active .i { border-color: var(--lime); border-top-color: transparent; }
.steps-list li.is-done .i { box-shadow: none; }
.gen-overlay .scan { background: linear-gradient(90deg, transparent, rgba(169, 227, 75, .8), transparent); box-shadow: none; }
.spinner.light { border-top-color: var(--lime); }
.cap-bar > span { background: var(--lime); }
.queue-pill { background: #26272b; border: 1px solid var(--line-2); box-shadow: none; }
.queue-pill .queue-num { background: #34353a; box-shadow: none; animation: none !important; }

.avatar-chip { background: var(--lime); color: var(--lime-ink); }
.credit-pill { color: #d8f5a8; }
.auth-btn { background: #26272b; border-color: var(--line-2); }
.auth-btn:hover { background: #2e2f34; border-color: rgba(255, 255, 255, .2); }
.plan-card { background: linear-gradient(180deg, rgba(var(--accent-rgb), .07), var(--panel) 40%); border-color: var(--line-2); }
.plan-card:hover { border-color: rgba(var(--accent-rgb), .4); box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .9); }
.plan-card.popular { background: linear-gradient(180deg, rgba(var(--accent-rgb), .12), var(--panel) 45%); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .45) inset; }
.plan-card h3 { text-shadow: none; }
.trial-strip, .plan-note, .note { background: #1c1d20; border-color: var(--line-2); }
.revise-card { background: rgba(34, 35, 38, .96); }

/* Style bundles: one rendered picture of real RoLiquid models per style (tools/showcase.html) */
.bundle-img { background: #222327; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bundle-img::before { display: none; }
.bundle-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.style-show-card:hover .bundle-img img, .style-card:hover .bundle-img img { transform: scale(1.045); }
.style-card .bundle-img { width: 92px; aspect-ratio: 16 / 10; }

/* ---------- 25. Create page: quality dropdown, estimate line, welcome, filters, pages ---------- */
.qsel { position: relative; }
.qsel-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px; background: #1c1d20; border: 1px solid var(--line-2); text-align: left; transition: border-color .15s, background .15s; }
.qsel-btn:hover, .qsel.is-open .qsel-btn { border-color: rgba(169, 227, 75, .5); background: #202124; }
.qsel-thumb { width: 64px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #2a2b2f; }
.qsel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qsel-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qsel-txt b { font-size: 14px; color: var(--lime); }
.qsel-txt small { font-size: 11.5px; color: var(--muted); }
.qsel-chev { color: var(--muted); transition: transform .2s; }
.qsel.is-open .qsel-chev { transform: rotate(180deg); }
.qsel-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; padding: 6px; border-radius: 14px; background: #26272b; border: 1px solid var(--line-2); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); }
.qsel-menu .style-cards { display: grid; gap: 4px; }
.qsel-menu .style-card { border-color: transparent; background: transparent; }
.qsel-menu .style-card:hover { background: rgba(255, 255, 255, .04); border-color: transparent; }
.qsel-menu .style-card.is-active { background: var(--lime-soft); border-color: rgba(169, 227, 75, .45); }

.gen-est { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }
.gen-est > span { display: inline-flex; align-items: center; gap: 6px; }
.gen-est svg { width: 14px; height: 14px; color: var(--lime); }
.gen-est b { color: var(--text); font-weight: 700; }

.welcome { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; padding: 24px; text-align: center; }
.welcome h2 { font-size: 24px; font-weight: 800; color: var(--lime); letter-spacing: -.01em; }
.welcome-steps { display: flex; align-items: flex-start; justify-content: center; gap: 18px; flex-wrap: wrap; }
.wstep { width: 200px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wstep b { font-size: 14px; color: var(--text); margin-top: 10px; }
.wstep > span { font-size: 12px; color: var(--muted); }
.warrow { margin-top: 70px; color: var(--faint); }
.warrow svg { width: 22px; height: 22px; }
.wcard { width: 180px; height: 150px; border-radius: 16px; background: #26272b; border: 1px solid var(--line-2); box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; overflow: hidden; }
.wcard-prompt { transform: rotate(-4deg); align-items: flex-start; padding: 18px; }
.wline { display: block; height: 8px; width: 100%; border-radius: 4px; background: #34353a; }
.wline.short { width: 60%; }
.wchip { margin-top: 8px; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--lime-ink); background: var(--lime); }
.wcard-model img { width: 100%; height: 100%; object-fit: cover; }
.wcard-dl small { font-size: 11px; color: var(--muted); }
.wbtn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: var(--text); background: #34353a; border: 1px solid var(--line-2); }
.wbtn svg { width: 14px; height: 14px; }
.viewport.is-empty .stats-card, .viewport.is-empty .hint-card, .viewport.is-empty .action-bar { display: none; }
.viewport.is-empty canvas { opacity: 0; }

.cfilters { display: flex; gap: 4px; margin-bottom: 12px; padding: 3px; border-radius: 10px; background: #1c1d20; border: 1px solid var(--line); }
.cfilters button { flex: 1; padding: 6px 0; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cfilters button:hover { color: var(--text); }
.cfilters button.is-active { color: #fff; background: #313237; }
.creations-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.creation .tag { font-size: 10px; }
.pager { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.pager .icon-btn { width: 26px; height: 26px; font-size: 16px; }
@media (max-width: 760px) { .warrow { display: none; } .wcard { width: 150px; height: 120px; } .welcome h2 { font-size: 19px; } }

/* =====================================================================
   26. DEPTH, LIGHT & MOTION
   One soft light from above: surfaces are a touch lighter at the top,
   carry a 1px top highlight and a soft dark shadow underneath.
   Motion is short and calm (fade + small lift, no blur, no bounce).
   ===================================================================== */
:root {
  --ease: cubic-bezier(.22, .8, .24, 1);
  --hl: inset 0 1px 0 rgba(255, 255, 255, .05);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .28), 0 4px 12px -6px rgba(0, 0, 0, .45);
  --sh-2: 0 2px 4px rgba(0, 0, 0, .25), 0 18px 40px -18px rgba(0, 0, 0, .7);
  --sh-3: 0 4px 8px rgba(0, 0, 0, .25), 0 28px 60px -22px rgba(0, 0, 0, .8);
}

/* Page light: a faint wash from the top, darker toward the edges */
body {
  background:
    radial-gradient(1100px 520px at 50% -160px, rgba(255, 255, 255, .055), transparent 70%),
    radial-gradient(140% 100% at 50% 0%, transparent 55%, rgba(0, 0, 0, .28) 100%),
    linear-gradient(180deg, #1e1f22 0%, #1b1c1f 45%, #18191b 100%) fixed;
}
.rail { background: linear-gradient(180deg, #1a1b1e, #161719); box-shadow: 1px 0 0 rgba(255, 255, 255, .02), 8px 0 24px -16px rgba(0, 0, 0, .6); }
.topbar { box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 10px 24px -20px rgba(0, 0, 0, .8); }
.rail-item { transition: background .2s var(--ease), color .2s var(--ease); }
.rail-item svg { transition: transform .25s var(--ease), color .2s; }
.rail-item:hover svg { transform: translateY(-1px); }
.rail-item.is-active { background: linear-gradient(180deg, #2f3035, #27282c); box-shadow: var(--hl), inset 0 0 0 1px var(--line-2), var(--sh-1); }

/* Surfaces */
.card, .ws-panel, .stage, .asset-card, .style-show-card, .modal, .plan-card {
  background-color: var(--panel);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .06));
  box-shadow: var(--hl), var(--sh-2);
}
.plan-card { background-image: linear-gradient(180deg, rgba(var(--accent-rgb), .07), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .06)); }
.plan-card.popular { box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .45) inset, var(--sh-2); }
.ws-panel-foot { background: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .12)); box-shadow: inset 0 1px 0 rgba(0, 0, 0, .2); }
.stage-bar { background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent); }
.stats-card, .action-bar, .hint-card, .concept-card, .toast, .account-menu, .qsel-menu, .revise-card {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 50%);
  box-shadow: var(--hl), var(--sh-3);
}

/* Cards: lift a little on hover, shadow grows with it */
.asset-card, .style-show-card, .plan-card, .feature, .step-card {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.asset-card:hover, .style-show-card:hover, .plan-card:hover { transform: translateY(-3px); box-shadow: var(--hl), var(--sh-3); }
.style-show-card.is-active { box-shadow: 0 0 0 1px rgba(169, 227, 75, .35), var(--sh-2); }
.style-show-card .go svg { transition: transform .3s var(--ease); }
.style-show-card:hover .go svg { transform: translateX(3px); }

/* Pictures: lit from above, gentle zoom on hover */
.asset-thumb, .creation, .bundle-img { position: relative; }
.asset-thumb::after, .creation::after, .bundle-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 35%, rgba(0, 0, 0, .18));
}
.bundle-img img, .asset-thumb img, .creation img { transition: transform .6s var(--ease); }
.asset-card:hover .asset-thumb img, .creation:hover img { transform: scale(1.05); }
.creation { box-shadow: var(--sh-1); transition: border-color .2s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.creation:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.creation .tag, .creation .del { z-index: 1; }

/* Buttons: shaded like a real key, press down on click */
.btn, .chip, .tabs > button, .seg > button, .icon-btn, .cfilters button, .presets button, .qsel-btn, .style-card, .auth-btn {
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary {
  background: linear-gradient(180deg, #b8ec63 0%, #a6e046 55%, #98d43a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .3), 0 8px 18px -10px rgba(0, 0, 0, .7);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #c3f075 0%, #b0e752 55%, #a1db42 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(0, 0, 0, .15), 0 2px 4px rgba(0, 0, 0, .3), 0 14px 26px -12px rgba(0, 0, 0, .8);
}
.btn-secondary, .wbtn, .auth-btn { background: linear-gradient(180deg, #35363b, #2c2d31); box-shadow: var(--hl), 0 1px 2px rgba(0, 0, 0, .3); }
.btn-secondary:hover:not(:disabled), .auth-btn:hover { background: linear-gradient(180deg, #3d3e44, #333439); transform: translateY(-1px); }
.btn:active:not(:disabled), .chip:active, .icon-btn:active, .presets button:active, .cfilters button:active, .qsel-btn:active, .auth-btn:active, .creation:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn-primary:active:not(:disabled) { box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25), 0 1px 1px rgba(0, 0, 0, .3); }
.chip, .presets button { background: linear-gradient(180deg, #2d2e32, #27282c); box-shadow: var(--hl); }
.chip:hover, .presets button:hover { transform: translateY(-1px); }
.tabs > button.is-active, .seg > button.is-active, .cfilters button.is-active {
  background: linear-gradient(180deg, #37383d, #2e2f34); box-shadow: var(--hl), 0 1px 3px rgba(0, 0, 0, .4);
}
.icon-btn svg { transition: transform .25s var(--ease); }
.icon-btn:hover svg { transform: scale(1.08); }

/* Fields: slightly sunken wells */
.field, .prompt-box, .ask-input, .dropzone, .qsel-btn, .tabs, .seg, .cfilters, select.field {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .03);
}
.field:focus, .prompt-box:focus-within, .ask-input:focus-within {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), 0 0 0 3px rgba(169, 227, 75, .09);
}
.hero-box .prompt-box { box-shadow: var(--hl), var(--sh-3); background: linear-gradient(180deg, #26272b, #212225); }
.hero-box .prompt-box:focus-within { box-shadow: var(--hl), var(--sh-3), 0 0 0 3px rgba(169, 227, 75, .09); }
.switch { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
.switch::after { box-shadow: 0 1px 2px rgba(0, 0, 0, .4); transition: transform .25s var(--ease), background .2s; }
.feature .ico { background: linear-gradient(180deg, #34353a, #2a2b2f); box-shadow: var(--hl), var(--sh-1); }
.progress-fill { background: linear-gradient(180deg, #b8ec63, #98d43a); }

/* Viewport: soft key light from above, dark floor edges */
.viewport.bg-studio { background: radial-gradient(ellipse 70% 60% at 50% 30%, #3a3b40 0%, #2a2b2f 55%, #1f2023 100%); }

/* Quality dropdown + collapsibles open smoothly */
.qsel-menu { transform-origin: top center; animation: popIn .22s var(--ease); }
.qsel-menu.hidden { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.collapsible[open] > *:not(summary) { animation: fadeUp .3s var(--ease); }

/* Entrances: plain fade + small lift (replaces the blur-in) */
.reveal { opacity: 0; transform: translateY(12px); filter: none; transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.words-in .word { filter: none; transform: translateY(8px); animation: wordUp .6s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 60ms); }
@keyframes wordUp { to { opacity: 1; transform: none; } }
.main { animation: fadeIn .4s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal { filter: none; transform: translateY(12px) scale(.98); transition: transform .3s var(--ease); }
.modal-backdrop.is-open .modal { transform: none; }
.toast { animation: fadeUp .35s var(--ease); }
.creations-grid > * { animation: fadeUp .4s var(--ease) both; }
.creations-grid > *:nth-child(2) { animation-delay: 30ms; } .creations-grid > *:nth-child(3) { animation-delay: 60ms; }
.creations-grid > *:nth-child(4) { animation-delay: 90ms; } .creations-grid > *:nth-child(5) { animation-delay: 120ms; }
.creations-grid > *:nth-child(6) { animation-delay: 150ms; } .creations-grid > *:nth-child(n+7) { animation-delay: 180ms; }

/* Create welcome: steps come in one after another; model card floats slowly */
.welcome:not(.hidden) h2 { animation: fadeUp .5s var(--ease) both; }
.welcome:not(.hidden) .welcome-steps > * { animation: fadeUp .55s var(--ease) both; }
.welcome-steps > *:nth-child(2) { animation-delay: 80ms !important; } .welcome-steps > *:nth-child(3) { animation-delay: 160ms !important; }
.welcome-steps > *:nth-child(4) { animation-delay: 240ms !important; } .welcome-steps > *:nth-child(5) { animation-delay: 320ms !important; }
.wcard { background: linear-gradient(180deg, #2c2d31, #242528); box-shadow: var(--hl), var(--sh-3); }
.wcard-model { animation: floatY 5s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   27. SIGN-IN POPUP
   Form on the left (left-aligned). On the right, a Roblox baseplate
   with the three style banners fanned like trading cards.
   ===================================================================== */
.modal.auth-split { max-width: 980px; width: 100%; max-height: min(640px, calc(100vh - 32px)); display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); overflow: hidden; padding: 0; border-radius: 24px; }

/* Left: the form */
.auth-side { display: flex; flex-direction: column; justify-content: center; padding: 40px 44px 30px; overflow-y: auto; text-align: left; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.auth-brand svg { width: 34px; height: 34px; }
.auth-brand b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.auth-brand b span { color: var(--lime); }
.auth-side h2 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; color: #fff; line-height: 1.1; }
.auth-sub { margin: 8px 0 24px; font-size: 14px; color: var(--text-2); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-big { display: flex; align-items: center; justify-content: center; gap: 9px; height: 48px; border-radius: 12px; font-size: 14px; font-weight: 700; transition: transform .15s var(--ease), box-shadow .2s, background .2s; }
.auth-big svg { width: 19px; height: 19px; }
.auth-google { color: #1f1f1f; background: linear-gradient(180deg, #ffffff, #ececef); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .35); }
.auth-google:hover { transform: translateY(-1px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1), 0 8px 18px -6px rgba(0, 0, 0, .6); }
.auth-discord { color: #fff; background: linear-gradient(180deg, #6a74f4, #535ee6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 6px rgba(0, 0, 0, .35); }
.auth-discord svg path { fill: #fff; }
.auth-discord:hover { transform: translateY(-1px); background: linear-gradient(180deg, #747df6, #5c67ec); }
.auth-big:active { transform: scale(.97); }
.auth-side .divider-text { margin: 18px 0 14px; font-size: 12px; }
.auth-mail { display: flex; align-items: center; height: 50px; padding: 5px; border-radius: 13px; background: #1c1d20; border: 1px solid var(--line-2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); transition: border-color .2s, box-shadow .2s; }
.auth-mail:focus-within { border-color: rgba(169, 227, 75, .6); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), 0 0 0 3px rgba(169, 227, 75, .1); }
.auth-mail input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--text); }
.auth-go { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; color: var(--lime-ink); background: linear-gradient(180deg, #b8ec63, #98d43a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s var(--ease); }
.auth-go svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.auth-go:hover svg { transform: translateX(2px); }
.auth-go:active { transform: scale(.94); }
.auth-error { margin-top: 8px; font-size: 12.5px; color: var(--red); }
.auth-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.auth-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.auth-list li svg { width: 18px; height: 18px; padding: 3px; flex-shrink: 0; border-radius: 6px; color: var(--lime); background: var(--lime-soft); }
.auth-list b { color: #fff; }
.auth-side .demo-note { margin-top: 16px; }
.auth-terms { margin-top: 18px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.auth-terms a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.auth-terms a:hover { color: var(--lime); }

/* Right: baseplate + fanned cards */
.auth-show { position: relative; overflow: hidden; min-height: 540px; border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(169, 227, 75, .10), transparent 60%),
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .09) 0 4px, rgba(0, 0, 0, .35) 4.6px 5.4px, transparent 6px) 0 0 / 26px 26px,
    linear-gradient(180deg, #2a2b30, #1d1e21); }
.auth-show::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(0, 0, 0, .55)); }
.auth-close { position: absolute; z-index: 5; top: 14px; right: 14px; background: rgba(20, 21, 24, .7); border: 1px solid var(--line-2); }
.auth-badge { position: absolute; z-index: 4; top: 22px; left: 22px; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 14px; color: var(--lime-ink);
  background: linear-gradient(180deg, #c3f075, #98d43a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 22px -10px rgba(0, 0, 0, .8); transform: rotate(-4deg); }
.auth-badge b { font-size: 28px; font-weight: 900; line-height: 1; }
.auth-badge span { font-size: 11px; font-weight: 800; line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; }
.auth-fan { position: absolute; inset: 0; z-index: 2; }
.auth-card { position: absolute; left: 50%; top: 46%; width: 62%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 3px solid #fff;
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, .85), 0 2px 6px rgba(0, 0, 0, .4);
  transition: transform .8s var(--ease), filter .8s var(--ease), z-index 0s .3s; }
.auth-card[data-pos="0"] { z-index: 1; transform: translate(-76%, -58%) rotate(-10deg) scale(.82); filter: brightness(.7); }
.auth-card[data-pos="2"] { z-index: 1; transform: translate(-24%, -38%) rotate(9deg) scale(.82); filter: brightness(.7); }
.auth-card[data-pos="1"] { z-index: 3; transform: translate(-50%, -50%) rotate(-2deg); filter: none; }
.auth-caption { position: absolute; z-index: 4; left: 0; right: 0; bottom: 26px; text-align: center; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }

@media (max-width: 820px) {
  .modal.auth-split { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .auth-show { display: none; }
  .auth-side { padding: 32px 24px 22px; }
  .auth-side h2 { font-size: 26px; }
  .auth-brand { margin-bottom: 22px; }
}
@media (max-width: 360px) { .auth-row { grid-template-columns: 1fr; } }

/* 28. HEADER ACCOUNT BUTTONS (Pricing / Log in / Sign up) */
.topbar .top-account { gap: 8px; }
.topbar .top-account .top-link { color: var(--muted, #a1a1aa); }
.topbar .top-account .top-link:hover { color: var(--text, #fff); }
.top-avatar { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer; transition: border-color .2s var(--ease, ease), transform .2s var(--ease, ease); }
.top-avatar:hover { border-color: rgba(182, 242, 58, .5); transform: translateY(-1px); }
@media (max-width: 560px) {
  .topbar .top-account .btn-ghost[data-rail-signin] { display: inline-flex; }
  .topbar .top-account .credit-pill { display: none; }
}

/* ---------- Big "Revise with AI" button (above the download bar) ---------- */
.revise-big { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 5; display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 20px 0 16px; border-radius: 999px; border: 1px solid rgba(190, 242, 100, .45); cursor: pointer;
  font: 700 15px/1 var(--font, inherit); color: #10130a; background: linear-gradient(180deg, #d4f88a, #a3e635);
  box-shadow: 0 10px 28px rgba(163, 230, 53, .28), inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .15s ease, box-shadow .15s ease, opacity .15s; }
.revise-big:hover { transform: translateX(-50%) translateY(-1px); box-shadow: 0 14px 34px rgba(163, 230, 53, .38), inset 0 1px 0 rgba(255, 255, 255, .5); }
.revise-big svg { width: 17px; height: 17px; }
.revise-big small { font: 600 11px/1 var(--mono, monospace); padding: 4px 7px; border-radius: 999px; background: rgba(16, 19, 10, .14); }
.revise-big.hidden, .revise-big.is-open { display: none; }
.revise-big.is-soon { filter: saturate(.35); opacity: .85; }
@media (max-width: 640px) { .revise-big { bottom: 104px; height: 40px; font-size: 13.5px; } }
