:root {
  color-scheme: light;
  --bg: #f3f1ec;
  --bg-deep: #e8e2da;
  --surface: rgba(255, 252, 246, 0.9);
  --surface-solid: #fffaf1;
  --surface-soft: #f7f1e8;
  --ink: #181512;
  --soft: #4d463f;
  --muted: #81766b;
  --line: rgba(35, 28, 22, 0.1);
  --line-strong: rgba(35, 28, 22, 0.18);
  --accent: #e84b35;
  --accent-dark: #bf3426;
  --teal: #0f8b7d;
  --teal-soft: rgba(15, 139, 125, 0.1);
  --gold: #b57920;
  --danger: #d43f32;
  --shadow: 0 24px 70px rgba(42, 31, 21, 0.14);
  --shadow-soft: 0 12px 34px rgba(42, 31, 21, 0.08);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(24, 21, 18, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(24, 21, 18, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 14% 7%, rgba(232, 75, 53, 0.16), transparent 28%),
    radial-gradient(circle at 83% 16%, rgba(15, 139, 125, 0.13), transparent 30%),
    linear-gradient(180deg, #fffaf1 0%, var(--bg) 52%, var(--bg-deep) 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h2 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 760;
}

h3 {
  font-size: 16px;
  font-weight: 760;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.app-shell {
  min-height: 100vh;
  padding: 26px;
}

.page,
.workspace,
.command-header {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}

.command-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px) saturate(1.2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 830;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(232, 75, 53, 0.12);
}

.command-header h1 {
  margin-top: 5px;
  font-size: 29px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0;
}

.header-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.account-entry {
  min-height: 38px;
  max-width: 280px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 11px 0 7px;
  background: var(--ink);
  color: #fffaf1;
  font-size: 13px;
  font-weight: 780;
}

.history-entry {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: transparent;
  color: var(--soft);
  font-size: 13px;
  font-weight: 680;
}

.history-entry:hover {
  border-color: var(--line-strong);
  background: var(--surface-solid);
  color: var(--ink);
}

.account-entry:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.account-entry span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-avatar {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
}

.header-metrics span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--soft);
  font-size: 13px;
  font-weight: 720;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
  gap: 18px;
}

.landing-panel {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.98), rgba(255, 250, 241, 0.78)),
    linear-gradient(90deg, rgba(232, 75, 53, 0.1), rgba(15, 139, 125, 0.08));
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.landing-panel::after {
  content: "SCRIPT";
  position: absolute;
  right: 24px;
  top: -28px;
  color: rgba(24, 21, 18, 0.035);
  font-size: clamp(86px, 13vw, 188px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.ip-landing-panel {
  max-width: 1040px;
}

.landing-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  max-width: 720px;
  margin-bottom: 28px;
}

.landing-copy h2 {
  font-size: clamp(30px, 4.7vw, 58px);
  line-height: 1.04;
  font-weight: 900;
}

.landing-copy p {
  max-width: 560px;
  color: var(--soft);
  font-size: 17px;
}

.hotspot-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hotspot-card {
  position: relative;
  overflow: hidden;
  min-height: 254px;
  display: grid;
  align-content: start;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 252, 246, 0.74);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.hotspot-card::before {
  content: "01";
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fffaf1;
  font-weight: 850;
}

.hotspot-card:nth-child(2)::before {
  content: "02";
  background: var(--teal);
}

.hotspot-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(24, 21, 18, 0.09);
  border-radius: 50%;
}

.hotspot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 75, 53, 0.42);
  background: rgba(255, 252, 246, 0.94);
  box-shadow: var(--shadow);
}

.hotspot-card:nth-child(2):hover {
  border-color: rgba(15, 139, 125, 0.42);
}

.hotspot-card span {
  width: fit-content;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(232, 75, 53, 0.18);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--accent);
  background: rgba(232, 75, 53, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.hotspot-card:nth-child(2) span {
  border-color: rgba(15, 139, 125, 0.2);
  color: var(--teal);
  background: var(--teal-soft);
}

.hotspot-card strong {
  font-size: 30px;
  line-height: 1.16;
  font-weight: 880;
}

.hotspot-card p {
  max-width: 390px;
  color: var(--soft);
  font-size: 16px;
}

.hotspot-card em {
  align-self: end;
  margin-top: 18px;
  color: var(--ink);
  font-style: normal;
  font-weight: 820;
}

.hotspot-card em::after {
  content: " ->";
  color: var(--accent);
}

.back-action {
  min-height: 34px;
  width: fit-content;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  margin-bottom: 14px;
  padding: 0 12px;
  background: rgba(255, 252, 246, 0.78);
  color: var(--soft);
  font-weight: 740;
}

.back-action:hover {
  border-color: rgba(232, 75, 53, 0.38);
  color: var(--accent);
}

.input-panel,
.result-panel,
.summary-panel,
.script-panel,
.topic-item,
.history-item,
.dna-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px) saturate(1.18);
}

.input-panel {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 18px;
}

.brand-row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fffaf1;
  border: 1px solid rgba(24, 21, 18, 0.18);
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(24, 21, 18, 0.14);
}

.business-form,
.form-section,
.ip-builder,
.dna-form {
  display: grid;
  gap: 14px;
}

.entry-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.entry-card,
.ip-choice,
.template-card {
  width: 100%;
  min-height: 76px;
  display: grid;
  gap: 7px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: rgba(255, 252, 246, 0.64);
  color: var(--ink);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.entry-card strong,
.ip-choice strong,
.template-card strong {
  font-size: 15px;
  line-height: 1.3;
}

.entry-card span,
.ip-choice span,
.template-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.entry-card:hover,
.ip-choice:hover,
.template-card:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 75, 53, 0.32);
  box-shadow: var(--shadow-soft);
}

.entry-card.is-active,
.ip-choice.is-active {
  border-color: rgba(232, 75, 53, 0.48);
  background: rgba(232, 75, 53, 0.08);
  box-shadow: inset 3px 0 0 var(--accent);
}

.ip-choice-grid,
.template-list {
  display: grid;
  gap: 10px;
}

.compact-section {
  gap: 10px;
}

.section-title {
  color: var(--soft);
  font-size: 13px;
  font-weight: 780;
}

.section-help,
.field-caption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.field-caption {
  margin-top: 4px;
  color: var(--soft);
  font-weight: 760;
}

.radio-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  color: var(--soft);
  font-weight: 640;
  line-height: 1.45;
}

.radio-row input {
  width: 16px;
  height: 16px;
  padding: 0;
  box-shadow: none;
  accent-color: var(--accent);
}

.active-dna-note,
.dna-inline,
.writing-reassurance,
.next-action {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(15, 139, 125, 0.2);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--teal-soft);
  color: var(--teal);
  line-height: 1.45;
}

.active-dna-note strong,
.next-action strong {
  font-size: 13px;
}

.active-dna-note span,
.next-action span {
  color: #276b62;
  font-size: 12px;
}

.writing-reassurance {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--teal);
  text-align: left;
}

.form-section {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 246, 0.56);
}

label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(24, 21, 18, 0.03);
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #a2978d;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(232, 75, 53, 0.68);
  box-shadow: 0 0 0 4px rgba(232, 75, 53, 0.12);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  min-height: 42px;
  padding: 0 15px;
  font-weight: 780;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.primary-action {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fffaf1;
  box-shadow: 0 10px 22px rgba(24, 21, 18, 0.18);
}

.primary-action:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(232, 75, 53, 0.26);
}

.primary-action:disabled,
.ghost-action:disabled {
  opacity: 0.62;
  cursor: wait;
}

.ghost-action {
  border: 1px solid var(--line-strong);
  background: rgba(255, 252, 246, 0.76);
  color: var(--ink);
}

.ghost-action:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 75, 53, 0.42);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.result-panel {
  min-height: calc(100vh - 134px);
  padding: 18px;
}

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

.topbar h2 {
  margin-top: 4px;
}

#status-text {
  display: grid;
  gap: 4px;
  max-width: 720px;
}

#status-text strong {
  color: var(--soft);
  font-size: 14px;
}

#status-text span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.source-pill,
.topic-type,
.script-purpose {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(15, 139, 125, 0.2);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  background: rgba(255, 252, 246, 0.56);
}

.step {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 760;
}

.step + .step {
  border-left: 1px solid var(--line);
}

.step.is-active {
  background: rgba(255, 250, 241, 0.92);
  color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.view {
  display: none;
}

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

.summary-panel {
  padding: 18px;
  margin-bottom: 14px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.summary-cell {
  min-width: 0;
  background: rgba(255, 252, 246, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.summary-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.summary-cell strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.theme-list span,
.dna-chip-list span {
  border: 1px solid rgba(232, 75, 53, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--accent);
  background: rgba(232, 75, 53, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.audience-review-header p {
  color: var(--soft);
  line-height: 1.7;
  margin-top: 8px;
}

.audience-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.audience-insight-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 246, 0.72);
  padding: 12px;
}

.audience-insight-card h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
}

.audience-insight-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
  line-height: 1.55;
}

.audience-supplement {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 760;
}

.audience-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.audience-analysis-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 139, 125, 0.16);
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
}

.audience-analysis-note strong {
  color: var(--teal);
}

.dna-inline {
  margin-top: 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.empty-state {
  padding: 44px;
  text-align: center;
  border-style: dashed;
  background: rgba(255, 252, 246, 0.5);
}

.empty-state p {
  max-width: 560px;
  margin: 8px auto 0;
}

.topic-list,
.history-list {
  display: grid;
  gap: 12px;
}

.topic-item,
.history-item {
  padding: 16px;
}

.topic-item {
  background: rgba(255, 252, 246, 0.82);
}

.topic-header,
.script-header,
.history-toolbar,
.script-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.topic-title {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}

.topic-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 0;
}

.topic-meta div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-soft);
}

.topic-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  margin-bottom: 5px;
}

.topic-meta dd {
  margin: 0;
  line-height: 1.55;
  color: var(--soft);
  overflow-wrap: anywhere;
}

.script-panel,
.dna-panel {
  padding: 18px;
}

.dna-result-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.dna-result-header h3 {
  margin-top: 5px;
  font-size: 22px;
}

.dna-use-actions {
  min-width: 240px;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.dna-access-state {
  color: var(--teal);
  font-size: 12px;
  font-weight: 780;
  text-align: right;
}

.paywall-dialog {
  width: min(520px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(24, 21, 18, 0.3);
}

.account-dialog {
  width: min(480px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(24, 21, 18, 0.3);
}

.account-dialog::backdrop {
  background: rgba(24, 21, 18, 0.58);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 22px;
}

.account-heading {
  display: grid;
  gap: 9px;
  padding-right: 30px;
}

.account-heading h2 {
  font-size: 25px;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 22px 0 16px;
  border-bottom: 1px solid var(--line);
}

.account-tab {
  min-height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 780;
}

.account-tab.is-active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.account-form,
.account-profile-view,
.account-benefits {
  display: grid;
  gap: 14px;
}

.agreement-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
  font-weight: 620;
  line-height: 1.55;
}

.agreement-row input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--accent);
}

.account-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
}

.account-benefits {
  margin: 8px 0;
}

.account-benefits div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.account-benefits span {
  color: var(--muted);
  font-size: 13px;
}

.paywall-dialog::backdrop {
  background: rgba(24, 21, 18, 0.58);
  backdrop-filter: blur(5px);
}

.paywall-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 22px;
}

.paywall-heading {
  display: grid;
  gap: 9px;
  padding-right: 28px;
}

.paywall-heading h2 {
  font-size: 25px;
  line-height: 1.25;
}

.paywall-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 16px;
  padding: 15px;
  border: 1px solid rgba(232, 75, 53, 0.2);
  border-radius: var(--radius);
  background: rgba(232, 75, 53, 0.08);
}

.paywall-price span,
.paywall-price em {
  color: var(--soft);
  font-size: 13px;
  font-style: normal;
  font-weight: 740;
}

.paywall-price strong {
  color: var(--accent);
  font-size: 38px;
  line-height: 1;
}

.paywall-price small {
  font-size: 18px;
}

.paywall-benefits {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 14px;
}

.manual-payment-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(15, 139, 125, 0.22);
  border-radius: var(--radius);
  background: var(--teal-soft);
}

.manual-payment-panel img {
  width: min(220px, 100%);
  margin: 0 auto;
  border-radius: var(--radius);
}

.manual-payment-panel div {
  display: grid;
  gap: 6px;
  color: var(--soft);
  font-size: 13px;
}

.manual-payment-note {
  color: var(--teal);
  font-weight: 800;
}

.manual-payment-contact-panel {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(176, 105, 31, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 246, 232, 0.86);
}

.manual-payment-contact-panel p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}

.manual-contact-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.manual-contact-row code {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.manual-contact-link {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.paywall-checkout {
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.paywall-checkout.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.paywall-help {
  margin: 10px 0 14px;
  text-align: center;
  font-size: 12px;
}

.activation-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

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

.dna-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

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

.dna-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  background: rgba(255, 252, 246, 0.68);
}

.dna-grid h4 {
  margin: 0 0 12px;
  font-size: 16px;
}

.dna-grid dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.dna-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  margin-bottom: 4px;
}

.dna-grid dd {
  margin: 0;
  color: var(--soft);
  line-height: 1.6;
}

.script-header {
  align-items: flex-start;
  margin-bottom: 16px;
}

.workflow-heading {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.workflow-heading h3 {
  font-size: 22px;
}

.workflow-stage {
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
}

.topic-lock,
.enhancement-plan,
.audit-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.topic-lock > span,
.workflow-option > span,
.opening-option > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.topic-lock > strong {
  font-size: 17px;
  line-height: 1.45;
}

.topic-lock ul {
  display: grid;
  gap: 5px;
  margin: 2px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.workflow-options,
.opening-options {
  display: grid;
  gap: 10px;
}

.workflow-option,
.opening-option {
  width: 100%;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  background: var(--surface-solid);
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.workflow-option:hover,
.opening-option:hover {
  border-color: rgba(217, 74, 56, 0.45);
  background: rgba(217, 74, 56, 0.04);
  transform: translateY(-1px);
}

.workflow-option strong,
.opening-option strong {
  font-size: 16px;
  line-height: 1.5;
}

.workflow-option em,
.workflow-option small,
.opening-option small {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

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

.materials-form textarea {
  min-height: 92px;
  line-height: 1.6;
}

.placeholder-permission {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(181, 121, 32, 0.22);
  border-radius: var(--radius);
  background: rgba(181, 121, 32, 0.08);
}

.placeholder-permission input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  padding: 0;
  accent-color: var(--accent);
}

.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.enhancement-plan {
  background: var(--teal-soft);
  color: var(--teal);
}

.audit-summary {
  margin-top: 16px;
}

.audit-summary.is-passed {
  border-color: rgba(52, 119, 110, 0.25);
  background: var(--teal-soft);
  color: var(--teal);
}

.audit-summary.needs-review {
  border-color: rgba(181, 121, 32, 0.25);
  background: rgba(181, 121, 32, 0.08);
  color: #704711;
}

.type-match-summary,
.supplements-used,
.next-action {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(52, 119, 110, 0.2);
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal);
  line-height: 1.55;
}

.supplements-used {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}

.next-action {
  border-color: rgba(181, 121, 32, 0.24);
  background: rgba(181, 121, 32, 0.09);
  color: #704711;
}

.next-action span {
  color: #704711;
}

.script-title-wrap {
  display: grid;
  gap: 8px;
}

.script-title {
  font-size: 22px;
  line-height: 1.35;
}

.script-hook {
  padding: 14px;
  border: 1px solid rgba(181, 121, 32, 0.2);
  border-radius: var(--radius);
  background: rgba(181, 121, 32, 0.1);
  color: #704711;
  line-height: 1.7;
  margin-bottom: 14px;
}

.section-list {
  display: grid;
  gap: 12px;
}

.script-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 252, 246, 0.78);
}

.section-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-weight: 780;
}

.section-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 12px;
  padding: 12px;
}

.voiceover {
  min-height: 118px;
  line-height: 1.7;
}

.visual-note {
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.visual-note strong {
  color: var(--soft);
}

.script-tools {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 16px;
}

.note-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(181, 121, 32, 0.2);
  border-radius: var(--radius);
  background: rgba(181, 121, 32, 0.1);
  color: #704711;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.history-item p {
  color: var(--ink);
  font-weight: 760;
}

.history-item span {
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(255, 250, 241, 0.94);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

@media (max-width: 980px) {
  .app-shell {
    padding: 14px;
  }

  .command-header {
    align-items: stretch;
    flex-direction: column;
  }

  .header-metrics {
    justify-content: flex-start;
  }

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

  .input-panel {
    position: static;
  }

  .result-panel {
    min-height: auto;
  }

  .summary-grid,
  .audience-insight-grid,
  .topic-meta,
  .section-body,
  .dna-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .landing-panel {
    min-height: auto;
    padding: 20px;
  }

  .landing-copy h2,
  .hotspot-card strong {
    font-size: 25px;
  }

  .hotspot-card {
    min-height: 220px;
  }

  .steps,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .step + .step {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .topbar,
  .topic-header,
  .script-header,
  .history-item,
  .dna-result-header {
    align-items: stretch;
    flex-direction: column;
  }

  .dna-use-actions {
    justify-items: stretch;
  }

  .dna-access-state {
    text-align: left;
  }

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

  .command-header h1 {
    font-size: 24px;
  }

  .empty-state {
    padding: 28px 18px;
  }
}

/* Minimal premium preview */
:root {
  --bg: #f5f5f3;
  --bg-deep: #efefec;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --surface-soft: #f7f7f5;
  --ink: #171717;
  --soft: #464646;
  --muted: #777773;
  --line: rgba(20, 20, 20, 0.09);
  --line-strong: rgba(20, 20, 20, 0.16);
  --accent: #d94a38;
  --accent-dark: #bd392b;
  --teal: #34776e;
  --teal-soft: rgba(52, 119, 110, 0.08);
  --shadow: 0 18px 48px rgba(20, 20, 20, 0.08);
  --shadow-soft: 0 4px 16px rgba(20, 20, 20, 0.04);
}

body {
  background: linear-gradient(180deg, #fafaf9 0%, var(--bg) 100%);
}

.app-shell {
  padding-top: 18px;
}

.command-header {
  margin-bottom: 10px;
  padding: 13px 4px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.eyebrow {
  color: var(--muted);
  font-weight: 720;
}

.eyebrow::before {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.command-header h1 {
  font-size: 24px;
  font-weight: 760;
}

.header-metrics span {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 650;
}

.landing-panel {
  min-height: 470px;
  padding: 54px 4px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-panel::after {
  display: none;
}

.landing-copy {
  gap: 12px;
  max-width: 680px;
  margin-bottom: 42px;
}

.landing-copy h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.08;
  font-weight: 740;
}

.landing-copy p {
  color: var(--muted);
  font-size: 16px;
}

.hotspot-grid {
  gap: 16px;
}

.hotspot-card {
  min-height: 240px;
  gap: 13px;
  padding: 26px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.hotspot-card::before {
  content: "01";
  place-items: start;
  width: auto;
  height: auto;
  margin-bottom: 24px;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.hotspot-card:nth-child(2)::before {
  content: "02";
  background: transparent;
  color: var(--muted);
}

.hotspot-card::after {
  display: none;
}

.hotspot-card:hover,
.hotspot-card:nth-child(2):hover {
  transform: translateY(-2px);
  border-color: rgba(20, 20, 20, 0.18);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hotspot-card span {
  display: none;
}

.hotspot-card strong {
  font-size: 27px;
  font-weight: 740;
}

.hotspot-card p {
  color: var(--muted);
  font-size: 15px;
}

.hotspot-card em {
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.hotspot-card em::after {
  color: var(--accent);
}

.registration-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
}

.registration-invite-copy {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.registration-invite-copy strong,
.history-registration-note strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 730;
}

.registration-invite-copy p,
.history-registration-note p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
}

.registration-kicker {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.registration-action {
  min-height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 2px;
  background: transparent;
  color: var(--ink);
  font-weight: 730;
}

.registration-action:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.history-registration-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.history-page {
  display: grid;
  gap: 18px;
  padding-top: 28px;
}

.history-page-heading {
  display: grid;
  gap: 8px;
  max-width: 720px;
  padding-bottom: 10px;
}

.history-page-heading .back-action {
  margin-bottom: 18px;
}

.history-page-heading h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 740;
}

.history-page-heading p {
  font-size: 16px;
}

.video-type-guide,
.history-library {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.video-type-guide {
  padding: 22px;
}

.history-library {
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-heading h3 {
  font-size: 19px;
}

.section-heading p {
  max-width: 560px;
  font-size: 13px;
  text-align: right;
}

.section-index {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

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

.video-type-grid article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.video-type-grid strong {
  font-size: 15px;
}

.video-type-grid p {
  font-size: 13px;
  line-height: 1.55;
}

.video-type-marker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(217, 74, 56, 0.16);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(217, 74, 56, 0.06);
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
}

.history-library-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-library-actions > span {
  color: var(--muted);
  font-size: 13px;
}

.history-account-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.history-account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.history-account-heading span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.history-account-heading h3 {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.history-account-heading > strong {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.history-type-groups {
  display: grid;
  gap: 0;
}

.history-type-group + .history-type-group {
  border-top: 1px solid var(--line);
}

.history-type-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 6px;
}

.history-type-heading > strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.history-group-items {
  display: grid;
}

.history-group-items .history-item {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.history-group-items .history-item + .history-item {
  border-top: 1px solid var(--line);
}

.input-panel,
.result-panel,
.summary-panel,
.script-panel,
.topic-item,
.history-item,
.dna-panel {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.brand-mark {
  background: var(--ink);
  box-shadow: none;
}

.primary-action {
  box-shadow: none;
}

.primary-action:hover {
  box-shadow: 0 8px 22px rgba(217, 74, 56, 0.2);
}

@media (max-width: 680px) {
  .app-shell {
    padding-top: 8px;
  }

  .command-header {
    padding: 12px 4px 16px;
  }

  .landing-panel {
    padding: 34px 0 0;
  }

  .landing-copy {
    margin-bottom: 26px;
  }

  .landing-copy h2 {
    font-size: 31px;
  }

  .hotspot-card {
    min-height: 210px;
    padding: 22px;
  }

  .registration-invite,
  .history-registration-note {
    align-items: stretch;
    flex-direction: column;
  }

  .registration-invite-copy {
    display: grid;
    gap: 8px;
  }

  .registration-action {
    width: fit-content;
  }

  .header-actions {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .history-page {
    padding-top: 18px;
  }

  .video-type-guide,
  .history-library {
    padding: 16px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .section-heading p {
    text-align: left;
  }

  .video-type-grid {
    grid-template-columns: 1fr;
  }

  .history-library-actions {
    justify-content: space-between;
  }

  .history-item {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Apple-style visual preview */
:root {
  --bg: #f5f5f7;
  --bg-deep: #ececf1;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-solid: #ffffff;
  --surface-soft: rgba(245, 245, 247, 0.82);
  --ink: #1d1d1f;
  --soft: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --accent: #0071e3;
  --accent-dark: #005bbd;
  --teal: #248a3d;
  --teal-soft: rgba(52, 199, 89, 0.1);
  --gold: #bf7a00;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.11);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.055);
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 50% -18%, rgba(0, 113, 227, 0.16), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(175, 82, 222, 0.1), transparent 30%),
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

.app-shell {
  padding: 18px 24px 28px;
}

.command-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(28px) saturate(1.4);
}

.command-header h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 720;
}

.command-header .eyebrow {
  display: none;
}

.header-actions {
  gap: 8px;
}

.account-entry,
.back-action,
.history-entry,
.primary-action,
.ghost-action,
.registration-action {
  border-radius: 999px;
}

.account-entry {
  min-height: 38px;
  border: 0;
  padding: 0 14px 0 8px;
  background: rgba(29, 29, 31, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.account-entry:hover {
  transform: translateY(-1px);
  background: #000;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.account-avatar {
  background: rgba(255, 255, 255, 0.18);
}

.page.is-visible,
.view.is-visible {
  animation: appleFadeIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes appleFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-panel {
  min-height: 500px;
  padding: 62px 6px 6px;
  background: transparent;
}

.landing-copy h2,
.history-page-heading h2 {
  font-weight: 760;
  letter-spacing: 0;
}

.landing-copy p,
.history-page-heading p {
  color: var(--muted);
}

.hotspot-grid {
  gap: 18px;
}

.hotspot-card {
  min-height: 260px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at 12% 0%, rgba(0, 113, 227, 0.13), transparent 34%);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(28px) saturate(1.35);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.hotspot-card:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at 12% 0%, rgba(175, 82, 222, 0.12), transparent 34%);
}

.hotspot-card::before {
  color: rgba(29, 29, 31, 0.42);
  font-size: 13px;
}

.hotspot-card:hover,
.hotspot-card:nth-child(2):hover {
  transform: translateY(-6px) scale(1.006);
  border-color: rgba(255, 255, 255, 0.95);
  background-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.12);
}

.hotspot-card strong {
  font-size: 30px;
  font-weight: 720;
}

.hotspot-card em {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent);
  font-size: 14px;
}

.hotspot-card em::after {
  color: currentColor;
}

.registration-invite,
.video-type-guide,
.history-library,
.input-panel,
.result-panel,
.summary-panel,
.script-panel,
.topic-item,
.history-item,
.dna-panel,
.account-dialog,
.paywall-dialog {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(28px) saturate(1.35);
}

.registration-invite {
  padding: 20px 22px;
}

.registration-kicker,
.section-index,
.video-type-marker {
  color: var(--accent);
}

.registration-action {
  min-height: 38px;
  border: 0;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  transition: transform 180ms ease, background 180ms ease;
}

.registration-action:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
  color: #fff;
}

.input-panel,
.result-panel {
  border-radius: 26px;
}

.brand-mark {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #2c2c2e, #111113);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.form-section,
.summary-cell,
.topic-meta div,
.dna-grid article,
.video-type-grid article,
.history-account-group,
.history-account-heading,
.script-section,
.manual-payment-panel,
.manual-payment-contact-panel,
.account-benefits div {
  border-color: var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

input,
textarea,
select {
  min-height: 44px;
  border-color: rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(0, 113, 227, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}

.primary-action {
  border: 0;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 113, 227, 0.22);
}

.primary-action:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
  box-shadow: 0 16px 34px rgba(0, 113, 227, 0.28);
}

.ghost-action,
.back-action,
.history-entry {
  background: rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ghost-action:hover,
.back-action:hover,
.history-entry:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 227, 0.26);
  background: #fff;
  color: var(--accent);
}

.steps {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
}

.step {
  min-height: 38px;
  border-radius: 999px;
}

.step + .step {
  border-left: 0;
}

.step.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.empty-state {
  border-style: solid;
  background: rgba(255, 255, 255, 0.5);
}

.source-pill,
.topic-type,
.script-purpose,
.video-type-marker,
.dna-chip-list span,
.theme-list span {
  border-color: rgba(0, 113, 227, 0.14);
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
}

.active-dna-note,
.dna-inline {
  border-color: rgba(52, 199, 89, 0.18);
  background: rgba(52, 199, 89, 0.1);
  color: var(--teal);
}

.script-hook,
.note-list {
  border-color: rgba(255, 149, 0, 0.18);
  background: rgba(255, 149, 0, 0.1);
}

.dialog-close,
.paywall-close {
  border: 0;
  background: rgba(118, 118, 128, 0.12);
  transition: transform 180ms ease, background 180ms ease;
}

.dialog-close:hover,
.paywall-close:hover {
  transform: scale(1.04);
  background: rgba(118, 118, 128, 0.18);
}

.account-dialog::backdrop,
.paywall-dialog::backdrop {
  background: rgba(245, 245, 247, 0.54);
  backdrop-filter: blur(18px) saturate(1.25);
}

.toast {
  border-color: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.35);
  animation: toastFloat 260ms ease;
}

@keyframes toastFloat {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-shell {
  min-height: 100vh;
  padding: 26px;
  color: var(--ink);
}

.admin-hero,
.admin-card {
  max-width: 1320px;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px) saturate(1.18);
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
}

.admin-hero h1 {
  margin-top: 6px;
  font-size: 32px;
}

.admin-home-link {
  text-decoration: none;
}

.admin-card {
  padding: 16px;
}

.admin-auth-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.admin-status {
  max-width: 1320px;
  margin: 0 auto 16px;
  color: var(--muted);
}

.admin-status.is-error {
  color: var(--danger);
}

.authorization-result {
  display: grid;
  gap: 8px;
  border-color: rgba(52, 199, 89, 0.22);
  background: rgba(52, 199, 89, 0.08);
}

.authorization-result code {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--teal);
  font-weight: 850;
}

.admin-summary-grid {
  max-width: 1320px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto 16px;
}

.admin-summary-grid .admin-card {
  margin: 0;
}

.admin-summary-grid span {
  color: var(--muted);
  font-size: 13px;
}

.admin-summary-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.admin-section-heading h2 {
  margin-bottom: 5px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 9px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.admin-table th {
  color: var(--muted);
  font-weight: 800;
}

.admin-table code {
  font-size: 12px;
}

.admin-table-action {
  white-space: nowrap;
}

.admin-status-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(118, 118, 128, 0.12);
  color: var(--muted);
  font-weight: 760;
}

.admin-status-pill.is-paid,
.admin-status-pill.is-issued {
  background: rgba(255, 149, 0, 0.12);
  color: #a45f00;
}

.admin-status-pill.is-active {
  background: rgba(52, 199, 89, 0.12);
  color: var(--teal);
}

@media (max-width: 680px) {
  .app-shell {
    padding: 10px 14px 18px;
  }

  .command-header {
    position: static;
    border-radius: 24px;
    padding: 14px;
  }

  .landing-panel {
    padding-top: 34px;
  }

  .hotspot-card {
    border-radius: 24px;
  }

  .steps {
    border-radius: 20px;
  }

  .step + .step {
    border-top: 0;
  }

  .admin-shell {
    padding: 12px;
  }

  .admin-hero,
  .admin-section-heading {
    flex-direction: column;
  }

  .admin-auth-card,
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }
}
