/* ============================================================
   视频批量生成工具 v2 · 样式系统
   浅色主题 · 深色侧边栏 · 卡片化布局
   ============================================================ */
:root {
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-soft: #eef2f7;
  --text: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-softer: #eff6ff;

  --success: #059669;
  --success-light: #d1fae5;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warn: #d97706;
  --warn-light: #fef3c7;
  --info: #0891b2;
  --info-light: #cffafe;

  --sidebar-bg: #0f172a;
  --sidebar-bg2: #1e293b;
  --sidebar-text: #94a3b8;
  --sidebar-active: #3b82f6;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6;
}
button { cursor: pointer; font-family: inherit; }
input, textarea, select {
  font-family: inherit; font-size: 14px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
textarea { resize: vertical; min-height: 80px; }
input[type="range"] { padding: 0; box-shadow: none !important; }
a { color: var(--primary); text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-size: 14px; font-weight: 500;
  transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-softer); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); color: #fff; }
.btn.danger { color: var(--danger); border-color: #fecaca; }
.btn.danger:hover { background: var(--danger-light); border-color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--border-soft); color: var(--text); }
.btn.small { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover { background: inherit; color: inherit; border-color: var(--border); }

/* ---------------- 布局 ---------------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 224px; flex-shrink: 0; background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg2));
  color: var(--sidebar-text); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; color: #fff;
}
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  overflow: hidden;
}
.logo-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.brand b { display: block; font-size: 15px; line-height: 1.2; }
.brand span { font-size: 11px; color: var(--sidebar-text); }

.sidebar nav { flex: 1; padding: 4px 10px 16px; }
.sidebar nav .nav-group {
  font-size: 11px; letter-spacing: .08em; color: #475569;
  padding: 14px 10px 6px; text-transform: uppercase;
}
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 2px 0;
  border-radius: 8px; color: var(--sidebar-text); font-size: 14px;
  text-decoration: none; cursor: pointer; transition: all .15s;
}
.sidebar nav a svg { width: 17px; height: 17px; flex-shrink: 0; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .06); color: #e2e8f0; }
.sidebar nav a.active { background: rgba(59, 130, 246, .18); color: #fff; font-weight: 500; }

.sidebar-user {
  padding: 14px; border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
}
.sidebar-user .uname { font-size: 13px; color: #e2e8f0; font-weight: 500; line-height: 1.3; }
.sidebar-user .quota { font-size: 11px; color: var(--sidebar-text); line-height: 1.3; }
.sidebar-user .icon-btn {
  margin-left: auto; background: transparent; border: none; color: var(--sidebar-text);
  font-size: 15px; padding: 5px; border-radius: 6px; line-height: 1;
}
.sidebar-user .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 16px 28px;
  position: sticky; top: 0; z-index: 20; background: rgba(241, 245, 249, .85);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-soft);
}
.topbar h1 { font-size: 19px; font-weight: 600; flex: 1; }
.content { padding: 16px 20px 40px; max-width: 100%; width: 100%; margin: 0; box-sizing: border-box; }
section.tab { display: none; animation: fadeIn .22s ease; width: 100%; }
section.tab.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.card h2 { font-size: 15px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.card .card-sub { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.card h3 { font-size: 13px; font-weight: 600; margin: 16px 0 8px; color: var(--text); }
.card .head-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card .head-row h2 { margin: 0; }
.card .head-row .spacer { flex: 1; }

.label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.label > input, .label > textarea, .label > select { margin-top: 5px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > .field { flex: 1; min-width: 150px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------------- 统计卡 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
}
.stat-card .icon {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.stat-card .num { font-size: 24px; font-weight: 700; line-height: 1.15; }
.stat-card .lbl { font-size: 12px; color: var(--muted); }
.stat-card .sub { font-size: 11px; color: var(--faint); margin-top: 2px; }
.ic-blue { background: var(--primary-light); color: var(--primary); }
.ic-green { background: var(--success-light); color: var(--success); }
.ic-amber { background: var(--warn-light); color: var(--warn); }
.ic-cyan { background: var(--info-light); color: var(--info); }
.ic-purple { background: #ede9fe; color: #7c3aed; }
.ic-red { background: var(--danger-light); color: var(--danger); }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table th {
  color: var(--muted); font-weight: 600; font-size: 12px; background: #f8fafc;
  white-space: nowrap;
}
.table tr:hover td { background: #fafcff; }
.table td.num, .table th.num { text-align: right; }
.table .empty { text-align: center; color: var(--faint); padding: 32px 0; }
.table .prompt-cell {
  max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.table .op-cell { white-space: nowrap; }
.table .op-cell .btn { margin-right: 4px; }

/* ---------------- 状态徽章 ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px;
  border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-QUEUED { background: #f1f5f9; color: #64748b; }
.badge-RUNNING { background: var(--primary-light); color: var(--primary); }
.badge-RUNNING::before { animation: pulse 1.2s infinite; }
.badge-SUCCESS { background: var(--success-light); color: var(--success); }
.badge-FAILED { background: var(--danger-light); color: var(--danger); }
.badge-CANCELLED { background: #f1f5f9; color: #94a3b8; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------------- 进度条 ---------------- */
.progress { height: 6px; background: var(--border-soft); border-radius: 3px; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #3b82f6, #8b5cf6); transition: width .4s; }
.progress.warn > i { background: linear-gradient(90deg, #f59e0b, #ef4444); }

/* ---------------- 工作台：实例选择 ---------------- */
.inst-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.inst-card {
  flex: 1; min-width: 200px; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; transition: all .15s; background: #fff;
}
.inst-card:hover { border-color: var(--primary); }
.inst-card.sel { border-color: var(--primary); background: var(--primary-softer); box-shadow: 0 0 0 3px var(--primary-light); }
.inst-card .name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.inst-card .desc { font-size: 12px; color: var(--muted); margin: 4px 0; }
.inst-card .rate { font-size: 12px; color: var(--primary); font-weight: 600; }

/* ---------------- 工作台：参考图槽位 ---------------- */
.ref-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 1100px) { .ref-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .ref-grid { grid-template-columns: repeat(3, 1fr); } }
.ref-slot {
  position: relative; border: 2px dashed var(--border); border-radius: var(--radius-sm);
  aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; transition: all .15s; background: #fafcff; overflow: hidden;
  text-align: center; padding: 8px;
}
.ref-slot:hover { border-color: var(--primary); background: var(--primary-softer); }
.ref-slot.has-img { border-style: solid; border-color: var(--border); background: #fff; cursor: default; }
.ref-slot.dragover { border-color: var(--primary); background: var(--primary-light); }
.ref-slot .slot-idx {
  position: absolute; top: 4px; left: 6px; font-size: 10px; color: var(--faint);
  background: var(--card); border: 1px solid var(--border-soft); border-radius: 5px; padding: 0 6px;
  z-index: 2;
}
.ref-slot .slot-icon { font-size: 18px; opacity: .4; }
.ref-slot .slot-tip { font-size: 10px; color: var(--muted); line-height: 1.4; }
.ref-slot img.preview {
  width: 100%; height: 100%; object-fit: contain; border-radius: 6px;
  background: #f8fafc; padding: 3px; cursor: zoom-in;
}
.ref-slot .slot-ops { position: absolute; top: 4px; right: 6px; display: flex; gap: 4px; z-index: 2; }
.ref-slot .slot-ops button {
  width: 22px; height: 22px; border-radius: 6px; border: none; font-size: 11px;
  background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); line-height: 1; cursor: pointer;
}
.ref-slot .slot-ops button:hover { background: var(--danger-light); color: var(--danger); }
.ref-slot .slot-url {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 6px;
  background: linear-gradient(0deg, rgba(15, 23, 42, .55), transparent);
}
.ref-slot .slot-url input { background: rgba(255, 255, 255, .96); font-size: 11px; padding: 4px 8px; }

/* 公共图片占位（素材组内只读） */
.ref-slot--public { cursor: default; border-color: var(--primary-light); background: var(--primary-softer); }
.ref-slot--public:hover { border-color: var(--primary-light); background: var(--primary-softer); }
.ref-slot--public img.preview { cursor: zoom-in; opacity: .92; }
.pub-badge {
  position: absolute; bottom: 4px; right: 6px; font-size: 9px; color: #fff;
  background: rgba(37, 99, 235, .82); border-radius: 5px; padding: 0 6px; line-height: 1.6; z-index: 2;
}

/* ---------------- 任务详情 ---------------- */
.kv-grid-detail { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: 13px; }
.kv-grid-detail dt { color: var(--muted); }
.kv-grid-detail dd { word-break: break-all; }
.video-box { margin-top: 12px; }
.video-box video { width: 100%; max-height: 380px; border-radius: var(--radius); background: #000; }
.ref-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ref-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-soft); }

/* ---------------- 过滤器 ---------------- */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filters select, .filters input { width: auto; }
.filters .kw { min-width: 200px; flex: 1; max-width: 320px; }
.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 14px; color: var(--muted); font-size: 13px; }

/* ---------------- 模态框 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px;
  animation: fadeIn .15s ease;
}
.modal {
  background: #fff; border-radius: 14px; width: 620px; max-width: 100%; max-height: 86vh;
  overflow: auto; padding: 24px; box-shadow: var(--shadow-lg); animation: popIn .18s ease;
}
.modal.wide { width: 860px; }
.modal h3 { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; }
.modal h3 .spacer { flex: 1; }
.modal .close-x {
  border: none; background: transparent; font-size: 18px; color: var(--faint);
  padding: 4px 8px; border-radius: 6px; line-height: 1;
}
.modal .close-x:hover { background: var(--border-soft); color: var(--text); }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- Toast ---------------- */
#toast-root { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 240px; max-width: 380px; padding: 12px 16px; border-radius: 10px;
  background: #fff; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 10px; border-left: 4px solid var(--primary);
  animation: slideIn .2s ease;
}
.toast.ok { border-left-color: var(--success); }
.toast.err { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
.toast.out { opacity: 0; transform: translateX(20px); transition: all .25s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------------- 登录页 ---------------- */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 45%, #ecfeff 100%);
  padding: 20px;
}
.login-card {
  width: 380px; background: #fff; border-radius: 16px; padding: 36px 34px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .12); border: 1px solid var(--border-soft);
}
.login-card .logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.login-card .logo {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
  overflow: hidden; flex-shrink: 0;
}
.login-card h1 { font-size: 20px; font-weight: 700; }
.login-card .sub { color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.login-card .field { margin-bottom: 14px; }
.login-card .msg { min-height: 20px; font-size: 13px; margin-top: 4px; }
.login-card .msg.err { color: var(--danger); }
.login-card .msg.ok { color: var(--success); }

/* ---------------- 杂项 ---------------- */
.msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--success); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11px; background: var(--border-soft); color: var(--muted); margin-right: 4px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12px; }
.warn-box {
  background: var(--warn-light); border: 1px solid #fde68a; color: #92400e;
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 12px; margin: 10px 0;
}
pre.prompt-pre {
  white-space: pre-wrap; font-size: 12px; background: #f8fafc; padding: 10px 12px;
  border-radius: 8px; border: 1px solid var(--border-soft); max-height: 240px; overflow: auto;
}
.tpl-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); margin-bottom: 8px; }
.tpl-item .tpl-info { flex: 1; min-width: 0; }
.tpl-item .tpl-info b { font-size: 13px; display: block; }
.tpl-item .tpl-info span { font-size: 11px; color: var(--muted); }
.inst-pill { font-size: 11px; padding: 1px 8px; border-radius: 6px; background: var(--primary-light); color: var(--primary); }

/* ---------------- 导演台重构：高效率双栏故事板与监视器 ---------------- */
.dir-header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.dir-header-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dir-header-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dir-proj-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.dir-proj-name-wrap:hover {
  border-color: var(--border);
}
.dir-proj-name-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
  background: var(--card);
}
.dir-proj-name-icon {
  font-size: 12px;
  opacity: 0.7;
  user-select: none;
}
.dir-proj-name-input {
  border: none !important;
  background: transparent !important;
  padding: 1px 2px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  min-width: 140px;
  max-width: 260px;
  outline: none !important;
  box-shadow: none !important;
  height: auto !important;
}
.dir-proj-name-input::placeholder {
  color: var(--faint);
  font-weight: normal;
}
.dir-header-stats {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted);
  background: var(--bg); padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border-soft);
}
.dir-header-stats b { color: var(--text); }
.dir-header-actions { display: flex; align-items: center; gap: 8px; }

/* 导演工作台根布局：顶级左侧栏（项目清单） + 顶级右侧区（主工作空间） */
.tab#tab-workbench.active {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
}
@media (min-width: 1680px) {
  .tab#tab-workbench.active {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
  }
}
@media (max-width: 1080px) {
  .tab#tab-workbench.active {
    grid-template-columns: 1fr;
  }
}

/* 顶级右侧：当前选中的项目工作空间 */
.dir-main-workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

/* 项目内容双栏：分镜故事板大纲 + 监视器与精修区 */
.dir-project-content {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
}
@media (min-width: 1680px) {
  .dir-project-content {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 16px;
  }
}
@media (max-width: 1180px) {
  .dir-project-content {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .dir-project-content {
    grid-template-columns: 1fr;
  }
}

/* 顶级左侧第 1 栏：项目清单栏（直通页面顶部一级导航） */
.dir-projects-sidebar {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 96px);
  position: sticky;
  top: 16px;
  overflow: hidden;
}
@media (max-width: 1080px) {
  .dir-projects-sidebar {
    height: auto;
    max-height: 360px;
    position: static;
  }
}
.dir-projects-head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}
.dir-projects-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dir-projects-filter-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.dir-projects-filter-bar::-webkit-scrollbar { display: none; }
.dir-filter-pill {
  background: transparent;
  border: none;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  transition: all .12s;
}
.dir-filter-pill:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text);
}
.dir-filter-pill.active {
  background: #fff;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.dir-projects-list {
  padding: 6px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 180px;
}

/* 项目卡片 */
.dir-project-card {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  position: relative;
  user-select: none;
}
.dir-project-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37,99,235,0.06);
}
.dir-project-card.active {
  border-color: var(--primary);
  background: #f0f7ff;
  box-shadow: 0 0 0 1.5px var(--primary);
}

.dir-proj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
}
.dir-proj-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

/* 状态圆点：黄色未开始 / 蓝色进行中 / 绿色完成 */
.dir-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.dir-status-dot.yellow {
  background: #eab308;
  box-shadow: 0 0 0 2px #fef08a;
}
.dir-status-dot.blue {
  background: #2563eb;
  box-shadow: 0 0 0 2px #bfdbfe;
  animation: pulseDot 1.8s infinite;
}
.dir-status-dot.green {
  background: #10b981;
  box-shadow: 0 0 0 2px #a7f3d0;
}
.dir-status-dot.red {
  background: #ef4444;
  box-shadow: 0 0 0 2px #fecaca;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.dir-proj-time {
  color: var(--faint);
  font-size: 10px;
}
.dir-proj-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dir-proj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #f1f5f9;
}
.dir-proj-badge {
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--muted);
}
.dir-proj-del-btn,
.dir-proj-rename-btn {
  opacity: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 11px;
  transition: all .12s;
}
.dir-project-card:hover .dir-proj-del-btn,
.dir-project-card:hover .dir-proj-rename-btn {
  opacity: 0.85;
}
.dir-proj-rename-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  opacity: 1;
}
.dir-proj-del-btn:hover {
  background: #fee2e2;
  color: var(--danger);
  opacity: 1;
}

/* 左侧第 2 栏：故事板镜头大纲 */
.dir-storyboard {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 160px);
  position: sticky;
  top: 16px;
  overflow: hidden;
}
.dir-storyboard-head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}
.dir-storyboard-head h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dir-storyboard-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dir-storyboard-tools .btn {
  height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.dir-shot-list {
  padding: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 160px;
}

/* 单个故事板卡片 */
.story-item {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
  position: relative;
  user-select: none;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}
.story-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37,99,235,0.06);
}
.story-item.active {
  border-color: var(--primary);
  background: #f0f7ff;
  box-shadow: 0 0 0 1.5px var(--primary);
}
.story-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
  font-size: 11.5px;
  width: 100%;
}
.story-item-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.story-num {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10px;
  flex-shrink: 0;
}
.story-item.active .story-num {
  background: var(--primary);
  color: #fff;
}
.story-title {
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.story-dur-badge {
  background: #f1f5f9;
  color: var(--muted);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 10px;
  font-weight: 500;
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.story-item-ops {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
  opacity: .85;
}
.story-item:hover .story-item-ops,
.story-item.active .story-item-ops {
  opacity: 1;
}
.story-op-btn {
  background: transparent;
  border: none;
  width: 17px;
  height: 17px;
  padding: 0;
  border-radius: 3px;
  font-size: 10px;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
  flex-shrink: 0;
}
.story-op-btn:hover {
  background: #e2e8f0;
  color: var(--text);
}
.story-op-btn.dl {
  color: var(--primary);
  font-weight: 700;
}
.story-op-btn.dl:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.story-op-btn.del:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.story-item-prompt {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  min-height: 14px;
  word-break: break-all;
}
.story-item-prompt.empty {
  font-style: italic;
  color: var(--faint);
}

.story-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--faint);
  gap: 6px;
  width: 100%;
}
.story-footer-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.story-ref-count {
  font-size: 10px;
  color: var(--muted);
}
.story-status-wrap .badge {
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 10px;
  gap: 3px;
}
.story-status-wrap .badge::before {
  width: 4px;
  height: 4px;
}
.story-ref-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.story-ref-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
}
.story-ref-dot.has-ref {
  background: var(--primary);
}
.story-ref-dot.is-pub {
  background: #10b981;
}

/* 右侧：精修编辑与监视器 */
.dir-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* 监视器卡片 */
.dir-monitor {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dir-monitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
  min-height: 40px;
  gap: 8px;
  flex-wrap: wrap;
}
.dir-monitor-left {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.dir-monitor-left h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dir-monitor-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* 工具栏分组胶囊按钮 */
.dir-toolbar-group {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.dir-toolbar-group .btn {
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 4px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 500;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: none;
  white-space: nowrap;
  color: var(--text);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.dir-toolbar-group .btn:hover {
  background: #e2e8f0;
  color: var(--text);
}
.dir-toolbar-group .btn.primary {
  background: var(--primary);
  color: #fff;
}
.dir-toolbar-group .btn.primary:hover {
  background: #2563eb;
  color: #fff;
}
.dir-toolbar-group .btn.danger {
  color: var(--danger);
}
.dir-toolbar-group .btn.danger:hover {
  background: #fee2e2;
  color: var(--danger);
}

.dir-screen {
  background: #090d16;
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dir-screen video {
  width: 100%;
  max-height: 330px;
  display: block;
  object-fit: contain;
  background: #000;
}
@media (min-width: 1680px) {
  .dir-screen video {
    max-height: 380px;
  }
}
.dir-screen-empty {
  padding: 40px 20px;
  text-align: center;
  color: #94a3b8;
}
.dir-screen-empty .icon {
  font-size: 28px;
  margin-bottom: 4px;
  opacity: .8;
}

.dir-monitor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 11.5px;
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--border-soft);
}

/* 时间线胶片条 */
.dir-filmstrip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 10px;
  background: #f8fafc;
  border-top: 1px solid var(--border-soft);
  scrollbar-width: thin;
}
.film-clip {
  flex-shrink: 0;
  width: 80px;
  height: 48px;
  border-radius: 5px;
  overflow: hidden;
  background: #1e293b;
  border: 1.5px solid transparent;
  position: relative;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.film-clip:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.film-clip.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1.5px var(--primary);
}
.film-clip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-clip-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 10px;
  gap: 2px;
}
.film-clip-badge {
  position: absolute;
  top: 2px;
  left: 3px;
  background: rgba(15, 23, 42, .75);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 3px;
}
.film-clip-dur {
  position: absolute;
  bottom: 2px;
  right: 3px;
  background: rgba(0,0,0,0.7);
  color: #f8fafc;
  font-size: 8.5px;
  padding: 1px 3px;
  border-radius: 3px;
}

/* 镜头精修编辑卡片 */
.dir-editor-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.dir-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
  gap: 8px;
}
.dir-editor-nav .shot-active-tag {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 镜头参数栏 */
.dir-param-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
}
.dir-param-group {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  white-space: nowrap;
}
.dir-param-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.dur-pills {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 5px;
  padding: 2px;
  gap: 1px;
}
.dur-pill {
  padding: 1px 6px;
  border-radius: 3px;
  border: none;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
  transition: all .12s;
  color: var(--muted);
  height: 20px;
}
.dur-pill:hover {
  color: var(--text);
}
.dur-pill.active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.dir-seed-input-group {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  height: 26px;
}
.dir-seed-input-group input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 2px 5px !important;
  font-size: 11px !important;
  width: 90px !important;
  height: 100% !important;
}
.dir-seed-input-group button {
  border: none !important;
  background: transparent !important;
  padding: 0 5px !important;
  height: 100% !important;
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dir-seed-input-group button:hover {
  background: #f1f5f9 !important;
  color: var(--text);
}

/* 提示词标签快捷助手 */
.prompt-tag-bar {
  display: flex; align-items: center; gap: 5px; overflow-x: auto; padding: 2px 0 8px;
  scrollbar-width: none; flex-wrap: wrap;
}
.prompt-tag-group-lbl { font-size: 10.5px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.prompt-tag-btn {
  border: 1px solid var(--border-soft); background: #f1f5f9; color: #475569;
  border-radius: 5px; padding: 2px 7px; font-size: 10.5px; cursor: pointer; transition: all .12s;
}
.prompt-tag-btn:hover {
  background: var(--primary-light); border-color: var(--primary); color: var(--primary);
}

.dir-prompt-box {
  position: relative; margin-bottom: 12px;
}
.dir-prompt-textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
  font-size: 12.5px; line-height: 1.55; min-height: 85px; height: 95px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s; background: #fafcff;
}
.dir-prompt-textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px var(--primary-light);
}
.prompt-count {
  position: absolute; bottom: 6px; right: 10px; font-size: 10.5px; color: var(--faint);
  background: rgba(255,255,255,0.85); padding: 1px 5px; border-radius: 4px;
}

/* 参考图区域 */
.dir-refs-box {
  border-top: 1px solid var(--border-soft); padding-top: 10px;
}
.dir-refs-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.dir-refs-head h4 { font-size: 12.5px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 6px; }

/* 公共参数折叠面板 */
.dir-public-panel {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 10px 16px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.dir-public-panel.collapsed .dir-public-body { display: none; }
.dir-public-head {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none;
}
.dir-public-head h3 { font-size: 13.5px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.dir-public-body { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); }

/* 批量切分与导入弹窗 */
.split-modal-preview {
  max-height: 280px; overflow-y: auto; border: 1px solid var(--border-soft);
  border-radius: 8px; padding: 10px 14px; background: #f8fafc; margin: 12px 0;
}
.split-item-row {
  padding: 6px 0; border-bottom: 1px dashed var(--border-soft); font-size: 12px;
  display: flex; gap: 10px; align-items: flex-start;
}
.split-item-row:last-child { border-bottom: none; }
.split-idx { font-weight: 700; color: var(--primary); min-width: 48px; }
.split-txt { flex: 1; color: var(--text); }
.split-dur { color: var(--muted); min-width: 40px; text-align: right; }


/* ---------------- 提示词卡片 ---------------- */
.prompt-card {
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.prompt-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.prompt-card.off { opacity: .62; }
.prompt-card.off textarea { background: #f8fafc; }
.prompt-card-head {
  display: flex; align-items: center; gap: 12px; padding: 8px 14px;
  background: #f8fafc; border-bottom: 1px solid var(--border-soft);
}
.prompt-card-head .pc-check {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text);
  cursor: pointer; margin: 0;
}
.prompt-card-head .pc-check input { width: auto; margin: 0; }
.prompt-card-head .pc-title { font-size: 13px; font-weight: 600; }
.prompt-card-head .pc-stat { font-size: 11px; color: var(--faint); }
.prompt-card textarea {
  border: none; border-radius: 0; box-shadow: none !important;
  font-size: 13px; line-height: 1.65; padding: 12px 14px; min-height: 130px;
}
.prompt-card textarea:focus { outline: none; }

/* ---------------- 图片灯箱预览 ---------------- */
.img-lightbox-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .75); z-index: 999;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn .15s ease; backdrop-filter: blur(4px);
}
.img-lightbox-overlay.out { animation: fadeOut .16s ease forwards; }
.img-lightbox-box {
  background: #1e293b; border-radius: 12px; max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
  animation: popIn .18s ease;
}
.img-lightbox-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #0f172a; color: #f8fafc; font-size: 13px; font-weight: 600;
}
.img-lightbox-close {
  border: none; background: transparent; color: #94a3b8; font-size: 18px;
  cursor: pointer; padding: 2px 8px; border-radius: 6px; line-height: 1;
}
.img-lightbox-close:hover { background: #334155; color: #fff; }
.img-lightbox-body {
  padding: 16px; display: flex; align-items: center; justify-content: center;
  overflow: auto; max-height: calc(90vh - 60px); background: #0b0f19;
}
.img-lightbox-body img {
  max-width: 100%; max-height: calc(90vh - 80px); object-fit: contain;
  border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.ref-thumbs img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border-soft); cursor: zoom-in; transition: transform .15s, border-color .15s;
}
.ref-thumbs img:hover {
  transform: scale(1.05); border-color: var(--primary);
}

/* ---------------- CSV 导入区域 ---------------- */
.csv-dropzone {
  border: 2px dashed var(--border-soft); border-radius: 12px; padding: 24px 16px;
  text-align: center; background: #f8fafc; cursor: pointer; transition: all .15s ease;
  margin-bottom: 14px;
}
.csv-dropzone:hover, .csv-dropzone.dragover {
  border-color: var(--primary); background: #f0f7ff;
}
.csv-dropzone .dz-icon { font-size: 28px; margin-bottom: 6px; }
.csv-dropzone .dz-title { font-size: 14px; font-weight: 600; color: var(--text); }
.csv-dropzone .dz-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }

.csv-preview-table {
  width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 10px;
}
.csv-preview-table th, .csv-preview-table td {
  padding: 8px 10px; border: 1px solid var(--border-soft); text-align: left;
}
.csv-preview-table th { background: #f1f5f9; font-weight: 600; }


