:root {
  --page: #F4F6F5;
  --card: #FFFFFF;
  --line: #E3E8E6;
  --ink: #14201D;
  --ink2: #5C6B66;
  --brand: #1B6B5A;
  --brand-dark: #145446;
  --brand-soft: #E8F2EE;
  --gold: #C8A15A;
  --gold-soft: #FAF4E9;
  --danger: #B4453C;
  --danger-soft: #FBEDEB;
  --warn: #A9701F;
  --warn-soft: #FBF3E4;
  --shadow: 0 1px 2px rgba(20, 32, 29, .06);
  --shadow-raised: 0 10px 30px rgba(20, 32, 29, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid rgba(27, 107, 90, .35); outline-offset: 2px; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 208px;
  flex-direction: column;
  padding: 24px 16px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 7px 22px;
  color: var(--ink);
}
.brand img { flex: 0 0 auto; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: 17px; letter-spacing: .02em; }
.brand-copy small { margin-top: 4px; color: var(--ink2); font-size: 10px; letter-spacing: .04em; }
.sidebar-nav { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink2);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.nav-item svg { width: 20px; height: 20px; flex: 0 0 auto; }
.nav-item:hover { color: var(--ink); background: #F5F8F7; }
.nav-item[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 17px 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink2);
  font-size: 11px;
}
.status-light { width: 6px; height: 6px; border-radius: 999px; background: #66A98F; box-shadow: 0 0 0 3px rgba(102, 169, 143, .12); }
.main-wrap { min-width: 0; margin-left: 208px; }
.content {
  width: 100%;
  max-width: 1120px;
  min-height: calc(100vh - 158px);
  margin: 0 auto;
  padding: 28px 36px 24px;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 36px 28px;
  color: var(--ink2);
  font-size: 11px;
}
.footer-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0 11px;
  border-top: 1px solid var(--line);
}
.manual { border-top: 1px solid var(--line); }
.manual summary {
  width: fit-content;
  padding: 10px 0;
  color: var(--ink2);
  cursor: pointer;
  list-style: none;
}
.manual summary::-webkit-details-marker { display: none; }
.manual summary::before { content: "+"; display: inline-block; width: 18px; color: var(--brand); font-weight: 800; }
.manual[open] summary::before { content: "−"; }
.manual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  padding: 8px 0 18px;
}
.manual-grid section { padding: 13px 14px; border-radius: 10px; background: rgba(255, 255, 255, .55); }
.manual-grid h3 { margin: 0 0 4px; color: var(--ink); font-size: 12px; }
.manual-grid p { margin: 0; line-height: 1.7; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.page-head h1 { margin: 3px 0 6px; font-size: clamp(25px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -.02em; }
.page-subtitle { margin: 0; color: var(--ink2); font-size: 13px; }
.eyebrow { margin: 0; color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.head-note { color: var(--ink2); font-size: 12px; text-align: right; }
.head-note strong { color: var(--ink); font-size: 18px; }

.card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.create-stack { display: flex; min-width: 0; flex-direction: column; gap: 14px; }
.create-stack[inert] { opacity: .64; }
.step { overflow: hidden; }
.step summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.step summary::-webkit-details-marker { display: none; }
.step-num {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
}
.step-copy { min-width: 0; flex: 1; }
.step-copy strong { display: block; font-size: 15px; line-height: 1.4; }
.step-copy small { display: block; margin-top: 1px; color: var(--ink2); font-size: 11px; }
.step-chevron { width: 18px; height: 18px; color: var(--ink2); transition: transform .18s ease; }
.step[open] .step-chevron { transform: rotate(180deg); }
.step-body { padding: 0 20px 20px; }

.upload-zone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 94px;
  padding: 16px 18px;
  border: 1px dashed #B8C9C3;
  border-radius: 12px;
  color: var(--ink);
  background: #FAFCFB;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--brand); background: #F5FAF8; box-shadow: inset 0 0 0 1px rgba(27, 107, 90, .08); }
.upload-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-soft);
}
.upload-icon svg { width: 23px; height: 23px; }
.upload-copy { min-width: 0; flex: 1; }
.upload-copy strong { display: block; margin-bottom: 3px; font-size: 13px; }
.upload-copy span { display: block; color: var(--ink2); font-size: 11px; line-height: 1.55; }
.upload-file {
  max-width: 175px;
  padding: 5px 9px;
  border-radius: 7px;
  color: var(--ink2);
  background: #EEF3F1;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-file.has-file { color: var(--brand); background: var(--brand-soft); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.field-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { min-width: 0; }
.field label { display: block; margin: 0 0 5px; color: var(--ink2); font-size: 11px; }
.input, .textarea, .select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input, .select { height: 40px; padding: 0 11px; }
.textarea { min-height: 154px; padding: 11px 12px 30px; line-height: 1.75; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #9AA7A2; }
.input:hover, .textarea:hover, .select:hover { border-color: #C8D4D0; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); outline: 3px solid rgba(27, 107, 90, .10); }
.textarea-wrap { position: relative; margin-top: 12px; }
.char-count { position: absolute; right: 11px; bottom: 9px; color: var(--ink2); font-size: 10px; pointer-events: none; }
.consent-box { margin-top: 13px; padding: 11px 12px; border-radius: 10px; background: #F7F9F8; }
.consent-label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 11px; font-weight: 700; }
.consent-text {
  display: block;
  width: 100%;
  min-height: 90px;
  box-sizing: border-box;
  padding: 8px 9px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink2);
  background: #fff;
  font-size: 10px;
  line-height: 1.65;
  resize: none;
}
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; color: var(--ink2); font-size: 11px; line-height: 1.55; cursor: pointer; }
.checkbox-row input { width: 15px; height: 15px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--brand); }
.consent-check { margin-top: 9px; color: var(--ink); }

.lip-sync-block { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.lip-sync-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.lip-sync-heading div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.lip-sync-heading strong { font-size: 12px; }
.lip-sync-heading span { color: var(--ink2); font-size: 9px; line-height: 1.5; }
.lip-sync-limit { flex: 0 0 auto; padding: 2px 7px; border-radius: 999px; color: var(--warn); background: var(--warn-soft); font-size: 8px !important; font-weight: 700; }
.lip-sync-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.lip-sync-option {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  padding: 10px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #FBFCFB;
  text-align: left;
  cursor: pointer;
}
.lip-sync-option:hover { border-color: #BFD4CC; background: #F7FBF9; }
.lip-sync-option.is-selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(27, 107, 90, .07); }
.lip-sync-option:disabled { opacity: .48; cursor: not-allowed; }
.lip-sync-check { display: grid; width: 15px; height: 15px; margin-top: 1px; place-items: center; border: 1px solid #C9D4D0; border-radius: 50%; color: transparent; background: #fff; font-size: 9px; }
.lip-sync-option.is-selected .lip-sync-check { border-color: var(--brand); color: #fff; background: var(--brand); }
.lip-sync-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.lip-sync-copy strong { font-size: 10px; line-height: 1.35; }
.lip-sync-copy small { color: var(--ink2); font-size: 8px; line-height: 1.45; }
.lip-sync-price { grid-column: 2; color: var(--brand); font-size: 9px; font-weight: 800; }
.lip-sync-note { margin: 8px 0 0; color: var(--ink2); font-size: 8px; line-height: 1.55; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.hint { color: var(--ink2); font-size: 10px; }
.inline-error { margin-top: 9px; padding: 9px 11px; border-radius: 8px; color: var(--danger); background: var(--danger-soft); font-size: 11px; }
.inline-success { margin-top: 9px; padding: 9px 11px; border-radius: 8px; color: var(--brand); background: var(--brand-soft); font-size: 11px; }

.avatar-strip { display: flex; gap: 10px; margin-top: 15px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
.avatar-chip {
  display: flex;
  width: 150px;
  min-width: 150px;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.avatar-chip:hover { border-color: #B9CCC5; }
.avatar-chip.is-selected { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: #F8FCFA; }
.avatar-chip img { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 7px; object-fit: cover; background: #E8EEEB; }
.avatar-meta { min-width: 0; }
.avatar-meta strong { display: block; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.avatar-meta small { display: flex; align-items: center; gap: 4px; color: var(--ink2); font-size: 9px; }
.authorized-mark { display: inline-block; width: 5px; height: 5px; border-radius: 999px; background: #5BA184; }
.empty-inline { padding: 13px 0 2px; color: var(--ink2); font-size: 11px; }

.template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.template-chip {
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink2);
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.template-chip:hover { border-color: #B9CCC5; color: var(--ink); }
.template-chip.is-selected { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.template-chip strong { display: block; overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.template-scene { display: block; margin-top: 1px; color: var(--ink2); font-size: 8px; }

.compliance-result { margin-top: 12px; border-radius: 10px; font-size: 11px; line-height: 1.65; }
.compliance-result:empty { display: none; }
.compliance-block { padding: 12px 13px; border: 1px solid #EAC7C3; color: #7F302A; background: var(--danger-soft); }
.compliance-warn { padding: 12px 13px; border: 1px solid #E8D2A7; color: #674613; background: var(--warn-soft); }
.compliance-ok { padding: 11px 13px; border: 1px solid #C6DED4; color: #185B4C; background: var(--brand-soft); }
.compliance-title { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 12px; font-weight: 800; }
.compliance-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hit-list { margin: 0; padding: 0; list-style: none; }
.hit-item { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(120, 60, 30, .13); }
.hit-word { font-weight: 800; }
.hit-reason { display: block; font-weight: 400; opacity: .9; }
.hit-suggestion { display: block; margin-top: 2px; opacity: .82; }
.ack-row { margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(120, 80, 30, .16); }

.style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.style-card {
  position: relative;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.style-card:hover { border-color: #B9CCC5; transform: translateY(-1px); }
.style-card.is-selected { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.style-select-mark {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  display: none;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 11px;
  font-weight: 900;
}
.style-card.is-selected .style-select-mark { display: grid; }
.style-mini {
  position: relative;
  display: block;
  width: 100%;
  max-width: 84px;
  aspect-ratio: 9 / 16;
  margin: 0 auto 8px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--preview, #E5E9E7);
}
.style-mini::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 22%;
  height: 42%;
  border-radius: 36% 36% 12% 12%;
  background: linear-gradient(150deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .22));
}
.style-mini::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 48%;
  height: 32%;
  border-radius: 32% 32% 4% 4%;
  background: rgba(255, 255, 255, .46);
}
.mini-badge { position: absolute; z-index: 2; top: 6%; right: 7%; width: 18%; height: 5.5%; border-radius: 99px; background: rgba(255, 255, 255, .68); }
.mini-name { position: absolute; z-index: 2; top: 67%; left: 14%; width: 42%; height: 4.2%; border-radius: 2px; background: rgba(25, 35, 31, .72); }
.mini-line { position: absolute; z-index: 2; top: 74%; left: 14%; width: 52%; height: 2.5%; border-radius: 2px; background: rgba(25, 35, 31, .38); }
.mini-caption { position: absolute; z-index: 2; left: 13%; right: 13%; bottom: 13%; height: 9%; border-radius: 3px; background: rgba(10, 18, 16, .48); }
.mini-card { left: 12%; right: 12%; top: 14%; height: 40%; background: linear-gradient(155deg, #E6D7C0, #F3ECE2); }
.style-mini.mini-card-style .mini-name { top: 61%; }
.style-mini.mini-card-style .mini-line { top: 68%; }
.style-mini.mini-card-style .mini-caption { background: rgba(246, 242, 235, .93); border: 1px solid rgba(27, 107, 90, .18); }
.style-mini.mini-studio-style { background: linear-gradient(165deg, #0B1A2B, #163A4B); }
.style-mini.mini-studio-style .mini-badge { background: rgba(216, 180, 90, .5); }
.style-mini.mini-studio-style .mini-name { background: #F3F0E9; }
.style-mini.mini-studio-style .mini-line { background: rgba(216, 180, 90, .72); }
.style-copy { min-width: 0; }
.style-copy strong { display: block; font-size: 12px; }
.style-copy span { display: block; margin-top: 2px; color: var(--ink2); font-size: 9px; line-height: 1.5; }

.style-fullscreen-style { background: linear-gradient(155deg, #6C6A5D, #2E2A22); }
.style-fullscreen-style .mini-caption { bottom: 8%; }

.summary-card { position: sticky; top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.summary-card h2 { margin: 0 0 14px; font-size: 14px; }
.summary-avatar { position: relative; height: 152px; overflow: hidden; border-radius: 10px; background: #E7ECEA; }
.summary-avatar img { width: 100%; height: 100%; object-fit: cover; }
.summary-avatar::after { content: ""; position: absolute; inset: auto 0 0; height: 54%; background: linear-gradient(transparent, rgba(10, 18, 16, .30)); pointer-events: none; }
.summary-placeholder { display: grid; height: 100%; place-items: center; color: #899791; background: linear-gradient(145deg, #EEF2F0, #E1E8E5); }
.summary-placeholder svg { width: 38px; height: 38px; stroke-width: 1.2; }
.summary-avatar-note { position: absolute; z-index: 2; left: 10px; bottom: 9px; padding: 4px 7px; border-radius: 5px; color: #fff; background: rgba(10, 18, 16, .46); font-size: 9px; }
.summary-rows { margin-top: 13px; }
.summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid #EEF1F0; font-size: 11px; }
.summary-row:last-child { border-bottom: 0; }
.summary-row span { color: var(--ink2); }
.summary-row strong { color: var(--ink); font-weight: 700; text-align: right; }
.quota-low { color: var(--warn) !important; }
.cost-estimate { margin-top: 10px; padding: 11px; border: 1px solid #D7E4DE; border-radius: 9px; background: #F4FAF7; }
.cost-estimate.is-over-limit { border-color: #EBCFC9; background: var(--danger-soft); }
.cost-estimate-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cost-estimate-head span { color: var(--ink2); font-size: 9px; font-weight: 700; }
.cost-estimate-head strong { color: var(--brand); font-size: 21px; letter-spacing: -.03em; }
.cost-estimate.is-over-limit .cost-estimate-head strong { color: var(--danger); }
.cost-estimate p { margin: 2px 0 0; color: var(--ink2); font-size: 8px; }
.cost-estimate small { display: block; margin-top: 5px; color: var(--ink2); font-size: 8px; line-height: 1.5; }
.cost-confirm { margin-top: 9px; padding-top: 8px; border-top: 1px solid #DDE9E4; color: var(--ink); font-size: 9px; }
.lip-sync-settings-note { margin-top: 10px !important; }
.status-list { margin-top: 10px; padding: 10px 11px; border-radius: 9px; background: #F7F9F8; }
.status-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 3px 0; color: var(--ink2); font-size: 10px; }
.status-row strong { color: var(--ink2); font-size: 9px; font-weight: 700; }
.status-dot { width: 6px; height: 6px; border-radius: 999px; background: #75AA93; }
.status-dot.pending { background: #B7C0BC; }
.status-dot.warn { background: var(--warn); }
.summary-help { min-height: 34px; margin: 9px 0 0; color: var(--ink2); font-size: 9px; line-height: 1.55; }
.summary-card .primary-button { width: 100%; margin-top: 7px; }
.summary-card .footnote { margin: 9px 0 0; color: var(--ink2); font-size: 9px; text-align: center; }

.primary-button, .secondary-button, .ghost-button, .text-button, .danger-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.primary-button { color: #fff; background: var(--brand); }
.primary-button:hover { background: var(--brand-dark); }
.secondary-button { color: var(--brand); border-color: #CBDCD6; background: #fff; }
.secondary-button:hover { border-color: var(--brand); background: var(--brand-soft); }
.ghost-button { color: var(--ink2); border-color: var(--line); background: #fff; }
.ghost-button:hover { color: var(--ink); border-color: #C8D4D0; background: #F8FAF9; }
.text-button { min-height: 30px; padding: 4px 7px; color: var(--brand); background: transparent; }
.text-button:hover { background: var(--brand-soft); }
.danger-button { color: var(--danger); border-color: #EAC7C3; background: var(--danger-soft); }
.primary-button:disabled, .secondary-button:disabled, .ghost-button:disabled, .text-button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}
.button-icon { width: 15px; height: 15px; }
.button-wide { width: 100%; }

.progress-panel { padding: 3px 0 1px; }
.progress-kicker { display: flex; align-items: center; gap: 7px; color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.progress-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(27, 107, 90, .10); }
.progress-phase { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 0 8px; }
.progress-phase strong { font-size: 25px; letter-spacing: -.02em; }
.progress-phase span { color: var(--ink2); font-size: 11px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #E7EEEA; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #4E9B83); transition: width .35s ease; }
.progress-meta { display: flex; justify-content: space-between; margin-top: 9px; color: var(--ink2); font-size: 10px; }
.progress-note { margin-top: 20px; padding: 10px; border-radius: 9px; color: var(--ink2); background: #F7F9F8; font-size: 10px; line-height: 1.65; }
.progress-error { margin-top: 18px; padding: 11px; border-radius: 9px; color: var(--danger); background: var(--danger-soft); font-size: 11px; }

.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.video-stage {
  display: flex;
  min-height: 540px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid #27332F;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 18%, #24322E, #0C1312 65%);
  box-shadow: var(--shadow-raised);
}
.result-video { width: auto; max-width: 100%; max-height: 520px; aspect-ratio: 9 / 16; border-radius: 12px; background: #000; box-shadow: 0 12px 35px rgba(0, 0, 0, .28); }
.result-details { padding: 20px; }
.result-status { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 4px 8px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 9px; font-weight: 800; }
.result-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.result-details h2 { margin: 0 0 4px; font-size: 20px; }
.result-details > p { margin: 0 0 18px; color: var(--ink2); font-size: 11px; }
.result-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.metric { padding: 10px 11px; border-radius: 9px; background: #F7F9F8; }
.metric span { display: block; color: var(--ink2); font-size: 9px; }
.metric strong { display: block; margin-top: 2px; font-size: 13px; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result-actions .primary-button { grid-column: 1 / -1; }
.result-actions .secondary-button, .result-actions .ghost-button { padding-left: 8px; padding-right: 8px; }
.result-actions .ghost-button { grid-column: 1 / -1; }
.result-footnote { margin-top: 13px; padding: 10px; border-radius: 9px; color: var(--ink2); background: #F7F9F8; font-size: 9px; line-height: 1.6; }

.section-block { margin-top: 26px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 11px; }
.section-head h2 { margin: 0; font-size: 17px; }
.section-head p { margin: 0; color: var(--ink2); font-size: 11px; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.video-card { overflow: hidden; }
.video-thumb-wrap { position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; background: #E6EBE9; }
.video-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.video-card:hover .video-thumb-wrap img { transform: scale(1.025); }
.video-duration { position: absolute; right: 9px; bottom: 9px; padding: 3px 6px; border-radius: 5px; color: #fff; background: rgba(10, 17, 15, .58); font-size: 9px; }
.video-info { padding: 12px; }
.video-info h3 { margin: 0 0 3px; overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.video-info p { margin: 0; color: var(--ink2); font-size: 9px; }
.video-actions { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; padding-top: 7px; border-top: 1px solid #EEF1F0; }
.avatar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.avatar-asset { overflow: hidden; }
.avatar-asset img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #E6EBE9; }
.avatar-asset-copy { padding: 10px; }
.avatar-asset-copy strong { display: block; font-size: 11px; }
.avatar-asset-copy span { display: block; margin-top: 2px; color: var(--ink2); font-size: 9px; }
.empty-state { padding: 42px 24px; border: 1px dashed #C9D7D2; border-radius: 14px; background: rgba(255, 255, 255, .55); text-align: center; }
.empty-state-icon { display: grid; width: 48px; height: 48px; place-items: center; margin: 0 auto 12px; border-radius: 13px; color: var(--brand); background: var(--brand-soft); }
.empty-state-icon svg { width: 22px; height: 22px; }
.empty-state h3 { margin: 0 0 4px; font-size: 15px; }
.empty-state p { margin: 0 auto 15px; max-width: 380px; color: var(--ink2); font-size: 11px; }

.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan-card { position: relative; display: flex; min-height: 270px; flex-direction: column; padding: 18px; }
.plan-card.premium { border-color: #E5D4B3; }
.plan-card.current { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.plan-card.current.premium { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.plan-flag { position: absolute; top: 13px; right: 13px; padding: 3px 7px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 8px; font-weight: 800; }
.plan-card.premium .plan-flag { color: #846326; background: var(--gold-soft); }
.plan-name { margin: 0 0 15px; color: var(--ink2); font-size: 11px; font-weight: 700; }
.plan-price { margin: 0 0 14px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.plan-price small { margin-left: 3px; color: var(--ink2); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.feature-list { margin: 0 0 19px; padding: 0; list-style: none; color: var(--ink2); font-size: 10px; }
.feature-list li { position: relative; padding: 3px 0 3px 13px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: #7FA797; }
.plan-card.premium .feature-list li::before { background: var(--gold); }
.plan-card .secondary-button, .plan-card .primary-button { width: 100%; margin-top: auto; }
.plan-actions { display: grid; gap: 7px; margin-top: auto; }
.plan-actions .primary-button, .plan-actions .ghost-button, .plan-actions .secondary-button { margin-top: 0; }
.mock-pay-button {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px dashed #DEC493;
  border-radius: 8px;
  color: #7A5A1D;
  background: var(--gold-soft);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.mock-pay-button:hover { border-color: var(--gold); background: #F8EEDB; }
.plan-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 18px 0 26px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #F9FBFA; }
.plan-summary p { margin: 0; color: var(--ink2); font-size: 11px; }
.plan-summary strong { font-size: 18px; }
.mock-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 18px;
  padding: 12px 15px;
  border: 1px solid #E6CF9F;
  border-radius: 11px;
  color: #654813;
  background: linear-gradient(90deg, #FFF9EC, #FCF4E3);
  font-size: 10px;
  line-height: 1.6;
}
.mock-notice strong { color: #6A4910; font-size: 11px; white-space: nowrap; }
.mock-notice span { color: #7C642F; }
.mock-notice.compact { margin: 12px 0 0; padding: 9px 11px; }
.single-table { overflow: hidden; }
.single-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 110px; gap: 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 11px; }
.single-row:first-child { border-top: 0; }
.single-row.header { color: var(--ink2); background: #F8FAF9; font-size: 9px; }
.single-row .price { font-weight: 700; }
.single-row .muted-tag { display: inline-flex; width: fit-content; padding: 2px 7px; border-radius: 999px; color: var(--ink2); background: #EEF2F0; font-size: 8px; }
.orders-section { margin-top: 26px; }
.orders-card { overflow: hidden; }
.order-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.4fr) minmax(70px, .8fr) minmax(70px, .65fr) minmax(75px, .8fr) minmax(62px, .55fr);
  gap: 12px;
  align-items: center;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
  font-size: 10px;
}
.order-row:first-child { border-top: 0; }
.order-row.order-head { padding-top: 9px; padding-bottom: 9px; color: var(--ink2); background: #F8FAF9; font-size: 8px; font-weight: 700; }
.order-amount { color: var(--ink); font-weight: 700; }
.order-status { display: inline-flex; width: fit-content; padding: 2px 7px; border-radius: 999px; background: #EEF2F0; font-size: 8px; font-weight: 700; }
.order-status.is-paid { color: #185B4C; background: var(--brand-soft); }
.order-status.is-pending, .order-status.is-created { color: #846326; background: var(--gold-soft); }
.order-status.is-failed { color: var(--danger); background: var(--danger-soft); }
.orders-empty { padding: 22px 15px; color: var(--ink2); font-size: 10px; text-align: center; }

.table-card { overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th { padding: 10px 14px; color: var(--ink2); background: #F8FAF9; font-size: 9px; font-weight: 600; text-align: left; }
.data-table td { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 10px; vertical-align: middle; }
.data-table th:first-child, .data-table td:first-child { width: 30%; }
.data-table .person-cell { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.data-table .person-cell img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; background: #E9EEEC; }
.data-table .person-cell strong { font-size: 11px; }
.mono { font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; letter-spacing: .01em; }
.table-empty { padding: 28px 18px; color: var(--ink2); font-size: 11px; text-align: center; }
.conclusion { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 999px; font-size: 8px; font-weight: 800; }
.conclusion.block { color: var(--danger); background: var(--danger-soft); }
.conclusion.warn { color: var(--warn); background: var(--warn-soft); }
.conclusion.ok { color: var(--brand); background: var(--brand-soft); }
.rule-note { margin-top: 11px; color: var(--ink2); font-size: 9px; }
.rule-card { width: 100%; margin-top: 20px; overflow: hidden; }
.rule-card summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 18px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; }
.rule-card summary::-webkit-details-marker { display: none; }
.rule-card summary::after { content: "+"; color: var(--brand); font-size: 18px; font-weight: 400; }
.rule-card[open] summary::after { content: "−"; }
.rule-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 18px 18px; }
.rule-body section { padding: 14px; border-radius: 10px; background: #F8FAF9; }
.rule-body h3 { margin: 0 0 6px; font-size: 11px; }
.rule-body p { margin: 0; color: var(--ink2); font-size: 10px; line-height: 1.75; }
.law-list { grid-column: 1 / -1; margin: 0; padding: 12px 14px 12px 31px; border-radius: 10px; color: var(--ink2); background: var(--gold-soft); font-size: 10px; line-height: 1.8; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 16px; align-items: start; }
.settings-stack { display: flex; min-width: 0; flex-direction: column; gap: 16px; }
.setting-card { padding: 18px; }
.setting-card h2 { margin: 0 0 3px; font-size: 15px; }
.setting-card > p { margin: 0 0 15px; color: var(--ink2); font-size: 10px; }
.provider-list { display: flex; flex-direction: column; gap: 7px; }
.provider-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #FBfCFB; }
.provider-row.active { border-color: #C7DDD5; background: #F8FCFA; }
.provider-main { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.provider-state { width: 7px; height: 7px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: #B6C0BC; }
.provider-row.active .provider-state { background: var(--brand); box-shadow: 0 0 0 4px rgba(27, 107, 90, .09); }
.provider-name { display: block; font-size: 11px; }
.provider-note { display: block; margin-top: 2px; color: var(--ink2); font-size: 9px; line-height: 1.55; }
.provider-tag { align-self: start; padding: 2px 7px; border-radius: 999px; color: var(--ink2); background: #EEF2F0; font-size: 8px; white-space: nowrap; }
.provider-row.active .provider-tag { color: var(--brand); background: var(--brand-soft); }
.tts-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.tts-field { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: var(--ink2); font-size: 9px; font-weight: 700; }
.select-input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font: inherit; font-size: 10px; }
.select-input:focus { outline: 2px solid rgba(27, 107, 90, .2); outline-offset: 1px; border-color: var(--brand); }
.tts-hint, .tts-warning { margin: 0 0 12px !important; padding: 8px 10px; border-radius: 8px; font-size: 9px !important; line-height: 1.6; }
.tts-hint { color: var(--ink2); background: #F6F8F7; }
.tts-warning { color: #8A5A13; background: #FBF4E6; }
.tts-rate-head { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; font-size: 11px; }
.tts-usage { margin: 10px 0 0 !important; padding-top: 9px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 9px !important; }
.rate-value { float: right; color: var(--brand); font-size: 13px; font-weight: 800; }
.range-wrap { padding: 7px 0 0; }
.range-input { width: 100%; accent-color: var(--brand); }
.range-scale { display: flex; justify-content: space-between; margin-top: 3px; color: var(--ink2); font-size: 8px; }
.version-list { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 10px; }
.version-list dt { color: var(--ink2); }
.version-list dd { margin: 0; color: var(--ink); }
.version-chip { display: inline-flex; padding: 2px 7px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 8px; font-weight: 700; }

.voice-clone-card > .voice-clone-note { margin-bottom: 12px; padding: 9px 11px; border-radius: 9px; color: #6D4B12; background: #FBF5E8; font-size: 9px; line-height: 1.65; }
.voice-clone-form { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(180px, .92fr); gap: 12px; align-items: stretch; }
.voice-sample-field { min-width: 0; }
.voice-drop-zone { min-height: 136px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 15px 16px; }
.voice-drop-mark { display: grid; width: 35px; height: 35px; margin-bottom: 5px; place-items: center; border-radius: 10px; color: var(--brand); background: var(--brand-soft); font-size: 17px; }
.voice-drop-zone strong { font-size: 11px; }
.voice-drop-zone small { color: var(--ink2); font-size: 8px; line-height: 1.5; }
.voice-sample-name { display: block; max-width: 100%; margin-top: 7px; overflow: hidden; color: var(--ink2); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.voice-sample-name.has-file { color: var(--brand); font-weight: 700; }
.voice-clone-fields { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 10px; }
.voice-clone-fields .input { height: 35px; font-size: 10px; }
.voice-consent-details { margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; background: #FAFCFB; }
.voice-consent-details summary { padding: 8px 10px; color: var(--brand); cursor: pointer; font-size: 9px; font-weight: 700; list-style: none; }
.voice-consent-details summary::-webkit-details-marker { display: none; }
.voice-consent-details summary::before { content: "+"; display: inline-block; width: 16px; font-weight: 800; }
.voice-consent-details[open] summary::before { content: "−"; }
.voice-consent-details p { margin: 0; padding: 0 11px 10px 27px; color: var(--ink2); font-size: 9px; line-height: 1.7; }
.voice-consent-line { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 9px 10px; border: 1px solid #E2E9E6; border-radius: 9px; color: var(--ink2); background: #FCFDFC; cursor: pointer; font-size: 9px; line-height: 1.6; }
.voice-consent-line input { width: 14px; height: 14px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--brand); }
.voice-submit-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.voice-submit-row .primary-button { min-height: 34px; padding: 7px 14px; font-size: 10px; }
.voice-submit-hint { color: var(--ink2); font-size: 8px; line-height: 1.5; }
.voice-progress { display: none; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink2); background: #F4F8F6; font-size: 9px; }
.voice-progress.is-visible { display: flex; }
.voice-progress[hidden] { display: none; }
.voice-progress-step { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.voice-progress-step i { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: var(--ink2); background: #E8EFEC; font-size: 8px; font-style: normal; }
.voice-progress-step.is-active { color: var(--brand); }
.voice-progress-step.is-active i { color: #fff; background: var(--brand); box-shadow: 0 0 0 3px rgba(27, 107, 90, .1); }
.voice-progress-step.is-done i { color: #fff; background: #59A189; }
.voice-progress-arrow { color: #AAB8B3; }
.voice-progress-text { margin-left: auto; font-size: 8px; }
.voice-list-head { display: flex; align-items: center; justify-content: space-between; margin: 15px 0 7px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 10px; }
.voice-list-head span { color: var(--ink2); font-size: 8px; font-weight: 500; }
.cloned-voice-list { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.cloned-voice-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: #FBFCFB; }
.cloned-voice-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 11px; }
.voice-badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-size: 8px; font-weight: 700; }
.voice-badge.is-success { color: #17624D; background: #E7F4EE; }
.voice-badge.is-warning { color: #725114; background: #FAF0D8; }
.voice-badge.is-error { color: #873A33; background: #FBEAE8; }
.cloned-voice-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: var(--ink2); font-size: 8px; }
.cloned-voice-error { margin: 5px 0 0; color: #7A5840; font-size: 8px; line-height: 1.55; overflow-wrap: anywhere; }
.voice-preview { display: block; width: min(100%, 260px); height: 30px; margin-top: 6px; }
.cloned-voice-actions { display: flex; align-self: start; flex-direction: column; gap: 5px; }
.voice-row-button { min-height: 29px; padding: 5px 9px; font-size: 8px; white-space: nowrap; }
.voice-list-empty { padding: 13px 10px; border: 1px dashed #D7E0DC; border-radius: 9px; color: var(--ink2); background: #FBFCFB; font-size: 9px; text-align: center; }
.voice-removal-note { margin: 9px 0 0 !important; color: var(--ink2); font-size: 8px !important; line-height: 1.6; }

.page { display: block; min-height: 360px; }
.page-loading { display: grid; min-height: 360px; place-items: center; align-content: center; gap: 9px; color: var(--ink2); font-size: 11px; }
.page-loading p { margin: 0; }
.loading-mark { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.loading-mark img { width: 42px; }
.inline-loading { padding: 18px 0; color: var(--ink2); font-size: 11px; text-align: center; }
.error-card { max-width: 620px; margin: 40px auto; padding: 22px; border: 1px solid #EAC7C3; border-radius: 14px; background: var(--danger-soft); }
.error-card h2 { margin: 0 0 5px; color: var(--danger); font-size: 16px; }
.error-card p { margin: 0 0 14px; color: #7F302A; font-size: 11px; }

.drawer-backdrop { position: fixed; z-index: 80; inset: 0; background: rgba(8, 16, 13, .32); backdrop-filter: blur(2px); }
.details-drawer { position: fixed; z-index: 90; inset: 0 0 0 auto; width: min(460px, 100vw); overflow: auto; background: #fff; box-shadow: -20px 0 50px rgba(9, 18, 15, .15); }
.details-drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 21px 22px 17px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); }
.drawer-head h2 { margin: 2px 0 0; font-size: 19px; }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: var(--ink2); background: #fff; cursor: pointer; }
.icon-button:hover { color: var(--ink); background: #F7F9F8; }
.icon-button svg { width: 17px; height: 17px; }
.drawer-body { padding: 20px 22px 32px; }
.detail-section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-section:first-child { padding-top: 0; }
.detail-section:last-child { border-bottom: 0; }
.detail-section h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 12px; }
.detail-section h3::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.detail-section p { margin: 0; color: var(--ink2); font-size: 10px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.detail-label { display: block; margin: 8px 0 3px; color: var(--ink2); font-size: 9px; }
.code-block { margin: 4px 0 0; padding: 9px 10px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 8px; color: #30423C; background: #F7F9F8; font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; line-height: 1.65; white-space: pre-wrap; }
.check-line { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 10px; }
.check-line span { color: var(--ink2); }
.check-line strong { max-width: 68%; color: var(--ink); font-weight: 600; text-align: right; word-break: break-word; }

.toast-region { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: flex; width: min(360px, calc(100vw - 32px)); flex-direction: column; gap: 8px; pointer-events: none; }
.toast { padding: 11px 13px; border: 1px solid #C9DCD5; border-radius: 10px; color: #174F43; background: #F4FBF8; box-shadow: 0 8px 24px rgba(10, 30, 24, .13); font-size: 11px; line-height: 1.55; }
.toast.error { border-color: #EAC7C3; color: #7F302A; background: #FFF8F7; }
.toast.warn { border-color: #E8D2A7; color: #674613; background: #FFFBF3; }

.pay-backdrop { position: fixed; z-index: 100; inset: 0; background: rgba(8, 16, 13, .38); backdrop-filter: blur(3px); }
.pay-dialog {
  position: fixed;
  z-index: 110;
  top: 50%;
  left: 50%;
  width: min(540px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(8, 18, 14, .24);
  transform: translate(-50%, -50%);
}
.pay-dialog[hidden], .pay-backdrop[hidden] { display: none; }
.pay-dialog-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 22px 15px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); }
.pay-dialog-head h2 { margin: 2px 0 0; font-size: 19px; }
.pay-dialog-body { padding: 18px 22px 22px; }
.pay-order-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 15px; border-radius: 11px; color: var(--ink2); background: #F6F9F7; font-size: 11px; }
.pay-order-summary strong { color: var(--ink); font-size: 22px; letter-spacing: -.02em; }
.pay-dialog-label { margin: 17px 0 8px; color: var(--ink2); font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.pay-channel-list { display: grid; gap: 8px; }
.pay-channel { display: grid; width: 100%; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.pay-channel:hover { border-color: #BFD4CC; background: #FBFDFC; }
.pay-channel.is-selected { border-color: var(--brand); background: #F7FBF9; box-shadow: inset 0 0 0 1px var(--brand); }
.pay-channel.is-disabled { opacity: .55; cursor: not-allowed; background: #F8FAF9; }
.pay-channel-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: var(--brand); background: var(--brand-soft); font-size: 13px; font-weight: 800; }
.pay-channel.is-disabled .pay-channel-mark { color: var(--ink2); background: #EDF1EF; }
.pay-channel-copy { display: grid; gap: 1px; min-width: 0; }
.pay-channel-copy strong { font-size: 11px; }
.pay-channel-copy small { overflow: hidden; color: var(--ink2); font-size: 8px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.pay-channel-state { color: var(--ink2); font-size: 8px; font-weight: 700; }
.pay-channel.is-selected .pay-channel-state { color: var(--brand); }
.pay-help { margin: 12px 0 0; color: var(--ink2); font-size: 9px; line-height: 1.65; }
.pay-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.pay-actions .primary-button, .pay-actions .secondary-button { min-width: 96px; }
.pay-result { padding: 27px 8px 20px; text-align: center; }
.pay-result h3 { margin: 8px 0 6px; font-size: 17px; }
.pay-result p { margin: 0 auto 14px; max-width: 380px; color: var(--ink2); font-size: 10px; line-height: 1.7; }
.pay-result .primary-button { min-width: 120px; }
.pay-waiting-mark { width: 26px; height: 26px; margin: 0 auto; border: 2px solid #DCE7E2; border-top-color: var(--brand); border-radius: 50%; animation: pay-spin .8s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-qr { width: 224px; height: 224px; margin: 13px auto 5px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); object-fit: contain; }
.pay-result-mark { display: grid; width: 44px; height: 44px; margin: 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-size: 22px; font-weight: 800; }
.pay-result-error .pay-result-mark { background: var(--danger); }
.pay-error { padding: 12px; border: 1px solid #EAC7C3; border-radius: 9px; color: #7F302A; background: var(--danger-soft); font-size: 10px; }

@media (max-width: 1023px) {
  .sidebar {
    position: sticky;
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .94);
  }
  .brand { flex: 0 0 auto; padding: 0; gap: 7px; }
  .brand img { width: 34px; height: 23px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { display: none; }
  .sidebar-nav { min-width: 0; flex: 1; flex-direction: row; justify-content: flex-end; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .nav-item { min-height: 36px; gap: 5px; padding: 7px 9px; font-size: 10px; white-space: nowrap; }
  .nav-item svg { width: 15px; height: 15px; }
  .sidebar-foot { flex: 0 0 auto; padding: 0 3px 0 9px; border-top: 0; border-left: 1px solid var(--line); }
  .main-wrap { margin-left: 0; }
  .content { padding: 24px 22px 22px; }
  .site-footer { padding: 0 22px 24px; }
}

@media (max-width: 900px) {
  .create-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; }
  .summary-card { padding: 15px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avatar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .result-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; }
  .manual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .create-layout, .result-layout, .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .tts-form { grid-template-columns: minmax(0, 1fr); }
  .summary-card { position: static; }
  .video-stage { min-height: 490px; }
  .result-video { max-height: 470px; }
  .footer-line { flex-direction: column; gap: 4px; }
  .type-copy { min-width: 0; }
}

@media (max-width: 620px) {
  .sidebar { gap: 5px; padding: 8px 10px; }
  .brand-copy { display: none; }
  .brand img { width: 35px; height: 24px; }
  .nav-item { padding: 7px; }
  .nav-item svg { width: 14px; height: 14px; }
  .sidebar-foot { display: none; }
  .content { padding: 20px 14px; }
  .site-footer { padding: 0 14px 22px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 7px; margin-bottom: 17px; }
  .head-note { text-align: left; }
  .step summary { padding: 14px 14px; }
  .step-body { padding: 0 14px 15px; }
  .upload-zone { align-items: flex-start; padding: 13px; }
  .upload-icon { width: 39px; height: 39px; border-radius: 10px; }
  .upload-icon svg { width: 19px; height: 19px; }
  .upload-file { display: none; }
  .field-grid, .field-grid.four { gap: 9px; }
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lip-sync-options { grid-template-columns: 1fr; }
  .style-grid { gap: 7px; }
  .style-card { padding: 6px; }
  .style-mini { max-width: 70px; margin-bottom: 6px; }
  .style-copy strong { font-size: 10px; }
  .style-copy span { font-size: 8px; }
  .summary-avatar { height: 132px; }
  .manual-grid { grid-template-columns: 1fr; }
  .video-grid { gap: 10px; }
  .avatar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-actions { grid-template-columns: 1fr; }
  .result-actions .primary-button, .result-actions .ghost-button { grid-column: auto; }
  .video-stage { min-height: 430px; padding: 12px; }
  .result-video { max-height: 406px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 0; }
  .single-row { grid-template-columns: minmax(0, 1fr) 76px; gap: 8px; padding: 11px 12px; }
  .single-row > :last-child { display: none; }
  .data-table, .data-table thead, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; }
  .data-table thead { display: none; }
  .data-table tr { padding: 10px 0; border-top: 1px solid var(--line); }
  .data-table tr:first-child { border-top: 0; }
  .data-table td { width: auto !important; padding: 4px 13px !important; border: 0; }
  .rule-body { grid-template-columns: 1fr; gap: 10px; }
  .law-list { grid-column: auto; }
  .toast-region { right: 16px; bottom: 16px; }
}

@media (max-width: 390px) {
  .content { padding-left: 12px; padding-right: 12px; }
  .site-footer { padding-left: 12px; padding-right: 12px; }
  .nav-item span { font-size: 9px; }
  .style-grid { gap: 5px; }
  .style-card { padding: 5px; }
  .style-mini { max-width: 64px; }
  .field-grid, .field-grid.four { grid-template-columns: 1fr; }
  .video-stage { min-height: 390px; }
  .result-video { max-height: 366px; }
  .progress-phase strong { font-size: 22px; }
}

@media (max-width: 680px) {
  .voice-clone-form { grid-template-columns: minmax(0, 1fr); }
  .voice-drop-zone { min-height: 112px; }
  .voice-submit-row { align-items: flex-start; flex-direction: column; }
  .cloned-voice-row { grid-template-columns: minmax(0, 1fr); }
  .cloned-voice-actions { flex-direction: row; flex-wrap: wrap; }
  .mock-notice { align-items: flex-start; flex-direction: column; gap: 3px; }
  .order-row.order-head { display: none; }
  .order-row { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 11px 13px; }
  .order-time { grid-column: 1 / -1; color: var(--ink2); font-size: 8px; }
  .order-row > :nth-child(2) { font-weight: 700; }
  .pay-dialog { top: auto; bottom: 0; max-height: 88vh; border-radius: 17px 17px 0 0; transform: translateX(-50%); }
  .pay-dialog-head, .pay-dialog-body { padding-left: 16px; padding-right: 16px; }
  .pay-qr { width: 204px; height: 204px; }
  .pay-actions { flex-direction: column-reverse; }
  .pay-actions .primary-button, .pay-actions .secondary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
