:root {
  --bg: #f5f6f2;
  --paper: #fff;
  --ink: #243b35;
  --muted: #68766d;
  --line: #e5e9e2;
  --green: #2d7156;
  --mint: #e8f2e9;
  --lime: #c3dfaf;
  --red: #b64c42;
  --amber: #aa772b;
  --shadow: 0 4px 24px #16362b06;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
}
.runtime-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:20px}
.runtime-summary {display:flex;gap:22px;flex-wrap:wrap;align-items:center;padding:20px 0;margin-bottom:12px}
.runtime-summary strong {font-size:22px;margin-left:8px}
.runtime-summary label,.runtime-checks label {display:flex;align-items:center;gap:8px}
.runtime-actions,.runtime-checks {display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
.runtime-checks input,.runtime-summary input {width:auto}
.runtime-link {color:var(--green);text-decoration:underline;text-underline-offset:4px}
.runtime-error {padding:16px;background:#fff0e9;color:var(--red);border-radius:8px;overflow-wrap:anywhere}
.runtime-json {white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;background:var(--bg);padding:16px;font-size:12px}
.runtime-logs {max-height:360px;overflow:auto;padding:18px;font:12px/1.8 Consolas,monospace;overflow-wrap:anywhere}
.runtime-logs time {color:var(--muted)}
.runtime-logs strong {display:inline-block;min-width:48px}
.runtime-wrap {max-width:380px;white-space:normal;overflow-wrap:anywhere}
.runtime-result {padding:24px 0;border-bottom:1px solid var(--line)}
.runtime-result section {margin:20px 0}
.runtime-result h3 {color:var(--muted);font-size:12px;margin-bottom:12px}
.report-frame {width:100%;height:650px;border:1px solid var(--line);background:white}
.runtime-details {padding:20px;margin-top:20px}
.runtime-modal {width:min(760px,96vw)}
[hidden] {display:none !important}
.data-table td small {display:block;color:var(--muted);font-size:11px;margin-top:5px;overflow-wrap:anywhere}
.runtime-reasons {margin:6px 0 0;padding-left:16px;font-size:12px;color:var(--amber);line-height:1.7}
.runtime-reasons code {font-size:11px;color:var(--ink);background:var(--bg);padding:1px 5px;border-radius:4px;margin-right:6px}
.data-table .runtime-reasons {max-width:360px;font-size:11px}
.runtime-toggle {margin:0 0 14px}
.who {font-size:12px;color:var(--muted);margin-right:10px}
.digest-card .panel-body strong {display:block;margin-bottom:8px}
.digest-card.missing {opacity:.6}
.digest-preview {color:var(--muted);font-size:12px;line-height:1.7;margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.runtime-error-inline {color:var(--red);font-size:12px}
.sidebar nav {overflow:visible;min-height:0}
.sidebar {overflow-y:auto;scrollbar-width:none}
.sidebar::-webkit-scrollbar {display:none}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #92baa0;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  line-height: 1.4;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
}
svg {
  vertical-align: middle;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.8 Consolas,
    monospace;
  margin: 0;
}
code,
.mono {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-variant-numeric: tabular-nums;
}
.muted,
.help {
  color: var(--muted);
}
.help {
  font-size: 12px;
  margin: 7px 0 16px;
}
.eyebrow {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.8px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 222px;
  background: #173b35;
  color: #cad7ce;
  padding: 32px 20px;
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 6px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.7px;
  color: #f5f8f1;
}
.brand small {
  display: block;
  color: #89aa98;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 0;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 42px;
  color: #b9dcb4;
  letter-spacing: -6px;
  font: 600 31px Georgia;
  margin-right: 4px;
  transform: translateY(-2px);
}
.brand-mark span {
  transform: translateY(6px);
  color: #f0f4e7;
}
.nav-caption {
  margin: 28px 12px 10px;
  display: flex;
  justify-content: space-between;
  font:
    10px Consolas,
    monospace;
  letter-spacing: 1.7px;
  color: #789b89;
}
.nav-caption span {
  letter-spacing: 0;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 13px;
  transition: background 0.15s;
}
.nav-item svg {
  opacity: 0.65;
}
.nav-item:hover {
  background: #ffffff09;
}
.nav-item.active {
  background: #e0efcf;
  color: #264737;
  font-weight: 600;
}
.nav-item.active svg {
  opacity: 1;
}
.nav-item .nav-end {
  margin-left: auto;
  font-size: 16px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 18px 12px 0;
}
.side-rule {
  height: 1px;
  background: #ffffff12;
  margin-bottom: 14px;
}
.sidebar-bottom > .mono {
  font-size: 9px;
  letter-spacing: 0.8px;
  color: #6c9680;
}
.sidebar-bottom p {
  font-size: 11px;
  margin: 6px 0 14px;
  color: #91ae9c;
}
.side-status {
  font-size: 11px;
  color: #aec6b4;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #9ebea9;
  flex-shrink: 0;
}
.dot.good {
  background: #75a97e;
}
.dot.bad {
  background: #d57163;
}
.dot.warn {
  background: #d4ac60;
}
.workspace {
  margin-left: 222px;
  min-height: 100vh;
}
.topbar {
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 37px;
  border-bottom: 1px solid var(--line);
  background: #fafbf7;
}
.breadcrumb {
  font-size: 12px;
  color: #93a095;
}
.breadcrumb span {
  margin: 0 17px;
  color: #c8cfc7;
}
.breadcrumb strong {
  font-weight: 500;
  color: #56665b;
}
.top-actions {
  display: flex;
  gap: 17px;
  align-items: center;
}
.env {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  border: 1px solid #dde5d9;
  border-radius: 4px;
  padding: 2px 8px;
  color: #6c806b;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e6ecdf;
  width: 30px;
  height: 30px;
  font-size: 10px;
  color: #527252;
  font-weight: 600;
}
main {
  padding: 32px 37px 24px;
  max-width: 1760px;
  margin: auto;
  min-height: calc(100vh - 128px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.updated {
  font-size: 11px;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  border: 1px solid #dce3d8;
  background: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #485d4d;
  white-space: nowrap;
  transition: background 0.15s;
}
.button:hover {
  background: #edf2e9;
}
.button.primary {
  background: #2c674f;
  border-color: #2c674f;
  color: #fff;
}
.button.primary:hover {
  background: #23533f;
}
.button.small {
  font-size: 11px;
  min-height: 31px;
  padding: 5px 10px;
}
.button.ghost {
  background: transparent;
  border-color: transparent;
}
.button.danger {
  color: var(--red);
  border-color: #edd6d0;
  background: #fff9f7;
}
.icon-button {
  border: 0;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  width: 33px;
  height: 33px;
  color: var(--muted);
  border-radius: 4px;
}
.icon-button:hover {
  background: #edf1e8;
}
.banner {
  padding: 12px 16px;
  border: 1px solid #ebd5ca;
  background: #fff4ec;
  color: #98613b;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.banner.error {
  background: #fbefec;
  border-color: #eed9d2;
  color: var(--red);
}
.banner .button {
  margin-left: auto;
}
.status-strip {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  font-size: 11px;
  color: #798879;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #eaf0e4;
  color: #59724f;
  font-size: 10px;
}
.status-pill.bad {
  background: #fbece7;
  color: var(--red);
}
.status-pill.warn {
  background: #fff1d8;
  color: var(--amber);
}
.status-strip .strip-line {
  height: 12px;
  width: 1px;
  background: #d9e0d3;
}
/* 状态条里的内联编辑（入库告警阈值）：沿用条内 11px 的尺度，不用浏览器原生弹窗。 */
.strip-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.strip-edit input[type="number"] {
  display: inline-block;
  width: 72px;
  min-height: 24px;
  margin-top: 0;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 11px;
  text-align: right;
}
.strip-edit .text-link {
  font-weight: 600;
}
.strip-edit .text-link.cancel {
  color: #98a293;
  font-weight: 400;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 22px;
}
.stat-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 9px;
  padding: 19px 21px;
  box-shadow: var(--shadow);
  position: relative;
}
.stat-card .stat-top {
  font-size: 12px;
  color: #788374;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-icon {
  width: 28px;
  height: 28px;
  border: 1px solid #e8ece3;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f9776;
}
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 13px 0 5px;
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.stat-value small {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}
.stat-bottom {
  font-size: 10px;
  color: #8c9689;
}
.stat-card.featured {
  background: #e8f0e1;
  border-color: #dce6d3;
}
.stat-card.featured .stat-icon {
  border-color: #cfddc6;
}
.stat-bottom .positive {
  color: #578547;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 22px 0;
  gap: 12px;
}
.panel-head h2 {
  font-size: 14px;
}
.panel-head p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.panel-body {
  padding: 20px 22px;
}
.text-link {
  border: none;
  background: none;
  font-size: 11px;
  color: #658251;
  padding: 3px;
  cursor: pointer;
}
.chart-key {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #83907e;
}
.chart-key span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.chart-key i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--key);
}
.chart-wrap {
  padding: 21px 17px 5px;
}
.trend-chart {
  width: 100%;
  height: 220px;
  overflow: visible;
}
.chart-foot {
  padding: 0 22px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #a0a99a;
}
.segmented {
  display: flex;
  background: #f4f6f0;
  border-radius: 5px;
  padding: 3px;
  gap: 3px;
}
.segmented button {
  border: 0;
  background: none;
  padding: 4px 10px;
  font-size: 10px;
  color: #8a9483;
  border-radius: 3px;
}
.segmented button.active {
  background: #fff;
  color: #53684b;
  box-shadow: 0 1px 3px #263a3010;
}
.queue-total {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 600;
}
.queue-total small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 7px;
}
.stack-bar {
  height: 9px;
  display: flex;
  gap: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: #f1f3ee;
  margin: 14px 0 19px;
}
.stack-bar span {
  min-width: 2px;
  background: var(--key);
}
.queue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}
.queue-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #86907f;
}
.queue-item strong {
  margin-left: auto;
  color: #526449;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.queue-note {
  font-size: 10px;
  padding-top: 17px;
  margin-top: 18px;
  border-top: 1px solid #f0f2eb;
  color: #8b9982;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}
.source-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 11px;
}
.source-row:last-child {
  margin-bottom: 0;
}
.source-row > span:first-child {
  width: 64px;
  flex-shrink: 0;
  color: #7f8e77;
}
.source-row .mini-bar {
  flex: 1;
  height: 5px;
  background: #f0f3ed;
  border-radius: 3px;
  overflow: hidden;
}
.source-row .mini-bar i {
  display: block;
  height: 100%;
  background: #9cba8d;
  border-radius: 3px;
}
.source-row strong {
  font-size: 11px;
  font-weight: 500;
  min-width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.watermark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f2ed;
}
.watermark .watermark-info {
  flex: 1;
  min-width: 0;
}
.watermark h3 {
  font:
    11px Consolas,
    monospace;
  color: #62735c;
}
.watermark p {
  font-size: 10px;
  color: #9aa491;
  margin-top: 3px;
}
.watermark .mono {
  font-size: 11px;
}
.watermark-error {
  font-size: 10px;
  color: var(--red);
  overflow-wrap: anywhere;
}
.body-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 13px;
  color: #7c8a72;
}
.body-row > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.body-row strong {
  font-weight: 500;
  color: #5c6d52;
}
.call-number {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
.call-number small {
  font-size: 12px;
  color: #9ca492;
  font-weight: 400;
  letter-spacing: 0;
}
.progress-track {
  height: 5px;
  background: #edf1e6;
  border-radius: 5px;
  overflow: hidden;
  margin: 12px 0 7px;
}
.progress-track i {
  display: block;
  height: 100%;
  background: #a3bd89;
  max-width: 100%;
}
.budget-note {
  font-size: 10px;
  color: #94a186;
}
.mini-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #eef1e8;
  gap: 10px;
}
.mini-metrics span {
  display: block;
  font-size: 10px;
  color: #9aa68c;
}
.mini-metrics strong {
  font-size: 16px;
  font-weight: 500;
  color: #617650;
}
.empty,
.loading {
  padding: 60px 25px;
  text-align: center;
  color: #8b9981;
  font-size: 13px;
}
.empty h3 {
  font-size: 15px;
  margin: 12px 0 6px;
  color: #6f8064;
}
.empty p {
  font-size: 12px;
}
.loading:before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #dce6d2;
  border-top-color: #6e9560;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 19px 21px;
  border-bottom: 1px solid var(--line);
  align-items: end;
}
.filters label {
  min-width: 115px;
  flex: 1;
}
.filters .wide {
  min-width: 230px;
  flex: 2;
}
label {
  display: block;
  font-size: 11px;
  color: #74806d;
  margin-bottom: 0;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dfe5d9;
  background: #fff;
  border-radius: 5px;
  padding: 9px 11px;
  color: #42563c;
  outline: none;
  margin-top: 6px;
  min-height: 38px;
  font-size: 12px;
}
input::placeholder,
textarea::placeholder {
  color: #a8b1a0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #89a778;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
input[type="checkbox"] {
  width: 15px;
  min-height: 0;
  height: 15px;
  accent-color: #47723b;
  margin: 0;
}
input[type="range"] {
  padding: 0;
}
.table-scroll {
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}
.data-table th {
  background: #fafbf7;
  color: #8a9680;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 15px 17px;
  border-bottom: 1px solid #f0f2eb;
  color: #7c8874;
  max-width: 380px;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fafcf6;
}
.data-table .title-cell {
  white-space: normal;
  min-width: 245px;
  max-width: 440px;
}
.doc-title {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
  font-size: 12px;
  line-height: 1.7;
  color: #3f5939;
  display: block;
  cursor: pointer;
}
.doc-title:hover {
  color: #287253;
  text-decoration: underline;
}
.doc-id {
  font:
    9px/1.5 Consolas,
    monospace;
  color: #adb5a5;
  margin-top: 5px;
  word-break: break-all;
}
.tag {
  display: inline-block;
  border: 1px solid #e5ebdd;
  background: #f5f8ef;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  margin: 2px 3px 2px 0;
  color: #7a8d68;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 10px;
  background: #eff2eb;
  color: #8a9780;
  white-space: nowrap;
}
.badge.done,
.badge.ok {
  color: #578149;
  background: #edf5e5;
}
.badge.failed,
.badge.dead,
.badge.invalid,
.badge.llm_error,
.badge.timeout,
.badge.parse_error {
  color: #b66e57;
  background: #fcf0e9;
}
.badge.running {
  color: #628aa2;
  background: #edf4f7;
}
.badge.fallback {
  color: #a78748;
  background: #fbf5e6;
}
.pager {
  padding: 15px 21px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94a287;
  font-size: 11px;
}
.pager > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toolbar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #8c9980;
  padding: 12px 18px;
  font-size: 12px;
  white-space: nowrap;
}
.tabs button.active {
  border-bottom-color: #46733c;
  color: #426b39;
  font-weight: 600;
}
.error-text {
  color: var(--red);
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 350px;
}
.tools-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.35fr);
  gap: 22px;
}
.form-panel {
  padding: 25px;
}
.form-panel h2 {
  font-size: 16px;
  margin-bottom: 6px;
}
.form-panel > p {
  font-size: 12px;
  color: #95a086;
  margin-bottom: 25px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid .span-2 {
  grid-column: 1/-1;
}
.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 17px;
  margin-top: 8px;
}
.check-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #78896b;
  font-size: 11px;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.form-actions.stretch .button {
  flex: 1;
}
.form-divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
.tool-result {
  padding: 25px;
  max-height: 820px;
  overflow: auto;
}
.tool-result h2 {
  font-size: 15px;
}
.tool-result .empty {
  padding-top: 110px;
}
.result-status {
  margin-bottom: 18px;
  color: #72905b;
  font-size: 12px;
}
.result-json {
  background: #f6f8f1;
  border: 1px solid #e8eddf;
  padding: 15px;
  border-radius: 6px;
  font-size: 11px;
  max-height: 550px;
  overflow: auto;
}
.progress-indeterminate {
  height: 4px;
  background: #e8eedf;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 20px;
}
.progress-indeterminate:after {
  content: "";
  display: block;
  width: 35%;
  height: 100%;
  background: #8eaa76;
  animation: progress 1.8s infinite ease-in-out;
}
@keyframes progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(400%);
  }
}
.search-hit {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.search-hit h3 {
  font-size: 13px;
  color: #4e6b40;
}
.search-hit p {
  font-size: 11px;
  color: #8b9b7c;
  margin: 8px 0;
  white-space: pre-wrap;
}
.hit-meta {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #9aa58c;
}
.markdown {
  font-size: 13px;
  color: #596c4b;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.markdown p {
  margin: 12px 0;
}
.markdown h2,
.markdown h3,
.markdown h4 {
  margin: 20px 0 8px;
  font-size: 16px;
}
.markdown ul,
.markdown ol {
  padding-left: 23px;
}
.markdown blockquote {
  margin: 15px 0;
  border-left: 3px solid #bdd0a3;
  padding: 8px 14px;
  background: #f8faf3;
}
.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.config-list {
  margin: 0;
}
.config-list > div {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  border-bottom: 1px solid #edf1e5;
  padding: 14px 0;
  font-size: 12px;
}
.config-list > div:last-child {
  border-bottom: 0;
}
.config-list dt {
  color: #8c9a7e;
}
.config-list dd {
  margin: 0;
  color: #556d44;
  text-align: right;
  overflow-wrap: anywhere;
  max-width: 65%;
}
dialog {
  border: 1px solid #e1e9d7;
  padding: 26px;
  border-radius: 11px;
  color: var(--ink);
  box-shadow: 0 25px 90px #18382629;
}
dialog::backdrop {
  background: #1d302751;
  backdrop-filter: blur(2px);
}
.modal {
  width: min(480px, calc(100% - 30px));
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.modal label {
  margin-top: 17px;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  max-height: 100%;
  height: 100%;
  width: min(820px, 96vw);
  max-width: 96vw;
  border-radius: 12px 0 0 12px;
  padding: 30px;
  overflow: auto;
}
.drawer-head {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
}
.drawer-head h2 {
  font-size: 20px;
  line-height: 1.6;
}
.drawer-section {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 23px;
}
.drawer-section > h3 {
  font-size: 13px;
  margin-bottom: 15px;
}
.detail-badges {
  display: flex;
  gap: 8px;
  margin: 15px 0;
  flex-wrap: wrap;
}
.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 11px;
  color: #89997a;
}
.detail-meta strong {
  color: #637e51;
  font-weight: 400;
}
.comparison {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}
.comparison th {
  text-align: left;
  padding: 10px;
  background: #f8faf3;
  color: #93a380;
  font-weight: 500;
}
.comparison th:first-child {
  width: 90px;
}
.comparison td {
  padding: 11px 10px;
  border-bottom: 1px solid #edf2e3;
  vertical-align: top;
  word-break: break-word;
  color: #7a8f66;
}
.body-preview {
  padding: 18px;
  background: #f7f9f2;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 370px;
  overflow: auto;
}
details.audit {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 10px 0;
  padding: 13px;
}
details.audit summary {
  font-size: 11px;
  cursor: pointer;
  color: #7e9269;
}
details.audit pre {
  margin-top: 12px;
  font-size: 11px;
  background: #f8faf4;
  padding: 12px;
  max-height: 400px;
  overflow: auto;
}
.confirm-message {
  white-space: pre-wrap;
  color: #81926f;
  font-size: 13px;
}
.toast {
  position: fixed;
  bottom: 27px;
  left: calc(50% + 111px);
  transform: translateX(-50%);
  z-index: 100;
  background: #254d3c;
  color: #f0f8e9;
  padding: 12px 22px;
  border-radius: 7px;
  box-shadow: 0 8px 35px #24382922;
  max-width: 560px;
  font-size: 12px;
}
.toast.bad {
  background: #884b3b;
}
footer {
  padding: 18px 37px;
  color: #b1bba5;
  letter-spacing: 1.1px;
  font:
    9px Consolas,
    monospace;
  display: flex;
  gap: 17px;
}
footer > span {
  font:
    9px "Microsoft YaHei",
    sans-serif;
  letter-spacing: 0.5px;
}
footer .footer-right {
  margin-left: auto;
}
.skip {
  position: absolute;
  left: 240px;
  top: -60px;
  padding: 10px;
  background: white;
  z-index: 100;
}
.skip:focus {
  top: 5px;
}
.selection-count {
  font-size: 11px;
  color: #9aa88b;
}
.content-limit {
  overflow-wrap: anywhere;
}
.run-notice {
  margin: 0 0 20px;
}
.status-sub {
  font-size: 10px;
  color: #9aa78d;
  margin-top: 5px;
}
.health-alert {
  padding: 12px 37px;
  background: #fbece7;
  color: #984b3d;
  border-bottom: 1px solid #eed6cc;
  font-size: 12px;
}
.stat-bottom,
.queue-item,
.source-row > span:first-child,
.body-row,
.detail-meta,
.comparison td,
.config-list dt {
  color: #6c7c60;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (min-width: 1550px) {
  main {
    padding-top: 38px;
  }
  .trend-chart {
    height: 250px;
  }
  .stat-card {
    padding: 23px;
  }
  .stat-value {
    font-size: 36px;
  }
  .panel-head {
    padding-top: 24px;
  }
  .panel-body {
    padding-top: 23px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 190px;
    padding: 30px 15px;
  }
  .workspace {
    margin-left: 190px;
  }
  main {
    padding: 27px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .grid-main {
    grid-template-columns: minmax(0, 1.5fr) minmax(255px, 1fr);
  }
  .lower-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .lower-grid > .panel:last-child {
    grid-column: 1/-1;
  }
  .lower-grid > .panel:last-child .panel-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
  }
  .lower-grid > .panel:last-child .mini-metrics {
    margin-top: 0;
  }
  .toast {
    left: calc(50% + 95px);
  }
  .chart-key {
    gap: 9px;
  }
  .tools-layout {
    grid-template-columns: 1fr 1.1fr;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 74px;
    padding: 25px 10px;
  }
  .brand {
    padding: 0;
    justify-content: center;
  }
  .brand > span:last-child,
  .nav-caption,
  .sidebar-bottom,
  .nav-label,
  .nav-end {
    display: none;
  }
  .brand-mark {
    margin: 0;
  }
  nav {
    margin-top: 40px;
    gap: 12px;
  }
  .nav-item {
    justify-content: center;
    padding: 14px 0;
  }
  .workspace {
    margin-left: 74px;
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .queue-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-grid .stat-card.featured {
    grid-column: 1 / -1;
  }
  .tools-layout {
    grid-template-columns: 1fr;
  }
  .config-grid {
    grid-template-columns: 1fr 1fr;
  }
  .toast {
    left: calc(50% + 37px);
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .updated {
    display: none;
  }
  .chart-key {
    gap: 15px;
  }
  .trend-chart {
    height: 240px;
  }
}
@media (max-width: 620px) {
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: 62px;
    padding: 0;
    background: #173b35;
    border-top: 1px solid #23463c;
  }
  .brand {
    display: none;
  }
  nav {
    margin: 0;
    flex-direction: row;
    gap: 0;
    justify-content: space-around;
    height: 100%;
  }
  .nav-item {
    flex: 1;
    flex-direction: column;
    gap: 3px;
    padding: 8px 2px;
    border-radius: 0;
    font-size: 9px;
  }
  .nav-label {
    display: block;
  }
  .nav-item.active {
    background: #275447;
    color: #dceccb;
  }
  .nav-item svg {
    width: 17px;
    height: 17px;
  }
  .workspace {
    margin-left: 0;
    padding-bottom: 62px;
  }
  .topbar {
    height: 58px;
    padding: 0 17px;
  }
  .top-actions {
    gap: 8px;
  }
  .avatar {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    margin: 0 8px;
  }
  main {
    padding: 23px 16px;
  }
  h1 {
    font-size: 24px;
  }
  .page-heading {
    gap: 9px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 240px;
  }
  .heading-actions .button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-top {
    font-size: 10px !important;
  }
  .stat-value {
    font-size: 26px;
  }
  .stat-icon {
    width: 23px;
    height: 23px;
  }
  .stat-bottom {
    font-size: 9px;
  }
  .status-strip {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 17px;
  }
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .lower-grid > .panel:last-child {
    grid-column: auto;
  }
  .lower-grid > .panel:last-child .panel-body {
    display: block;
  }
  .lower-grid > .panel:last-child .mini-metrics {
    margin-top: 20px;
  }
  .queue-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel-head {
    padding: 18px 17px 0;
  }
  .panel-body {
    padding: 18px 17px;
  }
  .chart-key {
    gap: 10px;
    font-size: 8px;
  }
  .trend-chart {
    height: 190px;
  }
  .chart-foot {
    font-size: 8px;
    padding: 0 17px 15px;
  }
  .config-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    padding: 16px;
    gap: 10px;
  }
  .filters .wide {
    min-width: 100%;
  }
  .filters label {
    min-width: calc(50% - 10px);
  }
  .toolbar {
    flex-wrap: wrap;
    padding: 14px;
  }
  .form-panel,
  .tool-result {
    padding: 20px;
  }
  .tabs button {
    padding: 10px 12px;
    font-size: 11px;
  }
  .form-grid {
    gap: 12px;
  }
  .drawer {
    padding: 23px 17px;
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }
  .detail-meta {
    grid-template-columns: 1fr;
  }
  .comparison th:first-child {
    width: 65px;
  }
  .comparison {
    font-size: 10px;
  }
  .comparison td {
    padding: 10px 5px;
  }
  .toast {
    left: 50%;
    width: calc(100% - 30px);
    bottom: 80px;
  }
  footer {
    padding: 17px;
    font-size: 8px;
    gap: 9px;
  }
  footer .footer-right {
    display: none;
  }
  .pager {
    padding: 13px;
    font-size: 10px;
  }
  .pager > div {
    gap: 8px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .modal {
    padding: 23px;
  }
  .data-table td,
  .data-table th {
    padding-left: 13px;
    padding-right: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* 系统设置页仅展示常用运行参数。 */
.setting-panel {
  max-width: 1000px;
}
.mcp-connection {border-top:3px solid var(--green)}
.mcp-connection,.mcp-clients-panel {margin-bottom:20px}
.mcp-connection-title,.mcp-client-heading,.mcp-client-footer {display:flex;align-items:center;justify-content:space-between;gap:14px}
.mcp-endpoint {display:flex;align-items:center;gap:16px;margin:16px 0}
.mcp-endpoint code {font-size:18px;overflow-wrap:anywhere;flex:1;min-width:0}
.mcp-meta,.mcp-actions {display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--muted)}
.mcp-clients {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:18px}
.mcp-client {border:1px solid var(--line);padding:20px;border-radius:9px;min-width:0}
.mcp-client-heading strong {font-size:16px;overflow-wrap:anywhere}
.mcp-client-heading small {display:block;color:var(--muted);margin-top:3px}
.mcp-client-access {margin:20px 0}
.mcp-client-access div {margin:12px 0}
.mcp-client-access dt {font-size:11px;color:var(--muted);margin-bottom:5px}
.mcp-client-access dd {margin:0;display:flex;flex-wrap:wrap;gap:5px}
.mcp-client-footer {flex-wrap:wrap;border-top:1px solid var(--line);padding-top:14px}
.mcp-guide {display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.mcp-guide span {display:block;color:var(--green);font:24px/1.6 Georgia,serif;margin-bottom:8px}
.mcp-guide p {font-size:12px;color:var(--muted);margin:8px 0 0}
.mcp-modal {width:min(620px,calc(100% - 30px))}
.mcp-modal fieldset {margin:20px 0;border:1px solid var(--line);border-radius:8px;padding:12px 16px}
.mcp-modal legend {font-size:12px;color:var(--muted);padding:0 6px}
.mcp-choices {display:flex;flex-wrap:wrap;gap:10px 20px}
.mcp-modal .mcp-choices label {display:flex;align-items:center;gap:7px;margin:0;font-size:13px}
.mcp-choices input {width:auto}
.mcp-config {width:100%;font:12px/1.8 Consolas,monospace;resize:vertical;background:var(--bg);padding:16px}
@media(max-width:700px) {.mcp-guide {grid-template-columns:1fr;gap:20px}.mcp-endpoint {align-items:flex-start;flex-direction:column}.mcp-endpoint code {font-size:14px}.mcp-client-footer {align-items:flex-start;flex-direction:column}.mcp-modal .form-actions {flex-wrap:wrap}}
.setting-group {
  display: flex;
  flex-direction: column;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f3ed;
}
.setting-row:last-child {
  border-bottom: none;
}
.setting-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.setting-label {
  flex: 0 0 100%;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}
.setting-name code {
  font-size: 11px;
  color: #56704c;
}
.setting-value {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.setting-value input,
.setting-value select {
  display: inline-block;
  width: 210px;
  min-height: 30px;
  margin-top: 0;
  padding: 5px 9px;
  font-size: 11px;
}
.setting-value input[type="number"] {
  width: 120px;
  text-align: right;
}
.setting-badge {
  padding: 2px 7px;
  border-radius: 3px;
  background: #eef1ea;
  color: #7c8a76;
  font-size: 10px;
}
.setting-badge.on {
  background: #eaf0e4;
  color: #59724f;
}
.setting-secret {
  padding: 4px 10px;
  border-radius: 4px;
  background: #f4f5f2;
  color: #98a293;
  font-size: 11px;
}
.setting-secret.on {
  background: #eaf0e4;
  color: #59724f;
}
.setting-hint {
  font-size: 10px;
  color: #a8b1a0;
}
@media (max-width: 720px) {
  .setting-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .setting-value input,
  .setting-value select {
    width: 100%;
  }
}

/* 栏目内导航与管线编辑 */
.subnav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 7px 37px;
  border-bottom: 1px solid var(--line);
  background: #fafbf7;
  overflow-x: auto;
  white-space: nowrap;
}
.subnav-item {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}
.subnav-item:hover { background: #edf2e9; color: var(--ink); }
.subnav-item.active { background: var(--mint); color: var(--green); font-weight: 650; }
.pipeline-shell {
  display: grid;
  grid-template-columns: minmax(210px, 245px) minmax(400px, 1fr) minmax(300px, 360px);
  gap: 16px;
  align-items: start;
}
.pipeline-jobs, .pipeline-canvas, .pipeline-inspector { min-width: 0; }
.pipeline-jobs { padding: 0; overflow: hidden; }
.pipeline-jobs-head, .pipeline-canvas-head, .pipeline-inspector-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.pipeline-jobs-head h2, .pipeline-canvas-head h2, .pipeline-inspector-head h2 { font-size: 15px; }
.pipeline-jobs-list { max-height: 690px; overflow: auto; padding: 8px; }
.pipeline-job {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 7px;
  padding: 10px 11px;
  text-align: left;
  color: var(--ink);
  line-height: 1.35;
}
.pipeline-job:hover { background: #f4f7f2; }
.pipeline-job.active { background: var(--mint); border-color: #c6ddc7; }
.pipeline-job strong { font-size: 12px; }
.pipeline-job small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.pipeline-job .pipeline-job-state { margin-top: 6px; font-size: 10px; color: var(--green); }
.pipeline-canvas-head p, .pipeline-inspector-head p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.pipeline-mode-switch { display: inline-flex; gap: 3px; margin-top: 13px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f3f6f0; }
.pipeline-mode-switch button { border: 0; border-radius: 5px; padding: 6px 11px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.pipeline-mode-switch button.active { background: #fff; color: var(--green); box-shadow: 0 1px 5px #16362b1c; font-weight: 700; }
.pipeline-graph-viewport { overflow: auto; max-height: 720px; padding: 12px; background: #fafbf8; }
.pipeline-graph { position: relative; min-height: 320px; }
.pipeline-graph-config { min-height: 160px; }
.pipeline-edges { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.pipeline-node {
  position: absolute;
  width: 174px;
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid #d8e3d9;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 12px #16362b0d;
  color: var(--ink);
  text-align: left;
  line-height: 1.35;
}
.pipeline-node:hover { border-color: #8eb797; }
.pipeline-node.active { border-color: var(--green); box-shadow: 0 0 0 3px #2d715622; }
.pipeline-node.virtual { border-style: dashed; background: #fafcf9; }
.pipeline-node-type { display: block; font-size: 9px; letter-spacing: .5px; color: var(--green); margin-bottom: 4px; }
.pipeline-node strong { display: block; font-size: 12px; }
.pipeline-node small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pipeline-node .pipeline-node-dot { position: absolute; right: 10px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #cad2c8; }
.pipeline-node.editable .pipeline-node-dot { background: #74ad7c; }
.pipeline-graph-config .pipeline-node { width: 260px; min-height: 83px; }
.pipeline-graph-config .pipeline-node small { white-space: normal; line-height: 1.4; }
.pipeline-legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.pipeline-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #74ad7c; margin-right: 5px; }
.pipeline-inspector-body { padding: 17px 18px; max-height: 690px; overflow: auto; }
.pipeline-lineage { margin-bottom: 17px; }
.pipeline-inspector-body > form + .pipeline-lineage { border-top: 1px solid var(--line); padding-top: 15px; }
.pipeline-lineage-note { padding: 9px 11px; border-radius: 7px; background: #f4f7f2; color: var(--muted); font-size: 11px; line-height: 1.5; margin-bottom: 8px; }
.pipeline-lineage-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.pipeline-lineage-heading h3 { font-size: 11px; color: var(--green); }
.pipeline-lineage-card { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfa; margin-bottom: 8px; font-size: 11px; line-height: 1.5; }
.pipeline-lineage-card.inactive { opacity: .65; background: #f6f7f4; }
.pipeline-lineage-title { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 7px; }
.pipeline-lineage-card > summary { cursor: pointer; list-style-position: inside; }
.pipeline-lineage-card > summary strong { margin-left: 4px; }
.pipeline-lineage-title strong { overflow-wrap: anywhere; }
.pipeline-lineage-title span { flex: 0 0 auto; color: var(--green); font-size: 10px; }
.pipeline-lineage-meta { display: grid; gap: 5px; margin: 0; }
.pipeline-lineage-meta > div { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 7px; }
.pipeline-lineage-meta dt { color: var(--muted); }
.pipeline-lineage-meta dd { margin: 0; overflow-wrap: anywhere; }
.pipeline-lineage-card p { margin: 7px 0 0; }
.pipeline-lineage-card small { display: block; color: var(--muted); overflow-wrap: anywhere; margin-top: 7px; }
.pipeline-lineage-conditions { margin-top: 8px; }
.pipeline-lineage-conditions strong { font-size: 10px; }
.pipeline-lineage-conditions ul { margin: 5px 0 0 16px; padding: 0; }
.pipeline-field-group + .pipeline-field-group { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.pipeline-field-group h3 { font-size: 11px; color: var(--green); margin-bottom: 12px; }
.pipeline-field { display: block; margin-bottom: 18px; }
.pipeline-field-head, .pipeline-field-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pipeline-field-head > label { font-size: 12px; font-weight: 600; }
.pipeline-field-badge { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.pipeline-field-badge.custom { color: var(--amber); }
.pipeline-field input, .pipeline-field select, .pipeline-field textarea { width: 100%; margin-top: 0; }
.pipeline-field textarea { min-height: 90px; resize: vertical; font-family: Consolas, "Microsoft YaHei", monospace; font-size: 12px; line-height: 1.6; }
.pipeline-field-group:has(.pipeline-field-key) .pipeline-field textarea { min-height: 210px; }
.pipeline-field input[type="checkbox"] { width: auto; }
.pipeline-field small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.pipeline-field-key { font-family: Consolas, monospace; overflow-wrap: anywhere; margin-bottom: 5px; }
.pipeline-field-foot small { flex: 1 1 auto; }
.pipeline-restore { border: 0; padding: 0; color: var(--green); background: none; cursor: pointer; white-space: nowrap; font-size: 10px; }
.pipeline-restore:hover { text-decoration: underline; }
.pipeline-step-link { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.pipeline-readonly { padding: 14px; border-radius: 7px; background: #f4f7f2; color: var(--muted); font-size: 11px; line-height: 1.6; }
.pipeline-readonly strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 12px; }
.pipeline-field-error { color: var(--red) !important; }
.pipeline-empty { padding: 22px 18px; color: var(--muted); font-size: 12px; }
.pipeline-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 13px 18px; border-top: 1px solid var(--line); }
.pipeline-actions .pipeline-dirty { color: var(--amber); font-size: 11px; margin-right: auto; }
.pipeline-status { padding: 10px 18px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
.pipeline-status.error { color: var(--red); }
.pipeline-validation { margin-top: 18px; padding: 12px; border-radius: 7px; background: #edf5ec; color: #356745; font-size: 11px; }
.pipeline-validation strong { display: block; margin-bottom: 5px; }
.pipeline-validation p + p { margin-top: 4px; }
@media (max-width: 1370px) {
  .pipeline-shell { grid-template-columns: 215px minmax(340px, 1fr); }
  .pipeline-inspector { grid-column: 2; }
}
@media (max-width: 900px) {
  .pipeline-shell { grid-template-columns: 1fr; }
  .pipeline-jobs-list { display: flex; gap: 6px; max-height: none; overflow-x: auto; }
  .pipeline-job { min-width: 150px; width: 150px; }
  .pipeline-inspector { grid-column: auto; }
}
@media (max-width: 620px) {
  .subnav { min-height: 42px; padding: 5px 16px; }
  .subnav-item { font-size: 11px; padding: 5px 10px; }
  .pipeline-graph-viewport { padding: 8px; }
}
