:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --panel: #ffffff;
  --ink: #080808;
  --muted: #777b84;
  --soft: #f1f1ef;
  --line: #deded8;
  --danger: #b42318;
  --ok: #027a48;
  --shadow: 0 18px 50px rgb(0 0 0 / 9%);
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

input,
textarea,
select {
  width: 100%;
  color: var(--ink);
}

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

label {
  display: grid;
  gap: 8px;
  color: #2e3035;
  font-weight: 700;
}

output {
  display: block;
  min-height: 22px;
  color: var(--danger);
}

.hidden {
  display: none !important;
}

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

.landing-page,
.product-app {
  min-height: 100vh;
}

.product-app {
  --history-width: 268px;
  --history-collapsed-width: 58px;
  --workspace-max: 1480px;
  min-height: 100vh;
  padding-bottom: 0;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 72%), rgb(247 247 245 / 0%) 36%),
    #f7f6f1;
}

.landing-page {
  min-height: 100vh;
  padding-bottom: 92px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 21%, rgb(255 255 255 / 92%) 0 14%, rgb(255 255 255 / 0%) 38%),
    linear-gradient(180deg, rgb(255 255 255 / 72%), rgb(247 247 245 / 0%) 36%),
    #f7f6f1;
}

.landing-page .site-nav {
  min-height: 86px;
}

.site-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(16px, 3vw, 34px);
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 86px;
  background: rgb(247 246 241 / 82%);
  backdrop-filter: blur(14px);
}

.history-sidebar {
  position: fixed;
  right: 0;
  top: 78px;
  bottom: 0;
  z-index: 24;
  width: var(--history-width);
  padding: 12px;
  border-left: 1px solid #e3e3dd;
  background: rgb(247 247 245 / 94%);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: width 180ms ease, transform 180ms ease;
}

.history-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin-bottom: 10px;
}

.history-sidebar-head strong {
  font-size: 16px;
  white-space: nowrap;
}

.history-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #111;
  font-size: 20px;
  font-weight: 900;
}

.history-toggle:hover {
  background: #ededeb;
}

.history-new {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  background: transparent;
  color: #111;
  font-weight: 900;
}

.history-new:hover {
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 6%);
}

.history-new-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.history-new-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #111;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1;
}

.history-new small {
  color: #9a9ca3;
  font-weight: 700;
}

.history-section-title {
  margin: 28px 6px 12px;
  color: #9a9ca3;
  font-size: 13px;
  font-weight: 800;
}

.history-list {
  height: calc(100vh - 230px);
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 4px;
  padding-right: 2px;
}

.history-item {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  background: transparent;
  color: #111;
}

.history-item:hover,
.history-item.active {
  background: #fff;
  box-shadow: 0 6px 18px rgb(0 0 0 / 5%);
}

.history-open {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 4px 8px 10px;
  background: transparent;
  color: #111;
  text-align: left;
}

.history-delete {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  margin-right: 4px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #a0a3aa;
  font-size: 20px;
  line-height: 1;
  opacity: 0;
}

.history-item:hover .history-delete,
.history-item.active .history-delete,
.history-delete:focus-visible {
  opacity: 1;
}

.history-delete:hover {
  background: #fff0f0;
  color: #b42318;
}

.history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5c7cd;
  justify-self: center;
}

.history-dot.completed {
  background: #28b46a;
}

.history-dot.failed {
  background: #d14335;
}

.history-dot.rewriting,
.history-dot.bgm,
.history-dot.voice,
.history-dot.avatar_video,
.history-dot.subtitles,
.history-dot.mixing,
.history-dot.queued {
  background: #111;
}

.history-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.history-copy strong,
.history-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-copy strong {
  font-size: 14px;
  font-weight: 800;
}

.history-copy small,
.history-empty {
  color: #999ca3;
  font-size: 12px;
  font-weight: 700;
}

.history-empty {
  margin: 6px;
  line-height: 1.7;
}

.product-app.history-collapsed .history-sidebar {
  transform: translateX(calc(100% + 8px));
  width: var(--history-width);
  padding: 12px;
  pointer-events: none;
}

.product-app.history-collapsed .history-sidebar-head {
  justify-content: center;
}

.product-app.history-collapsed .history-sidebar-head strong,
.product-app.history-collapsed .history-new,
.product-app.history-collapsed .history-section-title,
.product-app.history-collapsed .history-list {
  display: initial;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 64px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.site-actions,
.app-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.product-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.4vw, 54px);
  margin-left: auto;
}

.nav-link {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #101214;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: 0;
}

.nav-link:hover,
.plain-action:hover {
  color: #31567f;
}

.workspace-tab {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.workspace-tab.active {
  background: #eee8f8;
  color: #6a24bd;
  box-shadow: inset 0 0 0 1px rgb(106 36 189 / 8%);
}

.workspace-tab.active:hover {
  color: #6a24bd;
}

.app-actions {
  gap: 12px;
  flex-wrap: nowrap;
}

.plain-action,
.black-pill,
.light-pill,
.round-tool {
  border: 0;
  font-weight: 800;
}

.plain-action {
  padding: 8px 5px;
  background: transparent;
  color: #111;
}

.black-pill {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 20px;
  background: #000;
  color: #fff;
  box-shadow: 0 8px 20px rgb(0 0 0 / 10%);
}

.black-pill:hover {
  background: #1d1d1d;
}

.light-pill {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  background: #f3f3f1;
  color: #111;
  border: 1px solid #e7e7e3;
}

.light-pill:hover {
  background: #e9e9e5;
}

.full-width {
  width: 100%;
}

.landing-hero,
.app-hero {
  width: min(960px, calc(100vw - 32px));
  margin: 58px auto 0;
  text-align: center;
}

.app-hero {
  width: min(var(--workspace-max), calc(100vw - 40px));
  margin-top: 36px;
  padding-top: 22px;
}

.landing-hero h1,
.app-hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.12;
  letter-spacing: 0;
}

.app-hero h1 {
  font-size: 48px;
  font-weight: 1000;
}

.landing-hero p,
.app-hero p {
  margin: 16px auto 0;
  max-width: 680px;
  color: #3d414a;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.45;
}

.app-hero p {
  margin-top: 14px;
  font-size: 22px;
  color: #2f3338;
}

.workspace-shell {
  width: min(var(--workspace-max), calc(100vw - 48px));
  height: calc(100dvh - 86px);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.workspace-shell .app-hero {
  width: 100%;
  margin: 0;
  padding: 8px 6px 0;
  text-align: left;
}

.workspace-shell .app-hero h1 {
  font-size: clamp(30px, 3vw, 44px);
}

.workspace-shell .app-hero p {
  margin-left: 0;
  font-size: 17px;
}

.workspace-shell.is-dual .app-hero {
  display: none;
}

.workspace-board {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 18px 20px;
  overflow: hidden;
}

.workspace-board.is-dual {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.workspace-input-card,
.workspace-result-card {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #deded8;
  border-radius: 28px;
  background: rgb(255 255 255 / 76%);
  box-shadow: 0 18px 48px rgb(30 34 38 / 8%);
  padding: clamp(18px, 2.3vw, 30px);
  scroll-behavior: smooth;
}

.workspace-input-card {
  position: relative;
}

.workspace-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.workspace-card-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #1b2634;
  font-size: 14px;
  font-weight: 1000;
}

.workspace-card-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #315f86;
  box-shadow: 0 0 0 4px rgb(49 95 134 / 10%);
}

[data-workspace-id="workspace-2"] .workspace-card-dot {
  background: #b79621;
  box-shadow: 0 0 0 4px rgb(183 150 33 / 12%);
}

.workspace-input-card.is-active,
.workspace-result-card.is-active {
  border-color: #315f86;
  box-shadow:
    0 18px 48px rgb(30 34 38 / 8%),
    0 0 0 2px rgb(49 95 134 / 10%);
}

.workspace-close-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f1f1ec;
  color: #5e6269;
  cursor: pointer;
  font-size: 19px;
}

.workspace-action-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.workspace-action-row .send-button {
  width: 100%;
  margin-left: 0;
}

.workspace-action-row.is-secondary {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-result-card .result-stream,
.workspace-result-card .workflow-guide {
  width: 100%;
  margin: 0;
}

.landing-page .landing-hero {
  width: min(1024px, calc(100vw - 40px));
  margin-top: 36px;
  padding-top: 22px;
}

.landing-page .landing-hero h1 {
  font-size: 48px;
  font-weight: 1000;
}

.landing-page .landing-hero p {
  max-width: 700px;
  margin-top: 14px;
  color: #2f3338;
  font-size: 22px;
}

.hero-prompt-card,
.hero-composer {
  width: min(900px, 100%);
  margin: 36px auto 0;
  padding: 20px;
  background: rgb(255 255 255 / 90%);
  border: 1px solid #d8d8d2;
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: left;
}

.hero-prompt-card {
  cursor: text;
}

.hero-prompt-card:focus-visible {
  outline: 3px solid rgb(0 0 0 / 18%);
  outline-offset: 4px;
}

.hero-composer {
  margin-top: 26px;
  position: relative;
}

.product-app .floating-composer {
  position: static;
  align-self: stretch;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 24px;
  overflow-y: auto;
  border-radius: 28px;
  border: 1px solid rgb(214 214 209 / 86%);
  background: rgb(255 255 255 / 84%);
  box-shadow:
    0 24px 60px rgb(30 34 38 / 12%),
    inset 0 1px 0 rgb(255 255 255 / 80%);
  backdrop-filter: blur(18px);
  transform: none;
}

.landing-page .hero-prompt-card {
  width: min(1024px, calc(100vw - 40px));
  margin-top: 54px;
  padding: 28px 38px 30px;
  overflow: visible;
  border-radius: 28px;
  border: 1px solid rgb(214 214 209 / 86%);
  background: rgb(255 255 255 / 84%);
  box-shadow:
    0 24px 60px rgb(30 34 38 / 12%),
    inset 0 1px 0 rgb(255 255 255 / 80%);
  backdrop-filter: blur(18px);
}

.landing-page .hero-prompt-card textarea {
  height: 118px;
  min-height: 118px;
  max-height: 170px;
  display: block;
  border: 1px solid #deded8;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 74%), rgb(246 245 240 / 78%));
  box-shadow:
    inset 0 2px 10px rgb(0 0 0 / 5%),
    inset 0 1px 0 rgb(255 255 255 / 70%);
  padding: 24px;
  line-height: 1.55;
  resize: none;
}

.landing-page .hero-prompt-card textarea::placeholder {
  color: #838894;
  font-weight: 700;
}

.product-app .composer-context {
  display: none;
}

.composer-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #111;
}

.composer-context strong {
  font-size: 14px;
  font-weight: 1000;
}

.composer-context span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.product-app .floating-composer .prompt-input textarea {
  height: 118px;
  min-height: 118px;
  max-height: 170px;
  line-height: 1.55;
  resize: none;
  overflow: auto;
}

.product-app .floating-composer .prompt-input {
  min-height: 142px;
  display: block;
  border: 1px solid #deded8;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 74%), rgb(246 245 240 / 78%));
  box-shadow:
    inset 0 2px 10px rgb(0 0 0 / 5%),
    inset 0 1px 0 rgb(255 255 255 / 70%);
  padding: 24px 24px 18px;
}

.hero-prompt-card textarea,
.prompt-input textarea {
  width: 100%;
  min-height: 96px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font-size: 18px;
  padding: 0;
}

.hero-prompt-card textarea::placeholder,
.prompt-input textarea::placeholder {
  color: #aaa;
  font-weight: 700;
}

.hero-prompt-footer,
.composer-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.composer-footer {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.clarification-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid #f2bd69;
  border-radius: 16px;
  background: #fff7e8;
  color: #7a4300;
}

.clarification-card.hidden {
  display: none;
}

.clarification-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.clarification-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.clarification-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.clarification-actions button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 900;
}

.clarification-secondary {
  border: 1px solid #dfaa57;
  background: #fff;
  color: #764100;
}

.clarification-primary {
  border: 1px solid #9a5800;
  background: #9a5800;
  color: #fff;
}

.clarification-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.limited-input-review-warning {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #f2bd69;
  border-radius: 12px;
  background: #fff7e8;
  color: #7a4300;
  font-weight: 800;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .clarification-card {
    align-items: stretch;
    flex-direction: column;
  }

  .clarification-actions {
    flex-wrap: wrap;
  }
}

.hero-prompt-footer {
  margin-top: 14px;
}

.landing-page .hero-prompt-footer {
  gap: 10px;
  margin-top: 20px;
}

.landing-page .prompt-chip {
  min-height: 40px;
  border-color: #deded8;
  background: rgb(255 255 255 / 82%);
  font-size: 13px;
}

.landing-page .site-actions .black-pill,
.landing-page .start-now,
.auth-modal .black-pill {
  background:
    linear-gradient(100deg, #163959 0%, #1d4a74 44%, #e5c84e 100%);
  box-shadow:
    0 18px 34px rgb(20 54 83 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 22%);
}

.landing-page .site-actions .black-pill:hover,
.landing-page .start-now:hover,
.auth-modal .black-pill:hover {
  background:
    linear-gradient(100deg, #0f2d48 0%, #1b456d 42%, #f0d45e 100%);
}

.landing-page .start-now {
  min-width: 192px;
  min-height: 48px;
  padding: 0 28px;
  background:
    linear-gradient(100deg, #163959 0%, #1d4a74 44%, #e5c84e 100%);
  font-size: 16px;
}

.round-tool {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: #111;
  border: 1px solid #e6e6e2;
  font-size: 24px;
  line-height: 1;
}

.round-tool:hover {
  background: #f5f5f2;
}

.persona-tool-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e6e6e2;
  border-radius: 999px;
  background: #fff;
  color: #111;
  padding: 0 13px 0 5px;
  font-size: 13px;
  font-weight: 900;
}

.persona-tool-button:hover {
  background: #f5f5f2;
}

.round-tool-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: inset 0 0 0 1px #e6e6e2;
  font-size: 22px;
  line-height: 1;
}

.no-persona-callout {
  margin-top: 18px;
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px dashed #e7b4aa;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgb(255 247 245 / 86%), rgb(255 255 255 / 72%));
  padding: 22px 18px;
  text-align: center;
}

.no-persona-callout strong {
  color: #d13a2f;
  font-size: 20px;
}

.no-persona-callout p {
  order: 3;
  margin: 0;
  color: #8b4b45;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.no-persona-callout .black-pill {
  min-width: 128px;
  background:
    linear-gradient(100deg, #163959 0%, #1d4a74 44%, #e5c84e 100%);
}

.prompt-chip,
.composer-chip,
.composer-custom-button,
.balance-badge,
.price-badge,
.user-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid #e5e5e0;
  background: #fbfbf9;
  color: #191b20;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.product-app .balance-badge {
  background: rgb(255 255 255 / 72%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 75%);
}

.product-app .user-badge {
  width: 48px;
  height: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  justify-content: center;
  border-radius: 50%;
  border-color: #d8d8d3;
  background:
    linear-gradient(145deg, #ffffff, #dde3e7);
  color: #172b43;
  padding: 0;
  box-shadow: 0 10px 24px rgb(0 0 0 / 12%);
  font-size: 18px;
}

.composer-custom-button {
  border: 1px solid #dcdcd6;
  background: #fff;
  cursor: pointer;
  flex: 1 1 124px;
  min-width: 118px;
  max-width: 150px;
}

.composer-custom-button:hover {
  background: #f6f6f3;
}

.composer-custom-button span {
  flex: 0 0 auto;
}

.composer-custom-button small {
  min-width: 0;
  overflow: hidden;
  color: #6f737b;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.composer-chip select {
  width: auto;
  min-width: 64px;
  max-width: 112px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  padding: 5px 2px;
  font-weight: 800;
}

.required-terms-picker {
  position: relative;
}

.required-terms-button {
  cursor: pointer;
  white-space: nowrap;
}

.required-terms-button.has-selection {
  border-color: #111;
  background: #111;
  color: #fff;
}

.required-terms-menu {
  position: absolute;
  z-index: 40;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(330px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid #deded8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 38px rgb(17 24 39 / 16%);
}

.required-terms-menu.hidden {
  display: none;
}

.required-terms-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.required-terms-menu-head div {
  display: flex;
  gap: 5px;
}

.required-terms-menu-head button {
  padding: 3px 7px;
  border: 0;
  border-radius: 8px;
  background: #f2f2ee;
  color: #3f3f3b;
  cursor: pointer;
  font-size: 12px;
}

.required-terms-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.required-term-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #e5e5df;
  border-radius: 10px;
  background: #fafaf8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.required-term-option:has(input:checked) {
  border-color: #111;
  background: #f1f1ed;
}

.required-term-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #111;
}

.required-terms-menu > p {
  margin: 10px 0 0;
  color: #777771;
  font-size: 11px;
  line-height: 1.45;
}

.product-app .floating-composer .round-tool {
  width: 42px;
  height: 42px;
  background: #fff;
  box-shadow: 0 8px 20px rgb(0 0 0 / 7%);
  font-size: 22px;
}

.product-app .floating-composer .composer-chip,
.product-app .floating-composer .composer-custom-button,
.product-app .floating-composer .price-badge {
  min-height: 40px;
  padding: 0 12px;
  border-color: #deded8;
  background: rgb(255 255 255 / 82%);
  font-size: 13px;
}

.product-app .floating-composer .composer-custom-button small {
  max-width: 150px;
}

.product-app .floating-composer .composer-chip select {
  min-width: 58px;
  max-width: 112px;
}

.product-app .floating-composer .light-pill,
.product-app .floating-composer .send-button {
  min-height: 48px;
  padding: 0 28px;
  font-size: 16px;
}

.product-app .floating-composer .send-button {
  border: 0;
  min-width: 192px;
  background:
    linear-gradient(100deg, #163959 0%, #1d4a74 44%, #e5c84e 100%);
  box-shadow:
    0 18px 34px rgb(20 54 83 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 22%);
}

.product-app .floating-composer .send-button:hover {
  background:
    linear-gradient(100deg, #0f2d48 0%, #1b456d 42%, #f0d45e 100%);
}

.source-input {
  display: block;
  margin-top: 12px;
}

.source-input input,
.auth-panel input,
.persona-form input,
.persona-form select,
.admin-user-item input {
  border: 1px solid #deded8;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.send-button,
.start-now {
  margin-left: auto;
}

.send-button {
  flex: 0 0 auto;
  margin-left: 0;
  padding: 0 22px;
}

[data-role="form-message"] {
  display: none;
  flex: 1 0 100%;
  min-height: 0;
  margin-left: 0;
  font-size: 13px;
}

[data-role="form-message"]:not(:empty) {
  display: block;
}

.prompt-samples {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.prompt-samples button {
  border: 0;
  background: transparent;
  color: #999;
  font-weight: 800;
}

.prompt-samples button:hover {
  color: #111;
}

.template-strip {
  width: min(1220px, calc(100vw - 32px));
  margin: 86px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.landing-workflow {
  width: min(1024px, calc(100vw - 40px));
  margin: 108px auto 0;
}

.template-card,
.mini-template {
  min-height: 136px;
  border-radius: 8px;
  padding: 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

.template-card::before,
.mini-template::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 5%), rgb(0 0 0 / 62%));
}

.template-card > *,
.mini-template > * {
  position: relative;
  z-index: 1;
}

.template-card span {
  align-self: flex-start;
  margin-bottom: auto;
  border-radius: 999px;
  background: #2df69d;
  color: #001b10;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.template-card h3,
.mini-template h3 {
  margin: 0;
  font-size: 18px;
}

.template-card p,
.mini-template p {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 78%);
  font-weight: 700;
}

.card-market {
  background:
    linear-gradient(135deg, rgb(31 42 68 / 35%), rgb(7 100 118 / 45%)),
    url("https://images.unsplash.com/photo-1642790106117-e829e14a795f?auto=format&fit=crop&w=900&q=70");
}

.card-report {
  background:
    linear-gradient(135deg, rgb(101 34 15 / 32%), rgb(9 9 9 / 30%)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=900&q=70");
}

.card-risk {
  background:
    linear-gradient(135deg, rgb(85 24 24 / 38%), rgb(8 8 8 / 20%)),
    url("https://images.unsplash.com/photo-1553729459-efe14ef6055d?auto=format&fit=crop&w=900&q=70");
}

.card-avatar {
  background:
    linear-gradient(135deg, rgb(26 57 92 / 35%), rgb(14 14 14 / 35%)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=70");
}

.auth-section {
  width: min(980px, calc(100vw - 32px));
  margin: 80px auto 90px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-panel,
.drawer-panel,
.onboarding-card {
  background: #fff;
  border: 1px solid #e0e0da;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgb(0 0 0 / 6%);
}

.auth-panel {
  padding: 22px;
}

.auth-modal-card {
  width: min(920px, calc(100vw - 32px));
}

.auth-modal-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-modal .auth-panel {
  box-shadow: none;
}

.soft-panel {
  background: #fbfbf9;
}

.auth-panel h2,
.drawer-head h2,
.onboarding-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.auth-panel label {
  margin-bottom: 14px;
}

.workflow-guide,
.result-stream {
  width: 100%;
  margin: 0;
}

.result-stream {
  margin-top: 0;
}

.result-empty-state {
  min-height: calc(100dvh - 196px);
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
}

.result-empty-state > span {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #31567f;
  color: #fff;
  font-size: 24px;
  font-weight: 1000;
  box-shadow: 0 14px 30px rgb(49 86 127 / 24%);
}

.result-empty-state h2,
.result-empty-state p {
  margin: 0;
}

.result-empty-state h2 {
  font-size: 26px;
}

.result-empty-state p {
  color: var(--muted);
  line-height: 1.7;
}

.result-empty-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.result-empty-steps div {
  display: grid;
  gap: 6px;
  border: 1px solid #e2e2dc;
  border-radius: 16px;
  background: #fff;
  padding: 14px 10px;
}

.result-empty-steps strong {
  color: #31567f;
  font-size: 18px;
}

.result-empty-steps small {
  color: #5f646d;
  font-weight: 800;
}

.guide-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 68px;
  max-width: 100%;
  margin: 0 auto;
}

.guide-step {
  min-height: 122px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 16px;
  align-items: center;
  text-align: left;
  border: 1px solid #d9d9d2;
  border-radius: 24px;
  background: rgb(255 255 255 / 86%);
  color: var(--ink);
  padding: 24px 28px;
  box-shadow:
    0 16px 36px rgb(0 0 0 / 8%),
    inset 0 1px 0 rgb(255 255 255 / 80%);
  position: relative;
}

.guide-step:hover {
  background: #fff;
  transform: translateY(-1px);
}

.guide-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -48px;
  top: 50%;
  transform: translateY(-50%);
  color: #41607f;
  font-size: 38px;
  font-weight: 400;
}

.guide-step span {
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #33567f;
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%);
  font-size: 34px;
  font-weight: 900;
}

.guide-step.done span {
  background: #33567f;
  color: #fff;
}

.guide-step strong {
  font-size: 26px;
  font-weight: 1000;
}

.guide-step small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-stream {
  padding: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-results {
  text-align: left;
}

.empty-results h2 {
  margin: 0;
  font-size: 24px;
}

.empty-results > p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.compact-empty {
  padding: 34px 20px;
  text-align: center;
  color: #666a72;
}

.compact-empty h2 {
  font-size: 22px;
}

.compact-empty > p {
  max-width: 440px;
  margin: 10px auto 0;
}

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

.mini-template {
  min-height: 132px;
}

.result-message {
  display: flex;
  gap: 12px;
  width: 100%;
}

.result-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-weight: 900;
}

.result-bubble {
  width: min(660px, 100%);
  min-width: 0;
  border: 1px solid #e1e1dc;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 6%);
}

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

.message-head h3 {
  margin: 0;
  font-size: 18px;
}

.message-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-width: 72px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f0f0ec;
  color: #111;
  font-size: 12px;
  font-weight: 900;
}

.status.completed,
.status.ready {
  background: #ecfdf3;
  color: var(--ok);
}

.status.needs_voice {
  background: #eef4ff;
  color: #1d4ed8;
}

.status.cloning,
.status.syncing_avatar {
  background: #fff7ed;
  color: #9a3412;
}

.status.failed {
  background: #fef3f2;
  color: var(--danger);
}

.billing-line,
.result-note {
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.6;
}

.result-note {
  margin: 10px 0 0;
}

.result-video {
  width: 100%;
  max-height: min(46vh, 460px);
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #111;
  border-radius: 8px;
  display: block;
}

.progress-box {
  display: grid;
  gap: 12px;
}

.progress-box p {
  margin: 0;
  color: #34363b;
}

.step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f0f0ec;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.step.done {
  background: #ecfdf3;
  color: var(--ok);
}

.step.active {
  background: #111;
  color: #fff;
}

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

.button-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #000;
  color: #fff;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 900;
}

.advanced-files {
  margin-top: 14px;
  border-top: 1px solid #e5e5df;
  padding-top: 12px;
}

.advanced-files summary {
  cursor: pointer;
  color: #111;
  font-weight: 900;
}

.model-meta {
  display: grid;
  gap: 4px;
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  background: #f7f7f4;
}

.model-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.script-review-message .result-bubble {
  border-color: #c8ead8;
}

.review-note {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #ccebd9;
  border-radius: 14px;
  background: #f1fff7;
  color: #164b2f;
}

.review-note strong,
.review-note p {
  margin: 0;
}

.review-note ul {
  margin: 0;
  padding-left: 18px;
  color: #3f6d55;
  font-size: 13px;
}

.review-script-field {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.review-script-field span {
  font-weight: 900;
}

.review-script-field textarea {
  min-height: 260px;
  border: 1px solid #d8d8d2;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  color: #111;
  font-weight: 700;
}

.review-script-field textarea[readonly] {
  background: #fafaf8;
  color: #343740;
}

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

.downloads a {
  border-radius: 999px;
  background: #f2f2ef;
  color: #111;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 900;
}

.script-preview {
  white-space: pre-wrap;
  background: #fafaf8;
  border: 1px solid #e2e2dd;
  border-radius: 8px;
  padding: 12px;
  max-height: 240px;
  overflow: auto;
}

.confirmed-script {
  margin: 0 0 14px;
  border: 1px solid #dfe5eb;
  border-radius: 14px;
  background: #f8fafc;
  padding: 11px 13px;
}

.confirmed-script summary {
  cursor: pointer;
  color: #31567f;
  font-weight: 1000;
}

.confirmed-script .script-preview {
  margin-top: 10px;
  background: #fff;
}

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

.create-persona-page {
  width: min(1040px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.create-persona-page-shell {
  min-height: calc(100dvh - 122px);
  border: 1px solid #e4e4de;
  border-radius: 24px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 22px 60px rgb(30 34 38 / 10%);
  overflow: hidden;
}

.create-persona-header {
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #eeeeea;
  padding: 18px 24px;
}

.create-persona-header p,
.create-persona-header h1,
.create-persona-header small {
  margin: 0;
}

.create-persona-header p {
  color: #6a24bd;
  font-size: 13px;
  font-weight: 1000;
}

.create-persona-header h1 {
  margin-top: 2px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 1000;
}

.create-persona-header small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.create-page-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #60646d;
  font-size: 26px;
  line-height: 1;
}

.create-page-close:hover {
  background: #f1f1ef;
}

.create-persona-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 8px;
  margin: 22px 24px 0;
  border-radius: 999px;
  background: #f1ebfb;
  padding: 5px;
}

.create-persona-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5a5662;
  font-weight: 1000;
}

.create-persona-tabs button.active {
  background: #fff;
  color: #6a24bd;
  box-shadow: 0 8px 18px rgb(106 36 189 / 10%);
}

.create-persona-form {
  padding: 20px 24px 28px;
  gap: 18px;
}

.material-name-field input {
  min-height: 48px;
  border: 1px solid #d7d7d1;
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
}

.audio-persona-select-field {
  display: grid;
  gap: 8px;
  border: 1px solid #ece8f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
  padding: 16px 18px;
}

.audio-persona-select-field span {
  color: #111827;
  font-size: 16px;
  font-weight: 1000;
}

.audio-persona-select-field select {
  min-height: 46px;
  border: 1px solid #d7d7d1;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  color: #111827;
  font-weight: 800;
}

.audio-persona-select-field small {
  color: #7b7f88;
  font-weight: 700;
}

.create-mode-panel {
  display: grid;
  gap: 16px;
}

.upload-requirements {
  border-radius: 10px;
  background: #f6f7f9;
  padding: 18px;
}

.upload-requirements strong {
  display: block;
  margin-bottom: 10px;
  color: #111;
  font-weight: 1000;
}

.upload-requirements dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 0;
}

.upload-requirements div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.upload-requirements dt {
  color: #111;
  font-weight: 900;
}

.upload-requirements dd {
  margin: 0;
  color: #5f646d;
  font-weight: 700;
}

.upload-dropzone {
  min-height: 190px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px dashed #cacace;
  border-radius: 10px;
  background: #fff;
  padding: 28px;
  text-align: center;
  cursor: pointer;
}

.upload-dropzone:hover {
  border-color: #6a24bd;
  background: #fcfaff;
}

.upload-dropzone input {
  width: auto;
  max-width: min(360px, 100%);
}

.upload-icon {
  display: grid;
  place-items: center;
  color: #6a24bd;
  font-size: 48px;
  line-height: 1;
}

.upload-dropzone strong {
  color: #111;
  font-size: 17px;
}

.upload-dropzone small {
  color: #7b7f88;
  font-weight: 700;
}

.example-materials h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 17px;
}

.example-materials h3 span {
  color: #ff5b00;
  font-size: 13px;
  font-weight: 900;
}

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

.example-card {
  min-height: 150px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 28%, #f5d9c4 0 17%, transparent 18%),
    linear-gradient(180deg, #d8d2f3 0%, #b9b1df 100%);
}

.example-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 30%;
  height: 54%;
  border-radius: 36% 36% 0 0;
  background: #202025;
  transform: translateX(-50%);
}

.example-card-standing::after {
  height: 68%;
  width: 26%;
}

.example-card-seated {
  background:
    radial-gradient(circle at 55% 29%, #f5d9c4 0 15%, transparent 16%),
    linear-gradient(90deg, #4b3c35 0 20%, #c1b9e6 20% 80%, #35445f 80% 100%);
}

.example-card span {
  position: absolute;
  left: 10px;
  bottom: 9px;
  z-index: 1;
  border-radius: 999px;
  background: rgb(0 0 0 / 62%);
  color: #fff;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.audio-recording-notice {
  border: 4px solid #15a8ee;
  background: #fff;
  color: #ff2d2d;
  padding: 18px 20px;
  line-height: 1.7;
  font-size: 16px;
  font-weight: 700;
}

.audio-recording-notice p {
  margin: 0;
}

.audio-recording-notice p + p {
  margin-top: 14px;
}

.create-persona-actions {
  grid-template-columns: minmax(160px, 220px);
}

.side-drawer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
}

.side-drawer.open {
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 24%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.side-drawer.open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(470px, 100vw);
  height: 100%;
  border-radius: 0;
  padding: 22px;
  overflow: auto;
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.side-drawer.open .drawer-panel {
  transform: translateX(0);
}

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

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

.drawer-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.input-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 400;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #deded8;
  border-radius: 8px;
  overflow: hidden;
}

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

.segmented label {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  background: #fafaf8;
  border-right: 1px solid #deded8;
  cursor: pointer;
}

.segmented label:last-child {
  border-right: 0;
}

.segmented input,
.checkline input {
  width: auto;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 9px;
}

.checkline input {
  width: 18px;
  height: 18px;
}

.drawer-actions,
.admin-user-list {
  display: grid;
  gap: 10px;
}

.drawer-actions {
  grid-template-columns: auto auto;
  justify-content: start;
}

.asset-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #f1f1ef;
  padding: 5px;
}

.asset-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #555961;
  font-weight: 900;
}

.asset-tabs button.active {
  background: #fff;
  color: #111;
  box-shadow: 0 6px 18px rgb(0 0 0 / 6%);
}

.asset-pane {
  display: grid;
  gap: 16px;
}

.asset-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eeeeea;
}

.asset-section-head h3 {
  margin: 0;
  font-size: 17px;
}

.asset-section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.persona-list {
  display: grid;
  gap: 10px;
}

.asset-empty-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  border: 1px dashed #d7d7d1;
  border-radius: 14px;
  background: #fbfbf9;
  padding: 18px;
}

.asset-empty-state strong {
  color: #111;
  font-size: 16px;
}

.asset-empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.persona-item,
.admin-user-item {
  border: 1px solid #e1e1dc;
  border-radius: 8px;
  padding: 13px;
  background: #fbfbf9;
}

.persona-item-head,
.generated-video-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.persona-item h3,
.admin-user-item h3,
.generated-video-item h3 {
  margin: 0;
  font-size: 15px;
}

.persona-item p,
.admin-user-item p,
.generated-video-item p,
.asset-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.asset-note {
  display: block;
  font-weight: 800;
}

.persona-actions,
.generated-video-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.persona-use-button {
  margin-left: auto;
}

.danger-action {
  color: var(--danger);
}

.generated-video-item {
  border: 1px solid #e1e1dc;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: #fbfbf9;
}

.generated-video-item video {
  width: 132px;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  background: #111;
}

.generated-downloads {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.generated-downloads a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f2f2ef;
  color: #111;
  padding: 0 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.admin-user-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.recharge-controls {
  display: grid;
  grid-template-columns: 96px auto;
  gap: 8px;
  align-items: center;
}

.balance-badge {
  cursor: pointer;
}

.wallet-panel {
  width: min(540px, 100vw);
}

.wallet-content {
  display: grid;
  gap: 16px;
}

.wallet-summary {
  border-radius: 18px;
  padding: 22px;
  background: #050505;
  color: #fff;
  display: grid;
  gap: 8px;
}

.wallet-summary span,
.wallet-summary small {
  color: rgb(255 255 255 / 68%);
  font-weight: 800;
}

.wallet-summary strong {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}

.wallet-section {
  border: 1px solid #e1e1dc;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.wallet-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-section-head h3 {
  margin: 0;
  font-size: 17px;
}

.wallet-section-head span,
.wallet-tip {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wallet-tip {
  margin: 0;
  line-height: 1.7;
}

.admin-dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 22px;
  background: rgb(247 246 241 / 92%);
  backdrop-filter: blur(18px);
  overflow: auto;
}

.admin-dashboard-shell {
  min-height: calc(100vh - 44px);
  border: 1px solid #deded8;
  border-radius: 28px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 30px 80px rgb(0 0 0 / 14%);
  padding: 24px;
}

.admin-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #eeeeea;
  padding-bottom: 18px;
}

.admin-dashboard-head p,
.admin-dashboard-head h2 {
  margin: 0;
}

.admin-dashboard-head p {
  color: #31567f;
  font-size: 14px;
  font-weight: 900;
}

.admin-dashboard-head h2 {
  margin-top: 4px;
  color: #111;
  font-size: 30px;
}

.admin-dashboard-head small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

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

.admin-dashboard-actions select {
  min-height: 40px;
  border: 1px solid #deded8;
  border-radius: 999px;
  background: #fff;
  color: #111;
  padding: 0 14px;
  font-weight: 900;
}

.admin-dashboard-content {
  display: grid;
  gap: 18px;
  padding-top: 20px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.admin-metric-card,
.admin-dashboard-panel {
  border: 1px solid #e4e4de;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #faf9f5);
  box-shadow: 0 14px 34px rgb(0 0 0 / 6%);
}

.admin-metric-card {
  min-height: 96px;
  padding: 18px;
}

.admin-metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-metric-card strong {
  display: block;
  margin-top: 10px;
  color: #111;
  font-size: 28px;
  font-weight: 1000;
}

.admin-dashboard-note {
  margin: 0;
  border: 1px solid #f1d899;
  border-radius: 14px;
  background: #fff8e5;
  color: #8a5a00;
  padding: 12px 14px;
  font-weight: 800;
}

.admin-dashboard-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-dashboard-panel {
  padding: 18px;
}

.admin-dashboard-panel h3 {
  margin: 0 0 14px;
  color: #111;
  font-size: 20px;
}

.admin-collapsible-panel {
  padding: 0;
  overflow: hidden;
}

.admin-collapsible-panel > summary {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.admin-collapsible-panel > summary::-webkit-details-marker {
  display: none;
}

.admin-collapsible-panel > summary:hover {
  background: #f8f8f4;
}

.admin-collapsible-panel > summary h3 {
  margin: 0;
}

.admin-panel-summary-note,
.admin-list-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-panel-chevron {
  color: #31567f;
  font-size: 22px;
  font-weight: 1000;
  transition: transform 160ms ease;
}

.admin-collapsible-panel[open] .admin-panel-chevron {
  transform: rotate(180deg);
}

.admin-collapsible-body {
  max-height: min(58vh, 640px);
  overflow: auto;
  border-top: 1px solid #eeeeea;
  padding: 0 18px 18px;
}

.admin-list-note {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -2px 6px;
  padding: 12px 2px 8px;
  background: #fff;
}

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

.admin-mini-lists h4 {
  margin: 0 0 10px;
}

.admin-mini-lists ul,
.admin-failure-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-mini-lists li,
.admin-failure-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-radius: 12px;
  background: #f4f4ef;
  padding: 10px 12px;
  color: #111;
  font-weight: 800;
}

.admin-failure-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.admin-dashboard-table th,
.admin-dashboard-table td {
  border-bottom: 1px solid #eeeeea;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  color: #17191d;
  font-size: 13px;
}

.admin-dashboard-table th {
  color: #747982;
  font-weight: 1000;
}

.admin-dashboard-table td {
  font-weight: 750;
}

.admin-log-table td:last-child,
.admin-dashboard-table td:nth-child(9) {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-stage-table {
  min-width: 520px;
}

.admin-stage-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-width: 160px;
}

.admin-stage-cell > span:first-child {
  white-space: nowrap;
}

.admin-tag,
.admin-status,
.admin-severity {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  margin: 0 4px 4px 0;
  font-size: 12px;
  font-weight: 1000;
}

.admin-tag {
  background: #eaf1f8;
  color: #31567f;
}

.admin-tag.muted {
  background: #f1f1ed;
  color: #8b9098;
}

.admin-status.completed,
.admin-severity.info {
  background: #e9f8ef;
  color: #128143;
}

.admin-status.failed,
.admin-severity.error {
  background: #ffecec;
  color: #c42828;
}

.admin-severity.warning {
  background: #fff4d8;
  color: #a36a00;
}

.admin-status {
  background: #edf2fb;
  color: #31567f;
}

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

.recharge-package {
  min-height: 76px;
  border: 1px solid #deded8;
  border-radius: 12px;
  display: grid;
  place-items: center;
  gap: 4px;
  background: #fbfbf9;
  color: #111;
  cursor: pointer;
}

.recharge-package:hover {
  background: #f0f0ec;
  border-color: #cfcfc8;
}

.recharge-package:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.recharge-package strong {
  font-size: 22px;
}

.recharge-package span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

#walletPaymentArea:empty {
  display: none;
}

.payment-checkout {
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid #d8e0e8;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #f8fbff, #fff);
  text-align: center;
}

.payment-checkout p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.payment-checkout > button,
.payment-open-link {
  border: 1px solid #d6d6d0;
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.payment-methods {
  justify-items: stretch;
  text-align: left;
}

.payment-methods > div:first-child,
.payment-order-head > div {
  display: grid;
  gap: 4px;
}

.payment-methods span,
.payment-order-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payment-methods strong,
.payment-order-head strong {
  font-size: 18px;
}

.payment-method-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.payment-method {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.payment-method.wechat {
  background: #16a05d;
}

.payment-method.alipay {
  background: #1677ff;
}

.payment-cancel {
  border: 1px solid #deded8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.payment-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  text-align: left;
}

.payment-order-head small {
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff2cf;
  color: #936000;
  font-weight: 900;
}

.payment-qr {
  width: min(280px, 100%);
  aspect-ratio: 1;
  border: 10px solid #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 8%);
}

.payment-success {
  border-color: #b9e6cc;
  background: #effbf4;
  color: #08733d;
}

.payment-error {
  border-color: #f0c7c7;
  background: #fff7f7;
}

.ledger-list {
  display: grid;
  gap: 10px;
}

.ledger-item {
  border: 1px solid #eeeeea;
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  background: #fbfbf9;
}

.ledger-item h4 {
  margin: 0;
  font-size: 14px;
}

.ledger-item p,
.ledger-item time,
.ledger-amount small {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ledger-amount {
  display: grid;
  justify-items: end;
  align-content: center;
}

.ledger-amount strong {
  font-size: 15px;
}

.ledger-item.income .ledger-amount strong {
  color: var(--ok);
}

.ledger-item.expense .ledger-amount strong {
  color: #111;
}

.onboarding-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(0 0 0 / 30%);
}

.onboarding-card {
  width: min(520px, 100%);
  padding: 24px;
}

.onboarding-card ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: #34363b;
  line-height: 1.85;
}

.dialog-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 18px;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 42%);
}

.dialog-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgb(0 0 0 / 22%);
  padding: 28px 30px 30px;
}

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

.dialog-head h2 {
  margin: 0;
  font-size: 22px;
}

.dialog-head p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.dialog-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: #666a72;
  font-size: 28px;
  line-height: 1;
}

.dialog-close:hover {
  background: #f1f1ef;
  color: #111;
}

.auth-modal .dialog-backdrop {
  background: rgb(247 246 241 / 78%);
  backdrop-filter: blur(18px);
}

.auth-modal-card {
  width: min(980px, calc(100vw - 32px));
  border: 1px solid #deded8;
  border-radius: 28px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 30px 80px rgb(0 0 0 / 14%);
  padding: 30px;
}

.auth-modal .dialog-head {
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eeeeea;
}

.auth-modal .dialog-head h2 {
  font-size: 30px;
  font-weight: 1000;
}

.auth-modal .dialog-head p {
  margin-top: 8px;
  color: #31567f;
  font-weight: 800;
}

.auth-modal .auth-panel {
  border-radius: 22px;
  background: rgb(255 255 255 / 82%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 80%),
    0 12px 28px rgb(0 0 0 / 6%);
  padding: 24px;
}

.auth-modal .soft-panel {
  background: linear-gradient(180deg, rgb(255 255 255 / 78%), rgb(246 245 240 / 78%));
}

.auth-modal .auth-panel input {
  min-height: 48px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 86%), rgb(246 245 240 / 72%));
  box-shadow: inset 0 2px 8px rgb(0 0 0 / 4%);
}

.auth-modal .auth-panel .black-pill,
.auth-modal .auth-panel .light-pill {
  min-height: 48px;
  border-radius: 999px;
  font-size: 16px;
}

.auth-modal .auth-panel .light-pill {
  border: 1px solid #d8d8d2;
  background: #fff;
  color: #172b43;
  box-shadow:
    0 12px 26px rgb(30 34 38 / 8%),
    inset 0 1px 0 rgb(255 255 255 / 80%);
}

.auth-modal .auth-panel .light-pill:hover {
  background: #f7f7f3;
  color: #0f2d48;
}

.dialog-tip {
  border-radius: 10px;
  background: #f5f6fa;
  color: #2e3035;
  padding: 16px;
  line-height: 1.75;
}

.dialog-tip p {
  margin: 4px 0 0;
}

.dialog-copy {
  margin: 18px 0 0;
  color: #2e3035;
  line-height: 1.7;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 18px;
}

.customize-card {
  width: min(900px, calc(100vw - 32px));
  padding: 22px clamp(18px, 2vw, 26px) 24px;
}

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

.customize-grid label {
  display: grid;
  gap: 8px;
  color: #2e3035;
  font-weight: 900;
}

.customize-grid select {
  min-height: 44px;
  border: 1px solid #deded8;
  border-radius: 10px;
  padding: 0 14px;
  background: #f8f8f6;
}

.voice-tuning {
  grid-column: 1 / -1;
  border: 1px solid #deded8;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #f8f8f6;
}

.voice-tuning legend {
  padding: 0 6px;
  color: #2e3035;
  font-weight: 900;
}

.voice-tuning label {
  display: grid;
  gap: 8px;
}

.voice-tuning span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.voice-tuning output {
  min-height: 0;
  color: #111;
  font-size: 12px;
  font-weight: 900;
}

.voice-tuning input[type="range"] {
  accent-color: #111;
}

.subtitle-customizer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
  gap: 16px;
  align-items: stretch;
}

.hidden-select-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.subtitle-picker-panel {
  display: grid;
  gap: 8px;
}

.field-title {
  color: #2e3035;
  font-weight: 900;
}

.subtitle-style-list {
  max-height: min(30vh, 246px);
  overflow: auto;
  border: 1px solid #deded8;
  border-radius: 10px;
  background: #f8f8f6;
  padding: 6px;
}

.subtitle-style-option {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  background: transparent;
  color: #111;
  text-align: left;
}

.subtitle-style-option:hover,
.subtitle-style-option:focus-visible,
.subtitle-style-option.active {
  background: #fff;
  box-shadow: 0 6px 16px rgb(0 0 0 / 6%);
}

.subtitle-style-option strong {
  font-size: 14px;
}

.subtitle-style-option small {
  color: #777b84;
  font-size: 12px;
  line-height: 1.35;
}

.subtitle-preview {
  min-width: 0;
  min-height: 0;
  border: 1px solid #deded8;
  border-radius: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px;
  background: #f8f8f6;
  overflow: hidden;
}

.preview-screen {
  position: relative;
  width: min(100%, 176px);
  max-height: min(38vh, 334px);
  aspect-ratio: 9 / 16;
  justify-self: center;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 26%, #f2d9c5 0 14%, transparent 15%),
    linear-gradient(160deg, #20304a 0%, #10141d 50%, #050506 100%);
}

.preview-person {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 48%;
  height: 58%;
  border-radius: 34% 34% 14% 14%;
  background: linear-gradient(180deg, #222 0%, #0d0f14 100%);
  transform: translateX(-50%);
}

.preview-title {
  position: absolute;
  top: 9%;
  left: 50%;
  max-width: calc(100% - 18px);
  transform: translateX(-50%);
  color: #8e211b;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.05;
  text-align: center;
  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff,
    2px 4px 8px rgb(0 0 0 / 45%);
  white-space: normal;
}

.preview-caption {
  position: absolute;
  left: 50%;
  width: 88%;
  max-width: 88%;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
  font-family: "Microsoft YaHei", SimHei, sans-serif;
  font-weight: 1000;
  line-height: 1.12;
  text-align: center;
}

.preview-keyword {
  color: inherit;
}

.preview-main {
  bottom: 23%;
  color: #fff;
  font-size: 17px;
  text-shadow:
    -2px -2px 0 #151515,
    2px -2px 0 #151515,
    -2px 2px 0 #151515,
    2px 2px 0 #151515;
}

.preview-sub {
  bottom: 15%;
  color: #f2f2f2;
  font-size: 14px;
  text-shadow:
    -1px -1px 0 #111,
    1px -1px 0 #111,
    -1px 1px 0 #111,
    1px 1px 0 #111;
}

.subtitle-preview > p {
  margin: 0;
  color: #30333a;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.preview-finance-steady .preview-caption {
  animation: subtitleFade 1.7s ease-in-out infinite;
}

.preview-finance-steady .preview-keyword {
  color: #ffd84d;
}

.preview-finance-steady .preview-title {
  color: #1b4a8e;
}

.preview-red-gold-impact .preview-title {
  color: #8e211b;
}

.preview-red-gold-impact .preview-caption {
  color: #fff;
}

.preview-red-gold-impact .preview-main {
  font-size: 20px;
  text-shadow:
    -3px -3px 0 #050505,
    3px -3px 0 #050505,
    -3px 3px 0 #050505,
    3px 3px 0 #050505,
    0 6px 10px rgb(0 0 0 / 62%);
  animation: subtitlePop 1.2s ease-in-out infinite;
}

.preview-red-gold-impact .preview-keyword {
  color: #a82626;
}

.preview-red-gold-impact .preview-sub .preview-keyword {
  color: #ffcf30;
}

.preview-word-highlight .preview-main {
  animation: subtitlePop 1.2s ease-in-out infinite;
}

.preview-word-highlight .preview-caption {
  color: #e8edf7;
}

.preview-word-highlight .preview-title {
  color: #ffd400;
  text-shadow:
    -2px -2px 0 #111,
    2px -2px 0 #111,
    -2px 2px 0 #111,
    2px 2px 0 #111,
    2px 4px 8px rgb(0 0 0 / 45%);
}

.preview-word-highlight .preview-keyword {
  color: #ffd400;
}

.preview-big-pop .preview-caption {
  color: #ffe56e;
}

.preview-big-pop .preview-title {
  color: #ff7b2c;
}

.preview-big-pop .preview-main {
  bottom: 36%;
  font-size: 22px;
  animation: subtitlePop 1s ease-in-out infinite;
}

.preview-big-pop .preview-sub {
  display: none;
}

.preview-big-pop .preview-keyword {
  color: #ff7b2c;
}

.preview-boxed-panel .preview-caption {
  padding: 5px 12px;
  border-radius: 8px;
  background: rgb(0 0 0 / 66%);
  text-shadow: none;
  color: #fff;
}

.preview-boxed-panel .preview-keyword {
  color: #00e5ff;
}

.preview-boxed-panel .preview-title {
  color: #00e5ff;
  text-shadow:
    -2px -2px 0 #111,
    2px -2px 0 #111,
    -2px 2px 0 #111,
    2px 2px 0 #111,
    2px 4px 8px rgb(0 0 0 / 45%);
}

.preview-news-lower-third .preview-caption {
  left: 50%;
  right: auto;
  max-width: 88%;
  transform: translateX(-50%);
  color: #eaf4ff;
  text-align: center;
  text-shadow:
    -2px -2px 0 #184082,
    2px -2px 0 #184082,
    -2px 2px 0 #184082,
    2px 2px 0 #184082;
}

.preview-news-lower-third .preview-keyword {
  color: #ffdc4d;
}

.preview-news-lower-third .preview-title {
  color: #184082;
}

.preview-yellow-black-label .preview-caption {
  width: calc(100% - 18px);
  max-width: calc(100% - 18px);
  color: #fff;
  font-size: 15px;
  line-height: 1.12;
  white-space: normal;
  overflow-wrap: anywhere;
  text-shadow: -2px -2px 0 #111, 2px -2px 0 #111, -2px 2px 0 #111, 2px 2px 0 #111;
}

.preview-yellow-black-label .preview-keyword,
.preview-yellow-black-label .preview-title {
  color: #ffd400;
}

.preview-blue-white-tech .preview-caption {
  color: #f4faff;
  text-shadow: -2px -2px 0 #1767a8, 2px -2px 0 #1767a8, -2px 2px 0 #1767a8, 2px 2px 0 #1767a8;
}

.preview-blue-white-tech .preview-keyword,
.preview-blue-white-tech .preview-title {
  color: #66ccff;
}

.preview-green-gold-data .preview-caption {
  color: #f4fff4;
  text-shadow: -2px -2px 0 #165b34, 2px -2px 0 #165b34, -2px 2px 0 #165b34, 2px 2px 0 #165b34;
}

.preview-green-gold-data .preview-keyword,
.preview-green-gold-data .preview-title {
  color: #ffd729;
}

.preview-orange-red-risk .preview-caption {
  color: #fff5e8;
  text-shadow: -2px -2px 0 #8a3a1c, 2px -2px 0 #8a3a1c, -2px 2px 0 #8a3a1c, 2px 2px 0 #8a3a1c;
  animation: subtitlePop 1.2s ease-in-out infinite;
}

.preview-orange-red-risk .preview-keyword,
.preview-orange-red-risk .preview-title {
  color: #ff5737;
}

.preview-navy-business-card .preview-caption {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgb(23 59 108 / 82%);
  color: #fff;
  text-shadow: none;
}

.preview-navy-business-card .preview-keyword,
.preview-navy-business-card .preview-title {
  color: #ffdc4d;
}

.preview-minimal-black-white .preview-caption {
  color: #161616;
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff;
}

.preview-minimal-black-white .preview-keyword,
.preview-minimal-black-white .preview-title {
  color: #8e211b;
}

.preview-title-bottom .preview-title {
  display: block;
  color: #37d7ff;
  text-shadow:
    -2px -2px 0 #111,
    2px -2px 0 #111,
    -2px 2px 0 #111,
    2px 2px 0 #111,
    2px 4px 8px rgb(0 0 0 / 45%);
}

.preview-title-bottom .preview-caption {
  font-size: 15px;
  color: #e9fbff;
}

.preview-title-bottom .preview-keyword {
  color: #37d7ff;
}

.preview-viral-outline .preview-caption {
  color: #fff1f1;
  font-size: 20px;
  text-shadow:
    -3px -3px 0 #8a1c22,
    3px -3px 0 #8a1c22,
    -3px 3px 0 #8a1c22,
    3px 3px 0 #8a1c22,
    0 5px 8px rgb(0 0 0 / 46%);
  animation: subtitlePop 1s ease-in-out infinite;
}

.preview-viral-outline .preview-title {
  color: #ffe36c;
  text-shadow:
    -3px -3px 0 #8a1c22,
    3px -3px 0 #8a1c22,
    -3px 3px 0 #8a1c22,
    3px 3px 0 #8a1c22,
    0 5px 8px rgb(0 0 0 / 46%);
}

.preview-viral-outline .preview-keyword {
  color: #ffe36c;
}

@keyframes subtitlePop {
  0% {
    opacity: 0.25;
    transform: translateX(-50%) scale(0.72);
  }
  28% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
  46%,
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes subtitleFade {
  0% {
    opacity: 0.2;
    transform: translateX(-50%) translateY(8px);
  }
  30%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-height: 860px) and (min-width: 681px) {
  .dialog-modal {
    padding: 12px;
  }

  .dialog-card {
    max-height: calc(100dvh - 24px);
  }

  .customize-card {
    padding: 20px 24px 22px;
  }

  .dialog-head {
    margin-bottom: 12px;
  }

  .subtitle-style-list {
    max-height: min(26vh, 200px);
  }

  .subtitle-preview {
    padding: 8px;
  }

  .preview-screen {
    width: min(100%, 160px);
    max-height: none;
    margin: 0 auto;
  }

  .dialog-actions {
    margin-top: 14px;
  }
}

@media (max-width: 900px) {
  .history-sidebar {
    width: min(var(--history-width), 86vw);
    transform: translateX(0);
    box-shadow: 18px 0 40px rgb(0 0 0 / 10%);
  }

  .product-app.history-collapsed .history-sidebar {
    width: min(var(--history-width), 86vw);
    transform: translateX(calc(100% + 8px));
    box-shadow: none;
  }

  .workspace-shell {
    width: min(100%, calc(100vw - 28px));
    height: auto;
    padding: 18px 0 36px;
    gap: 18px;
    overflow: visible;
  }

  .workspace-shell .app-hero {
    display: block;
  }

  .workspace-board {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    overflow: visible;
  }

  .workspace-board.is-dual {
    grid-template-rows: auto;
  }

  .workspace-input-card,
  .workspace-result-card {
    height: auto;
    min-height: 360px;
    overflow: visible;
  }

  .product-app .floating-composer {
    width: 100%;
    height: auto;
    max-height: none;
    padding: 22px;
    overflow: visible;
  }

  .create-persona-page {
    width: min(100%, calc(100vw - 28px));
    padding-top: 14px;
  }

  .create-persona-page-shell {
    min-height: auto;
  }

  .create-persona-header {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .create-persona-header > .light-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .upload-requirements dl,
  .example-material-grid {
    grid-template-columns: 1fr;
  }

  .guide-inner {
    gap: 18px;
  }

  .guide-step {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 104px;
    padding: 20px;
  }

  .guide-step span {
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .guide-step strong {
    font-size: 22px;
  }

  .guide-step:not(:last-child)::after {
    display: none;
  }

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

  .admin-dashboard-two-col,
  .admin-mini-lists {
    grid-template-columns: 1fr;
  }

  .template-strip,
  .auth-section,
  .empty-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-hero,
  .app-hero {
    margin-top: 70px;
  }

  .landing-workflow {
    margin-top: 72px;
  }
}

@media (max-width: 680px) {
  .site-nav {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .product-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .site-actions,
  .app-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .landing-hero h1,
  .app-hero h1 {
    font-size: 38px;
  }

  .landing-hero p,
  .app-hero p {
    font-size: 17px;
  }

  .landing-page {
    padding-bottom: 54px;
  }

  .landing-page .landing-hero {
    width: min(100%, calc(100vw - 28px));
    margin-top: 34px;
    padding-top: 6px;
  }

  .landing-page .landing-hero h1 {
    font-size: 38px;
  }

  .hero-prompt-card,
  .hero-composer {
    border-radius: 22px;
    padding: 18px;
  }

  .landing-page .hero-prompt-card {
    width: min(100%, calc(100vw - 28px));
    padding: 20px;
  }

  .landing-page .hero-prompt-card textarea {
    height: 126px;
    min-height: 126px;
    padding: 18px;
    font-size: 17px;
  }

  .landing-page .start-now {
    width: 100%;
    margin-left: 0;
  }

  .landing-workflow {
    width: min(100%, calc(100vw - 28px));
    margin-top: 44px;
  }

  .product-app {
    padding-bottom: 0;
  }

  .product-app .floating-composer .prompt-input textarea {
    height: 120px;
    min-height: 120px;
    font-size: 17px;
  }

  .composer-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .template-strip,
  .auth-section,
  .auth-modal-forms,
  .guide-inner,
  .empty-card-grid {
    grid-template-columns: 1fr;
  }

  .workspace-result-card .workflow-guide {
    margin-top: 0;
  }

  .admin-dashboard-modal {
    padding: 10px;
  }

  .admin-dashboard-shell {
    min-height: calc(100vh - 20px);
    border-radius: 20px;
    padding: 16px;
  }

  .admin-dashboard-head {
    flex-direction: column;
  }

  .admin-dashboard-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .auth-modal-card {
    padding: 20px;
  }

  .composer-chip,
  .composer-custom-button,
  .prompt-chip,
  .price-badge,
  .balance-badge,
  .user-badge {
    flex: 1 1 calc(50% - 8px);
    justify-content: space-between;
  }

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

  .voice-tuning {
    grid-template-columns: 1fr;
  }

  .subtitle-customizer {
    grid-template-columns: 1fr;
  }

  .subtitle-preview {
    min-height: 0;
  }

  .preview-screen {
    max-width: 190px;
    margin: 0 auto;
  }

  .send-button {
    width: 100%;
    margin-left: 0;
  }

  .result-message {
    gap: 8px;
  }

  .result-bubble {
    width: calc(100vw - 78px);
  }

  .admin-user-item {
    grid-template-columns: 1fr;
  }

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

  .generated-video-item video {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
  }

  .recharge-controls {
    grid-template-columns: 1fr auto;
  }

  .recharge-packages,
  .ledger-item {
    grid-template-columns: 1fr;
  }

  .payment-method-actions {
    grid-template-columns: 1fr;
  }

  .ledger-amount {
    justify-items: start;
  }
}
