:root {
  color-scheme: dark;
  --ink: #f8fafc;
  --ink-2: #d9e2ee;
  --muted: #8e9aad;
  --bg: #070a11;
  --bg-2: #0e1320;
  --panel: rgba(17, 22, 34, 0.86);
  --panel-2: rgba(242, 245, 240, 0.96);
  --paper: #f3f0e8;
  --paper-2: #fffaf0;
  --paper-ink: #18202d;
  --paper-muted: #667085;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(24, 32, 45, 0.14);
  --lime: #b7ff5a;
  --mint: #2ff3b0;
  --cyan: #38d8ff;
  --blue: #6b8cff;
  --amber: #ffcc66;
  --coral: #ff7867;
  --red: #ff5d5d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 18px 44px rgba(5, 8, 15, 0.22);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(183, 255, 90, 0.07) 18% 18.2%, transparent 18.2% 100%),
    linear-gradient(220deg, transparent 0 34%, rgba(56, 216, 255, 0.08) 34% 34.2%, transparent 34.2% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, #05070c 0%, #0d1320 42%, #070a11 100%);
  font-family: "PingFang SC", "Microsoft YaHei", Inter, system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.95) 0 88px, transparent 88px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 280px);
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 100vh;
}

.shell.auth-active {
  display: block;
}

.shell.auth-active .sidebar {
  display: none;
}

.shell.auth-active .main {
  min-height: 100vh;
  padding: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 120;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 16px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 12, 0.96);
}

.brand {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand.active .brand-mark {
  box-shadow:
    0 18px 34px rgba(47, 243, 176, 0.22),
    0 0 0 1px rgba(56, 216, 255, 0.46),
    inset 0 0 24px rgba(47, 243, 176, 0.08);
}

.brand-mark {
  width: 64px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  padding: 4px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 12%, rgba(47, 243, 176, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(8, 15, 25, 0.96), rgba(12, 23, 38, 0.82));
  border: 1px solid rgba(56, 216, 255, 0.26);
  box-shadow:
    0 18px 34px rgba(47, 243, 176, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(56, 216, 255, 0.28));
}

.brand strong,
.brand small {
  display: none;
}

.nav-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.nav-item {
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(248, 250, 252, 0.48);
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-item svg,
button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-item:hover,
.nav-item.active {
  color: var(--lime);
  border-color: rgba(183, 255, 90, 0.22);
  background: rgba(183, 255, 90, 0.08);
  transform: translateY(-1px);
}

.nav-item[hidden] {
  display: none !important;
}

.side-status {
  display: grid;
  gap: 9px;
  justify-items: center;
  padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.side-status > div {
  min-width: 0;
}

.side-status strong {
  display: block;
  overflow: hidden;
  max-width: 58px;
  color: var(--ink-2);
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-status p {
  display: none;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(255, 204, 102, 0.12);
}

.status-dot.ok {
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(47, 243, 176, 0.12);
}

.status-dot.bad {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 93, 93, 0.12);
}

.profile-center {
  position: relative;
}

.profile-button {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  justify-items: center;
  padding: 8px 6px;
  border: 1px solid rgba(204, 232, 255, 0.14);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0, rgba(47, 243, 176, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-button:hover,
.profile-button[aria-expanded="true"] {
  border-color: rgba(183, 255, 90, 0.32);
  background:
    radial-gradient(circle at 50% 0, rgba(183, 255, 90, 0.18), transparent 58%),
    rgba(183, 255, 90, 0.08);
}

.profile-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 243, 176, 0.28);
  border-radius: 50%;
  color: #06110b;
  background: linear-gradient(135deg, var(--lime), var(--mint));
  font-size: 13px;
  font-weight: 950;
}

.profile-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  justify-items: center;
}

.profile-copy strong,
.profile-copy small {
  max-width: 66px;
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.1;
}

.profile-copy small {
  color: var(--muted);
  font-size: 10px;
}

.profile-button > svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.profile-menu {
  position: fixed;
  left: 98px;
  bottom: 16px;
  z-index: 5000;
  width: 248px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(204, 232, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(20, 28, 43, 0.98), rgba(8, 13, 22, 0.98));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(47, 243, 176, 0.08) inset;
}

.profile-menu[hidden] {
  display: none !important;
}

.profile-menu button {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}

.profile-menu-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 4px 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-menu-head .profile-avatar {
  width: 36px;
  height: 36px;
  font-size: 15px;
}

.profile-menu-head strong,
.profile-menu-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-head strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.profile-menu-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.profile-menu button:hover {
  border-color: rgba(183, 255, 90, 0.22);
  background: rgba(183, 255, 90, 0.09);
  color: var(--lime);
}

.profile-menu button[hidden] {
  display: none !important;
}

.main {
  min-width: 0;
  padding: 18px 22px 36px;
}

.topbar {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px auto;
  gap: 18px;
  align-items: stretch;
  min-height: 292px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(21, 29, 45, 0.92) 0 54%, rgba(22, 75, 92, 0.82) 54% 73%, rgba(183, 255, 90, 0.88) 73% 100%),
    var(--bg-2);
  box-shadow: var(--shadow);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.42;
}

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

.eyebrow {
  margin: 0;
  color: var(--mint);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar h1 {
  max-width: 980px;
  margin: 12px 0 0;
  color: #ffffff;
  font-size: 56px;
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 24px;
}

.signal-card,
.command-step,
.chip-btn {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.signal-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  justify-items: start;
  padding: 13px;
  color: #ffffff;
  text-align: left;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
}

.signal-card svg {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  color: var(--lime);
}

.signal-card span {
  color: rgba(248, 250, 252, 0.68);
  font-size: 12px;
  font-weight: 850;
}

.signal-card strong {
  font-size: 14px;
}

.signal-card:hover,
.signal-card.active {
  transform: translateY(-2px);
  border-color: rgba(183, 255, 90, 0.48);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.hero-board {
  align-self: stretch;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(5, 7, 12, 0.26);
  backdrop-filter: blur(16px);
}

.board-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 45px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.board-row span {
  color: rgba(248, 250, 252, 0.56);
  font-size: 11px;
  font-weight: 950;
}

.board-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-row em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #06110b;
  background: var(--lime);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.top-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.top-actions {
  align-self: start;
  justify-content: flex-end;
}

.primary-btn,
.ghost-btn,
.icon-btn,
.segment,
.source-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-btn {
  padding: 0 17px;
  color: #06110b;
  border-color: rgba(183, 255, 90, 0.4);
  background: linear-gradient(135deg, var(--lime), var(--mint));
  box-shadow: 0 16px 34px rgba(47, 243, 176, 0.2);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(47, 243, 176, 0.24);
}

.ghost-btn {
  padding: 0 15px;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.panel .ghost-btn,
.creator-panel .ghost-btn,
.preview-panel .ghost-btn,
.result-panel .ghost-btn {
  color: var(--paper-ink);
  border-color: var(--line-dark);
  background: #ffffff;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 255, 90, 0.36);
  background: rgba(255, 255, 255, 0.14);
}

.panel .ghost-btn:hover,
.creator-panel .ghost-btn:hover,
.preview-panel .ghost-btn:hover,
.result-panel .ghost-btn:hover {
  border-color: rgba(47, 243, 176, 0.32);
  background: #f7fbf3;
}

.primary-btn:disabled,
.ghost-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.command-ribbon {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.command-step {
  min-height: 78px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0 10px;
  align-items: center;
  justify-items: start;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.045));
  backdrop-filter: blur(14px);
}

.command-step svg {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

.command-step span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.command-step strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.command-step:hover,
.command-step.active {
  transform: translateY(-2px);
  border-color: rgba(183, 255, 90, 0.34);
  background:
    linear-gradient(180deg, rgba(183, 255, 90, 0.15), rgba(255, 255, 255, 0.07));
  box-shadow: var(--shadow-soft);
}

.command-step.active svg,
.command-step:hover svg {
  color: var(--lime);
}

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

.utility-overview {
  display: grid !important;
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow-soft);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--coral));
}

.metric small,
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.metric strong {
  display: block;
  margin: 9px 0 7px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.workspace,
.split {
  display: grid;
  grid-template-columns: minmax(400px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.split {
  margin-top: 18px;
}

.single-page {
  grid-template-columns: minmax(0, 860px);
}

.page,
.utility-hidden {
  display: none !important;
}

.page.page-active.workspace,
.page.page-active.split {
  display: grid !important;
}

.page.page-active.home-page {
  display: block !important;
}

.page.page-active.auth-page {
  display: block !important;
}

.page.page-active.panel {
  display: grid !important;
}

.panel,
.creator-panel,
.preview-panel,
.result-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  color: var(--paper-ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(243, 240, 232, 0.94));
  box-shadow: var(--shadow-soft);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head h2,
.preview-copy h2,
.result-panel h3 {
  margin: 6px 0 0;
  color: var(--paper-ink);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

.panel .eyebrow,
.creator-panel .eyebrow,
.preview-panel .eyebrow,
.result-panel .eyebrow {
  color: #0f8e68;
}

.preview-copy p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--paper-muted);
  line-height: 1.65;
  font-size: 14px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(24, 32, 45, 0.05);
}

.segment {
  min-height: 38px;
  padding: 0 11px;
  color: var(--paper-muted);
  background: transparent;
  font-size: 13px;
}

.segment.active {
  color: #0b6d53;
  border-color: rgba(15, 142, 104, 0.22);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 142, 104, 0.12);
}

.process-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(24, 32, 45, 0.05);
}

.process-line span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--paper-muted);
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.process-line span.active {
  color: #06110b;
  border-color: transparent;
  background: linear-gradient(135deg, var(--lime), var(--mint));
}

.create-form,
.panel {
  display: grid;
  gap: 15px;
  align-content: start;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--paper-muted);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--paper-ink);
  background: #ffffff;
  outline: none;
}

select option {
  color: var(--paper-ink);
  background: #ffffff;
}

textarea {
  resize: vertical;
  line-height: 1.68;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(15, 142, 104, 0.32);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 142, 104, 0.72);
  box-shadow: 0 0 0 3px rgba(47, 243, 176, 0.15);
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
}

.trend-search-grid {
  grid-template-columns: minmax(180px, 0.7fr) minmax(320px, 1.3fr);
}

.trend-search-grid #trendKeyword {
  min-width: 0;
}

.quick-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voice-preset-block {
  display: grid;
  gap: 8px;
}

.field-caption {
  color: var(--paper-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.chip-btn {
  min-height: 34px;
  padding: 0 12px;
  color: var(--paper-muted);
  background: #ffffff;
  border-color: var(--line-dark);
  font-size: 12px;
  font-weight: 900;
}

.chip-btn:hover,
.chip-btn.active {
  transform: translateY(-1px);
  color: #0b6d53;
  border-color: rgba(15, 142, 104, 0.28);
  background: #f1ffe7;
}

.upload-zone,
.mini-upload {
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(15, 142, 104, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.2), rgba(56, 216, 255, 0.12)),
    #ffffff;
}

.upload-zone {
  min-height: 118px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.upload-zone input,
.mini-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone svg,
.mini-upload svg {
  width: 30px;
  height: 30px;
  color: #0b6d53;
}

.upload-zone strong,
.mini-upload strong {
  display: block;
  color: var(--paper-ink);
  font-size: 15px;
}

.upload-zone span,
.mini-upload span {
  display: block;
  margin-top: 5px;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.45;
}

.audio-source-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(24, 32, 45, 0.05);
}

.audio-source-card[hidden] {
  display: none;
}

.source-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.source-tab {
  min-height: 38px;
  color: var(--paper-muted);
  border-color: var(--line-dark);
  background: #ffffff;
  font-size: 12px;
}

.source-tab.active {
  color: #0b6d53;
  border-color: rgba(15, 142, 104, 0.26);
  background: #f1ffe7;
}

.source-pane {
  display: none;
}

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

.mini-upload {
  min-height: 76px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
}

.record-pane.active {
  min-height: 94px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #ffffff;
}

.record-orb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #06110b;
  background: linear-gradient(135deg, var(--lime), var(--mint));
  box-shadow: 0 14px 28px rgba(15, 142, 104, 0.22);
}

.record-orb.recording {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--coral));
}

.record-orb svg {
  width: 24px;
  height: 24px;
}

.record-pane strong {
  display: block;
  font-size: 14px;
}

.record-pane span {
  display: block;
  margin-top: 5px;
  color: var(--paper-muted);
  font-size: 12px;
  line-height: 1.55;
}

.record-pane audio {
  width: 100%;
  margin-top: 9px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 2.6vw, 34px);
  overflow: hidden;
}

.auth-layout {
  position: relative;
  width: min(1480px, 100%);
  min-height: min(780px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid rgba(204, 232, 255, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 79% 12%, rgba(183, 255, 90, 0.25), transparent 32%),
    radial-gradient(circle at 56% 47%, rgba(56, 216, 255, 0.19), transparent 37%),
    linear-gradient(135deg, #0b111d 0%, #101827 54%, #070a11 100%);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.54);
  isolation: isolate;
}

.auth-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 10, 17, 0.96) 0 37%, rgba(6, 10, 17, 0.7) 58%, rgba(6, 10, 17, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 8, 14, 0.18), rgba(5, 8, 14, 0.9));
}

.auth-layout::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--coral));
}

.auth-backdrop-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.76;
  filter: saturate(1.1) contrast(1.04);
  transform: scale(1.02);
}

.auth-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 58px),
    linear-gradient(115deg, transparent 0 58%, rgba(183, 255, 90, 0.28) 58% 68%, transparent 68% 100%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.auth-brand,
.auth-hero-panel,
.auth-card,
.auth-demo-board {
  position: relative;
  z-index: 2;
}

.auth-brand {
  position: absolute;
  top: clamp(22px, 3vw, 38px);
  left: clamp(22px, 3vw, 42px);
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.auth-brand .brand-mark {
  width: 78px;
  height: 58px;
  border-color: rgba(56, 216, 255, 0.34);
  background: rgba(2, 10, 18, 0.76);
  box-shadow: 0 0 34px rgba(47, 243, 176, 0.16);
}

.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.auth-brand small {
  margin-top: 4px;
  color: rgba(217, 226, 238, 0.74);
  font-size: 12px;
}

.auth-hero-panel {
  width: min(820px, calc(100% - 500px));
  min-height: inherit;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: clamp(106px, 9vw, 142px) 0 clamp(70px, 7vw, 112px) clamp(28px, 4vw, 60px);
}

.auth-copy {
  max-width: 820px;
}

.auth-copy h1 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(44px, 4.8vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.52);
}

.auth-copy h1 span {
  display: block;
}

.auth-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(217, 226, 238, 0.8);
  font-size: 17px;
  line-height: 1.78;
}

.auth-capabilities {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.auth-capabilities span {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 13px;
  border: 1px solid rgba(204, 232, 255, 0.14);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(7, 11, 18, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.auth-capabilities svg {
  width: 20px;
  height: 20px;
  color: var(--lime);
  flex: 0 0 auto;
}

.auth-demo-board {
  position: absolute;
  left: clamp(28px, 4vw, 60px);
  bottom: clamp(22px, 3vw, 38px);
  width: min(760px, calc(100% - 590px));
  min-height: 0;
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(204, 232, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(4, 9, 16, 0.48);
  backdrop-filter: blur(18px);
}

.auth-demo-title {
  color: rgba(217, 226, 238, 0.72);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-demo-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.auth-demo-timeline span {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: #06110b;
  background: linear-gradient(135deg, var(--lime), var(--mint));
  font-size: 12px;
  font-weight: 950;
}

.auth-demo-timeline span:nth-child(2) {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(56, 216, 255, 0.92), rgba(107, 140, 255, 0.76));
}

.auth-demo-timeline span:nth-child(3) {
  color: #14100a;
  background: linear-gradient(135deg, rgba(255, 204, 102, 0.96), rgba(255, 120, 103, 0.72));
}

.auth-demo-timeline span:nth-child(4) {
  color: var(--ink);
  background: rgba(204, 232, 255, 0.15);
}

.auth-card {
  position: absolute;
  top: 50%;
  right: clamp(28px, 4vw, 68px);
  width: min(410px, calc(100% - 56px));
  display: grid;
  gap: 16px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(204, 232, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(11, 16, 27, 0.7);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(22px);
  transform: translateY(-50%);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(183, 255, 90, 0.16), transparent 30%),
    linear-gradient(140deg, transparent 0 56%, rgba(56, 216, 255, 0.08) 56% 100%);
}

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

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(204, 232, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(5, 8, 14, 0.36);
}

.auth-tabs button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--paper-muted);
  background: transparent;
  font-weight: 950;
}

.auth-tabs button.active {
  color: #06110b;
  border-color: rgba(183, 255, 90, 0.42);
  background: linear-gradient(135deg, var(--lime), var(--mint));
  box-shadow: 0 12px 28px rgba(47, 243, 176, 0.16);
}

.auth-card-head h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.12;
}

.auth-card-head p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--paper-muted);
  font-size: 14px;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  gap: 8px;
}

.auth-form input {
  min-height: 54px;
  background: rgba(5, 8, 14, 0.58);
}

.auth-form input.is-invalid {
  border-color: rgba(255, 94, 94, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 94, 94, 0.08), rgba(5, 8, 14, 0.58)),
    rgba(5, 8, 14, 0.58);
  box-shadow:
    0 0 0 3px rgba(255, 94, 94, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-field-error {
  color: #ff8b8b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.auth-form-error {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 94, 94, 0.36);
  border-radius: 8px;
  color: #ffb0b0;
  background: rgba(255, 94, 94, 0.08);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.auth-field-error[hidden],
.auth-form-error[hidden] {
  display: none !important;
}

.auth-form-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px dashed rgba(183, 255, 90, 0.28);
  border-radius: var(--radius);
  color: var(--paper-muted);
  background: rgba(183, 255, 90, 0.06);
  font-size: 12px;
  line-height: 1.55;
}

.auth-form-note svg {
  width: 20px;
  height: 20px;
  color: var(--lime);
}

.auth-primary,
.auth-secondary {
  width: 100%;
}

.auth-secondary {
  min-height: 44px;
}

.auth-logged-panel {
  display: grid;
  gap: 18px;
}

.auth-logged-panel[hidden],
.auth-form[hidden] {
  display: none !important;
}

.auth-user-badge {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(204, 232, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(5, 8, 14, 0.34);
}

.auth-user-badge .profile-avatar {
  width: 52px;
  height: 52px;
  font-size: 20px;
}

.auth-user-badge strong,
.auth-user-badge small {
  display: block;
}

.auth-user-badge strong {
  color: var(--ink);
  font-size: 18px;
}

.auth-user-badge small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.auth-actions {
  display: grid;
  gap: 10px;
}

.preview-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, #fffaf0, #ece7dc);
}

.phone-frame {
  position: relative;
  min-height: 470px;
  max-height: 680px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 10px solid #05070c;
  border-radius: var(--radius);
  background: #05070c;
  box-shadow: 0 26px 54px rgba(5, 8, 15, 0.28);
}

.phone-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 9px;
  width: 78px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.phone-stats {
  position: absolute;
  z-index: 3;
  left: 14px;
  right: 14px;
  top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.phone-stats span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 7, 12, 0.58);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.caption-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(5, 7, 12, 0.76);
  backdrop-filter: blur(16px);
}

.caption-bar span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.demo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.demo-gallery button {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  aspect-ratio: 1 / 1;
  transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.demo-gallery button:hover,
.demo-gallery button.active {
  transform: translateY(-2px);
  border-color: #0b6d53;
  filter: saturate(1.05);
}

.demo-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #0b6d53;
  background: rgba(47, 243, 176, 0.15);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.pill.soft {
  color: #8a5a0a;
  background: rgba(255, 204, 102, 0.22);
}

#voiceAudio {
  width: 100%;
}

.voice-console {
  min-height: 420px;
  align-content: start;
  gap: 16px;
}

.voice-console::after {
  content: "";
  display: block;
  min-height: 128px;
  margin-top: 4px;
  border: 1px solid rgba(204, 232, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(183, 255, 90, 0.8) 0 6px, transparent 6px 17px),
    linear-gradient(90deg, rgba(56, 216, 255, 0.65) 0 5px, transparent 5px 19px),
    linear-gradient(90deg, rgba(255, 204, 102, 0.65) 0 4px, transparent 4px 23px),
    rgba(5, 8, 14, 0.42);
  background-size: 34px 36px, 46px 58px, 56px 78px, auto;
  background-position: 12px 60px, 18px 42px, 24px 26px, 0 0;
  background-repeat: repeat-x;
  opacity: 0.72;
}

.voice-console audio {
  width: 100%;
  min-height: 42px;
  border-radius: var(--radius);
  background: rgba(5, 8, 14, 0.64);
}

.inline-result,
.provider-item,
.job-item,
.report-grid article,
.prompt-box,
.timeline article,
.style-line span,
.trend-source-line,
.source-summary,
.trend-next-panel,
.manual-trend-details,
.trend-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #ffffff;
}

.inline-result {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.inline-result span,
.provider-item p,
.job-item p,
.empty-state,
.login-tip,
.risk-note {
  margin: 0;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.62;
}

.provider-list,
.job-list,
.trend-list,
.timeline {
  display: grid;
  gap: 10px;
}

.provider-item,
.job-item {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.provider-title,
.job-title,
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.provider-title strong,
.job-title strong {
  color: var(--paper-ink);
  font-size: 16px;
}

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

.route-note {
  color: #0b6d53;
  font-size: 12px;
  font-weight: 850;
}

.progress-line {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 32, 45, 0.08);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), var(--mint), var(--cyan));
}

.job-item.status-ready {
  border-color: rgba(15, 142, 104, 0.25);
  background: #f5fff0;
}

.job-item.status-running {
  border-color: rgba(56, 216, 255, 0.26);
}

.job-item.status-failed {
  border-color: rgba(255, 93, 93, 0.36);
  background: #fff1ee;
}

.job-meta,
.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.job-meta span,
.trend-metrics span,
.tag-row span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #16525c;
  background: rgba(56, 216, 255, 0.13);
  font-size: 12px;
  font-weight: 850;
}

.job-meta span {
  min-height: 24px;
  color: var(--paper-muted);
  background: rgba(24, 32, 45, 0.06);
  font-size: 11px;
}

.job-stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.job-stages span {
  min-height: 38px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--paper-muted);
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.job-stages b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  background: rgba(24, 32, 45, 0.08);
  font-size: 11px;
}

.job-stages .done,
.job-stages .current {
  color: #0b6d53;
  border-color: rgba(15, 142, 104, 0.28);
  background: #f5fff0;
}

.job-stages .failed {
  color: #c93939;
  border-color: rgba(255, 93, 93, 0.34);
  background: #fff1ee;
}

.job-hint,
.job-error {
  margin: 0;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.55;
}

.job-error {
  color: #c93939;
}

.primary-mini,
.ghost-mini,
.ghost-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary-mini {
  color: #06110b;
  border-color: rgba(183, 255, 90, 0.36);
  background: linear-gradient(135deg, var(--lime), var(--mint));
}

.ghost-mini,
.ghost-link {
  color: var(--paper-ink);
  border-color: var(--line-dark);
  background: #ffffff;
}

.primary-mini:hover,
.ghost-mini:hover,
.ghost-link:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 142, 104, 0.3);
}

.job-video {
  width: min(360px, 100%);
  max-height: 420px;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #05070c;
  object-fit: contain;
}

.job-audio {
  width: min(520px, 100%);
  margin-top: 8px;
}

.result-panel {
  min-height: 280px;
}

.trend-source-line {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  margin-bottom: 12px;
  color: var(--paper-muted);
  font-size: 12px;
  line-height: 1.45;
}

.trend-next-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  margin-top: 2px;
  border-color: rgba(15, 142, 104, 0.28);
  background: #f5fff0;
}

.douyin-login-card {
  display: grid;
  gap: 16px;
}

.qr-preview {
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(204, 232, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 8, 14, 0.42);
}

.qr-preview img {
  width: min(100%, 560px);
  max-height: 520px;
  object-fit: contain;
  border-radius: 6px;
}

.verification-preview {
  gap: 10px;
}

.verification-surface {
  position: relative;
  width: min(100%, 560px);
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.verification-surface.is-dragging {
  cursor: grabbing;
}

.verification-surface img {
  width: 100%;
  max-height: 520px;
  pointer-events: none;
}

.verification-gesture {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: 6px;
}

.verification-surface.is-dragging .verification-gesture {
  border-color: rgba(31, 199, 165, 0.72);
  background: rgba(31, 199, 165, 0.06);
}

.verification-help {
  margin: 0;
  color: var(--paper-muted);
  font-size: 12px;
  text-align: center;
}

.trend-next-panel[hidden] {
  display: none;
}

.trend-next-panel h3 {
  margin: 4px 0 0;
  color: var(--paper-ink);
  font-size: 18px;
  line-height: 1.35;
}

.manual-trend-details {
  padding: 12px;
}

.manual-trend-details summary {
  cursor: pointer;
  color: var(--paper-ink);
  font-weight: 900;
}

.manual-trend-details label {
  margin-top: 12px;
}

.trend-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.trend-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 142, 104, 0.32);
  box-shadow: 0 14px 28px rgba(24, 32, 45, 0.1);
}

.trend-card.selected {
  border-color: rgba(15, 142, 104, 0.62);
  background: #f5fff0;
  box-shadow: 0 0 0 1px rgba(15, 142, 104, 0.18);
}

.trend-card img,
.trend-cover,
.cover-placeholder {
  width: 100%;
  aspect-ratio: 9 / 12;
  border-radius: var(--radius);
  background: #05070c;
}

.trend-cover {
  display: grid;
  overflow: hidden;
}

.trend-cover img,
.trend-cover .cover-placeholder {
  grid-area: 1 / 1;
}

.trend-card img {
  border: 1px solid var(--line-dark);
  object-fit: cover;
}

.cover-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px dashed var(--line-dark);
  color: var(--paper-muted);
  background: rgba(24, 32, 45, 0.05);
  text-align: center;
  font-size: 12px;
}

.cover-placeholder[hidden] {
  display: none !important;
}

.cover-placeholder svg {
  width: 26px;
  height: 26px;
  color: #0b6d53;
}

.trend-card-head,
.trend-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.trend-card-head strong {
  color: var(--paper-ink);
  line-height: 1.45;
  font-size: 15px;
}

.trend-card p,
.source-summary p {
  margin: 8px 0 0;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.55;
}

.trend-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.trend-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.source-summary {
  display: grid;
  gap: 4px;
  padding: 13px;
  margin-bottom: 12px;
}

.source-summary small {
  color: var(--paper-muted);
  font-size: 12px;
}

.source-summary strong {
  color: var(--paper-ink);
  line-height: 1.45;
}

.trend-metrics-wide {
  margin-top: 8px;
}

.visual-result {
  min-height: 520px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.generated-image {
  width: min(520px, 100%);
  max-height: 620px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 18px 36px rgba(24, 32, 45, 0.12);
}

.copy-box {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  color: var(--paper-ink);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 14px;
  line-height: 1.65;
}

.ghost-link.disabled {
  pointer-events: none;
  opacity: 0.52;
}

.result-panel h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.22;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.report-grid article {
  min-height: 108px;
  padding: 13px;
}

.report-grid small,
.timeline small {
  color: var(--paper-muted);
  font-size: 12px;
  line-height: 1.45;
}

.report-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--paper-ink);
  font-size: 14px;
  line-height: 1.55;
}

.style-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.style-line span {
  padding: 10px 12px;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.5;
}

.timeline {
  margin-bottom: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
}

.timeline article > span {
  color: #0b6d53;
  font-size: 13px;
  font-weight: 950;
}

.timeline p,
.prompt-box p {
  margin: 6px 0 0;
  color: var(--paper-muted);
  line-height: 1.65;
  font-size: 13px;
}

.script-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.script-columns h4,
.prompt-box h4 {
  margin: 0 0 8px;
}

.result-panel pre {
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
  line-height: 1.65;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--paper-ink);
  background: #f7f4ea;
  font-size: 13px;
}

.prompt-box {
  padding: 14px;
  margin-bottom: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(15, 142, 104, 0.34);
  border-radius: var(--radius);
  color: var(--paper-muted);
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.16), rgba(56, 216, 255, 0.1)),
    #ffffff;
}

p.empty-state {
  display: block;
}

.empty-state strong {
  color: var(--paper-ink);
  font-size: 16px;
}

.empty-state span {
  color: var(--paper-muted);
  line-height: 1.62;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.login-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: transparent;
}

.login-dialog::backdrop {
  background: rgba(5, 7, 12, 0.62);
  backdrop-filter: blur(8px);
}

.login-box {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  color: var(--paper-ink);
  background: var(--paper-2);
}

.login-box .brand {
  display: flex;
  justify-items: start;
  color: var(--paper-ink);
}

.login-box .brand-mark {
  width: 82px;
  height: 54px;
  flex: 0 0 auto;
}

.login-box .brand strong,
.login-box .brand small {
  display: block;
}

.close-dialog {
  position: absolute;
  top: 12px;
  right: 12px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--paper-ink);
  border-color: var(--line-dark);
  background: #ffffff;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(460px, calc(100vw - 40px));
  padding: 13px 15px;
  border: 1px solid rgba(183, 255, 90, 0.28);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(17, 22, 34, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.primary-btn:focus-visible,
.ghost-btn:focus-visible,
.chip-btn:focus-visible,
.signal-card:focus-visible,
.command-step:focus-visible,
.nav-item:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(183, 255, 90, 0.72);
  outline-offset: 3px;
}

@media (max-width: 1220px) {
  .auth-layout {
    min-height: auto;
  }

  .auth-card {
    position: relative;
    top: auto;
    right: auto;
    width: min(540px, calc(100% - 56px));
    margin: 0 28px 28px auto;
    transform: none;
  }

  .auth-hero-panel {
    width: 100%;
    min-height: 0;
    padding: 124px 28px 28px;
  }

  .auth-copy {
    max-width: 860px;
  }

  .auth-demo-board {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: 0 28px 28px;
  }

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

  .hero-board {
    min-height: 0;
  }

  .hero-signal-grid,
  .command-ribbon,
  .overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace,
  .split {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
    grid-template-columns: minmax(280px, 380px) 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .auth-page {
    padding: 0;
  }

  .auth-layout {
    min-height: 100vh;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .auth-brand {
    top: 16px;
    left: 16px;
    gap: 10px;
  }

  .auth-brand .brand-mark {
    width: 58px;
    height: 48px;
  }

  .auth-brand strong {
    font-size: 16px;
  }

  .auth-hero-panel {
    padding: 100px 16px 20px;
    gap: 20px;
  }

  .auth-copy h1 {
    font-size: clamp(38px, 13vw, 54px);
    line-height: 1;
  }

  .auth-copy p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 14px;
  }

  .auth-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-capabilities span {
    min-height: 48px;
    white-space: normal;
  }

  .auth-demo-board {
    margin: 0 16px 16px;
    padding: 12px;
  }

  .auth-demo-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-card {
    width: auto;
    margin: 0 16px 16px;
    padding: 18px;
  }

  .auth-card-head h2 {
    font-size: 28px;
  }

  body::before {
    background: linear-gradient(180deg, rgba(5, 7, 12, 0.96) 0 82px, transparent 82px 100%);
  }

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

  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 74px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .brand {
    justify-items: start;
  }

  .nav-list {
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .nav-item {
    min-width: 58px;
    min-height: 52px;
  }

  .side-status {
    grid-column: 1 / -1;
    grid-template-columns: 10px minmax(0, 1fr);
    justify-items: start;
  }

  .side-status strong {
    max-width: none;
    text-align: left;
  }

  .main {
    padding: 14px;
  }

  .topbar {
    min-height: 0;
    padding: 20px;
  }

  .topbar h1 {
    font-size: 34px;
  }

  .hero-signal-grid,
  .command-ribbon,
  .overview,
  .field-grid,
  .preview-panel,
  .report-grid,
  .style-line,
  .script-columns,
  .provider-grid,
  .job-stages {
    grid-template-columns: 1fr;
  }

  .segmented {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .process-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phone-frame {
    min-height: 380px;
  }

  .trend-card {
    grid-template-columns: 1fr;
  }

  .trend-card img,
  .trend-cover,
  .cover-placeholder {
    aspect-ratio: 16 / 9;
  }

  .timeline article,
  .record-pane.active {
    grid-template-columns: 1fr;
  }

  .top-actions,
  .form-actions {
    width: 100%;
  }
}

.selected-source {
  min-height: 64px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(183, 255, 90, 0.34);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(183, 255, 90, 0.08);
}

.selected-source[hidden] {
  display: none !important;
}

.selected-source > svg {
  width: 24px;
  height: 24px;
  color: var(--lime);
}

.selected-source strong,
.selected-source span {
  display: block;
}

.selected-source strong {
  font-size: 14px;
}

.selected-source span {
  margin-top: 3px;
  color: var(--paper-muted);
  font-size: 12px;
}

.selected-source .icon-btn {
  position: static;
  width: 36px;
  height: 36px;
}

.job-item.status-waiting {
  border-color: rgba(255, 213, 99, 0.34);
  background: rgba(255, 213, 99, 0.05);
}

.job-stages .waiting {
  color: #ffe28a;
  border-color: rgba(255, 213, 99, 0.38);
  background: rgba(255, 213, 99, 0.08);
}

@media (max-width: 620px) {
  .selected-source {
    grid-template-columns: 24px minmax(0, 1fr) 36px;
  }

  .result-actions {
    align-items: stretch;
  }

  .result-actions > * {
    flex: 1 1 auto;
  }
}

@media (max-width: 460px) {
  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .quick-cluster,
  .empty-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chip-btn {
    width: 100%;
  }
}

/* Studio cohesion pass: keep the product in one digital-human video suite. */
:root {
  --studio-bg: #070a11;
  --studio-panel: rgba(15, 21, 33, 0.88);
  --studio-panel-strong: rgba(20, 28, 42, 0.94);
  --studio-panel-soft: rgba(255, 255, 255, 0.055);
  --studio-field: rgba(5, 8, 14, 0.78);
  --studio-line: rgba(204, 232, 255, 0.15);
  --studio-line-strong: rgba(183, 255, 90, 0.28);
  --paper: #101725;
  --paper-2: #121b2a;
  --paper-ink: #f8fafc;
  --paper-muted: #98a7bb;
}

body {
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(183, 255, 90, 0.07) 18% 18.2%, transparent 18.2% 100%),
    linear-gradient(220deg, transparent 0 34%, rgba(56, 216, 255, 0.08) 34% 34.2%, transparent 34.2% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, #05070c 0%, #0b101b 46%, #05070c 100%);
}

.topbar {
  margin-bottom: 14px;
}

.command-ribbon,
.overview,
.workspace,
.split,
#jobs {
  position: relative;
}

.command-ribbon::before,
.overview::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -9px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 255, 90, 0.28), rgba(56, 216, 255, 0.18), transparent);
}

.command-step,
.metric {
  border-color: rgba(204, 232, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(15, 21, 33, 0.76);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.command-step strong,
.metric strong {
  color: var(--ink);
}

.command-step span,
.metric small,
.metric span {
  color: var(--muted);
}

.panel,
.creator-panel,
.preview-panel,
.result-panel,
.job-item,
.trend-card,
.trend-source-line,
.source-summary,
.trend-next-panel,
.manual-trend-details,
.inline-result,
.provider-item,
.report-grid article,
.prompt-box,
.timeline article,
.style-line span {
  color: var(--ink);
  border-color: var(--studio-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    var(--studio-panel);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.26);
}

.panel,
.creator-panel,
.result-panel {
  position: relative;
  overflow: hidden;
}

.panel::before,
.creator-panel::before,
.result-panel::before,
.preview-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--coral));
  opacity: 0.9;
}

.panel > *,
.creator-panel > *,
.result-panel > *,
.preview-panel > * {
  position: relative;
  z-index: 1;
}

.panel-head h2,
.preview-copy h2,
.result-panel h3,
.trend-next-panel h3,
.trend-card-head strong,
.source-summary strong,
.provider-title strong,
.job-title strong,
.upload-zone strong,
.mini-upload strong,
.record-pane strong,
.inline-result strong,
.report-grid strong {
  color: var(--ink);
}

.panel .eyebrow,
.creator-panel .eyebrow,
.preview-panel .eyebrow,
.result-panel .eyebrow {
  color: var(--mint);
}

.preview-copy p:not(.eyebrow),
.inline-result span,
.provider-item p,
.job-item p,
.empty-state,
.login-tip,
.risk-note,
.trend-card p,
.source-summary p,
.report-grid small,
.timeline small,
.timeline p,
.prompt-box p,
.job-hint,
.job-error,
label span,
.upload-zone span,
.mini-upload span,
.record-pane span,
.manual-trend-details summary {
  color: var(--paper-muted);
}

input,
select,
textarea,
.copy-box,
.result-panel pre {
  color: var(--ink);
  border-color: rgba(204, 232, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    var(--studio-field);
}

select option {
  color: var(--ink);
  background: #101725;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(183, 255, 90, 0.32);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(183, 255, 90, 0.7);
  box-shadow: 0 0 0 3px rgba(183, 255, 90, 0.12);
}

.field-grid label,
.create-form > label,
.panel > label {
  padding: 0;
}

.segmented,
.process-line,
.audio-source-card {
  border-color: rgba(204, 232, 255, 0.13);
  background: rgba(5, 8, 14, 0.34);
}

.segment,
.source-tab,
.process-line span,
.chip-btn,
.ghost-mini,
.ghost-link,
.panel .ghost-btn,
.creator-panel .ghost-btn,
.preview-panel .ghost-btn,
.result-panel .ghost-btn {
  color: var(--paper-muted);
  border-color: rgba(204, 232, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.segment.active,
.source-tab.active,
.process-line span.active,
.chip-btn:hover,
.chip-btn.active,
.ghost-mini:hover,
.ghost-link:hover,
.panel .ghost-btn:hover,
.creator-panel .ghost-btn:hover,
.preview-panel .ghost-btn:hover,
.result-panel .ghost-btn:hover {
  color: #06110b;
  border-color: rgba(183, 255, 90, 0.48);
  background: linear-gradient(135deg, var(--lime), var(--mint));
}

.ghost-mini.danger {
  color: #ffb7b7;
  border-color: rgba(255, 93, 93, 0.28);
  background: rgba(255, 93, 93, 0.08);
}

.ghost-mini.danger:hover {
  color: #240506;
  border-color: rgba(255, 125, 125, 0.62);
  background: linear-gradient(135deg, #ff8f8f, #ffc4a8);
}

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

.account-card,
.account-user-row {
  padding: 18px;
  border: 1px solid rgba(204, 232, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(5, 8, 14, 0.28);
}

.account-card h3,
.account-user-row strong {
  margin: 0;
  color: var(--ink);
}

.account-quota {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.system-readiness,
.readiness-list {
  display: grid;
  gap: 10px;
}

.readiness-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(204, 232, 255, 0.1);
}

.readiness-item:last-child {
  border-bottom: 0;
}

.readiness-item > span {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: #ffd563;
  box-shadow: 0 0 0 4px rgba(255, 213, 99, 0.1);
}

.readiness-item.ready > span {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(47, 243, 176, 0.1);
}

.readiness-item strong,
.readiness-item small {
  display: block;
}

.readiness-item small {
  margin-top: 3px;
  color: var(--paper-muted);
  line-height: 1.45;
}

.readiness-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.readiness-meta span {
  padding: 10px;
  border: 1px solid rgba(204, 232, 255, 0.1);
  border-radius: var(--radius);
  color: var(--paper-muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
}

.readiness-meta strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.quota-line {
  display: grid;
  gap: 6px;
}

.quota-line span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quota-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.quota-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
}

.account-form {
  display: grid;
  gap: 12px;
}

.account-security-notice {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 196, 89, 0.34);
  border-radius: 6px;
  color: #ffe2a1;
  background: rgba(255, 174, 51, 0.08);
  font-size: 13px;
  line-height: 1.55;
}

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

.account-users {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.account-user-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) repeat(4, minmax(90px, 0.6fr)) minmax(130px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
}

.account-user-row label {
  margin: 0;
}

.account-user-row input,
.account-user-row select {
  min-height: 38px;
  padding: 0 10px;
}

@media (max-width: 980px) {
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-user-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .account-user-row,
  .quota-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.job-image {
  width: min(360px, 100%);
  max-height: 420px;
  object-fit: cover;
  border: 1px solid rgba(204, 232, 255, 0.14);
  border-radius: var(--radius);
}

.process-line span.active {
  box-shadow: 0 10px 24px rgba(47, 243, 176, 0.16);
}

.upload-zone,
.mini-upload {
  border-color: rgba(183, 255, 90, 0.26);
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.09), rgba(56, 216, 255, 0.08)),
    rgba(5, 8, 14, 0.56);
}

.upload-zone svg,
.mini-upload svg,
.cover-placeholder svg {
  color: var(--lime);
}

.record-pane.active {
  border-color: rgba(204, 232, 255, 0.14);
  background: rgba(5, 8, 14, 0.5);
}

.record-orb {
  color: #06110b;
  background: linear-gradient(135deg, var(--lime), var(--mint));
}

.preview-panel {
  background:
    linear-gradient(180deg, rgba(56, 216, 255, 0.08), rgba(255, 255, 255, 0.035)),
    var(--studio-panel);
}

.phone-frame {
  border-color: #05070c;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(204, 232, 255, 0.14);
}

.demo-gallery button {
  border-color: rgba(204, 232, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
}

.demo-gallery button:hover,
.demo-gallery button.active {
  border-color: var(--lime);
}

.pill {
  color: #06110b;
  background: linear-gradient(135deg, var(--lime), var(--mint));
}

.pill.soft {
  color: #06110b;
  background: linear-gradient(135deg, var(--amber), var(--lime));
}

.trend-next-panel {
  border-color: rgba(183, 255, 90, 0.28);
  background:
    linear-gradient(180deg, rgba(183, 255, 90, 0.08), rgba(255, 255, 255, 0.035)),
    var(--studio-panel-strong);
}

.trend-card:hover,
.trend-card.selected,
.job-item.status-ready {
  border-color: rgba(183, 255, 90, 0.36);
  background:
    linear-gradient(180deg, rgba(183, 255, 90, 0.09), rgba(255, 255, 255, 0.035)),
    var(--studio-panel-strong);
}

.job-item.status-running {
  border-color: rgba(56, 216, 255, 0.26);
}

.job-item.status-failed {
  border-color: rgba(255, 93, 93, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 93, 93, 0.09), rgba(255, 255, 255, 0.035)),
    var(--studio-panel-strong);
}

.trend-card img,
.cover-placeholder,
.generated-image,
.job-video {
  border-color: rgba(204, 232, 255, 0.14);
  background: #05070c;
}

.cover-placeholder {
  color: var(--paper-muted);
}

.trend-metrics span,
.tag-row span,
.job-meta span {
  color: #dffcff;
  border: 1px solid rgba(56, 216, 255, 0.16);
  background: rgba(56, 216, 255, 0.12);
}

.job-meta span {
  color: var(--paper-muted);
  background: rgba(255, 255, 255, 0.055);
}

.job-stages span {
  color: var(--paper-muted);
  border-color: rgba(204, 232, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.job-stages b {
  background: rgba(255, 255, 255, 0.08);
}

.job-stages .done,
.job-stages .current {
  color: var(--lime);
  border-color: rgba(183, 255, 90, 0.28);
  background: rgba(183, 255, 90, 0.08);
}

.job-stages .failed {
  color: var(--red);
  border-color: rgba(255, 93, 93, 0.34);
  background: rgba(255, 93, 93, 0.08);
}

.timeline article > span {
  color: var(--lime);
}

.empty-state {
  color: var(--paper-muted);
  border-color: rgba(183, 255, 90, 0.26);
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.07), rgba(56, 216, 255, 0.06)),
    rgba(5, 8, 14, 0.5);
}

.empty-state strong {
  color: var(--ink);
}

.empty-state span {
  color: var(--paper-muted);
}

.primary-mini {
  color: #06110b;
  border-color: rgba(183, 255, 90, 0.38);
  background: linear-gradient(135deg, var(--lime), var(--mint));
}

.ghost-mini,
.ghost-link {
  color: var(--paper-muted);
}

.login-box {
  color: var(--ink);
  border-color: rgba(204, 232, 255, 0.16);
  background: var(--studio-panel-strong);
}

.login-box .brand {
  color: var(--ink);
}

.icon-btn {
  color: var(--paper-muted);
  border-color: rgba(204, 232, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.visual-result::after,
#trendResult::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 128px;
  height: 28px;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(90deg, var(--lime) 0 10px, transparent 10px 16px),
    linear-gradient(90deg, var(--cyan) 0 18px, transparent 18px 24px);
  background-size: 24px 100%, 36px 50%;
  background-position: 0 0, 0 100%;
  background-repeat: repeat-x;
}

@media (max-width: 760px) {
  .visual-result::after,
  #trendResult::after {
    display: none;
  }
}

/* Remove redundant workflow affordances and replace the hero with a video-native preview. */
.topbar {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px) auto;
}

.hero-video-stage {
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(190px, 1fr) 46px;
  gap: 12px;
  min-height: 242px;
  padding: 14px;
  border: 1px solid rgba(204, 232, 255, 0.15);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(5, 8, 14, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
}

.stage-screen {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(204, 232, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(183, 255, 90, 0.08) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(56, 216, 255, 0.08) 0 1px, transparent 1px),
    linear-gradient(135deg, rgba(8, 16, 26, 0.94), rgba(17, 42, 55, 0.88));
  background-size: 28px 28px, 28px 28px, auto;
}

.stage-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: saturate(1.08) contrast(1.04);
}

.stage-screen::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(183, 255, 90, 0.2);
  border-radius: var(--radius);
}

.stage-screen::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 22px;
  height: 7px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--lime) 0 22%, transparent 22% 28%, var(--cyan) 28% 58%, transparent 58% 64%, var(--coral) 64% 100%);
  opacity: 0.56;
}

.stage-art + .stage-caption {
  opacity: 0.68;
}

.stage-avatar {
  position: relative;
  z-index: 1;
  width: 138px;
  height: 138px;
  padding: 7px;
  border: 1px solid rgba(183, 255, 90, 0.34);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.18), rgba(56, 216, 255, 0.1)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.stage-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.stage-caption {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: grid;
  gap: 7px;
}

.stage-caption span {
  height: 8px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.28);
}

.stage-caption span:nth-child(1) {
  width: 76%;
}

.stage-caption span:nth-child(2) {
  width: 92%;
}

.stage-caption span:nth-child(3) {
  width: 54%;
  background: rgba(183, 255, 90, 0.46);
}

.stage-timeline {
  display: grid;
  grid-template-columns: 1.4fr 0.72fr 1fr 0.58fr;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(204, 232, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(5, 8, 14, 0.44);
}

.stage-timeline span {
  height: 100%;
  min-height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(183, 255, 90, 0.86), rgba(47, 243, 176, 0.56));
}

.stage-timeline span:nth-child(2) {
  min-height: 22px;
  background: linear-gradient(135deg, rgba(56, 216, 255, 0.82), rgba(107, 140, 255, 0.56));
}

.stage-timeline span:nth-child(3) {
  min-height: 30px;
  background: linear-gradient(135deg, rgba(255, 204, 102, 0.82), rgba(255, 120, 103, 0.52));
}

.stage-timeline span:nth-child(4) {
  min-height: 18px;
  background: rgba(248, 250, 252, 0.22);
}

.overview {
  margin-top: 14px;
}

.home-studio-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(180px, 0.75fr));
  gap: 12px;
  margin-top: 14px;
}

.studio-feature {
  min-height: 184px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(204, 232, 255, 0.14);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.034)),
    rgba(15, 21, 33, 0.82);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.studio-feature:not(.large) {
  cursor: pointer;
}

.studio-feature:not(.large):hover {
  transform: translateY(-2px);
  border-color: rgba(183, 255, 90, 0.36);
  background:
    linear-gradient(180deg, rgba(183, 255, 90, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(15, 21, 33, 0.88);
}

.studio-feature.large {
  min-height: 214px;
}

.studio-feature svg {
  width: 26px;
  height: 26px;
  color: var(--lime);
}

.studio-feature h2 {
  max-width: 680px;
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.studio-feature p,
.studio-feature span {
  margin: 0;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.65;
}

.studio-feature strong {
  color: var(--ink);
  font-size: 18px;
}

.studio-mini-timeline {
  display: grid;
  grid-template-columns: 1.4fr 0.82fr 1.05fr 0.58fr;
  gap: 8px;
  align-items: end;
  min-height: 56px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(204, 232, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(5, 8, 14, 0.44);
}

.studio-mini-timeline span {
  min-height: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--lime), var(--mint));
}

.studio-mini-timeline span:nth-child(2) {
  min-height: 32px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.studio-mini-timeline span:nth-child(3) {
  min-height: 24px;
  background: linear-gradient(135deg, var(--amber), var(--coral));
}

.studio-mini-timeline span:nth-child(4) {
  min-height: 40px;
  background: rgba(248, 250, 252, 0.22);
}

.image-empty-composer {
  display: grid;
  gap: 14px;
}

.cover-canvas {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(204, 232, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.12), transparent 34%),
    linear-gradient(225deg, rgba(56, 216, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(5, 8, 14, 0.56);
}

.cover-canvas::before {
  content: "";
  position: absolute;
  inset: 30px 34px;
  border: 1px solid rgba(183, 255, 90, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.cover-canvas::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(183, 255, 90, 0.32);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.26), rgba(56, 216, 255, 0.12));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.cover-canvas span {
  position: absolute;
  z-index: 1;
  left: 54px;
  height: 12px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.24);
}

.cover-canvas span:nth-child(1) {
  right: 54px;
  bottom: 76px;
}

.cover-canvas span:nth-child(2) {
  width: 48%;
  bottom: 52px;
  background: rgba(183, 255, 90, 0.4);
}

.cover-canvas span:nth-child(3) {
  width: 32%;
  right: 54px;
  left: auto;
  top: 46px;
  background: rgba(56, 216, 255, 0.36);
}

@media (max-width: 1220px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .hero-video-stage {
    min-height: 260px;
  }

  .home-studio-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-feature.large {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .home-studio-board {
    grid-template-columns: 1fr;
  }

  .cover-canvas {
    min-height: 260px;
  }
}

/* Home and production surfaces, v3. */
.topbar {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 520px) 190px;
  min-height: 332px;
  background:
    radial-gradient(circle at 76% 36%, rgba(56, 216, 255, 0.26), transparent 28%),
    linear-gradient(120deg, rgba(21, 29, 45, 0.95) 0 62%, rgba(14, 82, 101, 0.78) 62% 85%, rgba(183, 255, 90, 0.9) 85% 100%),
    var(--bg-2);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 14, 0.2));
}

.topbar h1 {
  max-width: 760px;
  font-size: clamp(48px, 4vw, 62px);
  line-height: 0.98;
}

.topbar h1 span {
  display: block;
}

.hero-video-stage {
  min-height: 272px;
}

.stage-art {
  opacity: 0.98;
  filter: saturate(1.06) contrast(1.08);
}

.panel-head.compact {
  margin-bottom: 14px;
  align-items: center;
}

.panel-head.compact h2 {
  margin-top: 6px;
  color: var(--ink);
  font-size: 22px;
}

.home-showcase {
  display: grid;
  grid-template-columns: minmax(360px, 1.18fr) repeat(3, minmax(220px, 0.74fr));
  gap: 12px;
  margin-top: 14px;
}

.showcase-card {
  position: relative;
  overflow: hidden;
  min-height: 248px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(204, 232, 255, 0.14);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.034)),
    rgba(15, 21, 33, 0.86);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  cursor: default;
}

.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--coral));
}

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

.showcase-card[data-workflow-jump] {
  cursor: pointer;
}

.showcase-video {
  min-height: 360px;
}

.showcase-video video {
  width: 100%;
  min-height: 240px;
  max-height: 310px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(204, 232, 255, 0.14);
  border-radius: var(--radius);
  background: #05070c;
}

.showcase-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.18;
}

.showcase-card p:not(.eyebrow),
.showcase-card span {
  margin: 0;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.65;
}

.showcase-card audio {
  width: 100%;
  min-height: 42px;
  border-radius: var(--radius);
}

.showcase-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 255, 90, 0.26);
  border-radius: 50%;
  color: #06110b;
  background: linear-gradient(135deg, var(--lime), var(--mint));
  box-shadow: 0 18px 42px rgba(47, 243, 176, 0.16);
}

.showcase-icon svg {
  width: 24px;
  height: 24px;
}

.showcase-cover {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(204, 232, 255, 0.14);
  border-radius: var(--radius);
  background: #05070c;
}

.showcase-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mini-metrics {
  display: grid;
  gap: 8px;
}

.mini-metrics span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(204, 232, 255, 0.13);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(5, 8, 14, 0.34);
  font-weight: 850;
}

.home-orchestrator {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 12px;
  margin-top: 14px;
}

.pipeline-card,
.delivery-card {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: 22px;
  border: 1px solid rgba(204, 232, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.034)),
    rgba(15, 21, 33, 0.84);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.pipeline-card::before,
.delivery-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--coral));
}

.pipeline-card > *,
.delivery-card > * {
  position: relative;
  z-index: 1;
}

.pipeline-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.pipeline-node {
  position: relative;
  min-height: 130px;
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(204, 232, 255, 0.13);
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    rgba(5, 8, 14, 0.38);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pipeline-node::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 4px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.14);
}

.pipeline-node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 52px;
  right: -12px;
  width: 14px;
  height: 1px;
  background: rgba(183, 255, 90, 0.34);
}

.pipeline-node svg {
  width: 24px;
  height: 24px;
  color: var(--lime);
}

.pipeline-node span {
  color: var(--paper-muted);
  font-size: 12px;
  font-weight: 850;
}

.pipeline-node strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.pipeline-node:hover,
.pipeline-node.active {
  transform: translateY(-2px);
  border-color: rgba(183, 255, 90, 0.42);
  background:
    linear-gradient(180deg, rgba(183, 255, 90, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(5, 8, 14, 0.5);
}

.delivery-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  cursor: pointer;
}

.delivery-phone {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(204, 232, 255, 0.18);
  border-radius: 12px;
  background: rgba(5, 8, 14, 0.72);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.delivery-phone img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}

.delivery-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.08), transparent 36%, rgba(5, 8, 14, 0.74)),
    linear-gradient(90deg, rgba(183, 255, 90, 0.18), transparent 36%);
}

.delivery-caption {
  position: absolute;
  z-index: 1;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  gap: 6px;
}

.delivery-caption span {
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: #06110b;
  background: linear-gradient(135deg, var(--lime), var(--mint));
  font-size: 11px;
  font-weight: 950;
}

.delivery-caption strong {
  color: var(--ink);
  font-size: 14px;
}

.delivery-copy h2 {
  margin: 6px 0 10px;
  color: var(--ink);
  font-size: 27px;
  line-height: 1.16;
}

.delivery-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.7;
}

.visual-result .panel-head {
  margin-bottom: 14px;
}

.image-empty-composer {
  gap: 12px;
}

.cover-canvas {
  min-height: 390px;
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.12), transparent 36%),
    linear-gradient(225deg, rgba(56, 216, 255, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032)),
    rgba(5, 8, 14, 0.64);
}

.cover-canvas::before {
  inset: 32px 42px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 40%, rgba(183, 255, 90, 0.13), transparent 22%);
  background-size: 36px 36px, 36px 36px, auto;
}

.cover-canvas::after {
  width: 150px;
  height: 150px;
}

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

.cover-brief span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(204, 232, 255, 0.14);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(5, 8, 14, 0.32);
  font-size: 13px;
  font-weight: 850;
}

.voice-console {
  min-height: 420px;
}

.voice-console::after {
  display: none;
}

.voice-monitor {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(204, 232, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.1), transparent 38%),
    linear-gradient(225deg, rgba(56, 216, 255, 0.14), transparent 50%),
    rgba(5, 8, 14, 0.38);
}

.voice-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 255, 90, 0.3);
  border-radius: 50%;
  color: #06110b;
  background: linear-gradient(135deg, var(--lime), var(--mint));
  box-shadow: 0 22px 48px rgba(47, 243, 176, 0.16);
}

.voice-avatar svg {
  width: 30px;
  height: 30px;
}

.voice-wave {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(204, 232, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(5, 8, 14, 0.34);
}

.voice-wave span {
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--lime));
  opacity: 0.78;
}

.voice-wave span:nth-child(1),
.voice-wave span:nth-child(6),
.voice-wave span:nth-child(11) {
  height: 34px;
}

.voice-wave span:nth-child(2),
.voice-wave span:nth-child(5),
.voice-wave span:nth-child(10) {
  height: 62px;
  background: linear-gradient(180deg, var(--amber), var(--cyan));
}

.voice-wave span:nth-child(3),
.voice-wave span:nth-child(8),
.voice-wave span:nth-child(12) {
  height: 48px;
}

.voice-wave span:nth-child(4),
.voice-wave span:nth-child(7),
.voice-wave span:nth-child(9) {
  height: 74px;
  background: linear-gradient(180deg, var(--lime), var(--mint));
}

.voice-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.voice-metrics span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(204, 232, 255, 0.12);
  border-radius: var(--radius);
  color: var(--paper-muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 850;
}

#trends.page-active {
  height: calc(100vh - 36px);
  overflow: hidden;
}

#trends.page-active > .panel,
#trends.page-active > #trendResult {
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(183, 255, 90, 0.42) rgba(255, 255, 255, 0.05);
}

#trends.page-active > .panel {
  position: sticky;
  top: 18px;
}

#trendResult {
  scroll-behavior: smooth;
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

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

  .showcase-video {
    grid-column: 1 / -1;
  }

  .home-orchestrator {
    grid-template-columns: 1fr;
  }

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

  .pipeline-node:not(:last-child)::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar h1 {
    font-size: 42px;
  }

  .home-showcase,
  .pipeline-map,
  .delivery-card,
  .cover-brief,
  .voice-monitor,
  .voice-metrics {
    grid-template-columns: 1fr;
  }

  .showcase-video {
    grid-column: auto;
  }

  #trends.page-active {
    height: auto;
    overflow: visible;
  }

  #trends.page-active > .panel,
  #trends.page-active > #trendResult {
    max-height: none;
    overflow: visible;
  }

  #trends.page-active > .panel {
    position: static;
  }

  .delivery-phone {
    max-width: 180px;
  }
}

/* Account entry lives in the sidebar; the hero no longer carries auth controls. */
.topbar {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
}

@media (max-width: 760px) {
  .profile-center {
    grid-column: 1 / -1;
  }

  .profile-button {
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    justify-items: start;
    min-height: 52px;
    padding: 8px 10px;
  }

  .profile-copy {
    justify-items: start;
  }

  .profile-copy strong,
  .profile-copy small {
    max-width: none;
  }

  .profile-menu {
    position: absolute;
    left: auto;
    right: 0;
    bottom: auto;
    top: calc(100% + 8px);
    width: min(240px, calc(100vw - 20px));
  }

  .readiness-meta {
    grid-template-columns: 1fr;
  }
}
