:root {
  --bg: #05070d;
  --bg-2: #090d16;
  --panel: rgba(15, 19, 31, 0.86);
  --panel-strong: rgba(14, 18, 30, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f8ff;
  --muted: #a5acc2;
  --muted-2: #717b96;
  --violet: #7b61ff;
  --cyan: #38d7ff;
  --gold: #f3c969;
  --green: #3edb9b;
  --red: #ff8f8f;
  --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.3);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(56, 215, 255, 0.16), transparent 28%),
    radial-gradient(circle at 72% 16%, rgba(123, 97, 255, 0.26), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 58%, #05070d);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 76%);
}

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

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

button,
select,
label {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(1680px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 0 0 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 14px max(20px, calc((100vw - 1680px) / 2 + 20px));
  border: 0;
  border-radius: 0;
  background: rgba(5, 8, 15, 0.72);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  padding-left: 0;
  margin-left: -16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 54px;
  flex: 0 0 auto;
}

.brand-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 4px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.nav-link {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: 0.2s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch button {
  min-width: 46px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.lang-switch button.active {
  color: #07101c;
  background: #f8fbff;
}

.btn-primary,
.btn-outline,
.btn-ghost,
.btn-light,
.login-tab,
.generate-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 850;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary,
.btn-outline,
.btn-ghost,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
}

.btn-primary {
  color: #06101b;
  background: linear-gradient(135deg, #f7fbff, #78e6ff 45%, #f3c969);
  box-shadow: 0 18px 40px rgba(56, 215, 255, 0.22);
}

.btn-outline {
  color: #f7fbff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

.btn-ghost {
  color: #e9edf8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.btn-light {
  color: #08111f;
  background: #f7fbff;
}

.btn-primary:hover,
.btn-outline:hover,
.btn-ghost:hover,
.btn-light:hover,
.login-tab:hover,
.generate-btn:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 96px 0 56px;
  text-align: center;
}

.hero.compact {
  min-height: 560px;
  padding-bottom: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-badge::before,
.hero-badge::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 215, 255, 0.8));
}

.hero-badge::after {
  background: linear-gradient(90deg, rgba(243, 201, 105, 0.8), transparent);
}

.hero h1 {
  width: min(1240px, 100%);
  margin: 22px auto 0;
  font-size: clamp(52px, 7.6vw, 118px);
  line-height: 0.94;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.hero p {
  width: min(780px, 100%);
  margin: 24px auto 0;
  color: rgba(235, 241, 255, 0.66);
  font-size: 18px;
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(235, 241, 255, 0.66);
  font-size: 12px;
  font-weight: 850;
}

.glow-arc {
  position: absolute;
  left: 50%;
  bottom: -12%;
  z-index: -1;
  width: min(1500px, 112vw);
  height: 440px;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.76), transparent 32%),
    radial-gradient(circle at 42% 98%, rgba(56, 215, 255, 0.8), transparent 49%),
    radial-gradient(circle at 64% 100%, rgba(243, 201, 105, 0.58), transparent 53%),
    radial-gradient(circle at 50% 100%, rgba(123, 97, 255, 0.45), transparent 70%);
  filter: blur(30px);
  opacity: 0.9;
}

.page-section {
  width: min(1560px, 100%);
  margin: 0 auto;
}

.hero-rail {
  position: relative;
  z-index: 3;
  margin-top: -30px;
}

.hero-rail-card,
.workspace-shell,
.info-card,
.project-card,
.modal-card,
.drawer-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 23, 38, 0.94), rgba(9, 12, 22, 0.96));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.hero-rail-card {
  display: grid;
  grid-template-columns: 220px 1px 320px 1fr;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
}

.hero-rail-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-rail-stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.hero-rail-caption,
.hero-rail-foot {
  color: rgba(235, 241, 255, 0.56);
  font-size: 12px;
  font-weight: 750;
}

.hero-rail-value {
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
}

.hero-rail-divider {
  width: 1px;
  height: 84px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-rail-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-rail-logos span,
.project-tag,
.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #edf3ff;
  font-size: 12px;
  font-weight: 850;
}

.hero-rail-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-preview-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.hero-preview-top,
.project-topline,
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-preview-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
}

.hero-preview-meta {
  margin-top: 8px;
  color: rgba(235, 241, 255, 0.55);
  font-size: 12px;
  line-height: 1.6;
}

.workspace {
  position: relative;
  z-index: 2;
  margin-top: -42px;
}

.workspace-shell {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 6px 12px;
  opacity: 0.72;
}

.workspace-title,
.section-head h2,
.drawer-title,
.modal-title,
.project-title,
.info-card h3 {
  margin: 0;
  font-weight: 950;
}

.workspace-title,
.section-head h2 {
  font-size: 24px;
}

.workspace-sub,
.section-head span,
.drawer-sub,
.modal-sub,
.info-card p,
.project-desc {
  color: var(--muted);
  line-height: 1.75;
}

.workspace-sub {
  max-width: 760px;
  margin-top: 6px;
  font-size: 13px;
}

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

.studio-card {
  position: relative;
  min-height: 176px;
  padding: 18px 18px 62px;
  border: 1px solid rgba(116, 139, 190, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 12%, rgba(74, 92, 160, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(15, 22, 42, 0.88), rgba(9, 13, 26, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 18px 54px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.workspace-shell,
.input-footer,
.footer-bar,
.footer-left {
  overflow: visible;
}

.reference-row {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(235, 241, 255, 0.62);
  font-size: 14px;
  font-weight: 750;
}

.upload-box {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #dce8ff;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  transition: 0.18s ease;
}

.upload-box:hover {
  color: #07101c;
  background: linear-gradient(135deg, #fff, #75e6ff);
  transform: translateY(-1px);
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.reference-preview {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.reference-preview.is-visible {
  display: flex;
}

.reference-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.reference-meta {
  min-width: 0;
  flex: 1;
}

.reference-meta strong,
.reference-meta span {
  display: block;
}

.reference-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.reference-meta span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.prompt-area {
  width: 100%;
  min-height: 78px;
  margin-top: 0;
  padding: 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: #f8fbff;
  font-size: 14px;
  line-height: 1.7;
}

.prompt-area::placeholder {
  color: rgba(235, 241, 255, 0.43);
}

.input-footer {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.footer-bar,
.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bar {
  justify-content: space-between;
  flex-wrap: nowrap;
}

.footer-left,
.footer-right {
  flex-wrap: nowrap;
}

.footer-left {
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.control-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #f8fbff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.control-pill.is-enhanced {
  padding: 0;
}

.control-pill.is-enhanced > .pill-icon,
.control-pill.is-enhanced > .model-mark,
.control-pill.is-enhanced > select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.select-ui {
  position: relative;
  min-width: 100%;
}

.select-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 28px;
  padding: 5px 24px 5px 8px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  color: #f8fbff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
}

.select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(235, 241, 255, 0.7);
  border-bottom: 2px solid rgba(235, 241, 255, 0.7);
  transform: translateY(-65%) rotate(45deg);
  transition: 0.18s ease;
}

.control-pill.is-open .select-chevron {
  transform: translateY(-35%) rotate(225deg);
}

.select-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 80;
  display: none;
  min-width: max(100%, 260px);
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 80% 0%, rgba(56, 215, 255, 0.11), transparent 34%),
    rgba(13, 18, 31, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px);
}

.control-pill.is-open .select-menu {
  display: grid;
  gap: 4px;
  animation: menuDrop 0.16s ease-out;
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.select-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(235, 241, 255, 0.78);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}

.select-option:hover,
.select-option.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.105);
}

.select-option.active {
  box-shadow: inset 0 0 0 1px rgba(56, 215, 255, 0.18);
}

.select-mini-icon,
.model-logo-img {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.select-mini-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  font-weight: 950;
}

.model-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 5px;
}

.logo-chatgpt-img {
  filter: invert(1) brightness(1.25);
  opacity: 0.96;
}

.control-pill.primary {
  color: #dff8ff;
  border-color: rgba(56, 215, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.control-pill select {
  min-width: 0;
  padding-right: 14px;
  border: 0;
  outline: none;
  appearance: none;
  background: transparent;
  color: #f8fbff;
  cursor: pointer;
  font-weight: 850;
}

.control-pill select option {
  color: #07101c;
  background: #fff;
}

.pill-icon,
.model-mark,
.project-tag-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.pill-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 900;
}

.model-pill {
  min-width: 0;
}

.model-mark,
.project-tag-mark {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}

.model-pill[data-model="gpt-image-1"] .model-mark,
.project-tag-mark {
  background: linear-gradient(135deg, #10c8d4, #3878ff);
}

.model-pill[data-model="imagen-4"] .model-mark {
  background: linear-gradient(135deg, #3e73ff, #7adfff);
}

.model-pill[data-model="midjourney-v7"] .model-mark {
  background: linear-gradient(135deg, #705cff, #c3b2ff);
}

.model-pill[data-model="ideogram-3"] .model-mark {
  background: linear-gradient(135deg, #ff955c, #f3c969);
}

.model-pill[data-model="recraft-v4"] .model-mark {
  background: linear-gradient(135deg, #2fc978, #66efc3);
}

.icon-action,
.generate-btn,
.spark-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(235, 241, 255, 0.78);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition: 0.18s ease;
}

.icon-action:hover,
.generate-btn:hover,
.spark-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.spark-action {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.spark-action::before,
.spark-action::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: conic-gradient(from 45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0 100%);
}

.spark-action::before {
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
}

.spark-action::after {
  inset: 9px;
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  transform: scale(0.42);
  opacity: 0.9;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 34px auto 0;
}

.section-head span {
  font-size: 14px;
  text-align: right;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1560px, 100%);
  margin: 24px auto 0;
}

.live-board {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.7fr;
  gap: 16px;
  margin-top: 22px;
}

.live-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 215, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(18, 23, 38, 0.9), rgba(9, 12, 22, 0.94));
  box-shadow: var(--shadow-lg);
}

.live-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -44px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 201, 105, 0.18), transparent 64%);
}

.live-card > * {
  position: relative;
  z-index: 1;
}

.live-kicker {
  color: rgba(159, 220, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.live-card h3 {
  max-width: 760px;
  margin: 18px 0 0;
  color: #f7fbff;
  font-size: 28px;
  line-height: 1.2;
}

.live-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.live-metrics span,
.asset-row,
.activity-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.live-metrics span {
  min-width: 150px;
  padding: 11px 13px;
  color: rgba(235, 241, 255, 0.64);
  font-size: 12px;
  font-weight: 850;
}

.live-metrics strong,
.asset-row strong {
  color: #fff;
  font-size: 22px;
}

.activity-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.activity-list li,
.asset-row {
  padding: 12px;
}

.activity-list span,
.asset-row span {
  color: rgba(235, 241, 255, 0.54);
  font-size: 12px;
  font-weight: 850;
}

.activity-list strong {
  color: #fff;
  font-size: 13px;
}

.asset-row {
  margin-top: 12px;
}

.info-card,
.project-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.info-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(56, 215, 255, 0.08), transparent 32%, rgba(243, 201, 105, 0.06));
}

.info-card > *,
.project-card > * {
  position: relative;
}

.info-card h3 {
  font-size: 19px;
}

.info-card p {
  margin: 10px 0 0;
  font-size: 14px;
}

.stat {
  margin-top: 24px;
  color: #f8fbff;
  font-size: 44px;
  line-height: 1;
  font-weight: 950;
}

.project-cover {
  position: relative;
  height: 188px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.22), transparent 23%),
    radial-gradient(circle at 75% 18%, rgba(56, 215, 255, 0.32), transparent 27%),
    radial-gradient(circle at 64% 86%, rgba(243, 201, 105, 0.28), transparent 30%),
    linear-gradient(135deg, #11192b, #070b14 58%, #1b1636);
}

.project-cover::before,
.project-cover::after {
  content: "";
  position: absolute;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.project-cover::before {
  top: 18px;
  left: 18px;
  right: 18px;
  height: 62%;
}

.project-cover::after {
  left: 18px;
  bottom: 18px;
  width: 38%;
  height: 18%;
}

.project-cover-badge,
.project-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(5, 8, 16, 0.72);
  color: #edf3ff;
  font-size: 11px;
  font-weight: 850;
}

.project-cover-badge {
  position: absolute;
  top: 14px;
  right: 14px;
}

.project-card:nth-child(2) .project-cover {
  background:
    radial-gradient(circle at 22% 70%, rgba(255, 111, 216, 0.34), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(243, 201, 105, 0.32), transparent 26%),
    linear-gradient(135deg, #17111f, #080b14 56%, #1b2842);
}

.project-card:nth-child(3) .project-cover {
  background:
    radial-gradient(circle at 24% 24%, rgba(138, 255, 220, 0.32), transparent 24%),
    radial-gradient(circle at 75% 76%, rgba(76, 117, 255, 0.4), transparent 32%),
    linear-gradient(135deg, #0e1a1b, #070b14 58%, #201638);
}

.project-card:nth-child(4) .project-cover {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 22%),
    radial-gradient(circle at 70% 30%, rgba(255, 142, 176, 0.34), transparent 30%),
    linear-gradient(135deg, #21152a, #080b14 58%, #342214);
}

.project-card:nth-child(5) .project-cover {
  background:
    radial-gradient(circle at 70% 20%, rgba(56, 215, 255, 0.34), transparent 28%),
    radial-gradient(circle at 28% 78%, rgba(123, 97, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #0e1524, #070b14 58%, #16251f);
}

.project-card:nth-child(6) .project-cover {
  background:
    radial-gradient(circle at 28% 28%, rgba(243, 201, 105, 0.32), transparent 27%),
    radial-gradient(circle at 72% 72%, rgba(62, 219, 155, 0.32), transparent 30%),
    linear-gradient(135deg, #1b1711, #070b14 58%, #12243a);
}

.project-body {
  padding: 14px 2px 4px;
}

.project-index {
  color: rgba(235, 241, 255, 0.38);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.project-status {
  color: #9af3d0;
  border-color: rgba(62, 219, 155, 0.2);
  background: rgba(62, 219, 155, 0.1);
}

.project-title {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.project-desc {
  margin-top: 10px;
  font-size: 13px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tag {
  gap: 8px;
}

.project-time {
  color: rgba(235, 241, 255, 0.42);
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}

.drawer,
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.drawer.is-open,
.modal.is-open {
  display: block;
}

.drawer-backdrop,
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 13, 0.66);
  backdrop-filter: blur(12px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(540px, 100vw);
  height: 100%;
  overflow: auto;
  padding: 24px;
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}

.modal-card {
  position: relative;
  width: min(540px, calc(100vw - 24px));
  margin: 10vh auto 0;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.pricing-modal-card {
  position: relative;
  width: min(1280px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 0%, rgba(56, 215, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(18, 23, 38, 0.98), rgba(9, 12, 22, 0.98));
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px);
}

.pricing-grid-modal {
  width: 100%;
}

.pricing-modal .pricing-card {
  min-height: 330px;
}

.drawer-head,
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.drawer-title,
.modal-title {
  font-size: 24px;
}

.drawer-sub,
.modal-sub {
  margin-top: 8px;
  font-size: 13px;
}

.close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 12px;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.send-code-btn {
  min-width: 116px;
  border-radius: var(--radius-sm);
}

.send-code-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.google-oauth-btn {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  color: #07101c;
  cursor: pointer;
  font-weight: 900;
}

.google-oauth-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #4285f4, #34a853 48%, #fbbc05 75%, #ea4335);
  font-size: 14px;
  font-weight: 950;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1560px, 100%);
  margin: 24px auto 0;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 23, 38, 0.94), rgba(9, 12, 22, 0.96));
  box-shadow: var(--shadow-lg);
}

.pricing-card.is-featured {
  border-color: rgba(56, 215, 255, 0.36);
  box-shadow: 0 22px 60px rgba(56, 215, 255, 0.14), var(--shadow-lg);
}

.pricing-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #06101b;
  background: linear-gradient(135deg, #fff, #7ae8ff);
  font-size: 11px;
  font-weight: 950;
}

.pricing-card h3 {
  margin: 18px 0 0;
  font-size: 24px;
  font-weight: 950;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
}

.pricing-price strong {
  font-size: 48px;
  line-height: 1;
  font-weight: 950;
}

.pricing-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pricing-desc {
  min-height: 50px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.pricing-features {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-feature {
  color: #edf3ff;
  font-size: 13px;
  font-weight: 750;
}

.pricing-feature::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
}

.pricing-card .btn-primary,
.pricing-card .btn-outline {
  width: 100%;
  margin-top: 22px;
}

.login-tab {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.login-tab.active {
  color: #07101c;
  background: linear-gradient(135deg, #fff, #dff8ff);
}

.login-pane {
  display: none;
}

.login-pane.active {
  display: block;
}

.field-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: #f8fbff;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.control-pill:focus-within {
  border-color: rgba(56, 215, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(56, 215, 255, 0.08);
}

.field select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(238, 244, 255, 0.86) 50%),
    linear-gradient(135deg, rgba(238, 244, 255, 0.86) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 52%,
    calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field-note {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid rgba(56, 215, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(56, 215, 255, 0.055);
  color: rgba(232, 239, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.prompt-area:focus {
  box-shadow: none;
}

.modal-actions,
.drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: none;
  width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(56, 215, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(9, 12, 22, 0.96);
  box-shadow: var(--shadow-xl);
  color: #f8fbff;
  font-size: 13px;
  font-weight: 750;
}

.toast.is-visible {
  display: block;
}

.inline-form-card {
  width: min(760px, 100%);
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .topbar {
    align-items: flex-start;
    border-radius: 0;
    flex-wrap: wrap;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-rail-card {
    grid-template-columns: 1fr 1px 1fr;
  }

  .hero-rail-logos {
    display: none;
  }
}

@media (max-width: 920px) {
  .app-shell {
    width: min(100% - 20px, 1680px);
    padding-top: 0;
  }

  .topbar,
  .workspace-head,
  .footer-bar,
  .section-head,
  .project-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .brand,
  .top-actions,
  .nav,
  .footer-left,
  .footer-right,
  .control-pill,
  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  .topbar {
    padding: 12px 10px;
  }

  .brand {
    justify-content: center;
    min-width: 0;
  }

  .top-actions {
    min-width: 0;
    flex-wrap: wrap;
  }

  .lang-switch {
    width: 100%;
  }

  .lang-switch button {
    flex: 1;
  }

  .nav-link,
  .top-actions .btn-primary,
  .top-actions .btn-outline {
    text-align: center;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 34px;
  }

  .hero.compact {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 58px);
    line-height: 0.98;
  }

  .hero p {
    font-size: 15px;
  }

  .glow-arc {
    width: 140vw;
    height: 250px;
    bottom: 4%;
  }

  .hero-rail {
    margin-top: -14px;
  }

  .hero-rail-card,
  .hero-rail-preview,
  .card-grid,
  .live-board,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .live-card h3 {
    font-size: 22px;
  }

  .hero-rail-divider {
    display: none;
  }

  .workspace {
    margin-top: -10px;
  }

  .workspace-shell {
    padding: 0;
  }

  .studio-card {
    min-height: 300px;
    padding: 18px 16px 176px;
  }

  .prompt-area {
    min-height: 96px;
    padding-bottom: 0;
    font-size: 16px;
  }

  .input-footer {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .footer-bar,
  .footer-left,
  .footer-right {
    flex-wrap: wrap;
  }

  .footer-left {
    justify-content: flex-start;
    order: 2;
    width: 100%;
  }

  .footer-right {
    order: 3;
    width: 100%;
  }

  .upload-box {
    order: 1;
  }

  .control-pill {
    width: auto;
    flex: 1 1 calc(50% - 8px);
    min-width: 130px;
  }

  .control-pill select {
    width: 100%;
  }

  .utility-pill,
  .generate-btn {
    width: 100%;
  }

  .generate-btn {
    border-radius: 999px;
    max-width: 54px;
  }

  .reference-row,
  .reference-preview {
    align-items: flex-start;
  }

  .section-head span,
  .project-time {
    text-align: left;
  }

  .modal-card {
    margin-top: 6vh;
  }

  .pricing-modal-card {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    margin-top: 10px;
    padding: 16px;
  }

  .code-row {
    grid-template-columns: 1fr;
  }

  .send-code-btn {
    width: 100%;
  }
}
