:root {
  --primary: #0864f9;
  --primary-hover: #0755d6;
  --primary-soft: #edf4ff;
  --sidebar: #061f36;
  --sidebar-deep: #03182b;
  --sidebar-active: #244765;
  --ink: #111827;
  --text: #334155;
  --muted: #5f6b7d;
  --line: #dce4ee;
  --line-soft: #e9eef4;
  --surface: #ffffff;
  --background: #f7f9fc;
  --success: #0aa650;
  --success-soft: #ecf9f1;
  --warning: #ef7d00;
  --warning-soft: #fff5e9;
  --danger: #c92f2f;
  --danger-soft: #fff0f0;
  --purple: #7047eb;
  --purple-soft: #f3efff;
  --cyan: #1faac8;
  --sidebar-width: 188px;
  --header-height: 58px;
  --radius: 7px;
  --shadow: 0 1px 3px rgba(15, 35, 60, 0.04);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--background); }
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea { font-family: inherit; }
button, input, select, textarea { font-size: 14px; }
button, a { cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 28px; font-weight: 700; line-height: 1.25; letter-spacing: -0.035em; }
h2 { margin-bottom: 0; font-size: 17px; font-weight: 600; }
h3 { margin-bottom: 0; font-size: 14px; font-weight: 600; }
p { color: var(--muted); line-height: 1.65; }
code { color: #4b5563; font-family: "Roboto Mono", monospace; font-size: 11px; }
:focus-visible { outline: 3px solid rgba(8, 100, 249, 0.25); outline-offset: 2px; }
::selection { color: #fff; background: var(--primary); }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  color: #fff;
  background: var(--primary);
  border-radius: 5px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Reference-accurate application frame */
.app-shell { min-height: 100vh; min-height: 100dvh; }
.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 0 9px 10px;
  color: #dce8f3;
  background:
    radial-gradient(circle at 50% 100%, rgba(12, 95, 151, 0.17), transparent 25rem),
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-deep) 100%);
  border-right: 1px solid #15344e;
  transition: width 200ms ease, transform 200ms ease;
}
.brand {
  height: 89px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin: 0 4px 7px;
  padding: 0 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.brand strong { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.04em; }
.brand span { display: flex; align-items: center; gap: 3px; color: #d4dfeb; font-size: 12px; }
.brand svg { width: 12px; height: 12px; }
.side-nav { min-height: 0; display: flex; flex: 1; flex-direction: column; overflow-y: auto; scrollbar-width: none; }
.side-nav::-webkit-scrollbar { display: none; }
.side-nav a {
  position: relative;
  min-height: 41px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  color: #e2ebf4;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms ease, background-color 160ms ease;
}
.side-nav a svg { flex: 0 0 auto; width: 19px; height: 19px; }
.side-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.side-nav a.active { color: #fff; background: var(--sidebar-active); box-shadow: inset 2px 0 #5ca7ef; }
.nav-label {
  display: block;
  padding: 13px 10px 5px;
  color: #9db0c2;
  font-size: 11px;
  font-weight: 400;
}
.collapse-button {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  color: #f2f7fb;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  transition: background-color 160ms ease;
}
.collapse-button:hover { background: rgba(255, 255, 255, 0.06); }
/* 与「收起」同款，保持抽屉底部两个操作视觉一致 */
.sidebar-logout { margin-bottom: 8px; }
.sidebar-logout button {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  color: #f2f7fb;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  transition: background-color 160ms ease;
}
.sidebar-logout button:hover { background: rgba(255, 255, 255, 0.06); }
.sidebar-logout span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace { min-height: 100vh; min-height: 100dvh; margin-left: var(--sidebar-width); transition: margin-left 200ms ease; }
.top-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #111827; font-size: 13px; }
.breadcrumb a { color: #5e6b7d; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-back { width: 32px; height: 32px; display: grid; place-items: center; margin-left: -8px; border-radius: 5px; }
.breadcrumb-back:hover { background: var(--primary-soft); }
.breadcrumb svg { width: 17px; height: 17px; }
.breadcrumb b { color: #8a96a8; font-weight: 400; }
.breadcrumb strong { font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 19px; }
.wechat-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  color: #527066;
  background: #f1f6f4;
  border: 1px solid #d8e6df;
  border-radius: 5px;
  font-size: 12px;
}
.wechat-badge span { width: 8px; height: 8px; background: #84958e; border-radius: 50%; }
.wechat-badge.ready { color: #06713a; background: #edf9f2; border-color: #ccebd8; }
.wechat-badge.ready span { background: var(--success); }
.wechat-badge.waiting { color: #995000; background: #fff5e9; border-color: #f3d1a6; }
.wechat-badge.waiting span { background: var(--warning); }
.header-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.header-icon:hover { background: #f3f6f9; }
.user-menu { position: relative; }
.user-menu summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #536879, #213447);
  border: 2px solid #e7edf3;
  border-radius: 50%;
  font-weight: 600;
}
.user-menu summary svg { width: 14px; height: 14px; }
.user-popover {
  position: absolute;
  top: 47px;
  right: 0;
  width: 190px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 12px 32px rgba(15, 35, 60, 0.14);
}
.user-popover strong, .user-popover small { display: block; }
.user-popover small { margin-top: 2px; color: var(--muted); }
.user-popover form { margin: 12px -5px -5px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.user-popover button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 4px;
}
.user-popover button:hover { background: #f5f7fa; }
.mobile-brand, .nav-toggle, .sidebar-scrim { display: none; }
.content { width: 100%; padding: 20px 24px 32px; }

/* 折叠态只在宽屏有意义。窄屏的侧栏是全宽抽屉，一旦套上这些规则，抽屉展开后
   就只剩一列图标。整体限定在宽屏，窄屏无需逐条撤销——那样必须复述每个属性的
   原值，极易抄错。 */
@media (min-width: 901px) {
  body.nav-collapsed { --sidebar-width: 64px; }
  body.nav-collapsed .brand strong { font-size: 0; }
  body.nav-collapsed .brand strong::after { content: "视数"; font-size: 15px; }
  body.nav-collapsed .brand span, body.nav-collapsed .nav-label, body.nav-collapsed .side-nav a span, body.nav-collapsed .collapse-button span, body.nav-collapsed .sidebar-logout span { display: none; }
  body.nav-collapsed .side-nav a, body.nav-collapsed .collapse-button, body.nav-collapsed .sidebar-logout button { justify-content: center; padding-inline: 0; }
  body.nav-collapsed .brand { align-items: center; padding: 0; }
  body.nav-collapsed .collapse-button svg { transform: rotate(180deg); }
}

/* Page title, cards and controls */
.page-head {
  min-height: 62px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}
.page-head h1 { margin-bottom: 5px; }
.page-head p { margin: 0; font-size: 13px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.panel, .stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { margin-bottom: 14px; padding: 16px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel-title {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; }
.section-head > small { color: var(--muted); }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.layout-main-side { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.85fr); gap: 14px; align-items: start; }
.layout-side-main { display: grid; grid-template-columns: 205px minmax(0, 1fr) 310px; gap: 14px; align-items: start; }
.sticky { position: sticky; top: calc(var(--header-height) + 14px); }
.divider, hr { margin: 18px 0; border: 0; border-top: 1px solid var(--line-soft); opacity: 1; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.stat-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-card {
  min-height: 93px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 17px;
}
.stat-card-link {
  position: relative;
  justify-content: space-between;
  color: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.stat-card-link > svg { flex: 0 0 auto; width: 18px; height: 18px; color: #8ba0b8; }
.stat-card-link:hover {
  color: inherit;
  border-color: #9fc0ea;
  box-shadow: 0 7px 18px rgba(27, 72, 119, 0.10);
  transform: translateY(-1px);
}
.stat-card-link:focus-visible {
  outline: 3px solid rgba(8, 100, 249, 0.18);
  outline-offset: 2px;
}
.stat-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
}
.stat-icon svg { width: 23px; height: 23px; stroke-width: 2; }
.stat-icon.green { color: var(--success); background: var(--success-soft); }
.stat-icon.purple { color: var(--purple); background: var(--purple-soft); }
.stat-icon.orange { color: var(--warning); background: var(--warning-soft); }
.stat-icon.red { color: var(--danger); background: var(--danger-soft); }
.initialization-lock {
  min-height: 132px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #fffaf0, #fff);
  border-color: #f0d59f;
}
.initialization-lock h2 { margin: 4px 0 0; font-size: 18px; }
.initialization-lock p { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.initialization-lock small { display: block; margin-top: 7px; color: #8b5a13; font-size: 10px; }
.initialization-lock form { justify-self: end; }
.partial-data-banner { background: linear-gradient(135deg, #fffaf0, #f8fbff); }
.partial-data-actions { display: flex; justify-self: end; gap: 8px; flex-wrap: wrap; }
.partial-data-actions form { justify-self: auto; }
.partial-definition { margin-bottom: 14px; }
.history-account-ranking { align-self: start; }
.stat-copy { min-width: 0; }
.stat-copy span { display: block; color: #556174; font-size: 12px; }
.stat-copy > small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.stat-value { display: flex; align-items: baseline; gap: 7px; margin-top: 3px; }
.stat-value strong { font-family: "Roboto Mono", "Noto Sans SC", monospace; font-size: 27px; font-weight: 600; letter-spacing: -0.05em; }
.stat-value small { color: var(--success); font-size: 10px; white-space: nowrap; }
.stat-value small.down { color: var(--danger); }
.job-file-summary {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(480px, 1.8fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  padding: 12px 16px;
}
.job-file-summary-title { min-width: 0; display: flex; align-items: center; gap: 12px; }
.job-file-summary-title .stat-icon { width: 40px; height: 40px; }
.job-file-summary-title .stat-icon svg { width: 20px; height: 20px; }
.job-file-summary-title strong, .job-file-summary-title span { display: block; }
.job-file-summary-title strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.job-file-summary-title span { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.job-file-summary dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.job-file-summary dl > div { min-width: 0; padding: 2px 16px; border-left: 1px solid var(--line-soft); }
.job-file-summary dt { color: var(--muted); font-size: 9px; font-weight: 400; }
.job-file-summary dd { margin: 4px 0 0; color: #26384d; font-family: "Roboto Mono", "Noto Sans SC", monospace; font-size: 15px; font-weight: 600; white-space: nowrap; }

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 500;
  line-height: 1.2;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.button svg { width: 17px; height: 17px; }
.button.primary { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 4px 10px rgba(8, 100, 249, 0.13); }
.button.primary:hover { color: #fff; background: var(--primary-hover); border-color: var(--primary-hover); }
.button.secondary { color: var(--primary); background: #fff; border-color: #8fb8fb; }
.button.secondary:hover { color: var(--primary-hover); background: #f5f9ff; }
.button.ghost { color: var(--text); background: #fff; border-color: var(--line); }
.button.ghost:hover { background: #f6f8fb; border-color: #bcc8d7; }
.button.danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.button.danger:hover { color: #fff; background: #a92323; border-color: #a92323; }
.button.danger-outline { color: var(--danger); background: #fff; border-color: #f5b8b8; }
.button.danger-outline:hover { color: #a92323; background: var(--danger-soft); border-color: #e79898; }
.button.small { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.button.full { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: 0.48; }
.button-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: 12px; font-weight: 500; }
.text-link:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 2px; }
.text-link.danger-link { color: var(--danger); background: transparent; border: 0; }
.text-link.danger-link:hover { color: #a92323; }

/* Request-scoped, WeChat-style threaded comments */
.live-comments-panel {
  padding: 0;
  overflow: hidden;
}
.live-comments-head {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.live-comments-head h2 { margin: 0; font-size: 18px; }
.live-comments-head p { max-width: 68ch; margin: 5px 0 0; font-size: 12px; }
.live-comments-head .button { flex: 0 0 auto; min-height: 44px; }
.live-comments-privacy {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 20px;
  color: #416177;
  background: #f4f9f7;
  border-bottom: 1px solid #dcebe5;
  font-size: 11px;
  line-height: 1.55;
}
.live-comments-privacy svg { flex: 0 0 auto; width: 16px; height: 16px; color: #168052; }
.live-comments-status {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 24px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}
.live-comments-status.is-loading::before {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 2px solid #c9dcf7;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: comment-spinner 700ms linear infinite;
}
.live-comments-status.is-error { color: var(--danger); background: var(--danger-soft); }
@keyframes comment-spinner { to { transform: rotate(360deg); } }
.live-comments-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.live-comment {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.live-comment:last-child { border-bottom: 0; }
.comment-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #91a7b9;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
}
.comment-avatar.small { width: 32px; height: 32px; font-size: 12px; }
.comment-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comment-avatar-fallback { line-height: 1; }
.comment-body { min-width: 0; }
.comment-nickname { display: block; margin: 1px 0 6px; color: #576b95; font-size: 13px; font-weight: 500; }
.comment-content {
  max-width: 75ch;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.comment-reply-target { color: #576b95; }
.comment-meta {
  min-height: 25px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  color: #8a96a8;
  font-size: 11px;
}
.comment-like-count { color: #6c7889; }
.comment-replies {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  background: #f5f7f9;
  border-radius: 5px;
}
.live-reply {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
}
.live-reply + .live-reply { padding-top: 12px; border-top: 1px solid #e7ebf0; }
.live-reply .comment-nickname { margin-top: 0; font-size: 12px; }
.live-reply .comment-content { font-size: 13px; }
.comment-replies-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  padding: 8px 10px;
  color: #576b95;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  transition: color 160ms ease, background-color 160ms ease;
}
.comment-replies-button:hover { color: var(--primary); background: #eaf1fa; }
.comment-replies-button.is-error { color: var(--danger); background: var(--danger-soft); }
.comment-replies-button:disabled { cursor: wait; opacity: 0.58; }
.live-comments-footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 24px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
}
.live-comments-footer .button { min-height: 44px; }

.pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 8px;
  color: #526174;
  background: #f0f3f6;
  border: 1px solid #dce3ea;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.pill.completed, .pill.success { color: #06713a; background: #effaf4; border-color: #cdebd9; }
.pill.failed { color: #c62e2e; background: #fff2f2; border-color: #facdcd; }
.pill.running, .pill.auditing, .pill.exporting, .pill.delivering, .pill.transcribing { color: #06713a; background: #effaf4; border-color: #cdebd9; }
.pill.pending { color: #995000; background: #fff6eb; border-color: #f9d7ad; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  color: #5c6879;
  background: #f2f5f8;
  border-radius: 3px;
  font-size: 9px;
}
.tag.green { color: #06713a; background: #edf9f2; border: 1px solid #ccebd8; }
.tag.purple { color: #6443cb; background: #f4f0ff; border: 1px solid #ded3ff; }
.tag.orange { color: #995000; background: #fff5e9; border: 1px solid #f7d5ad; }
.tag.red { color: #c62e2e; background: #fff1f1; border: 1px solid #f8cdcd; }

.alert {
  margin: 0 0 14px;
  padding: 11px 14px;
  color: #225da6;
  background: #f0f7ff;
  border: 1px solid #bcd9ff;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.5;
}
.alert.success { color: #087f40; background: #effaf4; border-color: #c9ebd7; }
.alert.warning { color: #a75c06; background: #fff8ed; border-color: #f5d6ad; }
.alert.error { color: #b62f2f; background: #fff2f2; border-color: #f5c5c5; }
.runtime-recovery-alert { min-height: 66px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; color: #7a4707; background: var(--warning-soft); border: 1px solid #f3d1a6; border-radius: 6px; }
.runtime-recovery-alert > svg { width: 21px; height: 21px; color: var(--warning); }
.runtime-recovery-alert strong, .runtime-recovery-alert span { display: block; }
.runtime-recovery-alert span { margin-top: 3px; color: #8a652f; font-size: 11px; line-height: 1.5; }
.info-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 14px;
  color: #3f5e82;
  background: #f2f8ff;
  border: 1px solid #bdd9fc;
  border-radius: 5px;
  font-size: 12px;
}
.info-strip svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--primary); }

/* Filters and forms */
label { display: block; margin-bottom: 13px; color: #465266; font-size: 12px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  min-height: 38px;
  display: block;
  margin-top: 6px;
  padding: 8px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d4dde8;
  border-radius: 5px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input::placeholder { color: #9aa6b8; }
input:hover, select:hover, textarea:hover { border-color: #aebccc; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8, 100, 249, 0.12); }
input[readonly], select:disabled { color: #5f6b7d; background: #f7f9fb; }
.inline-check { min-height: 30px; display: flex; align-items: center; gap: 8px; margin: 5px 0; font-weight: 400; }
.inline-check input, .choice input, .post-row input, table input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}
.filter-bar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filter-field { grid-column: span 2; margin: 0; }
.filter-field.wide { grid-column: span 3; }
.filter-field.narrow { grid-column: span 1; }
.filter-actions { grid-column: span 2; display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; }
.filter-field input, .filter-field select { margin-top: 6px; }
.filter-field .search-input { margin-top: 6px; }
.search-input {
  position: relative;
  width: 100%;
  min-width: 0;
  display: block;
  line-height: normal;
}
.search-input svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  width: 15px;
  height: 15px;
  margin: 0;
  color: #91a0b3;
  pointer-events: none;
  transform: translateY(-50%);
}
.search-input input { position: relative; width: 100%; margin: 0; padding-left: 34px; }
.search-form { display: flex; gap: 9px; }
.search-form input { margin: 0; }
.search-form .button { flex: 0 0 auto; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.choice {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 13px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.choice:has(input:checked) { background: var(--primary-soft); border-color: #72a7fa; }
.choice span, .choice strong, .choice small { display: block; }
.choice small { margin-top: 3px; color: var(--muted); font-weight: 400; }
.count-control { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 9px; }
fieldset { margin: 18px 0; padding: 0; border: 0; }
legend { margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.muted { color: var(--muted); font-size: 11px; line-height: 1.55; }

/* Dense data tables */
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; color: #344054; font-size: 12px; }
.posts-table { min-width: 100%; table-layout: fixed; }
.posts-table th:nth-child(1) { width: 23%; }
.posts-table th:nth-child(2) { width: 12%; }
.posts-table th:nth-child(3) { width: 11%; }
.posts-table th:nth-child(4) { width: 18%; }
.posts-table th:nth-child(5) { width: 12%; }
.posts-table th:nth-child(6) { width: 14%; }
.posts-table th:nth-child(7) { width: 10%; }
.accounts-table { min-width: 1030px; }
.accounts-table th:nth-child(1) { width: 240px; }
.accounts-table th:nth-child(2) { width: 145px; }
.accounts-table th:nth-child(3) { width: 190px; }
.accounts-table th:nth-child(4) { width: 145px; }
.accounts-table th:nth-child(5) { width: 185px; }
.accounts-table th:nth-child(6) { width: 175px; }
.account-management-table { min-width: 100%; table-layout: fixed; }
.account-management-table th:nth-child(1) { width: 19%; }
.account-management-table th:nth-child(2) { width: 8%; }
.account-management-table th:nth-child(3) { width: 15%; }
.account-management-table th:nth-child(4) { width: 20%; }
.account-management-table th:nth-child(5) { width: 14%; }
.account-management-table th:nth-child(6) { width: 10%; }
.account-management-table th:nth-child(7) { width: 14%; }
.account-management-table .row-account { min-width: 0; }
.account-management-table .row-primary-link small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jobs-table { min-width: 1120px; }
.jobs-table th:nth-child(1) { width: 230px; }
.jobs-table th:nth-child(2) { width: 145px; }
.jobs-table th:nth-child(3) { width: 105px; }
.jobs-table th:nth-child(4) { width: 145px; }
.jobs-table th:nth-child(5) { width: 92px; }
.jobs-table th:nth-child(6) { width: 100px; }
.jobs-table th:nth-child(7) { width: 126px; }
.jobs-table th:nth-child(8) { width: 94px; }
.jobs-table th:nth-child(9) { width: 150px; }
.posts-table td { overflow: hidden; }
.posts-table td small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
th {
  height: 45px;
  padding: 9px 12px;
  color: #344054;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
td { height: 58px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr { transition: background-color 150ms ease; }
tbody tr:hover { background: #f8fbff; }
tbody tr.selected { background: #f2f7ff; }
td strong, td small { display: block; }
td strong { color: #1f2937; font-weight: 500; }
td small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.number { font-family: "Roboto Mono", monospace; font-variant-numeric: tabular-nums; }
.metric-up { color: #069447; font-size: 10px; white-space: nowrap; }
.metric-down { color: #ea3c3c; font-size: 10px; white-space: nowrap; }
.row-account { min-width: 190px; display: flex; align-items: center; gap: 10px; }
.row-primary-link { color: inherit; }
.row-primary-link > div { min-width: 0; flex: 1; }
.row-primary-link > svg { flex: 0 0 auto; width: 16px; height: 16px; color: #98a5b6; opacity: 0; transform: translateX(-4px); transition: opacity 160ms ease, transform 160ms ease; }
.row-primary-link:hover strong { color: var(--primary); }
.row-primary-link:hover > svg, .row-primary-link:focus-visible > svg { opacity: 1; transform: translateX(0); }
.post-row-title > div { min-width: 0; }
.post-row-title strong, .post-row-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-cell-link:hover strong { color: var(--primary); }
.metric-pair { white-space: nowrap; }
.data-freshness { display: inline; font-weight: 500; }
.data-freshness.fresh { color: var(--success); }
.data-freshness.stale { color: var(--warning); }
.avatar, .avatar-placeholder {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  object-fit: cover;
  color: #fff;
  background: linear-gradient(145deg, #50677a, #172f44);
  border-radius: 50%;
  font-weight: 600;
}
.avatar.square, .avatar-placeholder.square { border-radius: 6px; }
.account-avatar {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}
.account-avatar > .avatar, .account-avatar > .avatar-placeholder {
  position: absolute;
  inset: 0;
}
.account-avatar > .avatar { z-index: 1; }
.account-avatar > .avatar[hidden] { display: none; }
.account-avatar.square, .account-avatar.square > .avatar,
.account-avatar.square > .avatar-placeholder { border-radius: 6px; }
/* 视频号封面实测有 3:4、9:16、16:9 三种比例，固定盒子配 object-fit:cover 会裁掉
   一半以上画面。盒子按主流的 3:4 竖版取值，图片用 contain 保证完整可见。 */
.post-cover {
  position: relative;
  flex: 0 0 35px;
  width: 35px;
  height: 46px;
  overflow: hidden;
  background: linear-gradient(145deg, #315c77, #112f45);
  border-radius: 5px;
}
.post-cover img, .post-cover-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.post-cover img { z-index: 1; display: block; object-fit: contain; }
.post-cover img[hidden] { display: none; }
.post-cover-fallback { display: grid; place-items: center; color: #dceaf5; }
.post-cover-fallback svg { width: 20px; height: 20px; }
.table-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.table-actions .text-link svg { width: 13px; height: 13px; }
.post-row-actions { flex-wrap: wrap; gap: 4px 8px; white-space: normal; }
.post-row-actions .table-more summary { color: #5d6b7e; }
.post-row-actions .table-more summary:hover { color: var(--primary); }
.media-download-note {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: -4px 0 16px;
  padding: 10px 13px;
  color: #315b79;
  background: #f2f8fd;
  border: 1px solid #d8eaf7;
  border-radius: 6px;
}
.media-download-note > svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--primary); }
.media-download-note strong, .media-download-note span { display: block; }
.media-download-note strong { color: #174a70; font-size: 12px; }
.media-download-note span { margin-top: 2px; font-size: 11px; line-height: 1.5; }
[data-media-download].is-preparing { pointer-events: none; opacity: 0.62; }
.download-preparing-toast {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  color: #dceaf6;
  background: #092a45;
  border: 1px solid #214a68;
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(7, 29, 47, 0.25);
}
.download-preparing-toast > span {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: download-spin 700ms linear infinite;
}
.download-preparing-toast strong, .download-preparing-toast small { display: block; }
.download-preparing-toast strong { color: #fff; font-size: 12px; }
.download-preparing-toast small { margin-top: 2px; color: #bdd0df; font-size: 10px; line-height: 1.45; }
@keyframes download-spin { to { transform: rotate(360deg); } }
.monitor-status { display: flex; align-items: flex-start; flex-direction: column; gap: 3px; }
.monitor-status > small { max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor-progress { width: 112px; height: 4px; overflow: hidden; accent-color: var(--primary); border: 0; border-radius: 99px; }
.monitor-progress::-webkit-progress-bar { background: #e7edf4; border-radius: 99px; }
.monitor-progress::-webkit-progress-value { background: var(--primary); border-radius: 99px; }
.inline-action-form { margin: 1px 0 0; }
.inline-action-form .text-link {
  min-height: 28px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.inline-action-form .text-link:disabled { cursor: default; color: var(--muted); opacity: 1; }
.secondary-link { color: #5d6b7e; }
.secondary-link:hover { color: var(--primary); }
.table-more { position: relative; }
.table-more summary {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin: -4px;
  padding: 4px;
  cursor: pointer;
  list-style: none;
}
.table-more summary::-webkit-details-marker { display: none; }
.table-more summary svg {
  width: 13px;
  height: 13px;
  transition: transform 160ms ease;
}
.table-more[open] summary svg { transform: rotate(180deg); }
.table-more-menu {
  position: fixed;
  z-index: 200;
  width: max-content;
  min-width: 150px;
  display: none;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(15, 35, 60, 0.15);
}
.table-more[open] .table-more-menu { display: grid; }
.table-more-menu a {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  color: #334155;
  border-radius: 4px;
  font-size: 12px;
}
.table-more-menu a:hover, .table-more-menu a:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}
.table-more-menu form { margin: 0; }
.table-more-menu button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  color: #334155;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  text-align: left;
}
.table-more-menu button:hover, .table-more-menu button:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
}
.table-more-menu button:disabled { cursor: not-allowed; color: var(--muted); opacity: 0.65; }
.table-more-menu .danger-menu-action { color: var(--danger); }
.table-more-menu .danger-menu-action:hover,
.table-more-menu .danger-menu-action:focus-visible { color: #a92323; background: var(--danger-soft); }

.lifecycle-guide { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.lifecycle-guide .stat-icon { flex: 0 0 auto; }
.lifecycle-guide h2 { margin: 0 0 4px; font-size: 15px; }
.lifecycle-guide p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.lifecycle-tabs { display: flex; gap: 4px; margin: 18px 0 10px; border-bottom: 1px solid var(--line); }
.lifecycle-tabs a { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; }
.lifecycle-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.lifecycle-tabs span { min-width: 21px; padding: 2px 6px; color: inherit; background: #edf2f7; border-radius: 99px; font-size: 10px; text-align: center; }
.lifecycle-list { display: grid; gap: 10px; }
.lifecycle-card { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; align-items: center; gap: 22px; padding: 17px 18px; }
.lifecycle-card-main { min-width: 0; display: flex; align-items: center; gap: 13px; }
.lifecycle-type-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; color: #66758a; background: #f1f4f8; border-radius: 8px; }
.lifecycle-type-icon svg { width: 21px; height: 21px; }
.lifecycle-avatar { width: 44px; height: 44px; flex: 0 0 auto; }
.lifecycle-cover { width: 33px; height: 44px; flex: 0 0 33px; }
.lifecycle-identity { min-width: 0; }
.lifecycle-identity h2 { margin: 2px 0 4px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.lifecycle-identity code { display: block; color: #526175; font-family: "Roboto Mono", monospace; font-size: 10px; overflow-wrap: anywhere; }
.lifecycle-identity small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.lifecycle-state-tag { display: inline-flex; margin: 6px 5px 0 0; }
.monitor-pause-note { color: #a46212 !important; font-weight: 600; }
.lifecycle-impact { display: grid; grid-template-columns: repeat(2, minmax(82px, 1fr)); gap: 7px; }
.lifecycle-impact span { padding: 7px 9px; color: var(--muted); background: #f7f9fb; border: 1px solid var(--line-soft); border-radius: 5px; font-size: 10px; white-space: nowrap; }
.lifecycle-impact strong { color: var(--ink); font-family: "Roboto Mono", monospace; font-size: 12px; }
.lifecycle-actions { display: flex; align-items: center; gap: 7px; }
.lifecycle-actions form { margin: 0; }
.lifecycle-actions .button { min-height: 44px; }
.restore-zone { position: relative; }
.restore-zone > summary { list-style: none; cursor: pointer; }
.restore-zone > summary::-webkit-details-marker { display: none; }
.restore-popover { width: min(390px, calc(100vw - 32px)); position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 14px 36px rgba(15, 35, 60, 0.17); }
.restore-popover > strong { color: var(--ink); font-size: 14px; }
.restore-popover > p { margin: 5px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.restore-popover form { display: grid; gap: 9px; }
.choice-row { min-height: 54px; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.choice-row:has(input:checked) { border-color: #8fb8fb; background: var(--primary-soft); }
.choice-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--primary); }
.choice-row strong, .choice-row small { display: block; }
.choice-row strong { color: var(--ink); font-size: 11px; }
.choice-row small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.restore-note { padding: 9px 10px; color: var(--muted); background: #f7f9fb; border-radius: 5px; font-size: 11px; }
.danger-zone { position: relative; }
.danger-zone > summary { list-style: none; cursor: pointer; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-popover { width: min(390px, calc(100vw - 32px)); position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; padding: 16px; background: #fff; border: 1px solid #efb0b0; border-radius: 7px; box-shadow: 0 14px 36px rgba(62, 19, 19, 0.18); }
.danger-popover > strong { color: #9f2525; font-size: 14px; }
.danger-popover > p { margin: 5px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.danger-popover form { display: grid; gap: 10px; }
.danger-popover label { display: grid; gap: 5px; color: #455468; font-size: 11px; font-weight: 600; }
.danger-popover input { min-height: 44px; width: 100%; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); }
.danger-popover input:focus { border-color: var(--primary); outline: 3px solid rgba(8, 100, 249, 0.12); }
.danger-popover .alert { margin: 0 0 10px; }
.lifecycle-footer { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.table-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  color: #596579;
  font-size: 11px;
}
.pagination { display: flex; align-items: center; gap: 5px; }
.page-button {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #3f4b5e;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.page-button.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.progress-inline { min-width: 120px; display: flex; align-items: center; gap: 8px; }
.progress-inline .bar { flex: 1; height: 6px; overflow: hidden; background: #e7ebef; border-radius: 99px; }
.progress-inline .bar span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.progress-inline.success .bar span { background: var(--success); }
.progress-inline.failed .bar span { background: var(--danger); }

/* Dashboard and status */
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr); gap: 14px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick-card { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.quick-card > svg { color: var(--primary); }
.runtime-banner { display: flex; align-items: center; gap: 13px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.runtime-banner > div { flex: 1; }
.runtime-banner p { margin: 3px 0 0; font-size: 11px; }
.runtime-light { width: 10px; height: 10px; background: var(--warning); border-radius: 50%; box-shadow: 0 0 0 5px var(--warning-soft); }
.runtime-banner.ready .runtime-light { background: var(--success); box-shadow: 0 0 0 5px var(--success-soft); }

/* Dashboard operations workspace */
.dashboard-page-head { min-height: 55px; margin-bottom: 12px; }
.dashboard-command {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.72fr);
  margin-bottom: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dashboard-command-main {
  position: relative;
  min-height: 238px;
  padding: 25px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 10%, rgba(76, 145, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #082e50 0%, #0a3d68 55%, #0d4f82 100%);
}
.dashboard-command-main::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(255, 255, 255, 0.025),
    0 0 0 80px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}
.dashboard-command-main .eyebrow { color: #8ec3ff; }
.dashboard-command-main h2 { position: relative; z-index: 1; margin-bottom: 5px; color: #fff; font-size: 25px; }
.dashboard-command-main > p { position: relative; z-index: 1; margin: 0; color: #c6d9e9; font-size: 12px; }
.dashboard-search { position: relative; z-index: 1; max-width: 700px; margin-top: 20px; }
.dashboard-search > label { margin-bottom: 7px; color: #e7f1f8; }
.dashboard-search-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.dashboard-search-control .search-input input {
  min-height: 46px;
  padding-left: 40px;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 18px rgba(0, 17, 34, 0.18);
}
.dashboard-search-control .search-input svg { left: 14px; color: #71839a; }
.dashboard-search-control .button { min-height: 46px; padding-inline: 22px; }
.recent-account-links {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
  color: #a9c2d6;
  font-size: 10px;
}
.recent-account-links a {
  padding: 3px 8px;
  color: #e7f3fc;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.recent-account-links a:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.25); }
.dashboard-runtime { display: flex; flex-direction: column; padding: 22px; background: #fbfcfe; }
.dashboard-runtime-head { display: flex; align-items: center; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--line-soft); }
.dashboard-runtime-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--warning);
  background: var(--warning-soft);
  border-radius: 50%;
}
.dashboard-runtime.ready .dashboard-runtime-icon { color: var(--success); background: var(--success-soft); }
.dashboard-runtime.offline .dashboard-runtime-icon { color: var(--danger); background: var(--danger-soft); }
.dashboard-runtime-icon svg { width: 22px; height: 22px; }
.dashboard-runtime-head span { display: block; color: var(--muted); font-size: 10px; }
.dashboard-runtime-head strong { display: block; margin-top: 2px; color: var(--ink); font-size: 15px; }
.dashboard-runtime-list { display: grid; gap: 0; margin: 9px 0 15px; }
.dashboard-runtime-list div { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dashboard-runtime-list dt { color: #657186; font-size: 10px; font-weight: 400; }
.dashboard-runtime-list dd { margin: 0; color: #344054; font-size: 10px; font-weight: 500; text-align: right; }
.status-dot { width: 7px; height: 7px; display: inline-block; margin-right: 5px; background: var(--success); border-radius: 50%; }
.dashboard-runtime > .button { width: 100%; margin-top: auto; }

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dashboard-metrics article { min-height: 94px; display: flex; align-items: center; gap: 13px; padding: 14px 18px; border-right: 1px solid var(--line-soft); }
.dashboard-metrics article:last-child { border-right: 0; }
.metric-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
}
.metric-icon.green { color: var(--success); background: var(--success-soft); }
.metric-icon.purple { color: var(--purple); background: var(--purple-soft); }
.metric-icon.orange { color: var(--warning); background: var(--warning-soft); }
.metric-icon svg { width: 20px; height: 20px; }
.dashboard-metrics article > div > span { display: block; color: #566277; font-size: 10px; }
.dashboard-metrics strong { display: block; margin: 1px 0; font-family: "Roboto Mono", monospace; font-size: 23px; letter-spacing: -0.04em; }
.dashboard-metrics small { display: block; color: var(--muted); font-size: 9px; }

.dashboard-main-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(300px, 0.62fr); gap: 14px; align-items: start; }
.dashboard-task-panel { padding: 0; overflow: hidden; }
.dashboard-task-panel .panel-title, .dashboard-accounts .panel-title, .dashboard-deltas .panel-title { min-height: 63px; padding-block: 10px; }
.panel-title > div h2 { margin: 0; }
.panel-title > div p { margin: 3px 0 0; font-size: 10px; }
.dashboard-task-list { display: grid; }
.dashboard-task-item {
  min-height: 68px;
  display: grid;
  grid-template-columns: 38px minmax(155px, 1.2fr) minmax(75px, 0.55fr) minmax(120px, 0.8fr) auto 16px;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 160ms ease;
}
.dashboard-task-item:last-child { border-bottom: 0; }
.dashboard-task-item:hover { background: #f7faff; }
.dashboard-task-copy, .dashboard-task-copy strong, .dashboard-task-copy small { min-width: 0; display: block; }
.dashboard-task-copy strong { overflow: hidden; color: #1f2937; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-task-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.dashboard-task-phase { overflow: hidden; color: #566277; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-task-progress { display: flex; align-items: center; gap: 8px; color: #596579; font-size: 9px; }
.dashboard-task-progress .bar { flex: 1; height: 5px; overflow: hidden; background: #e7ebef; border-radius: 99px; }
.dashboard-task-progress .bar span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.dashboard-task-arrow { width: 15px; height: 15px; color: #8c98a8; transition: transform 160ms ease; }
.dashboard-task-item:hover .dashboard-task-arrow { color: var(--primary); transform: translateX(2px); }
.dashboard-side { display: grid; gap: 14px; }
.dashboard-side .panel { margin: 0; }
.dashboard-attention { display: flex; gap: 12px; border-color: #ccebd8; background: #fbfefc; }
.dashboard-attention.needs-attention { border-color: #f0d4ac; background: #fffdf9; }
.dashboard-attention-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 50%;
}
.dashboard-attention.needs-attention .dashboard-attention-icon { color: var(--warning); background: var(--warning-soft); }
.dashboard-attention-icon svg { width: 20px; height: 20px; }
.dashboard-attention span { color: var(--muted); font-size: 9px; }
.dashboard-attention h2 { margin: 2px 0 4px; font-size: 15px; }
.dashboard-attention p { margin: 0 0 7px; font-size: 10px; }
.dashboard-shortcuts > div:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dashboard-shortcuts a { min-height: 70px; display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 5px; transition: border-color 160ms ease, background-color 160ms ease; }
.dashboard-shortcuts a:hover { background: #f6f9ff; border-color: #b9d0f5; }
.dashboard-shortcuts a > svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--primary); }
.dashboard-shortcuts a span, .dashboard-shortcuts a strong, .dashboard-shortcuts a small { display: block; }
.dashboard-shortcuts a strong { color: #293548; font-size: 11px; font-weight: 500; }
.dashboard-shortcuts a small { margin-top: 2px; color: var(--muted); font-size: 8px; }

.dashboard-insights-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr); gap: 14px; }
.dashboard-accounts, .dashboard-deltas { padding: 0; overflow: hidden; }
.dashboard-account-list { display: grid; }
.dashboard-account-list > a {
  min-height: 59px;
  display: grid;
  grid-template-columns: 36px minmax(180px, 1fr) 90px 75px 16px;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 160ms ease;
}
.dashboard-account-list > a:last-child { border-bottom: 0; }
.dashboard-account-list > a:hover { background: #f8fbff; }
.dashboard-account-list .account-avatar,
.dashboard-account-list .avatar,
.dashboard-account-list .avatar-placeholder { width: 34px; height: 34px; }
.dashboard-account-list span, .dashboard-account-list strong, .dashboard-account-list small { min-width: 0; display: block; }
.dashboard-account-list strong { overflow: hidden; color: #293548; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-account-list small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.dashboard-account-total, .dashboard-account-recent { text-align: right; }
.dashboard-account-list > a > svg { width: 15px; height: 15px; color: #8c98a8; }
.dashboard-delta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 16px; }
.dashboard-delta-grid > div { min-height: 76px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 0 9px; padding: 10px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.dashboard-delta-grid > div:nth-child(2n) { border-right: 0; }
.dashboard-delta-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.delta-symbol { grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 50%; }
.delta-symbol.purple { color: var(--purple); background: var(--purple-soft); }
.delta-symbol.green { color: var(--success); background: var(--success-soft); }
.delta-symbol.orange { color: var(--warning); background: var(--warning-soft); }
.delta-symbol svg { width: 15px; height: 15px; }
.dashboard-delta-grid > div > span:nth-child(2) { align-self: end; color: #5d697a; font-size: 9px; }
.dashboard-delta-grid strong { align-self: start; font-family: "Roboto Mono", monospace; font-size: 17px; }
.dashboard-delta-note { display: flex; align-items: flex-start; gap: 7px; margin: 0 16px 14px; padding: 9px 10px; color: #3f5e82; background: #f1f7ff; border: 1px solid #c8ddfa; border-radius: 5px; font-size: 9px; line-height: 1.5; }
.dashboard-delta-note svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--primary); }

/* History chart and bars */
.chart-panel { padding: 14px 16px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.chart-legend { display: flex; align-items: center; gap: 18px; color: #5c687a; font-size: 10px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.history-chart { width: 100%; min-height: 250px; display: block; overflow: visible; }
.chart-grid line { stroke: #e7edf4; stroke-width: 1; }
.chart-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.history-chart .chart-axis-label {
  fill: #6b7789;
  stroke: none;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.chart-empty { min-height: 250px; display: grid; place-items: center; color: var(--muted); }
.comparison-list { display: grid; gap: 9px; }
.comparison-row { display: grid; grid-template-columns: 24px 140px 1fr 55px; align-items: center; gap: 10px; color: #445064; font-size: 11px; }
.comparison-bars { display: flex; align-items: center; gap: 8px; }
.compare-bar { height: 8px; background: var(--primary); border-radius: 2px; }
.compare-bar.green { background: var(--success); }
.history-filter .history-search-field { grid-column: span 4; }
.history-filter .filter-field:not(.history-search-field) { grid-column: span 2; }
.history-filter .filter-actions { grid-column: span 2; }
.history-definition-banner { min-height: 58px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 12px 15px; color: #315a87; background: #f1f7ff; border: 1px solid #c9def8; border-radius: 6px; }
.history-definition-banner > svg { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 1px; color: var(--primary); }
.history-definition-banner strong, .history-definition-banner span { display: block; }
.history-definition-banner strong { color: #274f7d; font-size: 11px; }
.history-definition-banner span { margin-top: 3px; font-size: 10px; line-height: 1.5; }
.history-kpis .stat-copy > small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.history-kpis .stat-value.currency { gap: 3px; }
.history-kpis .stat-value.currency > small { color: var(--warning); font-family: "Roboto Mono", monospace; font-size: 13px; font-weight: 600; }
.history-data-warning strong { margin-right: 4px; }
.history-chart-layout, .history-detail-layout { margin-bottom: 14px; }
.history-chart-panel { padding: 0; overflow: hidden; }
.history-chart-panel .chart-head { align-items: flex-start; gap: 16px; margin: 0; padding: 15px 17px 8px; }
.history-chart-panel .chart-head h2 { margin-top: 3px; }
.history-chart-panel .chart-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.history-chart-panel .chart-legend { justify-content: flex-end; padding-top: 7px; flex-wrap: wrap; }
.legend-line { width: 18px; height: 3px; display: inline-block; background: var(--primary); border-radius: 99px; }
.legend-line.blue { background: #0864f9; }
.legend-line.purple { background: #7047eb; }
.legend-line.green { background: #32a852; }
.legend-line.orange { background: #ef7d00; }
.history-chart-canvas { min-height: 280px; padding: 0 12px 4px; overflow-x: auto; }
.history-chart { min-width: 640px; min-height: 280px; }
.history-chart circle:focus { outline: none; stroke-width: 4; }
.history-chart-panel .chart-empty { min-height: 280px; align-content: center; justify-items: center; gap: 6px; padding: 24px; text-align: center; }
.history-chart-panel .chart-empty strong { color: #34465b; font-size: 13px; }
.history-chart-panel .chart-empty span { max-width: 440px; font-size: 10px; line-height: 1.5; }
.history-chart-panel .chart-empty .button { margin-top: 5px; }
.chart-data-table { border-top: 1px solid var(--line-soft); }
.chart-data-table > summary { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 14px; color: var(--primary); cursor: pointer; list-style: none; font-size: 10px; font-weight: 500; }
.chart-data-table > summary::-webkit-details-marker { display: none; }
.chart-data-table > summary:hover { background: #f8fbff; }
.chart-data-table > summary svg { width: 15px; height: 15px; transition: transform 160ms ease; }
.chart-data-table[open] > summary svg { transform: rotate(180deg); }
.chart-data-table .table-wrap { border-top: 1px solid var(--line-soft); }
.history-scope-card { padding: 0; overflow: hidden; }
.history-scope-card > .section-head { padding: 15px 16px; }
.history-scope-card .effective-list { padding: 0 16px; }
.scope-query { margin: 0 16px 15px; padding: 10px; background: #f7f9fb; border: 1px solid var(--line-soft); border-radius: 5px; }
.scope-query span, .scope-query strong { display: block; }
.scope-query span { color: var(--muted); font-size: 9px; }
.scope-query strong { margin-top: 3px; overflow-wrap: anywhere; color: #34465b; font-size: 10px; }
.history-detail-layout { grid-template-columns: minmax(0, 1fr) 310px; }
.history-ranking .panel-title > div small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.history-ranking td:nth-child(n+3), .history-ranking th:nth-child(n+3) { text-align: right; }
.rank-number { width: 23px; height: 23px; display: grid; place-items: center; color: #536177; background: #edf1f5; border-radius: 50%; font-family: "Roboto Mono", monospace; font-size: 9px; }
.history-ranking tbody tr:nth-child(-n+3) .rank-number { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.transcription-usage-card { padding: 0; overflow: hidden; }
.transcription-usage-card > .section-head { padding: 15px 16px; }
.usage-cost { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px; background: linear-gradient(135deg, #fff9ef, #fff); border-bottom: 1px solid var(--line-soft); }
.usage-cost > span { color: #6a7484; font-size: 10px; }
.usage-cost > strong { color: #965b0a; font-family: "Roboto Mono", monospace; font-size: 26px; font-weight: 600; }
.usage-cost > strong small { margin-right: 3px; font-size: 13px; }
.usage-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 10px; }
.usage-breakdown > div { min-height: 52px; display: grid; place-items: center; align-content: center; border-right: 1px solid var(--line-soft); text-align: center; }
.usage-breakdown > div:last-child { border-right: 0; }
.usage-breakdown span, .usage-breakdown strong { display: block; }
.usage-breakdown span { color: var(--muted); font-size: 8px; }
.usage-breakdown strong { margin-top: 3px; font-family: "Roboto Mono", monospace; font-size: 16px; }
.transcription-usage-card > .info-strip { margin: 0 12px 12px; font-size: 9px; line-height: 1.5; }
.metric-guide { padding: 0; overflow: hidden; scroll-margin-top: 76px; }
.metric-guide > .section-head { padding: 15px 17px; }
.metric-definition-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-definition-grid article { min-height: 126px; display: flex; align-items: flex-start; gap: 9px; padding: 16px; border-right: 1px solid var(--line-soft); }
.metric-definition-grid article:last-child { border-right: 0; }
.definition-icon { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 50%; }
.definition-icon.purple { color: var(--purple); background: var(--purple-soft); }
.definition-icon.orange { color: var(--warning); background: var(--warning-soft); }
.definition-icon.green { color: var(--success); background: var(--success-soft); }
.definition-icon svg { width: 15px; height: 15px; }
.metric-definition-grid strong { color: #34465b; font-size: 10px; }
.metric-definition-grid p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }

/* Files, posts and candidate cards */
.file-icon {
  width: 30px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #177a45;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
}
.file-icon.json, .file-icon.srt_zip { background: #7047eb; }
.file-icon.txt { background: #596579; }
.storage-card { justify-content: space-between; }
.storage-meter { width: 100%; height: 5px; margin: 9px 0 5px; overflow: hidden; background: #e6ebf1; border-radius: 99px; }
.storage-meter span { display: block; height: 100%; background: var(--primary); }
.candidate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.candidate-card { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; }
.candidate-card > img { flex: 0 0 auto; width: 38px; height: 38px; object-fit: cover; border-radius: 50%; }
.candidate-card > div:nth-child(2) { flex: 1; min-width: 0; }
.candidate-card strong, .candidate-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.candidate-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.candidate-card-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.candidate-card-actions .candidate-manage > summary { min-height: 34px; margin: 0; padding: 6px 8px; color: #5d6b7e; border-radius: 4px; }
.candidate-card-actions .candidate-manage > summary:hover,
.candidate-card-actions .candidate-manage > summary:focus-visible { color: var(--primary); background: var(--primary-soft); }
.scope-explanation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 11px 12px;
  color: #315a87;
  background: #f1f7ff;
  border: 1px solid #c9def8;
  border-radius: 5px;
}
.scope-explanation > svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: var(--primary); }
.scope-explanation strong, .scope-explanation span { display: block; }
.scope-explanation strong { color: #274f7d; font-size: 11px; }
.scope-explanation span { margin-top: 3px; color: #58728f; font-size: 10px; line-height: 1.5; }
.section-head > div > small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.preview-list-tools { flex: 0 0 auto; display: grid; justify-items: end; gap: 8px; }
.preview-title-filter { margin: 0; }
.preview-title-filter input { width: 180px; min-height: 34px; margin: 0; padding: 6px 10px; font-size: 11px; }
.preview-sort-control { min-height: 34px; display: inline-flex; align-items: center; gap: 3px; padding: 3px; background: #f4f7fa; border: 1px solid var(--line); border-radius: 5px; }
.preview-sort-control > label { margin: 0; padding: 0 5px; color: var(--muted); font-size: 10px; }
.preview-sort-control select { width: 104px; min-height: 28px; margin: 0; padding: 3px 24px 3px 8px; color: var(--primary); background-color: var(--surface); border: 0; border-radius: 3px; box-shadow: 0 1px 2px rgba(15, 35, 60, 0.1); font-size: 10px; font-weight: 500; }
.selection-toggle { flex: 0 0 auto; padding: 8px 10px; background: #f7f9fb; border: 1px solid var(--line); border-radius: 5px; }
.preview-progress { display: grid; gap: 9px; margin-bottom: 10px; padding: 12px 14px; color: #315a87; background: #f2f7fe; border: 1px solid #c9def8; border-radius: 5px; }
.preview-progress-copy { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.preview-progress-copy strong, .preview-progress-copy small { display: block; }
.preview-progress-copy strong { font-size: 11px; font-weight: 600; }
.preview-progress-copy small { margin-top: 3px; color: #58728f; font-size: 10px; }
.preview-progress-copy b { font-family: "Roboto Mono", monospace; }
.preview-progress-spinner { width: 17px; height: 17px; border: 2px solid #b9d2f1; border-top-color: var(--primary); border-radius: 50%; animation: preview-spin 800ms linear infinite; }
.preview-progress progress { width: 100%; height: 5px; display: block; overflow: hidden; accent-color: var(--primary); border: 0; border-radius: 99px; }
.preview-progress.complete { color: #24633d; background: #f1faf5; border-color: #bde2ca; }
.preview-progress.complete .preview-progress-spinner { border: 0; animation: none; }
.preview-progress.complete .preview-progress-spinner::before { content: ""; width: 17px; height: 17px; display: block; border-right: 2px solid #31945a; border-bottom: 2px solid #31945a; transform: rotate(45deg) scale(.55) translate(-2px, -2px); }
.preview-progress.error { color: #9d2f3f; background: #fff4f5; border-color: #efc4ca; }
.preview-progress.error .preview-progress-spinner { border-color: #efc4ca; border-top-color: var(--danger); animation: none; }
.preview-post-enter { animation: preview-row-enter 220ms ease-out both; }
@keyframes preview-spin { to { transform: rotate(360deg); } }
@keyframes preview-row-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
/* 轨道最小宽度必须显式为 0：默认的 auto 最小值让行无法收窄到竖向滚动条出现后
   的可用宽度，结果是列表被迫横向滚动，指标卡被截断、标题被挤出可视区。 */
.post-list { max-height: 760px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; overflow: auto; }
.post-row { min-height: 72px; display: flex; align-items: center; gap: 11px; margin: 0; padding: 8px; cursor: pointer; border: 1px solid var(--line-soft); border-radius: 5px; }
.post-row:hover, .post-row:has(input:checked) { background: #f3f8ff; border-color: #9bc0fa; }
.post-row img, .cover-placeholder { flex: 0 0 40px; width: 40px; height: 53px; object-fit: contain; background: #edf1f5; border-radius: 4px; }
.cover-placeholder { display: grid; place-items: center; color: var(--muted); background: #edf1f5; font-size: 10px; }
.post-number { width: 22px; color: var(--muted); text-align: center; }
.post-info { flex: 1 1 auto; min-width: 0; }
.post-info strong, .post-info small { display: block; }
.post-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-info small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.post-metrics { flex: 0 0 174px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 4px; background: #f8fafc; border: 1px solid var(--line-soft); border-radius: 5px; }
.post-metric { min-width: 0; min-height: 24px; display: grid; grid-template-columns: 13px minmax(0, 1fr) auto; align-items: center; gap: 4px; padding: 3px 4px; border-radius: 3px; }
.post-metric svg { width: 13px; height: 13px; color: #718096; }
.post-metric.like svg { color: var(--primary); }
.post-metric.recommend svg { color: #d94d60; }
.post-metric.comment svg { color: var(--purple); }
.post-metric.share svg { color: var(--cyan); }
.post-metric small { color: var(--muted); font-size: 9px; line-height: 1; }
.post-metric strong { overflow: hidden; color: var(--ink); font-family: "Roboto Mono", monospace; font-size: 10px; font-variant-numeric: tabular-nums; font-weight: 600; line-height: 1; text-overflow: ellipsis; }
.summary-box { display: grid; gap: 8px; margin: 16px 0; padding: 12px; background: #f7f9fb; border: 1px solid var(--line-soft); border-radius: 5px; }
.summary-box span { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.summary-box strong { color: var(--ink); text-align: right; }
.summary-box b { font-family: "Roboto Mono", monospace; font-weight: 600; }

/* Settings and integrations */
.settings-nav { position: sticky; top: 76px; min-height: auto; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.settings-nav a { min-height: 45px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: #435064; border-radius: 5px; }
.settings-nav a svg { width: 17px; height: 17px; }
.settings-nav a:hover { color: var(--primary); background: #f6f9fd; }
.settings-nav a.active { color: var(--primary); background: var(--primary-soft); font-weight: 500; }
.settings-content, .settings-aside { display: grid; gap: 14px; }
.settings-aside { position: sticky; top: 76px; }
.setting-section { padding: 0; overflow: hidden; scroll-margin-top: 76px; }
.setting-section-head { min-height: 66px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.setting-section-head h2 { margin: 0; }
.setting-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.setting-field { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; margin: 0; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line-soft); }
.setting-field > label, .setting-field > legend { margin: 9px 0 0; color: #344054; font-size: 12px; font-weight: 600; }
.setting-field input, .setting-field select { max-width: 360px; margin: 0; }
.setting-field > div > small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.setting-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.option-check {
  min-height: 72px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 12px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.option-check:hover { border-color: #9eb9dd; }
.option-check:has(input:checked) { background: var(--primary-soft); border-color: #72a7fa; }
.option-check input { flex: 0 0 auto; width: 16px; min-height: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--primary); }
.option-check span, .option-check strong, .option-check small { display: block; }
.option-check small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.4; }
.switch-control { min-height: 32px; display: flex; align-items: center; gap: 9px; margin: 0; cursor: pointer; font-weight: 500; }
.switch-control input { position: absolute; width: 1px; height: 1px; min-height: 1px; overflow: hidden; opacity: 0; }
.switch-control > span { width: 38px; height: 22px; display: flex; align-items: center; padding: 3px; background: #c9d1db; border-radius: 99px; transition: background-color 160ms ease; }
.switch-control > span::after { content: ""; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 160ms ease; }
.switch-control input:checked + span { background: var(--primary); }
.switch-control input:checked + span::after { transform: translateX(16px); }
.switch-control input:focus-visible + span { box-shadow: 0 0 0 3px rgba(8, 100, 249, 0.18); }
.setting-actions { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fbfcfe; }
.setting-actions small { color: var(--muted); font-size: 10px; }
.managed-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.managed-settings div { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.managed-settings div:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.managed-settings dt { color: var(--muted); font-size: 11px; font-weight: 400; }
.managed-settings dd { margin: 0; color: #344054; font-size: 11px; font-weight: 600; text-align: right; }
.effective-card { padding: 16px; }
.effective-list { display: grid; gap: 0; margin-top: 8px; }
.effective-list div { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line-soft); color: #536075; font-size: 11px; }
.effective-list div:last-child { border-bottom: 0; }
.related-settings { padding: 8px; }
.related-settings h2 { padding: 8px 8px 10px; }
.related-settings > a { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px; color: #344054; border-top: 1px solid var(--line-soft); }
.related-settings > a:hover { color: var(--primary); background: #f8faff; }
.related-settings > a > span { min-width: 0; display: flex; align-items: center; gap: 9px; }
.related-settings > a svg { flex: 0 0 auto; width: 17px; height: 17px; }
.related-settings > a > span > svg { width: 22px; height: 22px; color: var(--primary); }
.related-settings strong, .related-settings small { display: block; }
.related-settings small { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 400; }
.integration-navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; margin-bottom: 14px; padding: 7px; }
.integration-provider-tabs { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 6px; }
.provider-tab { min-height: 58px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 11px; color: #526176; border: 1px solid transparent; border-radius: 6px; transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
.provider-tab:hover { color: #2b4667; background: #f7f9fc; }
.provider-tab:focus-visible { outline: 3px solid rgba(8, 100, 249, 0.2); outline-offset: 1px; }
.provider-tab.active { color: #173e6b; background: #eef5ff; border-color: #b9d3f6; }
.provider-tab .channel-logo { width: 34px; height: 34px; border-radius: 6px; }
.provider-tab .channel-logo svg { width: 18px; height: 18px; }
.provider-tab span strong, .provider-tab span small { display: block; }
.provider-tab span strong { font-size: 11px; }
.provider-tab span small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 400; }
.provider-tab > b { min-width: 25px; height: 25px; display: grid; place-items: center; color: #59687c; background: #fff; border: 1px solid var(--line); border-radius: 99px; font-family: "Roboto Mono", monospace; font-size: 9px; }
.provider-tab.active > b { color: var(--primary); border-color: #a9c9f2; }
.integration-view-tabs { display: flex; align-items: center; gap: 4px; padding-left: 7px; border-left: 1px solid var(--line-soft); }
.integration-view-tabs a { min-height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; color: #59687c; border-radius: 5px; font-size: 10px; font-weight: 500; transition: color 180ms ease, background-color 180ms ease; }
.integration-view-tabs a:hover { color: var(--primary); background: #f6f9fd; }
.integration-view-tabs a.active { color: var(--primary); background: var(--primary-soft); }
.integration-view-tabs a:focus-visible { outline: 3px solid rgba(8, 100, 249, 0.18); }
.integration-view-tabs svg { width: 15px; height: 15px; }
.integration-guide-page { max-width: 880px; margin: 0 auto; }
.integration-count { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.integration-count strong { color: #34465d; font-family: "Roboto Mono", monospace; font-size: 17px; }
.channel-list { display: grid; gap: 10px; }
.channel-card { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; }
.channel-logo { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--success); border-radius: 8px; }
.channel-logo.dingtalk { background: var(--primary); }
.channel-card > div:nth-child(2) { flex: 1; min-width: 0; }
.channel-card p { margin: 3px 0 0; font-size: 10px; }
.integration-card dl { display: grid; margin: 12px 0; }
.integration-card dl div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.integration-card dt { color: var(--muted); font-size: 10px; font-weight: 400; }
.integration-card dd { margin: 0; overflow-wrap: anywhere; font-size: 11px; }
.integration-main { display: grid; gap: 14px; }
.integration-list-panel { padding: 0; overflow: hidden; }
.integration-list-panel > .section-head { padding: 15px 17px; }
.integration-list-panel .channel-list { gap: 0; }
.integration-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: flex-start; gap: 12px; padding: 16px 17px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
.integration-card:last-child { border-bottom: 0; }
.integration-card-main { padding-top: 1px; }
.integration-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.integration-title > strong { color: #24364c; font-size: 13px; }
.integration-health { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 500; }
.integration-health > span { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.integration-health.success { color: #087f40; }
.integration-health.failed { color: var(--danger); }
.integration-health.pending { color: #9a650d; }
.integration-config-summary { display: flex; gap: 6px 14px; margin-top: 9px; flex-wrap: wrap; color: #69768a; font-size: 9px; }
.integration-test-result { min-height: 29px; display: flex; align-items: center; gap: 6px; margin-top: 9px; padding: 6px 8px; color: #087f40; background: #f1faf5; border: 1px solid #d1ecdc; border-radius: 4px; font-size: 9px; }
.integration-test-result.failed { color: #b62f2f; background: #fff4f4; border-color: #f4cccc; }
.integration-test-result svg { flex: 0 0 auto; width: 14px; height: 14px; }
.integration-actions { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.integration-actions .button { min-height: 31px; padding-inline: 9px; }
.integration-guide { padding: 0; overflow: hidden; }
.integration-guide .section-head { padding: 15px 17px; }
.channel-tutorial { padding: 0; overflow: hidden; scroll-margin-top: 76px; }
.channel-tutorial > .section-head { padding: 15px 17px; }
.tutorial-list { display: grid; }
.tutorial-item { border-bottom: 1px solid var(--line-soft); }
.tutorial-item:last-child { border-bottom: 0; }
.tutorial-channel-head { min-height: 70px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 13px 17px; background: #fbfcfe; border-bottom: 1px solid var(--line-soft); }
.tutorial-channel-head .channel-logo { width: 40px; height: 40px; }
.tutorial-channel-head strong, .tutorial-channel-head small { display: block; }
.tutorial-channel-head strong { color: #2b3e54; font-size: 12px; }
.tutorial-channel-head small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.tutorial-item > summary { min-height: 72px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 22px; align-items: center; gap: 11px; padding: 12px 17px; cursor: pointer; list-style: none; transition: background-color 160ms ease; }
.tutorial-item > summary::-webkit-details-marker { display: none; }
.tutorial-item > summary:hover { background: #f8faff; }
.tutorial-item > summary:focus-visible { outline: 3px solid rgba(8, 100, 249, 0.18); outline-offset: -3px; }
.tutorial-item > summary .channel-logo { width: 40px; height: 40px; }
.tutorial-item > summary strong, .tutorial-item > summary small { display: block; }
.tutorial-item > summary strong { color: #2b3e54; font-size: 13px; }
.tutorial-item > summary small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.tutorial-chevron { width: 18px; height: 18px; color: #7c8a9d; transition: transform 180ms ease; }
.tutorial-item[open] > summary { background: #f8faff; border-bottom: 1px solid var(--line-soft); }
.tutorial-item[open] .tutorial-chevron { transform: rotate(180deg); }
.tutorial-content { padding: 17px; background: #fff; }
.tutorial-callout { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 16px; padding: 11px 12px; color: #315a87; background: #f1f7ff; border: 1px solid #c9def8; border-radius: 5px; font-size: 11px; line-height: 1.6; }
.tutorial-callout svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; color: var(--primary); }
.tutorial-callout strong { margin-right: 4px; color: #244b77; }
.credential-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.credential-map > div { min-height: 70px; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-content: center; gap: 3px 10px; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); }
.credential-map > div:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.credential-map > div:nth-last-child(-n+2) { border-bottom: 0; }
.credential-map code { grid-row: 1 / span 2; align-self: center; color: var(--primary); font-family: "Roboto Mono", monospace; font-size: 10px; font-weight: 600; }
.credential-map span { color: #3d4e63; font-size: 10px; font-weight: 500; }
.credential-map small { color: var(--muted); font-size: 9px; }
.tutorial-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.tutorial-steps > li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; padding: 0 0 18px; }
.tutorial-steps > li:not(:last-child)::before { content: ""; position: absolute; top: 28px; bottom: 0; left: 13px; width: 1px; background: #d9e2ec; }
.tutorial-steps > li > span { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 50%; font-family: "Roboto Mono", monospace; font-size: 9px; font-weight: 600; }
.tutorial-steps strong { color: #2e4055; font-size: 11px; }
.tutorial-steps p { margin: 4px 0 5px; color: #607087; font-size: 10px; line-height: 1.6; }
.tutorial-steps a { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: 9px; font-weight: 500; }
.tutorial-steps a:hover { text-decoration: underline; text-underline-offset: 2px; }
.tutorial-steps a svg { width: 13px; height: 13px; }
.tutorial-steps code { color: #395774; background: #eef3f8; border-radius: 3px; font-size: 9px; }
.url-example { display: grid; gap: 7px; margin: 7px 0; padding: 10px; background: #071e33; border-radius: 5px; overflow: hidden; }
.url-example code { max-width: 100%; overflow-x: auto; padding: 0 0 3px; color: #dce9f6; background: transparent; white-space: nowrap; scrollbar-width: thin; }
.url-example code b { color: #79b7ff; }
.url-example > span { color: #b8cbe0; font-size: 9px; line-height: 1.6; }
.url-example > span b { color: #dce9f6; }
.tutorial-troubleshooting { margin-top: 2px; padding: 13px; background: #fbfcfe; border: 1px solid var(--line); border-radius: 6px; }
.tutorial-troubleshooting > strong { display: block; margin-bottom: 7px; color: #34465b; font-size: 11px; }
.tutorial-troubleshooting dl { margin: 0; }
.tutorial-troubleshooting dl > div { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.tutorial-troubleshooting dt { color: #43556a; font-size: 9px; font-weight: 600; }
.tutorial-troubleshooting dd { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.tutorial-official-link { margin-top: 2px; }
.delivery-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.delivery-rules > div { min-height: 92px; display: flex; align-items: flex-start; gap: 9px; padding: 15px; border-right: 1px solid var(--line-soft); }
.delivery-rules > div:last-child { border-right: 0; }
.delivery-rules strong, .delivery-rules small { display: block; }
.delivery-rules small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.rule-number { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 50%; font-family: "Roboto Mono", monospace; font-size: 9px; font-weight: 600; }
.integration-form-panel { padding: 0; overflow: hidden; scroll-margin-top: 76px; }
.integration-form-panel > .section-head { padding: 14px 16px; }
.integration-form-title { display: flex; align-items: center; gap: 9px; }
.integration-form-title .channel-logo { width: 34px; height: 34px; border-radius: 6px; }
.integration-form-title .channel-logo svg { width: 18px; height: 18px; }
.integration-form-panel > form { padding: 16px; }
.integration-form-panel label > small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.45; }
.provider-fields { margin: 16px -4px; padding: 13px; background: #f8fafc; border: 1px solid var(--line); border-radius: 6px; }
.provider-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; padding-bottom: 11px; border-bottom: 1px solid var(--line-soft); }
.provider-heading .channel-logo { width: 34px; height: 34px; border-radius: 6px; }
.provider-heading .channel-logo svg { width: 18px; height: 18px; }
.provider-heading strong, .provider-heading small { display: block; }
.provider-heading small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.required-mark { margin-left: 4px; color: var(--danger); font-size: 9px; font-weight: 500; }
.enable-channel { min-height: 68px; display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; padding: 12px; cursor: pointer; background: #f7faff; border: 1px solid #cfe0f8; border-radius: 6px; }
.enable-channel input { flex: 0 0 auto; width: 17px; min-height: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--primary); }
.enable-channel strong, .enable-channel small { display: block; }
.enable-channel small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.45; }
.integration-security { align-items: flex-start; margin-bottom: 12px; padding: 9px 10px; font-size: 10px; }
.form-footnote { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.45; text-align: center; }

/* Job details, WeChat and audit */
.job-result-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.42fr); }
.job-result-layout > section { min-width: 0; display: grid; gap: 14px; }
.job-data-panel { overflow: hidden; }
.job-data-panel .directory-toolbar { min-height: 72px; }
.job-data-panel .directory-toolbar .eyebrow { margin-bottom: 3px; }
.job-data-panel .directory-toolbar h2 { font-size: 16px; }
.job-result-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.job-result-summary article { min-height: 92px; padding: 15px; border-right: 1px solid var(--line-soft); }
.job-result-summary article:last-child { border-right: 0; }
.job-result-summary span, .job-result-summary strong, .job-result-summary small { display: block; }
.job-result-summary span { color: var(--muted); font-size: 10px; }
.job-result-summary strong { margin-top: 6px; color: #26384d; font-family: "Roboto Mono", monospace; font-size: 21px; font-weight: 600; }
.job-result-summary small { margin-top: 3px; color: var(--muted); font-size: 8px; }
/* 主栏在 1536 视口下只有约 830px，原来的 1050px 最小宽必然横向滚动，把采集时间
   列推出可视区。数值列宽度固定，标题列吸收剩余空间并省略号截断。 */
.job-result-table { min-width: 680px; table-layout: fixed; }
.job-result-table th:nth-child(1) { width: auto; }
.job-result-table th:nth-child(2) { width: 90px; }
.job-result-table th:nth-child(n+3):nth-child(-n+7) { width: 68px; text-align: right; }
.job-result-table th:nth-child(8) { width: 92px; }
.job-result-table th:nth-child(9) { width: 70px; }
.job-result-table td:nth-child(n+3):nth-child(-n+7) { text-align: right; }
.job-result-table .text-link svg { width: 13px; height: 13px; }
.result-data-empty { display: flex; align-items: flex-start; gap: 9px; margin: 14px; padding: 11px 12px; color: #5b6c80; background: #f7f9fb; border: 1px solid var(--line-soft); border-radius: 5px; font-size: 10px; line-height: 1.55; }
.result-data-empty svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--primary); }
.job-audit-warning { margin: 12px 14px 0; }
.job-data-foot { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; color: var(--muted); border-top: 1px solid var(--line-soft); font-size: 9px; }
.job-data-foot strong { color: #4b5b70; font-family: "Roboto Mono", monospace; font-weight: 500; }
.job-result-waiting, .job-result-failed { min-height: 150px; display: flex; align-items: center; gap: 14px; }
.job-result-waiting h2, .job-result-failed h2 { margin: 0; font-size: 14px; }
.job-result-waiting p, .job-result-failed p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.job-artifacts-panel { padding: 0; overflow: hidden; }
.job-artifacts-head { min-height: 72px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line-soft); }
.job-artifacts-head h2 { margin-top: 4px; }
.job-artifacts-lead { margin: 0; padding: 12px 16px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.job-file-list { display: grid; gap: 9px; padding: 12px 14px; }
.job-file-list article { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; background: #fbfcfe; border: 1px solid var(--line); border-radius: 6px; }
.job-file-list .file-icon { width: 38px; height: 42px; }
.job-file-list article > div { min-width: 0; }
.job-file-list article strong, .job-file-list article small, .job-file-list article span { display: block; }
.job-file-list article strong { color: #2c3e54; font-size: 11px; }
.job-file-list article small { margin-top: 3px; overflow: hidden; color: #5c6a7d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.job-file-list article > div > span { margin-top: 4px; color: var(--muted); font-family: "Roboto Mono", monospace; font-size: 8px; }
.job-file-list .button { padding-inline: 10px; }
.job-files-link { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 14px; color: var(--primary); border-top: 1px solid var(--line-soft); font-size: 10px; font-weight: 500; }
.job-files-link:hover { background: #f8fbff; }
.job-files-link svg { width: 14px; height: 14px; }
.artifact-empty-state { min-height: 220px; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 22px; text-align: center; }
.artifact-empty-state strong { color: #36485e; font-size: 12px; }
.artifact-empty-state p { max-width: 260px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.job-artifacts-panel > hr, .job-artifacts-panel > h3, .job-artifacts-panel > .delivery { margin-inline: 14px; }
.progress-track { height: 8px; margin: 24px 0 10px; overflow: hidden; background: #e5eaf0; border-radius: 99px; }
.progress-track span { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width 250ms ease; }
.progress-meta { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 11px; }
.progress-meta strong { color: var(--text); }
.audit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 8px; }
.audit-grid span { padding: 11px; color: var(--muted); background: #f8fafc; border: 1px solid var(--line-soft); border-radius: 5px; font-size: 10px; }
.audit-grid strong { display: block; margin-top: 4px; color: var(--ink); font-family: "Roboto Mono", monospace; font-size: 18px; }
.download-list { display: grid; gap: 7px; }
.download-list a { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; }
.download-list a:hover { background: #f6f9fd; border-color: #a9c8f8; }
.download-list span, .download-list strong, .download-list small { display: block; }
.download-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.download-list b { color: var(--primary); font-size: 11px; }
.delivery { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; margin-top: 10px; }
.delivery small { grid-column: 2; color: var(--muted); }
.runtime-state { min-height: 90px; display: flex; align-items: center; gap: 13px; margin: 18px 0; }
.state-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--warning); background: var(--warning-soft); border: 1px solid #f3d1a6; border-radius: 50%; }
.state-icon.good { color: var(--success); background: var(--success-soft); border-color: #c8e9d5; }
.runtime-state p { margin: 3px 0 0; font-size: 11px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 10px; }
.steps li > span { width: 30px; height: 30px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border: 1px solid #bbd3fa; border-radius: 50%; font-size: 10px; }
.steps p { margin: 3px 0 0; font-size: 10px; }
.risk-low { color: #06713a; }
.risk-medium { color: #995000; }
.risk-high { color: #c62e2e; }
.audit-detail { padding: 12px 16px 16px; background: #f8fbff; border: 1px solid #7aabf7; }

/* Functional security audit */
.audit-page-layout { grid-template-columns: minmax(0, 1fr) 248px; align-items: start; }
.audit-page-layout > section { min-width: 0; }
.audit-filter-bar { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.audit-filter-bar input, .audit-filter-bar select { min-height: 42px; }
.audit-results { min-width: 0; overflow: hidden; }
.audit-results .table-wrap { width: 100%; }
.audit-results-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.audit-results-head h2 { margin: 0; }
.audit-results-head p { margin: 3px 0 0; font-size: 10px; }
.audit-results-head > span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.audit-table { min-width: 850px; }
.audit-table th:first-child { width: 115px; }
.audit-table th:nth-child(2) { width: 90px; }
.audit-table th:nth-child(5), .audit-table th:nth-child(6) { width: 62px; }
.audit-table th:last-child { position: relative; width: 58px; }
.audit-table time span, .audit-table time small { display: block; }
.audit-detail-toggle {
  min-width: 44px;
  min-height: 36px;
  padding: 6px 8px;
  color: var(--primary);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  transition: background-color 160ms ease;
}
.audit-detail-toggle:hover, .audit-detail-toggle[aria-expanded="true"] { background: var(--primary-soft); }
.audit-detail-row:hover { background: transparent; }
.audit-detail-row td { height: auto; padding: 0 14px 14px; background: #fbfdff; }
.audit-record-detail {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(300px, 1.3fr);
  gap: 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid #c9dbf2;
  border-radius: 6px;
}
.audit-record-detail dl { display: grid; gap: 8px; margin: 0; }
.audit-record-detail dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
}
.audit-record-detail dt, .audit-record-detail > div > span { color: var(--muted); font-size: 10px; font-weight: 500; }
.audit-record-detail dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-family: "Roboto Mono", monospace; font-size: 10px; }
.audit-record-detail pre {
  max-height: 240px;
  margin: 6px 0 0;
  padding: 10px;
  overflow: auto;
  color: #344054;
  background: #f6f8fb;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.audit-record-detail p { margin: 6px 0 0; font-size: 10px; }
.audit-table-footer { padding-inline: 16px; }
.page-button.disabled { color: #aab3c0; background: #f6f8fa; cursor: not-allowed; }
.pagination-gap { min-width: 20px; color: var(--muted); text-align: center; }

/* Account and post directories */
.directory-filter .directory-search { grid-column: auto; }
.accounts-filter {
  grid-template-columns: minmax(300px, 2.2fr) repeat(3, minmax(140px, 1fr)) auto;
}
.accounts-filter .filter-field:not(.directory-search),
.accounts-filter .filter-actions { grid-column: auto; }
.posts-filter {
  grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(125px, 1fr)) auto;
}
.posts-filter.account-scoped {
  grid-template-columns: minmax(300px, 2fr) repeat(3, minmax(140px, 1fr)) auto;
}
.posts-filter .directory-search,
.posts-filter .filter-field:not(.directory-search),
.posts-filter .filter-actions { grid-column: auto; }
.jobs-filter .jobs-search-field { grid-column: span 3; }
.jobs-filter .jobs-status-field { grid-column: span 2; }
.jobs-filter .jobs-date-field { grid-column: span 3; }
.jobs-filter .jobs-delivery-field { grid-column: span 2; }
.jobs-filter .filter-actions { grid-column: span 2; }
.jobs-date-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-field-label { display: block; color: #465266; font-size: 12px; font-weight: 500; }
.date-range-control { min-height: 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; margin-top: 6px; }
.date-range-control label { min-width: 0; margin: 0; }
.date-range-control input { width: 100%; min-width: 0; margin: 0; padding-inline: 8px; cursor: pointer; font-size: 12px; color-scheme: light; }
.date-range-control b { color: var(--muted); font-size: 9px; font-weight: 400; }
.jobs-table th small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 400; white-space: nowrap; }
.job-row-actions { gap: 10px; }
.directory-toolbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.directory-toolbar h2 { margin: 0; font-size: 14px; }
.directory-toolbar span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.directory-toolbar > strong { flex: 0 0 auto; color: #617086; font-family: "Roboto Mono", monospace; font-size: 10px; font-weight: 500; }
.directory-panel .empty { min-height: 280px; }
.active-context {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding: 10px 14px;
  color: #355477;
  background: #f3f8ff;
  border: 1px solid #cadff8;
  border-radius: 6px;
}
.active-context-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #50677a, #172f44);
  border-radius: 50%;
  font-weight: 600;
}
.active-context-avatar img { width: 100%; height: 100%; object-fit: cover; }
.active-context > div { min-width: 0; flex: 1; }
.active-context strong, .active-context span { display: block; }
.active-context strong { color: #294a70; font-size: 11px; }
.active-context span { margin-top: 2px; color: #64778e; font-size: 9px; }
.active-context > a { flex: 0 0 auto; color: var(--primary); font-size: 10px; font-weight: 500; }
.status-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  overflow-x: auto;
  background: #eef2f7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.status-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  color: #536176;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.status-tabs a:hover { color: var(--primary); background: rgba(255,255,255,.65); }
.status-tabs a.active { color: #163d6b; background: #fff; box-shadow: var(--shadow); font-weight: 600; }
.status-tabs strong {
  min-width: 20px;
  padding: 2px 6px;
  color: #607086;
  background: #e8eef6;
  border-radius: 99px;
  font-family: "Roboto Mono", monospace;
  font-size: 9px;
  text-align: center;
}
.account-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; white-space: normal; }
.account-row-actions form { margin: 0; }
.account-row-actions > form .text-link {
  min-height: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 11px;
}
.account-row-actions > form .text-link:disabled { cursor: not-allowed; color: var(--muted); }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 11px;
}
.section-heading h2 { font-size: 18px; }
.section-heading p { margin: 5px 0 0; font-size: 10px; }
.section-heading-actions, .section-heading-actions form { display: flex; }
.monitoring-heading { margin-top: 22px; }
.monitor-summary { margin-bottom: 14px; padding: 0; }
.monitor-summary-main {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line-soft);
}
.monitor-summary-main > strong { font-size: 15px; }
.monitor-summary-main > small { color: var(--muted); font-size: 9px; }
.growth-period-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.growth-period-grid > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line-soft);
}
.growth-period-grid > div:last-child { border-right: 0; }
.growth-period-grid span, .growth-period-grid strong, .growth-period-grid small { display: block; }
.growth-period-grid span { color: var(--muted); font-size: 9px; }
.growth-period-grid strong { margin-top: 4px; font-family: "Roboto Mono", monospace; font-size: 16px; }
.growth-period-grid small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.growth-period-panel { margin-bottom: 14px; padding: 0; }
.growth-period-panel .section-head { padding: 14px 16px; margin: 0; border-bottom: 1px solid var(--line-soft); }
.management-choice { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.inline-unit { color: var(--muted); font-size: 9px; font-weight: 400; }
.growth-positive { color: var(--success); }
.detail-title { min-width: 0; display: flex; align-items: center; gap: 13px; }
.detail-title .account-avatar.large { flex: 0 0 52px; width: 52px; height: 52px; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.signal-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.signal-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  color: #315777;
  background: #f3f8ff;
  border: 1px solid #cddff4;
  border-radius: var(--radius);
}
.signal-card.warning { color: #88500b; background: var(--warning-soft); border-color: #efd3aa; }
.signal-card.success { color: #08743b; background: var(--success-soft); border-color: #c7e8d4; }
.signal-card svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; }
.signal-card strong, .signal-card span { display: block; }
.signal-card strong { font-size: 11px; }
.signal-card span { margin-top: 2px; font-size: 9px; line-height: 1.45; }
.rank-list > a {
  min-height: 58px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 160ms ease;
}
.rank-list > a:last-child { border-bottom: 0; }
.rank-list > a:hover { background: #f7faff; }
.rank-number {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #617086;
  background: #eef2f7;
  border-radius: 50%;
  font-family: "Roboto Mono", monospace;
  font-size: 9px;
}
.rank-copy { min-width: 0; }
.rank-copy strong, .rank-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-copy strong { font-size: 11px; }
.rank-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.rank-value { color: var(--success); font-family: "Roboto Mono", monospace; font-size: 11px; }
.scope-panel { margin-bottom: 0; }
.scope-panel > p { margin: 12px 0 0; font-size: 9px; }
.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.scope-grid > div { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--line-soft); }
.scope-grid > div:last-child { border-right: 0; }
.scope-grid strong, .scope-grid span { display: block; }
.scope-grid strong { font-size: 11px; }
.scope-grid span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.metric-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}
.metric-breakdown > div { padding: 12px; background: #f7f9fc; border: 1px solid var(--line-soft); border-radius: 5px; }
.metric-breakdown span, .metric-breakdown strong { display: block; }
.metric-breakdown span { color: var(--muted); font-size: 9px; }
.metric-breakdown strong { margin-top: 5px; font-family: "Roboto Mono", monospace; font-size: 17px; }
.metric-note { margin: 14px 0 0; font-size: 9px; }
.lifecycle-value { font-family: inherit !important; font-size: 20px !important; letter-spacing: 0 !important; }
.empty.compact { min-height: 150px; padding-block: 48px; }
.audit-policy { position: sticky; top: calc(var(--header-height) + 14px); }
.audit-policy > p { margin: 0 0 12px; font-size: 10px; }
.audit-policy-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 14px;
  padding: 9px;
  color: #3f5e82;
  background: #f1f7ff;
  border: 1px solid #c8ddfa;
  border-radius: 5px;
  font-size: 9px;
  line-height: 1.5;
}
.audit-policy-note svg { flex: 0 0 auto; width: 14px; height: 14px; color: var(--primary); }

/* Empty, error and authentication */
.empty { padding: 42px 20px; color: var(--muted); text-align: center; }
.empty-icon { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto 12px; color: var(--primary); background: var(--primary-soft); border-radius: 50%; }
.empty strong { display: block; color: var(--ink); font-size: 15px; }
.empty p { margin: 5px 0 0; font-size: 11px; }
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 10%, rgba(8, 100, 249, 0.12), transparent 26rem),
    #eef3f8;
}
.auth-shell > .alert { position: fixed; z-index: 5; top: 20px; left: 50%; width: min(520px, calc(100% - 32px)); transform: translateX(-50%); }
.login-card { width: min(920px, 100%); min-height: 540px; display: grid; grid-template-columns: 1.05fr 0.95fr; overflow: hidden; background: #fff; border: 1px solid #d3dde8; border-radius: 9px; box-shadow: 0 22px 60px rgba(17, 39, 64, 0.15); }
.login-intro { display: flex; flex-direction: column; justify-content: center; padding: 52px; color: #fff; background: linear-gradient(150deg, #082d4d, #031a2e); }
.login-intro .eyebrow { color: #74b0f0; }
.login-intro h1 { margin: 25px 0 15px; font-size: 38px; }
.login-intro p { color: #b5c6d7; }
.feature-list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 9px; color: #dce8f3; font-size: 12px; }
.feature-check { width: 20px; height: 20px; display: grid; place-items: center; color: #8fc0f4; background: rgba(8, 100, 249, 0.18); border-radius: 50%; }
.feature-check svg { width: 11px; height: 11px; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 44px; }
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: #09263f; font-size: 19px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 7px; }
.brand-mark::after { content: "视"; font-weight: 700; }
.brand-mark span { display: none; }
.login-form h2 { font-size: 23px; }
.form-lead { margin: 7px 0 22px; font-size: 11px; }
.login-form > small { margin-top: 14px; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }
.error-page { max-width: 600px; margin: 60px auto; padding: 48px; text-align: center; }
.error-code { display: block; color: #c3ceda; font-family: "Roboto Mono", monospace; font-size: 58px; font-weight: 600; }
.error-page h1 { margin: 14px 0 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.icon-back { transform: rotate(180deg); }

@media (max-width: 1200px) {
  .stat-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-side-main { grid-template-columns: 190px minmax(0, 1fr); }
  .layout-side-main > :last-child { grid-column: 2; }
  .settings-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-field { grid-column: span 3; }
  .filter-field.wide { grid-column: span 4; }
  .filter-actions { grid-column: span 4; }
  .accounts-filter,
  .posts-filter,
  .posts-filter.account-scoped {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .accounts-filter .directory-search,
  .posts-filter .directory-search,
  .accounts-filter .filter-actions,
  .posts-filter .filter-actions { grid-column: 1 / -1; }
  .dashboard-command { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr); }
  .dashboard-main-grid, .dashboard-insights-grid { grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr); }
  .job-file-summary { grid-template-columns: minmax(210px, 0.75fr) minmax(420px, 1.5fr); }
  .dashboard-task-item { grid-template-columns: 38px minmax(150px, 1fr) minmax(105px, 0.65fr) auto 16px; }
  .dashboard-task-phase { display: none; }
  .job-result-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .job-result-summary article:nth-child(3n) { border-right: 0; }
  .job-result-summary article:nth-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
  .growth-period-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .growth-period-grid > div { border-bottom: 1px solid var(--line-soft); }
  .growth-period-grid > div:nth-child(4n) { border-right: 0; }
  .growth-period-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
}

@media (max-width: 900px) {
  .lifecycle-card { grid-template-columns: 1fr auto; }
  .lifecycle-impact { grid-column: 1 / -1; grid-row: 2; }
  .sidebar { width: 244px; transform: translateX(-105%); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25); }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidebar { transform: translateX(0); }
  /* 折叠只在宽屏生效（见 min-width:901px 那组规则），窄屏留着这个按钮会变成
     点了没反应的死按钮，直接隐藏。 */
  .collapse-button { display: none; }
  .workspace { margin-left: 0; }
  .sidebar-scrim {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: block;
    visibility: hidden;
    cursor: default;
    background: rgba(8, 21, 35, 0.52);
    border: 0;
    opacity: 0;
    transition: opacity 200ms ease, visibility 200ms ease;
  }
  body.nav-open .sidebar-scrim { visibility: visible; opacity: 1; }
  .top-header { justify-content: flex-end; padding-inline: 14px; }
  .breadcrumb { display: none; }
  .mobile-brand { display: block; margin-right: auto; color: #0a2a45; font-size: 17px; font-weight: 700; }
  .nav-toggle { width: 40px; height: 40px; display: grid; place-items: center; color: #334155; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
  .nav-toggle .close-icon { display: none; }
  body.nav-open .nav-toggle .menu-icon { display: none; }
  body.nav-open .nav-toggle .close-icon { display: block; }
  .header-actions { gap: 8px; }
  .header-icon { display: none; }
  .wechat-badge { padding-inline: 8px; }
  .layout-main-side, .workspace-grid { grid-template-columns: 1fr; }
  .dashboard-command, .dashboard-main-grid, .dashboard-insights-grid { grid-template-columns: 1fr; }
  .metric-definition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-definition-grid article:nth-child(2) { border-right: 0; }
  .metric-definition-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-metrics article:nth-child(2) { border-right: 0; }
  .dashboard-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .sticky { position: static; }
  .audit-policy { position: static; }
  .stat-grid, .stat-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .job-file-summary { grid-template-columns: 1fr; gap: 12px; }
  .posts-table th:nth-child(6), .posts-table td:nth-child(6),
  .jobs-table th:nth-child(5), .jobs-table td:nth-child(5),
  .jobs-table th:nth-child(6), .jobs-table td:nth-child(6) { display: none; }
}

@media (max-width: 640px) {
  .runtime-recovery-alert { grid-template-columns: auto minmax(0, 1fr); }
  .runtime-recovery-alert .button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .lifecycle-guide { align-items: flex-start; }
  .lifecycle-card { grid-template-columns: 1fr; gap: 13px; }
  .lifecycle-impact { grid-column: auto; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lifecycle-actions { align-items: stretch; flex-direction: column; }
  .lifecycle-actions form, .lifecycle-actions .button, .danger-zone { width: 100%; }
  .restore-zone { width: 100%; }
  .restore-popover { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .danger-popover { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  body { font-size: 14px; }
  .integration-navigation { grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; }
  .integration-provider-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 6px; }
  .provider-tab { min-width: 0; min-height: 56px; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 7px; padding: 7px; }
  .provider-tab .channel-logo { width: 30px; height: 30px; }
  .provider-tab span strong { font-size: 10px; }
  .provider-tab span small { white-space: nowrap; }
  .integration-view-tabs { padding: 6px; border-top: 1px solid var(--line-soft); border-left: 0; }
  .integration-view-tabs a { min-height: 44px; flex: 1; justify-content: center; }
  .initialization-lock { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
  .initialization-lock form { grid-column: 1 / -1; width: 100%; }
  .initialization-lock form .button { width: 100%; }
  .partial-data-actions { grid-column: 1 / -1; width: 100%; }
  .partial-data-actions form { display: flex; flex: 1 1 100%; }
  .content { padding: 15px 12px 28px; }
  .top-header { height: 56px; }
  .user-menu { display: none; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 13px; }
  .page-head h1 { font-size: 24px; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .page-actions form { display: flex; flex: 1 1 100%; }
  .page-actions form .button { width: 100%; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .section-heading-actions, .section-heading-actions form, .section-heading-actions .button { width: 100%; }
  .monitor-summary-main { grid-template-columns: 1fr; gap: 7px; }
  .growth-period-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .growth-period-grid > div:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .growth-period-grid > div:nth-child(even) { border-right: 0; }
  .growth-period-grid > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
  .growth-period-grid > div:last-child { border-bottom: 0; }
  .stat-grid, .stat-grid.five { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { min-height: 86px; gap: 10px; padding: 12px; }
  .stat-icon { width: 38px; height: 38px; }
  .stat-value strong { font-size: 22px; }
  .job-file-summary { padding: 13px; }
  .job-file-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .job-file-summary dl > div { padding-inline: 12px; }
  .job-file-summary dl > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .panel { padding: 13px; }
  .live-comments-panel { padding: 0; }
  .live-comments-head { align-items: stretch; flex-direction: column; gap: 13px; padding: 16px 14px; }
  .live-comments-head .button { width: 100%; }
  .live-comments-privacy { align-items: flex-start; padding: 10px 14px; }
  .live-comments-status { min-height: 52px; padding: 12px 14px; }
  .live-comments-list { padding-inline: 14px; }
  .live-comment { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding-block: 17px; }
  .comment-avatar { width: 40px; height: 40px; }
  .comment-content { font-size: 14px; }
  .comment-replies { margin-left: -50px; padding: 11px; }
  .live-comments-footer { align-items: stretch; flex-direction: column; padding: 12px 14px; }
  .live-comments-footer .button { width: 100%; }
  .integration-navigation, .integration-list-panel, .integration-form-panel, .channel-tutorial { padding: 0; }
  .two-column, .quick-actions, .candidate-grid, .choice-grid, .steps { grid-template-columns: 1fr; }
  .candidate-card { flex-wrap: wrap; }
  .candidate-card > div:nth-child(2) { flex-basis: calc(100% - 50px); }
  .candidate-card-actions { width: 100%; justify-content: flex-end; padding-left: 49px; }
  .candidate-card-actions .button,
  .candidate-card-actions .candidate-manage > summary { min-height: 44px; }
  .scope-grid, .metric-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-grid > div:nth-child(2) { border-right: 0; }
  .scope-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .detail-title { align-items: flex-start; }
  .layout-side-main { grid-template-columns: 1fr; }
  .layout-side-main > :last-child { grid-column: auto; }
  .settings-nav { position: static; min-height: auto; display: flex; overflow-x: auto; }
  .settings-nav a { flex: 0 0 auto; }
  .settings-aside { grid-template-columns: 1fr; }
  .filter-bar,
  .accounts-filter,
  .posts-filter,
  .posts-filter.account-scoped { grid-template-columns: 1fr; padding: 12px; }
  .filter-field, .filter-field.wide, .filter-field.narrow, .filter-actions { grid-column: 1; }
  .history-filter .history-search-field,
  .history-filter .filter-field:not(.history-search-field),
  .history-filter .filter-actions { grid-column: 1; }
  .directory-filter .directory-search,
  .accounts-filter .filter-field:not(.directory-search),
  .accounts-filter .filter-actions,
  .posts-filter .filter-field:not(.directory-search),
  .posts-filter .filter-actions,
  .jobs-filter .filter-field,
  .jobs-filter .filter-actions { grid-column: 1; }
  .filter-actions { justify-content: stretch; }
  .filter-actions .button { flex: 1; }
  .count-control { grid-template-columns: 1fr; }
  .setting-field { grid-template-columns: 1fr; gap: 7px; padding: 14px; }
  .setting-field > label, .setting-field > legend { margin-top: 0; }
  .setting-options, .managed-settings { grid-template-columns: 1fr; }
  .managed-settings div:nth-child(odd) { border-right: 0; }
  .setting-actions { align-items: stretch; flex-direction: column; padding: 14px; }
  .setting-actions .button { width: 100%; }
  .integration-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 14px; }
  .integration-card .channel-logo { width: 38px; height: 38px; }
  .integration-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .integration-actions .button { min-height: 44px; }
  .integration-form-panel input, .integration-form-panel select,
  .integration-form-panel .button { min-height: 44px; }
  .post-list + .alert { margin-top: 12px; }
  .post-list { max-height: none; }
  .post-list + * { scroll-margin-top: 70px; }
  .post-list .post-row { min-height: 72px; }
  form[data-job-form] .section-head { align-items: stretch; flex-direction: column; }
  .preview-list-tools { width: 100%; justify-items: stretch; }
  .preview-sort-control { width: 100%; }
  .preview-title-filter, .preview-title-filter input { width: 100%; }
  .preview-sort-control select { flex: 1; width: auto; min-height: 44px; }
  .preview-progress-copy { grid-template-columns: 18px minmax(0, 1fr); }
  .preview-progress-copy .button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .post-list .post-row { display: grid; grid-template-columns: auto 84px minmax(0, 1fr); }
  .post-list .post-metrics { grid-column: 2 / -1; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .post-list .post-metric { grid-template-columns: 13px minmax(0, 1fr); grid-template-rows: auto auto; }
  .post-list .post-metric svg { grid-row: 1 / span 2; }
  .post-list .post-metric strong { font-size: 11px; }
  .selection-toggle { width: 100%; min-height: 44px; justify-content: center; }
  .job-result-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-result-summary article { min-height: 82px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .job-result-summary article:nth-child(2n) { border-right: 0; }
  .job-result-summary article:nth-last-child(-n+2) { border-bottom: 0; }
  .job-result-table { min-width: 100%; table-layout: fixed; }
  .job-result-table th:nth-child(2), .job-result-table td:nth-child(2),
  .job-result-table th:nth-child(4), .job-result-table td:nth-child(4),
  .job-result-table th:nth-child(5), .job-result-table td:nth-child(5),
  .job-result-table th:nth-child(6), .job-result-table td:nth-child(6),
  .job-result-table th:nth-child(8), .job-result-table td:nth-child(8) { display: none; }
  .job-result-table th:nth-child(1) { width: auto; }
  .job-result-table th:nth-child(3) { width: 64px; }
  .job-result-table th:nth-child(7) { width: 70px; }
  .job-result-table th:nth-child(9) { width: 58px; }
  .job-result-table th, .job-result-table td { padding-inline: 7px; }
  .job-file-list article { grid-template-columns: 38px minmax(0, 1fr); }
  .job-file-list article .button { grid-column: 1 / -1; min-height: 40px; }
  .integration-config-summary { display: grid; gap: 4px; }
  .history-chart-panel .chart-head { align-items: flex-start; flex-direction: column; }
  .history-chart-panel .chart-legend { justify-content: flex-start; padding-top: 0; }
  .history-chart-canvas { margin-inline: -13px; padding-inline: 8px; }
  .history-chart { min-width: 600px; }
  .metric-definition-grid { grid-template-columns: 1fr; }
  .metric-definition-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .metric-definition-grid article:last-child { border-bottom: 0; }
  .usage-cost { min-height: 86px; }
  .tutorial-item > summary { min-height: 68px; padding: 11px 13px; }
  .tutorial-content { padding: 13px; }
  .credential-map { grid-template-columns: 1fr; }
  .credential-map > div { grid-template-columns: 105px minmax(0, 1fr); }
  .credential-map > div:nth-child(odd) { border-right: 0; }
  .credential-map > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .credential-map > div:last-child { border-bottom: 0; }
  .tutorial-troubleshooting dl > div { grid-template-columns: 1fr; gap: 3px; }
  .delivery-rules { grid-template-columns: 1fr; }
  .delivery-rules > div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .delivery-rules > div:last-child { border-bottom: 0; }
  .comparison-row { grid-template-columns: 20px 90px 1fr 45px; gap: 6px; }
  .table-wrap { margin-inline: -13px; padding-inline: 13px; }
  .table-footer { align-items: flex-start; flex-direction: column; }
  .directory-toolbar { align-items: flex-start; flex-direction: column; gap: 5px; }
  .active-context { align-items: flex-start; flex-wrap: wrap; }
  .active-context > a { min-height: 36px; display: inline-flex; align-items: center; margin-left: 49px; }
  .accounts-table, .posts-table { min-width: 100%; table-layout: fixed; }
  .accounts-table th:nth-child(2), .accounts-table td:nth-child(2),
  .accounts-table th:nth-child(3), .accounts-table td:nth-child(3),
  .accounts-table th:nth-child(4), .accounts-table td:nth-child(4),
  .posts-table th:nth-child(2), .posts-table td:nth-child(2),
  .posts-table th:nth-child(3), .posts-table td:nth-child(3),
  .posts-table th:nth-child(5), .posts-table td:nth-child(5),
  .posts-table th:nth-child(6), .posts-table td:nth-child(6) { display: none; }
  .accounts-table th:nth-child(1) { width: auto; }
  .accounts-table th:nth-child(5) { width: 132px; }
  .accounts-table th:nth-child(6) { width: 92px; }
  .account-management-table th:nth-child(7) { width: 126px; }
  .account-management-table th:nth-child(5), .account-management-table td:nth-child(5),
  .account-management-table th:nth-child(6), .account-management-table td:nth-child(6) { display: none; }
  .account-management-table { min-width: 100%; }
  .account-management-table th:nth-child(7), .account-management-table td:nth-child(7) { display: table-cell; }
  .account-row-actions { align-items: flex-start; flex-direction: column; gap: 1px; white-space: normal; }
  .account-row-actions > form { display: none; }
  .posts-table th:nth-child(1) { width: auto; }
  .posts-table th:nth-child(4) { width: 105px; }
  .posts-table th:nth-child(7) { width: 104px; }
  .accounts-table th, .accounts-table td,
  .posts-table th, .posts-table td { padding-inline: 8px; }
  .accounts-table .row-account, .posts-table .row-account { min-width: 0; }
  .post-cover { flex-basis: 32px; width: 32px; height: 42px; }
  .table-actions { align-items: flex-start; flex-direction: column; gap: 1px; white-space: normal; }
  .table-actions .text-link { min-height: 32px; }
  .inline-action-form .text-link { min-height: 40px; }
  .secondary-link { display: none; }
  .row-primary-link > svg { display: none; }
  .directory-panel .table-wrap { margin-inline: 0; padding-inline: 0; }
  .directory-panel .table-footer { margin-inline: 0; }
  .directory-panel .pagination { max-width: 100%; overflow-x: auto; }
  .jobs-table { min-width: 100%; table-layout: fixed; }
  .jobs-table th:nth-child(2), .jobs-table td:nth-child(2),
  .jobs-table th:nth-child(3), .jobs-table td:nth-child(3),
  .jobs-table th:nth-child(5), .jobs-table td:nth-child(5),
  .jobs-table th:nth-child(6), .jobs-table td:nth-child(6),
  .jobs-table th:nth-child(7), .jobs-table td:nth-child(7) { display: none; }
  .jobs-table th:nth-child(1) { width: auto; }
  .jobs-table th:nth-child(4) { width: 92px; }
  .jobs-table th:nth-child(8) { width: 76px; }
  .jobs-table th:nth-child(9) { width: 94px; }
  .jobs-table th, .jobs-table td { padding-inline: 7px; }
  .jobs-table .row-account { min-width: 0; }
  .jobs-table .progress-inline { min-width: 0; }
  .job-row-actions { align-items: flex-start; }
  .login-card { max-width: 520px; grid-template-columns: 1fr; min-height: auto; }
  .login-intro { display: none; }
  .login-form { padding: 36px 24px; }
  .auth-shell { padding: 14px; }
  .post-row img, .cover-placeholder { flex-basis: 32px; width: 32px; height: 42px; }
  .dashboard-page-head .page-actions { display: none; }
  .dashboard-command-main { min-height: auto; padding: 22px 16px; }
  .dashboard-command-main h2 { font-size: 22px; }
  .dashboard-search-control { grid-template-columns: 1fr; }
  .dashboard-search-control .button { width: 100%; }
  .dashboard-runtime { padding: 16px; }
  .dashboard-metrics { gap: 0; }
  .dashboard-metrics article { min-height: 82px; padding: 12px; }
  .dashboard-task-item { grid-template-columns: 38px minmax(0, 1fr) auto 15px; padding-inline: 12px; }
  .dashboard-task-progress, .dashboard-task-phase { display: none; }
  .dashboard-shortcuts > div:last-child { grid-template-columns: 1fr 1fr; }
  .dashboard-account-list > a { grid-template-columns: 34px minmax(0, 1fr) 70px 15px; padding-inline: 12px; }
  .dashboard-account-list .dashboard-account-total { display: none; }
  .dashboard-delta-grid { padding-inline: 12px; }
  .audit-record-detail { grid-template-columns: 1fr; }
  .audit-results-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .audit-table-footer { align-items: stretch; }
  .audit-table-footer .pagination { max-width: 100%; overflow-x: auto; }
  .audit-filter-bar input, .audit-filter-bar select, .audit-filter-bar .button { min-height: 44px; }
  .audit-table { min-width: 100%; table-layout: fixed; }
  .audit-table th:nth-child(2), .audit-table td:nth-child(2),
  .audit-table th:nth-child(4), .audit-table td:nth-child(4) { display: none; }
  .audit-table th:first-child { width: 82px; }
  .audit-table th:nth-child(3) { width: auto; }
  .audit-table th:nth-child(5) { width: 38px; }
  .audit-table th:nth-child(6) { width: 44px; }
  .audit-table th:last-child { width: 48px; }
  .audit-table th, .audit-table td { padding-inline: 7px; }
  .audit-table td strong { white-space: normal; }
  .audit-table .tag { padding-inline: 5px; }
  .audit-detail-row td { display: table-cell; padding: 0 7px 10px; }
}

@media (max-width: 390px) {
  .stat-grid, .stat-grid.five { grid-template-columns: 1fr; }
  .date-range-control { grid-template-columns: 1fr; }
  .date-range-control b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Live validation console: temporary, bounded operator control plane. */
.live-validation-head { align-items: flex-start; gap: 1rem; }
.validation-pilot-note { display: flex; align-items: flex-start; gap: .75rem; margin: 0 0 1rem; padding: .9rem 1rem; border: 1px solid #d9e3ec; border-radius: 14px; background: #f7fafc; color: #506273; }
.validation-pilot-note svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; margin-top: .12rem; color: #58758d; }
.validation-pilot-note p { margin: 0; line-height: 1.65; }
.validation-pilot-note strong { color: #33485b; }
.validation-scope-badge { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.25rem; padding: .5rem .75rem; border: 1px solid #f0cf98; border-radius: 999px; color: #805718; background: #fff9ec; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.validation-scope-badge svg, .validation-safety-note svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.validation-limit-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 1rem; border: 1px solid #dce5ee; border-radius: 12px; background: #f8fbfd; overflow: hidden; }
.validation-limit-strip div { display: flex; align-items: baseline; justify-content: center; gap: .55rem; padding: .8rem 1rem; border-right: 1px solid #dce5ee; }
.validation-limit-strip div:last-child { border-right: 0; }
.validation-limit-strip strong { color: #0b3a60; font-family: "Roboto Mono", monospace; font-size: 1rem; }
.validation-limit-strip span { color: #607488; font-size: .8rem; }
.validation-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 1rem; align-items: start; }
.validation-control-panel, .validation-guide-panel { min-width: 0; }
.validation-state-block { display: flex; align-items: center; gap: 1rem; margin: .5rem 0 1.25rem; padding: 1rem; border: 1px solid #dce5ee; border-radius: 12px; background: #f8fbfd; }
.validation-state-block p { margin: .25rem 0 0; color: #607488; }
.validation-state-icon { display: grid; place-items: center; flex: 0 0 3rem; height: 3rem; border-radius: 50%; color: #52708a; background: #e7eef4; }
.validation-state-icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.validation-state-icon.recording, .validation-state-icon.observing, .validation-state-icon.starting, .validation-state-icon.checking_tools { color: #fff; background: #c34335; box-shadow: 0 0 0 5px rgba(195, 67, 53, .11); }
.validation-state-icon.completed { color: #fff; background: #2d7d62; }
.validation-state-icon.failed { color: #fff; background: #a43d3d; }
.validation-phase.recording, .validation-phase.observing, .validation-phase.starting, .validation-phase.checking_tools, .validation-phase.waiting_for_live, .validation-phase.waiting_for_recording_live { color: #87520b; background: #fff3d9; }
.validation-phase.failed { color: #973535; background: #fde9e7; }
.validation-progress-wrap { margin-bottom: 1rem; }
.validation-progress-meta { display: flex; justify-content: space-between; margin-bottom: .45rem; color: #607488; font-size: .78rem; }
.validation-progress-meta strong { color: #294c67; font-family: "Roboto Mono", monospace; }
.validation-progress { height: .5rem; border-radius: 999px; background: #e7eef4; overflow: hidden; }
.validation-progress span { display: block; height: 100%; border-radius: inherit; background: #c34335; transition: width .2s ease; }
.validation-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; margin: 0 0 1rem; }
.validation-metrics div { padding: .75rem; border: 1px solid #e1e8ef; border-radius: 10px; }
.validation-metrics dt { margin-bottom: .35rem; color: #708294; font-size: .72rem; font-weight: 500; }
.validation-metrics dd { margin: 0; color: #183d5a; font-size: .95rem; font-weight: 600; }
.validation-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.validation-feedback { min-height: 1.25rem; margin: .75rem 0 0; color: #587187; font-size: .82rem; }
.validation-guide-panel h2 { margin-bottom: 1rem; }
.validation-steps { display: grid; gap: .85rem; padding: 0; list-style: none; }
.validation-steps li { display: grid; grid-template-columns: 1.75rem 1fr; gap: .65rem; }
.validation-steps > li > span { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; color: #fff; background: #0d436c; font-family: "Roboto Mono", monospace; font-size: .75rem; }
.validation-steps p { margin: .2rem 0 0; color: #65798b; font-size: .82rem; }
.validation-safety-note { display: flex; gap: .65rem; margin-top: 1rem; padding: .8rem; border-radius: 10px; color: #79541c; background: #fff8e8; }
.validation-safety-note svg { flex: 0 0 1rem; margin-top: .15rem; }
.validation-safety-note p { margin: 0; font-size: .8rem; }
.validation-readiness { margin-top: 1rem; }
.readiness-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.readiness-item { display: flex; align-items: center; gap: .7rem; padding: .75rem; border: 1px solid #e1e8ef; border-radius: 10px; }
.readiness-item > span { flex: 0 0 .65rem; height: .65rem; border-radius: 50%; background: #9aa9b6; }
.readiness-item.ready > span { background: #2d8a69; box-shadow: 0 0 0 4px rgba(45, 138, 105, .12); }
.readiness-item.waiting > span { background: #d08b26; }
.readiness-item.blocked > span { background: #b64a42; }
.readiness-item p { margin: .15rem 0 0; color: #6a7d8e; font-size: .78rem; }
@media (max-width: 1100px) { .validation-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } .readiness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .validation-layout { grid-template-columns: 1fr; } .validation-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .live-validation-head { display: block; } .validation-scope-badge { margin-top: .8rem; white-space: normal; } .validation-limit-strip { grid-template-columns: 1fr; } .validation-limit-strip div { justify-content: flex-start; border-right: 0; border-bottom: 1px solid #dce5ee; } .validation-limit-strip div:last-child { border-bottom: 0; } .readiness-grid { grid-template-columns: 1fr; } .validation-actions .button { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .validation-progress span { transition: none; } }

/* Formal live recording center and detail. */
.live-center-head, .live-detail-head { align-items: flex-start; }
.live-center { display: grid; min-width: 0; gap: 1rem; }
.live-center > *, .live-detail > * { min-width: 0; max-width: 100%; }
.live-readiness-bar { display: grid; grid-template-columns: 1fr 1fr minmax(220px, .75fr); gap: 1px; overflow: hidden; border: 1px solid #dce5eb; border-radius: 12px; background: #dce5eb; }
.live-readiness-bar > div, .live-readiness-bar > details { min-width: 0; padding: .8rem 1rem; background: #fff; }
.live-readiness-bar > div { display: grid; grid-template-columns: .6rem auto 1fr; gap: .55rem; align-items: center; }
.live-readiness-bar span, .live-readiness-bar summary { color: #6b7e8d; font-size: .75rem; }
.live-readiness-bar strong { min-width: 0; overflow: hidden; color: #24475f; font-size: .8rem; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.live-readiness-bar .status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #c68438; }
.live-readiness-bar .status-dot.ready { background: #3b8a6e; }
.live-readiness-bar summary { cursor: pointer; font-weight: 600; }
.live-readiness-bar p { margin: .55rem 0 0; color: #697d8d; font-size: .76rem; }
.live-primary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.5rem; align-items: start; }
.live-primary h2, .live-library h2, .live-identity-panel h2, .live-media-panel h2, .live-transcript-panel h2 { margin: .15rem 0 .35rem; }
.live-primary-copy > p { max-width: 720px; margin: 0; color: #61778a; }
.live-primary-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.live-feedback { min-height: 1.25rem; padding-top: .45rem; font-size: .8rem; }
.live-active-card { grid-column: 1 / -1; padding: 1rem; border: 1px solid #dce6ed; border-radius: 12px; background: #f8fbfc; }
.live-active-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem 1rem; align-items: center; color: #506c80; font-size: .82rem; }
.live-active-head > span:not(.pill), .live-active-head > small { min-width: 0; overflow-wrap: anywhere; }
.live-active-head > span:not(.pill) { color: #24475f; font-weight: 650; }
.live-active-head > small { grid-column: 2; color: #708392; }
.live-progress { height: .55rem; margin: 1rem 0; border-radius: 999px; background: #e5edf2; overflow: hidden; }
.live-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: #bd443b; transition: width .2s ease; }
.live-metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; margin: 0; }
.live-metric-grid div { min-width: 0; padding: .75rem; border: 1px solid #e0e8ee; border-radius: 10px; }
.live-metric-grid dt { margin-bottom: .3rem; color: #758898; font-size: .72rem; }
.live-metric-grid dd { margin: 0; overflow-wrap: anywhere; color: #183d59; font-weight: 600; }
.live-action-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.live-view-tabs { display: flex; gap: .25rem; margin: .8rem 0 1rem; padding: .25rem; overflow-x: auto; border-radius: 10px; background: #eef3f6; }
.live-view-tabs a, .live-view-tabs button { flex: 0 0 auto; padding: .55rem .8rem; border: 0; border-radius: 8px; color: #587084; background: transparent; font: inherit; font-size: .8rem; text-decoration: none; cursor: pointer; }
.live-view-tabs a.active, .live-view-tabs button.active { color: #153f5c; background: #fff; box-shadow: 0 1px 4px rgba(20, 54, 78, .1); font-weight: 600; }
.live-library { min-width: 0; overflow: hidden; }
.live-library .table-wrap { max-width: 100%; overflow-x: auto; }
.live-history-table { min-width: 970px; }
.live-select-cell { width: 38px; text-align: center; }
.live-select-cell input { width: 1rem; height: 1rem; accent-color: #0d5d83; cursor: pointer; }
.live-bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 .75rem; padding: .7rem .8rem; border: 1px solid #cadce7; border-radius: 10px; background: #f3f8fb; }
.live-bulk-toolbar[hidden] { display: none; }
.live-bulk-toolbar strong { color: #274d66; font-size: .82rem; }
.live-bulk-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.live-bulk-actions .button { min-height: 2.1rem; padding: .45rem .7rem; font-size: .78rem; }
.live-row-actions { white-space: nowrap; }
.live-row-actions > * + * { margin-left: .55rem; }
.live-library-empty { display: grid; justify-items: center; gap: .45rem; min-height: 190px; place-content: center; color: #718596; text-align: center; }
.live-library-empty svg { width: 2.4rem; height: 2.4rem; fill: none; stroke: #8da0ae; stroke-width: 1.7; }
.live-library-empty p { margin: 0; font-size: .82rem; }
.button-link { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.danger-text { color: #a33f37; }
.live-delete-dialog, .live-transcription-dialog { width: min(540px, calc(100vw - 2rem)); padding: 1.25rem; border: 0; border-radius: 14px; box-shadow: 0 24px 70px rgba(16, 42, 61, .28); }
.live-delete-dialog::backdrop, .live-transcription-dialog::backdrop { background: rgba(10, 30, 45, .5); }
.live-delete-dialog h2, .live-transcription-dialog h2 { margin: 0 0 .65rem; }
.live-delete-dialog p, .live-transcription-dialog p { color: #61778a; }
.live-delete-dialog label, .live-transcription-dialog label { display: grid; gap: .35rem; margin-top: .8rem; color: #36546b; font-size: .82rem; }
.live-delete-dialog input, .live-transcription-dialog select { width: 100%; padding: .7rem .75rem; border: 1px solid #cdd9e2; border-radius: 8px; background: #fff; }
.live-dialog-feedback { min-height: 1.2rem; margin-bottom: 0; color: #9a4139 !important; font-size: .8rem; }
.live-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 1rem; align-items: start; }
.live-identity-panel { grid-column: 1 / -1; }
.live-player { display: block; width: 100%; max-height: min(68vh, 720px); margin: .8rem 0; border-radius: 12px; background: #07131c; }
.live-fact-grid, .live-transcript-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0 0; }
.live-fact-grid div, .live-transcript-meta div { min-width: 0; padding: .7rem; border: 1px solid #e0e8ee; border-radius: 9px; }
.live-fact-grid .wide { grid-column: 1 / -1; }
.live-fact-grid dt, .live-transcript-meta dt { color: #758898; font-size: .7rem; }
.live-fact-grid dd, .live-transcript-meta dd { margin: .25rem 0 0; overflow-wrap: anywhere; color: #24475f; font-size: .82rem; font-weight: 600; }
.live-copy-value { display: flex; align-items: center; gap: .55rem; }
.live-copy-value code { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-copy-value [data-live-copy-button] { flex: 0 0 auto; }
.live-field-sources { margin-top: .8rem; border-top: 1px solid #e0e8ee; color: #61778a; font-size: .78rem; }
.live-field-sources summary { width: fit-content; margin-top: .75rem; color: #315f7a; cursor: pointer; font-weight: 600; }
.live-field-sources dl { display: grid; gap: .45rem; margin: .7rem 0 0; }
.live-field-sources dl > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .6rem; padding: .45rem .6rem; border-radius: 7px; background: #f7fafb; }
.live-field-sources dt { color: #758898; }
.live-field-sources dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #3f5e72; }
.live-transcript-intro, [data-transcription-feedback] { color: #61778a; font-size: .82rem; }
.live-transcript-result pre { max-height: 440px; margin: 0; padding: 1rem; overflow: auto; border: 1px solid #dfe7ec; border-radius: 10px; color: #284a61; background: #f8fafb; font-family: "Noto Sans SC", sans-serif; font-size: .84rem; line-height: 1.8; white-space: pre-wrap; }
.live-transcript-timeline { display: grid; gap: .7rem; max-height: 440px; padding: 0; overflow: auto; list-style: none; }
.live-transcript-timeline li { display: grid; grid-template-columns: 80px 1fr; gap: .7rem; padding-bottom: .7rem; border-bottom: 1px solid #e5ebef; }
.live-transcript-timeline time { color: #62798a; font: 600 .72rem "Roboto Mono", monospace; }
@media (max-width: 1180px) { .live-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .live-detail { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .live-readiness-bar { grid-template-columns: 1fr; } .live-primary { grid-template-columns: 1fr; } .live-primary-actions { justify-content: flex-start; } .live-metric-grid, .live-fact-grid, .live-transcript-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .live-metric-grid, .live-fact-grid, .live-transcript-meta { grid-template-columns: 1fr; } .live-field-sources dl > div { grid-template-columns: 1fr; gap: .2rem; } .live-action-row .button, .live-primary-actions .button { flex: 1 1 100%; justify-content: center; } .live-transcript-timeline li { grid-template-columns: 1fr; gap: .2rem; } .live-bulk-toolbar { align-items: stretch; flex-direction: column; } .live-bulk-actions { justify-content: stretch; } .live-bulk-actions .button { flex: 1 1 auto; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .live-progress span { transition: none; } }

/* Content research workspace. */
.research-safety-note { display: flex; gap: .55rem; margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid #c9dfe9; border-radius: 10px; color: #456578; background: #f3f9fb; font-size: .82rem; }
.research-safety-note strong { flex: 0 0 auto; color: #194a65; }
.research-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); gap: 1rem; align-items: start; }
.research-layout > *, .research-layout main, .research-layout aside { min-width: 0; }
.research-editor-panel textarea { resize: vertical; font-family: "Noto Sans SC", sans-serif; line-height: 1.75; }
.research-form-actions { justify-content: flex-end; }
.research-metadata-panel form { margin-top: 1rem; }
.research-metadata-panel label > small { display: block; margin-top: .35rem; color: #718596; font-weight: 400; }
.research-favorite { display: flex; align-items: center; gap: .55rem; }
.research-favorite input { flex: 0 0 auto; width: 1rem; min-height: 1rem; height: 1rem; margin: 0; accent-color: var(--primary); }
.research-source-panel dl { margin: .8rem 0 0; }
.research-source-panel dl > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .5rem; padding: .55rem 0; border-bottom: 1px solid #e5ebef; }
.research-source-panel dt { color: #748797; font-size: .75rem; }
.research-source-panel dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #31546a; font-size: .8rem; }
.research-history-panel table small { display: block; margin-top: .25rem; color: #788b99; }
.research-conflict { border-color: #edc886; background: #fffaf1; }
.research-conflict > p { color: #765c31; }
.research-compare { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.research-compare > div { min-width: 0; }
.research-compare pre { max-height: 320px; padding: .8rem; overflow: auto; border: 1px solid #ead9bb; border-radius: 8px; color: #4e4536; background: #fff; font: inherit; font-size: .8rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.research-batch-form { max-width: 920px; }
.research-batch-form fieldset { margin: 1rem 0; padding: 0; border: 0; }
.research-batch-form legend { margin-bottom: .6rem; color: #465266; font-size: .8rem; font-weight: 600; }
.research-candidate-list { display: grid; gap: .55rem; }
.research-candidate-list label { display: flex; gap: .7rem; align-items: flex-start; margin: 0; padding: .8rem; border: 1px solid #dce5eb; border-radius: 9px; cursor: pointer; }
.research-candidate-list label:has(input:checked) { border-color: #8eb8d0; background: #f2f8fb; }
.research-candidate-list input { flex: 0 0 auto; width: 1rem; min-height: 1rem; height: 1rem; margin: .15rem 0 0; accent-color: var(--primary); }
.research-candidate-list span { min-width: 0; }
.research-candidate-list small { display: block; margin-top: .25rem; color: #748797; font-weight: 400; }
.research-preview { max-width: 440px; color: #536c7d; line-height: 1.55; white-space: normal; }
@media (max-width: 900px) { .research-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .research-safety-note { flex-direction: column; } .research-compare { grid-template-columns: 1fr; } .research-form-actions .button { flex: 1 1 100%; justify-content: center; } }

/* Live content workspace: stage-led editing, generation and review. */
.live-content-head h1 { max-width: 780px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-content-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 1rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  list-style: none;
}
.live-content-workflow li { position: relative; min-width: 0; display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; color: #718493; }
.live-content-workflow li + li { border-left: 1px solid #e2e9ee; }
.live-content-workflow li > span { flex: 0 0 1.75rem; height: 1.75rem; display: grid; place-items: center; border: 1px solid #cad5dd; border-radius: 50%; color: #738695; background: #f7f9fa; font: 600 .72rem "Roboto Mono", monospace; }
.live-content-workflow li div { min-width: 0; }
.live-content-workflow strong, .live-content-workflow small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-content-workflow strong { color: #526a7b; font-size: .82rem; }
.live-content-workflow small { margin-top: .16rem; font-size: .7rem; }
.live-content-workflow li.completed > span { color: #fff; border-color: #3f8b70; background: #3f8b70; }
.live-content-workflow li.completed strong { color: #2f6956; }
.live-content-workflow li.active { background: #f2f8fc; }
.live-content-workflow li.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; content: ""; background: #176b98; }
.live-content-workflow li.active > span { color: #fff; border-color: #176b98; background: #176b98; }
.live-content-workflow li.active strong { color: #174b69; }

.live-content-media-review { scroll-margin-top: calc(var(--header-height) + 1rem); }
.live-content-media-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 1rem; align-items: stretch; }
.live-content-player-wrap { min-width: 0; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #071923; }
.live-content-player-wrap video { min-width: 0; width: 100%; max-width: 100%; max-height: min(58vh, 560px); display: block; aspect-ratio: 16 / 9; object-fit: contain; background: #07131c; }
.live-content-review-console { min-width: 0; display: flex; align-items: flex-start; flex-direction: column; padding: 1rem; border: 1px solid #dce6ec; border-radius: 12px; background: linear-gradient(145deg, #f5f9fb, #fff); }
.live-content-review-console > strong { color: #294f66; font-size: .94rem; line-height: 1.5; }
.live-content-review-console > strong[data-state="playing"] { color: #176b98; }
.live-content-review-console > strong[data-state="success"] { color: #34715c; }
.live-content-review-console > strong[data-state="error"] { color: #a4423b; }
.live-content-review-console > p { margin: .45rem 0 .8rem; color: #667d8d; font-size: .78rem; line-height: 1.6; }
.live-content-review-console dl { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: 0 0 1rem; }
.live-content-review-console dl > div { min-width: 0; padding: .6rem; border: 1px solid #e0e8ed; border-radius: 8px; background: #fff; }
.live-content-review-console dt { color: #7b8e9b; font-size: .68rem; }
.live-content-review-console dd { margin: .25rem 0 0; overflow-wrap: anywhere; color: #31556c; font-size: .76rem; font-weight: 600; }
.live-content-review-console .button-row { margin-top: auto; }
.live-content-review-console .button { min-height: 34px; padding: .45rem .65rem; font-size: .72rem; }
.live-content-media-unavailable { min-height: 110px; display: grid; place-content: center; justify-items: center; color: #6d8190; text-align: center; }
.live-content-media-unavailable strong { color: #9b413a; }
.live-content-media-unavailable p { margin: .4rem 0 0; font-size: .8rem; }

.live-content-import { min-height: 180px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; }
.live-content-import h2 { margin: .2rem 0 .4rem; }
.live-content-import p { margin: 0; color: #617789; }
.live-content-import .alert { grid-column: 1 / -1; margin: 0; }
.live-content-layout { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(310px, .62fr); gap: 1rem; align-items: start; }
.live-content-layout > *, .live-content-main, .live-content-sidebar { min-width: 0; }
.live-content-sidebar { display: grid; gap: 1rem; }
.live-content-sidebar .panel { margin-bottom: 0; }
.live-content-section-head, .live-content-compact-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.live-content-section-head { margin-bottom: .9rem; }
.live-content-section-head h2, .live-content-compact-head h2 { margin: .15rem 0 0; }
.live-content-section-head p { margin: .3rem 0 0; color: #687d8d; font-size: .8rem; }
.live-content-compact-head { margin-bottom: .8rem; }

.live-content-editor { padding: 0; overflow: hidden; }
.live-content-editor > .live-content-section-head { padding: 1rem 1rem 0; }
.live-content-editor > form { padding: .25rem 1rem 0; }
.live-content-editor label { margin-bottom: .45rem; }
.live-content-editor textarea[name="body_text"] { min-height: 360px; max-height: 62vh; margin: 0; resize: vertical; color: #233f53; background: #fbfcfd; font-family: "Noto Sans SC", sans-serif; font-size: .88rem; line-height: 1.8; }
.live-content-editor textarea[name="body_text"]:focus { background: #fff; }
.live-content-editor-actions { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.live-content-editor-actions p { margin: 0; color: #758896; font-size: .75rem; }
.live-content-editor-actions p strong { color: #4e687a; }
.live-content-editor-actions .button-row { flex: 0 0 auto; justify-content: flex-end; }
.live-content-disclosures { border-top: 1px solid #e3e9ed; background: #f9fbfc; }
.live-content-disclosures details + details { border-top: 1px solid #e3e9ed; }
.live-content-disclosures summary, .live-content-creation summary, .live-content-document-source summary { padding: .75rem 1rem; color: #466477; cursor: pointer; font-size: .78rem; font-weight: 600; }
.live-content-disclosures summary span { float: right; color: #81919d; font-weight: 400; }
.live-content-history { padding: 0 1rem .8rem; }
.live-content-history > div { display: grid; grid-template-columns: 90px 70px minmax(120px, 1fr) auto; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid #e5ebef; font-size: .75rem; }
.live-content-history time { color: #738694; }
.live-content-provenance { margin: 0; padding: 0 1rem .8rem; }
.live-content-provenance > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .75rem; padding: .45rem 0; border-top: 1px solid #e5ebef; }
.live-content-provenance dt { color: #738694; font-size: .72rem; }
.live-content-provenance dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: .72rem; }

.live-content-next-step { border-color: #c9dce7; background: linear-gradient(145deg, #f4f9fc, #fff); }
.live-content-next-step h2 { margin: .2rem 0 .35rem; }
.live-content-next-step p { margin: 0 0 .8rem; color: #62798a; font-size: .8rem; line-height: 1.6; }
.live-content-status { display: inline-flex; align-items: center; gap: .4rem; color: #7b581c; font-size: .76rem; font-weight: 600; }
.live-content-status::before { width: .5rem; height: .5rem; content: ""; border-radius: 50%; background: #ca8c37; }
.live-content-status.ready { color: #34715c; }
.live-content-status.ready::before { background: #3f8b70; }
.live-content-generation .alert { margin-bottom: .7rem; padding: .65rem .75rem; font-size: .75rem; }
.live-content-generation-list { display: grid; gap: .6rem; }
.live-content-generation-list > form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .7rem; border: 1px solid #dfe7ec; border-radius: 9px; background: #fbfcfd; }
.live-content-generation-list strong, .live-content-generation-list small { display: block; }
.live-content-generation-list strong { color: #33546a; font-size: .78rem; }
.live-content-generation-list small { margin-top: .18rem; color: #7a8c99; font-size: .68rem; line-height: 1.45; }
.live-content-generation-list .button { min-height: 34px; padding: .45rem .65rem; font-size: .72rem; }
.live-content-creation { margin: .7rem -.2rem -.2rem; border-top: 1px solid #e2e9ed; }
.live-content-creation summary { padding-inline: .2rem; }
.live-content-creation form { padding-top: .4rem; }
.live-content-metadata form { margin-top: .85rem; }
.live-content-metadata textarea { resize: vertical; }
.live-content-metadata .button { width: 100%; }

.live-content-jobs, .live-content-results { margin-top: 1rem; }
.live-content-job-list { border-top: 1px solid #e3e9ed; }
.live-content-job-list a { min-width: 0; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(150px, .7fr) auto; align-items: center; gap: 1rem; padding: .7rem 0; color: inherit; border-bottom: 1px solid #e7ecef; }
.live-content-job-list a:last-child { border-bottom: 0; }
.live-content-job-list strong, .live-content-job-list small { display: block; }
.live-content-job-list small { margin-top: .15rem; color: #80909c; font: .68rem "Roboto Mono", monospace; }
.live-content-job-list span { color: #657c8c; font-size: .76rem; }
.live-content-job-list b { color: #31596f; font: 600 .74rem "Roboto Mono", monospace; }
.live-content-empty-result { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #647b8b; }
.live-content-empty-result h2 { margin: .1rem 0 .25rem; color: #304f64; }
.live-content-empty-result p { margin: 0; font-size: .8rem; }
.live-content-empty-result > span { padding: .5rem .7rem; border-radius: 999px; background: #f1f4f6; font-size: .72rem; white-space: nowrap; }

.live-content-document { scroll-margin-top: calc(var(--header-height) + 1rem); }
.live-content-document-source { margin: -.2rem 0 .9rem; border-block: 1px solid #e5ebef; }
.live-content-document-source summary { padding-inline: 0; }
.live-content-document-source p { margin: 0 0 .75rem; color: #6f8290; font-size: .72rem; }
.live-content-result-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr); gap: 1rem; align-items: start; }
.live-content-result-grid h3, .live-content-candidates h3 { color: #2d5067; font-size: .9rem; }
.live-content-result-main { min-width: 0; display: grid; gap: 1rem; }
.live-content-chapters { display: grid; gap: .55rem; padding: 0; list-style: none; }
.live-content-chapters li, .live-content-highlights article, .live-content-highlights blockquote { margin: 0; padding: .75rem; border: 1px solid #e0e8ed; border-radius: 9px; background: #fbfcfd; }
.live-content-chapters li { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; align-items: start; }
.live-content-chapters li > [data-copy-content] { min-width: 0; }
.live-content-chapters li > [data-copy-content] > strong, .live-content-chapters li > [data-copy-content] > time { display: block; }
.live-content-highlights article > [data-copy-content] > div { display: flex; justify-content: space-between; gap: .7rem; }
.live-content-chapters time, .live-content-highlights time, .live-content-candidate-head time { flex: 0 0 auto; color: #718696; font: .7rem "Roboto Mono", monospace; }
.live-content-chapters p, .live-content-highlights p { margin: .35rem 0 0; color: #61798a; font-size: .78rem; line-height: 1.55; }
.live-content-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.live-content-highlights article small { display: block; margin-top: .4rem; color: #7c8f9c; font-size: .68rem; }
.live-content-highlights blockquote { color: #3f6075; font-size: .8rem; line-height: 1.6; }
.live-content-highlights blockquote footer { margin-top: .35rem; color: #7d8f9c; font: .68rem "Roboto Mono", monospace; }
.live-content-item-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.live-content-chapters .live-content-item-actions { justify-content: flex-end; margin-top: 0; }
.live-content-item-actions .button { min-height: 30px; padding: .35rem .55rem; font-size: .68rem; }
.live-content-item-actions [data-media-start].active { color: #fff; border-color: #176b98; background: #176b98; }
.live-content-review-box { padding: .85rem; border: 1px solid #dce6ec; border-radius: 10px; background: #f7fafb; }
.live-content-review-box h3 { margin-top: 0; }
.live-content-review-box .button { width: 100%; }
.live-content-candidates { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #e2e9ed; }
.live-content-candidate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.live-content-candidate-grid > article { min-width: 0; padding: .85rem; border: 1px solid #dce5eb; border-radius: 10px; }
.live-content-candidate-head { display: flex; justify-content: space-between; gap: .75rem; }
.live-content-candidate-head strong, .live-content-candidate-head time { display: block; }
.live-content-candidate-grid article > p { color: #61798a; font-size: .78rem; line-height: 1.55; }
.live-content-review-state { padding: .5rem .6rem; border-radius: 7px; background: #f4f7f8; }
.live-content-candidate-actions input { margin-bottom: .55rem; }
.live-content-candidate-output { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: .75rem; padding: .65rem; border: 1px solid #cfe1d8; border-radius: 8px; background: #f3faf6; }
.live-content-candidate-output strong, .live-content-candidate-output span { display: block; }
.live-content-candidate-output strong { color: #376a58; font-size: .75rem; }
.live-content-candidate-output span { margin-top: .15rem; color: #6b8178; font-size: .68rem; }
.live-content-candidate-output .button-row { flex: 0 0 auto; }

@media (max-width: 1120px) {
  .live-content-layout { grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr); }
  .live-content-editor-actions { align-items: flex-end; flex-direction: column; }
}
@media (max-width: 900px) {
  .live-content-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-content-workflow li:nth-child(3) { border-left: 0; border-top: 1px solid #e2e9ee; }
  .live-content-workflow li:nth-child(4) { border-top: 1px solid #e2e9ee; }
  .live-content-layout, .live-content-result-grid, .live-content-media-grid { grid-template-columns: 1fr; }
  .live-content-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-content-next-step { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .live-content-head h1 { white-space: normal; }
  .live-content-workflow { grid-template-columns: 1fr; }
  .live-content-workflow li + li { border-top: 1px solid #e2e9ee; border-left: 0; }
  .live-content-workflow li strong, .live-content-workflow li small { white-space: normal; }
  .live-content-import, .live-content-sidebar { grid-template-columns: 1fr; }
  .live-content-player-wrap video { max-height: none; }
  .live-content-review-console dl { grid-template-columns: 1fr; }
  .live-content-review-console .button-row, .live-content-review-console .button { width: 100%; }
  .live-content-editor textarea[name="body_text"] { min-height: 300px; max-height: none; }
  .live-content-editor-actions { align-items: stretch; }
  .live-content-editor-actions .button-row { display: grid; grid-template-columns: 1fr; }
  .live-content-editor-actions .button { width: 100%; }
  .live-content-disclosures summary span { float: none; display: block; margin-top: .15rem; }
  .live-content-history > div { grid-template-columns: 1fr auto; }
  .live-content-history time, .live-content-history code { grid-column: 1 / -1; }
  .live-content-generation-list > form { grid-template-columns: 1fr; }
  .live-content-generation-list .button { width: 100%; }
  .live-content-job-list a { grid-template-columns: 1fr auto; gap: .35rem .7rem; }
  .live-content-job-list span { grid-column: 1; }
  .live-content-job-list b { grid-column: 2; grid-row: 1 / 3; }
  .live-content-empty-result { align-items: flex-start; flex-direction: column; }
  .live-content-highlights, .live-content-candidate-grid { grid-template-columns: 1fr; }
  .live-content-section-head { align-items: stretch; flex-direction: column; }
  .live-content-section-head > .button { width: 100%; }
  .live-content-chapters li { grid-template-columns: 1fr; }
  .live-content-chapters .live-content-item-actions { justify-content: flex-start; }
  .live-content-highlights article > [data-copy-content] > div { align-items: flex-start; flex-direction: column; }
  .live-content-candidate-actions .button-row { display: grid; grid-template-columns: 1fr 1fr; }
  .live-content-candidate-output { align-items: stretch; flex-direction: column; }
  .live-content-candidate-output .button-row, .live-content-candidate-output .button { width: 100%; }
}
