:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #292f32;
  background: #fff;
  font-size: 13px;
  font-synthesis: none;
  --line: #e1e5e5;
  --muted: #687477;
  --accent: #087e78;
  --green: #238157;
  --red: #c23e46;
  --surface: #f5f7f7;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid #d4dada;
  background: #fff;
  color: inherit;
  border-radius: 4px;
  min-height: 32px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.4;
  font-size: 12px;
  font-weight: 500;
}
button:hover {
  background: #f0f4f3;
  border-color: #a9b9b6;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button[aria-busy="true"] {
  opacity: 0.85;
  cursor: wait;
}
.task-action-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  color: var(--accent);
  overflow-wrap: anywhere;
}
.admission-progress { min-width: 0; flex: 1; }
.admission-progress progress { display: block; width: 100%; height: 6px; margin: 10px 0; accent-color: #168b7c; }
.admission-file { display: block; overflow-wrap: anywhere; font-size: 12px; }
.task-action-status p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.task-action-status .lucide-loader-circle,
button[aria-busy="true"] .lucide-loader-circle {
  animation: task-action-spin 1.2s linear infinite;
}
@keyframes task-action-spin {
  to { transform: rotate(360deg); }
}
.data-preflight {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin: 16px 0;
  min-width: 0;
}
.data-preflight .section-head { margin: 0 0 8px; flex-wrap: wrap; gap: 8px; }
.data-preflight .section-head strong { font-size: 12px; color: #167455; }
.data-preflight.failed .section-head strong { color: #b93838; }
.preflight-counts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 12px; }
.data-preflight details { margin-top: 10px; }
.data-preflight summary { cursor: pointer; font-size: 12px; }
.preflight-rows { max-height: 360px; overflow: auto; }
.preflight-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 12px; }
.preflight-row > * { min-width: 0; }
.preflight-row code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; color: var(--muted); margin-top: 4px; }
.preflight-row strong, .preflight-row span { overflow-wrap: anywhere; }
.preflight-row.failed span { color: #b93838; }
@media (max-width: 600px) { .preflight-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
@media (prefers-reduced-motion: reduce) {
  .task-action-status .lucide-loader-circle,
  button[aria-busy="true"] .lucide-loader-circle {
    animation: none;
  }
}
.execution-steps {
  margin-top: 12px;
  font-size: 12px;
  min-width: 0;
}
.execution-steps summary { cursor: pointer; color: var(--muted); }
.execution-steps ol { list-style: none; margin: 10px 0 0; padding: 0; }
.execution-steps li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; padding: 7px 0; }
.execution-steps li > svg { width: 14px; height: 14px; margin-top: 2px; }
.execution-steps .step-succeeded > svg { color: #168454; }
.execution-steps .step-failed > svg { color: #ba3030; }
.execution-steps .step-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.execution-steps .step-title > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.execution-steps .step-title > span:last-child { flex-shrink: 0; }
.execution-steps progress { display: block; width: 100%; height: 4px; margin: 6px 0; accent-color: #168b7c; }
.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.primary:hover {
  background: #08665f;
  border-color: #08665f;
}
.danger {
  color: var(--red);
}
a {
  color: var(--accent);
  text-decoration: none;
}
svg.lucide {
  width: 17px;
  height: 17px;
  flex: none;
  stroke-width: 1.7;
}
.icon-button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 7px;
  flex: none;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.small {
  font-size: 12px;
}
.error {
  color: var(--red);
  overflow-wrap: anywhere;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 208px;
  border-right: 1px solid #30383a;
  background: #252a2c;
  color: #e4e9e8;
  display: flex;
  flex-direction: column;
  padding: 20px 12px 12px;
  z-index: 20;
  overflow-y: auto;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #f5f8f7;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}
.brand strong {
  display: block;
  font-size: 11px;
  color: #a4b2b0;
  font-weight: 450;
}
.brand-symbol {
  background: #b3e4d5;
  color: #204c42;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  flex: none;
}
nav {
  margin-top: 30px;
  display: grid;
  gap: 3px;
}
nav a,
.sidebar-bottom a,
.sidebar-bottom button {
  border: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 12px;
  min-height: 36px;
  color: #b6c2c0;
  border-radius: 4px;
  background: transparent;
  font-size: 12px;
}
nav a.active {
  color: #d8f5e9;
  background: #35443f;
  box-shadow: inset 2px 0 #87cbb2;
  font-weight: 600;
}
nav a:hover {
  background: #333b3c;
  color: #fff;
}
.nav-divider {
  border-top: 1px solid var(--line);
  margin: 16px 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  display: grid;
  gap: 2px;
}
.workspace {
  margin-left: 208px;
  min-width: 0;
  min-height: 100dvh;
  background: #fff;
}
.topbar {
  height: 50px;
  background: #f7f9f8;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  color: #52615e;
  font-size: 12px;
}
.environment {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28a477;
}
.topbar .icon-button {
  border: 0;
}
#menu {
  display: none;
}
#nav-close { display: none; }
#nav-backdrop { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; border: 0; border-radius: 0; background: #17251f70; z-index: 19; cursor: default; }
body.navigation-open { overflow: hidden; }
main {
  padding: 24px 26px 48px;
  max-width: 2048px;
  min-width: 0;
  margin: auto;
}
.agent-approval { max-width: 960px; overflow-wrap: anywhere; }
.agent-approval h2 { margin: 28px 0 16px; }
.agent-approval ul { padding: 0; margin: 12px 0 20px; list-style: none; }
.agent-approval li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.agent-approval li .muted { margin-top: 6px; font-size: 12px; }
.agent-approval pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
.agent-approval .actions { margin-top: 28px; flex-wrap: wrap; }
h1 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 650;
  margin: 0;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  font-weight: 600;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.page-head p {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px 0;
  margin-bottom: 24px;
  border-block: 1px solid var(--line);
  background: #f8faf9;
}
.metric {
  padding: 0 20px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.metric:first-child {
  padding-left: 20px;
}
.metric:last-child {
  border: 0;
}
.metric span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.2;
}
.attribution {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin: 0 0 16px;
  font-size: 12px;
}
.attribution dt { color: var(--muted); margin-bottom: 6px; font-size: 12px; }
.attribution dd { margin: 0; overflow-wrap: anywhere; }
.attribution small { display: block; color: var(--muted); margin-top: 4px; }
.run-attribution { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.operation-history ol { list-style: none; padding: 0; margin: 0 0 24px; max-height: 300px; overflow-y: auto; }
.operation-history li { display: grid; grid-template-columns: 110px minmax(90px, 1fr) 2fr 80px; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.operation-history time, .operation-history small { color: var(--muted); }
#runtime-events { margin: 24px 0; }
.table-wrap .task-table {
  min-width: 920px;
}
.metrics.task-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.task-queue-note { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; overflow-wrap: anywhere; }
.task-dataset-progress { padding: 16px 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.task-dataset-progress.compact {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 122px;
}
.task-progress-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.task-progress-title strong {
  font-size: 14px;
  font-weight: 600;
}
.compact .task-progress-title strong { font-size: 12px; }
.task-dataset-progress progress { display: block; width: 100%; height: 5px; margin: 9px 0; accent-color: var(--green); border: 0; border-radius: 0; background: #e9edf2; }
.task-dataset-progress progress::-webkit-progress-bar { background: #e9edf2; }
.task-dataset-progress progress::-webkit-progress-value { background: var(--green); }
.task-dataset-progress progress::-moz-progress-bar { background: var(--green); }
.task-progress-counts { display: flex; gap: 6px 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; min-height: 16px; }
.task-progress-failed { color: var(--red); }
@media (max-width: 1000px) { .metrics.task-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 0; } }
@media (max-width: 650px) { .metrics.task-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.account-table { min-width: 500px; }
.account-table td > span { display: block; margin-top: 4px; color: var(--muted); }
@media (max-width: 600px) {
  .operation-history li { grid-template-columns: 90px minmax(0, 1fr); gap: 8px; }
  .toolbar #creator-filter { max-width: 100%; }
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.search {
  max-width: 300px;
  flex: 1;
  min-width: 150px;
}
.toolbar select {
  width: auto;
  min-width: 110px;
  max-width: 100%;
}
.pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.pagination-range {
  min-width: 92px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.run-pagination { margin-left: 2px; }
@media (max-width: 600px) {
  .pagination-range { min-width: 76px; }
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  background: #fff;
  border-block: 1px solid var(--line);
  scrollbar-width: thin;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}
th {
  font-size: 11px;
  color: #64726e;
  font-weight: 550;
  background: #f3f6f5;
  padding: 9px 12px;
  line-height: 1.5;
}
td {
  padding: 11px 12px;
  border-top: 1px solid #e9edeb;
  font-size: 12px;
  overflow-wrap: anywhere;
  vertical-align: middle;
  line-height: 1.55;
}
td:first-child {
  font-weight: 550;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover {
  background: #f0f8f4;
}
td .muted {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 11px;
  line-height: 1.3;
  background: #eef1f1;
  color: #626e71;
  white-space: nowrap;
  font-weight: 500;
}
.badge.pass {
  background: #e8f4ed;
  color: #25774e;
}
.badge.running {
  background: #e8f1fb;
  color: #2a65b1;
}
.badge.review {
  background: #fff3d9;
  color: #946508;
}
.badge.fail {
  background: #fbeaec;
  color: #b33441;
}
.state-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border-block: 1px solid var(--line);
}
.empty svg {
  width: 30px;
  height: 30px;
  color: #a7afbb;
  margin-bottom: 15px;
}
.empty p {
  margin: 0 0 18px;
}
.split {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
}
.filters {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.filters button {
  justify-content: space-between;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.filters button.selected {
  background: #eaf5ee;
  color: #087e78;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
}
.tabs button.active {
  color: #087e78;
  border-color: #087e78;
}
.definition-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 0 24px;
  border-top: 1px solid var(--line);
}
.definition-item {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0;
  cursor: pointer;
  min-width: 0;
}
.definition-item:hover {
  background: #f5faf7;
}
.definition-item h3 {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.definition-item .mini-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin: 16px 0;
  color: #64736f;
  font-size: 11px;
}
.mini-flow span {
  border-bottom: 2px solid #b4cfc2;
  padding: 0 0 7px;
}
.definition-footer {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.overview {
  display: flex;
  gap: 16px 28px;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  background: #f7f9f8;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 12px;
}
.overview > div {
  min-width: 80px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.overview > div > .badge { display: inline-flex; }
.overview > div > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.stage-scroll {
  overflow-x: auto;
  max-width: 100%;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
}
.stage-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 220px;
}
.stage-column {
  min-width: 0;
}
.stage-heading {
  padding: 0 0 12px;
  border-bottom: 2px solid #c0d5ca;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stage-heading h3 {
  max-width: 180px;
  overflow-wrap: anywhere;
}
.stage-heading small {
  display: block;
  color: #8b939e;
  font-size: 10px;
  font-weight: 400;
  margin-top: 7px;
}
.node {
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid #c7cecc;
  border-radius: 4px;
  background: #fff;
  margin-top: 10px;
  cursor: pointer;
  min-height: 78px;
}
.node:hover {
  border-color: #83b4a5;
  background: #f9fcfa;
}
.node.succeeded {
  border-left-color: #43a581;
}
.node.running {
  border-left-color: #4f80dc;
}
.node.failed {
  border-left-color: #cb5a55;
}
.node.review {
  border-left-color: #d6a34b;
}
.node-title {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
.node-title > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.node-sub {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: #77837f;
}
.node-deps {
  margin-top: 9px;
  font-size: 10px;
  color: #6d7b74;
  overflow-wrap: anywhere;
}
.node-parallel {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.parallel-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  color: #64746a;
}
.parallel-metrics strong {
  margin-left: 3px;
  color: #34483d;
  font-size: 13px;
  font-weight: 600;
}
.parallel-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 8px;
  margin-top: 7px;
  color: #768378;
}
.node-sub > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.stage-output {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.stage-output strong {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 500;
}
.stage-output .mono {
  font-size: 10px;
  line-height: 1.5;
}
.gate-line {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 0;
  font-size: 11px;
  color: #697583;
}
.section-head {
  margin: 22px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.log {
  background: #fafbfa;
  border-block: 1px solid var(--line);
  max-height: 300px;
  overflow: auto;
  padding: 4px 10px;
}
.log-row {
  display: grid;
  grid-template-columns: 140px 150px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  font-size: 11px;
  border-bottom: 1px solid #e9edeb;
  color: #6c7c76;
}
.log-row:last-child {
  border: 0;
}
.log-row > span {
  overflow-wrap: anywhere;
}
.log-row .kind {
  color: #354252;
}
.path-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.path-row code {
  flex: 1;
  min-width: 0;
}
.kv {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  font-size: 12px;
  margin: 15px 0;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.version-line {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.version-line h3 {
  margin-bottom: 10px;
}
.editor-head {
  display: grid;
  grid-template-columns: 1fr 1fr 130px;
  gap: 12px;
  margin-bottom: 22px;
}
.editor-board {
  display: flex;
  gap: 18px;
  overflow: auto;
  padding-bottom: 18px;
}
.edit-stage {
  min-width: 275px;
  width: 275px;
  flex: none;
  border-top: 2px solid #6ea58d;
  padding-top: 13px;
}
.edit-stage header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.edit-stage header input {
  font-weight: 600;
  min-width: 0;
}
.edit-stage .node {
  min-height: 65px;
}
.edit-stage .node-sub {
  font-size: 11px;
}
.edit-stage .stage-tools {
  margin: 12px 0;
  display: flex;
  justify-content: space-between;
}
.editor-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
label {
  display: block;
  font-size: 12px;
  color: #626c78;
  margin: 0 0 15px;
}
input,
select,
textarea {
  width: 100%;
  padding: 7px 9px;
  margin-top: 6px;
  background: #fff;
  border: 1px solid #d4dcda;
  border-radius: 4px;
  color: #293a35;
  min-width: 0;
  font-size: 12px;
  min-height: 32px;
}
input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-height: 15px;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
}
textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.6;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.help-line {
  font-size: 11px;
  color: #8c94a0;
  margin: 8px 0;
}
.select-list {
  max-height: 250px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
}
.select-list label {
  margin: 0;
  padding: 9px 3px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.select-list label span {
  overflow-wrap: anywhere;
}
.gate-option {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
#stage-form > .select-list {
  max-height: none;
  overflow: visible;
  border: 0;
  padding: 0;
}
.gate-execution {
  min-width: 0;
  border: 0;
  padding: 8px 0 8px 24px;
  margin: 0;
}
.gate-execution:disabled {
  display: none;
}
.select-list .gate-execution label {
  display: grid;
  gap: 6px;
}
.partition-table td {
  overflow-wrap: anywhere;
}
[data-scroll="partition-table"] {
  max-height: 52dvh;
}
.partition-table th {
  position: sticky;
  top: 0;
  background: #f4f7f5;
  z-index: 1;
}
dialog {
  width: min(760px, calc(100% - 28px));
  padding: 0;
  border: 1px solid #dce1e8;
  border-radius: 8px;
  max-height: 90dvh;
  color: inherit;
  box-shadow: 0 15px 70px #1a26322a;
}
dialog::backdrop {
  background: #26344455;
  backdrop-filter: blur(2px);
}
dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 25px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
dialog > header h2 {
  font-size: 17px;
}
#dialog-body {
  padding: 24px;
}
#dialog-body pre {
  font-size: 11px;
  line-height: 1.6;
  overflow: auto;
  background: #f5f7f6;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  max-height: 360px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dialog-wide {
  width: min(1050px, calc(100% - 28px));
}
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.diff-before {
  background: #fcf0ee !important;
}
.diff-after {
  background: #edf7f1 !important;
}
.source-selection {
  margin-top: 18px;
}
.notice {
  font-size: 12px;
  background: #fff5df;
  border-left: 3px solid #c99535;
  padding: 13px 15px;
  margin: 15px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.view-error {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--red);
  overflow-wrap: anywhere;
}
.view-error svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  margin-top: 15px;
  overflow-wrap: anywhere;
}
.pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.pills span {
  font-size: 10px;
  background: #eef2f0;
  padding: 4px 6px;
  border-radius: 3px;
}
.tiny-button {
  font-size: 11px;
  padding: 5px 8px;
  min-height: 28px;
}
.node-library-row {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 32px;
  gap: 20px;
  font-size: 12px;
  align-items: center;
  min-width: 0;
}
.node-library-row code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.node-library-row h3 {
  margin-bottom: 7px;
}
.lineage {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: auto;
  padding: 14px 0;
}
.lineage span {
  font-size: 11px;
  border-bottom: 2px solid #b4cfc2;
  padding: 8px;
}
.bar {
  height: 3px;
  background: #e5ece8;
  margin-top: 10px;
}
.bar > i {
  height: 3px;
  background: #168b7c;
  display: block;
}
.light-border {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.right {
  margin-left: auto;
}
.no-wrap {
  white-space: nowrap;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #24313e;
  color: #fff;
  padding: 12px 20px;
  border-radius: 5px;
  max-width: calc(100% - 32px);
  font-size: 12px;
  z-index: 100;
  overflow-wrap: anywhere;
}
#login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #f3f6f4;
  border-top: 5px solid #2c3933;
}
#login[hidden] {
  display: none;
}
#login form {
  width: min(370px, 100%);
}
#login h1 {
  font-size: 22px;
  margin: 28px 0;
}
#login .primary {
  width: 100%;
  margin-top: 12px;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.brand-symbol svg.lucide { width: 21px; height: 21px; stroke-width: 1.8; }
.nav-group-label { padding: 0 12px 9px; color: #90a09b; font-size: 10px; }
.nav-system { margin-top: 18px; border-top: 1px solid #3c4441; padding-top: 18px; }
.sidebar-bottom a:hover, .sidebar-bottom button:hover { background: #333b3c; color: #fff; }
#username { overflow-wrap: anywhere; text-align: left; min-width: 0; }
#breadcrumb { min-width: 0; overflow-wrap: anywhere; }
.environment { flex-shrink: 0; font-size: 11px; }
.login-brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.login-brand strong { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 3px; }
.page-head > div { min-width: 0; }
.list-heading { margin: 0 0 12px; }
.list-heading h2 { font-size: 14px; }
.metric span::before { content: ""; width: 6px; height: 6px; background: #86918d; border-radius: 1px; flex: none; }
.metric-running span::before { background: #3a78bd; }
.metric-queued span::before { background: #8b78ad; }
.metric-draining span::before { background: #bf844a; }
.metric-review span::before { background: #c39a24; }
.metric-completed span::before { background: #2b8a60; }
.metric-running strong { color: #2a65b1; }
.metric-completed strong { color: #25774e; }
.search-control { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 300px; min-width: 150px; margin: 0; padding-left: 10px; border: 1px solid #d4dcda; border-radius: 4px; background: #fff; }
.search-control > svg { width: 15px; height: 15px; color: #81908a; }
.search-control .search { margin: 0; padding-left: 0; border: 0; min-width: 0; background: transparent; }
.search-control:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-control input:focus-visible { outline: none; }
.toolbar > input, .toolbar > select { margin-top: 0; }
.row-title { color: #243e33; font-size: 12px; font-weight: 600; }
.row-title:hover { color: var(--accent); text-decoration: underline; }
.table-date, .table-number { font-variant-numeric: tabular-nums; }
.table-number { color: var(--muted); }
.task-table .compact progress { margin: 5px 0; height: 3px; }
.task-table .task-progress-counts { font-size: 10px; min-height: 0; gap: 3px 8px; }
.task-table .compact .task-progress-title strong { font-size: 11px; }
.task-detail { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 24px; align-items: start; }
.task-execution, .task-context { min-width: 0; }
.task-context { border-left: 1px solid var(--line); padding-left: 20px; }
.task-context .context-heading { margin-top: 0; padding: 10px 0; border-block: 1px solid var(--line); }
.task-context .context-heading h2 { font-size: 13px; }
.task-context .attribution { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 10px; padding-top: 4px; }
.task-context .attribution dd { font-size: 11px; }
.task-context .run-attribution { padding-bottom: 12px; border-bottom: 1px solid var(--line); line-height: 1.6; gap: 5px; }
.task-context .operation-history li { grid-template-columns: 83px minmax(0, 1fr); gap: 5px 8px; padding: 10px 0; font-size: 11px; }
.task-context .operation-history li > span { grid-column: 2; }
.task-context .operation-history li > small { grid-column: 2; }
.task-context .log-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.task-context .section-head { margin: 18px 0 10px; }
.task-context .section-head h3 { font-size: 12px; }
.task-execution > .data-preflight:first-child { margin-top: 0; }
.task-execution .toolbar { padding: 10px 0; border-top: 1px solid var(--line); margin-bottom: 0; }
.task-execution .toolbar select { flex: 1 1 170px; width: 0; }
.task-execution .toolbar .run-pagination { flex: 1 0 auto; justify-content: flex-end; }
.task-execution .overview { margin-top: 0; }
.task-execution .overview > div { min-width: 70px; }
.node-library-heading { display: grid; grid-template-columns: 1.2fr 1fr 1fr 32px; gap: 20px; padding: 9px 12px; background: var(--surface); border-block: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.node-library-row > *, .node-library-heading > * { min-width: 0; }
.node-library-row:nth-child(even) { background: #fafcfb; }
.node-library-row .icon-button { justify-self: end; }
.node-title { min-width: 0; }
.node-title .badge { font-size: 10px; }
.stage-heading h3 { min-width: 0; }
details > summary { cursor: pointer; line-height: 1.6; overflow-wrap: anywhere; }
pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
input:focus, select:focus, textarea:focus { border-color: #76ab97; }
@media (max-width: 1200px) {
  .task-detail { grid-template-columns: minmax(0, 1fr); }
  .task-context { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .task-context .attribution { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .task-context .operation-history li { grid-template-columns: 110px minmax(90px, 1fr) 2fr 80px; }
  .task-context .operation-history li > span, .task-context .operation-history li > small { grid-column: auto; }
}

.mobile-hide {
  display: table-cell;
}
@media (max-width: 1000px) {
  .sidebar {
    width: 184px;
    padding: 20px 10px;
  }
  .workspace {
    margin-left: 184px;
  }
  main {
    padding: 22px 20px 40px;
  }
  .topbar {
    padding: 0 22px;
  }
  .brand {
    font-size: 14px;
    padding: 0 8px;
  }
  .brand-symbol {
    width: 30px;
    height: 33px;
  }
  .split {
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 15px;
  }
  .table-wrap table {
    min-width: 680px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    transform: translateX(-100%);
    width: 248px;
    box-shadow: 10px 0 40px #24313e22;
  }
  #nav-close { display: inline-flex; position: absolute; right: 8px; top: 18px; color: #c3d0ca; border: 0; background: transparent; }
  .sidebar.open {
    transform: none;
  }
  .workspace {
    margin: 0;
  }
  #menu {
    display: inline-flex;
  }
  .topbar {
    padding: 0 14px;
    gap: 10px;
    height: 56px;
  }
  main {
    padding: 20px 16px 40px;
  }
  .page-head {
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 20px;
  }
  .page-head .actions {
    margin-left: auto;
  }
  .metrics {
    gap: 0;
    margin-bottom: 18px;
    padding-bottom: 20px;
  }
  .metric {
    padding: 0 10px;
  }
  .metric strong {
    font-size: 24px;
  }
  .metric span {
    font-size: 10px;
  }
  .split {
    display: block;
  }
  .filters {
    flex-direction: row;
    overflow: auto;
    margin-bottom: 17px;
  }
  .filters button {
    flex: none;
    gap: 15px;
  }
  .stage-grid {
    grid-auto-columns: 260px;
    gap: 14px;
  }
  .overview {
    gap: 18px;
  }
  .table-wrap table {
    min-width: 570px;
  }
  .node-library-heading { display: none; }
  .node-library-row { grid-template-columns: minmax(0, 1fr) 32px; gap: 10px; }
  .node-library-row > div { grid-column: 1; }
  .node-library-row > button { grid-column: 2; grid-row: 1; }
  .node-library-row > div:nth-child(2)::before { content: "输入契约"; display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
  .node-library-row > div:nth-child(3)::before { content: "输出契约"; display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
  .task-context .attribution { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-context .operation-history li { grid-template-columns: 83px minmax(0, 1fr); }
  .task-context .operation-history li > span, .task-context .operation-history li > small { grid-column: 2; }
  .task-toolbar .search-control { max-width: none; flex-basis: 100%; }
  .task-toolbar .pagination { justify-content: flex-end; margin-left: auto; }
  .metrics.task-metrics { padding: 0; gap: 0; }
  .task-metrics .metric { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .task-metrics .metric:nth-child(2n) { border-right: 0; }
  .task-metrics .metric:nth-last-child(-n + 2) { border-bottom: 0; }
  .task-metrics .metric span { font-size: 11px; }
  .task-metrics .metric strong { font-size: 23px; }
  .toolbar .right.actions { margin-left: 0; }
  .editor-bottom { flex-wrap: wrap; }
  .tabs { overflow-x: auto; }
  .tabs button { flex-shrink: 0; }
  .form-actions { flex-wrap: wrap; }
  .form-row,
  .editor-head {
    grid-template-columns: 1fr;
  }
  .form-row {
    gap: 0;
  }
  .diff-grid {
    grid-template-columns: 1fr;
  }
  .log-row {
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 10px;
  }
  .log-row > span:last-child {
    grid-column: 1/-1;
  }
  .topbar .environment {
    font-size: 10px;
  }
  .tabs {
    gap: 20px;
  }
  .editor-board {
    margin-right: -8px;
  }
  #dialog-body {
    padding: 18px;
  }
  dialog > header {
    padding: 16px 18px;
  }
  .kv {
    grid-template-columns: 85px minmax(0, 1fr);
  }
  .mobile-hide {
    display: none;
  }
}
.table-wrap .catalog-table { min-width: 900px; }
.catalog-table th:first-child { width: 44px; }
.catalog-table th:nth-child(3) { width: 90px; }
.catalog-table th:nth-child(4) { width: 140px; }
.catalog-table th:nth-child(5) { width: 90px; }
.catalog-table th:nth-child(6) { width: 110px; }
.catalog-table th:nth-child(7) { width: 120px; }
.catalog-table td:nth-child(2) {
  min-width: 170px;
}
.catalog-table td:nth-child(2) > span {
  display: block;
  margin-top: 5px;
}
.version-browser {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  border-top: 1px solid var(--line);
}
.version-navigation {
  min-width: 0;
  padding: 20px 24px 20px 0;
}
.version-tree {
  max-height: 760px;
  overflow: auto;
}
.version-node {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 10px calc(8px + var(--depth) * 12px);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.version-node.selected,
.selected-row {
  background: #eaf5ee;
}
.version-node.selected {
  box-shadow: inset 3px 0 #238157;
}
.tree-joint {
  flex: 0 0 20px;
  color: #7b8fa7;
}
.tree-joint svg {
  width: 18px;
  height: 18px;
}
.version-node-body {
  display: grid;
  gap: 5px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.version-node-body strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.version-node-body strong svg {
  color: #a57015;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.version-node > .badge {
  flex-shrink: 0;
  font-size: 10px;
}
.version-inspector {
  min-width: 0;
  padding: 0 0 24px 26px;
  border-left: 1px solid var(--line);
}
.version-inspector h2 {
  font-size: 18px;
  margin: 0;
  overflow-wrap: anywhere;
}
.version-inspector p,
.version-inspector dd {
  overflow-wrap: anywhere;
}
.version-actions {
  margin: 18px 0;
}
.recommend-label {
  color: #916511;
  font-size: 12px;
}
.version-parents {
  display: grid;
  gap: 6px;
}
button.text-button {
  padding: 0;
  min-height: 0;
  border: 0;
  background: none;
  text-align: left;
  color: #087e78;
  overflow-wrap: anywhere;
}
.compare-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-controls select {
  flex: 1;
  width: 0;
  min-width: 0;
}
.version-generation {
  margin-top: 18px;
}
.version-generation summary,
.catalog-aliases summary {
  cursor: pointer;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.version-location {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.version-location .path-row {
  margin-top: 8px;
}
.version-locations {
  margin-bottom: 14px;
}
.catalog-management {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.catalog-management h3 {
  font-size: 13px;
}
.catalog-tabs {
  margin: 0;
}
#catalog-run-filter {
  max-width: 100%;
  min-width: 0;
}
.task-version-choice {
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.task-version-choice > select {
  width: 100%;
  max-width: 100%;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .version-browser {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  }
  .version-navigation {
    padding-right: 12px;
  }
  .version-inspector {
    padding-left: 16px;
  }
  .version-node {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .version-browser {
    display: block;
  }
  .version-navigation {
    padding-right: 0;
  }
  .version-tree {
    max-height: 380px;
  }
  .version-inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
  .version-node {
    padding-left: calc(6px + var(--depth) * 8px);
  }
  .version-node-body {
    min-width: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
/* Per-camera parameters stay aligned without a wide scrolling table. */
.fisheye-heading { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 8px; }
.fisheye-row { display: grid; grid-template-columns: minmax(85px, 1fr) repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e0e5ec; }
.fisheye-row label { min-width: 0; margin: 0; }
.fisheye-row input[type=number] { width: 100%; min-width: 0; }
.fisheye-row.with-projection { grid-template-columns: minmax(70px, .8fr) minmax(160px, 1.7fr) repeat(3, minmax(0, 1fr)); }
.fisheye-row select { width: 100%; min-width: 0; }
.fisheye-config > .check-label { margin: 16px 0; }
@media (max-width: 700px) { .fisheye-row, .fisheye-row.with-projection { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .fisheye-row > .check-label, .fisheye-projection { grid-column: 1 / -1; } }
.catalog-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; color: #667085; font-size: 13px; }
/* Compact, unframed execution observability inside the existing detail layout. */
.execution-observability { margin: 14px 0 6px; }
.execution-observability .section-head { margin-bottom: 6px; }
.obs-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #475467; font-size: 12px; padding: 2px 0 8px; }
.obs-table-wrap { max-width: 100%; overflow-x: auto; }
.observability-table { width: 100%; min-width: 960px; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.observability-table th:nth-child(1) { width: 18%; }
.observability-table th:nth-child(2) { width: 8%; }
.observability-table th:nth-child(3) { width: 25%; }
.observability-table th:nth-child(4) { width: 19%; }
.observability-table th:nth-child(5) { width: 14%; }
.observability-table th:nth-child(6), .observability-table th:nth-child(7) { width: 8%; }
.observability-table th { text-align: left; font-weight: 600; color: #667085; padding: 4px 8px; border-bottom: 1px solid #e4e7ec; white-space: nowrap; }
.observability-table td { padding: 5px 8px; border-bottom: 1px solid #f0f2f5; vertical-align: top; overflow-wrap: anywhere; }
.observability-table tr:last-child td { border-bottom: 0; }
.observability-table .obs-id { font-size: 11px; }
.obs-held { color: #b54708; font-weight: 600; }
.obs-released { color: #027a48; }
.obs-accepted { color: #027a48; }
.obs-gate-fail { margin-top: 6px; padding: 6px 8px; font-size: 12px; color: #b42318; background: #fef3f2; }
.obs-note { margin-top: 6px; }
.dataset-tags { display:flex; flex-wrap:wrap; gap:4px; align-items:center; min-width:0; }
.dataset-tag { display:inline-flex; align-items:center; gap:4px; max-width:100%; padding:2px 6px; border:1px solid #cbd5cf; border-radius:4px; background:#f3f7f4; color:#315643; font-size:12px; }
.dataset-tag > span { min-width:0; overflow-wrap:anywhere; }
.tag-remove { display:flex; align-items:center; justify-content:center; border:0; background:none; padding:0; width:20px; height:20px; flex-shrink:0; color:inherit; }
.tag-remove svg { width:13px; height:13px; }
.dataset-tag-bar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.tag-entry { display:flex; align-items:center; gap:4px; min-width:0; }
.tag-entry input { min-width:0; width:210px; }
.tag-fields { border:0; padding:0; margin:0; min-width:0; display:grid; gap:12px; }
.tag-filter { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:8px 0 14px; }
.tag-filter select { width:140px; }
.catalog-table .dataset-tags { max-width:260px; margin-top:5px; }
@media(max-width:600px) { .tag-entry input { width:170px; } .tag-filter .dataset-tags { flex-basis:100%; } }
