/*
 * 英语词卡预览与 video-worker 使用同一组随项目发布的字体。
 * 不依赖访客电脑的苹方、宋体或 macOS 手写字体。
 */
@font-face {
  font-family: "Cantonese Sans";
  src: url("/web/assets/fonts/noto-sans-sc-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-024F;
}

@font-face {
  font-family: "Cantonese Sans";
  src: url("/web/assets/fonts/noto-sans-sc-chinese-simplified-400-normal.woff2") format("woff2");
  unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

@font-face {
  font-family: "Cantonese Rounded";
  src: url("/web/assets/fonts/nunito-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-024F;
}

@font-face {
  font-family: "Cantonese Serif";
  src: url("/web/assets/fonts/noto-serif-sc-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-024F;
}

@font-face {
  font-family: "Cantonese Serif";
  src: url("/web/assets/fonts/noto-serif-sc-chinese-simplified-400-normal.woff2") format("woff2");
  unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

@font-face {
  font-family: "Cantonese Handwrite";
  src: url("/web/assets/fonts/LXGWWenKai-Regular.ttf") format("truetype");
}

:root {
  --container-max: 1120px;
  --gutter: 24px;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --panel: #ffffff;
  --surface: #f5f7fa;
  --accent: #0f83fd;
  --accent-dark: #075bb2;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 34px 110px rgba(15, 23, 42, 0.16);
  --text-hero: clamp(44px, 6vw, 78px);
  --text-h1: clamp(30px, 4vw, 48px);
  --text-body: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 58%, #ffffff 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body[data-page="home"] {
  background:
    radial-gradient(circle at 50% 0%, rgba(15, 131, 253, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 58%, #ffffff 100%);
  color: var(--text);
}

body[data-page="tts"] {
  background:
    radial-gradient(circle at 50% 0%, rgba(224, 32, 32, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 58%, #ffffff 100%);
}

body.modal-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  background: rgba(251, 251, 253, 0.86);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(24px, calc((100vw - var(--container-max)) / 2));
}

body[data-page="home"] .site-nav,
body[data-page="learn"] .site-nav {
  grid-template-columns: 1fr auto 1fr;
  border-bottom-color: rgba(229, 231, 235, 0.8);
  background: rgba(251, 251, 253, 0.86);
}

body[data-page="home"] .brand,
body[data-page="home"] .nav-links a,
body[data-page="learn"] .brand,
body[data-page="learn"] .nav-links a {
  color: var(--text);
}

body[data-page="learn"] .nav-user-text {
  color: var(--muted);
}

body[data-page="home"] .nav-user-text {
  color: var(--muted);
}

.brand {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f83fd, #12b981 58%, #111827);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: #475467;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav-user {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user-text {
  color: var(--muted);
  font-size: 14px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-login, button, .button-link {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.nav-login.secondary, button.secondary, .button-link.ghost {
  background: #eef2f6;
  color: #1d2939;
}

.nav-generate {
  background: #111827;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

main {
  overflow: hidden;
}

.hero, .section, .auth-strip {
  width: min(var(--container-max), calc(100vw - 48px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 74px;
  align-items: center;
  padding: 78px 0 104px;
}

.simple-home {
  width: min(1120px, calc(100vw - 48px));
  min-height: auto;
  display: block;
  padding: 28px 0 24px;
}

.simple-home-inner {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.vocab-workspace-shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr);
  grid-template-areas: "templates editor";
  gap: 22px;
  align-items: start;
  padding: 22px 0 52px;
}

.vocab-workspace-shell .simple-home {
  grid-area: editor;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.vocab-workspace-shell .simple-home-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(340px, 410px);
  column-gap: 24px;
  row-gap: 14px;
  align-items: start;
  text-align: left;
}

.vocab-workspace-shell .template-strip-section {
  grid-area: templates;
  position: sticky;
  top: 78px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.vocab-live-preview-panel {
  grid-column: 1;
  grid-row: 1 / span 20;
  position: sticky;
  top: 78px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(208, 213, 221, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 22px 64px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.vocab-panel-heading,
.vocab-controls-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.vocab-panel-heading h1,
.vocab-panel-heading h2,
.vocab-controls-heading h2 {
  margin: 3px 0 0;
  color: #101828;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.simple-home .vocab-panel-heading h1 {
  max-width: none;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.vocab-panel-kicker {
  color: #0f83fd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vocab-preview-template-name {
  flex-shrink: 0;
  padding: 6px 9px;
  border-radius: 999px;
  color: #344054;
  background: #f2f4f7;
  font-size: 11px;
  font-weight: 850;
}

.vocab-preview-stage {
  min-height: 660px;
  margin-top: 16px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(15, 131, 253, 0.08), transparent 36%),
    #eef1f5;
}

.vocab-live-preview-panel .typography-preview {
  width: min(360px, 100%);
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.2);
}

.vocab-preview-note {
  margin: 12px 2px 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.vocab-controls-heading,
.vocab-workspace-shell .prompt-chips,
.vocab-workspace-shell #homePromptForm,
.vocab-workspace-shell #homeImageStyleCustomField,
.vocab-workspace-shell .vocab-live-controls,
.vocab-workspace-shell #homeExcelPanel,
.vocab-workspace-shell #homeAdvancedOptions,
.vocab-workspace-shell #homeCreateMsg {
  grid-column: 2;
  min-width: 0;
}

.vocab-controls-heading {
  padding: 18px 18px 0;
}

.vocab-workspace-shell .prompt-chips {
  margin: 0;
  justify-content: flex-start;
  padding: 0 18px;
}

.vocab-workspace-shell .home-prompt-box {
  width: 100%;
  margin: 0;
  min-height: 0;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  align-items: stretch;
}

.home-topic-field {
  display: grid;
  gap: 7px;
}

.home-topic-field > span,
.vocab-workspace-shell .home-grid-field > span {
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

.vocab-workspace-shell .home-prompt-input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 0 13px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  color: #101828;
  background: #fff;
}

.vocab-workspace-shell .home-grid-field {
  min-height: 0;
  display: grid;
  align-items: stretch;
  gap: 7px;
  padding: 0;
  background: transparent;
}

.vocab-workspace-shell .home-grid-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
}

.vocab-workspace-shell .home-prompt-submit {
  width: 100%;
  min-height: 48px;
}

.vocab-workspace-shell .home-custom-style-field,
.vocab-workspace-shell .home-excel-panel,
.vocab-workspace-shell .home-advanced-options,
.vocab-workspace-shell #homeCreateMsg {
  width: 100%;
  margin: 0;
}

.vocab-live-controls {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(208, 213, 221, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.background-color-control {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.background-color-control input[type="color"] {
  width: 48px;
  height: 42px;
  padding: 3px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.background-color-control output {
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

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

.visual-color-grid label {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 5px 8px;
  align-items: center;
}

.visual-color-grid label > span {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.visual-color-grid input[type="color"] {
  width: 36px;
  height: 34px;
  padding: 2px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.visual-color-grid output {
  min-width: 0;
  overflow: hidden;
  color: #475467;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
}

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

.title-copy-grid > label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.title-copy-grid > label > span:first-child {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.title-copy-grid input[type="text"] {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  color: #101828;
  background: #fff;
  outline: none;
}

.title-color-input {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.title-color-input input[type="color"] {
  width: 42px;
  height: 36px;
  padding: 2px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
}

.title-color-input output {
  color: #475467;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 750;
}

.vocab-workspace-shell .home-advanced-options {
  padding: 0 18px 18px;
}

.vocab-workspace-shell .home-advanced-body {
  grid-template-columns: 1fr;
}

.vocab-template-heading {
  padding: 12px 8px 10px;
}

.vocab-workspace-shell .home-template-strip {
  max-height: calc(100vh - 170px);
  display: grid;
  gap: 8px;
  padding: 6px 8px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y proximity;
}

.vocab-workspace-shell .home-template-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 7px;
  border-radius: 13px;
  text-align: left;
  scroll-snap-align: start;
  outline-width: 2px;
  outline-offset: 0;
}

.vocab-workspace-shell .home-template-card .home-card-cover {
  width: 48px;
  height: 64px;
  aspect-ratio: 3 / 4;
  border-radius: 9px;
}

.vocab-workspace-shell .home-template-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.8);
}

.vocab-workspace-shell .home-template-card.active {
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 131, 253, 0.12);
}

.vocab-workspace-shell .home-card-name {
  font-size: 12px;
  text-align: left;
  white-space: normal;
}

.simple-home h1 {
  max-width: none;
  color: #101828;
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.simple-home-subtitle {
  margin: 18px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 650;
}

.prompt-chips {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.simple-home-inner > .prompt-chips:first-child {
  margin-top: 0;
}

.prompt-chips button,
.home-prompt-box,
.home-template-card {
  border: 0;
  color: inherit;
  display: flex;
  white-space: normal;
}

.prompt-chips button {
  min-height: 30px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(208, 213, 221, 0.82);
}

.tts-section {
  width: min(1180px, calc(100vw - 48px));
  margin: 18px auto 40px;
}

.tts-page-hero {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 42px 0 10px;
  text-align: center;
}

.tts-page-hero h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.tts-page-hero p:last-child {
  max-width: 680px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
}

.tts-page-section {
  margin-top: 24px;
}

.tts-panel {
  padding: 18px 22px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(208, 213, 221, 0.82),
    0 24px 70px rgba(15, 23, 42, 0.1);
}

.tts-head {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tts-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  flex: 0 0 auto;
}

.tts-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tts-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.tts-editor-card,
.tts-controls-card {
  min-width: 0;
}

.tts-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  gap: 12px;
  margin-bottom: 10px;
  color: #344054;
  font-weight: 900;
}

.tts-editor-card textarea,
.tts-rich-editor {
  width: 100%;
  min-height: 300px;
  max-height: 420px;
  resize: vertical;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 16px 17px;
  background: #fff;
  color: var(--text);
  outline: none;
  font-size: 15px;
  line-height: 1.9;
}

.tts-rich-editor {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.tts-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #98a2b3;
  pointer-events: none;
}

.tts-rich-editor::selection {
  background: #facc15;
  color: #1c1917;
}

.tts-editor-card textarea:focus,
.tts-rich-editor:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 131, 253, 0.12);
}

.tts-emotion-mark {
  position: relative;
  padding: 1px 3px 2px;
  border-radius: 4px;
  background: #dbeafe;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.tts-emotion-mark::after {
  content: attr(data-emotion);
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  vertical-align: middle;
}

.tts-emotion-mark {
  cursor: pointer;
}

.tts-pause-token {
  display: inline-block;
  margin: 0 2px;
  padding: 0 5px;
  border-radius: 6px;
  background: #f1edff;
  color: #7654e8;
  font-weight: 800;
  line-height: 1.45;
  user-select: none;
}

.tts-interjection-token {
  display: inline-block;
  margin: 0 2px;
  padding: 0 5px;
  border: 1px solid #ddd6fe;
  border-radius: 6px;
  background: #f5f3ff;
  color: #7654e8;
  font-weight: 800;
  line-height: 1.45;
  user-select: none;
}

.tts-inline-emotion-menu {
  position: fixed;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.16);
}

.tts-inline-emotion-menu.hidden {
  display: none;
}

.tts-inline-emotion-menu select,
.tts-inline-emotion-menu button {
  min-height: 30px;
  border-radius: 6px;
  font: inherit;
}

.tts-inline-emotion-menu select {
  border: 1px solid #d0d5dd;
  padding: 3px 6px;
  background: #fff;
}

.tts-inline-emotion-menu button {
  border: 0;
  padding: 3px 8px;
  background: #fef3f2;
  color: #b42318;
  cursor: pointer;
}

.tts-inline-pause-menu {
  position: fixed;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid #e4defe;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.16);
}

.tts-inline-pause-menu.hidden {
  display: none;
}

.tts-inline-pause-menu select,
.tts-inline-pause-menu button,
.tts-inline-pause-menu input {
  min-height: 30px;
  border-radius: 6px;
  font: inherit;
}

.tts-inline-pause-menu select {
  border: 1px solid #d0d5dd;
  padding: 3px 6px;
  background: #fff;
}

.tts-inline-pause-menu input {
  width: 66px;
  border: 1px solid #d0d5dd;
  padding: 3px 6px;
  outline: none;
}

.tts-inline-pause-menu input:focus {
  border-color: #b9a2ff;
}

.tts-inline-pause-menu button {
  border: 0;
  padding: 3px 8px;
  background: #fef3f2;
  color: #b42318;
  cursor: pointer;
}

.tts-emotion-toolbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 12px;
}

.tts-annotation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tts-add-emotion-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  background: #b9a2ff;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(99, 73, 177, 0.18);
}

.tts-add-emotion-btn:hover:not(:disabled) {
  background: #a889fa;
}

.tts-add-emotion-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.tts-add-pause-btn {
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 10px 13px;
  background: #fff;
  color: #475467;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.tts-add-interjection-btn {
  border: 1px solid #c4b5fd;
  border-radius: 10px;
  padding: 10px 13px;
  background: #f5f3ff;
  color: #6747c7;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.tts-add-interjection-btn:hover {
  border-color: #a78bfa;
  background: #ede9fe;
}

.tts-add-pause-btn:hover {
  border-color: #b9a2ff;
  background: #f8f6ff;
  color: #6747c7;
}

.tts-editor-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.tts-result-area {
  margin-top: 14px;
}

.tts-emotion-picker {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 6px;
  width: 212px;
  padding: 8px;
  border: 1px solid #e4defe;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(72, 47, 147, 0.18);
}

.tts-emotion-picker.hidden {
  display: none;
}

.tts-pause-picker {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 124px;
  display: flex;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e4defe;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(72, 47, 147, 0.18);
}

.tts-interjection-picker {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 122px;
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 6px;
  width: 242px;
  max-height: 326px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #e4defe;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(72, 47, 147, 0.18);
}

.tts-interjection-picker.hidden {
  display: none;
}

.tts-interjection-picker button {
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  padding: 7px 8px;
  background: #f9fafb;
  color: #667085;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tts-interjection-picker button:hover {
  border-color: #b9a2ff;
  background: #f1edff;
  color: #6747c7;
}

.tts-pause-picker.hidden {
  display: none;
}

.tts-pause-picker button,
.tts-pause-picker input {
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  padding: 7px 8px;
  background: #f9fafb;
  color: #667085;
  font: inherit;
  cursor: pointer;
}

.tts-pause-picker input {
  width: 78px;
  cursor: text;
  outline: none;
}

.tts-pause-picker input:focus {
  border-color: #b9a2ff;
  background: #fff;
}

.tts-pause-picker button:hover {
  border-color: #b9a2ff;
  background: #f1edff;
  color: #6747c7;
}

.tts-emotion-picker button {
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  padding: 7px 8px;
  background: #f9fafb;
  color: #667085;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.tts-emotion-picker button:hover {
  border-color: #b9a2ff;
  background: #f1edff;
  color: #6747c7;
}

.tts-segment-emotion-panel {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #dbe7f7;
  border-radius: 12px;
  background: #f8fbff;
}

.tts-segment-toolbar,
.tts-segment-actions,
.tts-segment-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tts-segment-toolbar {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tts-segment-toolbar strong {
  color: #344054;
  font-size: 14px;
}

.tts-segment-toolbar p,
.tts-segment-hint {
  margin: 3px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.tts-segment-actions {
  flex-wrap: wrap;
}

.tts-segment-actions select {
  min-width: 112px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  color: var(--text);
}

.tts-segment-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.tts-segment-item {
  justify-content: space-between;
  padding: 8px 9px;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 13px;
}

.tts-segment-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tts-segment-emotion {
  flex: 0 0 auto;
  color: #175cd3;
  font-weight: 800;
}

.tts-segment-delete {
  flex: 0 0 auto;
  border: 0;
  padding: 2px 4px;
  background: transparent;
  color: #b42318;
  font: inherit;
  cursor: pointer;
}

.tts-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.tts-editor-submit {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.tts-editor-submit button {
  min-width: 168px;
}

.tts-controls-card {
  padding: 18px;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  background: #fcfcfd;
}

.tts-tabs {
  display: flex;
  gap: 26px;
  margin: -2px 0 18px;
  border-bottom: 1px solid #eaecf0;
}

.tts-tab {
  position: relative;
  border: 0;
  padding: 5px 0 12px;
  background: transparent;
  color: #98a2b3;
  font: inherit;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

.tts-tab.is-active {
  color: #101828;
}

.tts-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #101828;
  content: '';
}

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

.tts-controls-title {
  margin: 0;
  color: #101828;
  font-size: 18px;
  font-weight: 900;
}

.tts-history-note {
  margin: -4px 0 14px;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.tts-history-list {
  display: grid;
  max-height: 510px;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
}

.tts-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
}

.tts-history-item.is-expired {
  background: #f9fafb;
  opacity: 0.72;
}

.tts-history-play,
.tts-history-download {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: #f2f4f7;
  color: #344054;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.tts-history-play { cursor: pointer; }

.tts-history-play:hover:not(:disabled),
.tts-history-download:hover {
  background: #ede9fe;
  color: #6747c7;
}

.tts-history-play.is-playing {
  background: #6747c7;
  color: #fff;
}

.tts-history-play:disabled { cursor: not-allowed; }

.tts-history-copy {
  min-width: 0;
  flex: 1;
}

.tts-history-copy p {
  overflow: hidden;
  margin: 0;
  color: #1d2939;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tts-history-copy span,
.tts-history-expired,
.tts-history-empty {
  margin: 3px 0 0;
  color: #667085;
  font-size: 12px;
}

.dialogue-page { max-width: 920px; margin: 42px auto 80px; padding: 0 20px; }
.dialogue-panel { background: #fff; border: 1px solid #ece7e3; border-radius: 20px; padding: 30px; box-shadow: 0 12px 36px rgba(48, 35, 27, .06); }
.dialogue-panel h1 { margin: 0 0 8px; }.dialogue-panel label { display: block; margin: 18px 0 8px; font-weight: 650; }.dialogue-panel input[type="text"], .dialogue-panel input:not([type]), .dialogue-panel #topic, .dialogue-panel textarea, .dialogue-panel select { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 11px 12px; border: 1px solid #d8d2cc; border-radius: 9px; font: inherit; }.dialogue-panel fieldset { border: 0; padding: 0; margin: 18px 0; }.dialogue-panel fieldset label { display: inline-block; margin: 0 18px 0 0; font-weight: 500; }.dialogue-custom-label { margin-top: 18px; }.dialogue-editor-head { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }.dialogue-line { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid #eee8e3; }.dialogue-line-number { color: #a46c49; font-weight: 700; min-width: 24px; }.dialogue-line-body { flex: 1; }.dialogue-line-body p { margin: 7px 0 12px; line-height: 1.65; }.dialogue-line-controls { display: flex; gap: 8px; align-items: center; }.dialogue-line-controls select { margin: 0; max-width: 270px; }.dialogue-actions { display: flex; gap: 12px; margin-top: 22px; }.dialogue-actions button, .dialogue-panel > #dialogueSetup > button { padding: 11px 16px; }.hidden { display: none !important; }
@media (max-width: 640px) { .dialogue-panel { padding: 20px; }.dialogue-line-controls { flex-wrap: wrap; }.dialogue-line-controls select { max-width: none; }.dialogue-actions { flex-direction: column; } }
.dialogue-line .line-text { width: 100%; box-sizing: border-box; margin: 7px 0 12px; padding: 9px 10px; border: 1px solid #ddd5cf; border-radius: 8px; color: #2c2520; font: inherit; line-height: 1.55; resize: vertical; }
.line-tag-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 12px; color: #766d65; font-size: 13px; }.line-tag-actions button { padding: 3px 8px; border: 1px solid #ded4cb; border-radius: 999px; background: #fffaf5; color: #7a4b2c; cursor: pointer; font: inherit; }
.dialogue-line.is-generating { background: #fff8ef; }.dialogue-line.is-generating .line-audio::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 2px solid #d89a62; border-top-color: transparent; border-radius: 50%; vertical-align: -2px; animation: dialogue-spin .75s linear infinite; }
.dialogue-toast { position: fixed; z-index: 1000; right: 22px; bottom: 22px; max-width: min(360px, calc(100vw - 44px)); padding: 12px 16px; border-radius: 10px; color: #fff; background: #177245; box-shadow: 0 10px 25px rgba(0,0,0,.18); animation: dialogue-toast-in .22s ease-out; }.dialogue-toast.error { background: #b83d3d; }
@keyframes dialogue-spin { to { transform: rotate(360deg); } } @keyframes dialogue-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.tts-history-expired { white-space: nowrap; }

.tts-history-empty {
  padding: 20px 4px;
  text-align: center;
}

.tts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.tts-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: #344054;
  font-weight: 800;
}

.tts-field.full {
  grid-column: 1 / -1;
}

.tts-field textarea,
.tts-field select {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.tts-field textarea:focus,
.tts-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 131, 253, 0.12);
}

.range-field input {
  width: 100%;
}

.tts-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tts-audio {
  width: 100%;
  margin-top: 18px;
}

.tts-final-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.tts-success-toast {
  position: fixed;
  top: 72px;
  left: 50%;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(600px, calc(100vw - 40px));
  min-height: 96px;
  padding: 20px 54px 20px 28px;
  border: 1px solid rgba(47, 156, 70, 0.38);
  border-radius: 4px;
  background: #60bd6c;
  color: #fff;
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.24);
  transform: translateX(-50%);
}

.tts-success-toast.hidden {
  display: none;
}

.toast-check {
  flex: 0 0 auto;
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
}

.toast-message {
  flex: 1;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.4;
  font-weight: 850;
}

.toast-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 38px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
}

.toast-close:hover {
  color: #fff;
}

.convert-dialog {
  width: min(680px, calc(100vw - 36px));
}

.convert-source-text {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 12px;
  outline: none;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

.convert-source-text:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 131, 253, 0.12);
}

.convert-checkbox {
  align-items: flex-start;
  color: #344054;
  font-weight: 750;
  line-height: 1.5;
}

.convert-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quota-dialog {
  width: min(520px, calc(100vw - 36px));
}

.quota-wechat-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  color: #1e3a8a;
}

.quota-wechat-box span {
  color: #475467;
  font-weight: 800;
}

.quota-wechat-box strong {
  font-size: 20px;
  word-break: break-all;
}

@media (max-width: 860px) {
  .tts-workspace {
    grid-template-columns: 1fr;
  }

  .tts-editor-card textarea,
  .tts-rich-editor {
    min-height: 240px;
    max-height: 340px;
  }

  .tts-segment-actions,
  .tts-editor-footer-actions {
    width: 100%;
  }

  .tts-segment-actions select {
    flex: 1 1 112px;
  }
}

.home-prompt-box {
  width: min(760px, 100%);
  margin: 14px auto 0;
  min-height: 82px;
  border-radius: 10px;
  padding: 18px 10px 18px 20px;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow:
    inset 0 0 0 1px rgba(208, 213, 221, 0.88),
    0 18px 50px rgba(15, 23, 42, 0.08);
}

.home-prompt-input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #667085;
  font-size: 16px;
  font-weight: 800;
}

.home-prompt-input::placeholder {
  color: #667085;
  opacity: 1;
}

.home-grid-field {
  flex-shrink: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  padding: 0 12px;
  background: #f2f4f7;
  color: #344054;
}

.home-grid-field select {
  min-width: 128px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #101828;
  font-size: 13px;
  font-weight: 900;
}

.home-custom-style-field {
  width: min(920px, 100%);
  margin: 10px auto 0;
}

.home-custom-style-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.home-custom-style-field input:focus {
  border-color: #98a2b3;
  box-shadow: 0 0 0 3px rgba(152, 162, 179, 0.2);
}

.home-prompt-submit {
  flex-shrink: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}

.excel-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.excel-upload-row input[type="file"] {
  flex: 1 1 220px;
}

.excel-template-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.excel-batch-summary {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.home-excel-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.home-excel-submit {
  width: 100%;
}

.home-prompt-submit {
  background: #111827;
  color: #fff;
}

.home-advanced-options {
  width: min(760px, 100%);
  margin: 12px auto 0;
  text-align: left;
}

.home-advanced-options summary {
  width: max-content;
  list-style: none;
  color: #475467;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.home-advanced-options summary::-webkit-details-marker {
  display: none;
}

.home-advanced-options summary::after {
  content: "⌄";
  margin-left: 6px;
  color: #98a2b3;
}

.home-advanced-options[open] summary::after {
  content: "⌃";
}

.home-advanced-body {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(208, 213, 221, 0.82);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.home-advanced-body .advanced-voice-grid,
.home-advanced-body .grid-reading-options,
.home-advanced-body .grid-zoom-option,
.home-advanced-body .image-advanced-group.full {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-advanced-body .advanced-voice-grid {
  display: grid;
  gap: 12px;
}

.home-field {
  display: grid;
  gap: 8px;
}

.home-field.full {
  grid-column: 1 / -1;
}

.home-field label {
  color: #475467;
  font-size: 13px;
  font-weight: 900;
}

.home-field select,
.home-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(208, 213, 221, 0.9);
  border-radius: 12px;
  background: #fff;
  color: #101828;
  padding: 11px 12px;
  outline: none;
}

.home-field textarea {
  resize: vertical;
}

.template-strip-section {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.featured-section {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 8px 0 96px;
}

.featured-inner {
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  padding-top: 40px;
}

.featured-head {
  margin-bottom: 24px;
}

.featured-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.featured-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.featured-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.featured-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #eef2f7;
  cursor: pointer;
  text-align: left;
  box-shadow:
    inset 0 0 0 1px rgba(208, 213, 221, 0.72),
    0 16px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px rgba(15, 131, 253, 0.22),
    0 22px 48px rgba(15, 23, 42, 0.12);
}

.featured-card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 35%, rgba(15, 23, 42, 0.72) 100%);
  pointer-events: none;
}

.featured-card-play {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  pointer-events: none;
}

.featured-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 16px;
  z-index: 1;
}

.featured-card-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.featured-card-title {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-card-foot {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.3;
}

.featured-dialog {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto;
  padding: 22px 22px 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.featured-dialog-meta {
  margin-bottom: 14px;
}

.featured-template-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 131, 253, 0.1);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.featured-dialog-meta h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.featured-dialog-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.featured-player-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 3 / 4;
}

.featured-player-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.featured-dialog-foot {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.home-template-hint {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.home-template-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  align-items: start;
  /* 给选中蓝圈留出 outline-offset 空间，避免被邻卡盖住 */
  padding: 10px 6px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.home-template-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 132px;
  width: 132px;
  max-width: none;
  min-width: 132px;
  scroll-snap-align: start;
  border-radius: 10px;
  padding: 0;
  /* 不在卡片上 clip，否则选中外圈会被裁掉 */
  overflow: visible;
  background: transparent;
  color: #111827;
  text-align: center;
  align-items: stretch;
  justify-content: flex-start;
  box-shadow: none;
  outline: 3px solid transparent;
  outline-offset: 5px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, outline-color 0.18s ease;
  z-index: 0;
}

.home-template-card .home-card-cover {
  aspect-ratio: 3 / 4;
}

.home-card-name {
  display: block;
  padding: 0 2px;
  color: #374151;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-template-card.active .home-card-name {
  color: #0f83fd;
}

.home-template-card:hover {
  transform: translateY(-5px);
  z-index: 1;
}

.home-template-card:hover .home-card-cover {
  box-shadow:
    inset 0 0 0 1px rgba(15, 131, 253, 0.26),
    0 24px 58px rgba(15, 23, 42, 0.12);
}

.home-template-card.active {
  outline-color: rgba(15, 131, 253, 0.9);
  z-index: 2;
}

.home-template-card.active .home-card-cover {
  box-shadow:
    inset 0 0 0 1px rgba(15, 131, 253, 0.18),
    0 24px 58px rgba(15, 131, 253, 0.14);
}

.home-template-card-disabled {
  opacity: 0.72;
}

.home-card-title {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 48px;
  z-index: 2;
  color: #111827;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 950;
}

.home-card-cover {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(208, 213, 221, 0.72),
    0 18px 42px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.18s ease;
}

.home-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* 卡片统一 3:4，示范视频在卡片内 contain，避免比例不同导致栅格拉开重叠 */
.home-card-cover.has-demo-video,
.template-cover.has-demo-video {
  background: #111827;
}

.home-card-cover .template-demo-poster,
.home-card-cover .template-demo-video,
.template-cover .template-demo-poster,
.template-cover .template-demo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: #111827;
}

.home-card-cover .template-demo-video {
  pointer-events: none;
}

.home-card-cover.is-playing .template-demo-video {
  pointer-events: auto;
}

.template-cover {
  position: relative;
}

.template-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.template-cover.has-demo-video {
  aspect-ratio: 3 / 4;
}

.template-cover.has-demo-video img.template-demo-poster {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
}

.template-cover .template-demo-video {
  pointer-events: none;
}

.template-cover.is-playing .template-demo-video {
  pointer-events: auto;
}

.template-demo-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  font-size: 16px;
  line-height: 1;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.template-demo-play:hover {
  transform: scale(1.06);
  background: rgba(15, 131, 253, 0.88);
}

.home-card-cover.is-playing .template-demo-play,
.template-cover.is-playing .template-demo-play,
.home-card-cover.is-playing .template-demo-poster,
.template-cover.is-playing .template-demo-poster {
  opacity: 0;
  pointer-events: none;
}

.home-template-card:hover .template-demo-play,
.template-option:hover .template-demo-play {
  background: rgba(15, 131, 253, 0.82);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1, h2, p {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: var(--text-hero);
  line-height: 0.98;
  max-width: 760px;
  font-weight: 900;
}

h2 {
  font-size: var(--text-h1);
  line-height: 1.08;
}

.hero-subtitle {
  margin-top: 24px;
  max-width: 620px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 650;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-proof {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  border-top: 1px solid rgba(16, 24, 40, 0.1);
}

.hero-proof div {
  padding: 20px 22px 0 0;
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.hero-proof span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.hero-preview {
  display: flex;
  justify-content: center;
}

.studio-preview {
  position: relative;
  width: 500px;
  min-height: 660px;
  border: 1px solid rgba(208, 213, 221, 0.72);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.68)),
    radial-gradient(circle at 20% 18%, rgba(15, 131, 253, 0.18), transparent 34%),
    radial-gradient(circle at 78% 28%, rgba(18, 185, 129, 0.16), transparent 34%),
    #f8fafc;
  box-shadow: var(--shadow-strong);
  padding: 18px 24px 26px;
}

.preview-toolbar {
  display: flex;
  gap: 8px;
  height: 24px;
  align-items: center;
}

.preview-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.phone-frame {
  position: relative;
  width: 330px;
  height: 586px;
  margin: 8px auto 0;
  border-radius: 38px;
  background: #fffaf1;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  padding: 22px 18px;
  color: #0f172a;
  overflow: hidden;
  border: 10px solid #101828;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 18px;
  color: #64748b;
}

.memory-preview {
  text-align: center;
}

.memory-title {
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  color: #050505;
}

.memory-topic {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 900;
  color: #050505;
}

.memory-board {
  margin-top: 28px;
  padding: 16px 14px;
  border-radius: 24px;
  background: #ffd991;
  display: grid;
  gap: 10px;
}

.memory-board div {
  position: relative;
  min-height: 58px;
  border-radius: 15px;
  background: #fff8eb;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 18px;
  overflow: hidden;
}

.memory-board div.active {
  background: linear-gradient(90deg, #ff8507 0 74%, #fff8eb 74% 100%);
}

.memory-board strong,
.memory-board span {
  position: relative;
  z-index: 1;
}

.memory-board strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  text-align: left;
}

.memory-board span {
  font-size: 20px;
  font-weight: 900;
}

.section {
  padding: 72px 0;
}

.examples-section {
  padding-top: 20px;
}

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

.output-grid > div {
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.output-grid strong {
  font-size: 22px;
}

.output-grid span {
  color: var(--muted);
  line-height: 1.55;
  font-weight: 650;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.06;
}

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

.feature-card {
  border: 1px solid rgba(208, 213, 221, 0.86);
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius);
  min-height: 256px;
  padding: 24px;
  text-align: left;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 16px;
  align-content: start;
  align-items: start;
  justify-content: stretch;
  white-space: normal;
  box-shadow: none;
}

.feature-card.active {
  border-color: rgba(15, 131, 253, 0.55);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(240, 248, 255, 0.95), #fff 52%),
    #fff;
}

.feature-kicker {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eff8ff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.feature-card strong {
  display: block;
  font-size: 25px;
  line-height: 1.12;
  white-space: normal;
  overflow-wrap: anywhere;
}

.feature-card span:last-child {
  display: block;
  color: var(--muted);
  max-width: 28em;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 650;
  white-space: normal;
  overflow-wrap: anywhere;
}

.template-step {
  margin-top: 24px;
}

.topic-style-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topic-style-row input {
  flex: 1;
  min-width: 0;
}

.image-style-inline {
  flex-shrink: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  padding: 0 12px;
  background: #f2f4f7;
}

.image-style-inline select,
.home-image-style-field select {
  min-width: 132px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #101828;
  font-size: 13px;
  font-weight: 900;
}

.memory-progress-color-field > label {
  display: block;
  margin-bottom: 10px;
}

.memory-color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.memory-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid rgba(16, 24, 40, 0.08);
  cursor: pointer;
  padding: 0;
  background: var(--swatch-color, #ff8507);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.memory-color-swatch.active {
  border-color: #101828;
  box-shadow: 0 0 0 2px rgba(16, 24, 40, 0.12);
}

.memory-color-custom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.memory-color-custom label {
  font-size: 13px;
  color: #667085;
}

.memory-color-custom input[type="color"] {
  width: 44px;
  height: 36px;
  padding: 2px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

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

.template-option {
  border: 1px solid rgba(208, 213, 221, 0.86);
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  min-height: 0;
  padding: 10px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
  align-items: stretch;
  justify-content: stretch;
  white-space: normal;
  box-shadow: none;
}

.template-option:hover,
.template-option.active {
  border-color: rgba(15, 131, 253, 0.58);
  background:
    linear-gradient(180deg, rgba(240, 248, 255, 0.96), #fff 58%),
    #fff;
  box-shadow: var(--shadow);
}

.template-cover {
  display: block;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(208, 213, 221, 0.72);
}

.template-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.template-cover-muyu {
  position: relative;
  min-height: 226px;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 225, 149, 0.92), transparent 26%),
    linear-gradient(160deg, rgba(23, 12, 7, 0.96), rgba(120, 60, 22, 0.94));
  color: #fff;
}

.template-cover-muyu::before,
.template-cover-muyu::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.24);
}

.template-cover-muyu::before {
  width: 126px;
  height: 126px;
  animation: muyuPreviewPulse 1.2s ease-out infinite;
}

.template-cover-muyu::after {
  width: 174px;
  height: 174px;
  animation: muyuPreviewPulse 1.2s ease-out 0.28s infinite;
}

.muyu-preview-card {
  position: relative;
  z-index: 1;
  width: 104px;
  min-height: 130px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 16px 10px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.muyu-preview-word {
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
}

.muyu-preview-phonetic {
  color: #8b3a12;
  font-size: 14px;
  font-weight: 900;
}

.muyu-preview-meaning {
  font-size: 20px;
  font-weight: 950;
}

.muyu-preview-beat {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.template-cover-root {
  position: relative;
  min-height: 226px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72) 22%, transparent 23%),
    radial-gradient(circle at 50% 45%, rgba(251, 191, 36, 0.38), transparent 42%),
    linear-gradient(150deg, #0f766e, #1d4ed8 58%, #111827);
  color: #fff;
}

.root-preview-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: rgba(17, 24, 39, 0.58);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.32);
}

.root-preview-center strong {
  font-size: 30px;
  line-height: 1;
  color: #fbbf24;
}

.root-preview-center em {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.root-preview-word {
  position: absolute;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.42);
}

.root-preview-word-1 {
  left: 16px;
  top: 34px;
}

.root-preview-word-2 {
  right: 16px;
  top: 42px;
}

.root-preview-word-3 {
  left: 16px;
  bottom: 36px;
}

.root-preview-word-4 {
  right: 18px;
  bottom: 44px;
}

@keyframes muyuPreviewPulse {
  0% {
    opacity: 0.9;
    transform: scale(0.74);
  }
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

.template-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: start;
}

.template-option strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.template-copy .feature-kicker {
  font-size: 11px;
}

.template-copy > span:last-child {
  display: none;
}

.auth-fields {
  display: grid;
  gap: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.48);
  backdrop-filter: blur(10px);
}

.auth-dialog,
.generate-dialog,
.image-prompt-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 30px;
  box-shadow: 0 34px 100px rgba(15, 23, 42, 0.28);
}

.generate-dialog {
  width: min(780px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
}

.image-prompt-dialog {
  width: min(620px, 100%);
}

.dialog-hint {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

#imagePromptInput {
  width: 100%;
  resize: vertical;
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--ink);
  background: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  outline: none;
}

#imagePromptInput:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
}

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

.dialog-actions button {
  min-width: 180px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  padding: 0;
  background: #eef2f6;
  color: #1d2939;
  font-size: 24px;
  line-height: 1;
}

.grid {
  display: grid;
  gap: 18px;
}

.generate-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  margin-top: 24px;
}

#topicStep.generate-form {
  grid-template-columns: 1fr;
}

.generate-form .field {
  margin-bottom: 0;
}

.generate-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 8px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.generate-form .full {
  grid-column: 1 / -1;
}

.advanced-options {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  background: #f8fafc;
}

.advanced-options summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

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

.advanced-options summary::after {
  content: "展开";
  float: right;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.advanced-options[open] summary {
  border-bottom: 1px solid rgba(203, 213, 225, 0.9);
}

.advanced-options[open] summary::after {
  content: "收起";
}

.advanced-options-body {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.advanced-voice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  grid-column: 1 / -1;
}

.voice-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.voice-preview-btn {
  min-width: 64px;
  white-space: nowrap;
}

.voice-preview-btn.is-playing {
  background: #dbeafe;
  color: #1d4ed8;
}

.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.typography-options {
  display: grid;
  gap: 10px;
}

.font-size-sliders {
  display: grid;
  gap: 10px;
}

.font-size-sliders label {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.font-size-sliders input[type="range"] {
  width: 100%;
  accent-color: #0f83fd;
}

.font-size-sliders output {
  order: 3;
  color: #0f83fd;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.typography-preview-wrap {
  display: grid;
  gap: 8px;
}

.typography-preview {
  --preview-title-scale: 1;
  --preview-word-scale: 1;
  --preview-phonetic-scale: 1;
  --preview-meaning-scale: 1;
  --preview-columns: 3;
  --preview-word-font: Arial, Helvetica, sans-serif;
  --preview-meaning-font: "PingFang SC", "Microsoft YaHei", sans-serif;
  width: min(230px, 100%);
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border: 1px solid #d8dee9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.typography-preview-title {
  padding-top: 14px;
  color: #9a4a52;
  font-family: var(--preview-meaning-font);
  font-size: calc(17px * var(--preview-title-scale));
  font-weight: 900;
}

.typography-preview-grid {
  display: grid;
  grid-template-columns: repeat(var(--preview-columns), minmax(0, 1fr));
  gap: 3px;
  padding: 8px 5px;
}

.typography-preview-grid[hidden],
.typography-preview-template[hidden] {
  display: none;
}

.typography-preview-template {
  position: relative;
  width: 100%;
  height: 100%;
}

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

.typography-memory-preview {
  height: 100%;
  overflow: hidden;
  color: #050505;
  border: 1px solid #d8dee9;
  border-radius: 12px;
  background: var(--preview-background-color, #fff);
}

.typography-memory-preview-head {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 4px 6px;
  border-bottom: 4px solid #ffd36f;
  background: #fffaf2;
}

.typography-memory-preview-head strong {
  font-family: var(--preview-meaning-font);
  font-size: calc(12px * var(--preview-title-scale));
  font-weight: 950;
  line-height: 1;
}

.typography-memory-preview-head span {
  font-family: var(--preview-meaning-font);
  font-size: calc(8px * var(--preview-title-scale));
  font-weight: 900;
  line-height: 1;
}

.typography-memory-preview-list {
  display: grid;
}

.typography-memory-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 0.8fr);
  align-items: center;
  min-height: 21px;
  border: 1px solid var(--preview-border-color, #fff);
  border-bottom: 3px solid #ffd36f;
  background: rgba(255, 255, 255, 0.42);
}

.typography-memory-preview-row.active {
  background: #ff8a00;
}

.typography-memory-preview-row span {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.typography-memory-preview-row b {
  max-width: 100%;
  overflow: hidden;
  font-family: var(--preview-word-font);
  font-size: calc(9px * var(--preview-word-scale));
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--preview-font-color, #050505);
}

.typography-memory-preview-row small {
  max-width: 100%;
  overflow: hidden;
  font-family: var(--preview-word-font);
  font-size: calc(5px * var(--preview-phonetic-scale));
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--preview-font-color, #050505);
}

.typography-memory-preview-row i {
  color: #8a5a00;
  font-size: 9px;
  font-style: normal;
  text-align: center;
}

.typography-memory-preview-row em {
  overflow: hidden;
  font-family: var(--preview-meaning-font);
  font-size: calc(9px * var(--preview-meaning-scale));
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--preview-font-color, #050505);
}

.typography-root-preview {
  position: relative;
  height: 100%;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 48%, rgba(116, 78, 34, 0.76), rgba(17, 24, 39, 0.9) 58%),
    var(--preview-background-color, #fff);
}

.typography-root-core {
  position: absolute;
  top: 49%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 94px;
  height: 94px;
  padding-top: 21px;
  border: 2px solid var(--preview-border-color, rgba(255, 255, 255, 0.88));
  border-radius: 50%;
  color: #fff;
  background: rgba(64, 38, 18, 0.72);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
  z-index: 3;
}

.typography-root-core strong {
  color: var(--preview-active-font-color, #fbbf24);
  font-family: var(--preview-word-font);
  font-size: calc(23px * var(--preview-title-scale));
  font-weight: 950;
  line-height: 0.9;
}

.typography-root-core small {
  color: var(--preview-font-color, #fff);
  font-family: var(--preview-word-font);
  font-size: calc(7px * var(--preview-phonetic-scale));
  line-height: 1;
}

.typography-root-core em {
  color: var(--preview-font-color, #fff);
  font-family: var(--preview-meaning-font);
  font-size: calc(10px * var(--preview-meaning-scale));
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.typography-root-node {
  position: absolute;
  display: grid;
  justify-items: center;
  z-index: 3;
  color: var(--preview-font-color, #fff);
  font-family: var(--preview-word-font);
  font-size: calc(9px * var(--preview-word-scale));
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 3px #000;
}

.typography-root-node small {
  margin-top: 2px;
  font-family: var(--preview-meaning-font);
  font-size: calc(7px * var(--preview-meaning-scale));
}

.typography-root-node::after {
  position: absolute;
  top: 16px;
  width: 38px;
  border-top: 1px solid rgba(251, 191, 36, 0.8);
  content: "";
}

.typography-root-node.node-a { top: 23%; left: 8%; }
.typography-root-node.node-a::after { left: 72%; transform: rotate(23deg); transform-origin: left; }
.typography-root-node.node-b { top: 23%; right: 8%; }
.typography-root-node.node-b::after { right: 72%; transform: rotate(-23deg); transform-origin: right; }
.typography-root-node.node-c { right: 6%; bottom: 19%; }
.typography-root-node.node-c::after { right: 78%; transform: rotate(27deg); transform-origin: right; }
.typography-root-node.node-d { bottom: 7%; left: 50%; transform: translateX(-50%); }
.typography-root-node.node-d::after { bottom: 100%; left: 50%; transform: rotate(90deg); transform-origin: left; }
.typography-root-node.node-e { bottom: 19%; left: 6%; }
.typography-root-node.node-e::after { left: 78%; transform: rotate(-27deg); transform-origin: left; }
.typography-root-node.node-f { top: 7%; left: 50%; transform: translateX(-50%); }
.typography-root-node.node-f::after { top: 100%; left: 50%; transform: rotate(90deg); transform-origin: left; }

.typography-root-poster,
.typography-muyu-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.typography-root-poster {
  opacity: 0.72;
  filter: saturate(0.82) brightness(0.62);
}

.typography-root-shade,
.typography-muyu-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.typography-root-shade {
  background: rgba(8, 5, 16, 0.52);
}

.typography-muyu-preview {
  position: relative;
  display: grid;
  height: 100%;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 203, 83, 0.35), transparent 27%),
    linear-gradient(160deg, rgba(45, 22, 11, 0.9), rgba(95, 46, 18, 0.86) 50%, rgba(22, 12, 7, 0.92)),
    var(--preview-background-color, #fff);
}

.typography-muyu-preview > div {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 16px 8px;
  text-shadow: 0 2px 3px #000;
}

.typography-muyu-poster {
  filter: saturate(1.04) brightness(0.78);
}

.typography-preview.has-custom-background .typography-root-poster,
.typography-preview.has-custom-background .typography-muyu-poster {
  opacity: 0.2;
}

.typography-preview.has-custom-color .typography-root-poster,
.typography-preview.has-custom-color .typography-muyu-poster {
  opacity: 0.34;
}

.typography-muyu-shade {
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.18));
}

.typography-muyu-copy {
  min-width: 66%;
  border: 2px solid var(--preview-border-color, rgba(255,255,255,0.72));
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(8px);
}

.typography-muyu-preview strong {
  color: var(--preview-active-font-color, #fff);
  font-family: var(--preview-word-font);
  font-size: calc(22px * var(--preview-word-scale));
  font-weight: 1000;
  line-height: 0.9;
}

.typography-muyu-preview small {
  color: var(--preview-font-color, #fff);
  font-family: var(--preview-word-font);
  font-size: calc(9px * var(--preview-phonetic-scale));
}

.typography-muyu-preview em {
  color: var(--preview-font-color, #fff);
  font-family: var(--preview-meaning-font);
  font-size: calc(14px * var(--preview-meaning-scale));
  font-style: normal;
  font-weight: 950;
}

.typography-muyu-beat {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 4;
  color: var(--preview-active-font-color, #fbbf24);
  font-size: 28px;
  text-shadow: 0 2px 4px #000;
}

.typography-preview[data-preview-template="arrow"] .typography-preview-card.is-preview-active::after {
  display: block;
  color: #e1251b;
  font-size: 22px;
  font-weight: 950;
  line-height: 9px;
  content: "➜";
  transform: rotate(225deg);
}

.typography-preview[data-preview-template="circle"] .typography-preview-card.is-preview-active {
  outline: 3px solid #e1251b;
  outline-offset: -2px;
  border-radius: 8px;
}

.typography-preview[data-preview-template="checkin"] {
  background: #fff;
}

.typography-preview[data-preview-template="checkin"] .typography-preview-card {
  border: 2px solid #f0a898;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(232, 160, 144, 0.22), 0 8px 14px rgba(120, 70, 50, 0.08);
}

.typography-preview[data-preview-template="checkin"] .typography-preview-card.is-preview-active {
  background: #fff;
  border-color: #ef6a55;
}

.typography-preview[data-preview-template="checkin"] .typography-preview-phonetic {
  display: block;
}

.typography-preview-template-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 22px 8px 8px;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.78);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.84));
}

.typography-preview-template-copy strong {
  font-family: var(--preview-meaning-font);
  font-size: calc(10px * var(--preview-title-scale));
  font-weight: 900;
}

.typography-preview-template-copy b {
  font-family: var(--preview-word-font);
  font-size: calc(15px * var(--preview-word-scale));
  line-height: 1;
}

.typography-preview-template-copy small {
  font-family: var(--preview-word-font);
  font-size: calc(8px * var(--preview-phonetic-scale));
  line-height: 1;
}

.typography-preview-template-copy em {
  font-family: var(--preview-meaning-font);
  font-size: calc(10px * var(--preview-meaning-scale));
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.typography-preview-card {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  padding: 3px 1px;
}

.typography-preview-art {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: #fff7ed;
  font-size: clamp(16px, 4vw, 32px);
}

.typography-preview-card strong {
  color: #050505;
  font-family: var(--preview-word-font);
  max-width: 100%;
  overflow: hidden;
  font-size: calc(12px * var(--preview-word-scale));
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

.typography-preview-card small {
  color: #4e4e4e;
  font-family: var(--preview-word-font);
  max-width: 100%;
  overflow: hidden;
  font-size: calc(7px * var(--preview-phonetic-scale));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.typography-preview-card em {
  color: #050505;
  font-family: var(--preview-meaning-font);
  max-width: 100%;
  overflow: hidden;
  font-size: calc(10px * var(--preview-meaning-scale));
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generation-only-hint {
  display: block;
  color: #b54708;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.vocab-live-preview-panel .typography-preview {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  background-image: none;
}

.vocab-live-preview-panel .typography-preview-title {
  flex: 0 0 auto;
  padding: 20px 10px 12px;
  font-size: calc(22px * var(--preview-title-scale));
  line-height: 1.05;
  color: var(--preview-title-color, #9a4a52);
}

.vocab-live-preview-panel .typography-preview-subtitle {
  flex: 0 0 auto;
  margin-top: -6px;
  padding: 0 10px 4px;
  color: var(--preview-subtitle-color, #475467);
  font-family: var(--preview-meaning-font);
  font-size: calc(11px * var(--preview-title-scale));
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.vocab-live-preview-panel .typography-preview-subtitle[hidden] {
  display: none;
}

.vocab-live-preview-panel .typography-preview-grid {
  flex: 1;
  min-height: 0;
  grid-template-rows: repeat(var(--preview-rows), minmax(0, 1fr));
  gap: 7px;
  padding: 10px 10px 18px;
}

.vocab-live-preview-panel .typography-preview-card {
  position: relative;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 2px;
  padding: 6px 5px 7px;
  overflow: visible;
  border: 1px solid var(--preview-border-color, #fff);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.vocab-live-preview-panel .typography-preview:not([data-preview-template="checkin"]).has-custom-background .typography-preview-card,
.vocab-live-preview-panel .typography-preview:not([data-preview-template="checkin"]).has-custom-color .typography-preview-card {
  border: 1px solid var(--preview-border-color, rgba(16, 24, 40, 0.08));
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
}

.vocab-live-preview-panel .typography-preview-art {
  position: relative;
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f4ef;
}

.vocab-live-preview-panel .typography-preview-style-texture {
  position: absolute;
  inset: -6px;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.1;
  filter: blur(3px) saturate(1.2);
  transform: scale(1.14);
}

.vocab-live-preview-panel .typography-preview-semantic-art {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 3px 3px rgba(15, 23, 42, 0.12));
}

.vocab-live-preview-panel .typography-preview[data-preview-count="4"] .typography-preview-semantic-art {
  font-size: 52px;
}

.vocab-live-preview-panel .typography-preview[data-preview-count="9"] .typography-preview-semantic-art,
.vocab-live-preview-panel .typography-preview[data-preview-count="12"] .typography-preview-semantic-art {
  font-size: 36px;
}

.vocab-live-preview-panel .typography-preview-card strong {
  min-height: 1em;
  color: var(--preview-font-color, #050505);
  font-size: calc(12px * var(--preview-word-scale));
}

.vocab-live-preview-panel .typography-preview-card small {
  min-height: 1em;
  color: var(--preview-font-color, #343434);
  font-size: calc(7px * var(--preview-phonetic-scale));
  font-weight: 850;
}

.vocab-live-preview-panel .typography-preview-card em {
  min-height: 1em;
  color: var(--preview-font-color, #050505);
  font-size: calc(10px * var(--preview-meaning-scale));
}

.vocab-live-preview-panel .typography-preview-card.is-preview-active strong,
.vocab-live-preview-panel .typography-preview-card.is-preview-active small,
.vocab-live-preview-panel .typography-preview-card.is-preview-active em {
  color: var(--preview-active-font-color, #e1251b);
}

.vocab-live-preview-panel .typography-preview[data-preview-count="4"] .typography-preview-card strong {
  font-size: calc(18px * var(--preview-word-scale));
}

.vocab-live-preview-panel .typography-preview[data-preview-count="4"] .typography-preview-card small {
  font-size: calc(10px * var(--preview-phonetic-scale));
}

.vocab-live-preview-panel .typography-preview[data-preview-count="4"] .typography-preview-card em {
  font-size: calc(14px * var(--preview-meaning-scale));
}

.vocab-live-preview-panel .typography-preview[data-preview-count="9"] .typography-preview-card strong,
.vocab-live-preview-panel .typography-preview[data-preview-count="12"] .typography-preview-card strong {
  font-size: calc(14px * var(--preview-word-scale));
}

.vocab-live-preview-panel .typography-preview[data-preview-count="9"] .typography-preview-card small,
.vocab-live-preview-panel .typography-preview[data-preview-count="12"] .typography-preview-card small {
  font-size: calc(8px * var(--preview-phonetic-scale));
}

.vocab-live-preview-panel .typography-preview[data-preview-count="9"] .typography-preview-card em,
.vocab-live-preview-panel .typography-preview[data-preview-count="12"] .typography-preview-card em {
  font-size: calc(11px * var(--preview-meaning-scale));
}

.vocab-live-preview-panel .typography-preview[data-preview-template="arrow"] .is-preview-active::after {
  position: absolute;
  right: -12px;
  bottom: 23%;
  z-index: 3;
  color: var(--preview-active-font-color, #e1251b);
  filter: drop-shadow(0 2px 1px rgba(255, 255, 255, 0.9));
}

.vocab-live-preview-panel .typography-preview[data-preview-template="circle"] .is-preview-active {
  outline: 4px solid var(--preview-active-font-color, #e1251b);
  outline-offset: -2px;
}

.vocab-live-preview-panel .typography-preview[data-preview-template="checkin"].has-custom-border .typography-preview-card {
  border-color: var(--preview-border-color);
}

.vocab-live-preview-panel .typography-preview[data-preview-template="checkin"] .typography-preview-card.is-preview-active {
  border-color: var(--preview-active-font-color, #e1251b);
}

.vocab-live-preview-panel .typography-preview[data-preview-template="checkin"] .is-preview-active::after {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--preview-active-font-color, #e1251b);
  content: "✓";
  font-size: 13px;
  font-weight: 950;
}

.vocab-live-preview-panel .typography-preview-template {
  flex: 1;
  min-height: 0;
}

.typography-special-poster-preview {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
}

.typography-special-poster-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.typography-special-poster-preview > span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.62);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.vocab-live-preview-panel .typography-memory-preview-head {
  padding: 24px 10px 18px;
}

.vocab-live-preview-panel .typography-memory-preview-head strong {
  color: var(--preview-title-color, #050505);
  font-size: calc(20px * var(--preview-title-scale));
}

.vocab-live-preview-panel .typography-memory-preview-head span {
  margin-top: 5px;
  font-size: calc(14px * var(--preview-title-scale));
  color: var(--preview-subtitle-color, #050505);
}

.vocab-live-preview-panel .typography-memory-preview-list {
  height: calc(100% - 85px);
  grid-template-rows: repeat(9, minmax(0, 1fr));
}

.vocab-live-preview-panel .typography-memory-preview-row {
  min-height: 0;
}

.vocab-live-preview-panel .typography-memory-preview-row.active {
  background: var(--memory-preview-color, #ff8507);
  color: var(--preview-active-font-color, #e1251b);
}

.vocab-live-preview-panel .typography-memory-preview-row b {
  font-size: calc(14px * var(--preview-word-scale));
}

.vocab-live-preview-panel .typography-memory-preview-row small {
  font-size: calc(8px * var(--preview-phonetic-scale));
}

.vocab-live-preview-panel .typography-memory-preview-row em {
  font-size: calc(13px * var(--preview-meaning-scale));
}

.vocab-live-preview-panel .typography-root-core {
  width: 140px;
  height: 140px;
  padding-top: 31px;
}

.vocab-live-preview-panel .typography-root-core strong {
  color: var(--preview-active-font-color, #e1251b);
  font-size: calc(34px * var(--preview-title-scale));
}

.vocab-live-preview-panel .typography-root-node {
  font-size: calc(14px * var(--preview-word-scale));
}

.vocab-live-preview-panel .typography-root-node small {
  font-size: calc(11px * var(--preview-meaning-scale));
}

.vocab-live-preview-panel .typography-muyu-preview strong {
  color: var(--preview-active-font-color, #e1251b);
  font-size: calc(40px * var(--preview-word-scale));
}

.vocab-live-preview-panel .typography-muyu-preview small {
  font-size: calc(15px * var(--preview-phonetic-scale));
}

.vocab-live-preview-panel .typography-muyu-preview em {
  font-size: calc(22px * var(--preview-meaning-scale));
}

.vocab-live-preview-panel .typography-preview.has-custom-background .typography-memory-preview,
.vocab-live-preview-panel .typography-preview.has-custom-background .typography-root-preview,
.vocab-live-preview-panel .typography-preview.has-custom-background .typography-muyu-preview {
  background: rgba(22, 18, 16, 0.58);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.checkbox-label input {
  width: 16px;
  height: 16px;
}

.reference-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.reference-upload input[type="file"] {
  width: 100%;
  min-height: 46px;
  border: 1px dashed rgba(148, 163, 184, 0.8);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.reference-upload span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.reference-preview {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.reference-preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #fff;
}

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

.selected-template {
  border: 1px solid rgba(208, 213, 221, 0.9);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.selected-template span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.selected-template strong {
  font-size: 17px;
  line-height: 1.2;
}

.selected-template button {
  padding: 8px 14px;
}

.generate-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 10px;
}

.generate-actions button {
  min-width: 180px;
}

.topic-only {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 220px auto;
  gap: 14px;
  align-items: end;
}

.topic-only .field {
  margin-bottom: 0;
}

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

.field {
  margin-bottom: 18px;
}

label, .label {
  display: block;
  color: #475467;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 131, 253, 0.12);
}

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

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

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.message {
  min-height: 22px;
  color: #b42318;
  font-weight: 750;
}

.hidden {
  display: none !important;
}

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

.status-row > div {
  background: #111827;
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
}

.status-row .label {
  color: #98a2b3;
}

.workspace-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.personal-center {
  width: min(1480px, calc(100vw - 40px));
  padding-top: 28px;
  padding-bottom: 42px;
}

.center-shell {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.center-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.center-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar-user {
  width: 100%;
  display: grid;
  place-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.avatar-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  letter-spacing: 0;
  flex: 0 0 auto;
}

.account-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.center-tabs {
  width: 100%;
  display: grid;
  gap: 10px;
}

.center-tab {
  width: 100%;
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 5px;
  border-radius: 22px;
  padding: 10px 6px;
  background: transparent;
  color: #64748b;
  box-shadow: none;
}

.center-tab span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #eef2f6;
  color: #334155;
  font-size: 15px;
  font-weight: 950;
}

.center-tab strong {
  font-size: 13px;
  font-weight: 900;
}

.center-tab.active {
  background: #111827;
  color: #fff;
}

.center-tab.active span {
  background: #0a84ff;
  color: #fff;
}

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

.center-panel {
  padding: 34px;
}

.center-panel[data-tab-panel="tasks"] {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.center-panel .workspace-panel {
  box-shadow: none;
}

.center-panel .workspace-panel:last-child {
  margin-bottom: 0;
}

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

.account-grid > div {
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  padding: 18px;
}

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

.compact-head {
  align-items: center;
}

.subtle-head {
  align-items: center;
  margin-bottom: 16px;
}

.mode-label {
  border-radius: 999px;
  background: #eef6ff;
  color: var(--accent-dark);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
}

.jobs {
  display: grid;
  gap: 12px;
}

.job {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  display: grid;
  gap: 18px;
  background: #fff;
}

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

.job-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

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

.job-actions button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
}

.job-title {
  font-size: 22px;
  font-weight: 900;
}

.job-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 0 10px;
  font-weight: 800;
}

.job-meta .job-id {
  background: #e0e7ff;
  color: #3730a3;
}

.job-meta .job-error {
  background: #fef3f2;
  color: #b42318;
}

.job-meta .job-wait-tip {
  background: #eff8ff;
  color: #175cd3;
}

.job-body {
  display: grid;
  gap: 16px;
}

.job-retention-tip {
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 14px;
  background: #fffbeb;
  color: #92400e;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.job-image-grid {
  --grid-columns: 4;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  gap: 12px;
}

.memory-image-grid {
  width: min(560px, 100%);
}

.muyu-image-grid {
  width: min(680px, 100%);
  gap: 10px;
}

.muyu-image-grid .image-cell {
  aspect-ratio: 3.25 / 1;
  justify-content: flex-start;
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 50%, rgba(255, 210, 118, 0.2), transparent 32%),
    linear-gradient(135deg, #fffaf1 0%, #f8fafc 58%, #fff 100%);
}

.muyu-image-grid .image-cell.empty {
  justify-content: center;
}

.muyu-image-grid .image-cell.generating::before,
.muyu-image-grid .image-cell-state,
.muyu-image-grid .image-preview-link {
  inset: 8px auto 8px 8px;
  width: 132px;
  border-radius: 18px;
}

.muyu-image-grid .image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.muyu-image-grid .image-card-label {
  left: 158px;
  right: 52px;
  top: 50%;
  bottom: auto;
  min-height: 0;
  place-items: start;
  text-align: left;
  transform: translateY(-50%);
}

.muyu-image-grid .image-card-label::before {
  content: "木鱼冲击背景图";
  margin-bottom: 8px;
  color: #92400e;
  font-size: 12px;
  font-weight: 950;
}

.muyu-image-grid .image-card-label strong {
  font-size: 22px;
}

.muyu-image-grid .image-card-label span {
  margin-top: 4px;
  font-size: 15px;
}

.root-image-grid {
  width: min(680px, 100%);
  gap: 10px;
}

.root-image-grid .image-cell {
  aspect-ratio: 3.25 / 1;
  justify-content: flex-start;
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 50%, rgba(45, 212, 191, 0.2), transparent 32%),
    linear-gradient(135deg, #ecfeff 0%, #f8fafc 58%, #fff 100%);
}

.root-image-grid .image-cell.empty {
  justify-content: center;
}

.root-image-grid .image-cell.generating::before,
.root-image-grid .image-cell-state,
.root-image-grid .image-preview-link {
  inset: 8px auto 8px 8px;
  width: 132px;
  border-radius: 18px;
}

.root-image-grid .image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.root-image-grid .image-card-label {
  left: 158px;
  right: 52px;
  top: 50%;
  bottom: auto;
  min-height: 0;
  place-items: start;
  text-align: left;
  transform: translateY(-50%);
}

.root-image-grid .image-card-label::before {
  content: "词根关系背景图";
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
}

.root-image-grid .image-card-label strong {
  font-size: 22px;
}

.root-image-grid .image-card-label span {
  margin-top: 4px;
  font-size: 15px;
}

.image-cell {
  position: relative;
  aspect-ratio: 0.94;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.image-cell.filled {
  background: #fff;
}

.image-cell.generating {
  border-color: #cfe3ff;
  background:
    radial-gradient(circle at 50% 34%, rgba(15, 131, 253, 0.12), transparent 28%),
    linear-gradient(110deg, #f8fbff 0%, #eef6ff 38%, #ffffff 52%, #eef6ff 68%, #f8fbff 100%);
  background-size: auto, 220% 100%;
  animation: imageCellLoading 1.35s ease-in-out infinite;
}

.image-cell.generating::before {
  content: "";
  position: absolute;
  inset: 18px 18px 58px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.86), transparent),
    linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
  background-size: 180% 100%, auto;
  box-shadow: inset 0 0 0 1px rgba(15, 131, 253, 0.08);
  animation: imageSkeletonSweep 1.2s ease-in-out infinite;
}

.image-preview-link {
  position: absolute;
  inset: 8px 8px 42px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-cell img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  display: block;
}

.image-card-label {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 8px;
  z-index: 1;
  min-height: 32px;
  display: grid;
  place-items: center;
  gap: 1px;
  color: #111827;
  line-height: 1.05;
  text-align: center;
  pointer-events: none;
}

.image-card-label strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 950;
}

.image-card-label span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.image-cell-state {
  position: absolute;
  inset: 8px 8px 42px;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.image-cell.generating .image-cell-state {
  background: rgba(255, 255, 255, 0.38);
}

.image-cell-state span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 3px solid #dbeafe;
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes imageCellLoading {
  0% {
    background-position: center, 0% 0;
  }
  100% {
    background-position: center, -220% 0;
  }
}

@keyframes imageSkeletonSweep {
  0% {
    background-position: 140% 0, 0 0;
  }
  100% {
    background-position: -140% 0, 0 0;
  }
}

.image-edit-button {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(17, 24, 39, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.image-edit-button:disabled {
  cursor: wait;
}

.job-result {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 16px;
}

.result-media {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(140px, 200px);
  gap: 14px;
  align-items: start;
}

.result-media-item {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.result-media-item .label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
}

.result-video,
.result-cover,
.result-video-launch {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  overflow: hidden;
}

.result-video,
.result-video-launch {
  aspect-ratio: 9 / 16;
  display: block;
}

.result-video-launch {
  position: relative;
  padding: 0;
  cursor: pointer;
  color: #fff;
}

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

.result-video-play,
.result-video-placeholder {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.result-video-launch:disabled {
  cursor: wait;
  opacity: 0.82;
}

.result-cover {
  aspect-ratio: 3 / 4;
  display: block;
}

.result-audio {
  width: 100%;
  grid-column: 1 / -1;
}

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

.douyin-copy {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.douyin-copy strong {
  font-size: 17px;
  line-height: 1.45;
}

.douyin-copy p {
  color: var(--muted);
  line-height: 1.65;
  font-weight: 650;
}

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

.tag-row span {
  border-radius: 999px;
  background: #eef6ff;
  color: var(--accent-dark);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 850;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  background: #ecfdf3;
  color: #027a48;
  font-weight: 900;
  font-size: 13px;
}

.badge.failed {
  background: #fef3f2;
  color: #b42318;
}

.preview-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.preview-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 14px;
  background: #eef6ff;
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration: none;
}

.preview-links a.download-link {
  background: var(--accent);
  color: #fff;
}

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

.memory-word-list-compact {
  width: min(560px, 100%);
}

.memory-word-list span {
  min-height: 62px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.memory-word-list-compact span {
  min-height: 50px;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.memory-word-list strong {
  font-size: 16px;
  color: #111827;
}

.memory-word-list em {
  margin-top: 4px;
  color: #92400e;
  font-style: normal;
  font-weight: 800;
}

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

@media (max-width: 1180px) {
  .vocab-workspace-shell {
    width: min(100%, calc(100vw - 32px));
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "templates"
      "editor";
  }

  .vocab-workspace-shell .template-strip-section {
    position: static;
  }

  .vocab-template-heading {
    padding-left: 4px;
  }

  .vocab-workspace-shell .home-template-strip {
    max-height: none;
    display: flex;
    gap: 10px;
    padding: 6px 4px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .vocab-workspace-shell .home-template-card {
    flex: 0 0 118px;
    width: 118px;
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .vocab-workspace-shell .home-template-card .home-card-cover {
    width: 38px;
    height: 51px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 54px;
  }

  .simple-home {
    width: min(100%, calc(100vw - 32px));
    padding: 24px 0 22px;
  }

  .vocab-workspace-shell .simple-home {
    width: 100%;
    padding: 0;
  }

  .vocab-workspace-shell .simple-home-inner {
    grid-template-columns: minmax(320px, 1fr) minmax(300px, 360px);
    gap: 16px;
  }

  .vocab-live-preview-panel {
    top: 72px;
    padding: 14px;
  }

  .vocab-preview-stage {
    min-height: 580px;
    padding: 10px;
  }

  .home-template-strip {
    gap: 12px;
    padding: 8px 4px 12px;
    scroll-snap-type: x mandatory;
  }

  .home-template-card {
    flex: 0 0 104px;
    width: 104px;
    min-width: 104px;
    outline-width: 2px;
    outline-offset: 3px;
  }

  .home-card-name {
    font-size: 12px;
  }

  .featured-section {
    width: min(100%, calc(100vw - 32px));
    padding-bottom: 72px;
  }

  .featured-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .featured-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
  }

  .hero-preview {
    justify-content: flex-start;
  }

  .feature-grid, .output-grid, .two, .status-row, .topic-only, .account-grid, .generate-form {
    grid-template-columns: 1fr;
  }

  .template-choice-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .job-header {
    display: grid;
  }

  .job-toolbar,
  .job-actions {
    justify-content: flex-start;
  }

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

  .center-sidebar {
    position: static;
    grid-template-columns: auto 1fr;
    justify-items: stretch;
    align-items: center;
    border-radius: 22px;
  }

  .sidebar-user {
    width: auto;
    padding: 0 12px 0 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

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

@media (max-width: 760px) {
  .vocab-workspace-shell {
    width: min(100%, calc(100vw - 24px));
    padding-top: 14px;
  }

  .vocab-workspace-shell .simple-home-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .vocab-live-preview-panel {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  .vocab-controls-heading,
  .vocab-workspace-shell .prompt-chips,
  .vocab-workspace-shell #homePromptForm,
  .vocab-workspace-shell #homeImageStyleCustomField,
  .vocab-workspace-shell .vocab-live-controls,
  .vocab-workspace-shell #homeExcelPanel,
  .vocab-workspace-shell #homeAdvancedOptions,
  .vocab-workspace-shell #homeCreateMsg {
    grid-column: 1;
  }

  .vocab-preview-stage {
    min-height: 0;
  }

  .vocab-live-preview-panel .typography-preview {
    width: min(330px, 100%);
  }
}

@media (max-width: 620px) {
  .hero, .section {
    width: min(var(--container-max), calc(100vw - 28px));
  }

  .site-nav {
    padding: 0 14px;
  }

  .nav-user-text {
    display: none;
  }

  h1 {
    font-size: 40px;
    line-height: 1.04;
  }

  .hero {
    padding-top: 42px;
    gap: 30px;
  }

  .simple-home {
    width: min(100%, calc(100vw - 24px));
    padding-top: 18px;
  }

  .title-copy-grid {
    grid-template-columns: 1fr;
  }

  .simple-home h1 {
    font-size: 38px;
    letter-spacing: -0.04em;
  }

  .simple-home-subtitle {
    font-size: 15px;
  }

  .prompt-chips {
    justify-content: flex-start;
    margin-top: 26px;
  }

  .home-prompt-box {
    min-height: 138px;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 16px;
  }

  .home-prompt-input {
    flex-basis: 100%;
  }

  .home-grid-field {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .home-grid-field select {
    min-width: 150px;
  }

  .home-prompt-submit {
    flex: 1;
  }

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

  .template-strip-section {
    width: min(100%, calc(100vw - 24px));
    padding-bottom: 66px;
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-proof {
    margin-top: 30px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-proof div {
    padding-right: 10px;
  }

  .hero-proof strong {
    font-size: 18px;
  }

  .hero-proof span {
    font-size: 11px;
  }

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

  .studio-preview {
    width: 100%;
    min-height: 520px;
    padding: 14px 12px 18px;
    border-radius: 24px;
  }

  .phone-frame {
    width: min(292px, calc(100vw - 58px));
    height: 520px;
    border-width: 8px;
    border-radius: 32px;
    padding: 18px 14px;
  }

  .memory-title {
    font-size: 22px;
  }

  .memory-topic {
    font-size: 18px;
  }

  .memory-board {
    margin-top: 22px;
    gap: 8px;
    padding: 12px;
  }

  .memory-board div {
    min-height: 52px;
    padding: 0 14px;
  }

  .memory-board strong {
    font-size: 20px;
  }

  .memory-board span {
    font-size: 17px;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .template-option {
    padding: 8px;
    gap: 6px;
  }

  .template-option strong {
    font-size: 12px;
  }

  .result-media {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .vocab-workspace-shell *,
  .vocab-workspace-shell *::before,
  .vocab-workspace-shell *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.vocab-workspace-shell button:focus-visible,
.vocab-workspace-shell input:focus-visible,
.vocab-workspace-shell select:focus-visible,
.vocab-workspace-shell textarea:focus-visible,
.vocab-workspace-shell summary:focus-visible,
.vocab-workspace-shell a:focus-visible {
  outline: 3px solid rgba(15, 131, 253, 0.42);
  outline-offset: 2px;
}

.podcast-studio {
  padding: 40px 0 72px;
}

.podcast-shell {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.podcast-create-panel,
.podcast-editor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.podcast-create-panel {
  position: sticky;
  top: 88px;
}

.podcast-create-panel h1,
.podcast-editor h2 {
  margin: 8px 0 10px;
}

.podcast-field,
.podcast-speakers label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 800;
}

.podcast-field {
  margin: 18px 0;
}

.podcast-field input,
.podcast-line textarea,
.podcast-speakers select,
.podcast-line select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.podcast-field input,
.podcast-speakers select,
.podcast-line select {
  min-height: 44px;
  padding: 0 12px;
}

.podcast-field.compact {
  width: 150px;
}

.podcast-editor-head,
.podcast-speakers,
.podcast-actions,
.podcast-line-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.podcast-editor-head {
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.podcast-speakers {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #edf0f3;
  border-radius: 14px;
  background: #f8fafc;
}

.podcast-speakers label {
  flex: 1 1 220px;
}

.podcast-lines {
  display: grid;
  gap: 12px;
}

.podcast-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #edf0f3;
  border-radius: 14px;
  background: #fff;
}

.podcast-line-meta {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  color: var(--muted);
}

.podcast-line-meta span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef2f6;
  color: #344054;
  font-weight: 900;
}

.podcast-line-meta strong {
  color: var(--accent);
}

.podcast-line-body {
  display: grid;
  gap: 10px;
}

.podcast-line textarea {
  min-height: 72px;
  resize: vertical;
  padding: 12px;
  line-height: 1.6;
}

.podcast-line-actions select {
  max-width: 220px;
}

.podcast-actions {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .podcast-shell {
    grid-template-columns: 1fr;
  }

  .podcast-create-panel {
    position: static;
  }
}
