:root {
  --bg: #070707;
  --bg-soft: #101218;
  --panel: rgba(20, 22, 28, 0.9);
  --panel-elevated: rgba(27, 30, 38, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(246, 196, 69, 0.25);
  --text: #f6f1e8;
  --text-muted: #8d919d;
  --text-soft: #676d78;
  --accent: #f6c445;
  --accent-strong: #ffb800;
  --accent-deep: #ff8a3d;
  --success: #7edc88;
  --warning: #ffb347;
  --danger: #ff7b63;
  --shadow: 0 20px 54px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --z-nav: 30;
  --z-toast: 50;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 184, 0, 0.12), transparent 26%),
    radial-gradient(circle at 86% 10%, rgba(255, 138, 61, 0.11), transparent 22%),
    linear-gradient(180deg, #0b0d11 0%, #060608 38%, #030303 100%);
  color: var(--text);
  font-family: "SF Pro Display", "PingFang SC", "Avenir Next", "Helvetica Neue", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
.btn {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #ffd24e, #ffb800);
  color: #20170a;
  box-shadow: 0 12px 28px rgba(255, 184, 0, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-small {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.92rem;
}

/* 弹窗是浅色底，按钮和卡片需要单独提升对比度 */
.modal .list-card {
  background: #f7f8fb;
  border: 1px solid #d9dce5;
}

.modal .list-card p,
.modal .list-card span {
  color: #4b5565;
}

.modal .btn-secondary {
  background: #1f2937;
  color: #ffffff;
  border: 1px solid #111827;
}

.modal .btn-secondary:hover {
  background: #111827;
}

.modal .btn-ghost {
  background: #eef2ff;
  color: #1f2937;
  border: 1px solid #cbd5e1;
}

.modal .btn-ghost:hover {
  background: #e2e8f0;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 13px 14px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-shell {
  width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.glass-card,
.panel {
  background: linear-gradient(180deg, rgba(27, 30, 38, 0.96), rgba(13, 15, 19, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.panel-soft {
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
}

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

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

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

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

.stack {
  display: grid;
  gap: 14px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.space-between {
  justify-content: space-between;
}

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

.section-head h2,
.section-head h3,
.hero h1,
.hero h2 {
  margin: 0;
}

.section-head p,
.hero p,
.muted {
  margin: 0;
  color: var(--text-muted);
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero {
  padding: 24px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 204, 51, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin: 10px 0 12px;
}

.hero-subtitle {
  max-width: 58ch;
}

.metric {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 204, 51, 0.06);
  border: 1px solid rgba(255, 204, 51, 0.12);
}

.metric strong {
  display: block;
  font-size: 1.45rem;
  margin-top: 6px;
}

.chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 204, 51, 0.09);
  border: 1px solid rgba(255, 204, 51, 0.18);
  color: var(--text);
  font-size: 0.92rem;
}

.chip.active {
  background: linear-gradient(135deg, rgba(255, 204, 51, 0.2), rgba(255, 204, 51, 0.08));
  border-color: var(--accent);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-completed,
.status-ready {
  background: rgba(126, 220, 136, 0.14);
  color: var(--success);
}

.status-pending,
.status-processing,
.status-draft {
  background: rgba(255, 179, 71, 0.14);
  color: var(--warning);
}

.status-cancelled,
.status-failed {
  background: rgba(255, 123, 99, 0.14);
  color: var(--danger);
}

.card-list,
.card-grid {
  display: grid;
  gap: 14px;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.data-card,
.action-card,
.list-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card h3,
.action-card h3,
.list-card h3,
.data-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.feature-card p,
.action-card p,
.list-card p,
.data-card p {
  margin: 0;
  color: var(--text-muted);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-top: max(4px, env(safe-area-inset-top, 0px));
}

.mobile-shell {
  max-width: 460px;
  margin: 0 auto;
  padding: 14px 14px 108px;
}

.mobile-frame {
  position: relative;
}

.topbar-status {
  width: 108px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(58, 211, 133, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 1px rgba(58, 211, 133, 0.06),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.topbar-status-mark {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, #63ffc8, #29cf7d 58%, #116742 76%);
  box-shadow: 0 0 18px rgba(44, 219, 126, 0.22);
}

.topbar-status-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid rgba(7, 20, 12, 0.72);
  border-radius: 50%;
}

.topbar-status-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 2px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(58, 211, 133, 0.16);
}

.mini-capsule {
  min-width: 92px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 10, 12, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 22px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(12px);
}

.mini-capsule-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.88);
  box-shadow: 0 6px 0 rgba(246, 241, 232, 0.88), 0 -6px 0 rgba(246, 241, 232, 0.88);
}

.mini-capsule-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(246, 241, 232, 0.92);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
}

.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  width: min(420px, calc(100vw - 20px));
  transform: translateX(-50%);
  z-index: var(--z-nav);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(24, 26, 31, 0.96), rgba(10, 11, 13, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.nav-btn {
  min-height: 60px;
  padding: 6px 4px;
  border-radius: 16px;
  background: transparent;
  color: #9ea3ad;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  font-size: 0.78rem;
}

.nav-btn strong {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.12;
  white-space: nowrap;
  color: inherit;
}

.nav-btn.active {
  color: #ffe08a;
}

.nav-btn:nth-child(3) {
  transform: translateY(-14px);
}

.nav-btn:nth-child(3) .nav-glyph {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  background: linear-gradient(180deg, #ffd24e, #ff9e2c);
  box-shadow:
    0 0 0 6px rgba(255, 184, 0, 0.1),
    0 12px 28px rgba(255, 138, 61, 0.28);
}

.nav-btn:nth-child(3).active .nav-glyph {
  box-shadow:
    0 0 0 8px rgba(255, 184, 0, 0.12),
    0 14px 30px rgba(255, 138, 61, 0.34);
}

.nav-glyph {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.nav-glyph::before,
.nav-glyph::after {
  content: "";
  position: absolute;
}

.nav-glyph-home::before {
  inset: 3px 4px 5px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px;
}

.nav-glyph-home::after {
  left: 3px;
  right: 3px;
  top: 1px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: skewY(-18deg);
}

.nav-glyph-assets::before {
  inset: 2px 2px 4px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav-glyph-assets::after {
  left: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.nav-glyph-create::before,
.nav-glyph-create::after {
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  margin-top: -1px;
  background: #261400;
  border-radius: 999px;
}

.nav-glyph-create::after {
  transform: rotate(90deg);
}

.nav-glyph-works::before {
  inset: 4px 3px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav-glyph-works::after {
  left: 9px;
  top: 6px;
  border-left: 6px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.nav-glyph-me::before {
  left: 5px;
  top: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-glyph-me::after {
  left: 3px;
  right: 3px;
  bottom: 2px;
  height: 8px;
  border: 2px solid currentColor;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 0;
}

.home-intro {
  margin: 0 0 8px;
}

.home-title-stack {
  display: grid;
  gap: 6px;
  text-align: center;
}

.home-ai-label {
  display: block;
  color: #fff8ee;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.home-ai-subtitle {
  margin: 0;
  color: #9ca1ab;
  font-size: 0.86rem;
  line-height: 1.5;
}

.home-marquee {
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(33, 31, 21, 0.9), rgba(15, 16, 18, 0.88));
  border: 1px solid rgba(246, 196, 69, 0.16);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffe6a6;
  overflow: hidden;
}

.home-marquee span:last-child {
  color: rgba(255, 228, 166, 0.84);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-marquee-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f6c445;
  box-shadow: 0 0 10px rgba(246, 196, 69, 0.5);
}

.home-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(126px, 44%);
  gap: 8px;
  min-height: 154px;
  padding: 18px 16px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 62% 42%, rgba(246, 196, 69, 0.14), transparent 34%),
    radial-gradient(circle at 22% 62%, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(115deg, rgba(12, 13, 16, 0.98), rgba(25, 26, 32, 0.94));
  border: 1px solid rgba(246, 196, 69, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 20px 42px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  overflow: hidden;
}

.home-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.56), transparent 54%),
    radial-gradient(circle at 80% 70%, rgba(246, 196, 69, 0.16), transparent 24%);
  pointer-events: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 8px;
}

.home-hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 32px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 40%, rgba(246, 196, 69, 0.28), transparent 56%),
    rgba(246, 196, 69, 0.08);
  border: 1px solid rgba(246, 196, 69, 0.16);
  color: #ffe49a;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 0 24px rgba(246, 196, 69, 0.18);
}

.home-hero-card h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.12;
  color: #fff5e8;
}

.home-hero-card p {
  margin: 0;
  max-width: 190px;
  color: #b5b7be;
  font-size: 0.82rem;
  line-height: 1.4;
}

.home-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d5cab9;
  font-size: 0.7rem;
}

.home-hero-preview {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.home-preview-window {
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(31, 33, 39, 0.94), rgba(13, 14, 18, 0.95));
  border: 1px solid rgba(246, 196, 69, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-preview-top {
  transform: translateX(2px);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.home-preview-lights {
  display: flex;
  gap: 4px;
}

.home-preview-lights span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 185, 135, 0.42);
}

.home-preview-bar {
  height: 6px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(246, 196, 69, 0.88), rgba(255, 218, 109, 0.38));
}

.home-preview-pulse {
  height: 26px;
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(246, 196, 69, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(246, 196, 69, 0.12);
}

.home-preview-meta,
.home-preview-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-preview-meta span,
.home-preview-footer span {
  min-height: 18px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 225, 197, 0.58);
  font-size: 0.62rem;
  display: inline-flex;
  align-items: center;
}

.home-preview-bottom {
  transform: translateX(-10px);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.home-preview-strip {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 208, 120, 0.3), rgba(246, 196, 69, 0.12));
}

.home-preview-card {
  height: 30px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 40%, rgba(246, 196, 69, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(246, 196, 69, 0.12);
}

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

.home-tool-tile {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 82px;
  padding: 11px 10px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(246, 196, 69, 0.13), transparent 22%),
    linear-gradient(180deg, rgba(30, 32, 40, 0.95), rgba(18, 19, 23, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
}

.home-tool-tile::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -40px;
  bottom: -52px;
  background: radial-gradient(circle, rgba(246, 196, 69, 0.15), transparent 68%);
}

.home-tool-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(255, 229, 148, 0.36), transparent 56%),
    linear-gradient(180deg, rgba(246, 196, 69, 0.24), rgba(246, 196, 69, 0.08));
  border: 1px solid rgba(246, 196, 69, 0.22);
  color: #ffe6bf;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 0 18px rgba(246, 196, 69, 0.14);
}

.home-tool-tile strong {
  color: #fff2e0;
  font-size: 0.94rem;
  line-height: 1.16;
}

.home-tool-tile span {
  color: #9297a2;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-agent-section,
.home-toolbox-section,
.home-recent-panel {
  padding-top: 2px;
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.home-section-header h2 {
  margin: 0;
  color: #fff7ee;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0;
}

.home-more-link {
  min-height: 24px;
  padding: 0;
  background: transparent;
  color: #d9ddd9;
  font-size: 0.86rem;
  border: 0;
}

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

.home-agent-card,
.home-toolbox-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 64px;
  padding: 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(30, 32, 40, 0.95), rgba(18, 19, 23, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
}

.home-agent-card::before,
.home-toolbox-card::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(246, 196, 69, 0.2), rgba(255, 138, 61, 0.04));
  border: 1px solid rgba(246, 196, 69, 0.14);
}

.home-agent-avatar,
.home-toolbox-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(123, 176, 255, 0.45), transparent 38%),
    radial-gradient(circle at center, rgba(78, 114, 255, 0.26), transparent 58%),
    linear-gradient(180deg, rgba(33, 46, 98, 0.98), rgba(18, 21, 36, 0.98));
  border: 1px solid rgba(129, 171, 255, 0.16);
  color: #dce6ff;
  font-size: 0.74rem;
  font-weight: 700;
}

.home-toolbox-icon {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 225, 148, 0.4), transparent 38%),
    radial-gradient(circle at center, rgba(246, 196, 69, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(76, 67, 31, 0.96), rgba(21, 20, 15, 0.98));
  border-color: rgba(246, 196, 69, 0.18);
  color: #fff2db;
}

.home-toolbox-card:nth-child(3n) .home-toolbox-icon {
  background:
    radial-gradient(circle at 30% 30%, rgba(97, 214, 255, 0.42), transparent 38%),
    radial-gradient(circle at center, rgba(61, 148, 255, 0.26), transparent 58%),
    linear-gradient(180deg, rgba(24, 62, 121, 0.96), rgba(13, 22, 41, 0.98));
  border-color: rgba(110, 178, 255, 0.18);
}

.home-toolbox-card:nth-child(4n) .home-toolbox-icon {
  background:
    radial-gradient(circle at 30% 30%, rgba(153, 255, 161, 0.42), transparent 38%),
    radial-gradient(circle at center, rgba(52, 199, 89, 0.26), transparent 58%),
    linear-gradient(180deg, rgba(28, 95, 46, 0.96), rgba(12, 31, 18, 0.98));
  border-color: rgba(104, 214, 131, 0.18);
}

.home-agent-copy,
.home-toolbox-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-agent-copy strong,
.home-toolbox-copy strong {
  color: #fff5e8;
  font-size: 0.88rem;
  line-height: 1.18;
  padding-right: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-agent-copy span,
.home-toolbox-copy span {
  color: #8f949e;
  font-size: 0.72rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-hero-card:focus-visible,
.home-tool-tile:focus-visible,
.home-agent-card:focus-visible,
.home-toolbox-card:focus-visible {
  outline: 2px solid rgba(246, 196, 69, 0.8);
  outline-offset: 2px;
}

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

.home-recent-card {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(23, 20, 24, 0.98), rgba(14, 14, 18, 0.98));
  border: 1px solid rgba(255, 175, 119, 0.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.home-recent-card p {
  margin: 8px 0 0;
  color: rgba(255, 223, 196, 0.62);
  font-size: 0.82rem;
}

.home-recent-actions {
  margin-top: 10px;
}

.asset-page {
  display: grid;
  gap: 14px;
}

.asset-title-stack {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 4px 0 2px;
  text-align: center;
}

.asset-title-stack h1 {
  margin: 0;
  font-size: 1.34rem;
  color: #fff7ee;
}

.asset-title-stack p {
  margin: 0;
  max-width: 34ch;
  color: #9499a4;
  font-size: 0.82rem;
  line-height: 1.45;
}

.asset-tabbar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(74px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.asset-tabbar::-webkit-scrollbar {
  display: none;
}

.asset-tab-btn {
  min-height: 42px;
  padding: 0 2px;
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #8a909b;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.asset-tab-btn.active {
  color: #fff4de;
  border-bottom-color: var(--accent);
}

.asset-toolbar-panel {
  display: grid;
  gap: 14px;
  padding: 18px 16px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 0, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(29, 32, 40, 0.95), rgba(16, 18, 23, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.asset-toolbar {
  display: grid;
  gap: 12px;
}

.asset-toolbar-copy h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff7ee;
}

.asset-toolbar-copy p {
  margin: 6px 0 0;
  color: #979ca7;
  font-size: 0.82rem;
  line-height: 1.5;
}

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

.asset-mini-btn,
.asset-add-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.asset-mini-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #f4efe8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.asset-add-btn {
  background: linear-gradient(180deg, #ffd24e, #ffb800);
  color: #20170a;
  box-shadow: 0 10px 24px rgba(255, 184, 0, 0.22);
}

.asset-manage-panel,
.asset-upload-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.asset-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.asset-panel-head strong {
  display: block;
  color: #fff7ee;
  font-size: 1rem;
}

.asset-panel-head p {
  margin: 6px 0 0;
  color: #9499a4;
  font-size: 0.82rem;
  line-height: 1.5;
}

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

.asset-manage-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-height: 84px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d8dce3;
  text-align: left;
}

.asset-manage-card span {
  color: #9ca1ab;
  font-size: 0.82rem;
}

.asset-manage-card strong {
  font-size: 1.1rem;
  color: #fff5e8;
}

.asset-manage-card.active {
  border-color: rgba(246, 196, 69, 0.3);
  background: linear-gradient(180deg, rgba(246, 196, 69, 0.14), rgba(246, 196, 69, 0.05));
}

.asset-upload-form,
.asset-upload-grid {
  display: grid;
  gap: 14px;
}

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

.asset-field-note {
  margin: 8px 0 0;
  color: #8e949e;
  font-size: 0.78rem;
  line-height: 1.5;
}

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

.asset-search-form input {
  min-width: 0;
}

.template-search-form {
  margin-top: 14px;
}

.asset-search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.asset-filter-chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #b8bec8;
  font-size: 0.85rem;
}

.asset-filter-chip.active {
  background: linear-gradient(180deg, rgba(246, 196, 69, 0.26), rgba(246, 196, 69, 0.1));
  border-color: rgba(246, 196, 69, 0.24);
  color: #fff2d4;
}

.asset-library {
  display: grid;
  gap: 12px;
}

.asset-item-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 32, 40, 0.95), rgba(18, 19, 23, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.asset-item-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff8ed;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.asset-item-icon-video,
.asset-item-icon-image {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 225, 148, 0.34), transparent 38%),
    linear-gradient(180deg, rgba(255, 138, 61, 0.94), rgba(120, 62, 22, 0.96));
}

.asset-item-icon-audio {
  background:
    radial-gradient(circle at 30% 30%, rgba(153, 255, 161, 0.34), transparent 38%),
    linear-gradient(180deg, rgba(43, 199, 99, 0.94), rgba(18, 87, 43, 0.96));
}

.asset-item-icon-copy {
  background:
    radial-gradient(circle at 30% 30%, rgba(122, 214, 255, 0.34), transparent 38%),
    linear-gradient(180deg, rgba(58, 147, 255, 0.94), rgba(20, 58, 122, 0.96));
}

.asset-item-body {
  display: grid;
  gap: 10px;
}

.asset-item-body .summary-line {
  align-items: flex-start;
}

.asset-item-body .summary-line strong {
  font-size: 1rem;
  color: #fff7ee;
}

.asset-item-desc {
  margin: 0;
  color: #979ca7;
  font-size: 0.82rem;
  line-height: 1.5;
}

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

.asset-empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 40px 18px;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border: 1px dashed rgba(246, 196, 69, 0.18);
}

.asset-empty-state strong {
  color: #fff5e8;
  font-size: 1rem;
}

.asset-empty-state p {
  margin: 0;
  max-width: 26ch;
  color: #9499a4;
  font-size: 0.84rem;
  line-height: 1.5;
}

.asset-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.asset-empty-illustration {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.asset-empty-box {
  position: relative;
  width: 52px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 20px rgba(255, 255, 255, 0.03);
}

.asset-empty-box::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: -10px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.profile-page {
  display: grid;
  gap: 16px;
}

.profile-title-stack {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 6px 0 2px;
  text-align: center;
}

.profile-title-stack h1 {
  margin: 0;
  font-size: 1.34rem;
  color: #fff7ee;
}

.profile-title-stack p {
  margin: 0;
  max-width: 34ch;
  color: #9499a4;
  font-size: 0.82rem;
  line-height: 1.5;
}

.profile-card,
.profile-section,
.profile-inline-panel,
.profile-tips-card,
.profile-about-card {
  display: grid;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 0, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(29, 32, 40, 0.95), rgba(16, 18, 23, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.profile-card {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 225, 148, 0.36), transparent 38%),
    linear-gradient(180deg, rgba(255, 138, 61, 0.94), rgba(120, 62, 22, 0.96));
  color: #fff7ee;
  font-size: 1.12rem;
  font-weight: 800;
}

.profile-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-copy strong {
  color: #fff7ee;
  font-size: 1.08rem;
}

.profile-copy span,
.profile-copy p {
  margin: 0;
  color: #9499a4;
  font-size: 0.84rem;
}

.profile-edit-link {
  grid-column: 2;
  justify-self: start;
  min-height: 34px;
  padding: 0;
  background: transparent;
  color: #ffe08a;
  border: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.profile-section-head,
.profile-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-section-head h2,
.profile-panel-head strong {
  margin: 0;
  color: #fff7ee;
  font-size: 1.06rem;
}

.profile-section-head span {
  color: #969ba6;
  font-size: 0.82rem;
}

.profile-panel-head p {
  margin: 6px 0 0;
  color: #969ba6;
  font-size: 0.82rem;
  line-height: 1.5;
}

.profile-credits-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 184, 0, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(34, 36, 42, 0.96), rgba(19, 21, 25, 0.98));
  border: 1px solid rgba(246, 196, 69, 0.14);
}

.profile-credits-card span {
  color: #ffe08a;
  font-size: 0.84rem;
}

.profile-credits-card strong {
  display: block;
  margin-top: 6px;
  color: #fff7ee;
  font-size: 2rem;
  line-height: 1;
}

.profile-credits-card p {
  margin: 10px 0 0;
  color: #979ca7;
  font-size: 0.84rem;
  line-height: 1.5;
}

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

.profile-metric-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-metric-card strong {
  color: #fff7ee;
  font-size: 1.3rem;
}

.profile-metric-card span {
  color: #ffe08a;
  font-size: 0.84rem;
}

.profile-metric-card p {
  display: none;
}

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

.profile-service-item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-height: 102px;
  padding: 14px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f5efe5;
  text-align: center;
}

.profile-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff7ee;
  font-size: 0.96rem;
  font-weight: 800;
}

.profile-service-share {
  background: linear-gradient(180deg, rgba(255, 112, 165, 0.96), rgba(203, 60, 116, 0.96));
}

.profile-service-redeem {
  background: linear-gradient(180deg, rgba(255, 208, 88, 0.96), rgba(227, 158, 19, 0.96));
  color: #281a07;
}

.profile-service-tutorial {
  background: linear-gradient(180deg, rgba(108, 164, 255, 0.96), rgba(54, 106, 205, 0.96));
}

.profile-service-contact {
  background: linear-gradient(180deg, rgba(70, 214, 144, 0.96), rgba(27, 143, 88, 0.96));
}

.profile-service-about {
  background: linear-gradient(180deg, rgba(152, 160, 176, 0.96), rgba(88, 95, 112, 0.96));
}

.profile-service-item strong {
  color: #fff7ee;
  font-size: 0.82rem;
  line-height: 1.25;
}

.profile-service-item small {
  display: none;
}

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

.profile-tips-card p {
  margin: 0;
  color: #979ca7;
  font-size: 0.84rem;
  line-height: 1.6;
}

/* 未登录状态样式 */
.profile-card-guest {
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  text-align: center;
}

.profile-avatar-guest {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
}

.profile-card-guest .profile-copy {
  grid-column: 1 / -1;
  text-align: center;
}

.profile-card-guest .profile-copy strong {
  font-size: 1.2rem;
  color: #fff7ee;
}

.profile-card-guest .profile-copy p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.profile-card-guest .btn {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 200px;
}

.profile-guest-features {
  display: grid;
  gap: 16px;
}

.profile-guest-feature {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-guest-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.profile-guest-feature strong {
  color: #fff7ee;
  font-size: 1rem;
  margin: 0 0 4px 0;
}

.profile-guest-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.5;
}

.desktop-shell,
.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
}

.side-nav {
  position: sticky;
  top: 24px;
  height: fit-content;
  padding: 18px;
}

.side-nav button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.side-nav button.active {
  background: rgba(255, 204, 51, 0.12);
  border-color: var(--line-strong);
  color: var(--text);
}

.content-shell {
  display: grid;
  gap: 18px;
}

.route-home .content-shell {
  gap: 12px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.checkbox-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.checkbox-card input {
  width: 18px;
  height: 18px;
}

.two-column {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr 0.8fr;
}

.result-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 204, 51, 0.12), rgba(255, 204, 51, 0.04));
  border: 1px solid rgba(255, 204, 51, 0.22);
}

.kpi-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.summary-line span:last-child {
  color: var(--text-muted);
}

.cover-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 204, 51, 0.2), rgba(255, 204, 51, 0.05));
  border: 1px solid rgba(255, 204, 51, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
}

.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.empty-state {
  padding: 28px 20px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 204, 51, 0.24);
  color: var(--text-muted);
}

.toast {
  position: fixed;
  left: 50%;
  top: 20px;
  z-index: var(--z-toast);
  transform: translateX(-50%) translateY(-10px);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(9, 9, 9, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  border-color: rgba(255, 123, 99, 0.36);
}

.toast.success {
  border-color: rgba(126, 220, 136, 0.36);
}

.rewrite-progress-toast {
  position: fixed;
  left: 50%;
  top: calc(16px + env(safe-area-inset-top));
  z-index: calc(var(--z-toast) + 2);
  width: min(320px, calc(100vw - 32px));
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.94);
  border: 1px solid rgba(246, 196, 69, 0.34);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.rewrite-progress-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.rewrite-progress-toast.is-error {
  border-color: rgba(255, 107, 107, 0.42);
}

.rewrite-progress-toast.is-complete {
  border-color: rgba(126, 220, 136, 0.42);
}

.rewrite-progress-toast-ring {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--rewrite-progress, 0%), rgba(255, 255, 255, 0.12) 0);
  display: grid;
  place-items: center;
  position: relative;
}

.rewrite-progress-toast-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.96);
}

.rewrite-progress-toast-ring span {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.rewrite-progress-toast-ring span::after {
  content: "%";
  font-size: 0.62rem;
}

.rewrite-progress-toast-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.rewrite-progress-toast-copy strong {
  color: var(--text);
  font-size: 0.92rem;
}

.rewrite-progress-toast-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.helper-text {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.inline-link {
  color: var(--accent);
}

.table-stack {
  display: grid;
  gap: 10px;
}

.table-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 1fr 0.8fr 0.8fr;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.route-pill {
  color: var(--accent);
  font-weight: 700;
}

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e1708;
  background: linear-gradient(135deg, rgba(255, 204, 51, 0.92), rgba(255, 204, 51, 0.74));
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.route-mix .mobile-nav {
  display: none;
}

.route-mix .mobile-shell {
  padding-bottom: calc(156px + env(safe-area-inset-bottom, 0px));
}

.route-copy .mobile-nav {
  display: none;
}

.route-copy .mobile-shell {
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.route-rewrite {
  background: #000000;
}

.route-rewrite .wx-navbar-container {
  background: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

.route-rewrite .wx-statusbar,
.route-rewrite .wx-navbar-title {
  color: #111111;
}

.route-rewrite .wx-statusbar-signal,
.route-rewrite .wx-statusbar-wifi,
.route-rewrite .wx-statusbar-battery {
  background: #111111;
}

.route-rewrite .wx-navbar-back {
  background: transparent;
}

.route-rewrite .wx-navbar-back-icon {
  border-left-color: #111111;
  border-bottom-color: #111111;
}

.route-rewrite .wx-navbar-capsule {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.92);
}

.route-rewrite .wx-navbar-capsule-divider {
  background: rgba(0, 0, 0, 0.2);
}

.route-rewrite .wx-navbar-capsule-dot {
  background: #111111;
  box-shadow:
    0 -6px 0 #111111,
    0 6px 0 #111111;
}

.route-rewrite .mobile-shell {
  max-width: 460px;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
}

.route-rewrite .content-shell {
  gap: 0;
}

.route-rewrite .mobile-nav {
  display: none;
}

.rewrite-v2-page {
  min-height: calc(100vh - 88px);
  background: #000000;
  color: var(--text);
}

.rewrite-v2-control {
  background: #151216;
  padding: 12px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rewrite-v2-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-height: 52px;
  padding: 4px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rewrite-v2-tab {
  min-height: 44px;
  border-radius: 18px;
  background: transparent;
  color: var(--text-muted);
  border: 0;
  padding: 0 6px;
  font-size: 0.94rem;
  box-shadow: none;
  position: relative;
}

.rewrite-v2-tab.active {
  color: var(--accent);
  background:
    radial-gradient(circle at 50% 20%, rgba(246, 196, 69, 0.18), transparent 68%),
    rgba(246, 196, 69, 0.08);
}

.rewrite-v2-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(-50%);
}

.rewrite-v2-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 8px;
  margin-top: 16px;
}

.rewrite-v2-input-wrap {
  min-width: 0;
  min-height: 44px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.055);
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  padding: 0 14px;
}

.rewrite-v2-input-icon {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(246, 196, 69, 0.24);
  border-radius: 999px;
  position: relative;
}

.rewrite-v2-input-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  background: rgba(246, 196, 69, 0.24);
  border-radius: 999px;
  transform: rotate(45deg);
}

.rewrite-v2-input-wrap input {
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  min-width: 0;
}

.rewrite-v2-submit {
  min-height: 44px;
  border-radius: 18px;
  background: var(--accent);
  color: #15100a;
  font-weight: 800;
  padding: 0 14px;
  box-shadow: 0 10px 24px rgba(246, 196, 69, 0.22);
}

.rewrite-v2-credit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.7;
}

.rewrite-v2-credit strong {
  color: var(--accent);
}

.rewrite-v2-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 58px 28px 0;
}

.rewrite-v2-search-visual {
  width: 114px;
  height: 114px;
  border-radius: 999px;
  border: 1px solid rgba(246, 196, 69, 0.44);
  display: grid;
  place-items: center;
  background: rgba(246, 196, 69, 0.045);
}

.rewrite-v2-search-visual span {
  width: 31px;
  height: 31px;
  border: 3px solid var(--accent);
  border-radius: 999px;
  position: relative;
}

.rewrite-v2-search-visual span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 3px;
  right: -13px;
  bottom: -8px;
  border-radius: 999px;
  background: var(--accent);
  transform: rotate(45deg);
}

.rewrite-v2-empty h2 {
  margin: 30px 0 8px;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 800;
}

.rewrite-v2-empty p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.rewrite-v2-steps {
  width: calc(100% - 68px);
  margin: 68px auto 0;
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(246, 196, 69, 0.18);
}

.rewrite-v2-step {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #c4c7ce;
  font-size: 0.87rem;
}

.rewrite-v2-step span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #17100a;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  margin-top: 1px;
}

.rewrite-v2-step p {
  margin: 0;
  line-height: 1.55;
}

.rewrite-v2-keywords {
  margin: 38px auto 0;
  width: calc(100% - 54px);
  display: grid;
  justify-items: center;
  gap: 14px;
}

.rewrite-v2-keywords h3 {
  margin: 0;
  color: var(--accent);
  font-size: 0.96rem;
}

.rewrite-v2-keyword-list {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
}

.rewrite-v2-keyword {
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(246, 196, 69, 0.58);
  box-shadow: none;
  font-size: 0.86rem;
}

.rewrite-v2-result {
  margin: 18px 10px 0;
}

.rewrite-v2-history-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.rewrite-v2-progress-card {
  display: grid;
  gap: 10px;
  margin: 14px 10px 0;
  padding: 14px;
  border-radius: 8px;
  background: rgba(246, 196, 69, 0.08);
  border: 1px solid rgba(246, 196, 69, 0.18);
}

.rewrite-v2-progress-card.is-error {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.2);
}

.rewrite-v2-progress-head {
  display: grid;
  gap: 4px;
}

.rewrite-v2-progress-head strong {
  color: var(--text);
  font-size: 0.92rem;
}

.rewrite-v2-progress-head span,
.rewrite-v2-progress-meta {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.rewrite-v2-progress-track,
.rewrite-history-inline-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.rewrite-v2-progress-track span,
.rewrite-history-inline-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(246, 196, 69, 0.72), var(--accent));
}

.rewrite-v2-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rewrite-v2-task-hint {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(246, 196, 69, 0.08);
  border: 1px solid rgba(246, 196, 69, 0.18);
}

.rewrite-v2-task-hint strong {
  color: var(--accent);
  font-size: 0.86rem;
}

.rewrite-v2-task-hint span {
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.rewrite-v2-task-hint.is-error {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.22);
}

.rewrite-v2-task-hint.is-error strong {
  color: #ff8e8e;
}

.rewrite-v2-source-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(246, 196, 69, 0.16);
}

.rewrite-v2-source-card div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rewrite-v2-source-card span {
  color: var(--text-soft);
  font-size: 0.75rem;
}

.rewrite-v2-source-card strong {
  color: var(--text);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.rewrite-v2-source-card a {
  grid-column: 1 / -1;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #17100a;
  background: var(--accent);
  font-weight: 800;
}

.rewrite-v2-transcript {
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(246, 196, 69, 0.16);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.rewrite-history-page {
  display: grid;
  gap: 14px;
}

.rewrite-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 4px;
}

.rewrite-history-primary-action {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  color: #17100a;
  background: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
}

.rewrite-history-head h2 {
  margin: 6px 0 8px;
  color: var(--text);
  font-size: 1.18rem;
}

.rewrite-history-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

.rewrite-history-list {
  display: grid;
  gap: 14px;
}

.rewrite-history-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(246, 196, 69, 0.12);
}

.rewrite-history-media {
  position: relative;
  min-height: 148px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.rewrite-history-media img,
.rewrite-detail-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rewrite-history-media-fallback,
.rewrite-detail-video-fallback {
  width: 100%;
  height: 100%;
  min-height: 148px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
}

.rewrite-history-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 58px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff7ee;
  font-size: 0.82rem;
  font-weight: 700;
}

.rewrite-history-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.rewrite-history-inline-progress {
  display: grid;
  gap: 6px;
}

.rewrite-history-inline-progress small {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.rewrite-history-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.rewrite-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rewrite-history-actions .btn {
  min-height: 40px;
}

.rewrite-history-empty {
  padding: 26px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(246, 196, 69, 0.12);
  color: var(--text-soft);
  text-align: center;
}

.rewrite-history-empty strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.rewrite-detail-video-card {
  width: 100%;
  display: grid;
  gap: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(246, 196, 69, 0.14);
}

.rewrite-detail-video-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.rewrite-detail-copy {
  display: grid;
  gap: 10px;
}

.rewrite-detail-copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rewrite-video-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 60;
}

.rewrite-video-modal {
  position: fixed;
  inset: auto 14px 22px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 61;
}

.rewrite-video-modal video {
  width: 100%;
  max-height: 62vh;
  border-radius: 8px;
  background: #000;
}

.rewrite-video-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--accent);
  background: rgba(246, 196, 69, 0.08);
  font-size: 0.84rem;
  font-weight: 700;
}

.rewrite-video-close {
  justify-self: end;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff7ee;
  font-size: 0.82rem;
  font-weight: 700;
}

body.in-miniapp-webview.route-rewrite .mobile-shell {
  padding-top: 0;
}

body.in-miniapp-webview.route-rewrite .rewrite-v2-page {
  min-height: 100vh;
}

.mix-page {
  display: grid;
  gap: 14px;
}

.mix-page-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  padding: 2px 2px 0;
}

.mix-page-head h1 {
  margin: 0;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff9f2;
}

.mix-back-btn,
.mix-head-placeholder {
  width: 44px;
  min-height: 44px;
}

.mix-back-btn {
  padding: 0;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mix-back-btn span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid rgba(255, 255, 255, 0.92);
  transform: rotate(45deg) translate(2px, -1px);
}

.mix-v2-page {
  display: grid;
  gap: 12px;
}

.mix-v2-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
}

.mix-v2-head h1 {
  margin: 0;
  text-align: center;
  font-size: 1.18rem;
  color: #fff7ee;
}

.mix-v2-back {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mix-v2-back span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid rgba(255, 255, 255, 0.92);
  transform: rotate(45deg) translate(2px, -1px);
}

.mix-v2-head-dot {
  width: 6px;
  height: 6px;
  justify-self: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.mix-v2-form {
  display: grid;
  gap: 10px;
}

.mix-v2-block,
.mix-v2-row-btn,
.mix-v2-script-card,
.mix-v2-params {
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(239, 111, 158, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(30, 33, 40, 0.96), rgba(16, 18, 23, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.mix-v2-block {
  padding: 10px 12px;
}

.mix-v2-block input {
  min-height: 44px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.mix-v2-row-btn {
  width: 100%;
  min-height: 68px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.mix-v2-row-copy {
  display: grid;
  gap: 4px;
}

.mix-v2-row-copy span {
  color: #b9bfca;
  font-size: 0.86rem;
}

.mix-v2-row-copy strong {
  color: #fff7ee;
  font-size: 1rem;
}

.mix-v2-row-meta {
  color: #8f95a1;
  font-size: 0.88rem;
}

.mix-v2-row-arrow {
  width: 8px;
  height: 8px;
  border-top: 2px solid #8f95a1;
  border-right: 2px solid #8f95a1;
  transform: rotate(45deg);
}

.mix-v2-script-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.mix-v2-segmented {
  width: fit-content;
  min-height: 42px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.mix-v2-segment {
  min-height: 34px;
  min-width: 96px;
  border-radius: 10px;
  padding: 0 14px;
  background: transparent;
  color: #9ba1ab;
  box-shadow: none;
}

.mix-v2-segment.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff7ee;
}

.mix-v2-script-card textarea {
  min-height: 152px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mix-v2-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mix-v2-chip {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7dce5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  font-size: 0.8rem;
}

.mix-v2-chip.active {
  border-color: rgba(238, 92, 142, 0.36);
  background: rgba(238, 92, 142, 0.18);
  color: #ffbed2;
}

.mix-v2-params {
  padding: 0;
  overflow: hidden;
}

.mix-v2-params-head {
  width: 100%;
  min-height: 74px;
  padding: 14px 12px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: none;
}

.mix-v2-params-title {
  display: grid;
  gap: 4px;
  text-align: left;
}

.mix-v2-params-title strong {
  color: #fff7ee;
  font-size: 1rem;
}

.mix-v2-params-title span {
  color: #949aa5;
  font-size: 0.8rem;
}

.mix-v2-params-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #db6c97;
  border-bottom: 2px solid #db6c97;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.mix-v2-params.open .mix-v2-params-arrow {
  transform: rotate(-135deg);
}

.mix-v2-params-body {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mix-v2-detail-row,
.mix-v2-switch-row {
  width: 100%;
  min-height: 56px;
  padding: 14px 12px;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  box-shadow: none;
}

.mix-v2-detail-row span,
.mix-v2-detail-input span {
  color: #d9dee7;
  font-size: 0.95rem;
}

.mix-v2-detail-row strong {
  color: #949aa5;
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 55%;
  text-align: right;
}

.mix-v2-detail-row em {
  width: 7px;
  height: 7px;
  border-top: 2px solid #8f95a1;
  border-right: 2px solid #8f95a1;
  transform: rotate(45deg);
  font-style: normal;
}

.mix-v2-detail-input {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mix-v2-detail-input input {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8f95a1;
  text-align: right;
}

.mix-v2-switch-list {
  display: grid;
}

.mix-v2-switch-copy {
  display: grid;
  gap: 4px;
}

.mix-v2-switch-copy strong {
  color: #fff7ee;
  font-size: 0.95rem;
}

.mix-v2-switch-copy span {
  color: #8f95a1;
  font-size: 0.8rem;
}

.mix-v2-switch-row-bottom {
  border-bottom: 0;
}

.mix-v2-switch-ui {
  width: 50px;
  height: 30px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: background 180ms ease;
}

.mix-v2-switch-ui span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 180ms ease;
}

.mix-v2-switch-row.active .mix-v2-switch-ui {
  background: linear-gradient(180deg, #ef6f9e, #de4e87);
}

.mix-v2-switch-row.active .mix-v2-switch-ui span {
  transform: translateX(20px);
}

.mix-v2-submit-bar {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 20px));
  transform: translateX(-50%);
  z-index: 35;
  display: grid;
  gap: 8px;
}

.mix-v2-price-line {
  min-height: 28px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #d4d9e1;
}

.mix-v2-price-line span {
  font-size: 0.92rem;
}

.mix-v2-price-line strong {
  color: #f6c445;
  font-size: 0.94rem;
}

.mix-v2-price-line em {
  color: #8b929e;
  font-style: normal;
  font-size: 0.78rem;
}

.mix-v2-submit-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ef6f9e, #de4e87);
  color: #fff6fb;
  box-shadow: 0 16px 34px rgba(223, 79, 136, 0.34);
}

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

.mix-card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(32, 32, 35, 0.96), rgba(20, 20, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.mix-input-card {
  padding: 0 16px;
}

.mix-input-card input {
  min-height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff7f0;
  font-size: 1rem;
}

.mix-select-card {
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(31, 31, 33, 0.96), rgba(20, 20, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.mix-select-copy {
  display: grid;
  gap: 6px;
}

.mix-select-copy span {
  color: #b8b3bd;
  font-size: 0.92rem;
}

.mix-select-copy strong {
  color: #fff6f1;
  font-size: 1rem;
  font-weight: 700;
}

.mix-select-meta {
  color: #ef719d;
  font-size: 0.86rem;
  white-space: nowrap;
}

.mix-script-card {
  padding: 14px;
  display: grid;
  gap: 14px;
}

.mix-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(8, 8, 9, 0.9);
}

.mix-segment {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.mix-segment.active {
  background: #f5f0ec;
  color: #121212;
}

.mix-script-card textarea {
  min-height: 164px;
  border-radius: 20px;
  background: rgba(4, 4, 5, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 16px;
  color: #fff7f0;
  resize: none;
}

.mix-chip-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mix-chip {
  min-height: 40px;
  width: 100%;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f2edf0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
  white-space: nowrap;
  font-size: 0.76rem;
}

.mix-chip.active {
  background: rgba(238, 92, 142, 0.16);
  color: #ffb4cb;
  border-color: rgba(238, 92, 142, 0.34);
}

.mix-params-card {
  padding: 0;
  overflow: hidden;
}

.mix-params-head {
  width: 100%;
  padding: 16px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: none;
}

.mix-params-title {
  display: grid;
  gap: 4px;
  text-align: left;
}

.mix-params-title strong {
  color: #fff7f1;
  font-size: 1rem;
}

.mix-params-title span {
  color: #9f98a3;
  font-size: 0.84rem;
}

.mix-params-arrow {
  width: 11px;
  height: 11px;
  border-right: 2px solid #d96a95;
  border-bottom: 2px solid #d96a95;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.mix-params-card.open .mix-params-arrow {
  transform: rotate(-135deg);
}

.mix-params-body {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mix-detail-row,
.mix-switch-card {
  width: 100%;
  padding: 16px;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  box-shadow: none;
}

.mix-detail-row:last-child,
.mix-switch-card:last-child {
  border-bottom: 0;
}

.mix-detail-row span,
.mix-detail-input span {
  color: #dad6dd;
  font-size: 0.96rem;
}

.mix-detail-row strong {
  max-width: 58%;
  color: #8a8690;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: right;
}

.mix-detail-input {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mix-detail-input input {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8a8690;
  text-align: right;
}

.mix-switch-list {
  display: grid;
}

.mix-switch-copy {
  display: grid;
  gap: 4px;
}

.mix-switch-copy strong {
  color: #fff6f0;
  font-size: 0.98rem;
}

.mix-switch-copy span {
  color: #8d8792;
  font-size: 0.84rem;
}

.mix-switch-ui {
  width: 52px;
  height: 32px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: background 180ms ease;
}

.mix-switch-ui span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease;
}

.mix-switch-card.active .mix-switch-ui {
  background: linear-gradient(180deg, #f06c9e, #df4f88);
}

.mix-switch-card.active .mix-switch-ui span {
  transform: translateX(20px);
}

.mix-preview-card {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(238, 92, 142, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(238, 92, 142, 0.2);
  display: grid;
  gap: 12px;
}

.mix-preview-head,
.mix-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mix-preview-head span,
.mix-preview-row span {
  color: #d7d0d8;
}

.mix-preview-head strong,
.mix-preview-row strong {
  color: #fff3f7;
}

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

.mix-submit-bar {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 20px));
  transform: translateX(-50%);
  z-index: 35;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
}

.mix-price-box {
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(17, 17, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.mix-price-box span {
  color: #cdc6cf;
  font-size: 0.82rem;
}

.mix-price-box strong {
  color: #fff6f1;
  font-size: 1rem;
}

.mix-submit-btn {
  min-height: 56px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ef6f9e, #de4e87);
  color: #fff6fb;
  box-shadow: 0 16px 34px rgba(223, 79, 136, 0.34);
}

.mix-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.54);
  z-index: 38;
}

.mix-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(460px, 100vw);
  max-height: min(78vh, 760px);
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  border-radius: 28px 28px 0 0;
  background: #fffefe;
  color: #19161a;
  z-index: 39;
  overflow: auto;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3);
}

.mix-sheet-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #e8e5ea;
}

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

.mix-sheet-head h3 {
  margin: 0;
  color: #1a171b;
  font-size: 1.1rem;
}

.mix-sheet-close {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
  background: #f5f4f7;
  color: #7a727b;
  box-shadow: none;
}

.mix-choice-list,
.mix-plan-list {
  display: grid;
  gap: 12px;
}

.mix-choice-item,
.mix-plan-card {
  width: 100%;
  padding: 14px;
  border-radius: 20px;
  background: #f7f7fb;
  border: 1px solid #eceaf0;
  color: #1a171b;
  box-shadow: none;
}

.mix-choice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.mix-choice-item strong,
.mix-plan-card strong {
  color: #1a171b;
  font-size: 0.98rem;
}

.mix-choice-item span,
.mix-choice-item em {
  color: #7f7883;
  font-size: 0.86rem;
  font-style: normal;
}

.mix-choice-item.active,
.mix-plan-card.active,
.mix-music-card.active {
  border-color: rgba(222, 78, 135, 0.42);
  background: rgba(255, 239, 245, 0.98);
}

.mix-choice-item-rich {
  align-items: flex-start;
}

.mix-choice-copy,
.mix-choice-meta {
  display: grid;
  gap: 6px;
}

.mix-choice-meta {
  justify-items: end;
}

.mix-choice-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(222, 78, 135, 0.12);
  color: #de4e87;
  font-size: 0.78rem;
  font-weight: 700;
}

.mix-plan-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  text-align: left;
}

.mix-plan-thumb {
  min-height: 124px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(45, 28, 36, 0.16), rgba(218, 115, 157, 0.26)),
    linear-gradient(135deg, #b99a75, #2b2529);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px;
}

.mix-plan-thumb span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #5c5261;
  font-size: 0.74rem;
  font-weight: 700;
}

.mix-plan-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.mix-plan-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mix-plan-copy p {
  margin: 0;
  color: #7c7480;
  font-size: 0.88rem;
  line-height: 1.5;
}

.mix-plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(222, 78, 135, 0.14);
  color: #de4e87;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.mix-plan-footer span {
  color: #de4e87;
  font-size: 0.88rem;
  font-weight: 700;
}

.mix-music-tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.mix-music-tab {
  min-height: 34px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #7b7480;
  white-space: nowrap;
  box-shadow: none;
}

.mix-music-tab.active {
  color: #de4e87;
  border-bottom: 2px solid #de4e87;
}

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

.mix-music-card {
  min-height: 72px;
  padding: 14px 12px;
  border-radius: 18px;
  background: #f7f8fc;
  border: 1px solid #ececf3;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 8px;
  color: #1a171b;
  box-shadow: none;
}

.mix-music-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ef7ca8;
  position: relative;
}

.mix-music-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  border-left: 7px solid #ef7ca8;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.mix-sheet-confirm {
  width: 100%;
  margin-top: 16px;
  min-height: 52px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ef6f9e, #de4e87);
  color: #fff8fb;
}

.mix-sheet-template {
  max-height: min(86vh, 820px);
  background: #f8f7fb;
  color: #18161b;
}

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

.mix-template-card {
  width: 100%;
  padding: 0;
  border-radius: 14px;
  border: 1px solid #ece9f1;
  background: #ffffff;
  display: grid;
  gap: 6px;
  box-shadow: none;
  overflow: hidden;
}

.mix-template-preview {
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 198, 72, 0.28), transparent 32%),
    linear-gradient(150deg, #3a2b2f, #7b5960 45%, #3b2f34);
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px;
}

.mix-template-preview span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  max-width: 100%;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #574b59;
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mix-template-card strong {
  padding: 0 8px;
  color: #2f2833;
  font-size: 0.92rem;
  line-height: 1.2;
  text-align: center;
}

.mix-template-card small {
  padding: 0 8px 10px;
  color: #8c8792;
  font-size: 0.76rem;
  text-align: center;
}

.mix-template-card.active {
  border-color: #ef6f9e;
  box-shadow: 0 0 0 2px rgba(239, 111, 158, 0.18);
}

.mix-template-confirm {
  width: 100%;
  margin-top: 14px;
  min-height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ef6f9e, #de4e87);
  color: #fff8fb;
}

.copy-v2-page,
.copy-v2-chat-page {
  display: grid;
  gap: 12px;
}

.copy-v2-head,
.copy-v2-chat-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
}

.copy-v2-head h1,
.copy-v2-chat-head h1 {
  margin: 0;
  text-align: center;
  color: #fff7ee;
  font-size: 1.16rem;
}

.copy-v2-back {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  position: relative;
}

.copy-v2-back::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #d3d9e2;
  border-left: 2px solid #d3d9e2;
  transform: translateY(-50%) rotate(-45deg);
}

.copy-v2-head-dot {
  width: 6px;
  height: 6px;
  justify-self: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.copy-v2-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.copy-v2-tab {
  min-height: 32px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #a4abb6;
  box-shadow: none;
  border-bottom: 2px solid transparent;
}

.copy-v2-tab.active {
  color: #ff9bc1;
  border-bottom-color: #ff6ea8;
}

.copy-v2-section {
  display: grid;
  gap: 10px;
}

.copy-v2-section h3 {
  margin: 0;
  color: #fff7ee;
  font-size: 1.05rem;
}

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

.copy-v2-agent-card {
  border-radius: 14px;
  padding: 12px;
  background:
    radial-gradient(circle at top right, rgba(93, 147, 255, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(30, 33, 40, 0.96), rgba(16, 18, 23, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 8px;
}

.copy-v2-agent-avatar,
.copy-v2-chat-agent-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #82b7ff, #345b93 62%, #1c2f50);
  color: #ecf4ff;
  font-weight: 700;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(30, 73, 131, 0.32);
}

.copy-v2-agent-copy {
  display: grid;
  gap: 4px;
}

.copy-v2-agent-copy strong {
  color: #fff7ee;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-v2-agent-copy p {
  margin: 0;
  color: #8f96a2;
  font-size: 0.78rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.copy-v2-agent-enter {
  width: 100%;
  min-height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #d8deea;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.copy-v2-record-list {
  display: grid;
  gap: 10px;
}

.copy-v2-record-card {
  border-radius: 14px;
  padding: 12px;
  background:
    radial-gradient(circle at top right, rgba(239, 111, 158, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(30, 33, 40, 0.96), rgba(16, 18, 23, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 8px;
}

.copy-v2-record-card strong {
  color: #fff7ee;
  font-size: 0.95rem;
}

.copy-v2-record-card p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.83rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.copy-v2-record-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #848b97;
  font-size: 0.76rem;
}

.copy-v2-mini-btn {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #d9dfeb;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  font-size: 0.76rem;
}

.copy-v2-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copy-v2-filter-chip {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #a4abb6;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  font-size: 0.8rem;
}

.copy-v2-filter-chip.active {
  color: #ffd2e2;
  border-color: rgba(239, 111, 158, 0.35);
  background: rgba(239, 111, 158, 0.18);
}

.copy-v2-empty {
  min-height: 150px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: #8c93a0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-v2-chat-agent-card {
  border-radius: 14px;
  padding: 12px;
  background:
    radial-gradient(circle at top right, rgba(93, 147, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(30, 33, 40, 0.96), rgba(16, 18, 23, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
}

.copy-v2-chat-agent-copy {
  display: grid;
  gap: 4px;
}

.copy-v2-chat-agent-copy strong {
  color: #fff7ee;
  font-size: 0.98rem;
}

.copy-v2-chat-agent-copy p {
  margin: 0;
  color: #99a0ac;
  font-size: 0.84rem;
  line-height: 1.55;
}

.copy-v2-chat-form {
  border-radius: 14px;
  padding: 12px;
  background:
    radial-gradient(circle at top right, rgba(239, 111, 158, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(30, 33, 40, 0.96), rgba(16, 18, 23, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 12px;
}

.copy-v2-chat-field {
  display: grid;
  gap: 8px;
}

.copy-v2-chat-field label {
  margin: 0;
  color: #d6dce7;
  font-size: 0.9rem;
}

.copy-v2-chat-field textarea {
  min-height: 108px;
}

.copy-v2-chat-tip {
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
}

.copy-v2-chat-tip strong {
  color: #fff7ee;
  font-size: 0.9rem;
}

.copy-v2-chat-tip p {
  margin: 0;
  color: #949ba7;
  font-size: 0.8rem;
  line-height: 1.5;
}

.copy-v2-chat-submit {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ef6f9e, #de4e87);
  color: #fff8fb;
  box-shadow: 0 12px 28px rgba(223, 79, 136, 0.3);
}

.copy-v2-chat-result {
  border-radius: 14px;
  padding: 12px;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 0, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(30, 33, 40, 0.96), rgba(16, 18, 23, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 8px;
}

.copy-v2-chat-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.copy-v2-chat-result strong,
.copy-v2-chat-result h3 {
  margin: 0;
  color: #fff7ee;
  font-size: 0.95rem;
}

.copy-v2-chat-result p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.copy-v2-chat-page {
  gap: 10px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.copy-v2-chat-top {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 184, 0, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(30, 33, 40, 0.96), rgba(16, 18, 23, 0.98));
}

.copy-v2-chat-agent-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff7ee;
  font-size: 0.95rem;
  font-weight: 700;
}

.copy-v2-chat-agent-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ef6f9e, #c9487f 65%, #7e264f);
  color: #fff4fa;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-v2-chat-tabsline {
  display: flex;
  gap: 10px;
}

.copy-v2-chat-tab-action {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #d8deea;
  box-shadow: none;
  font-size: 0.84rem;
}

.copy-v2-chat-material {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top right, rgba(239, 111, 158, 0.1), transparent 35%),
    linear-gradient(180deg, rgba(30, 33, 40, 0.96), rgba(16, 18, 23, 0.98));
}

.copy-v2-chat-material-copy {
  display: grid;
  gap: 4px;
}

.copy-v2-chat-material-copy strong {
  color: #fff7ee;
  font-size: 0.92rem;
}

.copy-v2-chat-material-copy p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.78rem;
  line-height: 1.45;
}

.copy-v2-chat-material-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(239, 111, 158, 0.22);
  color: #ffd7e6;
  border: 1px solid rgba(239, 111, 158, 0.38);
  box-shadow: none;
  font-size: 0.8rem;
}

.copy-v2-chat-stream {
  display: grid;
  gap: 10px;
  max-height: min(46vh, 560px);
  overflow: auto;
  padding-right: 2px;
}

.copy-v2-msg {
  display: grid;
  gap: 6px;
}

.copy-v2-msg-role {
  color: #8f96a2;
  font-size: 0.76rem;
}

.copy-v2-msg.user {
  justify-items: end;
}

.copy-v2-msg-bubble {
  width: fit-content;
  max-width: min(100%, 88vw);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 23, 29, 0.92);
  display: grid;
  gap: 8px;
}

.copy-v2-msg.user .copy-v2-msg-bubble {
  background: rgba(239, 111, 158, 0.18);
  border-color: rgba(239, 111, 158, 0.4);
}

.copy-v2-msg-bubble p {
  margin: 0;
  color: #f6f1f8;
  font-size: 0.95rem;
  line-height: 1.58;
  white-space: pre-wrap;
}

.copy-v2-msg-bubble small {
  color: #8f96a2;
  font-size: 0.72rem;
}

.copy-v2-msg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-v2-msg-action {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #cfd6e3;
  box-shadow: none;
  font-size: 0.74rem;
}

.copy-v2-chat-composer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 20, 26, 0.96);
}

.copy-v2-chat-composer input {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f6f1f8;
  padding: 0 12px;
}

.copy-v2-chat-composer input::placeholder {
  color: #8e95a1;
}

.copy-v2-chat-composer button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ef6f9e, #de4e87);
  color: #fff8fb;
}

.copy-v2-chat-note {
  margin: 0;
  text-align: center;
  color: #8a909d;
  font-size: 0.76rem;
}

.copy-v2-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 44;
}

.copy-v2-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(460px, 100vw);
  max-height: min(76vh, 760px);
  transform: translateX(-50%);
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  border-radius: 26px 26px 0 0;
  background: #f8f6fb;
  color: #1d1a21;
  z-index: 45;
  overflow: auto;
  box-shadow: 0 -16px 42px rgba(0, 0, 0, 0.35);
}

.copy-v2-sheet-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #ddd7e2;
}

.copy-v2-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.copy-v2-sheet-head h3 {
  margin: 0;
  color: #1f1b22;
  font-size: 1.12rem;
}

.copy-v2-sheet-close {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #ece8f1;
  background: #ffffff;
  color: #7f7588;
  box-shadow: none;
}

.copy-v2-history-list {
  display: grid;
  gap: 10px;
}

.copy-v2-history-item {
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #ebe7f0;
  background: #ffffff;
  box-shadow: none;
  display: grid;
  gap: 6px;
  color: #1f1b22;
}

.copy-v2-history-item strong {
  color: #1f1b22;
  font-size: 0.9rem;
}

.copy-v2-history-item p {
  margin: 0;
  color: #6c6374;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.copy-v2-history-item span {
  color: #91889a;
  font-size: 0.72rem;
}

.copy-v2-sheet-empty {
  min-height: 200px;
  border-radius: 14px;
  border: 1px dashed #ddd6e4;
  color: #a096ab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-v2-material-chip-row {
  display: flex;
  gap: 8px;
  padding-bottom: 10px;
}

.copy-v2-material-chip {
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #f0d4e1;
  background: rgba(239, 111, 158, 0.16);
  color: #de4e87;
  box-shadow: none;
  font-size: 0.9rem;
}

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

.copy-v2-material-add,
.copy-v2-material-card {
  min-height: 140px;
  border-radius: 16px;
  border: 1px solid #e9e4ee;
  background: #ffffff;
  color: #1f1b22;
  box-shadow: none;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  text-align: center;
  padding: 10px;
}

.copy-v2-material-add span {
  font-size: 2.2rem;
  line-height: 1;
  color: #74707b;
}

.copy-v2-material-add strong,
.copy-v2-material-card strong {
  color: #222026;
  font-size: 0.92rem;
}

.copy-v2-material-add small,
.copy-v2-material-card small {
  color: #8f8698;
  font-size: 0.74rem;
}

.copy-v2-material-card {
  position: relative;
  align-content: start;
  justify-items: start;
  text-align: left;
}

.copy-v2-material-card.active {
  border-color: rgba(239, 111, 158, 0.46);
  box-shadow: 0 0 0 2px rgba(239, 111, 158, 0.16);
}

.copy-v2-material-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #d8d2dd;
  color: #ffffff;
  background: transparent;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  right: 10px;
}

.copy-v2-material-card.active .copy-v2-material-check {
  border-color: #ef6f9e;
  background: #ef6f9e;
}

.copy-v2-material-empty {
  grid-column: 1 / -1;
  min-height: 120px;
  border-radius: 14px;
  border: 1px dashed #ded7e5;
  color: #a096ab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-v2-material-footer {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}

.copy-v2-material-select-all {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #ddd7e4;
  background: #ffffff;
  color: #47404f;
  box-shadow: none;
}

.copy-v2-material-select-all.active {
  border-color: #ef6f9e;
  color: #de4e87;
}

.copy-v2-material-confirm {
  min-height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef6f9e, #de4e87);
  color: #fff8fb;
}

.template-page,
.works-page {
  display: grid;
  gap: 16px;
}

.template-title-stack,
.works-title-stack {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 6px 0 2px;
  text-align: center;
}

.template-title-stack h1,
.works-title-stack h1 {
  margin: 0;
  font-size: 1.34rem;
  color: #fff7ee;
}

.template-hero-card,
.template-section,
.works-summary-card,
.works-board-panel,
.studio-card {
  display: grid;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(239, 111, 158, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(29, 32, 40, 0.95), rgba(16, 18, 23, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.template-hero-card {
  gap: 16px;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 184, 0, 0.16), transparent 26%),
    radial-gradient(circle at 22% 24%, rgba(239, 111, 158, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(31, 34, 42, 0.98), rgba(14, 15, 18, 0.98));
}

.template-hero-copy {
  display: grid;
  gap: 10px;
}

.template-hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(239, 111, 158, 0.14);
  border: 1px solid rgba(239, 111, 158, 0.22);
  color: #ffb4cb;
  font-size: 0.76rem;
  font-weight: 700;
}

.template-hero-copy h2 {
  margin: 0;
  color: #fff7ee;
  font-size: 1.5rem;
}

.template-hero-copy p,
.studio-card-title p,
.works-summary-head p {
  margin: 0;
  color: #979ca7;
  font-size: 0.84rem;
  line-height: 1.55;
}

.template-hero-actions,
.template-card-actions,
.studio-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.template-section-head,
.works-summary-head,
.studio-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.template-section-head h2,
.works-summary-head strong {
  margin: 0;
  color: #fff7ee;
  font-size: 1.08rem;
}

.template-section-head span,
.works-summary-head span {
  color: #9b9faa;
  font-size: 0.82rem;
}

.template-featured-grid,
.template-grid,
.studio-list {
  display: grid;
  gap: 12px;
}

.template-filter-row,
.works-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.template-filter-chip,
.works-filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #b8bec8;
  font-size: 0.86rem;
}

.template-filter-chip.active,
.works-filter-chip.active {
  background: linear-gradient(180deg, rgba(239, 111, 158, 0.18), rgba(239, 111, 158, 0.08));
  border-color: rgba(239, 111, 158, 0.28);
  color: #ffd3e2;
}

.works-filter-chip.active[data-status="ready"],
.works-filter-chip.active[data-status="processing"] {
  background: linear-gradient(180deg, rgba(255, 179, 71, 0.2), rgba(255, 179, 71, 0.1));
  border-color: rgba(255, 179, 71, 0.32);
  color: #ffd9a1;
}

.works-filter-chip.active[data-status="completed"] {
  background: linear-gradient(180deg, rgba(126, 220, 136, 0.2), rgba(126, 220, 136, 0.1));
  border-color: rgba(126, 220, 136, 0.32);
  color: #a7f3af;
}

.works-filter-chip.active[data-status="draft"] {
  background: linear-gradient(180deg, rgba(145, 151, 162, 0.2), rgba(145, 151, 162, 0.1));
  border-color: rgba(145, 151, 162, 0.3);
  color: #d2d6de;
}

.works-filter-chip.active[data-status="failed"],
.works-filter-chip.active[data-status="cancelled"] {
  background: linear-gradient(180deg, rgba(255, 123, 99, 0.2), rgba(255, 123, 99, 0.1));
  border-color: rgba(255, 123, 99, 0.32);
  color: #ffc0b3;
}

.template-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.template-card-featured {
  background:
    radial-gradient(circle at top right, rgba(255, 184, 0, 0.1), transparent 30%),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(239, 111, 158, 0.16);
}

.template-card-preview {
  width: 74px;
  height: 96px;
  border-radius: 20px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 225, 148, 0.3), transparent 42%),
    linear-gradient(180deg, rgba(239, 111, 158, 0.84), rgba(56, 32, 46, 0.96));
}

.template-card-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-card-preview span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.86);
  color: #5f5563;
  font-size: 0.74rem;
  font-weight: 700;
}

.template-card-body,
.studio-work-body,
.studio-card-title {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.template-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.template-card-head-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.template-card-title strong,
.studio-card-title strong {
  color: #fff7ee;
  font-size: 1rem;
}

.studio-card-title strong,
.studio-card-title p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.template-card-title p {
  margin: 6px 0 0;
  color: #979ca7;
  font-size: 0.84rem;
  line-height: 1.5;
}

.template-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(239, 111, 158, 0.14);
  color: #ffb4cb;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.template-card-meta,
.studio-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #9ea3ad;
  font-size: 0.84rem;
}

.template-card-meta span,
.studio-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.works-summary-card {
  gap: 16px;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 0, 0.14), transparent 22%),
    radial-gradient(circle at left top, rgba(239, 111, 158, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(29, 32, 40, 0.95), rgba(16, 18, 23, 0.98));
}

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

.works-metric-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.works-metric-card span {
  color: #ffe08a;
  font-size: 0.82rem;
}

.works-metric-card strong {
  color: #fff7ee;
  font-size: 1.5rem;
  line-height: 1;
}

.works-board-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(12, 13, 16, 0.92);
}

.works-board-btn {
  min-height: 42px;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.works-board-btn.active {
  background: linear-gradient(180deg, rgba(239, 111, 158, 0.22), rgba(239, 111, 158, 0.1));
  color: #fff3f7;
}

.works-board-panel {
  gap: 16px;
}

.works-board-panel .empty-state {
  min-height: 168px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.studio-card {
  padding: 16px;
}

.studio-card-head .status-badge {
  flex-shrink: 0;
}

.studio-work-card {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
}

.studio-work-cover {
  position: relative;
  overflow: hidden;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 225, 148, 0.34), transparent 38%),
    linear-gradient(180deg, rgba(255, 138, 61, 0.94), rgba(120, 62, 22, 0.96));
  color: #fff8ed;
  font-size: 1rem;
  font-weight: 800;
}

.studio-work-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-work-cover span {
  position: relative;
  z-index: 1;
  display: inline-block;
  max-width: 100%;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-task-card {
  gap: 12px;
}

.detail-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  z-index: 41;
}

.detail-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(460px, 100vw);
  max-height: min(80vh, 780px);
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 0, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(29, 32, 40, 0.98), rgba(14, 15, 18, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3);
  z-index: 42;
  overflow: auto;
}

.detail-sheet-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.detail-sheet-close {
  justify-self: end;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #c5cad1;
  box-shadow: none;
}

.detail-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.detail-sheet-head h2 {
  margin: 6px 0 0;
  color: #fff7ee;
  font-size: 1.2rem;
}

.detail-sheet-summary {
  margin: 12px 0 0;
  color: #9fa4ae;
  font-size: 0.9rem;
  line-height: 1.6;
}

.detail-highlight-card {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 0, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-highlight-card-template {
  background:
    radial-gradient(circle at top right, rgba(239, 111, 158, 0.16), transparent 30%),
    radial-gradient(circle at left top, rgba(255, 184, 0, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.detail-highlight-kicker {
  color: #ffe08a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.detail-highlight-card strong {
  color: #fff7ee;
  font-size: 1rem;
  line-height: 1.5;
}

.detail-highlight-card p {
  margin: 0;
  color: #9fa4ae;
  font-size: 0.85rem;
  line-height: 1.55;
}

.asset-preview-frame,
.asset-preview-file {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.asset-preview-image img,
.asset-preview-video video {
  width: 100%;
  border-radius: 16px;
  display: block;
  background: rgba(0, 0, 0, 0.28);
}

.asset-preview-audio audio {
  width: 100%;
}

.asset-preview-audio strong,
.asset-preview-file strong {
  color: #fff7ee;
  font-size: 0.96rem;
}

.asset-preview-file span {
  color: #9fa4ae;
  font-size: 0.82rem;
}

.detail-tag-row {
  margin-top: 12px;
}

.detail-info-list,
.detail-log-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.detail-info-row,
.detail-log-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-info-row span,
.detail-log-item span {
  color: #9fa4ae;
  font-size: 0.82rem;
}

.detail-info-row strong {
  max-width: 60%;
  color: #fff7ee;
  font-size: 0.9rem;
  text-align: right;
  word-break: break-all;
}

.detail-log-panel {
  display: grid;
  gap: 12px;
}

.detail-log-panel > strong {
  color: #fff7ee;
  font-size: 1rem;
}

.detail-log-item {
  display: grid;
  gap: 8px;
}

.detail-log-item p {
  margin: 0;
  color: #eef1f5;
  font-size: 0.88rem;
  line-height: 1.55;
}

.detail-log-empty,
.detail-sheet-loading {
  padding: 20px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #9fa4ae;
  text-align: center;
}

.detail-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.detail-form,
.detail-form-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.clone-v2-page {
  display: grid;
  gap: 14px;
}

.clone-v2-header {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 10px;
  padding: 4px 2px;
}

.clone-v2-header h1 {
  margin: 0;
  text-align: center;
  font-size: 1.18rem;
  color: #fff7ee;
}

.clone-v2-back {
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  position: relative;
}

.clone-v2-back::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #d4dae4;
  border-left: 2px solid #d4dae4;
  transform: translateY(-50%) rotate(-45deg);
}

.clone-v2-head-dot {
  width: 6px;
  height: 6px;
  justify-self: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.clone-v2-form {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(239, 111, 158, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(29, 32, 40, 0.95), rgba(16, 18, 23, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.clone-v2-block {
  display: grid;
  gap: 10px;
}

.clone-v2-block label {
  margin: 0;
  color: #d6dbe4;
  font-size: 0.98rem;
  font-weight: 600;
}

.clone-v2-block label span {
  color: #ff7b63;
}

.clone-v2-upload {
  min-height: 170px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
}

.clone-v2-upload strong {
  color: #e3e7ef;
  font-size: 1rem;
}

.clone-v2-upload small {
  color: #8f95a1;
  font-size: 0.8rem;
}

.clone-v2-upload-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.clone-v2-upload-icon::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  border-left: 12px solid rgba(255, 255, 255, 0.72);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.clone-v2-upload-icon::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.clone-v2-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.clone-v2-mode-btn {
  min-height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b8bec8;
  box-shadow: none;
}

.clone-v2-mode-btn.active {
  background: rgba(255, 184, 0, 0.12);
  border-color: rgba(255, 184, 0, 0.24);
  color: #ffe7ac;
}

.clone-v2-requirement,
.clone-v2-examples,
.clone-v2-analysis {
  display: grid;
  gap: 10px;
}

.clone-v2-requirement > strong,
.clone-v2-examples > strong,
.clone-v2-analysis > strong {
  color: #fff7ee;
  font-size: 1.02rem;
}

.clone-v2-requirement-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.clone-v2-requirement-row span {
  color: #b0b7c3;
  font-size: 0.9rem;
}

.clone-v2-requirement-row p {
  margin: 0;
  color: #9aa1ac;
  font-size: 0.9rem;
  line-height: 1.55;
}

.clone-v2-example-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.clone-v2-example-card {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.clone-v2-example-illustration {
  width: 100%;
  min-height: 66px;
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(255, 184, 0, 0.2), transparent 56%),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #ffe5b0;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clone-v2-example-card small {
  color: #8f96a2;
  font-size: 0.73rem;
}

.clone-v2-analysis {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.clone-v2-analysis ul {
  margin: 0;
  padding-left: 18px;
  color: #99a0ab;
  font-size: 0.84rem;
  display: grid;
  gap: 6px;
}

.clone-v2-note {
  margin: 0;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  color: #838a96;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clone-v2-price {
  margin: 0;
  text-align: center;
  color: #b2b8c3;
  font-size: 0.92rem;
}

.clone-v2-price strong {
  color: #ffd978;
}

.clone-v2-submit {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffd24e, #ffb800);
  color: #20170a;
  box-shadow: 0 14px 28px rgba(255, 184, 0, 0.24);
}

@media (max-width: 980px) {
  .desktop-shell,
  .admin-shell,
  .two-column {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 24px, 100%);
    padding-top: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .mix-submit-bar,
  .mix-v2-submit-bar {
    width: calc(100vw - 20px);
  }

  .mix-plan-card {
    grid-template-columns: 84px 1fr;
  }

  .mix-template-card strong {
    font-size: 0.86rem;
  }

  .copy-v2-agent-card {
    padding: 10px;
  }

  .copy-v2-agent-copy p {
    font-size: 0.74rem;
  }

  .copy-v2-chat-material {
    grid-template-columns: 1fr;
  }

  .copy-v2-chat-material-btn {
    width: 100%;
  }

  .copy-v2-chat-stream {
    max-height: min(42vh, 420px);
  }

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

  .copy-v2-material-footer {
    grid-template-columns: 1fr;
  }

  .clone-v2-form {
    padding: 14px;
  }

  .clone-v2-requirement-row {
    grid-template-columns: 64px 1fr;
  }

  .clone-v2-example-illustration {
    min-height: 58px;
  }

  .asset-search-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   微信小程序 UI 规范 - 导航栏系统
   ======================================== */

/* 导航栏容器 */
.wx-navbar-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(24, 26, 31, 0.98), rgba(10, 11, 13, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* 状态栏 */
.wx-statusbar {
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(246, 241, 232, 0.9);
  padding-top: env(safe-area-inset-top, 0px);
}

.wx-statusbar-time {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wx-statusbar-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wx-statusbar-signal,
.wx-statusbar-wifi,
.wx-statusbar-battery {
  width: 16px;
  height: 12px;
  background: rgba(246, 241, 232, 0.85);
  border-radius: 2px;
  position: relative;
}

.wx-statusbar-signal {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='5' y='5' width='3' height='7' rx='1'/%3E%3Crect x='10' y='2' width='3' height='10' rx='1'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='5' y='5' width='3' height='7' rx='1'/%3E%3Crect x='10' y='2' width='3' height='10' rx='1'/%3E%3C/svg%3E") center/contain no-repeat;
}

.wx-statusbar-wifi {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 12a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM4 7a5 5 0 018 0M1 4a9 9 0 0114 0' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 12a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM4 7a5 5 0 018 0M1 4a9 9 0 0114 0' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}

.wx-statusbar-battery {
  width: 22px;
  border-radius: 3px;
}

.wx-statusbar-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 6px;
  background: rgba(246, 241, 232, 0.85);
  border-radius: 0 2px 2px 0;
}

/* 导航栏 */
.wx-navbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 16px;
}

/* 返回按钮 */
.wx-navbar-back {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
  padding: 0;
  min-height: auto;
}

.wx-navbar-back:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-50%) scale(1.05);
}

.wx-navbar-back:active {
  transform: translateY(-50%) scale(0.95);
}

.wx-navbar-back.hidden {
  opacity: 0;
  pointer-events: none;
}

.wx-navbar-back-icon {
  width: 10px;
  height: 10px;
  border-left: 2px solid rgba(246, 241, 232, 0.9);
  border-bottom: 2px solid rgba(246, 241, 232, 0.9);
  transform: rotate(45deg);
  margin-left: 2px;
}

/* 导航栏标题 */
.wx-navbar-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* 胶囊按钮 */
.wx-navbar-capsule {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 87px;
  height: 32px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 10, 12, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wx-navbar-capsule-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
}

.wx-navbar-capsule-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(246, 241, 232, 0.9);
  box-shadow:
    0 -6px 0 rgba(246, 241, 232, 0.9),
    0 6px 0 rgba(246, 241, 232, 0.9);
}

/* 内容区域适配 */
.content-shell {
  padding-top: 88px; /* 状态栏44px + 导航栏44px */
  min-height: calc(100vh - 88px);
}

/* 小程序 web-view 内使用系统原生头部，隐藏 H5 自绘头部 */
body.in-miniapp-webview .wx-navbar-container {
  display: none;
}

body.in-miniapp-webview .mobile-shell {
  padding-top: 12px;
}

body.in-miniapp-webview .content-shell {
  padding-top: 0;
  min-height: 100vh;
}

/* TabBar 适配 */
.mobile-nav {
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

/* 页面转场动画 */
@keyframes wx-page-enter {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wx-page-exit {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.wx-page-transition-enter {
  animation: wx-page-enter 300ms cubic-bezier(0.36, 0.66, 0.04, 1);
}

.wx-page-transition-exit {
  animation: wx-page-exit 300ms cubic-bezier(0.36, 0.66, 0.04, 1);
}

/* TabBar 显示/隐藏动画 */
.mobile-nav.hidden {
  transform: translateX(-50%) translateY(120%);
  transition: transform 300ms cubic-bezier(0.36, 0.66, 0.04, 1);
}

.mobile-nav:not(.hidden) {
  transform: translateX(-50%) translateY(0);
  transition: transform 300ms cubic-bezier(0.36, 0.66, 0.04, 1);
}

/* 响应式适配 */
@media (max-width: 480px) {
  .wx-navbar-title {
    font-size: 0.95rem;
    max-width: 50%;
  }
  
  .wx-navbar-capsule {
    width: 80px;
  }
}
