
/* Lucide 图标基础样式 */
[data-lucide] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
/*
  颜色层级规范：
  --bg       : 页面底层背景（米黄）
  --surface  : 一级容器/面板/侧边栏/工作台外壳（暖白）
  --input-bg : 二级内容卡/输入框/按钮（纯白）
  --line     : 容器与控件的分隔线
*/
:root {
  --color-bg: #faf9f2;
  --color-surface: #fffefa;
  --color-surface-raised: #ffffff;
  --color-foreground: #1c1917;
  --color-muted: #787169;
  --color-border: #e4e0d6;
  --color-brand: #f07d64;
  --color-brand-hover: #dd654f;
  --color-brand-soft: #fff2ec;
  --color-brand-border: #ffd6ca;
  --color-success: #4d8f5a;
  --color-success-soft: #eaf7ed;
  --color-warning: #d97706;
  --color-warning-soft: #fffbeb;
  --color-danger: #dc2626;
  --color-danger-soft: #fee2e2;
  --color-wechat-pay: #07c160;
  --bg: var(--color-bg);
  --fg: var(--color-foreground);
  --muted: var(--color-muted);
  --line: var(--color-border);
  --surface: var(--color-surface);
  --input-bg: var(--color-surface-raised);
  --accent: var(--color-brand);
  --accent-rgb: 240, 125, 100;
  --accent-light: var(--color-brand-border);
  --accent-dark: var(--color-brand-hover);
  --accent-soft: var(--color-brand-soft);
  --secondary: #a8d8b0;
  --secondary-soft: var(--color-success-soft);
  --danger: var(--color-danger);
  --danger-soft: var(--color-danger-soft);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --radius: var(--radius-sm);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --shadow-sm: 0 1px 3px rgba(28,25,23,0.08);
  --shadow-md: 0 10px 26px rgba(28,25,23,0.08);
  --shadow-lg: 0 20px 60px rgba(28,25,23,0.14);
  --shadow: var(--shadow-sm);
  --ease-standard: cubic-bezier(.2,.75,.25,1);
  --ease-soft: cubic-bezier(.22,.61,.36,1);
  --voice-expand-collapse-duration: 0.36s;
  --voice-expand-collapse-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-header: 100;
  --z-sidebar-trigger: 95;
  --z-sidebar: 120;
  --z-overlay: 180;
  --z-modal: 220;
  --z-toast: 300;
  --app-header-height: 56px;
  --app-sidebar-edge-gap: 8px;
  --app-content-gap: 12px;
  --app-page-top-gap: var(--app-sidebar-edge-gap);
  --app-page-bottom-gap: var(--app-content-gap);
  --workbench-sticky-gap: 8px;
  --workbench-panel-height: 600px;
  --workbench-card-padding: var(--space-6);
  --workbench-section-gap: 16px;
  --workbench-field-gap: 16px;
  --workbench-control-height: 40px;
  --workbench-control-sm-height: 32px;
  --workbench-textarea-height: 88px;
  --workbench-primary-input-height: 140px;
  --workbench-upload-height: 160px;
  --danger-hover: #b91c1c;
  --danger-rgb: 220,38,38;
  --radius-workbench-tab: 11px;
  --radius-feedback: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.voice-sidebar-lock {
  overflow: hidden;
}
body.tour-lock {
  overflow: hidden;
}

/* ===== 图标尺寸工具类 ===== */
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 16px; height: 16px; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 24px; height: 24px; }
.icon-2xl { width: 32px; height: 32px; }
.icon-3xl { width: 48px; height: 48px; }

/* ===== 通用辅助类 ===== */
.required-mark { color: var(--accent); }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.design-example-link { color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.modal-actions-row { margin-top: 10px; display: flex; gap: 8px; }
.ip-mascot {
  display: inline-block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 14px rgba(var(--accent-rgb),0.13));
}
.ip-mascot-sm {
  width: 32px;
  height: 32px;
}
.ip-mascot-md {
  width: 48px;
  height: 48px;
}
.ip-mascot-lg {
  width: 72px;
  height: 72px;
}

/* ===== 新手引导浮窗（onboarding tour） ===== */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(20, 14, 12, 0.55);
  transition: clip-path 0.32s var(--ease-soft);
}
.tour-spotlight {
  position: fixed;
  z-index: 251;
  border-radius: 14px;
  outline: 2px solid rgba(var(--accent-rgb), 0.95);
  outline-offset: 3px;
  pointer-events: none;
  transition: top 0.32s var(--ease-soft), left 0.32s var(--ease-soft),
    width 0.32s var(--ease-soft), height 0.32s var(--ease-soft);
}
.tour-spotlight.hidden { display: none; }
.tour-popover {
  position: fixed;
  z-index: 252;
  width: min(360px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s var(--ease-soft), transform 0.28s var(--ease-soft),
    top 0.32s var(--ease-soft), left 0.32s var(--ease-soft);
}
.tour-popover.is-visible { opacity: 1; transform: translateY(0); }
.tour-popover.is-intro {
  width: min(460px, calc(100vw - 32px));
  display: block;
  padding: 24px 22px 18px;
  text-align: center;
  overflow: hidden;
}
.tour-popover.is-intro::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 104px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0));
  pointer-events: none;
}
.tour-popover .tour-mascot {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 12px rgba(var(--accent-rgb), 0.18));
}
.tour-popover.is-intro .tour-mascot {
  position: relative;
  z-index: 1;
  display: block;
  width: 112px;
  height: 112px;
  margin: -2px auto 10px;
  filter: drop-shadow(0 14px 24px rgba(var(--accent-rgb), 0.22));
  animation: tour-hello-bounce 2.8s var(--ease-soft) infinite;
}
.tour-pop-body { flex: 1; min-width: 0; }
.tour-pop-kicker { display: none; }
.tour-popover.is-intro .tour-pop-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
}
.tour-pop-title { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.tour-pop-text { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.tour-popover.is-intro .tour-pop-title {
  font-size: 22px;
  line-height: 1.28;
  margin-bottom: 8px;
}
.tour-popover.is-intro .tour-pop-text {
  max-width: 340px;
  margin: 0 auto 14px;
  color: var(--fg);
  font-size: 14px;
}
.tour-intro-chips {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 16px;
}
.tour-popover.is-intro .tour-intro-chips { display: flex; }
.tour-intro-chip {
  padding: 4px 9px;
  border: 1px solid rgba(228,224,214,0.9);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.66);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.tour-pop-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-popover.is-intro .tour-pop-footer { justify-content: center; }
.tour-popover.is-intro .tour-dots { position: absolute; left: 18px; bottom: 18px; }
.tour-dots { display: flex; gap: 5px; align-items: center; }
.tour-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: all 0.25s var(--ease-soft); }
.tour-dot.active { width: 16px; border-radius: 3px; background: var(--accent); }
.tour-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.tour-skip {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.tour-skip:hover { color: var(--fg); }
.tour-next {
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.tour-next:hover { background: var(--accent-dark); }
.tour-next:active { transform: scale(0.97); }
.tour-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  transform: rotate(45deg);
  display: none;
}
.tour-popover.place-bottom .tour-arrow {
  display: block;
  top: -7px;
  border-right: none;
  border-bottom: none;
}
.tour-popover.place-top .tour-arrow {
  display: block;
  bottom: -7px;
  border-left: none;
  border-top: none;
}
@keyframes tour-hello-bounce {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  45% { transform: translateY(-6px) rotate(2deg); }
}
@media (max-width: 640px) {
  .tour-popover { width: calc(100vw - 24px); }
  .tour-popover.is-intro {
    width: calc(100vw - 24px);
    padding: 22px 16px 18px;
  }
  .tour-popover.is-intro .tour-mascot { width: 96px; height: 96px; }
  .tour-popover.is-intro .tour-pop-title { font-size: 20px; }
}
.ip-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  background: rgba(250,249,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  height: var(--app-header-height);
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand {
  font-size: 18px; font-weight: 600; letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg);
}
.navbar-brand .brand-logo {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-wordmark {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.brand-wordmark .brand-ai-text {
  display: inline-block;
  font-size: 1.08em;
  line-height: 1;
  transform: translateY(0.5px);
}
.navbar-right { display: flex; align-items: center; gap: 12px; }
@media (max-width: 480px) {
  .navbar { padding: 0 12px; }
  .navbar-right { gap: 8px; }
  .user-menu-btn { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .user-menu-btn span { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
  /* 积分气泡文字过长时单行省略，避免换行挤压 logo */
  .credits-badge { max-width: 46vw; white-space: nowrap; overflow: hidden; }
  .credits-badge #nav-credits-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}

/* ===== 音色库侧边栏 ===== */
.voice-sidebar {
  position: fixed;
  top: calc(var(--app-header-height) + var(--app-sidebar-edge-gap));
  left: var(--app-sidebar-edge-gap);
  bottom: var(--app-sidebar-edge-gap);
  width: 272px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: var(--z-sidebar);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.voice-sidebar.is-library-flying,
.voice-sidebar.is-library-expanded {
  position: fixed;
  margin: 0;
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: calc(var(--z-sidebar) + 1);
}
/* 宽高动画期间锁住列表宽度，卡片不再跟着每一帧重排 */
.voice-sidebar.is-library-animating {
  contain: layout paint;
}
.voice-sidebar.is-library-animating #voice-sidebar-list,
.voice-sidebar.is-library-animating #voice-library-list {
  right: auto;
  contain: layout style paint;
}
.voice-sidebar.open {
  /* transform 由 GSAP 控制 */
}
/* .voice-sidebar.position-right 位置由 GSAP x 控制 */
.voice-sidebar-header {
  cursor: grab;
  user-select: none;
}
.voice-sidebar-header:active {
  cursor: grabbing;
}
.voice-sidebar.dragging {
  opacity: 0.85;
  transform: scale(0.98);
  box-shadow: var(--shadow-lg);
  z-index: calc(var(--z-sidebar) + 1);
}
.voice-sidebar-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  min-height: 52px;
}
.voice-sidebar.is-library-flying .voice-sidebar-header,
.voice-sidebar.is-library-expanded .voice-sidebar-header,
.voice-sidebar.is-library-flying .voice-sidebar-header:active,
.voice-sidebar.is-library-expanded .voice-sidebar-header:active {
  cursor: default;
}
.voice-sidebar-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.voice-sidebar-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.voice-sidebar-expand {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.voice-sidebar-expand:hover {
  background: var(--surface);
  color: var(--fg);
}
.voice-sidebar-expand { position: relative; }
.voice-sidebar-expand .icon-expand,
.voice-sidebar-expand .icon-shrink {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.voice-sidebar-expand .icon-shrink { opacity: 0; }
.voice-sidebar-search.voice-search-field {
  position: absolute;
  left: 108px;
  right: 46px;
  top: 11px;
  width: auto;
  max-width: none;
  flex: none;
  height: 30px;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  z-index: 1;
}
.voice-sidebar-search .voice-search-box {
  max-width: none;
  height: 30px;
}
.voice-sidebar-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.voice-sidebar-tabs button {
  flex: 1;
  background: none;
  border: none;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all .2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.voice-sidebar-tabs button:hover {
  background: var(--surface);
  color: var(--fg);
}
.voice-sidebar-tabs button.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
#voice-category-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#voice-category-tabs::-webkit-scrollbar { display: none; }
#voice-category-tabs[hidden] { display: none; }
.voice-sidebar.is-library-settled #voice-category-tabs {
  flex-wrap: wrap;
  overflow: visible;
}
.voice-category-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  max-width: none;
  padding: 5px 9px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.voice-category-tabs button span:first-child { white-space: nowrap; }
.voice-category-tabs button span:last-child { font-size: 10px; opacity: .7; }
.voice-category-tabs button.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.voice-category-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.voice-sidebar-body {
  position: relative;
  flex: 1;
  min-height: 0;
}
.voice-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}
.voice-sidebar-body > .voice-sidebar-list {
  position: absolute;
  inset: 0;
}
#voice-library-list {
  display: grid;
  grid-template-columns: repeat(var(--library-cols, 3), minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  padding: 8px 12px 16px;
  opacity: 0;
  pointer-events: none;
}
#voice-library-list .voice-sidebar-item { margin-bottom: 0; }
#voice-library-list .voice-sidebar-empty { grid-column: 1 / -1; }
.voice-sidebar-list.sidebar-tab-leaving {
  pointer-events: none;
  animation: workbenchPanelFadeOut 80ms ease both;
}
.voice-sidebar-list.sidebar-tab-entering {
  will-change: opacity, transform;
}
.voice-sidebar-item {
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.voice-sidebar-item.is-deleting {
  overflow: hidden;
  pointer-events: none;
  border-color: var(--danger-soft);
}
.voice-sidebar-item:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow);
}
.voice-sidebar-item.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.voice-sidebar-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.voice-sidebar-item-name .voice-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice-sidebar-item-name .voice-tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  flex-shrink: 0;
}
.voice-sidebar-item-name .voice-gender-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 0 6px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 18px;
  border: 1px solid transparent;
}
.voice-sidebar-item-name .voice-gender-tag.is-female {
  color: #c98698;
  background: #fff6f7;
  border-color: #f6e0e4;
}
.voice-sidebar-item-name .voice-gender-tag.is-male {
  color: #7a9db8;
  background: #f5f9fc;
  border-color: #e1ebf3;
}
.voice-fav-btn {
  margin-left: auto;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.voice-fav-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.voice-fav-btn.is-fav {
  color: var(--accent);
  background: transparent;
}
.voice-fav-btn.is-fav svg {
  fill: currentColor;
}
.voice-sidebar-item-name .voice-name-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.voice-sidebar-item-name .voice-rename-btn,
.voice-sidebar-item-name .voice-delete-btn {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-xs);
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  transition: all .15s;
}
.voice-sidebar-item-name .voice-rename-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.voice-sidebar-item-name .voice-delete-btn:hover {
  background: var(--danger-soft);
  color: var(--danger);
}
.voice-sidebar-item-name .voice-name-input {
  min-width: 0;
  flex: 1;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  color: var(--fg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  outline: none;
  background: var(--input-bg);
}
.voice-sidebar-item-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  /* 固定两行高，一行描述也占位，卡片高度和右下角按钮才不会跟着变 */
  height: 3em;
  min-height: 3em;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.voice-sidebar-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.voice-sidebar-item-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.voice-lang-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.voice-lang-preview {
  white-space: nowrap;
}
.voice-lang-dot,
.voice-lang-meta > span:last-of-type {
  flex-shrink: 0;
}
.voice-lang-info {
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.voice-lang-info:hover,
.voice-lang-info.is-open {
  color: var(--accent);
  background: var(--accent-soft);
}
.voice-lang-popover {
  position: fixed;
  z-index: 160;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  line-height: 1.55;
}
.voice-lang-popover strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}
.voice-lang-popover p {
  margin: 0;
  color: var(--muted);
}
.voice-sidebar-item-btns {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.voice-sidebar-item-btns button {
  padding: 4px 6px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}
.voice-sidebar-item-btns .preview-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--input-bg);
  color: var(--fg);
  border: 1px solid var(--line);
}
.voice-sidebar-item-btns .preview-play-btn .play-icon {
  color: var(--muted);
}
.voice-sidebar-item-btns .preview-play-btn:hover {
  background: var(--input-bg);
  border-color: var(--accent);
  color: var(--accent);
}
.voice-sidebar-item-btns .preview-play-btn:hover .play-icon {
  color: var(--accent);
}
.voice-sidebar-item-btns .preview-play-btn.playing {
  background: var(--accent-soft);
  border-color: var(--accent-light);
  color: var(--accent);
}
.voice-sidebar-item-btns .btn-use {
  background: var(--accent);
  color: #fff;
}
.voice-sidebar-item-btns .btn-use:hover {
  opacity: 0.85;
}
.voice-sidebar-empty {
  text-align: center;
  padding: 38px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.voice-sidebar-empty .ip-mascot { margin-bottom: 2px; }

.voice-library-backdrop {
  position: fixed;
  top: var(--app-header-height);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: calc(var(--z-sidebar) - 10);
  background: transparent;
  pointer-events: none;
}
.voice-sidebar-trigger {
  display: none !important;
}
.voice-sidebar-trigger.hidden {
  visibility: hidden;
}
/* .voice-sidebar-trigger.position-right 位置由 GSAP x 控制 */
.voice-sidebar-trigger.position-right {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  box-shadow: -2px 0 12px rgba(var(--accent-rgb),0.22);
}
.voice-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-sidebar) - 1);
  display: none;
  background: rgba(28,25,23,0.28);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 180ms ease;
}
.voice-sidebar-overlay.active {
  display: block;
  opacity: 1;
}
.main.has-sidebar {
  margin-left: 296px;
}
.main.has-sidebar-right {
  margin-right: 296px;
}
@media (max-width: 1024px) {
  .voice-sidebar { width: 240px; }
  .main.has-sidebar { margin-left: 264px; }
  .main.has-sidebar-right { margin-right: 264px; }
}
@media (max-width: 900px) {
  .voice-sidebar { width: 260px; }
  .main.has-sidebar { margin-left: 284px; }
  .main.has-sidebar-right { margin-right: 284px; }
}
@media (max-width: 640px) {
  .voice-sidebar {
    position: relative;
    display: flex;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    height: min(520px, 62vh);
    margin: 8px 12px 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .voice-sidebar.position-right,
  .voice-sidebar.open,
  .voice-sidebar.open.position-right {
    left: auto;
    right: auto;
    transform: none;
    opacity: 1;
  }
  .voice-sidebar-header { cursor: default; }
  .voice-sidebar.is-library-settled #voice-category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .main.has-sidebar { margin-left: 0; }
  .main.has-sidebar-right { margin-right: 0; }
  .container { padding: 24px 16px; }
  .design-box { padding: 20px; }
  .section-title { font-size: 17px; }
}

.credits-badge {
  background: var(--accent-light); color: var(--accent);
  padding: 4px 12px; border-radius: var(--radius-xl);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .2s;
  display: inline-flex; align-items: center; gap: 4px;
}
.credits-badge:hover { background: var(--accent); color: white; }
.user-menu { position: relative; }
.user-menu-btn {
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: var(--fg); padding: 4px 8px;
  display: flex; align-items: center; gap: 6px;
}
.user-dropdown {
  position: absolute; right: 0; top: 40px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 200px; display: none; overflow: hidden;
  padding: 4px 0;
}
.user-dropdown.active { display: block; }
.user-dropdown button {
  width: 100%; padding: 10px 16px; border: none; background: none;
  text-align: left; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
  color: var(--fg);
}
.user-dropdown button:hover { background: var(--bg); }
.user-dropdown .dropdown-email {
  padding: 8px 16px; font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.user-dropdown .dropdown-divider {
  height: 1px; background: var(--line); margin: 4px 0;
}
.credit-log-table-wrap { max-height: 360px; overflow-y: auto; }
.credit-log-table td { padding: 8px 6px; border-bottom: 1px solid #f0f0f0; }
.credit-log-table td.amount-positive { color: #16a34a; font-weight: 500; }
.credit-log-table td.amount-negative { color: var(--danger); font-weight: 500; }
.credit-log-table tbody tr:hover { background: var(--bg); }
.credit-log-table thead th { position: sticky; top: 0; background: var(--surface); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 18px; background: var(--accent); color: white;
  border: none; border-radius: var(--radius); font-size: 14px;
  cursor: pointer; font-weight: 500;
  transition: background-color .16s var(--ease-soft), box-shadow .16s var(--ease-soft), transform .16s var(--ease-soft), opacity .16s var(--ease-soft);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
  box-shadow: 0 8px 18px rgba(var(--accent-rgb),0.22);
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 4px 10px rgba(var(--accent-rgb),0.18);
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.18);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 18px; background: transparent; color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14px; cursor: pointer;
  transition: background-color .16s var(--ease-soft), border-color .16s var(--ease-soft), color .16s var(--ease-soft), transform .16s var(--ease-soft), box-shadow .16s var(--ease-soft);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.btn-ghost:active:not(:disabled) {
  transform: scale(0.98);
}
.btn-ghost:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.14);
}
.btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; }
.preview-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
}
.preview-play-btn .play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  color: var(--muted);
  transition: color .2s;
}
.preview-play-btn .play-icon svg {
  width: 100%;
  height: 100%;
}
.preview-play-btn:hover .play-icon {
  color: var(--accent);
}
.preview-play-btn:hover {
  background: var(--bg);
}
.preview-play-btn.playing {
  background: var(--accent-soft);
  color: var(--accent);
}
.preview-play-btn.playing .play-icon {
  color: var(--accent);
  animation: play-pulse 1.2s ease-in-out infinite;
}
@keyframes play-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.btn-danger {
  padding: 8px 18px; background: var(--danger); color: white;
  border: none; border-radius: var(--radius); font-size: 14px;
  cursor: pointer; font-weight: 500;
  transition: background-color .16s var(--ease-soft), transform .16s var(--ease-soft), box-shadow .16s var(--ease-soft), opacity .16s var(--ease-soft);
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger-hover);
  box-shadow: 0 8px 18px rgba(var(--danger-rgb),0.18);
  transform: translateY(-1px);
}
.btn-danger:active:not(:disabled) {
  transform: scale(0.98);
}
.btn-danger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--danger-soft);
}
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }

/* ===== 主容器 ===== */
.main {
  padding-top: var(--app-header-height);
  flex: 1;
  display: flex;
  flex-direction: column;
  transform-origin: 50% var(--app-header-height);
}
.container {
  width: 100%; max-width: 960px; margin: 0 auto; padding: 40px 24px;
}
.container.workbench {
  --workbench-stack-gap: var(--app-content-gap);
  --workbench-panel-gap: var(--app-content-gap);
  max-width: 1180px;
  padding: var(--app-page-top-gap) var(--app-content-gap) var(--app-page-bottom-gap);
}
@media (min-width: 1920px) {
  .container.workbench { max-width: 1280px; }
}
@media (min-width: 2560px) {
  .container.workbench { max-width: 1400px; }
}

/* ===== 已登录工作台 ===== */
.workbench {
  display: flex;
  flex-direction: column;
  gap: var(--workbench-stack-gap);
}

/* 工作台标签导航 */
.workbench-nav {
  --tab-indicator-x: 6px;
  --tab-indicator-w: 88px;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(228,224,214,0.88);
  border-radius: var(--radius-lg);
  position: sticky;
  top: calc(var(--app-header-height) + var(--workbench-sticky-gap));
  background: rgba(250,249,242,0.92);
  box-shadow: 0 10px 30px rgba(28,25,23,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 80;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  isolation: isolate;
}
.workbench-nav::-webkit-scrollbar { display: none; }
.workbench-tab-indicator {
  position: absolute;
  top: 6px;
  left: 0;
  bottom: 6px;
  width: var(--tab-indicator-w);
  pointer-events: none;
  border-radius: var(--radius-workbench-tab);
  opacity: 0;
  z-index: 1;
  transform: translate3d(var(--tab-indicator-x), 0, 0);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(28,25,23,0.06);
  transition: opacity 120ms ease;
  will-change: transform, width;
}
.workbench-nav.spring-ready .workbench-tab-indicator {
  opacity: 1;
}
.workbench-nav button {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-workbench-tab);
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
@media (max-width: 640px) {
  .workbench-nav button { padding: 10px 14px; font-size: 13px; }
  /* iOS Safari 聚焦字号小于 16px 的输入框会强制放大页面，移动端统一提到 16px */
  input, textarea, select { font-size: 16px !important; }
}
/* tab 栏溢出时两端渐隐，提示可横向滑动（由 updateWorkbenchNavFade 控制） */
.workbench-nav.nav-scroll-fade {
  --nav-fade-left: 0px;
  --nav-fade-right: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--nav-fade-left), #000 calc(100% - var(--nav-fade-right)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--nav-fade-left), #000 calc(100% - var(--nav-fade-right)), transparent 100%);
}
.workbench-nav button:hover { color: var(--fg); }
.workbench-nav button.active {
  color: var(--fg);
  font-weight: 600;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-shadow: 0 1px 0 rgba(255,255,255,0.68);
}
@media (prefers-reduced-motion: reduce) {
  .workbench-tab-indicator {
    transition: none;
  }
}

@media (max-width: 720px) {
  :root {
    --app-page-top-gap: var(--app-sidebar-edge-gap);
    --app-page-bottom-gap: var(--app-content-gap);
  }
  .container.workbench {
    --workbench-stack-gap: var(--app-content-gap);
    --workbench-panel-gap: var(--app-content-gap);
  }
}

/* 工作台标签内容 */
.workbench section { display: none; }
.workbench section.active { display: block; }
.workbench section.panel-leaving {
  display: block;
  pointer-events: none;
  animation: workbenchPanelFadeOut 80ms ease both;
}
.workbench section.panel-entering {
  display: block;
  will-change: opacity, transform;
}
@keyframes workbenchPanelFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .workbench section.panel-leaving {
    animation: none;
  }
}

.section-title {
  font-size: 20px; font-weight: 600; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}

/* 音色设计两栏布局 */
.design-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: var(--workbench-panel-gap);
  align-items: stretch;
}
@media (max-width: 900px) {
  .design-layout { grid-template-columns: 1fr; align-items: start; }
  /* 小屏保持表单在上，结果在下 */
}

.design-form-col { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.design-results-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  min-height: var(--workbench-panel-height);
  padding: var(--workbench-card-padding);
  background: rgba(255,254,250,0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.design-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--workbench-card-padding);
  box-shadow: var(--shadow-md);
  min-height: var(--workbench-panel-height);
  height: auto;
}
.creation-panel-heading,
.creation-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--workbench-section-gap);
  margin-bottom: var(--workbench-section-gap);
}
.creation-panel-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.creation-panel-heading h2,
.creation-results-heading h2 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}
.creation-panel-heading p,
.creation-results-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .design-results-col { padding: 14px; }
  .design-box { padding: 20px; }
  .creation-panel-heading,
  .creation-results-heading {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===== 克隆标签页 ===== */
.clone-box {
  max-width: 500px;
  margin: 0 auto;
}
.clone-upload-area {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  height: var(--workbench-upload-height);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
  margin-bottom: var(--workbench-field-gap);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.clone-upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.clone-upload-area.drag-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  border-style: solid;
}
.clone-upload-area .upload-icon {
  color: var(--muted);
  margin-bottom: 12px;
}
.clone-upload-area .upload-text {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}
.clone-upload-area .upload-hint {
  font-size: 12px;
  color: var(--muted);
}
.clone-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--surface);
  margin-bottom: var(--workbench-field-gap);
}
.clone-preview .clone-audio-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.clone-preview audio {
  width: 100%;
  height: 36px;
  margin-bottom: 12px;
}
.clone-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all .2s;
}
.field { margin-bottom: var(--workbench-field-gap); }
.field.field-last { margin-bottom: 0; }
.field label {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500;
  color: var(--muted); margin-bottom: 6px;
}
.field .error-msg {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}
.field .error-msg.visible {
  display: block;
}
.field input.error, .field textarea.error, .field select.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; font-family: inherit;
  background: var(--input-bg); color: var(--fg); outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-height: var(--workbench-control-height);
}
.field input[type="checkbox"] {
  width: auto; padding: 0; border: none; background: transparent;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; height: var(--workbench-textarea-height); min-height: var(--workbench-textarea-height); }
#design-prompt { height: 100px; min-height: 100px; }
#design-preview { height: 117px; min-height: 117px; }
#clone-preview-text { height: 97px; min-height: 97px; }
.verification-row {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}
.verification-row input {
  flex: 1 1 auto;
}
.verification-row .btn-ghost {
  flex: 0 0 auto;
  padding: 10px 18px;
  line-height: 1.6;
  white-space: nowrap;
}
.btn-full {
  width: 100%;
  justify-content: center;
}
.row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--workbench-field-gap); }
.row-fields .field input,
.row-fields .field select {
  height: var(--workbench-control-height);
  min-height: var(--workbench-control-height);
}
.row-fields .field select {
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--radius);
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}
@media (max-width: 640px) { .row-fields { grid-template-columns: 1fr; } }

/* 密码可见性切换 */
.password-field { position: relative; }
.password-field input { padding-right: 40px; }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  transition: color .15s;
}
.password-toggle:hover { color: var(--fg); }
.password-toggle:focus { outline: none; box-shadow: 0 0 0 2px var(--accent-soft); border-radius: var(--radius-xs); }

/* 生成列表 */
.generated-voices,
#synth-audio-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* 关闭浏览器 scroll anchoring，否则在顶部插入卡片时浏览器会自动补偿 scrollTop，
     与 FLIP 动画 + scrollTo 形成方向冲突造成抖动 */
  overflow-anchor: none;
  padding: 4px 0;
}
.generated-voices:empty::before,
#synth-audio-list:empty::before {
  content: attr(data-empty-label) "\A" attr(data-empty-hint);
  color: var(--muted);
  font-size: 13px;
  white-space: pre-line;
  text-align: center;
  padding: 104px 18px 38px;
  background: var(--surface);
  background-image: url('https://cloud.peiyin.xyz/static/brand/peach-ip-actions/06-studio-record.png');
  background-repeat: no-repeat;
  background-position: center 28px;
  background-size: 62px 62px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  line-height: 1.6;
}
.generated-card {
  position: relative;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.generated-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.generated-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.generated-card h4 {
  font-size: 14px;
  margin-bottom: 4px;
}
.generated-card h4,
.synth-audio-item .audio-voice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.generated-card-header h4 {
  min-width: 0;
  margin-bottom: 0;
  line-height: 1.35;
}
.generated-card .desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.generated-card .meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
  align-items: center;
}
.generated-card .generated-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 3px 8px;
  background: var(--secondary-soft);
  border-radius: var(--radius-pill);
}
.generated-card .generated-status-complete {
  color: #4d8f5a;
}
.generated-card .generated-status-loading {
  color: var(--accent);
  background: var(--accent-soft);
}
.generated-card .meta code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-family: 'SF Mono', monospace;
}
.generated-card audio {
  width: 100%;
  height: 32px;
  margin-bottom: 10px;
}
.generated-card .generated-player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  margin-top: 8px;
}
.generated-card .custom-player {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.generated-card .custom-player .play-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  border: none;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(var(--accent-rgb), 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.generated-card .custom-player .play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 7px 18px rgba(var(--accent-rgb), 0.36);
}
.generated-card .custom-player .play-btn:active { transform: scale(0.96); }
.generated-card .custom-player .play-btn [data-lucide] { width: 18px; height: 18px; }
.generated-card .custom-player .progress-wrap {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.generated-card .custom-player .progress-bar {
  position: relative;
  height: 5px;
  background: var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  overflow: hidden;
}
.generated-card .custom-player .progress-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  pointer-events: none;
  transition: width 0.08s linear;
}
.generated-card .custom-player .progress-bar:hover .progress-fill { background: var(--accent-dark); }
.generated-card .custom-player .time-label {
  font-size: 11px;
  line-height: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.generated-card .generated-card-action {
  flex: 0 0 auto;
  min-width: 76px;
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.generated-card .generated-card-action:hover:not(:disabled) {
  background: var(--accent-dark);
  box-shadow: 0 7px 18px rgba(var(--accent-rgb), 0.22);
}
.generated-card .generated-card-action:active:not(:disabled) {
  transform: scale(0.97);
}
.generated-card .generated-card-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}
.generated-card .generated-card-action.is-use {
  background: var(--input-bg);
  color: var(--accent);
  border: 1px solid var(--line);
}
.generated-card .generated-card-action.is-use:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: none;
}
.generated-card .saved-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.generated-card.saved {
  border-color: var(--accent-light);
  background: var(--accent-soft);
}
/* 生成中加载态卡片（音色设计 / 声音克隆共用） */
.generated-card-loading {
  overflow: hidden;
  pointer-events: none;
  background: var(--input-bg);
}
.generated-card-loading:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}
/* 保存的音色 */
.voice-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.voice-card {
  background: var(--input-bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}
.voice-card.is-deleting {
  overflow: hidden;
  pointer-events: none;
}
.voice-card:hover { border-color: var(--accent-light); box-shadow: var(--shadow); transform: translateY(-1px); }
.voice-card .voice-delete-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: var(--radius-xs);
  background: var(--surface); color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.voice-card .voice-delete-icon:hover {
  background: var(--danger-soft); color: var(--danger);
}
.voice-card .voice-edit-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: var(--radius-xs);
  background: var(--surface); color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.voice-card .voice-edit-icon:hover {
  background: var(--accent-light); color: var(--accent);
}
.voice-card.selected {
  border-color: var(--accent); background: var(--accent-soft);
}
.voice-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.voice-card h4 .voice-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice-card h4 .voice-edit-icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.voice-card h4 .voice-edit-icon-inline:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.voice-card h4 .voice-name-input {
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  color: var(--fg);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2px 6px;
  outline: none;
  background: var(--input-bg);
  flex: 1;
  min-width: 0;
}
.voice-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.voice-card .voice-desc-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 39px;
}
.voice-desc-wrap { position: relative; }
.voice-desc-wrap[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 12px;
  border-radius: var(--radius-sm);
  white-space: normal;
  max-width: 240px;
  word-break: break-word;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .1s;
  z-index: 100;
}
.voice-desc-wrap[data-tooltip]:hover::after { opacity: 1; }
.voice-card .voice-meta {
  display: flex; gap: 12px; margin-top: 12px;
  font-size: 12px; color: var(--muted);
  align-items: center;
}
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.empty-state .empty-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}
.empty-state .empty-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 320px;
}
.empty-state .btn-primary {
  margin-top: 6px;
}
.empty-state .empty-action-btn {
  margin-top: 4px;
}

/* 合成块 */
.synth-box {
  width: 100%;
}
.synth-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: var(--workbench-panel-gap);
  align-items: stretch;
  --synth-output-panel-height: var(--workbench-panel-height);
}
.synth-editor-panel {
  min-width: 0;
  align-self: start;
}
.synth-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--workbench-section-gap);
  margin-bottom: var(--workbench-section-gap);
}
.synth-panel-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.synth-panel-heading h2 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}
.synth-panel-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.synth-panel-note {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.synth-output-panel {
  position: sticky;
  top: 132px;
  min-width: 0;
  height: var(--synth-output-panel-height);
  min-height: var(--workbench-panel-height);
  max-height: var(--synth-output-panel-height);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--workbench-card-padding);
  background: rgba(255,254,250,0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.synth-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--workbench-card-padding);
  margin-bottom: 0;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  min-height: var(--workbench-panel-height);
  display: flex;
  flex-direction: column;
}
.synth-block-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--workbench-field-gap);
}
.synth-voice-slot {
  width: 260px;
  max-width: 100%;
  height: 118px;
}
.synth-voice-slot .voice-sidebar-item-actions {
  flex-wrap: nowrap;
  margin-top: auto;
}
.synth-voice-slot .voice-sidebar-item-meta {
  min-width: 0;
}
.synth-voice-slot .synth-voice-card,
.synth-voice-card-empty {
  width: 100%;
  height: 100%;
  margin: 0;
}
.synth-voice-slot .synth-voice-card {
  display: flex;
  flex-direction: column;
}
.synth-voice-slot .voice-sidebar-item-desc {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 8px;
}
.synth-voice-slot .synth-voice-card:focus-visible,
.synth-voice-card-empty:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.synth-voice-card-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.synth-voice-card-empty:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
@media (max-width: 640px) {
  .synth-voice-slot {
    width: 100%;
    max-width: 280px;
  }
}
.synth-field-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.synth-text-label {
  margin-top: 0;
}
.synth-block-top-row {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.synth-voice-tabs {
  width: 100%;
  align-items: center;
}
.synth-voice-tabs .synth-voice-search {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin-left: 0;
}
.synth-voice-tabs .synth-voice-search .voice-search-box {
  width: 132px;
  max-width: 132px;
  height: 29px;
  padding: 4px 10px 4px 28px;
  font-size: 13px;
  border-radius: var(--radius);
  background: transparent;
}
.voice-search-field {
  position: relative;
  max-width: 240px;
  width: 100%;
  flex: 0 1 240px;
}
.voice-search-field > i,
.voice-search-field > svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}
.voice-search-box {
  display: block;
  width: 100%;
  max-width: 240px;
  height: var(--workbench-control-sm-height);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--fg);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.voice-search-field .voice-search-box {
  padding-left: 30px;
}
.voice-search-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.synth-block-header .synth-voice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 76px;
  overflow: hidden;
  opacity: 1;
  transition:
    max-height var(--voice-expand-collapse-duration) var(--voice-expand-collapse-ease),
    height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.1s ease;
  padding: 2px 0;
  position: relative;
}
.synth-block-header .synth-voice-list.voice-list-animating {
  overflow: hidden;
  pointer-events: none;
}
.synth-block-header .synth-voice-list.voice-list-group-leaving {
  opacity: 0.72;
}
.synth-block-header .synth-voice-list.voice-list-group-swap .synth-voice-item.voice-chip-entering {
  opacity: 0;
  transform: none;
}
.synth-block-header .synth-voice-list.voice-list-group-swap .synth-voice-item.voice-chip-entering.voice-chip-entered {
  opacity: 1;
  transform: none;
  transition-delay: 0ms;
}
@media (max-width: 640px) {
  .synth-block-header .synth-voice-list {
    max-height: 110px;
    gap: 6px;
  }
  .synth-block-header .synth-voice-item {
    padding: 4px 8px;
    font-size: 12px;
    max-width: 130px;
  }
}
/* 底部渐变遮罩：提示还有更多音色 */
.synth-block-header .synth-voice-list.has-mask::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), white 85%);
  pointer-events: none;
}
.synth-block-header .synth-voice-list.expanded {
  max-height: var(--voice-list-expanded-height, 600px);
}
.synth-block-header .synth-voice-item {
  min-height: var(--workbench-control-sm-height);
  padding: 4px 10px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition:
    border-color .2s,
    background .2s,
    color .2s,
    box-shadow .2s,
    opacity .2s ease,
    transform .24s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  user-select: none;
  will-change: transform, opacity;
}
.synth-block-header .synth-voice-item:hover {
  border-color: var(--accent);
}
.synth-block-header .synth-voice-item:active {
  transform: scale(0.98);
}
.synth-block-header .synth-voice-item.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 500;
}
.synth-block-header .synth-voice-item.voice-chip-entering {
  opacity: 0;
  transform: translateY(7px) scale(0.985);
}
.synth-block-header .synth-voice-item.voice-chip-entering.voice-chip-entered {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: var(--voice-enter-delay, 0ms);
}
.synth-block-header .synth-voice-item .ai-icon {
  flex-shrink: 0;
  color: var(--accent);
}
.synth-voice-empty {
  min-height: var(--workbench-control-sm-height);
  padding: 4px 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.synth-voice-empty a {
  color: var(--accent); cursor: pointer;
  text-decoration: underline;
}
.voice-list-empty {
  transition:
    opacity .2s ease,
    transform .24s cubic-bezier(0.16, 1, 0.3, 1);
}
.voice-list-empty.voice-list-empty-entering {
  opacity: 0;
  transform: translateY(6px);
}
.voice-list-empty.voice-list-empty-entering.voice-list-empty-entered {
  opacity: 1;
  transform: translateY(0);
}
.voice-expand-bar {
  --voice-action-height: var(--workbench-control-sm-height);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  overflow: hidden;
  pointer-events: none;
  position: relative;
  transition:
    max-height .24s cubic-bezier(0.16, 1, 0.3, 1),
    margin-top .24s cubic-bezier(0.16, 1, 0.3, 1),
    opacity .18s ease,
    transform .24s cubic-bezier(0.16, 1, 0.3, 1);
}
.voice-expand-bar.is-visible {
  margin-top: 4px;
  max-height: calc(var(--voice-action-height) + 8px);
  opacity: 1;
  transform: translateY(0);
  overflow: visible;
  pointer-events: auto;
}
.voice-expand-btn {
  height: var(--voice-action-height);
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1;
  color: var(--accent);
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}
.voice-expand-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.voice-expand-btn .chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.voice-expand-btn.expanded .chevron {
  transform: rotate(180deg);
}
.voice-search-empty {
  padding: 8px 0;
  font-size: 13px;
  color: var(--muted);
}
.voice-search-empty a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}
.synth-block .synth-text-input {
  width: 100%;
  flex: 1 1 auto;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--fg);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  resize: vertical;
  height: auto;
  min-height: 150px;
  line-height: 1.7;
}
.synth-block .synth-text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--input-bg);
}

/* 语音风格指令控制 */
.synth-instructions-wrap {
  margin: 0 0 var(--workbench-field-gap);
  transform-origin: top left;
  will-change: height, opacity, transform, margin-bottom;
}
.synth-instructions-wrap.is-animating {
  overflow: hidden;
  pointer-events: none;
}
.synth-instructions-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s;
}
.synth-instructions-toggle:hover {
  background: var(--accent-soft);
}
.synth-instructions-toggle .chevron {
  transition: transform .2s;
}
.synth-instructions-toggle.expanded .chevron {
  transform: rotate(180deg);
}
.synth-instructions-panel {
  margin-top: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.synth-instructions-preset {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input-bg);
  margin-bottom: 8px;
  cursor: pointer;
}
.synth-instructions-preset:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
.synth-instructions-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
  background: var(--input-bg);
}
.synth-instructions-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
.instructions-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

/* 操作区：三个工作台面板统一间距 */
.panel-actions,
.synth-actions {
  display: flex;
  gap: var(--workbench-field-gap);
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  margin-top: var(--workbench-field-gap);
}

.synth-audio-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
  min-height: 127px;
  padding: 16px;
  position: relative;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.synth-audio-item:hover {
  border-color: var(--accent-light);
}
.synth-audio-item .audio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.synth-audio-item .audio-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.synth-audio-item .audio-voice {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}
.synth-audio-item .audio-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.synth-audio-item .audio-time {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 500;
  color: #4d8f5a;
  white-space: nowrap;
  padding: 3px 8px;
  background: var(--secondary-soft);
  border-radius: var(--radius-pill);
}
.synth-audio-item .audio-meta span {
  position: relative;
}
.synth-audio-item .audio-meta span .text-ellipsis {
  display: block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.synth-audio-item .audio-meta span[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 100;
  max-width: 280px;
  padding: 8px 12px;
  background: rgba(28, 25, 23, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  white-space: normal;
  word-break: break-word;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  pointer-events: none;
}
.synth-audio-item .audio-meta span[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  left: 10px;
  top: calc(100% - 2px);
  z-index: 100;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent rgba(28, 25, 23, 0.92) transparent;
  pointer-events: none;
}
.synth-audio-item .audio-text {
  font-size: 12px;
  color: var(--muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}
.synth-audio-item .audio-player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}
.synth-audio-item .custom-player {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.synth-audio-item .custom-player .play-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  border: none;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(var(--accent-rgb), 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.synth-audio-item .custom-player .play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 7px 18px rgba(var(--accent-rgb), 0.36);
}
.synth-audio-item .custom-player .play-btn:active {
  transform: scale(0.96);
}
.synth-audio-item .custom-player .play-btn [data-lucide] {
  width: 18px;
  height: 18px;
}
.synth-audio-item .custom-player .progress-wrap {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.synth-audio-item .custom-player .progress-bar {
  position: relative;
  height: 5px;
  background: var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  overflow: hidden;
}
.synth-audio-item .custom-player .progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  pointer-events: none;
  transition: width 0.08s linear;
}
.synth-audio-item .custom-player .progress-bar:hover .progress-fill {
  background: var(--accent-dark);
}
.synth-audio-item .custom-player .time-label {
  font-size: 11px;
  line-height: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.synth-audio-item .audio-download {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s ease;
}
.synth-audio-item .audio-download:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.synth-audio-item .audio-download [data-lucide] {
  width: 16px;
  height: 16px;
}
@keyframes synth-complete-card {
  0% {
    border-color: rgba(var(--accent-rgb), 0.42);
    box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
  }
  42% {
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.13), 0 0 0 3px rgba(var(--accent-rgb), 0.09);
  }
  100% {
    border-color: var(--line);
    box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
  }
}
@keyframes synth-complete-badge {
  0% {
    transform: scale(0.94);
    background: var(--surface);
    color: var(--muted);
  }
  48% {
    transform: scale(1.08);
    background: var(--secondary-soft);
    color: #4d8f5a;
  }
  100% {
    transform: scale(1);
    background: var(--secondary-soft);
    color: #4d8f5a;
  }
}
@keyframes synth-complete-play {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
  }
  52% {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.34), 0 0 0 7px rgba(var(--accent-rgb), 0.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 5px 14px rgba(var(--accent-rgb), 0.28);
  }
}
/* 调试假卡片：始终显示，不影响正常逻辑 */
/* 历史 Tab */
.utility-page {
  display: flex;
  flex-direction: column;
  gap: var(--workbench-panel-gap);
}
.utility-panel {
  padding: 20px;
  background: rgba(255,254,250,0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.utility-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.utility-panel-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.utility-panel-heading h2 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}
.utility-panel-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.history-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.history-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.history-search {
  margin-left: auto;
}
.history-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.history-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.history-table-wrap::-webkit-scrollbar { height: 4px; }
.history-table-wrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--radius-xs); }
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}
.history-table thead tr { border-bottom: 1px solid var(--line); }
.history-table th {
  text-align: left; padding: 12px 14px;
  font-weight: 500; color: var(--muted); font-size: 12px;
  background: var(--surface);
}
.history-table tbody tr { border-bottom: 1px solid var(--line); }
.history-table td { padding: 12px 14px; font-size: 13px; vertical-align: middle; }
.history-table td.col-time { color: var(--muted); white-space: nowrap; }
.history-table td.col-voice { white-space: nowrap; }
.history-table td.col-content { max-width: 320px; word-break: break-all; }
.history-table td.col-content.is-prompt { color: var(--muted); font-size: 13px; }
.history-table td.col-audio audio { width: 180px; height: 32px; }
.history-table td.col-audio .custom-player-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  min-height: 32px;
}
.history-table td.col-audio .custom-player-compact .play-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  border: none;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.history-table td.col-audio .custom-player-compact .play-btn:hover { transform: scale(1.06); box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.32); }
.history-table td.col-audio .custom-player-compact .play-btn [data-lucide] { width: 16px; height: 16px; }
.history-table td.col-audio .custom-player-compact .progress-wrap {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.history-table td.col-audio .custom-player-compact .progress-bar {
  position: relative;
  height: 5px;
  background: var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  overflow: hidden;
  min-width: 60px;
}
.history-table td.col-audio .custom-player-compact .progress-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.history-table td.col-audio .custom-player-compact .time-label {
  font-size: 10px;
  line-height: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.history-table td.col-audio .audio-download {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--fg);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.history-table td.col-audio .audio-download:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.history-table td.col-audio .audio-download [data-lucide] {
  width: 14px;
  height: 14px;
}
.history-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  background: var(--surface);
  color: var(--muted);
}
.history-tag-voice {
  background: var(--accent-soft);
  color: var(--accent);
}
.history-count {
  margin: 0;
  font-size: 12px; color: var(--muted);
}
.history-filter-btn {
  padding: 5px 14px;
  font-size: 13px;
}
.history-filter-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}
.synth-voice-tabs .history-filter-btn.is-disabled {
  opacity: 0.55;
}
.feedback-compose {
  margin-bottom: 0;
}
.feedback-compose textarea {
  min-height: 112px;
}
.feedback-compose-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.feedback-compose-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.feedback-list-wrap {
  min-height: 220px;
}
.feedback-list-wrap .generated-card {
  border-radius: var(--radius-feedback);
  box-shadow: 0 10px 26px rgba(28,25,23,0.045);
}
.feedback-thread {
  margin-bottom: 16px;
  overflow: hidden;
}
.feedback-replies {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}
.feedback-comment {
  padding-bottom: 16px;
}
.feedback-comment.is-reply {
  margin-left: 16px;
  margin-top: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-feedback);
}
.feedback-comment.is-mine {
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}
.feedback-comment-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.feedback-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feedback-author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
}
.feedback-me-badge {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
}
.feedback-time {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  font-size: 12px;
}
.feedback-body {
  margin: 0 0 10px 0;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.feedback-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.feedback-loading {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.feedback-loading p {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .utility-panel {
    padding: 16px;
  }
  .utility-panel-heading,
  .feedback-compose-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .history-search,
  .voice-search-field.history-search,
  .history-search .voice-search-box {
    max-width: none;
    width: 100%;
  }
}

@keyframes pulse-highlight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 65, 12, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(194, 65, 12, 0); }
}
.pulse-highlight {
  animation: pulse-highlight 1.2s ease-in-out 3;
}
.synth-guide {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: var(--workbench-panel-gap);
}
.synth-guide .guide-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.synth-guide .guide-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}
.synth-guide .guide-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.synth-guide .guide-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.synth-audio-item .audio-text,
.synth-audio-item-loading .audio-text {
  font-size: 12px;
  color: var(--fg);
  margin-top: 2px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.synth-output-panel .result-area {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.synth-output-panel #synth-audio-list {
  flex: 0 0 auto;
  min-height: 0;
  gap: 8px;
  overflow: visible;
}

.synth-output-panel #synth-audio-list:empty {
  flex: 1 1 auto;
}

@media (max-width: 1100px) {
  .synth-workspace {
    grid-template-columns: 1fr;
  }
  .synth-output-panel {
    position: static;
    height: min(520px, calc(100vh - var(--app-header-height) - 48px));
    min-height: 420px;
    max-height: 520px;
  }
}

@media (max-width: 700px) {
  .synth-output-panel {
    padding: 14px;
  }
  .synth-panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .synth-block {
    padding: 20px;
    border-radius: var(--radius-lg);
  }
  .synth-block .synth-text-input {
    min-height: 120px;
  }
  .synth-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .synth-actions .btn-ghost,
  .synth-actions .btn-primary,
  .synth-actions .cost-hint {
    justify-content: center;
    width: 100%;
  }
  .synth-audio-item,
  .synth-audio-item-loading {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .synth-audio-item .audio-label {
    max-width: none;
  }
  .synth-audio-item .custom-player {
    width: 100%;
  }
  .synth-audio-item .audio-actions {
    justify-content: flex-end;
  }
  .synth-audio-item .audio-text,
  .synth-audio-item-loading .audio-text {
    max-width: none;
  }
}

/* 合成中占位卡片 */
.synth-audio-item-loading {
  margin-bottom: 0;
  min-height: 127px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.synth-audio-item-loading .audio-header,
.synth-audio-item-loading .audio-player-row {
  pointer-events: none;
}
.synth-audio-item-loading .audio-time {
  color: var(--accent);
  background: var(--accent-soft);
}
.synth-audio-item-loading .audio-player-row {
  min-height: 36px;
  height: 36px;
}
.synth-audio-item-transitioning {
  overflow: hidden;
}
.synth-transition-outgoing-row {
  position: absolute;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}
.synth-transition-incoming-row {
  position: relative;
  z-index: 1;
}
.synth-loading-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: #fff;
}
.synth-pixel-loader {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}
.synth-dot-field {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  display: grid;
  grid-template-columns: repeat(44, minmax(0, 1fr));
  grid-template-rows: repeat(5, 1fr);
  column-gap: 2px;
  row-gap: 2px;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.synth-dot {
  width: 3.2px;
  height: 3.2px;
  justify-self: center;
  align-self: center;
  border-radius: var(--radius-circle);
  background: rgba(var(--accent-rgb), 0.72);
  opacity: 0.34;
  transform: scale(var(--dot-base, 0.55));
  transform-origin: center;
  animation: synth-dot-flow 1.65s ease-in-out infinite;
  animation-delay: var(--dot-delay, 0s);
  will-change: transform, opacity;
}
@keyframes synth-dot-flow {
  0%, 100% {
    opacity: 0.28;
    transform: scale(var(--dot-base, 0.55));
  }
  38% {
    opacity: 0.84;
    transform: scale(var(--dot-peak, 1.65));
  }
  62% {
    opacity: 0.46;
    transform: scale(var(--dot-mid, 0.9));
  }
}
@media (prefers-reduced-motion: reduce) {
  .synth-dot {
    animation: none;
    opacity: 0.5;
    transform: scale(0.9);
  }
}
@keyframes loading-breathe {
  0%, 100% {
    background-color: var(--input-bg);
    border-color: var(--line);
    box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
  }
  50% {
    background-color: #fff4ed;
    border-color: rgba(var(--accent-rgb), 0.24);
    box-shadow: 0 10px 26px rgba(var(--accent-rgb), 0.08);
  }
}

.cost-hint {
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.result-area {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--line); display: none;
}
.result-area.active { display: block; }
.result-area audio { width: 100%; margin-bottom: 12px; }
.result-info {
  font-size: 13px; color: var(--muted);
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background:
    radial-gradient(circle at 50% 18%, rgba(var(--accent-rgb),0.14), transparent 36%),
    rgba(28,25,23,0.34);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity .18s ease;
  backdrop-filter: blur(8px);
}
.modal-overlay.active { display: flex; opacity: 1; animation: overlayIn .18s ease; }
.modal-overlay.active .modal { animation: modalIn .22s cubic-bezier(.2,.75,.25,1); }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal {
  position: relative;
  background: rgba(255,254,250,0.96);
  border: 1px solid rgba(228,224,214,0.92);
  border-radius: var(--radius-lg);
  width: min(100%, 420px);
  max-height: min(88vh, 760px);
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(28,25,23,0.18),
    0 8px 24px rgba(var(--accent-rgb),0.10);
  color: var(--fg);
}
.modal-header {
  padding: 22px 24px 14px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.modal-header h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}
.modal-close {
  width: 34px; height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.modal-close:hover {
  color: var(--fg);
  background: var(--surface);
  border-color: var(--line);
}
.modal-close:active { transform: scale(0.96); }
.modal-close svg,
.modal-close [data-lucide] {
  width: 18px;
  height: 18px;
}
.modal-body {
  padding: 10px 24px 24px;
  max-height: calc(min(88vh, 760px) - 136px);
  overflow-y: auto;
}
.modal-footer {
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(228,224,214,0.76);
  background: rgba(250,249,242,0.58);
  display: flex; justify-content: flex-end; gap: 10px;
  flex-wrap: wrap;
}
.modal-confirm { max-width: 380px; }
.confirm-icon-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.confirm-icon-wrap .confirm-icon-circle {
  width: 58px; height: 58px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--accent-soft), #fff8f3);
  border: 1px solid var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(var(--accent-rgb),0.14);
}
.confirm-icon-circle .ip-mascot {
  width: 52px;
  height: 52px;
}
.modal-confirm .modal-header { text-align: center; justify-content: center; padding: 24px 24px 4px; }
.modal-confirm .modal-header h3 { font-size: 20px; font-weight: 700; }
.modal-confirm .modal-body { text-align: center; padding-top: 12px; }
.modal-confirm .modal-body p { color: var(--muted); font-size: 14px; line-height: 1.6; white-space: pre-line; }
.modal-confirm .modal-footer {
  justify-content: center;
  padding-top: 0;
  padding-bottom: 24px;
  border-top: none;
  background: transparent;
}
.auth-mascot-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(var(--accent-rgb),0.14);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,247,238,0.92), rgba(255,255,255,0.74));
}
.auth-mascot-strip strong {
  display: block;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.35;
}
.auth-mascot-strip span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .modal-overlay { align-items: flex-end; padding: 12px; }
  .modal {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: var(--radius-lg);
  }
  .modal-header { padding: 20px 18px 12px; }
  .modal-body {
    padding: 8px 18px 20px;
    max-height: calc(100vh - 176px);
  }
  .modal-footer {
    padding: 12px 18px 18px;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .modal-footer .btn-ghost,
  .modal-footer .btn-primary,
  .modal-footer .btn-danger {
    width: 100%;
    justify-content: center;
  }
  .modal-recharge .modal-body {
    max-height: calc(100vh - 260px);
  }
}

/* 登录/注册 */
.auth-switch {
  text-align: center; font-size: 13px; color: var(--muted);
  margin-top: 16px;
}
.auth-switch a { color: var(--accent); cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }

/* 充值 */
.modal-recharge {
  width: min(100%, 500px);
  max-width: 500px;
}
.modal-recharge .modal-body { padding-top: 4px; }
.recharge-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.recharge-checkout-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recharge-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 700;
}
.recharge-section-title span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.recharge-hero {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 14px;
  border: 1px solid rgba(var(--accent-rgb),0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 12%, rgba(255,214,188,0.58), transparent 34%),
    linear-gradient(135deg, rgba(255,247,238,0.96), rgba(255,255,255,0.78));
  overflow: hidden;
}
.recharge-hero::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -68px;
  width: 128px;
  height: 128px;
  border-radius: var(--radius-circle);
  background: rgba(var(--accent-rgb),0.08);
  pointer-events: none;
}
.recharge-hero-copy {
  position: relative;
  z-index: 1;
}
.recharge-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.recharge-hero-title {
  margin: 0;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.28;
  letter-spacing: 0;
}
.recharge-hero-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.recharge-hero-mascot {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(var(--accent-rgb),0.14));
  justify-self: center;
  grid-column: 1;
  grid-row: 1;
}
.recharge-hero-copy {
  grid-column: 2;
  grid-row: 1;
}
.recharge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.recharge-option .amount-input {
  width: 3.2ch;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.recharge-option .amount-input.is-invalid {
  color: #b91c1c;
}
.recharge-option .amount-input::-webkit-outer-spin-button,
.recharge-option .amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.recharge-option {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 14px 13px;
  min-height: 112px;
  cursor: pointer;
  background: rgba(255,255,255,0.78);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  overflow: hidden;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.recharge-option::after {
  content: "";
  position: absolute;
  inset: auto -22px -42px auto;
  width: 94px;
  height: 94px;
  border-radius: var(--radius-circle);
  background: rgba(var(--accent-rgb),0.05);
  opacity: 0;
  transition: opacity .2s;
}
.recharge-option:hover {
  border-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.recharge-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.10);
}
.recharge-option.selected::after { opacity: 1; }
.recharge-option.recommended {
  border-color: rgba(var(--accent-rgb),0.34);
}
.recharge-option .recharge-option-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 6px 14px rgba(var(--accent-rgb),0.22);
}
.recharge-option-info {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.recharge-option-mascot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  object-fit: contain;
  margin-left: auto;
  filter: drop-shadow(0 7px 10px rgba(var(--accent-rgb),0.12));
}
.recharge-option.recommended .recharge-option-mascot {
  margin-top: 14px;
}
.recharge-option .amount {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
}
.recharge-option .credits {
  margin-top: 5px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
}
.recharge-option .plan-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.recharge-agreement-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.recharge-agreement-note a {
  color: var(--accent);
  text-decoration: none;
}
.recharge-agreement-note a:hover { text-decoration: underline; }
.recharge-outage {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--color-warning-soft);
  border: 1px solid rgba(217, 119, 6, 0.22);
  color: var(--fg);
}
.recharge-outage.is-visible { display: flex; }
.recharge-outage [data-lucide] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--color-warning);
}
.recharge-outage-copy {
  min-width: 0;
  flex: 1;
}
.recharge-outage-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.recharge-qr-area {
  display: none;
  text-align: center;
  padding: 8px 0 2px;
}
.recharge-qr-mascot {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 4px;
  filter: drop-shadow(0 10px 16px rgba(var(--accent-rgb),0.15));
}
.recharge-qr-area #recharge-qr-title {
  margin: 0 0 6px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 700;
}
.recharge-qr-copy {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
#recharge-qr-code {
  display: inline-flex;
  width: 212px;
  height: 212px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
#recharge-qr-code img {
  width: 188px;
  height: 188px;
  border-radius: var(--radius-md);
}
#recharge-qr-code canvas {
  width: 188px;
  height: 188px;
  border-radius: var(--radius-md);
}
.qr-loading {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}
.qr-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: var(--radius-circle);
  animation: qrSpin 1s linear infinite;
}
.qr-loading p,
.qr-error {
  font-size: 13px;
  color: var(--muted);
}
.qr-error {
  color: var(--danger);
}
.recharge-qr-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}
#recharge-polling-status {
  margin: 6px 0 0;
  color: var(--accent);
  font-size: 12px;
}
.recharge-qr-wrap {
  text-align: center;
  margin-top: 14px;
}
.recharge-qr-wrap img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  display: inline-block;
  box-shadow: var(--shadow-md);
}
.recharge-qr-wrap p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
@media (max-width: 420px) {
  .modal-recharge { max-width: 100%; }
  .modal-recharge .modal-body { padding-bottom: 12px; }
  .recharge-content { gap: 10px; }
  .recharge-checkout-view { gap: 9px; }
  .recharge-hero {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 64px;
    padding: 8px 12px;
  }
  .recharge-hero-kicker {
    margin-bottom: 2px;
    font-size: 11px;
  }
  .recharge-hero-title { font-size: 14px; }
  .recharge-hero-subtitle {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.28;
  }
  .recharge-hero-mascot {
    width: 48px;
    height: 48px;
  }
  .recharge-section-title { font-size: 12px; }
  .recharge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .recharge-option {
    min-height: 104px;
    align-items: center;
    text-align: left;
    gap: 8px;
    padding: 12px 10px 11px;
  }
  .recharge-option-mascot {
    width: 54px;
    height: 54px;
    transform: none;
  }
  .recharge-option.recommended .recharge-option-mascot { margin-top: 12px; }
  .recharge-option .amount { font-size: 20px; }
  .recharge-option .credits { margin-top: 4px; font-size: 12px; }
  .recharge-option .recharge-option-tag {
    top: 7px;
    right: 7px;
    padding: 2px 6px;
    font-size: 10px;
  }
  .recharge-agreement-note { font-size: 10px; line-height: 1.35; }
  .recharge-outage { padding: 10px 12px; gap: 8px; }
  .recharge-outage-copy p { font-size: 11px; }
}

.char-count {
  display: block; text-align: right;
  font-size: 12px; color: var(--muted); margin-top: 4px;
}
.synth-block .field.field-last {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.synth-block .field.field-last .char-count {
  position: absolute;
  right: 14px;
  bottom: 10px;
  margin-top: 0;
  padding: 2px 6px;
  background: rgba(255,255,255,0.85);
  border-radius: var(--radius-xs);
  pointer-events: none;
}
.contact-wechat-id {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--fg);
  transition: border-color .15s, background .15s;
  user-select: all;
}
.contact-wechat-id:hover {
  border-color: var(--accent); background: var(--accent-soft);
}
.modal-sm { max-width: 380px; }
.modal-contact { max-width: 360px; }
.modal-body-centered {
  padding: var(--space-6);
  text-align: center;
}
.contact-wechat-block {
  margin-top: var(--space-4);
}
.contact-mascot {
  margin-bottom: 6px;
}
.contact-wechat-label {
  font-size: 14px;
  color: var(--fg);
  margin: 0 0 var(--space-2) 0;
}
.contact-copy-hint {
  font-size: 12px;
  color: var(--accent);
  margin: 6px 0 0 0;
  opacity: 0;
  transition: opacity .2s;
}
.modal-help-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: var(--space-4);
  line-height: 1.6;
}
.modal-help-text-flat {
  margin: 0;
}
.redeem-code-field {
  margin-bottom: var(--space-4);
}
.redeem-code-input {
  text-transform: uppercase;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 16px;
  letter-spacing: 2px;
}
.recharge-submit[disabled] {
  cursor: not-allowed;
}
.char-count.over-limit {
  color: var(--danger); font-weight: 500;
}

/* Spinner */
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid var(--line); border-top-color: var(--accent);
  border-radius: var(--radius-circle); animation: spin 0.8s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* QR loading spinner */
@keyframes qrSpin { to { transform: rotate(360deg); } }

/* Toast */
.toast-container {
  position: fixed;
  /* 下移到 sticky tab 栏之下，避免 toast 遮挡工作台导航 */
  top: calc(var(--app-header-height) + 72px);
  left: 50%;
  z-index: var(--z-toast);
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  pointer-events: none;
}
.toast {
  --toast-accent: var(--accent);
  --toast-accent-rgb: var(--accent-rgb);
  background: rgba(255,254,250,0.86);
  color: var(--fg);
  padding: 11px 13px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.45;
  box-shadow:
    0 18px 42px rgba(28,25,23,0.16),
    0 2px 8px rgba(28,25,23,0.06),
    inset 0 1px 0 rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  pointer-events: auto;
  transform-origin: top center;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  will-change: opacity, transform;
}
.toast.success {
  --toast-accent: var(--color-success);
  --toast-accent-rgb: 77,143,90;
}
.toast.error {
  --toast-accent: var(--danger);
  --toast-accent-rgb: var(--danger-rgb);
  background: rgba(255,250,248,0.92);
  border-color: rgba(var(--danger-rgb), 0.18);
}
.toast.warning {
  --toast-accent: var(--color-warning);
  --toast-accent-rgb: 217,119,6;
  background: rgba(255,253,246,0.92);
  border-color: rgba(217,119,6,0.22);
}
.toast-status {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background: var(--toast-accent);
  box-shadow: 0 0 0 4px rgba(var(--toast-accent-rgb), 0.12);
  flex: 0 0 auto;
}
.toast-text {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 640px) {
  .toast-container {
    top: max(calc(var(--app-header-height) + 66px), calc(env(safe-area-inset-top) + 66px));
    left: 50%;
    right: auto;
    width: calc(100vw - 24px);
    transform: translateX(-50%);
  }
  .toast {
    padding: 11px 13px;
    border-radius: 18px;
    font-size: 13px;
    gap: 8px;
    min-height: 50px;
  }
}
.toast-action {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 4px 10px; font-size: 13px; cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.toast-action:hover { background: #ffe8df; }
.toast-action:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.35);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .toast {
    will-change: auto;
  }
}

/* 留言板响应式 */
@media (max-width: 640px) {
  #feedback-list .generated-card { padding: 12px !important; margin-bottom: 12px !important; }
  #feedback-list .generated-card > div[style*="margin-left:16px"] { margin-left: 8px !important; padding: 10px 12px !important; }
  #feedback-list .generated-card > div[style*="padding:12px 16px 16px"] { padding: 10px 12px 12px !important; }
}

.hidden { display: none !important; }

/* ===== 页脚：放在 .container.workbench 内，左右边缘与卡片一致；整体弱化但保持可读（对比度≥3:1） ===== */
.footer{--footer-fg:#8f8980;margin-top:20px;padding-bottom:64px;font-size:11px;line-height:1.6;color:var(--footer-fg)}
.footer-inner{border-top:1px solid rgba(228,224,214,.7);padding-top:14px}
.footer p{margin:0}
.footer-brand{font-size:12px;font-weight:500;line-height:1.4;color:var(--muted);white-space:nowrap}
.footer-intro{font-size:11px;color:var(--footer-fg)}
.footer-col-title{display:block;color:var(--muted);font-weight:400;font-size:11px;margin-bottom:2px}
.footer-col-links{display:flex;flex-wrap:wrap;gap:0 14px}
.footer-copy{font-size:10px}
.footer-icp{font-size:10px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.nav-h1{margin:0 0 0 12px;padding-left:12px;border-left:1px solid rgba(0,0,0,.12);font-size:13px;font-weight:500;color:var(--muted);line-height:1.2;white-space:nowrap}
@media (max-width:760px){.nav-h1{display:none}}
.hot-features{margin-top:24px}
.hot-features h2{font-size:12px;font-weight:500;color:var(--muted);margin:0 0 8px}
.hot-features ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.hot-features a{display:inline-block;padding:4px 10px;border:1px solid rgba(228,224,214,.9);border-radius:999px;font-size:12px;color:var(--muted);text-decoration:none;background:rgba(255,255,255,.55)}
.hot-features a:hover{border-color:rgba(0,0,0,.2)}

.footer a,
.footer-links .contact-support-entry {
  color: var(--footer-fg);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.footer a:hover,
.footer-links .contact-support-entry:hover { color: var(--accent); }
.footer-links .contact-support-entry {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}
.footer-links .contact-support-entry:focus-visible,
.synth-actions .contact-support-entry:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
.synth-actions .contact-support-entry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s;
}
.synth-actions .contact-support-entry:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width:700px) {
  .synth-actions .contact-support-entry {
    align-self: flex-start;
    justify-content: flex-start;
    width: auto;
    margin-left: 0;
  }
}
.footer-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,3fr);gap:12px 28px}
.footer-seo{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 28px}
.footer-id{display:flex;flex-direction:column;gap:2px}
.footer-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;margin-top:14px;padding-top:10px;border-top:1px solid rgba(228,224,214,.5)}
.footer-links{display:flex;flex-wrap:wrap;gap:2px 16px}
@media (max-width:640px){.footer-grid{grid-template-columns:1fr}.footer-seo{grid-template-columns:1fr;gap:8px}}
.field-agreement {
  margin-bottom: var(--space-3);
}
.agreement-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
}
.agreement-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-height: 14px;
  margin-top: 3px;
  flex: 0 0 auto;
  align-self: flex-start;
  accent-color: var(--accent);
  box-sizing: border-box;
}
.agreement-label span {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  overflow-wrap: anywhere;
}
.agreement-label a {
  color: var(--accent);
  text-decoration: none;
}
.agreement-label a:hover {
  text-decoration: underline;
}

/* ===== 全局音量控制悬浮按钮 ===== */
.volume-control {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
}
.volume-control-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  background: var(--input-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all .2s;
}
.volume-control-btn:hover {
  color: var(--accent);
  border-color: var(--accent-light);
}
@media (max-width: 640px) {
  .volume-control { bottom: 16px; right: 16px; }
  .volume-control-btn { width: 40px; height: 40px; }
}
.volume-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 14px 10px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all .2s;
}
.volume-control:hover .volume-panel,
.volume-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.volume-slider-wrap {
  width: 24px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.volume-slider-wrap input[type="range"] {
  position: absolute;
  width: 100px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--line);
  border-radius: var(--radius-xs);
  outline: none;
  transform: rotate(-90deg);
  transform-origin: center;
}
.volume-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-circle);
  background: var(--accent);
  cursor: pointer;
}
.volume-slider-wrap input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-circle);
  background: var(--accent);
  cursor: pointer;
  border: none;
}
.volume-value {
  font-size: 11px;
  color: var(--muted);
  min-width: 32px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

