
:root {
  --bg: #070a13;
  --bg-2: #0d1220;
  --panel: rgba(11, 16, 31, 0.82);
  --panel-2: rgba(255,255,255,0.05);
  --panel-3: rgba(255,255,255,0.035);
  --stroke: rgba(255,255,255,0.08);
  --stroke-strong: rgba(124, 92, 255, 0.34);
  --text: #edf2ff;
  --muted: #99a6c7;
  --primary: #7c5cff;
  --primary-2: #22d3ee;
  --success: #34d399;
  --danger: #fb7185;
  --warning: #fbbf24;
  --shadow: 0 22px 70px rgba(0,0,0,0.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(124,92,255,0.19), transparent 25%),
    radial-gradient(circle at 100% 0%, rgba(34,211,238,0.15), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(18,28,70,0.35), transparent 28%),
    linear-gradient(180deg, #06070e, #0a1020 35%, #080b15 100%);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.045);
  color: var(--text);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
  transition: .2s ease border-color, .2s ease background, .2s ease transform;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(124,92,255,.65);
  background: rgba(255,255,255,0.06);
}
textarea { resize: vertical; min-height: 110px; }
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 380px;
  gap: 20px;
  padding: 18px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.soft-panel {
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
}
.sidebar, .inspector { padding: 18px; display: flex; flex-direction: column; gap: 16px; min-height: calc(100vh - 36px); }
.stage { display: grid; grid-template-rows: auto 1fr; gap: 18px; min-height: calc(100vh - 36px); }
.topbar { padding: 22px 24px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.brand { display: flex; align-items: center; gap: 14px; padding: 6px 4px 4px; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-weight: 800; font-size: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 14px 40px rgba(124,92,255,.34);
}
.brand-title { font-size: 18px; font-weight: 800; }
.brand-subtitle, .eyebrow, .muted, .helper, .empty-copy, .meta-copy { color: var(--muted); }
.brand-subtitle { font-size: 13px; margin-top: 2px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }
.topbar h1, .inspector h2 { margin: 6px 0 8px; }
.topbar p { margin: 0; max-width: 760px; color: var(--muted); }
.topbar-actions, .actions, .inline-row { display: flex; gap: 10px; }
.actions.two-up > * { flex: 1; }
.actions.compact-gap { margin-top: 12px; }
.account-card, .recent-card { padding: 16px; }
.card-head, .row-between, .field-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.label { display: block; color: var(--muted); font-size: 12px; margin: 10px 0 8px; }
.balance-block { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,0.04); }
.balance-block small { display: block; color: var(--muted); margin-bottom: 6px; }
.balance-block strong { font-size: 24px; display: block; }
.balance-block span { color: var(--muted); font-size: 12px; }
.badge, .meta-pill, .chip, .status-pill {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 12px; font-size: 12px;
  border: 1px solid var(--stroke); background: rgba(255,255,255,0.04);
}
.badge.muted, .meta-pill.subtle { color: var(--muted); }
.badge.ok { color: var(--success); border-color: rgba(52,211,153,.32); background: rgba(52,211,153,.10); }
.badge.warn { color: var(--warning); border-color: rgba(251,191,36,.32); background: rgba(251,191,36,.10); }
.badge.error { color: var(--danger); border-color: rgba(251,113,133,.32); background: rgba(251,113,133,.10); }
.studio-nav { display: grid; gap: 10px; }
.nav-item {
  display: flex; gap: 14px; padding: 14px; border-radius: 20px; border: 1px solid transparent;
  background: rgba(255,255,255,0.03); color: var(--text); text-align: left; align-items: flex-start;
}
.nav-item.active { background: linear-gradient(180deg, rgba(124,92,255,0.16), rgba(34,211,238,0.09)); border-color: rgba(124,92,255,0.28); }
.nav-emoji { font-size: 20px; line-height: 1; }
.nav-title { display: block; font-size: 14px; font-weight: 700; }
.nav-subtitle { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.workspace-shell { padding: 18px; display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.workspace-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.workspace-meta, .workspace-meta-right { display: flex; gap: 10px; flex-wrap: wrap; }
.workspace-body { min-height: 0; display: grid; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; min-height: 0; }
.workspace-grid.single { grid-template-columns: minmax(0, 1fr); }
.workspace-main, .workspace-side, .inspector-card, .preview-card, .chat-composer, .planner-card, .asset-card, .result-card, .history-card, .library-card, .billing-card, .profile-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
}
.workspace-main, .workspace-side { padding: 16px; }
.workspace-main.scroll, .workspace-side.scroll { overflow: auto; }
.placeholder-stage {
  min-height: 420px; border-radius: 22px; border: 1px dashed rgba(255,255,255,0.12); background: rgba(255,255,255,0.02);
  display: grid; place-items: center; text-align: center; padding: 28px;
}
.placeholder-stage.video { background: linear-gradient(145deg, rgba(124,92,255,0.08), rgba(17,24,39,0.12)); }
.placeholder-stage.image { background: linear-gradient(145deg, rgba(34,211,238,0.08), rgba(17,24,39,0.12)); }
.placeholder-stage.chat { padding: 0; display: flex; flex-direction: column; }
.empty-copy { max-width: 460px; margin: 0 auto; line-height: 1.6; }
.empty-copy strong { display: block; color: var(--text); font-size: 20px; margin-bottom: 10px; }
.preview-media {
  width: 100%; max-height: 420px; object-fit: contain; border-radius: 18px; border: 1px solid rgba(255,255,255,0.06); background: #090c14;
}
.upload-grid, .summary-grid, .stats-grid, .plan-grid { display: grid; gap: 12px; }
.upload-grid.two, .summary-grid.two, .stats-grid.two, .plan-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.asset-card, .result-card, .history-card, .library-card, .billing-card, .profile-card, .planner-card, .inspector-card { padding: 14px; }
.asset-card h4, .result-card h4, .history-card h4, .library-card h4, .billing-card h4, .profile-card h4, .planner-card h4, .inspector-card h4 { margin: 0 0 8px; font-size: 14px; }
.asset-card small, .result-card small, .history-card small, .library-card small, .billing-card small, .profile-card small { color: var(--muted); display: block; margin-top: 6px; }
.asset-thumb { width: 100%; height: 160px; border-radius: 16px; object-fit: cover; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
.asset-thumb.fit-contain { object-fit: contain; background: rgba(9,12,20,0.9); }
.asset-empty { min-height: 140px; display: grid; place-items: center; border-radius: 16px; border: 1px dashed rgba(255,255,255,0.12); color: var(--muted); }
.workspace-body,
.workspace-grid,
.workspace-main.placeholder-stage.chat,
.chat-shell { min-height: 0; }
.workspace-main.placeholder-stage.chat { height: calc(100vh - 220px); overflow: hidden; }
.chat-shell { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; min-height: 0; gap: 14px; width: 100%; }
.chat-feed {
  min-height: 0; width: 100%; padding: 18px; overflow: auto; display: flex; flex-direction: column; gap: 12px;
}
.chat-bubble-wrap { display: flex; flex-direction: column; gap: 8px; }
.chat-bubble-wrap.user { align-items: flex-end; }
.chat-bubble-wrap.assistant { align-items: flex-start; }
.chat-bubble-wrap.system { align-items: center; }
.chat-bubble {
  max-width: 78%; padding: 14px 16px; border-radius: 20px; line-height: 1.55; white-space: pre-wrap;
  border: 1px solid rgba(255,255,255,0.06);
}
.chat-bubble.user { align-self: flex-end; background: linear-gradient(145deg, rgba(124,92,255,0.26), rgba(124,92,255,0.10)); }
.chat-bubble.assistant { align-self: flex-start; background: rgba(255,255,255,0.04); }
.chat-bubble.system { align-self: center; background: rgba(34,211,238,0.08); color: #b9f5ff; }
.chat-bubble-actions { display: flex; gap: 8px; }
.chat-composer {
  position: sticky; bottom: 0; z-index: 6; width: 100%; padding: 14px; display: grid; gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(7,10,19,0.10), rgba(7,10,19,0.96) 22%);
  backdrop-filter: blur(16px);
}
.quick-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: var(--text); border-radius: 999px; padding: 9px 12px; }
.chip:hover { border-color: rgba(124,92,255,.4); }
.composer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; width: 100%; }
.composer-row textarea { min-height: 84px; }
.composer-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn { min-width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; padding: 0 14px; }
.chat-attachment-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-file-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); max-width: 100%; }
.chat-file-pill span { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-file-pill-remove { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.chat-file-pill-remove:hover { color: var(--text); }
.workspace-side { display: grid; gap: 14px; }
.mini-list { display: grid; gap: 10px; }
.run-item, .prompt-item, .history-item, .plan-item {
  padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
}
.run-item strong, .prompt-item strong, .history-item strong, .plan-item strong { display: block; margin-bottom: 6px; font-size: 13px; }
.run-item small, .prompt-item small, .history-item small, .plan-item small { color: var(--muted); display: block; }
.link-row, .pill-row, .field-grid, .toggle-row { display: grid; gap: 10px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.selector-stack { display: grid; gap: 12px; }
.toggle-row {
  grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.035);
}
.toggle-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(124,92,255,0.06));
}
.toggle-panel.is-active {
  border-color: rgba(124,92,255,0.32);
  box-shadow: 0 0 0 1px rgba(124,92,255,0.08) inset, 0 18px 40px rgba(124,92,255,0.12);
}
.toggle-panel-copy { display: grid; gap: 8px; }
.toggle-panel-title-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toggle-panel-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124,92,255,0.26);
  background: rgba(124,92,255,0.14);
  color: #ddd6fe;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.switch { position: relative; width: 52px; height: 30px; display: inline-flex; }
.switch input { opacity: 0; position: absolute; inset: 0; }
.switch span { width: 52px; height: 30px; border-radius: 999px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.08); position: relative; transition: .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: white; transition: .2s; }
.switch input:checked + span { background: linear-gradient(135deg,var(--primary),var(--primary-2)); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch.switch-lg { width: 60px; height: 34px; }
.switch.switch-lg span { width: 60px; height: 34px; }
.switch.switch-lg span::after { width: 24px; height: 24px; }
.switch.switch-lg input:checked + span::after { transform: translateX(26px); }
.inspector-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.inspector-body { overflow: auto; display: grid; gap: 14px; padding-right: 2px; }
.section-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.input-group { display: grid; gap: 8px; }
.upload-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.upload-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(124,92,255,0.32);
  background: linear-gradient(135deg, rgba(124,92,255,0.10), rgba(34,211,238,0.05));
  cursor: pointer;
  transition: .18s ease transform, .18s ease border-color, .18s ease background, .18s ease box-shadow;
}
.upload-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(124,92,255,0.54);
  background: linear-gradient(135deg, rgba(124,92,255,0.16), rgba(34,211,238,0.08));
  box-shadow: 0 16px 34px rgba(124,92,255,0.12);
}
.upload-trigger-plus {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  color: #f5f3ff;
  background: linear-gradient(135deg, var(--primary), #5b7cff);
  box-shadow: 0 12px 24px rgba(124,92,255,0.25);
}
.upload-trigger-copy { display: grid; gap: 4px; min-width: 0; }
.upload-trigger-copy strong { font-size: 14px; }
.upload-trigger-copy small { color: var(--muted); font-size: 12px; }
.upload-file-list {
  display: grid;
  gap: 8px;
}
.upload-file-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 12px;
}
.upload-file-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-file-remove {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #f8fafc;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}
.upload-file-remove:hover {
  background: rgba(255,255,255,0.14);
}
.upload-file-pill.has-file {
  color: var(--text);
  border-color: rgba(124,92,255,0.24);
  background: rgba(124,92,255,0.10);
}
.help-text { color: var(--muted); font-size: 12px; line-height: 1.55; }
.btn {
  border: none; color: var(--text); border-radius: 16px; padding: 12px 16px; background: rgba(255,255,255,0.06);
  transition: .18s ease transform, .18s ease opacity, .18s ease background;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.small { padding: 10px 12px; border-radius: 14px; }
.btn.primary { background: linear-gradient(135deg, var(--primary), #5b7cff); box-shadow: 0 14px 32px rgba(124,92,255,0.28); }
.btn.secondary { background: linear-gradient(135deg, #0ea5e9, #22d3ee); color: #041119; font-weight: 700; }
.btn.ghost { background: rgba(255,255,255,0.05); }
.btn.outline { background: transparent; border: 1px solid rgba(255,255,255,0.10); }
.full { width: 100%; }
.link-btn { background: transparent; border: none; color: var(--muted); padding: 0; }
.toast-stack { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 1000; }
.toast {
  min-width: 280px; max-width: 360px; padding: 14px 16px; border-radius: 18px; background: rgba(10,14,25,0.92);
  border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow);
}
.toast strong { display: block; margin-bottom: 6px; }
.toast.success { border-color: rgba(52,211,153,.28); }
.toast.error { border-color: rgba(251,113,133,.28); }
.toast.info { border-color: rgba(124,92,255,.28); }
.recent-list { display: grid; gap: 10px; max-height: 280px; overflow: auto; }
.empty-state { color: var(--muted); font-size: 13px; }
.metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.metric {
  padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.05);
}
.metric strong { display: block; font-size: 22px; margin-bottom: 6px; }
.metric span { color: var(--muted); font-size: 12px; }
.tableish { display: grid; gap: 10px; }
.table-row {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); align-items: center;
}
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 8px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 1380px) {
  .shell { grid-template-columns: 286px minmax(0, 1fr) 350px; }
}
@media (max-width: 1180px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar, .inspector, .stage { min-height: auto; }
  .workspace-grid { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 740px) {
  .shell { padding: 10px; gap: 12px; }
  .panel { border-radius: 22px; }
  .topbar { padding: 18px; }
  .workspace-shell { padding: 14px; }
  .field-grid.two, .upload-grid.two, .summary-grid.two, .plan-grid.two, .stats-grid.two, .metrics { grid-template-columns: 1fr; }
  .composer-row, .inline-row { grid-template-columns: 1fr; display: grid; }
}



.hidden { display:none !important; }
.auth-block { display:grid; gap:10px; margin-bottom:14px; }
.auth-copy { font-size:13px; line-height:1.45; color:rgba(255,255,255,.82); }
.telegram-login-mount { min-height:46px; display:flex; align-items:center; }
.auth-user-view { display:grid; gap:8px; }
.auth-user-row { display:flex; gap:12px; align-items:center; }
.auth-avatar {
  width:42px; height:42px; border-radius:50%;
  display:grid; place-items:center; font-weight:800;
  background:linear-gradient(135deg, rgba(111,140,255,.35), rgba(91,224,191,.35));
  border:1px solid rgba(255,255,255,.12); overflow:hidden;
}
.auth-avatar img { width:100%; height:100%; object-fit:cover; }
.auth-help { font-size:12px; line-height:1.45; }
.btn.full { width:100%; }


.video-loader-shell {
  width: min(760px, 100%);
  display: grid;
  gap: 18px;
  justify-items: center;
}
.video-loader-shell-scan {
  padding: 22px 18px 8px;
}
.video-scan-stage {
  position: relative;
  width: min(760px, 100%);
  min-height: 260px;
  border-radius: 32px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(124,92,255,0.18), transparent 32%),
    radial-gradient(circle at 50% 10%, rgba(34,211,238,0.08), transparent 28%),
    linear-gradient(180deg, rgba(10,14,28,0.96), rgba(13,18,35,0.88));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 0 0 1px rgba(124,92,255,0.05), 0 22px 80px rgba(0,0,0,0.32);
}
.video-scan-grid,
.video-scan-sweep,
.video-scan-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.video-scan-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 50%, black 32%, transparent 78%);
  opacity: .36;
}
.video-scan-sweep::before {
  content: "";
  position: absolute;
  inset: -15% -10%;
  background: linear-gradient(180deg, rgba(124,92,255,0), rgba(124,92,255,0.04) 26%, rgba(34,211,238,0.24) 50%, rgba(124,92,255,0.04) 74%, rgba(124,92,255,0));
  transform: translateY(-60%);
  animation: astrabotSweep 3.2s ease-in-out infinite;
}
.video-scan-glow::before,
.video-scan-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.video-scan-glow::before {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(124,92,255,0.18), transparent 70%);
  filter: blur(10px);
}
.video-scan-glow::after {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(34,211,238,0.08), transparent 72%);
  filter: blur(22px);
}
.video-loader {
  position: relative;
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  z-index: 2;
}
.video-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(124,92,255,0.22);
  box-shadow: 0 0 0 1px rgba(124,92,255,0.05) inset, 0 0 42px rgba(124,92,255,0.14);
  animation: astrabotPulse 2.2s ease-in-out infinite;
}
.video-loader-ring.ring-2 {
  inset: 16px;
  animation-delay: .35s;
  border-color: rgba(34,211,238,0.18);
}
.video-loader-ring.ring-3 {
  inset: 32px;
  animation-delay: .7s;
  border-color: rgba(255,255,255,0.14);
}
.video-loader-core {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #f5f3ff;
  background: radial-gradient(circle at 30% 30%, rgba(124,92,255,0.98), rgba(124,92,255,0.52));
  box-shadow: 0 18px 42px rgba(124,92,255,0.32), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.video-loader-copy {
  max-width: 620px;
  display: grid;
  gap: 8px;
  text-align: center;
}
.video-loader-copy strong {
  font-size: 22px;
  color: var(--text);
}
.video-loader-copy div {
  line-height: 1.65;
  color: var(--muted);
}
.video-scan-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.video-scan-steps {
  width: min(620px, 100%);
  display: grid;
  gap: 10px;
}
.scan-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--muted);
}
.scan-step.active {
  color: var(--text);
  border-color: rgba(124,92,255,0.18);
  background: linear-gradient(180deg, rgba(124,92,255,0.10), rgba(34,211,238,0.05));
}
.scan-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.02);
  flex: 0 0 auto;
}
.scan-step.active .scan-dot {
  background: linear-gradient(180deg, rgba(124,92,255,0.95), rgba(34,211,238,0.85));
  box-shadow: 0 0 0 6px rgba(124,92,255,0.09), 0 0 18px rgba(124,92,255,0.28);
}
@keyframes astrabotPulse {
  0%, 100% { transform: scale(.96); opacity: .72; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes astrabotSweep {
  0% { transform: translateY(-60%); opacity: 0; }
  18% { opacity: .9; }
  50% { opacity: .95; }
  100% { transform: translateY(62%); opacity: 0; }
}
@keyframes astrabotProgress {
  from { left: -32%; }
  to { left: 100%; }
}


.history-browser {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: 16px;
}
.history-preview-panel,
.history-library-panel {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 16px;
}
.history-preview-panel {
  display: grid;
  gap: 14px;
}
.history-preview-media {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(5,8,16,0.82);
  border: 1px solid rgba(255,255,255,0.06);
}
.history-preview-empty {
  min-height: 320px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border: 1px dashed rgba(255,255,255,0.10);
  background: linear-gradient(145deg, rgba(124,92,255,0.07), rgba(34,211,238,0.04));
}
.history-preview-empty strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}
.history-preview-empty div {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}
.history-library-panel {
  display: grid;
  gap: 12px;
  max-height: 100%;
}
.history-library-list {
  max-height: 760px;
  overflow: auto;
  padding-right: 2px;
}
.history-library-item,
.history-item.compact {
  position: relative;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}
.history-library-item.active {
  border-color: rgba(124,92,255,0.34);
  background: linear-gradient(180deg, rgba(124,92,255,0.10), rgba(34,211,238,0.04));
  box-shadow: 0 0 0 1px rgba(124,92,255,0.08) inset;
}
.history-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 42px;
}
.history-item-row strong {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}
.history-item-row .badge {
  flex: 0 0 auto;
  margin-right: 2px;
}
.history-preview-details .table-row {
  grid-template-columns: 120px 1fr auto;
}
@media (max-width: 1180px) {
  .history-browser {
    grid-template-columns: 1fr;
  }
  .history-library-list {
    max-height: none;
  }
}


.chat-feed,
.workspace-main.scroll,
.workspace-side.scroll,
.inspector-body,
.recent-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(124,92,255,0.72) rgba(255,255,255,0.06);
}

.chat-feed::-webkit-scrollbar,
.workspace-main.scroll::-webkit-scrollbar,
.workspace-side.scroll::-webkit-scrollbar,
.inspector-body::-webkit-scrollbar,
.recent-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.chat-feed::-webkit-scrollbar-track,
.workspace-main.scroll::-webkit-scrollbar-track,
.workspace-side.scroll::-webkit-scrollbar-track,
.inspector-body::-webkit-scrollbar-track,
.recent-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

.chat-feed::-webkit-scrollbar-thumb,
.workspace-main.scroll::-webkit-scrollbar-thumb,
.workspace-side.scroll::-webkit-scrollbar-thumb,
.inspector-body::-webkit-scrollbar-thumb,
.recent-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124,92,255,0.95), rgba(91,124,255,0.85));
  border-radius: 999px;
  border: 2px solid rgba(8,12,22,0.65);
}

.chat-feed::-webkit-scrollbar-thumb:hover,
.workspace-main.scroll::-webkit-scrollbar-thumb:hover,
.workspace-side.scroll::-webkit-scrollbar-thumb:hover,
.inspector-body::-webkit-scrollbar-thumb:hover,
.recent-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(146,118,255,1), rgba(106,140,255,0.95));
}

.chat-feed::-webkit-scrollbar-button,
.workspace-main.scroll::-webkit-scrollbar-button,
.workspace-side.scroll::-webkit-scrollbar-button,
.inspector-body::-webkit-scrollbar-button,
.recent-list::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}


.seg-chips { display:flex; flex-wrap:wrap; gap:8px; }
.seg-chip {
  border:1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 12px;
  font: inherit;
  cursor: pointer;
  transition: .16s ease;
}
.seg-chip:hover { border-color: rgba(124,92,255,0.45); }
.seg-chip.active {
  background: linear-gradient(180deg, rgba(124,92,255,0.18), rgba(124,92,255,0.10));
  border-color: rgba(124,92,255,0.55);
  box-shadow: 0 0 0 1px rgba(124,92,255,0.18) inset;
}
.video-workspace-grid { min-height: 0; }
.video-workspace-main { display:block; }
.video-stage-card { padding: 16px; }
.video-stage-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.video-stage-clean { min-height: 480px; }
.video-stage-result { width:min(980px,100%); display:grid; gap:12px; }
.video-run-btn.loading { opacity: .78; }
.history-item.compact.active { border-color: rgba(124,92,255,0.55); box-shadow: 0 0 0 1px rgba(124,92,255,0.14) inset; }
@media (max-width: 900px) {
  .video-stage-clean { min-height: 380px; }
}

.video-stage-card-plain {
  padding-top: 12px;
}

.image-workspace-grid { min-height: 0; }
.image-workspace-main { display: block; }
.image-stage-card { padding: 16px; }
.image-stage-card-plain { padding-top: 12px; }
.image-stage-clean { min-height: 520px; }
.image-stage-result { width: min(980px, 100%); display: grid; gap: 12px; }
.image-preview-media { max-height: 560px; }
.image-loading-shell { width: min(760px, 100%); display: grid; }
.image-compare-shell { width: min(980px, 100%); display: grid; gap: 10px; }
.image-compare {
  --compare-position: 50;
  position: relative;
  width: 100%;
  min-height: 340px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #090c14;
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
  cursor: ew-resize;
  touch-action: none;
}
.image-compare-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.image-compare-before {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.image-compare-after-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 calc(100% - (var(--compare-position) * 1%)) 0 0);
}
.image-compare-after-wrap .image-compare-after {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.image-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--compare-position) * 1%);
  transform: translateX(-50%);
  width: 0;
  border-left: 2px solid rgba(255,255,255,0.86);
  pointer-events: none;
  z-index: 3;
}
.image-compare-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  background: rgba(10,16,28,0.90);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.image-compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  touch-action: none;
}
.image-compare.is-dragging {
  cursor: ew-resize;
}
.image-compare.is-dragging .image-compare-handle {
  transform: translate(-50%, -50%) scale(1.04);
}
.image-compare-label {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.96);
  background: rgba(8,12,24,0.76);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
}
.image-compare-label.before { left: 14px; }
.image-compare-label.after { right: 14px; }
.image-compare-help { text-align: center; }
@media (max-width: 900px) {
  .image-stage-clean { min-height: 400px; }
  .image-compare { min-height: 260px; }
  .image-compare-handle { width: 46px; height: 46px; font-size: 18px; }
}

.history-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(10,16,28,0.92);
  color: rgba(255,255,255,0.84);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, color .14s ease;
}

.history-delete-btn:hover {
  transform: scale(1.04);
  background: rgba(153,27,27,0.22);
  border-color: rgba(248,113,113,0.35);
  color: #fff;
}

@media (max-width: 520px) {
  .history-item-row {
    padding-right: 46px;
  }
}


.video-editor-block { margin-top: 16px; border: 1px solid rgba(255,255,255,0.08); border-radius: 22px; padding: 18px; background: rgba(10, 14, 24, 0.72); box-shadow: 0 12px 36px rgba(0,0,0,0.25); display: grid; gap: 16px; }
.video-editor-head, .video-editor-row { display: flex; align-items: center; gap: 12px; }
.video-editor-row.between, .video-editor-head { justify-content: space-between; }
.video-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.video-editor-card, .video-editor-subcard { border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; background: rgba(255,255,255,0.03); padding: 14px; display: grid; gap: 12px; }
.video-editor-card h4, .video-editor-subcard strong { margin: 0; }
.video-editor-empty, .video-editor-empty-list { border: 1px dashed rgba(255,255,255,0.16); border-radius: 18px; padding: 18px; color: var(--muted); background: rgba(255,255,255,0.02); }
.video-editor-empty strong { display: block; margin-bottom: 6px; color: #fff; }
.video-editor-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.video-editor-mini-grid label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.video-editor-mini-grid input,
.video-editor-card input[type="number"] { width: 100%; }
.video-editor-range-wrap { display: grid; gap: 8px; }
.video-editor-range-wrap input[type="range"],
.video-editor-card input[type="range"] { width: 100%; }
.video-editor-footer { display: grid; gap: 12px; }
.video-editor-status { border-radius: 16px; padding: 12px 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.video-editor-status strong { display: block; margin-bottom: 4px; }
.video-editor-status.completed { border-color: rgba(80, 220, 140, 0.28); }
.video-editor-status.failed { border-color: rgba(255, 90, 90, 0.28); }
.video-editor-status.processing,
.video-editor-status.queued { border-color: rgba(255, 184, 77, 0.28); }
.video-editor-subcard small, .video-editor-card small { color: var(--muted); }
@media (max-width: 920px) {
  .video-editor-grid { grid-template-columns: 1fr; }
  .video-editor-mini-grid { grid-template-columns: 1fr; }
}


/* Voice Studio */
.voice-workspace-grid { min-height: 0; align-items: start; }
.voice-workspace-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
.voice-editor-card,
.voice-result-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 18px;
}

.voice-editor-card,
.voice-result-card {
  flex: 0 0 auto;
}
.voice-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.voice-editor-head h3 { margin: 0 0 8px; font-size: 22px; }
.voice-editor-head p { margin: 0; color: var(--muted); max-width: 760px; line-height: 1.55; }
.voice-toolbar-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.voice-textarea {
  min-height: 180px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.65;
}
.voice-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.voice-result-shell { display: grid; gap: 16px; }
.voice-result-summary {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(135deg, rgba(124,92,255,0.10), rgba(34,211,238,0.05));
}
.voice-result-summary strong { font-size: 18px; }
.voice-result-empty {
  min-height: 120px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.voice-result-empty strong { display: block; font-size: 20px; margin-bottom: 8px; }
.voice-audio-player { width: 100%; }
.voice-side-stack { display: grid; gap: 14px; }
.voice-voice-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.voice-card-btn {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  transition: .18s ease transform, .18s ease border-color, .18s ease background, .18s ease box-shadow;
}
.voice-card-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(124,92,255,0.30);
  background: rgba(124,92,255,0.08);
}
.voice-card-btn.active {
  border-color: rgba(124,92,255,0.34);
  background: linear-gradient(135deg, rgba(124,92,255,0.16), rgba(34,211,238,0.07));
  box-shadow: 0 12px 28px rgba(124,92,255,0.12);
}
.voice-card-btn strong { font-size: 14px; }
.voice-card-btn span { color: var(--muted); font-size: 12px; }
@media (max-width: 920px) {
  .voice-voice-grid { grid-template-columns: 1fr; }
  .voice-toolbar { align-items: stretch; }
}


.voice-config-card { overflow: hidden; }
.voice-config-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.voice-config-grid .field-grid,
.voice-config-grid label,
.voice-config-grid select { min-width: 0; }

.voice-advanced-card { display: grid; gap: 14px; }
.voice-range-stack { display: grid; gap: 12px; }
.voice-range-stack.is-disabled { opacity: 0.72; }
.voice-range-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
}
.voice-range-row small { color: var(--muted); line-height: 1.45; }
.voice-range-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.voice-range-top span { font-weight: 600; }
.voice-range-top strong { color: var(--text); }
.voice-range-row input[type="range"] { width: 100%; }
.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.toggle-pill input { margin: 0; }
.toggle-pill-voice-setting {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
}
.toggle-pill-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.toggle-pill-copy strong {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}
.toggle-pill-copy small {
  color: var(--muted);
  line-height: 1.4;
}

.voice-history-panel { display: grid; gap: 12px; }
.voice-history-list { display: grid; gap: 10px; max-height: 420px; overflow: auto; padding-right: 2px; }
.voice-history-empty {
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 14px;
  color: var(--muted);
  background: rgba(255,255,255,0.025);
}
.voice-history-list .danger { color: #ffb7b7; }



/* ---- Music Studio ---- */
.music-workspace-grid { min-height: 0; align-items: start; }
.music-inspector { display: grid; gap: 12px; }

.music-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: start;
}
.music-stage-main,
.music-live-column {
  min-width: 0;
}
.music-live-column {
  display: grid;
  gap: 12px;
}
.music-live-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.music-live-status {
  display: grid;
  gap: 4px;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
}
.music-live-status strong {
  display: block;
  line-height: 1.45;
}
.music-live-status small {
  color: var(--muted);
}
.music-live-history {
  display: grid;
  gap: 10px;
}
.music-history-compact {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor: pointer;
  transition: .18s ease;
}
.music-history-compact.active,
.music-history-compact:hover {
  border-color: rgba(110,231,255,0.34);
  background: rgba(110,231,255,0.08);
}
.music-history-compact small {
  color: var(--muted);
}
.music-ai-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.music-ai-pill {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor: pointer;
  transition: .18s ease;
}
.music-ai-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
}
.music-ai-pill.active {
  border-color: rgba(122,132,255,0.55);
  background: linear-gradient(180deg, rgba(122,132,255,0.22), rgba(122,132,255,0.08));
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.music-ai-title {
  font-size: 16px;
  font-weight: 700;
}
.music-ai-pill small {
  color: var(--muted);
}
.music-mode-switch {
  margin-top: 8px;
}
.music-mode-switch .segbtn {
  flex: 1 1 0;
}
.music-run-btn {
  min-height: 48px;
  font-size: 16px;
}
.music-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.music-tab {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: .18s ease;
}
.music-tab.active {
  border-color: rgba(110,231,255,0.40);
  background: linear-gradient(180deg, rgba(110,231,255,0.16), rgba(110,231,255,0.05));
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.music-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.music-helper-row,
.music-selected-meta,
.music-result-grid {
  display: grid;
  gap: 12px;
}
.music-result-grid { grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr); }
.music-helper-row,
.music-selected-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.music-mini-card,
.music-empty-card,
.music-warning,
.music-status-strip,
.music-history-item,
.music-track-card {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.music-mini-card,
.music-empty-card,
.music-warning,
.music-status-strip,
.music-history-item { padding: 14px; }
.music-mini-card strong,
.music-track-card strong { display: block; margin-bottom: 6px; }
.music-empty-card,
.music-mini-card small,
.music-status-copy small,
.music-history-item small { color: var(--muted); line-height: 1.45; }
.music-warning {
  color: #ffd1d1;
  background: rgba(255,106,106,0.08);
  border-color: rgba(255,106,106,0.18);
}
.music-chat-thread {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}
.music-chat-bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  line-height: 1.45;
  white-space: pre-wrap;
}
.music-chat-bubble.user {
  justify-self: end;
  background: linear-gradient(135deg, rgba(58,168,255,0.22), rgba(110,231,255,0.08));
}
.music-chat-bubble.assistant {
  justify-self: start;
  background: rgba(255,255,255,0.04);
}
.music-chat-composer {
  display: grid;
  gap: 12px;
}
.music-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.music-status-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.music-history-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}
.music-history-item.active {
  border-color: rgba(110,231,255,0.34);
  background: rgba(110,231,255,0.07);
}
.music-history-head,
.music-track-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.music-track-card {
  padding: 14px;
  display: grid;
  gap: 12px;
}
.music-track-cover {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  flex: 0 0 auto;
}
.music-track-cover.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 24px;
}
.music-track-card audio {
  width: 100%;
  border-radius: 14px;
}

@media (max-width: 1180px) {
  .music-stage-grid,
  .music-result-grid,
  .music-helper-row,
  .music-selected-meta,
  .music-ai-switch { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .music-tabs { gap: 8px; }
  .music-tab { flex: 1 1 calc(50% - 8px); text-align: center; }
}


.shell.music-no-inspector {
  grid-template-columns: 310px minmax(0, 1fr);
}
.shell.music-no-inspector .inspector {
  display: none;
}

.music-workspace-main {
  display: block;
}
.music-clean-shell {
  display: grid;
  gap: 16px;
}
.music-setup-card {
  gap: 16px;
}
.music-top-grid,
.music-form-grid,
.music-results-grid {
  display: grid;
  gap: 12px;
}
.music-top-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
}
.music-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.music-run-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 12px;
  align-items: center;
}
.music-results-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}
.music-tabs--clean {
  margin-bottom: 0;
}
.music-panel > .help-text {
  margin-top: -4px;
}
.music-panel textarea {
  min-height: 140px;
}
.music-setup-card textarea {
  min-height: 96px;
}

@media (max-width: 1380px) {
  .shell.music-no-inspector {
    grid-template-columns: 286px minmax(0, 1fr);
  }
}
@media (max-width: 1180px) {
  .shell.music-no-inspector {
    grid-template-columns: 1fr;
  }
  .music-top-grid,
  .music-form-grid,
  .music-results-grid,
  .music-run-strip {
    grid-template-columns: 1fr;
  }
}

/* ===== AstraBot visual refresh ===== */
:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --panel: #141416;
  --panel-2: #18181c;
  --panel-3: #1d1d22;
  --stroke: rgba(255,255,255,0.08);
  --stroke-strong: rgba(255, 166, 43, 0.38);
  --text: #f7f4ef;
  --muted: #b6aca0;
  --primary: #ff8a1a;
  --primary-2: #ffb347;
  --success: #4ade80;
  --danger: #fb7185;
  --warning: #fbbf24;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

html, body {
  background:
    radial-gradient(circle at top, rgba(255, 138, 26, 0.14), transparent 26%),
    linear-gradient(180deg, #080808 0%, #0f0f11 38%, #080808 100%);
  color: var(--text);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 18%, transparent 80%);
  opacity: .16;
}

.site-main {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto 60px;
  padding-top: 8px;
}

.site-topbar {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: min(1440px, calc(100% - 40px));
  margin: 14px auto 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}

.site-topbar__brand,
.site-topbar__actions,
.workspace-portal-actions,
.showcase-hero__actions,
.showcase-final-cta__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-mark,
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #1b1207;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 40px rgba(255, 138, 26, 0.22);
}

.site-title {
  font-size: 18px;
  font-weight: 800;
}

.site-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.showcase-shell {
  display: grid;
  gap: 28px;
}

.pricing-showcase {
  display: grid;
  gap: 22px;
}

.pricing-showcase__head {
  align-items: end;
}

.pricing-showcase__head p {
  max-width: 640px;
}

.pricing-showcase__banner,
.pricing-info {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 138, 26, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(24,24,27,0.98), rgba(14,14,16,0.98));
  box-shadow: var(--shadow);
}

.pricing-showcase__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pricing-showcase__banner strong,
.pricing-info h3 {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.pricing-showcase__banner span,
.pricing-info p {
  color: var(--muted);
  line-height: 1.6;
}

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

.pricing-card {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 100%;
  padding: 24px 22px 22px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.05), transparent 30%),
    linear-gradient(180deg, rgba(22,22,24,0.98), rgba(12,12,14,0.98));
  box-shadow: 0 18px 42px rgba(0,0,0,0.24);
}

.pricing-card--starter {
  box-shadow: 0 18px 42px rgba(0,0,0,0.24), 0 0 0 1px rgba(88, 166, 255, 0.06);
}

.pricing-card--popular {
  background:
    radial-gradient(circle at top center, rgba(255, 173, 70, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(31,24,18,0.98), rgba(13,12,12,0.98));
  border-color: rgba(255, 179, 71, 0.28);
  transform: translateY(-6px);
}

.pricing-card--creator {
  background:
    radial-gradient(circle at top center, rgba(143, 92, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(25,19,34,0.98), rgba(13,12,17,0.98));
  border-color: rgba(143, 92, 255, 0.18);
}

.pricing-card--max {
  background:
    radial-gradient(circle at top center, rgba(255, 138, 26, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(29,20,18,0.98), rgba(13,12,12,0.98));
  border-color: rgba(255, 138, 26, 0.2);
}

.pricing-card__top h3 {
  margin: 10px 0 8px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.pricing-card__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.08);
}

.pricing-card__price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.pricing-card__top p {
  margin: 8px 0 0;
  color: var(--muted);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.16);
  border: 1px solid rgba(255, 179, 71, 0.28);
  color: #ffd7a2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-badge--max {
  background: rgba(255, 138, 26, 0.14);
  border-color: rgba(255, 138, 26, 0.22);
  color: #ffcc98;
}

.pricing-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(255,255,255,0.9);
}

.pricing-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
}

.pricing-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: #ffb347;
}

.pricing-bonus {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.pricing-bonus__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd7a2;
}

.pricing-tags,
.pricing-info__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-tags span,
.pricing-info__list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
}

.pricing-info {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
  align-items: center;
}

.pricing-info__copy h3 {
  margin: 14px 0 10px;
}

.pricing-info__copy p {
  max-width: 620px;
}


.showcase-hero,
.spotlight-banner,
.showcase-final-cta,
.workspace-portal-head {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(23,23,25,0.96), rgba(13,13,14,0.96));
  box-shadow: var(--shadow);
}

.showcase-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(460px, 1.06fr);
  gap: 20px;
  padding: 24px;
  align-items: stretch;
}

.showcase-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 179, 71, 0.18);
  background: rgba(255, 138, 26, 0.10);
  color: #ffd7a2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
}

.showcase-hero h1,
.section-head h2,
.spotlight-banner h2,
.showcase-final-cta h2,
.workspace-portal-head h2 {
  margin: 16px 0 12px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.showcase-hero h1 {
  font-size: clamp(40px, 5.1vw, 68px);
  max-width: 620px;
}

.showcase-hero p,
.section-head p,
.spotlight-banner p,
.showcase-final-cta p,
.workspace-portal-head p {
  color: var(--muted);
  line-height: 1.62;
  max-width: 760px;
}

.showcase-hero__lead {
  margin-top: -2px;
  max-width: 560px;
  font-size: 15px;
}

.showcase-hero__copy {
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: 100%;
  padding: 16px 18px 18px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 166, 43, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

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

.metric-card,
.value-card {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  padding: 18px;
}

.metric-card strong,
.value-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.metric-card span,
.value-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.metric-card--accent {
  background: linear-gradient(180deg, rgba(255,138,26,0.16), rgba(255,138,26,0.06));
  border-color: rgba(255,179,71,0.22);
}

.metric-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.metric-card--wide strong {
  margin-bottom: 0;
}

.showcase-hero__visual {
  display: grid;
  gap: 14px;
}

.hero-media,
.hero-stack-card,
.showcase-card,
.model-poster,
.result-tile {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-media {
  min-height: 420px;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 166, 43, 0.28), transparent 26%),
    radial-gradient(circle at 82% 74%, rgba(255, 123, 0, 0.18), transparent 24%),
    linear-gradient(135deg, #1c140f 0%, #0f0f10 48%, #15110b 100%);
}

.hero-media__label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  color: #ffddb5;
  font-size: 12px;
  background: rgba(10,10,10,0.28);
}

.hero-media__content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 10px;
}

.hero-media__content span,
.showcase-card small,
.model-poster strong,
.result-tile strong {
  color: rgba(247,244,239,0.88);
  line-height: 1.55;
}

.hero-media__content strong {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

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

.hero-stack-card,
.showcase-card,
.model-poster,
.result-tile {
  min-height: 170px;
  padding: 18px;
  text-align: left;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
}

.hero-stack-card span,
.showcase-card__tag,
.model-poster span,
.result-tile span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(0,0,0,0.18);
  color: #f8d8b0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hero-stack-card strong,
.showcase-card strong,
.model-poster strong,
.result-tile strong {
  display: block;
  margin-top: 18px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.hero-stack-card::before,
.showcase-card::before,
.model-poster::before,
.result-tile::before,
.hero-media::before,
.spotlight-banner::before,
.showcase-final-cta::before,
.workspace-portal-head::before {
  content: '';
  position: absolute;
  inset: auto -40% -40% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 26, 0.20), transparent 64%);
  pointer-events: none;
}

.hero-stack-card--video,
.showcase-card--video,
.model-poster--kling { background: linear-gradient(135deg, rgba(255,138,26,0.20), rgba(17,17,17,0.92) 55%); }
.hero-stack-card--image,
.showcase-card--image,
.model-poster--banana { background: linear-gradient(135deg, rgba(255,194,56,0.18), rgba(17,17,17,0.92) 55%); }
.hero-stack-card--audio,
.showcase-card--music,
.model-poster--suno { background: linear-gradient(135deg, rgba(255,114,58,0.18), rgba(17,17,17,0.92) 55%); }
.hero-stack-card--site,
.showcase-card--sites,
.result-tile--wide { background: linear-gradient(135deg, rgba(255,166,43,0.18), rgba(17,17,17,0.92) 60%); }
.showcase-card--voice,
.model-poster--eleven { background: linear-gradient(135deg, rgba(255,160,76,0.18), rgba(17,17,17,0.92) 55%); }
.showcase-card--prompts,
.showcase-card--history,
.showcase-card--billing,
.model-poster--seed,
.model-poster--veo { background: linear-gradient(135deg, rgba(255,179,71,0.14), rgba(17,17,17,0.92) 55%); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.trust-strip span {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  padding: 12px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.showcase-block {
  display: grid;
  gap: 18px;
}

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

.showcase-studio-grid,
.model-poster-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.showcase-card {
  min-height: 230px;
  transition: transform .2s ease, border-color .2s ease;
}

.showcase-card:hover,
.model-poster:hover,
.result-tile:hover,
.hero-stack-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 179, 71, 0.28);
}

.spotlight-banner,
.showcase-final-cta,
.workspace-portal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}

.model-poster-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.model-poster {
  min-height: 220px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.result-tile {
  min-height: 180px;
}

.result-tile--wide {
  grid-column: span 2;
  min-height: 240px;
}

.workspace-section {
  display: grid;
  gap: 18px;
}

.workspace-portal-head {
  margin-top: 4px;
}

body.showcase-view #workspaceSection {
  display: none;
}

body.workspace-view #showcaseView,
body.workspace-view .site-topbar {
  display: none;
}

body.workspace-view .site-main {
  padding-top: 22px;
}

.shell {
  min-height: calc(100vh - 40px);
  padding: 0;
  gap: 16px;
}

.panel {
  background: linear-gradient(180deg, rgba(20,20,22,0.98), rgba(16,16,18,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: none;
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

.soft-panel {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.06);
}

.topbar,
.workspace-shell,
.sidebar,
.inspector {
  border-radius: 28px;
}

.sidebar, .inspector {
  min-height: calc(100vh - 40px);
}

.nav-item {
  gap: 12px;
  padding: 13px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.03);
}

.nav-item.active {
  background: linear-gradient(180deg, rgba(255,138,26,0.16), rgba(255,138,26,0.05));
  border-color: rgba(255,179,71,0.20);
}

.nav-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffd6ad;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
}

.nav-title {
  font-size: 13px;
}

.nav-subtitle {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 4px;
}

.topbar {
  padding: 24px 24px;
}

.topbar h1 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.topbar p {
  max-width: 680px;
}

input, select, textarea {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(255, 179, 71, 0.38);
  background: rgba(255,255,255,0.04);
}

.badge.ok {
  color: #b6ffca;
  border-color: rgba(74,222,128,.28);
  background: rgba(74,222,128,.10);
}

.badge.muted, .meta-pill.subtle {
  color: #c8b7a5;
}

.meta-pill,
.badge,
.chip,
.status-pill {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}

.btn {
  border-radius: 16px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #241506;
  box-shadow: 0 14px 30px rgba(255, 138, 26, 0.18);
}

.btn.secondary {
  background: linear-gradient(135deg, #5a3510, #ff9b31);
  color: #fff4e7;
}

.btn.ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.brand-subtitle,
.eyebrow,
.muted,
.helper,
.empty-copy,
.meta-copy,
.link-btn {
  color: var(--muted);
}

.link-btn:hover {
  color: #ffe0bc;
}

.dev-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.dev-details summary {
  cursor: pointer;
  color: #d6c4b0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  list-style: none;
}

.dev-details summary::-webkit-details-marker {
  display: none;
}

.dev-details[open] summary {
  margin-bottom: 10px;
}

@media (max-width: 1280px) {
  .showcase-hero,
  .showcase-studio-grid,
  .results-grid,
  .value-grid,
  .model-poster-grid,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .showcase-hero {
    grid-template-columns: 1fr;
  }
  .shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .inspector {
    grid-column: 1 / -1;
    min-height: auto;
  }
  .stage {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .site-main,
  .site-topbar {
    width: calc(100% - 24px);
  }
  .site-topbar,
  .spotlight-banner,
  .showcase-final-cta,
  .workspace-portal-head,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .showcase-metrics,
  .hero-stack,
  .showcase-studio-grid,
  .results-grid,
  .model-poster-grid,
  .value-grid,
  .trust-strip,
  .shell {
    grid-template-columns: 1fr;
  }
  .metric-card--wide {
    grid-template-columns: 1fr;
  }
  .result-tile--wide {
    grid-column: auto;
  }
  .shell {
    padding: 0;
  }
  .sidebar, .inspector, .stage {
    min-height: auto;
  }
}


/* === Showcase media refresh === */
.media-surface {
  isolation: isolate;
}

.showcase-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  filter: saturate(1.04) contrast(1.01) brightness(1.04);
  background: #0b0b0c;
}

.showcase-video--hero {
  object-position: center center;
}

.video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,5,6,0.02) 0%, rgba(5,5,6,0.08) 34%, rgba(5,5,6,0.34) 100%),
    linear-gradient(135deg, rgba(255,145,34,0.04), transparent 42%);
  pointer-events: none;
}

.media-surface > :not(video):not(.showcase-video):not(.video-scrim) {
  position: relative;
  z-index: 2;
}

.featured-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.featured-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  padding: 22px;
  overflow: hidden;
  text-align: left;
  color: var(--text);
  background: linear-gradient(180deg, rgba(21,21,22,0.82), rgba(12,12,13,0.82));
  transition: transform .2s ease, border-color .2s ease;
}

.featured-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 179, 71, 0.28);
}

.featured-card__eyebrow {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  color: #ffd5a2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
}

.featured-card strong {
  display: block;
  margin-top: 16px;
  font-size: 38px;
  letter-spacing: -0.04em;
}

.featured-card small {
  display: block;
  margin-top: 10px;
  max-width: 72%;
  color: rgba(247,244,239,0.90);
  line-height: 1.55;
}

.showcase-studio-grid--media .showcase-card,
.model-poster-grid .model-poster,
.results-grid .result-tile {
  background: linear-gradient(180deg, rgba(18,18,20,0.96), rgba(10,10,12,0.96));
}

.showcase-card,
.model-poster,
.result-tile,
.hero-stack-card,
.featured-card,
.spotlight-banner,
.hero-media {
  box-shadow: 0 18px 50px rgba(0,0,0,0.20);
}

.showcase-card small,
.model-poster strong,
.result-tile strong,
.hero-stack-card strong,
.featured-card small {
  max-width: 88%;
}

.spotlight-banner .btn {
  position: relative;
  z-index: 2;
}

.spotlight-banner > div:first-of-type {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

@media (max-width: 1180px) {
  .featured-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .featured-card strong {
    font-size: 30px;
  }

  .showcase-video {
    opacity: 0.9;
  }
}


.site-footer-panel {
  margin-top: 8px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,145,34,0.14), transparent 32%),
    linear-gradient(180deg, rgba(14,14,16,0.96), rgba(8,8,10,0.98));
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

.site-footer-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.site-footer-panel__intro h2 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.04em;
}

.site-footer-panel__intro p {
  margin: 0;
  color: rgba(247,244,239,0.72);
  line-height: 1.65;
  max-width: 520px;
}

.site-footer-panel__group h3 {
  margin: 6px 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.site-footer-links {
  display: grid;
  gap: 12px;
}

.site-footer-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(18,18,20,0.94), rgba(10,10,12,0.94));
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.site-footer-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255,179,71,0.28);
  background: linear-gradient(180deg, rgba(21,21,24,0.98), rgba(11,11,13,0.98));
}

.site-footer-link span {
  color: rgba(247,244,239,0.66);
  font-size: 13px;
}

.site-footer-link strong {
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.legal-page {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(255,145,34,0.12), transparent 26%), #060606;
  color: var(--text);
}

.legal-shell {
  width: min(980px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.legal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.legal-card {
  padding: 32px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(17,17,19,0.96), rgba(9,9,11,0.98));
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

.legal-card h1 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.legal-card__lead {
  margin: 0 0 28px;
  color: rgba(247,244,239,0.72);
  line-height: 1.7;
}

.legal-card section + section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.legal-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.legal-card p,
.legal-card li {
  color: rgba(247,244,239,0.86);
  line-height: 1.72;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 1180px) {
  .site-footer-panel__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-footer-panel,
  .legal-card {
    padding: 24px;
    border-radius: 24px;
  }

  .legal-topbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Hide mini labels on showcase cards */
.showcase-card__tag { display: none !important; }


.workspace-portal-head h2 {
  margin: 8px 0 4px;
  font-size: clamp(26px, 3.1vw, 40px);
}

.workspace-portal-head p {
  max-width: 760px;
  line-height: 1.5;
}

.workspace-portal-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1220px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pricing-showcase__banner,
  .pricing-info {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card--popular {
    transform: none;
  }

  .workspace-portal-actions {
    width: 100%;
    justify-content: stretch;
  }

  .workspace-portal-actions .btn {
    width: 100%;
  }
}


.showcase-hero--compact {
  min-height: auto;
  padding-bottom: 8px;
}

.pricing-showcase--page {
  padding-top: 8px;
}
