/* ============================================================
   即梦控制台 — 深色优先视觉系统
   配色：偏蓝黑背景 + 柔和紫主色 + 琥珀金强调
   主题切换：<html data-theme="dark|light"> 由 JS 控制；
   未指定时默认深色，并尊重 prefers-color-scheme。
   ============================================================ */
:root {
  /* —— 主色：柔和紫 —— */
  --primary: #8B7EC8;
  --primary-dark: #7268b0;
  --primary-light: #211f33;            /* 紫色高亮底（深色面） */
  --primary-gradient: linear-gradient(135deg, #8B7EC8 0%, #6f63b5 100%);
  --on-primary: #0a0a0f;               /* 紫色按钮上的文字 */

  /* —— 强调色：琥珀金 —— */
  --accent: #E8A838;
  --accent-soft: rgba(232,168,56,0.14);

  /* —— 背景层次 —— */
  --bg: #0a0a0f;                       /* 页面底 */
  --surface: #13131f;                  /* 表面 */
  --bg-white: #1a1a2e;                 /* 卡片（沿用旧变量名） */
  --card: #1a1a2e;
  --card-bg: #1a1a2e;
  --bg-light: #13131f;
  --surface-hover: #20203a;

  /* —— 描边 —— */
  --border: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.04);
  --border-strong: rgba(255,255,255,0.12);

  /* —— 文字 —— */
  --text: #e8e8ed;
  --text-primary: #e8e8ed;
  --text-secondary: #8888a0;
  --text-muted: #6a6a82;

  /* —— 语义色 —— */
  --success: #4ade80;
  --success-light: rgba(74,222,128,0.12);
  --warning: #E8A838;
  --warning-light: rgba(232,168,56,0.12);
  --error: #f87171;
  --error-light: rgba(248,113,113,0.12);

  /* —— 光晕（深色主题不用多级阴影，用紫色微光） —— */
  --glow: 0 0 20px rgba(139,126,200,0.15);
  --glow-strong: 0 0 28px rgba(139,126,200,0.28);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.6);

  /* —— 圆角 —— */
  --radius-xs: 4px;
  --radius-sm: 6px;       /* 按钮/输入框 */
  --radius-md: 8px;       /* 大卡片 */
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* —— 布局 —— */
  --sidebar-w: 84px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* —— 字体 —— */
  --font: system-ui, -apple-system, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, 'PingFang SC', sans-serif;

  /* —— 间距体系 —— */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
}

/* ============================================================
   浅色模式 — 白底 + 紫色主色
   .light class 或 data-theme="light" 或系统偏好 light
   ============================================================ */
:root[data-theme="light"] {
  --primary: #7B6FB8;
  --primary-dark: #6457a4;
  --primary-light: #f1eefb;
  --primary-gradient: linear-gradient(135deg, #8B7EC8 0%, #6f63b5 100%);
  --on-primary: #ffffff;
  --accent: #C8841A;
  --accent-soft: rgba(200,132,26,0.12);
  --bg: #f7f7fb;
  --surface: #ffffff;
  --bg-white: #ffffff;
  --card: #ffffff;
  --card-bg: #ffffff;
  --bg-light: #f7f7fb;
  --surface-hover: #f1f1f7;
  --border: rgba(20,20,40,0.08);
  --border-light: rgba(20,20,40,0.05);
  --border-strong: rgba(20,20,40,0.16);
  --text: #1a1a2e;
  --text-primary: #1a1a2e;
  --text-secondary: #5a5a72;
  --text-muted: #9494a8;
  --success: #16a34a;
  --success-light: rgba(22,163,74,0.1);
  --warning: #C8841A;
  --warning-light: rgba(200,132,26,0.1);
  --error: #dc2626;
  --error-light: rgba(220,38,38,0.1);
  --glow: 0 4px 16px rgba(139,126,200,0.18);
  --glow-strong: 0 6px 22px rgba(139,126,200,0.28);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --primary: #7B6FB8;
    --primary-dark: #6457a4;
    --primary-light: #f1eefb;
    --on-primary: #ffffff;
    --accent: #C8841A;
    --accent-soft: rgba(200,132,26,0.12);
    --bg: #f7f7fb;
    --surface: #ffffff;
    --bg-white: #ffffff;
    --card: #ffffff;
    --card-bg: #ffffff;
    --bg-light: #f7f7fb;
    --surface-hover: #f1f1f7;
    --border: rgba(20,20,40,0.08);
    --border-light: rgba(20,20,40,0.05);
    --border-strong: rgba(20,20,40,0.16);
    --text: #1a1a2e;
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a72;
    --text-muted: #9494a8;
    --success: #16a34a;
    --success-light: rgba(22,163,74,0.1);
    --warning: #C8841A;
    --warning-light: rgba(200,132,26,0.1);
    --error: #dc2626;
    --error-light: rgba(220,38,38,0.1);
    --glow: 0 4px 16px rgba(139,126,200,0.18);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 36px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);
  }
}

/* PLACEHOLDER_BODY */

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   Layout
   ============================================================ */
.app {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* —— Sidebar：深紫到深蓝黑的渐变 —— */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: linear-gradient(180deg, #1a1733 0%, #0e0e18 60%, #0a0a0f 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl) 0 var(--space-lg);
  z-index: 100;
  transition: width 0.3s ease, min-width 0.3s ease;
}
.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--on-primary);
  font-weight: 700;
  margin-bottom: var(--space-3xl);
  flex-shrink: 0;
  cursor: default;
  box-shadow: var(--glow);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
  width: 100%;
  padding: 0 12px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  position: relative;
  user-select: none;
}
.nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
}
.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px var(--primary);
}
.nav-icon {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-icon svg { width: 22px; height: 22px; display: block; }
.nav-label {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-badge {
  position: absolute;
  top: 6px;
  right: 14px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--accent);
  color: #0a0a0f;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Main content */
.main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* —— Header bar —— */
.header-bar {
  height: 60px;
  min-height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--space-2xl);
  gap: var(--space-lg);
}
.header-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.header-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
}
.header-spacer { flex: 1; }
.header-credit {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}
.credit-icon { display: inline-flex; }
.header-queue {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}
.header-queue .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Content area */
.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Page panels — opacity 过渡 */
.page {
  display: none;
  height: 100%;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.page.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

/* PLACEHOLDER_GEN */

/* ============================================================
   Generate Page
   ============================================================ */
.gen-page {
  display: none;
  flex-direction: column;
  height: 100%;
}
.gen-page.active { display: flex; }

.gen-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl);
  gap: var(--space-xl);
  overflow-y: auto;
}

.gen-brand {
  text-align: center;
  margin-bottom: var(--space-sm);
}
.gen-brand h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.gen-brand p { display: none; }

/* —— Type tabs：分段控件 —— */
.gen-type-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  padding: 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
.gen-type-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.gen-type-tab svg { width: 16px; height: 16px; }
.gen-type-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.gen-type-tab.active {
  background: var(--primary);
  color: var(--on-primary);
}
.gen-type-desc {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 18px;
}

/* —— Video parser pills —— */
.vp-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.vp-platform-pill:hover { border-color: var(--primary); color: var(--primary); }
.vp-platform-pill.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  font-weight: 600;
}
.vp-result-card { display: flex; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.vp-result-cover {
  width: 180px;
  min-width: 180px;
  height: 120px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--surface);
}
.vp-result-info { flex: 1; display: flex; flex-direction: column; gap: var(--space-sm); }
.vp-result-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vp-result-meta { font-size: 13px; color: var(--text-muted); }
.vp-result-actions { display: flex; gap: var(--space-sm); margin-top: auto; flex-wrap: wrap; }
.vp-btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.vp-btn-primary { background: var(--primary); color: var(--on-primary); }
.vp-btn-primary:hover { box-shadow: var(--glow); transform: scale(1.02); }
.vp-btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.vp-btn-secondary:hover { border-color: var(--primary); }
.vp-history-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.vp-history-item:hover { border-color: var(--primary); }
.vp-history-thumb { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface); }
.vp-history-info { flex: 1; min-width: 0; }
.vp-history-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-history-platform { font-size: 11px; color: var(--text-muted); }

/* —— Prompt area —— */
.prompt-container { width: 100%; max-width: 720px; }
.prompt-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition);
  position: relative;
}
.prompt-box:focus-within {
  border-color: var(--primary);
  box-shadow: var(--glow);
}
.prompt-box textarea {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  background: transparent;
  color: var(--text);
  min-height: 64px;
  max-height: 200px;
  resize: none;
}
.prompt-box textarea::placeholder { color: var(--text-muted); }
.prompt-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.prompt-upload-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition);
  flex-shrink: 0;
}
.prompt-upload-btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--glow); }
.prompt-spacer { flex: 1; }
.prompt-submit {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--primary-gradient);
  color: var(--on-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.prompt-submit:hover { transform: scale(1.06); box-shadow: var(--glow-strong); }
.prompt-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.prompt-char-count { font-size: 11px; color: var(--text-muted); margin-right: 4px; }

/* Image preview strip */
.image-preview-strip { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-md); }
.image-preview-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Options drawer */
.gen-options { display: none; }
.prompt-options { display: none; }
.opt-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--space-sm);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.opt-toggle:hover .opt-toggle-icon { color: var(--primary); }
.opt-summary { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.opt-toggle-icon { font-size: 10px; color: var(--text-muted); transition: transform 0.2s; }
.opt-toggle-icon.expanded { transform: rotate(180deg); }
.opt-drawer {
  display: none;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md) 0 var(--space-xs);
  animation: slideDown 0.2s ease;
}
.opt-drawer.show { display: flex; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.opt-section { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.opt-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
  width: 36px;
  text-align: right;
}

/* Model cards */
.model-scroll-wrap { flex: 1; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
.model-scroll { display: flex; gap: var(--space-sm); padding: 2px; }
.model-card {
  min-width: 88px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface);
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.model-card:hover { border-color: var(--primary); }
.model-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--glow);
}
.model-card .mc-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.model-card .mc-tag { font-size: 10px; color: var(--text-muted); margin-top: 1px; display: none; }
.model-card .mc-quality {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.mc-quality.hd { background: var(--success-light); color: var(--success); }
.mc-quality.fast { background: var(--accent-soft); color: var(--accent); }
.mc-quality.pro { background: var(--primary-light); color: var(--primary); }
.mc-quality.standard { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

/* Ratio pills */
.ratio-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ratio-pill {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  background: var(--surface);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
.ratio-pill:hover { border-color: var(--primary); color: var(--primary); }
.ratio-pill.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.ratio-pill .ratio-preview {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Preset chips */
.preset-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.preset-chip {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  background: var(--surface);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.preset-chip:hover { border-color: var(--primary); color: var(--primary); }
.preset-chip.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.preset-chip .chip-unit { font-size: 10px; color: var(--text-muted); margin-left: 2px; }

/* Small input */
.small-input {
  width: 80px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}
.small-input:focus { border-color: var(--primary); box-shadow: var(--glow); }

/* Voice pills */
.voice-pills { display: flex; gap: 6px; flex-wrap: wrap; max-height: 110px; overflow-y: auto; }
.voice-pill {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  background: var(--surface);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
}
.voice-pill:hover { border-color: var(--primary); color: var(--primary); }
.voice-pill.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.voice-pill .vp-gender { font-size: 12px; }

/* PLACEHOLDER_TASKS */

/* ============================================================
   Tasks Page
   ============================================================ */
.tasks-page { padding: var(--space-2xl); overflow-y: auto; }
.tasks-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-xl); }
.tasks-header h2 { font-size: 22px; font-weight: 700; }
.refresh-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.refresh-btn:hover { border-color: var(--primary); color: var(--primary); }

.task-grid { display: grid; gap: var(--space-md); }
.task-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  transition: var(--transition);
  cursor: pointer;
}
.task-card:hover { border-color: var(--border-strong); box-shadow: var(--glow); }
.task-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 22px;
}
.task-thumb img { width: 100%; height: 100%; object-fit: cover; }
.task-info { flex: 1; min-width: 0; }
.task-prompt { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta { display: flex; align-items: center; gap: var(--space-sm); margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.task-actions { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }

/* Status badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-error { background: var(--error-light); color: var(--error); }
.badge-info { background: var(--primary-light); color: var(--primary); }
.badge .badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }

.btn-xs {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-xs:hover { border-color: var(--error); color: var(--error); }

/* Task detail modal */
.task-detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.task-detail-overlay.show { display: flex; }
.task-detail-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.task-detail-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-lg); }
.task-detail-header h3 { font-size: 17px; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--error-light); color: var(--error); }
.task-detail-assets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.task-detail-asset {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: var(--transition);
}
.task-detail-asset:hover { box-shadow: var(--glow); border-color: var(--primary); }
.task-detail-asset img, .task-detail-asset video { width: 100%; display: block; }

/* ============================================================
   Assets Page
   ============================================================ */
.assets-page { padding: var(--space-2xl); overflow-y: auto; }
.assets-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-xl); flex-wrap: wrap; }
.assets-header h2 { font-size: 22px; font-weight: 700; }
.assets-stats {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.stat-item { font-size: 13px; color: var(--text-secondary); }
.stat-item b { color: var(--primary); font-weight: 700; }
.assets-filter { display: flex; gap: 6px; margin-left: auto; }
.filter-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
}
.asset-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.asset-card:hover { box-shadow: var(--glow); transform: translateY(-2px); border-color: var(--border-strong); }
.asset-media {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.asset-media img, .asset-media video { width: 100%; height: 100%; object-fit: cover; }
.asset-media .play-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10,10,15,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  backdrop-filter: blur(4px);
}
.asset-footer { padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; }
.asset-footer .af-id { font-size: 12px; color: var(--text-muted); font-family: monospace; }
.asset-footer .af-type {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* PLACEHOLDER_AGENT */

/* ============================================================
   Agent Mode
   ============================================================ */
.agent-page { height: 100%; display: flex; }
.agent-wrap { display: flex; flex-direction: column; height: 100%; width: 100%; max-width: 820px; margin: 0 auto; padding: 0 var(--space-xl); }
.agent-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  scroll-behavior: smooth;
}
/* Welcome */
.agent-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
}
.agent-welcome-icon {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-xl);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  box-shadow: var(--glow-strong);
  color: var(--on-primary);
}
.agent-welcome-icon svg { width: 38px; height: 38px; }
.agent-welcome-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: var(--space-sm); }
.agent-welcome-desc { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-2xl); line-height: 1.6; max-width: 460px; }
.agent-suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); width: 100%; max-width: 480px; }
.agent-suggest-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}
.agent-suggest-btn:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--glow); }
.agent-suggest-btn .suggest-icon { font-size: 20px; flex-shrink: 0; }
.agent-suggest-btn .suggest-text { font-size: 13px; line-height: 1.4; }
/* Chat messages */
.agent-msg { display: flex; gap: var(--space-md); animation: agentMsgIn 0.3s ease; }
@keyframes agentMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.agent-msg.user { flex-direction: row-reverse; }
.agent-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.agent-msg.user .agent-avatar { background: var(--primary); color: var(--on-primary); }
.agent-msg.assistant .agent-avatar { background: var(--primary-gradient); color: var(--on-primary); }
.agent-bubble { max-width: 85%; padding: 14px 18px; border-radius: var(--radius-xl); font-size: 14px; line-height: 1.7; word-break: break-word; }
.agent-msg.user .agent-bubble { background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 4px; }
.agent-msg.assistant .agent-bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
/* Reasoning block */
.agent-reasoning {
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: var(--space-md);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-height: 200px;
  overflow-y: auto;
}
.agent-reasoning-header { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; margin-bottom: var(--space-sm); font-size: 13px; color: var(--primary); font-weight: 600; }
.agent-reasoning-body { white-space: pre-wrap; }
/* Tool call */
.agent-tool-call {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: var(--space-sm) 0;
  font-size: 13px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.agent-tool-call .tool-icon { font-size: 16px; }
.agent-tool-call .tool-name { font-weight: 600; }
/* Images grid */
.agent-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-md); margin-top: var(--space-md); }
.agent-images img { width: 100%; border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); border: 1px solid var(--border); }
.agent-images img:hover { transform: scale(1.02); box-shadow: var(--glow); }
/* Summary badge */
.agent-summary { background: var(--primary-gradient); color: var(--on-primary); padding: 10px 16px; border-radius: var(--radius-md); margin-top: var(--space-md); font-size: 13px; font-weight: 600; }
/* Resolving indicator */
.agent-resolving { color: var(--text-muted); font-size: 13px; padding: var(--space-sm) 0; display: flex; align-items: center; gap: var(--space-sm); }
/* Typing indicator */
.agent-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.agent-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: agentBlink 1.4s infinite both; }
.agent-typing span:nth-child(2) { animation-delay: 0.2s; }
.agent-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes agentBlink { 0%,80%,100% { opacity: 0.2; } 40% { opacity: 1; } }
/* Input area */
.agent-input-area { display: flex; gap: var(--space-md); padding: var(--space-lg) 0 var(--space-xl); align-items: flex-end; }
.agent-input-area textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px 20px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  background: var(--surface);
  color: var(--text);
  min-height: 48px;
  max-height: 120px;
  line-height: 1.5;
}
.agent-input-area textarea:focus { border-color: var(--primary); box-shadow: var(--glow); }
.agent-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: var(--on-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 18px;
}
.agent-send-btn:hover { transform: scale(1.05); box-shadow: var(--glow-strong); }
.agent-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
/* Agent Sidebar */
.agent-sidebar {
  width: 260px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  flex-shrink: 0;
}
.agent-sidebar-header { padding: var(--space-lg); border-bottom: 1px solid var(--border); }
.agent-history-btn {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--text-secondary);
}
.agent-history-btn:hover { background: var(--surface-hover); }
.agent-new-btn {
  width: 100%;
  padding: 10px 16px;
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
}
.agent-new-btn:hover { background: var(--primary-light); border-style: solid; }
.agent-conv-list { flex: 1; overflow-y: auto; padding: var(--space-sm); }
.agent-conv-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.agent-conv-item:hover { background: var(--surface-hover); }
.agent-conv-item.active { background: var(--primary-light); border-left: 3px solid var(--primary); }
.agent-conv-item .conv-icon { font-size: 16px; flex-shrink: 0; }
.agent-conv-item .conv-title { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.agent-conv-item .conv-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.agent-conv-empty { text-align: center; padding: var(--space-3xl) var(--space-lg); color: var(--text-muted); font-size: 13px; }
.agent-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* PLACEHOLDER_MISC */

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,5,10,0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img, .lightbox video { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-md); box-shadow: var(--shadow-xl); }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-download {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox-download:hover { box-shadow: var(--glow-strong); }

/* ============================================================
   Skeleton Loading
   ============================================================ */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skeleton-card { background: var(--card); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.skeleton-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}
.skeleton-body { padding: var(--space-md); }
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  margin-bottom: var(--space-sm);
}
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.xshort { width: 40%; }

/* Enhanced task detail modal */
.task-detail-prompt-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
  margin: var(--space-md) 0;
  max-height: 200px;
  overflow-y: auto;
  position: relative;
  word-break: break-all;
}
.task-detail-prompt-box .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}
.task-detail-prompt-box .copy-btn:hover { background: var(--primary-light); color: var(--primary); }
.task-detail-info { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); font-size: 13px; margin-bottom: var(--space-md); }
.task-detail-actions { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); flex-wrap: wrap; }
.task-detail-actions .btn-action {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.task-detail-actions .btn-action:hover { border-color: var(--primary); color: var(--primary); }
.task-detail-actions .btn-action.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.task-detail-actions .btn-action.primary:hover { box-shadow: var(--glow); }

/* ============================================================
   Toast
   ============================================================ */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: var(--space-sm); }
.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: slideIn 0.3s ease;
  max-width: 360px;
  color: var(--text);
}
.toast.toast-success { border-color: var(--success); }
.toast.toast-success .toast-icon { color: var(--success); }
.toast.toast-error { border-color: var(--error); }
.toast.toast-error .toast-icon { color: var(--error); }
.toast.toast-info { border-color: var(--primary); }
.toast.toast-info .toast-icon { color: var(--primary); }
.toast.toast-leaving { animation: slideOut 0.3s ease forwards; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(110%); opacity: 0; } }

/* ============================================================
   Spinner & Empty State
   ============================================================ */
.spinner { width: 20px; height: 20px; border: 2.5px solid var(--border-strong); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-sm { width: 14px; height: 14px; border-width: 2px; }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-4xl) var(--space-xl); color: var(--text-muted); gap: var(--space-md); text-align: center; }
/* 空状态：CSS 绘制的抽象图形（无 emoji） */
.empty-state .empty-icon {
  width: 64px;
  height: 64px;
  font-size: 0;
  position: relative;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background:
    radial-gradient(circle at 50% 40%, var(--primary-light), transparent 70%);
  opacity: 0.9;
}
.empty-state .empty-icon::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  opacity: 0.5;
}
.empty-state .empty-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.8;
}
.empty-state .empty-text { font-size: 15px; color: var(--text-secondary); font-weight: 600; }
.empty-state .empty-subtitle { font-size: 13px; color: var(--text-muted); max-width: 320px; }
.empty-state .empty-cta {
  margin-top: var(--space-sm);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.empty-state .empty-cta:hover { box-shadow: var(--glow-strong); transform: scale(1.02); }

.hidden { display: none !important; }

/* PLACEHOLDER_INSPIRE */

/* ============================================================
   Inspiration Page
   ============================================================ */
.inspire-page { padding: var(--space-2xl); overflow-y: auto; }
.inspire-header { margin-bottom: var(--space-xl); }
.inspire-header h2 { font-size: 24px; font-weight: 700; color: var(--text); }
.inspire-header p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.inspire-search {
  width: 100%;
  max-width: 480px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
  margin-bottom: var(--space-xl);
  background: var(--surface);
  color: var(--text);
}
.inspire-search:focus { border-color: var(--primary); box-shadow: var(--glow); }
.inspire-search::placeholder { color: var(--text-muted); }
.inspire-category { margin-bottom: var(--space-2xl); }
.inspire-category-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: var(--space-md); display: flex; align-items: center; gap: var(--space-sm); }
.inspire-grid { columns: 5; column-gap: var(--space-md); padding: 0 4px; }
.inspire-card {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  width: 100%;
}
.inspire-card:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-2px); }
.inspire-card-img { width: 100%; display: block; object-fit: cover; max-height: 280px; min-height: 80px; background: var(--surface); }
.inspire-card-body { padding: 10px 12px; }
.inspire-card-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-all;
  white-space: normal;
  margin-bottom: var(--space-sm);
}
.inspire-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.inspire-card-author { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.inspire-card-avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface); }
.inspire-card-name { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inspire-card-likes { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.inspire-card-likes .like-icon { color: var(--error); font-size: 12px; }

/* Inspiration Detail Modal */
.inspire-detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,5,10,0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.inspire-detail-overlay.show { display: flex; }
.inspire-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.inspire-detail-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(10,10,15,0.6);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}
.inspire-detail-close:hover { background: rgba(10,10,15,0.85); }
.inspire-detail-img { width: 100%; display: block; border-radius: var(--radius-xl) var(--radius-xl) 0 0; object-fit: contain; max-height: 60vh; background: #0a0a0f; }
.inspire-detail-body { padding: var(--space-xl); }
.inspire-detail-prompt { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: var(--space-lg); white-space: pre-wrap; word-break: break-word; }
.inspire-detail-meta { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md) 0; border-top: 1px solid var(--border); }
.inspire-detail-author { display: flex; align-items: center; gap: 10px; }
.inspire-detail-author img { width: 32px; height: 32px; border-radius: 50%; }
.inspire-detail-author span { font-size: 14px; font-weight: 500; }
.inspire-detail-likes { display: flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: 14px; }
.inspire-detail-likes .like-icon { color: var(--error); }
.inspire-detail-actions { display: flex; gap: 10px; margin-top: var(--space-lg); }
.inspire-detail-actions .btn { flex: 1; padding: 12px 20px; font-size: 15px; border-radius: var(--radius-md); cursor: pointer; border: 1px solid var(--border); transition: var(--transition); font-weight: 600; }
.inspire-detail-actions .btn-secondary { background: var(--surface); color: var(--text); }
.inspire-detail-actions .btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.inspire-detail-actions .btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.inspire-detail-actions .btn-primary:hover { box-shadow: var(--glow); }
@media (max-width: 640px) {
  .inspire-detail-overlay { padding: 10px; }
  .inspire-detail-card { border-radius: var(--radius-md); max-height: 95vh; }
  .inspire-detail-img { max-height: 50vh; border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .inspire-detail-body { padding: var(--space-lg); }
  .inspire-detail-prompt { font-size: 14px; }
  .inspire-detail-actions .btn { padding: 10px 16px; font-size: 14px; }
}

/* Audio player in task cards */
.task-audio-player { margin-top: var(--space-sm); width: 100%; max-width: 300px; }
.task-audio-player audio { width: 100%; height: 36px; }

/* PLACEHOLDER_MOBILE */

/* ============================================================
   Mobile: Bottom Tab Navigation
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-nav-inner { display: flex; align-items: center; justify-content: space-around; height: 100%; max-width: 500px; margin: 0 auto; }
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item:active { transform: scale(0.92); }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item .mn-icon { display: flex; align-items: center; justify-content: center; height: 24px; }
.mobile-nav-item .mn-icon svg { width: 22px; height: 22px; }
.mobile-nav-item .mn-label { font-size: 10px; font-weight: 600; }
.mobile-nav-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--accent);
  color: #0a0a0f;
  border-radius: 8px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (max-width: 768px) {
  .sidebar { width: 64px; min-width: 64px; }
  .sidebar .nav-label { display: none; }
  .sidebar .dark-mode-toggle .nav-label { display: none; }
  .header-bar { padding: 0 var(--space-md); }
  .gen-center { padding: var(--space-xl) var(--space-lg); }
  .prompt-container { max-width: 100%; }
  .gen-brand h1 { font-size: 26px; }
  .model-card { min-width: 120px; }
  .assets-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .task-card { flex-direction: column; align-items: flex-start; }
  .inspire-grid { columns: 3; column-gap: var(--space-sm); }
}

/* ============================================================
   Responsive — Mobile (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  .sidebar { display: none !important; }
  .mobile-nav { display: block; }
  .main { width: 100%; }
  .content { padding-bottom: 72px; }
  body, .app { overflow: auto; }
  .main { overflow: auto; }

  .vp-result-actions { flex-direction: column; }
  #videoparse-section { padding: 0 var(--space-md) var(--space-md) !important; }

  .header-bar { height: 52px; min-height: 52px; padding: 0 12px; gap: 8px; }
  .header-title { font-size: 15px; }
  .header-subtitle { display: none; }
  .header-credit, .header-queue { padding: 5px 10px; font-size: 11px; }

  .gen-center { padding: var(--space-lg) var(--space-md); gap: var(--space-lg); }
  .gen-brand h1 { font-size: 24px; }

  .gen-type-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding: 4px;
    touch-action: manipulation;
  }
  .gen-type-tabs::-webkit-scrollbar { display: none; }
  .gen-type-tab { padding: 6px 12px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }

  .prompt-container { max-width: 100%; }
  .prompt-box textarea { font-size: 15px; min-height: 80px; }

  .model-card { min-width: 100px; padding: 8px 10px; }
  .model-card .mc-quality { font-size: 8px; padding: 1px 4px; }
  .ratio-pill { padding: 5px 10px; font-size: 11px; }
  .preset-chip { padding: 5px 10px; font-size: 11px; }
  .prompt-submit { width: 38px; height: 38px; }

  .tasks-page { padding: var(--space-lg) var(--space-md); }
  .tasks-header h2 { font-size: 18px; }
  .task-card { padding: var(--space-md); gap: var(--space-md); }
  .task-thumb { width: 44px; height: 44px; font-size: 18px; }

  .assets-page { padding: var(--space-lg) var(--space-md); }
  .assets-header h2 { font-size: 18px; }
  .filter-pill { padding: 5px 12px; font-size: 11px; }
  .assets-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .inspire-page { padding: var(--space-lg) var(--space-md); }
  .inspire-header h2 { font-size: 20px; }
  .inspire-search { padding: 9px 14px; font-size: 13px; margin-bottom: var(--space-lg); }
  .inspire-grid { columns: 2; column-gap: var(--space-sm); }
  .inspire-card-text { font-size: 11px; -webkit-line-clamp: 2; }
  .inspire-card-body { padding: 8px; }

  .toast-container { top: auto; bottom: 78px; left: 12px; right: 12px; }
  .toast { font-size: 13px; padding: 10px 14px; }

  .image-preview-strip { gap: 6px; }
  .image-preview-item { width: 48px; height: 48px; }
}

@media (max-width: 380px) {
  .gen-brand h1 { font-size: 22px; }
  .prompt-box textarea { font-size: 14px; min-height: 70px; }
  .model-card { min-width: 88px; padding: 6px 8px; }
  .model-card .mc-name { font-size: 11px; }
  .assets-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gen-type-tab { padding: 5px 10px; font-size: 11px; }
}

/* Agent mobile */
@media (max-width: 640px) {
  .agent-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    height: 100%;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex !important;
    box-shadow: var(--shadow-lg);
  }
  .agent-sidebar.mobile-open { transform: translateX(0); }
  .agent-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  .agent-sidebar-overlay.show { display: block; }
  .agent-history-btn { display: flex !important; }
  .agent-wrap { padding: 0 12px; }
  .agent-messages { padding: var(--space-lg) 0; gap: var(--space-md); }
  .agent-welcome { padding: var(--space-3xl) 0 var(--space-xl); }
  .agent-welcome-title { font-size: 20px; }
  .agent-suggestions { gap: var(--space-sm); }
  .agent-msg { gap: var(--space-sm); }
  .agent-avatar { width: 30px; height: 30px; font-size: 14px; }
  .agent-bubble { padding: 10px 14px; font-size: 13px; }
  .agent-input-area { padding: 10px 0; gap: 8px; }
  .agent-input-area textarea { font-size: 14px; min-height: 40px; padding: 10px 14px; }
  .agent-send-btn { width: 40px; height: 40px; font-size: 16px; }
}

/* PLACEHOLDER_FINAL */

/* ============================================================
   补充样式 — 登录/统计/快捷键/搜索/用户菜单等
   ============================================================ */
.header-user { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px;
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; font-size: 13px; color: var(--text);
  transition: all .2s;
}

.user-icon { font-size: 16px; }
.user-menu {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  min-width: 140px; z-index: 100; overflow: hidden;
}

.user-menu-item {
  padding: 10px 16px; font-size: 13px; cursor: pointer;
  transition: background .15s; color: var(--text);
}

.credit-history { padding: 16px; }
.credit-filters { display: flex; gap: 8px; margin-bottom: 16px; }
.credit-filter {
  padding: 6px 16px; border-radius: 16px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-muted); font-size: 13px; cursor: pointer;
  transition: all 0.2s;
}

.credit-records { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.credit-record { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border-radius: 10px; }
.credit-record-icon { font-size: 20px; }
.credit-record-info { flex: 1; min-width: 0; }
.credit-record-prompt { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit-record-meta { font-size: 11px; color: var(--text-muted); }
.credit-record-right { text-align: right; }
.credit-record-cost { font-size: 16px; font-weight: 700; }
.credit-record-cost.expense { color: #ef4444; }
.credit-record-cost.income { color: #22c55e; }
.credit-load-more { text-align: center; padding: 16px; }
.credit-load-more button {
  padding: 8px 24px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); cursor: pointer; font-size: 13px;
}

.credit-load-more button:hover { border-color: var(--primary); color: var(--primary); }
/* Login dialog */
.login-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  z-index: 2000; align-items: center; justify-content: center;
}

.login-modal {
  background: var(--bg-white); border-radius: var(--radius-xl);
  width: 90%; max-width: 440px; overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.login-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}

.login-header h3 { margin: 0; font-size: 18px; }
.login-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--bg); font-size: 18px;
  cursor: pointer; color: var(--text-muted);
}

.login-body { padding: 24px; }
.login-hint { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; }
.login-steps {
  font-size: 13px; color: var(--text-secondary); margin: 0 0 20px;
  padding-left: 20px; line-height: 1.8;
}

.login-steps a { color: var(--primary); text-decoration: none; }
.login-steps code {
  background: var(--bg); padding: 2px 6px; border-radius: 4px;
  font-size: 12px;
}

.login-field { margin-bottom: 16px; }
.login-field label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 6px; color: var(--text);
}

.login-field input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color .2s; box-sizing: border-box;
}

.login-field input:focus { border-color: var(--primary); }
.login-error {
  color: var(--error); font-size: 13px; margin-bottom: 12px;
  min-height: 20px;
}

.login-submit {
  width: 100%; padding: 12px; border-radius: var(--radius-md);
  border: none; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: opacity .2s;
}

.search-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  transition: var(--transition);
}

.search-input-wrap .search-icon {
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  padding: 10px 0;
}

.search-input-wrap input::placeholder {
  color: var(--text-muted);
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.stats-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.stats-modal {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.stats-header h3 { font-size: 18px; font-weight: 600; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stats-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.stats-card .sc-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.stats-card .sc-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stats-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.stats-section {
  margin-bottom: 24px;
}

.stats-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding: 0 4px;
  margin-bottom: 8px;
}

.stats-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.stats-bar-fill {
  width: 100%;
  max-width: 40px;
  background: var(--primary-gradient);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.3s ease;
}

.stats-bar-label {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.stats-bar-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.header-stats-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.shortcut-help {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 50;
}

.shortcut-help-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.shortcut-tooltip {
  display: none;
  position: absolute;
  bottom: 36px;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  font-size: 12px;
  white-space: nowrap;
}

.shortcut-tooltip h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  gap: 16px;
}

.shortcut-key {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.shortcut-desc {
  color: var(--text-muted);
}

.adv-opt-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}

.adv-opt-section label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.adv-opt-section textarea {
  width: 100%;
  min-height: 50px;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  resize: vertical;
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
}

.adv-opt-section textarea:focus {
  border-color: var(--primary);
}

.adv-opt-section input[type="number"] {
  width: 120px;
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

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

.strength-row input[type="range"] {
  flex: 1;
  max-width: 180px;
  accent-color: var(--primary);
}

.strength-val {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 32px;
  text-align: center;
}

.last-frame-area {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.frame-upload-box {
  flex: 1;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.frame-upload-box .frame-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.frame-upload-box .frame-icon {
  font-size: 20px;
}

.frame-upload-box img {
  max-width: 100%;
  max-height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.hd-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.multi-ref-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.multi-ref-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border);
}

.multi-ref-add {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.dark-mode-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 12px 8px;
  margin-top: auto;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  font-family: inherit;
  font-size: 11px;
}

.dark-mode-toggle .nav-icon { font-size: 20px; }
.dark-mode-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
