:root {
  --bg: #f3f5f8;
  --surface: #fff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-soft: #f0f2f5;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-border: #bfdbfe;
  --ok: #15803d;
  --warn: #c2410c;
  --err: #b91c1c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --max: 1280px;

  /* Shoelace 主题色对齐品牌蓝 */
  --sl-color-primary-50: #eff6ff;
  --sl-color-primary-100: #dbeafe;
  --sl-color-primary-200: #bfdbfe;
  --sl-color-primary-300: #93c5fd;
  --sl-color-primary-400: #60a5fa;
  --sl-color-primary-500: #3b82f6;
  --sl-color-primary-600: #2563eb;
  --sl-color-primary-700: #1d4ed8;
  --sl-color-primary-800: #1e40af;
  --sl-color-primary-900: #1e3a8a;
  --sl-color-primary-950: #172554;
  --sl-border-radius-medium: 8px;
  --sl-border-radius-large: 12px;
  --sl-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app { min-height: 100vh; }

.topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar-actions { display: flex; gap: 0.4rem; }
.brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  flex: 1;
}
.nav-btn {
  border: none;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-btn:hover { background: #f1f5f9; color: #334155; }
.nav-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--accent-border);
}
.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.page-head { margin-bottom: 0.85rem; }
.page-head h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.page-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.page-head-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin-bottom: 0.28rem;
}
.page-head-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.head-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.head-flag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}
.page-lead {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.kpi-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.85rem;
  margin: 0 0 0.85rem;
  padding: 0.5rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #334155;
}
.kpi strong {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin-right: 0.2rem;
}
.kpi.is-err strong { color: var(--err); }
.kpi.is-busy strong { color: var(--warn); }
.kpi.is-ok strong { color: var(--ok); }
.kpi-grow { margin-left: auto; }
.kpi-meta { color: var(--muted); font-size: 0.78rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
}
.stats--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stats-group {
  margin: 0 0 0.7rem;
}
.stats-group-lbl {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: #64748b;
  letter-spacing: 0.04em;
}
.stats-group .stats {
  margin: 0;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.35rem 0.42rem;
  box-shadow: var(--shadow);
  min-width: 0;
  text-align: center;
}
.stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.stat-lbl {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat.is-ok .stat-val { color: var(--ok); }
.stat.is-err .stat-val { color: var(--err); }
.stat.is-busy .stat-val { color: var(--warn); }
.stat.is-zero .stat-val { color: #94a3b8; }
.stats-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.meta-line {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
.meta-line strong { color: var(--ink); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: visible;
}
.panel-body { padding: 1.25rem 1.35rem 1.35rem; }

.section-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.65rem;
}
.section-title:not(:first-child) { margin-top: 1.35rem; }
.section-sub {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 0.35rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.schedule-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  background: rgba(15, 23, 42, 0.35);
}
.schedule-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.schedule-card-body {
  font-size: 0.92rem;
  line-height: 1.45;
}
.schedule-hint { margin-top: 0.35rem; font-size: 0.82rem; }

/* Shoelace 表单组件间距 */
.ui-select,
.ui-input,
.ui-textarea {
  display: block;
  width: 100%;
  margin-bottom: 0.15rem;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.toolbar-actions { display: flex; gap: 0.4rem; }

.alert {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 0.85rem;
  border: 1px solid transparent;
}
.alert-info { background: #eff6ff; color: #1e40af; border-color: #dbeafe; }
.alert-warn { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.alert-err { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-ok { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover:not(:disabled) { background: #f8fafc; border-color: #cbd5e1; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}
.btn-secondary:hover:not(:disabled) { background: #dbeafe; }
.btn-danger {
  color: var(--err);
  border-color: #fecaca;
  background: #fef2f2;
}
.btn-danger:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #fca5a5;
}
.btn-sm {
  padding: 0.18rem 0.45rem;
  font-size: 0.75rem;
  line-height: 1.2;
}
.btn-link,
a.btn-link {
  border: none;
  background: transparent;
  color: var(--accent);
  padding: 0.2rem 0.35rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.btn-link:hover,
a.btn-link:hover { text-decoration: underline; }
.btn-link:disabled { opacity: 0.55; cursor: not-allowed; }

.form-footer {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: flex-end;
}
.form-footer .btn-primary { min-width: 140px; padding: 0.62rem 1.2rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  align-items: start;
}
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-span-2 { grid-column: span 2; }

/* Shoelace 表单组件 */
.ui-range,
.ui-checkbox {
  display: block;
  width: 100%;
}
.ui-select::part(combobox),
.ui-input::part(base),
.ui-textarea::part(base) {
  border-radius: var(--radius-sm);
}
.ui-details {
  margin-top: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #fafbfc;
}
.ui-details::part(base) {
  border: none;
  background: transparent;
}
.ui-details::part(header) {
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.ui-details::part(content) {
  padding: 0 0.85rem 0.85rem;
}
.ui-checkbox {
  padding-top: 1.75rem;
}
.flex-1 { flex: 1; min-width: 0; }
.voice-preview-row {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.file-drop {
  display: block;
  position: relative;
  width: 100%;
  margin-bottom: 0.5rem;
}
.file-drop-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.file-drop-inner {
  display: block;
  position: relative;
  width: 100%;
  min-height: 128px;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.file-drop-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 128px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.file-drop-inner:hover,
.file-drop.is-dragover .file-drop-inner {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.file-drop.is-dragover .file-drop-inner {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.file-drop-icon {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 1.25rem;
  color: var(--accent);
  box-shadow: var(--shadow);
}
.file-drop-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}
.file-drop-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}
.file-drop-inner:hover .file-drop-pick,
.file-drop.is-dragover .file-drop-pick {
  background: var(--accent-hover);
}
.file-drop-name {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-drop-status {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.file-drop.upload-busy .file-drop-status { color: #1d4ed8; }
.file-drop.upload-ready .file-drop-status { color: var(--ok); font-weight: 500; }
.file-drop.upload-ready .file-drop-inner {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.file-drop.upload-error .file-drop-status { color: var(--err); }
.file-drop.has-file .file-drop-inner {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  border-style: solid;
}
.file-drop.has-file .file-drop-name {
  color: var(--accent);
  font-weight: 500;
}
.file-drop-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  width: min(100%, 520px);
  max-height: 160px;
  overflow: auto;
  text-align: left;
}
.file-drop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
  font-size: 0.8rem;
}
.file-drop-item + .file-drop-item { margin-top: 0.35rem; }
.file-drop-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #334155;
}
.file-drop-item-status {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
}
.file-drop-item.item-uploading .file-drop-item-status { color: #1d4ed8; }
.file-drop-item.item-ready .file-drop-item-status { color: var(--ok); font-weight: 500; }
.file-drop-item.item-error .file-drop-item-status { color: var(--err); }

.disk-panel { margin-bottom: 1rem; }
.disk-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.65rem;
}
.disk-free { font-size: 1.05rem; color: #0f172a; }
.disk-free strong { font-size: 1.35rem; color: var(--accent); }
.disk-meta { font-size: 0.84rem; color: var(--muted); }
.disk-bar {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.disk-bar-used {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.25s ease;
}
.disk-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.files-panel-body { padding-top: 0.75rem; }
.disk-bar-used.is-warn {
  background: linear-gradient(90deg, #f97316, #ea580c);
}
.disk-bar-used.is-err {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
}
.files-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.manual-form { display: grid; gap: 0.85rem; }
.manual-field { display: grid; gap: 0.35rem; }
.manual-field > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.manual-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.manual-textarea {
  width: 100%;
  min-height: 12rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #d4d4d8);
  border-radius: 8px;
  background: var(--card, #fff);
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
  font-family: inherit;
}
.manual-actions { display: flex; gap: 0.5rem; }
.manual-table th:first-child,
.manual-table td:first-child { width: 4rem; }
.manual-table th:nth-child(3),
.manual-table td:nth-child(3) { width: 5.5rem; }
.manual-table th:nth-child(5),
.manual-table td:nth-child(5) { width: 8.5rem; }
.manual-table th:last-child,
.manual-table td:last-child { width: 4.5rem; }
.plan-topic { font-weight: 550; color: var(--ink); }
.plan-copy {
  font-size: 0.82rem;
  margin-top: 0.35rem;
  line-height: 1.55;
  color: #374151;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.plan-copy .copy-label { color: var(--muted); font-weight: 500; }
.plan-note { font-size: 0.78rem; margin-top: 0.2rem; line-height: 1.4; }
.ks-plan-table th:first-child,
.ks-plan-table td:first-child { width: 4.6rem; }
.ks-plan-table th:nth-child(3),
.ks-plan-table td:nth-child(3) { width: 5.2rem; }
.ks-plan-table th:last-child,
.ks-plan-table td:last-child { width: 4.5rem; }
.ks-plan-row.is-today td { background: var(--accent-soft); }
.ks-plan-row.is-selected td { background: #f0fdf4; }
.manual-panel summary {
  cursor: pointer;
  font-weight: 550;
  color: var(--text);
}
.dy-form { display: grid; gap: 0.85rem; }
.dy-field { display: grid; gap: 0.35rem; }
.dy-field > span {
  font-size: 0.82rem;
  color: var(--muted);
}
.dy-topic-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}
.dy-textarea {
  width: 100%;
  min-height: 8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  background: #fff;
}
.dy-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* 解说 / 快手：待发布六列，已发布五列（百分比列宽，避免 rem 总和撑出横向滚动条） */
.table-wrap--plan {
  overflow-x: hidden;
}
.dy-plan-table,
.dy-published-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
.dy-plan-table th,
.dy-plan-table td,
.dy-published-table th,
.dy-published-table td {
  min-width: 0;
}
.dy-plan-table th:nth-child(1),
.dy-plan-table td:nth-child(1),
.dy-published-table th:nth-child(1),
.dy-published-table td:nth-child(1) {
  width: 10%;
  white-space: nowrap;
}
.dy-plan-table th:nth-child(2),
.dy-plan-table td:nth-child(2),
.dy-published-table th:nth-child(2),
.dy-published-table td:nth-child(2) {
  width: 8%;
  white-space: nowrap;
}
.dy-plan-table th:nth-child(4),
.dy-plan-table td:nth-child(4),
.dy-published-table th:nth-child(4),
.dy-published-table td:nth-child(4) {
  width: 14%;
  white-space: nowrap;
}
.dy-plan-table th:nth-child(5),
.dy-plan-table td:nth-child(5) {
  width: 10%;
  white-space: nowrap;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.dy-published-table th:nth-child(5),
.dy-published-table td:nth-child(5) {
  width: 18%;
  white-space: nowrap;
  font-size: 0.78rem;
}
.dy-plan-table th:nth-child(6),
.dy-plan-table td:nth-child(6) {
  width: 14%;
  white-space: normal;
  line-height: 1.35;
}
.dy-plan-table th:nth-child(3),
.dy-plan-table td:nth-child(3),
.dy-published-table th:nth-child(3),
.dy-published-table td:nth-child(3) {
  width: auto;
  min-width: 0;
}
.dy-plan-table td:last-child .btn-sm {
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  margin: 0 0.15rem 0.15rem 0;
}
.dy-plan-topic {
  font-weight: 550;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.dy-plan-topic a { color: inherit; text-decoration: none; }
.dy-plan-topic a:hover { color: var(--accent); text-decoration: underline; }
.dy-plan-note { font-size: 0.78rem; margin-top: 0.2rem; line-height: 1.4; }
.dy-plan-fail {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #b91c1c;
}
.dy-plan-row.is-today td { background: var(--accent-soft); }
.dy-plan-row.is-selected td { background: #f0fdf4; }
.yt-list-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
.yt-list-table th,
.yt-list-table td {
  min-width: 0;
  vertical-align: top;
}
.yt-list-table th:nth-child(1),
.yt-list-table td:nth-child(1) {
  width: 10%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #64748b;
}
.yt-list-table th:nth-child(3),
.yt-list-table td:nth-child(3),
.yt-list-table th:nth-child(4),
.yt-list-table td:nth-child(4) {
  width: 16%;
  white-space: nowrap;
}
.yt-list-table th:nth-child(2),
.yt-list-table td:nth-child(2) {
  width: auto;
  min-width: 0;
}
.yt-list-table tbody tr.row-link {
  cursor: pointer;
}
.yt-list-table tbody tr.row-link:hover td {
  background: #fafbfc;
}
.dy-meta { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.transfer-table col.c-path { width: 30%; }
.transfer-table .col-path {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}
.transfer-ep-grid.ep-grid .ep-row,
.transfer-ep-grid.ep-grid .ep-grid-head {
  grid-template-columns:
    5.6rem
    5.4rem
    3.4rem
    minmax(16rem, 1.6fr)
    minmax(7rem, 0.7fr)
    7.2rem
    4.2rem;
  min-width: 0;
}
.transfer-ep-grid .ep-idx {
  overflow: visible;
  text-overflow: unset;
}
.transfer-ep-grid .ep-views {
  text-align: left;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  line-height: 1.35;
  word-break: break-all;
}
.transfer-ep-grid .ep-local {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-lead a {
  color: var(--accent);
  text-decoration: none;
}
.page-lead a:hover { text-decoration: underline; }
.files-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.files-ops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.files-check-all-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-right: 0.15rem;
}
.files-grid {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-width: 0;
  padding: 0.42rem 0.65rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.82rem;
}
.file-check-wrap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.file-kind {
  flex: 0 0 auto;
}
.file-kind .pill {
  font-size: 0.68rem;
}
.file-name {
  flex: 0 1 16rem;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-task {
  flex: 1 1 8rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}
.file-size,
.file-time {
  flex: 0 0 auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #64748b;
  font-size: 0.75rem;
}
.file-ops {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}
.file-ops .btn-sm {
  padding: 0.16rem 0.4rem;
  font-size: 0.72rem;
  line-height: 1.2;
}
.muted { color: var(--muted); }

.hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.45;
}

.form-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-end;
}
.form-row sl-button { flex: 0 0 auto; margin-bottom: 0.08rem; }

.audio-preview {
  margin-top: 0.65rem;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-sm);
}

/* 队列表格 */
.queue-panel { padding: 0; }
.table-wrap { overflow-x: auto; }
.task-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  table-layout: fixed;
}
.task-table th {
  text-align: left;
  color: #64748b;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.task-table th.col-task { width: 24%; }
.task-table th.col-progress { width: auto; }
.task-table th.col-phase { width: 96px; }
.task-table th.col-ops { width: 220px; }
.task-table th.col-done-at { width: 148px; }
.task-table th.col-pills { width: 220px; }
.task-table th.col-size { width: 88px; }
.task-table td {
  padding: 0.62rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.task-table td.ops {
  width: 220px;
  min-width: 220px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}
.task-table tbody tr:hover { background: #fafbfc; }
.task-title { font-weight: 600; color: #1e293b; }
.task-tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  margin-left: 0.25rem;
  font-weight: 600;
}
.task-tag.music { background: #dcfce7; color: #166534; }
.task-tag.ai { background: #dbeafe; color: #1d4ed8; }
.task-meta { font-size: 0.72rem; color: #94a3b8; margin-top: 0.18rem; }
.task-sub { font-size: 0.72rem; color: #94a3b8; margin-top: 0.15rem; }

.pills { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.pill.duration { color: #475569; border-color: #e2e8f0; background: #f8fafc; }
.pill.ready { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.pill.yt-done { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }
.pill.yt-pending { color: #78716c; border-color: #e7e5e4; background: #fafaf9; }
.pill.yt-ready { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.pill.yt-busy { color: #c2410c; border-color: #fed7aa; background: #fff7ed; }
.pill.yt-failed { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.pill.dy-done { color: #0f766e; border-color: #99f6e4; background: #f0fdfa; }
.pill.dy-pending { color: #78716c; border-color: #e7e5e4; background: #fafaf9; }
.pill.dy-busy { color: #c2410c; border-color: #fed7aa; background: #fff7ed; }
.pill.dy-failed { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.pill.dy-none { color: #94a3b8; border-color: #e2e8f0; background: #f8fafc; }
.tgyt-bar {
  margin-top: 0.25rem;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  width: 100%;
  max-width: 88px;
}
.tgyt-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: inherit;
}

.tgyt-table {
  table-layout: fixed;
  width: 100%;
}
/* 固定窄列；标题列不设宽，吃掉剩余空间 */
.tgyt-table col.c-id { width: 52px; }
.tgyt-table col.c-kind { width: 64px; }
.tgyt-table col.c-start { width: 56px; }
.tgyt-table col.c-status { width: 72px; }
.tgyt-table col.c-progress { width: 96px; }
.tgyt-table col.c-title { width: auto; }
.tgyt-table col.c-dl { width: 108px; }
.tgyt-table col.c-eps { width: 128px; }
.tgyt-table col.c-clips { width: 148px; }
.tgyt-table col.c-note { width: 80px; }
.tgyt-table col.c-time { width: 92px; }

.tgyt-table .list-stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}
.tgyt-table .list-size {
  font-size: 0.76rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tgyt-table .col-dl,
.tgyt-table .col-eps {
  vertical-align: middle;
}

.tgyt-table th,
.tgyt-table td {
  vertical-align: middle;
}
.tgyt-table .col-id {
  text-align: center;
  color: #64748b;
  white-space: nowrap;
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
}
.tgyt-table .col-kind {
  white-space: nowrap;
  padding-right: 0.25rem;
}
.tgyt-table .col-kind .pill {
  display: inline-block;
  font-size: 0.72rem;
}
.tgyt-table .col-status {
  white-space: nowrap;
  padding-right: 0.35rem;
}
.tgyt-table .col-status .pill {
  display: inline-block;
}
.tgyt-table .cell-progress {
  min-width: 0;
}
.tgyt-table .cell-progress .progress-main {
  font-weight: 600;
  font-size: 0.92rem;
}
.tgyt-table .cell-progress .progress-tail {
  color: #64748b;
  font-size: 0.75rem;
  margin-top: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tgyt-table .cell-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.tgyt-table .col-yt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
}
.tgyt-table .cell-title .task-title {
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tgyt-table .col-dl {
  white-space: nowrap;
  font-size: 0.82rem;
}
.tgyt-table .col-long,
.tgyt-table .col-local {
  white-space: nowrap;
  font-size: 0.82rem;
}
.detail-clip-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.86rem;
}
.detail-clip-sum .muted {
  margin-right: 0.4rem;
}
.tgyt-table .col-yt a:hover {
  text-decoration: underline;
}
.tgyt-table .col-dy {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
}
.tgyt-table .col-dy .pill {
  display: inline-block;
  font-size: 0.72rem;
}
.tgyt-table .cell-note,
.cell-clip {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.78rem;
  color: #64748b;
  max-width: 22rem;
}
.tgyt-table .col-time {
  white-space: nowrap;
  font-size: 0.78rem;
  color: #64748b;
}
.tgyt-table .col-ops {
  white-space: nowrap;
  text-align: center;
}
.tgyt-table tbody tr.row-link {
  cursor: pointer;
}
.tgyt-table tbody tr.row-link:hover {
  background: #eff6ff;
}
.tgyt-table .col-clips {
  white-space: nowrap;
  font-size: 0.78rem;
  color: #475569;
}
.tgyt-table .col-clips .pill {
  margin-right: 0.25rem;
}
.tgyt-table .clip-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #334155;
}
.tgyt-table .clip-dy {
  margin-left: 0.35rem;
  color: #94a3b8;
}
.tgyt-table .col-start {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #64748b;
  font-size: 0.82rem;
}
.btn-back {
  margin-bottom: 0;
}
.detail-page {
  max-width: none;
}
.detail-head {
  display: flex;
  align-items: center;
  margin-bottom: 0.9rem;
}
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.9fr);
  gap: 1.15rem 1.35rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.detail-hero.is-done {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.5fr);
}
.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  margin-bottom: 0.15rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.detail-meta-line a { color: var(--accent); text-decoration: none; }
.detail-meta-line a:hover { text-decoration: underline; }
.detail-aside.is-compact .detail-pct { font-size: 1.2rem; }
.detail-aside.is-compact .detail-bar { height: 6px; margin-top: 0.4rem; }
.detail-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.detail-hero h1 {
  margin: 0 0 0.7rem;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
}
.detail-flags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.detail-meta-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.detail-meta-panel {
  padding: 0.85rem 0.95rem;
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.detail-meta-title {
  margin-bottom: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
}
.detail-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin: 0;
}
.detail-meta > div {
  min-width: 0;
}
.detail-meta dt {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.detail-meta dd {
  margin: 0.16rem 0 0;
  font-size: 0.86rem;
  color: #334155;
  overflow-wrap: anywhere;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
}
.detail-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.1rem 1.05rem;
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.detail-aside-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.detail-pct {
  margin-top: 0.2rem;
  font-size: 2.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--ink);
}
.detail-bar {
  margin-top: 0.7rem;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  width: 100%;
}
.detail-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: inherit;
}
.detail-pct-tail {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}
.detail-aside-cta {
  margin-top: 0.85rem;
  width: 100%;
}
.detail-aside-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
}
.ep-section h2 {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: #334155;
}
.ep-section h2 span {
  margin-left: 0.3rem;
  color: var(--muted);
  font-weight: 500;
}
.ep-list {
  margin-top: 0;
}
.ep-grid {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}
.ep-row,
.ep-grid-head {
  display: grid;
  grid-template-columns:
    3.2rem
    minmax(4.5rem, auto)
    3.2rem
    4rem
    7.5rem
    minmax(12rem, 1fr);
  gap: 0.35rem 0.65rem;
  align-items: center;
  min-width: 42rem;
  width: 100%;
  padding: 0.42rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.82rem;
}
.ep-grid-head {
  padding: 0.34rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}
.ep-grid-head .ep-views,
.ep-grid-head .ep-ops {
  text-transform: none;
}
.ep-grid-head .ep-ops {
  justify-self: end;
}
.ep-idx {
  font-size: 0.82rem;
  font-weight: 650;
  color: #334155;
  white-space: nowrap;
}
.ep-views {
  text-align: right;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: #475569;
}
.ep-views-val {
  font-weight: 600;
  color: #0f766e;
  white-space: nowrap;
}
.probe-views,
.clip-views {
  font-size: 0.78rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.detail-meta .probe-views {
  display: inline-block;
  margin-left: 0.35rem;
}
.ep-yt,
.ep-dy {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-yt .task-meta {
  display: inline;
  margin-left: 0.2rem;
}
.ep-local,
.ep-time {
  white-space: nowrap;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-ops {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
  gap: 0.2rem;
  min-width: 0;
}
.ep-ops .btn-sm {
  padding: 0.16rem 0.4rem;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
}
.ep-empty {
  padding: 2.2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 0.88rem;
}
@media (max-width: 880px) {
  .detail-hero,
  .detail-hero.is-done {
    grid-template-columns: 1fr;
  }
  .detail-meta-panels {
    grid-template-columns: 1fr;
  }
  .files-grid .file-row:nth-child(odd) {
    border-right: none;
  }
  .kpi-grow { margin-left: 0; }
}
@media (max-width: 1100px) {
  .file-time { display: none; }
}
.tgyt-table .btn-sm {
  padding: 0.18rem 0.45rem;
  font-size: 0.75rem;
  line-height: 1.2;
}
.tgyt-table .muted {
  color: #a8a29e;
  font-size: 0.78rem;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.badge.running { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.badge.prep { color: #7e22ce; border-color: #e9d5ff; background: #faf5ff; }
.badge.queued { color: #c2410c; border-color: #fed7aa; background: #fff7ed; }
.badge.failed { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.badge.cancelled { color: #78716c; border-color: #e7e5e4; background: #fafaf9; }
.badge.done { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }
.badge.paused { color: #78716c; border-color: #e7e5e4; background: #fafaf9; }

.ops {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}
.progress-main { color: #334155; line-height: 1.45; }
.progress-tail { font-size: 0.76rem; color: #94a3b8; margin-top: 0.22rem; }
.progress-time { font-size: 0.72rem; color: #94a3b8; margin-top: 0.15rem; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
  border-top: 1px solid var(--line-soft);
  font-size: 0.92rem;
}

.modal {
  border: none;
  border-radius: 14px;
  padding: 0;
  width: min(92vw, 720px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}
.video-dialog {
  --width: min(92vw, 720px);
}
.video-dialog::part(body) {
  padding: 0;
  background: #000;
}
.video-dialog::part(panel) {
  border-radius: 14px;
  overflow: hidden;
}
#video-modal-player {
  width: 100%;
  max-height: 70vh;
  display: block;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

@media (max-width: 720px) {
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: span 1; }
  .ui-checkbox { padding-top: 0; }
  .task-table { font-size: 0.8rem; }
  .hide-sm { display: none; }
  .form-footer sl-button { width: 100%; }
  .stats {
    grid-template-columns: repeat(6, minmax(4.6rem, 1fr));
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }
}

/* ── 日志视图 ───────────────────────────────────────────── */
.log-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}
.log-tabs .log-unit { font-size: 0.82rem; }
.log-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.log-grep {
  flex: 1 1 220px;
  min-width: 160px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  font-size: 0.9rem;
}
.log-grep:focus {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.log-lines {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  font-size: 0.85rem;
}
.log-auto {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}
.log-count { margin-left: auto; font-size: 0.8rem; }
.log-panel-body { padding: 0; }
.log-pre {
  margin: 0;
  padding: 0.85rem 1rem;
  max-height: 68vh;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.log-pre .log-line { display: block; }
.log-pre .log-err { color: #fca5a5; }
.log-pre .log-warn { color: #fcd34d; }
.log-pre .log-ok { color: #86efac; }

/* 日志：模式切换 + 任务事件表 */
.log-modes {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.log-modes .log-mode { font-size: 0.85rem; font-weight: 600; }
.log-ev-table { width: 100%; }
.log-ev-table th, .log-ev-table td { vertical-align: top; }
.log-ev-ts {
  white-space: nowrap;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.log-ev-text {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  word-break: break-word;
  color: #334155;
}
.log-ev {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  background: #eef2ff;
  color: #3730a3;
}
.log-ev-ok { background: #dcfce7; color: #166534; }
.log-ev-warn { background: #fef3c7; color: #92400e; }
.log-ev-err { background: #fee2e2; color: #991b1b; }
