:root {
  --bg: #0d141a;
  --bg-grid: rgba(255,255,255,0.025);
  --rail: #080d12;
  --panel: #131d26;
  --panel-2: #182530;
  --panel-3: #0f1820;
  --line: #2b3a45;
  --line-soft: #1f2d37;
  --text: #d7e3e7;
  --muted: #81939f;
  --faint: #546672;
  --accent: #d7a13a;
  --accent-2: #4eb7a8;
  --danger: #cf6a54;
  --ok: #71bf78;
  --warn: #d7a13a;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  font-family: "Aptos Narrow", "DIN Condensed", "Liberation Sans Narrow", "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(78, 183, 168, 0.62) rgba(255,255,255,0.045);
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.035);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
  min-height: 36px;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(78, 183, 168, 0.86), rgba(215, 161, 58, 0.70))
    padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(93, 210, 195, 0.95), rgba(241, 183, 75, 0.84))
    padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
html, body, #root { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.08), transparent 28%),
    linear-gradient(315deg, rgba(78, 183, 168, 0.07), transparent 32%),
    repeating-linear-gradient(90deg, var(--bg-grid) 0, var(--bg-grid) 1px, transparent 1px, transparent 34px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.014) 0, rgba(255,255,255,0.014) 1px, transparent 1px, transparent 28px),
    var(--bg);
  font-size: 13px;
  letter-spacing: 0.01em;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
code, pre, textarea { font-family: "Cascadia Mono", "IBM Plex Mono", "Liberation Mono", monospace; }

.shell {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 12px 10px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #060a0f, var(--rail));
}

.brand, .login-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand {
  height: 42px;
  padding: 0 5px 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 27px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.module {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  width: 100%;
  min-height: 34px;
  margin: 4px 0;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  color: var(--muted);
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.module-code {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.module:hover, .module.active {
  color: var(--text);
  background: rgba(255,255,255,0.045);
  border-left-color: var(--accent);
}

.workspace {
  min-width: 0;
  padding: 12px 14px 16px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.dev-shell .topbar {
  border-bottom-color: rgba(215, 161, 58, 0.72);
}

.dev-env-ribbon {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  color: #ffe2a3;
  font-size: 11px;
  letter-spacing: 0;
}

.dev-env-ribbon b,
.dev-env-ribbon span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(215, 161, 58, 0.62);
  background: rgba(215, 161, 58, 0.12);
}

.dev-env-ribbon b {
  color: #111820;
  background: #d7a13a;
}

.eyebrow, .panel-eyebrow {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1, h2 { margin: 0; font-weight: 650; }
h1 { font-size: 21px; letter-spacing: 0.07em; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }

.loading-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin: 0;
  min-width: 0;
}
.loading-title-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.loading-title.is-loading .loading-title-text {
  color: var(--text);
}
.loading-spinner-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  vertical-align: -3px;
}
.loading-spinner-ring {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, rgba(105, 174, 232, 0.15), #69aee8, #4eb7a8, rgba(105, 174, 232, 0.15));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.22), 0 0 8px rgba(105,174,232,0.55);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation: loading-spinner-spin 0.82s linear infinite;
}
@keyframes loading-spinner-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .loading-spinner-ring { animation-duration: 1.8s; }
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.16);
  color: var(--muted);
  white-space: nowrap;
}
.top-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(78, 183, 168, 0.08), rgba(215, 161, 58, 0.035)),
    rgba(0,0,0,0.16);
  color: var(--muted);
}
.top-status-main,
.top-status-chips,
.top-status-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.top-status-title {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.top-status-chips {
  flex-wrap: wrap;
}
.top-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.025);
  white-space: nowrap;
  font-size: 11px;
}
.top-status-chip b {
  color: var(--muted);
  font-weight: 650;
}
.top-status-chip.ok { border-color: rgba(113, 191, 120, 0.42); color: var(--ok); }
.top-status-chip.warn { border-color: rgba(215, 161, 58, 0.45); color: var(--accent); }
.top-status-chip.fail { border-color: rgba(224, 105, 95, 0.45); color: var(--danger); }
.top-status-chip.user { color: var(--text); background: var(--panel-3); }
.top-status-actions {
  flex: 0 0 auto;
}
.global-top-status {
  padding: 0;
  border: 0;
  background: transparent;
}

.dot, .pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
}
.dot.ok, .pulse.online { background: var(--ok); }
.dot.fail, .pulse.offline { background: var(--danger); }

.user-pill {
  padding: 2px 7px;
  border: 1px solid var(--line-soft);
  color: var(--text);
  background: var(--panel-3);
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 10px 0;
  overflow-x: auto;
}

.tab, .ghost-btn {
  border: 1px solid var(--line);
  background: rgba(12, 18, 24, 0.62);
  color: var(--muted);
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 7px 12px;
  text-decoration: none;
}

.tab.active, .tab:hover {
  color: var(--text);
  border-color: var(--accent-2);
  background: rgba(78, 183, 168, 0.12);
}

.ghost-btn {
  min-height: 28px;
  padding: 4px 8px;
}
.ghost-btn:hover { color: var(--text); border-color: var(--accent); }
.ghost-btn.danger:hover { border-color: var(--danger); color: #ffd7cf; }
.primary-btn, .danger-btn {
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(78, 183, 168, 0.62);
  background: linear-gradient(180deg, rgba(78, 183, 168, 0.22), rgba(78, 183, 168, 0.08));
  color: var(--text);
}
.danger-btn {
  border-color: rgba(207, 106, 84, 0.62);
  background: linear-gradient(180deg, rgba(207, 106, 84, 0.2), rgba(207, 106, 84, 0.08));
  color: #ffd7cf;
}
.ghost-btn.compact, .primary-btn.compact, .danger-btn.compact { width: max-content; }

.page-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(520px, 1.55fr);
  gap: 10px;
  align-items: start;
}

.overview-grid .panel:nth-child(n+3), .dispatch-grid .panel:first-child, .scheduled-task-page .panel:first-child, .scheduled-task-page .panel:nth-child(2), .scheduled-task-page .panel:nth-child(3), .topology-grid .panel:nth-child(3) { grid-column: 1 / -1; }

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)), var(--panel);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.panel-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; align-items: center; min-width: 0; }
.panel-body { padding: 10px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.metric-card {
  min-height: 52px;
  padding: 7px;
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
}
.metric-card.clickable {
  cursor: pointer;
  outline: none;
}
.metric-card.clickable:hover, .metric-card.clickable:focus-visible {
  border-color: var(--accent);
  background:
    linear-gradient(90deg, rgba(215, 161, 58, 0.11), transparent 70%),
    var(--panel-2);
}
.metric-card.ok { border-color: rgba(113, 191, 120, 0.42); }
.metric-card.warn { border-color: rgba(215, 161, 58, 0.45); }
.metric-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.metric-value {
  margin-top: 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 760;
}
.metric-hint { margin-top: 3px; color: var(--muted); font-size: 11px; }

.node-card-list, .compact-list, .log-list, .heartbeat-list, .endpoint-list, .policy-grid, .security-board, .result-grid, .schedule-card-grid {
  display: grid;
  gap: 8px;
}

.node-card, .compact-row, .log-row, .heartbeat-row, .endpoint-list article, .policy-grid article, .security-board article, .result-card, .label-card, .schedule-card {
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}

.node-card, .result-card, .schedule-card { padding: 9px; }
.node-card-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin-bottom: 8px;
}
.node-card-head > * {
  min-width: 0;
}
.node-card-head strong {
  overflow-wrap: anywhere;
}
.node-card code, .compact-row code, td code {
  display: block;
  margin-top: 2px;
  color: #bcd2d7;
  font-size: 12px;
}
.node-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
}

.node-version-line, .gateway-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--muted);
}
.gateway-cell {
  display: grid;
  gap: 4px;
  margin-bottom: 0;
}

.version-chip, .mode-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid rgba(78, 183, 168, 0.48);
  color: #c9f3ec;
  background: rgba(78, 183, 168, 0.1);
  font-family: "Cascadia Mono", "IBM Plex Mono", "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.version-chip.unknown {
  color: var(--warn);
  border-color: rgba(215, 161, 58, 0.45);
  background: rgba(215, 161, 58, 0.08);
}
.mode-chip.schedule {
  color: #ffd7cf;
  border-color: rgba(207, 106, 84, 0.5);
  background: rgba(207, 106, 84, 0.1);
}

.node-availability-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 220px;
  margin: 5px 0 7px;
}
.capability-badge {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 6px;
  min-width: 104px;
  max-width: 190px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.16);
  line-height: 1.22;
}
.capability-badge b {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.capability-badge strong {
  justify-self: end;
  font-size: 11px;
}
.capability-badge small {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.capability-badge.ok {
  border-color: rgba(113, 191, 120, 0.42);
  background: rgba(113, 191, 120, 0.07);
}
.capability-badge.ok strong { color: var(--ok); }
.capability-badge.warn {
  border-color: rgba(215, 161, 58, 0.45);
  background: rgba(215, 161, 58, 0.08);
}
.capability-badge.warn strong { color: var(--warn); }
.capability-badge.fail {
  border-color: rgba(207, 106, 84, 0.45);
  background: rgba(207, 106, 84, 0.08);
}
.capability-badge.fail strong { color: var(--danger); }

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0,0,0,0.18);
  text-transform: uppercase;
  font-size: 11px;
}
.status-badge.online, .status-badge.succeeded, .status-badge.public, .status-badge.ok { color: var(--ok); border-color: rgba(113, 191, 120, 0.45); }
.status-badge.offline, .status-badge.failed, .status-badge.canceled { color: var(--danger); border-color: rgba(207, 106, 84, 0.45); }
.status-badge.running, .status-badge.dispatched, .status-badge.accepted, .status-badge.internal, .status-badge.delivered, .status-badge.applied { color: var(--accent-2); border-color: rgba(78, 183, 168, 0.45); }
.status-badge.queued, .status-badge.staged, .status-badge.warn { color: var(--warn); border-color: rgba(215, 161, 58, 0.45); }
.status-badge.ignored { color: var(--muted); border-color: rgba(129, 147, 159, 0.38); }
.status-badge.private, .status-badge.p1, .status-badge.prioritized, .status-badge.verified { color: var(--accent-2); border-color: rgba(78, 183, 168, 0.45); }
.status-badge.stale, .status-badge.invalid, .status-badge.abandoned { color: var(--warn); border-color: rgba(215, 161, 58, 0.45); }

.docker-page {
  display: grid;
  gap: 10px;
}

.docker-node-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.docker-node-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(12, 18, 24, 0.62);
  text-align: left;
}
.docker-node-tile.active, .docker-node-tile:hover {
  color: var(--text);
  border-color: var(--accent-2);
  background: rgba(78, 183, 168, 0.1);
}
.docker-node-tile code, .docker-node-tile span:last-child {
  grid-column: 2;
  color: var(--muted);
}

.docker-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1.65fr) minmax(280px, 0.75fr);
  gap: 10px;
  align-items: start;
}

.docker-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(78, 183, 168, 0.12), transparent 42%),
    var(--panel-3);
}
.docker-hero h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.docker-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
  color: var(--muted);
}
.docker-meta span {
  padding: 2px 6px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.03);
}

.docker-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.docker-volume-focus {
  display: grid;
  gap: 8px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(113, 191, 120, 0.34);
  background:
    linear-gradient(90deg, rgba(113, 191, 120, 0.11), transparent 55%),
    var(--panel-3);
}
.docker-volume-focus.missing {
  border-color: rgba(215, 161, 58, 0.45);
  background:
    linear-gradient(90deg, rgba(215, 161, 58, 0.12), transparent 55%),
    var(--panel-3);
}
.volume-focus-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.volume-focus-body {
  display: grid;
  gap: 5px;
}
.volume-focus-body strong {
  font-size: 15px;
  letter-spacing: 0.03em;
}
.volume-focus-body > span {
  color: var(--muted);
}
.volume-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.82fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
}
.volume-route code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c7ddd8;
}
.docker-meta.compact {
  margin-top: 2px;
}

.docker-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  height: 34px;
  color: var(--muted);
}
.docker-section-head h3 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.docker-container-table {
  max-height: calc(100vh - 348px);
}

.docker-side-stack {
  display: grid;
  gap: 10px;
}
.docker-side-panel .panel-body {
  padding: 8px;
}
.docker-side-list {
  display: grid;
  gap: 6px;
  max-height: 230px;
  overflow: auto;
}
.docker-side-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 7px;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}
.docker-side-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.docker-side-row span {
  color: var(--muted);
}
.docker-side-row code {
  grid-column: 1 / -1;
  color: #bcd2d7;
  overflow: hidden;
  text-overflow: ellipsis;
}
.docker-side-row.database-volume {
  border-color: rgba(113, 191, 120, 0.54);
  background:
    linear-gradient(90deg, rgba(113, 191, 120, 0.14), transparent 70%),
    var(--panel-3);
}
.docker-side-row.database-volume strong {
  color: #d6f1df;
}
.docker-side-more {
  padding: 6px 7px;
  border: 1px dashed var(--line-soft);
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,0.02);
}

.monitor-page {
  display: grid;
  gap: 10px;
}

.monitor-layout {
  display: grid;
  grid-template-columns: minmax(680px, 1.6fr) minmax(310px, 0.75fr);
  gap: 10px;
  align-items: start;
}

.monitor-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(215, 161, 58, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(78, 183, 168, 0.08), transparent),
    var(--panel-3);
}
.monitor-hero h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.monitor-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric-chart {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line-soft);
  background: #0d161d;
}
.metric-chart-head, .metric-chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.metric-chart-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.metric-chart-head strong {
  font-size: 24px;
  letter-spacing: 0.03em;
}
.metric-chart-head code {
  color: var(--faint);
}
.metric-chart svg {
  width: 100%;
  height: 116px;
  margin: 8px 0;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, transparent 48%, rgba(255,255,255,0.05) 49%, transparent 50%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 12px),
    #091015;
}
.metric-chart polygon {
  fill: rgba(78, 183, 168, 0.16);
}
.metric-chart polyline {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}
.metric-chart line {
  stroke: rgba(255,255,255,0.12);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.metric-chart.cpu polyline { stroke: var(--accent); }
.metric-chart.cpu polygon { fill: rgba(215, 161, 58, 0.16); }
.metric-chart.disk polyline { stroke: #9db7ff; }
.metric-chart.disk polygon { fill: rgba(157, 183, 255, 0.15); }
.metric-chart-foot {
  color: var(--muted);
  font-size: 11px;
}

.monitor-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.performance-page {
  display: grid;
  gap: 10px;
}
.performance-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(78, 183, 168, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(215, 161, 58, 0.08), transparent 64%),
    var(--panel);
}
.performance-hero h2 {
  font-size: 20px;
  text-transform: none;
  letter-spacing: 0.04em;
}
.performance-hero p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
}
.performance-top-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.3fr) minmax(360px, 0.9fr);
  gap: 10px;
  align-items: stretch;
}
.performance-memory-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.12), transparent 32%),
    #0b141b;
}
.performance-memory-head,
.performance-axis-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.performance-memory-head strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}
.performance-memory-head span,
.performance-axis-row {
  color: var(--muted);
  font-size: 11px;
}
.performance-memory-card svg {
  width: 100%;
  height: 180px;
  margin: 8px 0;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, transparent 48%, rgba(255,255,255,0.05) 49%, transparent 50%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 16px),
    #071015;
}
.performance-memory-card polygon {
  fill: rgba(215, 161, 58, 0.14);
}
.performance-memory-card polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.9;
  vector-effect: non-scaling-stroke;
}
.performance-memory-card line {
  stroke: rgba(255,255,255,0.14);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.performance-metric-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.performance-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(460px, 0.9fr);
  gap: 10px;
  align-items: start;
}
.performance-table-wrap {
  max-height: 360px;
  overflow: auto;
}
.performance-table {
  min-width: 720px;
}
.performance-table th,
.performance-table td {
  padding: 7px 8px;
}
.performance-table code {
  color: #d6e7e6;
}
.performance-empty-line {
  padding: 12px;
  border: 1px dashed var(--line-soft);
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.codex-load-test-panel {
  border-color: rgba(215, 161, 58, 0.32);
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(215, 161, 58, 0.08), transparent 70%),
    var(--panel);
}
.codex-load-test-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.codex-load-api-table {
  margin-top: 10px;
  max-height: 220px;
}

.process-resource-panel {
  margin-top: 8px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent 28%),
    #0b141b;
}
.process-resource-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 9px;
  border-bottom: 1px solid var(--line-soft);
}
.process-resource-head h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.06em;
}
.process-resource-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  align-items: center;
}
.process-table-wrap {
  max-height: 420px;
  overflow: auto;
}
.process-resource-table {
  min-width: 1120px;
}
.process-resource-table th,
.process-resource-table td {
  padding: 6px 8px;
}
.process-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-transform: inherit;
  letter-spacing: inherit;
}
.process-sort-button span {
  color: var(--faint);
  font-size: 10px;
}
.process-sort-button.active span {
  color: var(--accent-2);
}
.process-name-cell {
  display: grid;
  gap: 2px;
  min-width: 260px;
  max-width: 420px;
}
.process-name-cell strong {
  color: #e3eef0;
}
.process-command {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.process-state {
  display: inline-flex;
  min-width: 22px;
  justify-content: center;
  padding: 1px 5px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background: rgba(255,255,255,0.025);
  font-family: "Cascadia Mono", "IBM Plex Mono", "Liberation Mono", monospace;
}
.process-meter {
  position: relative;
  min-width: 104px;
  height: 20px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.025);
}
.process-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(78, 183, 168, 0.58), rgba(78, 183, 168, 0.12));
}
.process-meter.cpu span {
  background: linear-gradient(90deg, rgba(215, 161, 58, 0.64), rgba(215, 161, 58, 0.12));
}
.process-meter b {
  position: relative;
  z-index: 1;
  display: block;
  padding: 2px 6px;
  color: #eaf3f2;
  font-family: "Cascadia Mono", "IBM Plex Mono", "Liberation Mono", monospace;
  font-size: 11px;
}
.process-io-cell {
  display: grid;
  gap: 2px;
  min-width: 146px;
}
.process-io-cell strong {
  color: #d7e3e7;
}
.process-io-cell span {
  color: var(--muted);
  font-size: 11px;
}

.monitor-side-stack {
  display: grid;
  gap: 10px;
}
.monitor-note-list, .upgrade-control {
  display: grid;
  gap: 8px;
}
.monitor-note-list article {
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}
.monitor-note-list span, .upgrade-control p {
  margin: 0;
  color: var(--muted);
}

.upgrade-target-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px 7px;
  border: 1px solid var(--line-soft);
  background: rgba(78, 183, 168, 0.07);
  color: var(--muted);
}

.upgrade-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.upgrade-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 8px;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}
.upgrade-result code {
  grid-column: 1 / -1;
  color: #bcd2d7;
}

.gateway-page {
  display: grid;
  gap: 10px;
}
.gateway-version-table { min-width: 1280px; }
.gateway-version-table-wrap { max-height: 340px; }
.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 180px;
}
.latest-upgrade-cell {
  display: grid;
  gap: 4px;
  min-width: 220px;
}
.latest-upgrade-cell small, .gateway-record-meta, .upgrade-outcome {
  color: var(--muted);
}
.upgrade-outcome {
  display: block;
  min-width: 210px;
  max-width: 420px;
  overflow-wrap: anywhere;
}
.upgrade-outcome.failed { color: #ffd7cf; }
.upgrade-outcome.succeeded { color: #d8f6dd; }
.gateway-record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 8px;
}
.gateway-record-card {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}
.gateway-record-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 7px;
}
.gateway-record-head code {
  display: block;
  margin-top: 2px;
  color: #bcd2d7;
}
.gateway-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}
.gateway-record-meta span {
  padding: 2px 6px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.025);
}
.upgrade-record-table { min-width: 1080px; }
.upgrade-record-table-wrap {
  max-height: 300px;
  border: 1px solid var(--line-soft);
}
.upgrade-record-table-wrap.compact {
  max-height: 230px;
}
.provider-upgrade-records-panel .panel-body {
  padding: 8px;
}

.chip-row, .summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.data-chip, .summary-item, .summary-value {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 22px;
  padding: 2px 6px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}
.data-chip b, .summary-item b { color: var(--accent-2); font-weight: 650; }

.table-wrap { overflow: auto; max-height: calc(100vh - 174px); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
.node-list-table { min-width: 1180px; }
.task-history-table { min-width: 1080px; }
.microservice-table { min-width: 1320px; }
.findjob-job-table table { min-width: 1180px; }
th, td {
  padding: 7px 9px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #111a22;
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
td { color: var(--text); }

.task-duration {
  display: grid;
  gap: 2px;
  min-width: 118px;
}
.task-duration strong {
  color: var(--accent-2);
  font-family: "Cascadia Mono", "IBM Plex Mono", "Liberation Mono", monospace;
  font-size: 13px;
}
.task-duration span {
  color: var(--muted);
  font-size: 11px;
}
.task-diagnostic {
  display: grid;
  gap: 4px;
  min-width: 190px;
  max-width: 360px;
}
.task-diagnostic b {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.task-diagnostic.ok b { color: var(--ok); }
.task-diagnostic.warn b { color: var(--warn); }
.task-diagnostic.failed b { color: var(--danger); }
.diagnostic-reason {
  color: #ffd7cf;
  overflow-wrap: anywhere;
}
.diagnostic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.compact-row, .heartbeat-row, .log-row, .endpoint-list article, .policy-grid article {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
}
.log-row { grid-template-columns: 150px 52px 160px minmax(220px, 1fr) auto; }
.log-row.error { border-color: rgba(207, 106, 84, 0.48); }
.log-row.warn { border-color: rgba(215, 161, 58, 0.48); }
.heartbeat-row { grid-template-columns: auto minmax(220px, 1fr) minmax(180px, auto) minmax(180px, auto); }
.heartbeat-row span, .endpoint-list span, .policy-grid span { color: var(--muted); }
.heartbeat-row b { display: block; margin-top: 2px; }

.label-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  min-width: 0;
}
.label-card { padding: 8px; min-width: 0; }
.label-card span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; overflow-wrap: anywhere; }
.label-card strong { display: block; margin: 5px 0; overflow-wrap: anywhere; }
.label-card code { overflow-wrap: anywhere; white-space: normal; }

.dispatch-form {
  display: grid;
  grid-template-columns: 1.2fr 180px 150px 1fr 140px auto;
  gap: 8px;
  align-items: end;
}
.dispatch-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.stack-form {
  display: grid;
  gap: 8px;
}
.stack-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.dispatch-actions { display: flex; gap: 6px; align-items: end; }
.schedule-card-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.schedule-card dl {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 5px 8px;
  margin: 8px 0;
}
.schedule-card dt { color: var(--muted); }
.schedule-card dd { margin: 0; overflow-wrap: anywhere; }
.schedule-form {
  grid-template-columns: inherit;
}
.dispatch-form, .schedule-form {
  display: grid;
  grid-template-columns: 1.2fr 180px 150px 1fr 140px auto;
  gap: 8px;
  align-items: end;
}
.dispatch-form label, .schedule-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.raw-editor.compact { min-height: 72px; }
.schedule-run-table { min-width: 1180px; }
.dispatch-actions button[type="submit"], .login-form button[type="submit"] {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  color: #151107;
  background: var(--accent);
  font-weight: 760;
}
.raw-editor-label, .wide { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  background: #0b1218;
  padding: 7px 8px;
  outline: none;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-2); }

.result-card dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 5px 8px;
  margin: 8px 0;
}
.result-card dt { color: var(--muted); }
.result-card dd { margin: 0; }
.result-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.microservice-page, .findjob-page, .pipeline-page, .met-page, .code-queue-page, .baidu-netdisk-page, .filebrowser-page, .oa-event-flow-page, .decision-center-page {
  display: grid;
  gap: 10px;
}
.hwlab-page {
  grid-template-columns: 1fr;
}
.hwlab-page .panel-body {
  display: grid;
  gap: 10px;
}
.hwlab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 10px;
  align-items: stretch;
}
.hwlab-hero-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.hwlab-hero-copy h2 {
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hwlab-hero-copy .paragraph {
  max-width: 60ch;
}
.hwlab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: start;
  align-content: start;
}
.hwlab-actions .ghost-btn,
.hwlab-actions .primary-btn {
  width: max-content;
}
.hwlab-entry-list {
  grid-template-columns: 1fr;
}
.hwlab-entry-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}
.hwlab-entry-card b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hwlab-entry-card span {
  color: var(--muted);
}
.hwlab-entry-actions {
  margin-top: 6px;
}
.hwlab-url {
  word-break: break-all;
}
.microservice-actions, .inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
.findjob-hero, .pipeline-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(260px, 0.9fr) minmax(220px, 0.7fr);
  gap: 8px;
  align-items: stretch;
}
.microservice-ref-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}
.microservice-ref-card span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.microservice-ref-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.findjob-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(560px, 1.35fr);
  gap: 10px;
  align-items: start;
}
.oa-flow-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.45fr);
  gap: 10px;
  align-items: stretch;
}
.oa-flow-signal {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(78, 183, 168, 0.28);
  background:
    linear-gradient(120deg, rgba(78, 183, 168, 0.14), rgba(215, 161, 58, 0.08)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 14px),
    var(--panel-3);
}
.oa-flow-signal::after {
  content: "";
  position: absolute;
  inset: auto -20% 0 -20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent);
  animation: oa-signal-scan 2.8s linear infinite;
}
.oa-flow-signal span {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.oa-flow-signal strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}
.oa-flow-signal code { color: var(--muted); }
@keyframes oa-signal-scan {
  from { transform: translateX(-40%); opacity: 0.35; }
  50% { opacity: 1; }
  to { transform: translateX(40%); opacity: 0.35; }
}
.oa-flow-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.oa-filter-bar {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) auto minmax(180px, 0.45fr);
  gap: 10px;
  align-items: end;
}
.oa-filter-bar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.oa-filter-bar input {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel-3);
}
.oa-filter-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.oa-filter-bar > code {
  align-self: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent-2);
}
.oa-type-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.oa-flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.oa-flow-wide { min-width: 0; }
.oa-event-table, .oa-stats-table {
  min-width: 1120px;
  font-size: 12px;
}
.oa-event-table td,
.oa-stats-table td {
  vertical-align: top;
}
.oa-tag-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 360px;
}
.oa-tag-rail code {
  padding: 2px 5px;
  border: 1px solid rgba(78, 183, 168, 0.22);
  color: var(--accent-2);
  background: rgba(78, 183, 168, 0.07);
}
.oa-payload-preview {
  display: block;
  max-width: 360px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.findjob-grid .panel:nth-child(3) { grid-column: 1 / -1; }
.claudeqq-page .findjob-grid .panel:nth-child(n+3) { grid-column: 1 / -1; }
.filebrowser-hero {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) repeat(4, minmax(150px, 0.72fr));
  gap: 6px;
  align-items: stretch;
}
.filebrowser-hero h3 {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 18px;
  letter-spacing: 0.04em;
}
.filebrowser-target-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 6px;
}
.filebrowser-target-card {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 84px;
  padding: 8px;
  border: 1px solid rgba(78, 183, 168, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(78, 183, 168, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(215, 161, 58, 0.08), rgba(255,255,255,0.018) 42%, rgba(0,0,0,0.08)),
    var(--panel-3);
  color: var(--muted);
  text-align: left;
}
.filebrowser-target-card:hover,
.filebrowser-target-card.active {
  border-color: rgba(215, 161, 58, 0.58);
  box-shadow: inset 0 0 0 1px rgba(215, 161, 58, 0.16), 0 12px 32px rgba(0,0,0,0.25);
}
.filebrowser-target-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filebrowser-target-card code,
.filebrowser-target-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filebrowser-card-raw {
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.filebrowser-frame-panel {
  min-height: min(88vh, 960px);
}
.filebrowser-frame-panel .panel-body {
  padding: 0;
}
.filebrowser-frame-shell {
  display: grid;
  min-height: min(82vh, 860px);
  background: #071018;
}
.filebrowser-frame-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(78, 183, 168, 0.18);
  background:
    linear-gradient(90deg, rgba(78, 183, 168, 0.09), rgba(215, 161, 58, 0.06)),
    rgba(0,0,0,0.22);
  color: var(--muted);
}
.filebrowser-frame {
  width: 100%;
  height: min(82vh, 860px);
  min-height: 680px;
  border: 0;
  background: #0b1117;
}
.filebrowser-compact-note {
  margin-left: auto;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.filebrowser-shot-error,
.filebrowser-shot-ok {
  margin: 4px 0 0;
  font-size: 12px;
}
.filebrowser-shot-error { color: var(--danger); }
.filebrowser-shot-ok { color: var(--ok); }
.claudeqq-login-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.claudeqq-qr-frame {
  display: grid;
  min-height: 176px;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(246,249,240,0.82)),
    repeating-linear-gradient(45deg, rgba(24, 35, 31, 0.05) 0 6px, transparent 6px 12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8);
}
.claudeqq-qr-frame img {
  width: min(152px, 100%);
  height: auto;
  image-rendering: pixelated;
}
.claudeqq-login-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.claudeqq-login-copy .microservice-ref-card {
  padding: 7px;
}
.baidu-netdisk-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(260px, 0.9fr) minmax(220px, 0.7fr);
  gap: 8px;
  align-items: stretch;
}
.baidu-netdisk-grid {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(560px, 1.35fr);
  gap: 10px;
  align-items: start;
}
.baidu-files-panel, .baidu-transfers-panel, .baidu-wide-panel, .baidu-docs-panel { grid-column: 1 / -1; }
.baidu-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 8px;
}
.doc-link-card {
  display: grid;
  gap: 5px;
  min-height: 128px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.08), transparent 54%),
    var(--panel-3);
  color: var(--text);
  text-decoration: none;
}
.doc-link-card:hover {
  border-color: var(--accent);
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.12), rgba(78, 183, 168, 0.06) 54%, transparent),
    var(--panel-3);
}
.doc-link-card > span {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.doc-link-card strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}
.doc-link-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}
.doc-link-card code {
  margin-top: auto;
  color: #bcd2d7;
  overflow-wrap: anywhere;
}
.baidu-login-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.baidu-qr-frame {
  display: grid;
  min-height: 176px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(48, 92, 112, 0.45);
  background:
    radial-gradient(circle at 25% 20%, rgba(78, 183, 168, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(236, 246, 240, 0.95), rgba(210, 229, 222, 0.86));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62);
}
.baidu-qr-frame img {
  width: min(152px, 100%);
  height: auto;
  image-rendering: pixelated;
}
.baidu-account-card {
  display: grid;
  gap: 8px;
}
.baidu-account-card h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.quota-bar, .baidu-progress {
  position: relative;
  min-height: 8px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}
.quota-bar span, .baidu-progress span {
  display: block;
  height: 100%;
  min-width: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.baidu-progress {
  min-width: 150px;
  min-height: 18px;
}
.baidu-progress em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 10px;
  font-style: normal;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.baidu-pathbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 8px;
}
.baidu-transfer-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.pipeline-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.25fr);
  gap: 10px;
  align-items: start;
}
.pipeline-grid .pipeline-wide-panel { grid-column: 1 / -1; }
.met-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(560px, 1.25fr);
  gap: 10px;
  align-items: start;
}
.met-grid .panel:nth-child(3), .met-grid .panel:nth-child(5) { grid-column: 1 / -1; }
.met-progress {
  height: 6px;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}
.met-progress span {
  display: block;
  height: 100%;
  min-width: 2px;
  max-width: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.met-job-table { max-height: 460px; overflow: auto; }
.met-queue-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}
.met-queue-summary > span:not(.status-badge) {
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}
.met-action-log {
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  background: rgba(78, 183, 168, 0.08);
  color: var(--accent-2);
  font-size: 12px;
}
.code-queue-hero {
  display: grid;
  grid-template-columns: minmax(300px, 1.35fr) minmax(260px, 0.8fr) minmax(220px, 0.65fr);
  gap: 8px;
  align-items: stretch;
}
.code-queue-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 8px;
}
.code-queue-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.52fr) minmax(0, 1.58fr);
  gap: 10px;
  align-items: start;
}
.codex-session-stage {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.codex-session-stage .codex-output-panel {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.codex-session-stage .codex-transcript {
  min-height: 620px;
  max-height: calc(100vh - 230px);
}
.codex-session-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
  align-items: stretch;
}
.codex-session-shell.queue-collapsed {
  grid-template-columns: minmax(0, 1fr);
}
.codex-session-sidebar {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 8px;
  align-self: start;
  align-content: start;
  align-items: start;
  justify-items: stretch;
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 0 0, rgba(78, 183, 168, 0.16), transparent 42%),
    #060a0d;
}
.codex-session-sidebar > * {
  width: 100%;
}
.codex-session-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.codex-session-sidebar-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.codex-session-sidebar-head span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.codex-session-sidebar-head strong {
  min-width: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.code-queue-switcher {
  display: grid;
  gap: 3px;
  min-width: min(260px, 48vw);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.code-queue-switcher select {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(78, 183, 168, 0.34);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.14), rgba(215, 161, 58, 0.05)),
    #071014;
  box-sizing: border-box;
}
.code-queue-switcher.compact {
  min-width: 0;
  width: 100%;
  margin-top: 2px;
}
.code-queue-switcher.compact select {
  min-height: 31px;
  font-size: 12px;
}
.codex-task-search {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(78, 183, 168, 0.28);
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.10), rgba(215, 161, 58, 0.05)),
    rgba(255,255,255,0.025);
  box-sizing: border-box;
}
.codex-task-search label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.codex-task-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.codex-task-search input {
  min-width: 0;
  width: 100%;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgba(78, 183, 168, 0.34);
  color: var(--text);
  background: #071014;
  box-sizing: border-box;
}
.codex-task-search input:focus {
  outline: 2px solid rgba(78, 183, 168, 0.24);
  outline-offset: 1px;
}
.codex-task-search .ghost-btn {
  flex: 0 0 auto;
  padding: 6px 8px;
}
.codex-task-search small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.codex-output-panel .panel-summary {
  min-width: 0;
  max-width: 100%;
  margin-top: 6px;
}
.codex-output-panel .panel-head {
  align-items: flex-start;
  flex-wrap: wrap;
}
.codex-output-panel .panel-head > div:first-child {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 100%;
}
.codex-output-panel .panel-eyebrow {
  overflow-wrap: anywhere;
}
.codex-output-panel .loading-title-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.codex-output-panel .panel-actions {
  flex: 1 1 420px;
  max-width: 100%;
}
.codex-trace-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.codex-trace-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid rgba(78, 183, 168, 0.28);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.10), rgba(255,255,255,0.018)),
    rgba(0,0,0,0.16);
  font-size: 11px;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
  white-space: normal;
}
.codex-trace-status-chip b {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 650;
}
.codex-trace-status-chip.queued {
  border-color: rgba(215, 161, 58, 0.36);
  color: #ffe0a2;
}
.codex-trace-status-chip.running {
  border-color: rgba(78, 183, 168, 0.45);
  color: var(--accent-2);
}
.codex-trace-status-chip.unread.warn {
  border-color: rgba(215, 161, 58, 0.48);
  color: #ffe0a2;
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.13), rgba(78, 183, 168, 0.06)),
    rgba(0,0,0,0.18);
}
.codex-trace-status-chip.service {
  white-space: normal;
}
.codex-trace-status-chip.liveness.ok {
  border-color: rgba(78, 183, 168, 0.50);
  color: var(--accent-2);
}
.codex-trace-status-chip.liveness.warn,
.codex-trace-status-chip.liveness.degraded-live {
  border-color: rgba(215, 161, 58, 0.55);
  color: #ffe0a2;
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.13), rgba(78, 183, 168, 0.06)),
    rgba(0,0,0,0.18);
}
.codex-trace-status-chip.liveness.degraded-live {
  border-color: rgba(215, 161, 58, 0.62);
  box-shadow: inset 0 0 0 1px rgba(78, 183, 168, 0.10);
}
.codex-trace-status-chip.liveness.failed {
  border-color: rgba(255, 98, 98, 0.58);
  color: #ffb2b2;
}
.codex-liveness-panel .panel-body {
  display: grid;
  gap: 8px;
}
.codex-liveness-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
  min-width: 0;
}
.codex-liveness-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(78, 183, 168, 0.22);
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.08), rgba(255,255,255,0.015)),
    rgba(0,0,0,0.16);
}
.codex-liveness-metric.warn,
.codex-liveness-metric.degraded-live {
  border-color: rgba(215, 161, 58, 0.44);
}
.codex-liveness-metric.degraded-live {
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.12), rgba(78, 183, 168, 0.05)),
    rgba(0,0,0,0.16);
}
.codex-liveness-metric.failed {
  border-color: rgba(255, 98, 98, 0.46);
}
.codex-liveness-metric.ok {
  border-color: rgba(78, 183, 168, 0.45);
}
.codex-liveness-metric span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.codex-liveness-metric strong {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.codex-liveness-metric code {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.codex-liveness-advisory {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(78, 183, 168, 0.28);
  background: rgba(78, 183, 168, 0.07);
  color: var(--muted);
}
.codex-liveness-advisory b {
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.codex-liveness-advisory span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.codex-liveness-advisory.warn,
.codex-liveness-advisory.degraded-live {
  border-color: rgba(215, 161, 58, 0.42);
  background: rgba(215, 161, 58, 0.07);
}
.codex-liveness-advisory.warn b,
.codex-liveness-advisory.degraded-live b { color: var(--warn); }
.codex-liveness-advisory.failed {
  border-color: rgba(255, 98, 98, 0.46);
  background: rgba(207, 106, 84, 0.09);
}
.codex-liveness-advisory.failed b { color: #ffb2b2; }
.codex-liveness-advisory code {
  max-width: 100%;
  color: var(--text);
  overflow-wrap: anywhere;
}
.codex-liveness-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}
.codex-liveness-reasons span {
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid rgba(215, 161, 58, 0.28);
  color: #ffe0a2;
  background: rgba(215, 161, 58, 0.07);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.codex-mark-all-read-btn {
  border-color: rgba(78, 183, 168, 0.40);
  color: #bdece4;
}
.codex-session-main {
  min-width: 0;
  max-width: 100%;
}
.codex-left-rail,
.codex-main-stage,
.codex-detail-grid,
.codex-task-form,
.codex-steer-form {
  display: grid;
  gap: 10px;
}
.codex-main-stage > .codex-stats-panel {
  width: 100%;
}
.codex-run-control-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.codex-stats-panel .panel-body {
  display: grid;
  gap: 9px;
}
.codex-stats-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(78, 183, 168, 0.30);
  background:
    radial-gradient(circle at 0 0, rgba(78, 183, 168, 0.18), transparent 45%),
    linear-gradient(135deg, rgba(215, 161, 58, 0.09), rgba(255,255,255,0.018)),
    #071014;
}
.codex-stats-hero > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.codex-stats-hero strong {
  color: var(--text);
  font-size: 18px;
  letter-spacing: 0.04em;
}
.codex-stats-hero span:not(.codex-stats-icon) {
  color: var(--muted);
  font-size: 12px;
}
.codex-stats-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(215, 161, 58, 0.42);
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.22), rgba(78, 183, 168, 0.10)),
    #11110b;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 12px 24px rgba(0,0,0,0.28);
}
.codex-stats-icon svg {
  width: 36px;
  height: 24px;
}
.codex-stats-icon .grid {
  fill: none;
  stroke: rgba(255,255,255,0.18);
  stroke-width: 1;
}
.codex-stats-icon .line {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.codex-stats-icon .line.tasks { stroke: var(--accent-2); }
.codex-stats-icon .line.retry { stroke: var(--accent); }
.codex-stats-chart {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  min-height: 260px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(rgba(78, 183, 168, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 183, 168, 0.025) 1px, transparent 1px),
    #071014;
  background-size: 18px 18px, 18px 18px, auto;
}
.codex-stats-chart svg {
  width: 100%;
  height: clamp(180px, 24vw, 260px);
  overflow: visible;
}
.codex-stats-chart.no-data svg {
  opacity: 0.42;
}
.codex-stats-chart-empty {
  position: absolute;
  inset: 10px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 14px;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}
.codex-stats-chart-empty strong {
  color: var(--text);
  font-size: 14px;
}
.codex-stats-chart-empty span {
  max-width: 360px;
  font-size: 12px;
  line-height: 1.45;
}
.codex-stats-diagnostic {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(215, 161, 58, 0.36);
  background: linear-gradient(135deg, rgba(215, 161, 58, 0.10), rgba(207, 106, 84, 0.06));
  color: var(--muted);
  font-size: 12px;
}
.codex-stats-diagnostic b {
  color: var(--accent);
}
.codex-stats-diagnostic code {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  color: var(--accent-2);
  text-overflow: ellipsis;
}
.codex-stats-chart .axis,
.codex-stats-chart .grid {
  stroke: rgba(255,255,255,0.14);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.codex-stats-chart .grid {
  stroke-dasharray: 2 3;
}
.codex-stats-chart .stat-line {
  fill: none;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.codex-stats-chart .stat-line.tasks { stroke: var(--accent-2); }
.codex-stats-chart .stat-line.retry { stroke: var(--accent); }
.codex-stats-chart .stat-line.duration { stroke: #9db7ff; }
.codex-stats-chart .stat-point-group {
  outline: none;
  cursor: pointer;
}
.codex-stats-chart .stat-hit-point {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}
.codex-stats-chart .stat-point {
  fill: #071014;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  transition: r 150ms ease, fill 150ms ease, filter 150ms ease;
}
.codex-stats-chart .stat-point.tasks { stroke: var(--accent-2); }
.codex-stats-chart .stat-point.retry { stroke: var(--accent); }
.codex-stats-chart .stat-point.duration { stroke: #9db7ff; }
.codex-stats-chart .stat-point-group:hover .stat-point,
.codex-stats-chart .stat-point-group:focus .stat-point,
.codex-stats-chart .stat-point.active {
  fill: currentColor;
  filter: drop-shadow(0 0 7px rgba(78, 183, 168, 0.55));
}
.codex-stats-chart .stat-point-active {
  fill: rgba(255,255,255,0.12);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.codex-stats-chart .stat-point-active.tasks { stroke: var(--accent-2); }
.codex-stats-chart .stat-point-active.retry { stroke: var(--accent); }
.codex-stats-chart .stat-point-active.duration { stroke: #9db7ff; }
.codex-stats-chart .stat-cursor {
  stroke: rgba(255,255,255,0.28);
  stroke-dasharray: 4 4;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.codex-stats-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 3px;
  min-width: 190px;
  max-width: min(280px, calc(100% - 20px));
  padding: 8px 10px;
  border: 1px solid rgba(215, 161, 58, 0.46);
  background:
    radial-gradient(circle at 0 0, rgba(215, 161, 58, 0.18), transparent 46%),
    linear-gradient(135deg, rgba(6, 10, 13, 0.98), rgba(12, 24, 28, 0.96));
  box-shadow: 0 16px 36px rgba(0,0,0,0.38), inset 0 0 0 1px rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}
.codex-stats-tooltip b {
  color: var(--accent);
  font-size: 13px;
}
.codex-stats-tooltip span {
  color: var(--text);
}
.codex-stats-tooltip code {
  color: var(--accent-2);
  white-space: normal;
}
.codex-stats-focus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px dashed rgba(78, 183, 168, 0.25);
  color: var(--muted);
  background: rgba(255,255,255,0.018);
  font-size: 12px;
}
.codex-stats-focus.active {
  border-style: solid;
  border-color: rgba(215, 161, 58, 0.38);
  color: var(--text);
  background: linear-gradient(135deg, rgba(215, 161, 58, 0.09), rgba(78, 183, 168, 0.05));
}
.codex-stats-focus > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.codex-stats-focus strong {
  color: var(--accent);
}
.codex-stats-focus-metrics code {
  color: var(--accent-2);
}
.codex-stats-legend,
.codex-stats-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}
.codex-stats-legend {
  justify-content: flex-start;
}
.codex-stats-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.codex-stats-legend span::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--accent-2);
}
.codex-stats-legend .retry::before { background: var(--accent); }
.codex-stats-legend .duration::before { background: #9db7ff; }
.codex-stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.codex-stats-summary-grid article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(78, 183, 168, 0.22);
  background: rgba(255,255,255,0.024);
}
.codex-stats-summary-grid span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.codex-stats-summary-grid strong {
  color: var(--text);
  font-size: 18px;
}
.codex-stats-summary-grid code {
  min-width: 0;
  overflow: hidden;
  color: var(--accent-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codex-stats-daily-list {
  display: grid;
  gap: 5px;
}
.codex-stats-daily-row {
  display: grid;
  grid-template-columns: 50px repeat(2, minmax(58px, 1fr)) minmax(72px, 1fr);
  gap: 5px;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.018);
  color: var(--muted);
  font-size: 11px;
}
.codex-stats-daily-row b {
  color: var(--text);
  font-weight: 650;
}
.codex-stats-daily-row code {
  color: #9db7ff;
  text-align: right;
}
.codex-stats-daily-row.active {
  border-color: rgba(215, 161, 58, 0.34);
  background: rgba(215, 161, 58, 0.07);
}
.codex-stats-daily-row.empty {
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr) auto auto;
}
.codex-stats-daily-row.empty b {
  color: var(--muted);
  font-weight: 500;
}
.codex-stats-daily-row.empty.unavailable,
.codex-stats-daily-row.empty.degraded {
  border-color: rgba(215, 161, 58, 0.28);
  background: rgba(215, 161, 58, 0.05);
}
.codex-task-move-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(78, 183, 168, 0.24);
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.08), rgba(215, 161, 58, 0.04)),
    rgba(255,255,255,0.02);
}
.codex-task-move-control label {
  min-width: 0;
}
.codex-task-move-control select {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.codex-compose-panel,
.codex-compose-panel .panel-body,
.codex-task-form,
.codex-task-form label {
  min-width: 0;
  overflow: hidden;
}
.codex-task-form.is-submitting {
  position: relative;
}
.codex-task-form.is-submitting textarea,
.codex-task-form.is-submitting input,
.codex-task-form.is-submitting select {
  opacity: 0.64;
  cursor: wait;
}
.codex-task-form.is-frozen textarea,
.codex-task-form.is-frozen input,
.codex-task-form.is-frozen select {
  opacity: 0.72;
}
.codex-task-form.is-frozen .primary-btn {
  cursor: not-allowed;
}
.codex-freeze-notice {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(215, 161, 58, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.10), rgba(78, 183, 168, 0.05)),
    rgba(7, 16, 20, 0.72);
  color: rgba(217, 238, 238, 0.78);
  font-size: 12px;
  line-height: 1.45;
}
.codex-freeze-notice strong {
  color: var(--text);
  font-size: 13px;
}
.codex-freeze-notice p {
  margin: 0;
}
.codex-freeze-command-grid {
  display: grid;
  gap: 4px;
}
.codex-freeze-command-grid code {
  display: block;
  max-width: 100%;
  padding: 5px 7px;
  overflow-wrap: anywhere;
  white-space: normal;
  border: 1px solid rgba(78, 183, 168, 0.24);
  border-radius: 6px;
  background: rgba(0,0,0,0.22);
  color: #dff8f3;
}
.codex-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.codex-form-grid label:nth-child(2) {
  grid-column: 1 / -1;
}
.codex-task-form textarea,
.codex-steer-form textarea,
.codex-reference-field input,
.codex-form-grid input,
.codex-form-grid select {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.codex-submit-queue-field {
  min-width: 0;
}
.codex-submit-queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "queue-select queue-select"
    "rename rename"
    "merge create";
  gap: 6px;
  min-width: 0;
  align-items: center;
}
.codex-submit-queue-select {
  grid-area: queue-select;
}
.codex-workdir-field {
  grid-column: 1 / -1;
}
.codex-workdir-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.72fr) auto auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.codex-workdir-row input,
.codex-workdir-row select {
  min-width: 0;
}
.codex-workdir-create-btn,
.codex-workdir-delete-btn {
  min-height: 32px;
  white-space: nowrap;
}
.codex-rename-queue-btn,
.codex-merge-queue-btn,
.codex-create-queue-btn {
  min-height: 32px;
  white-space: nowrap;
}
.codex-rename-queue-btn {
  grid-area: rename;
  width: 100%;
  min-height: 36px;
}
.codex-create-queue-btn {
  grid-area: create;
}
.codex-merge-queue-btn {
  grid-area: merge;
}
.codex-merge-dialog {
  width: min(480px, 96vw);
  overflow: hidden;
  border-color: rgba(78, 183, 168, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(78, 183, 168, 0.16), transparent 34%),
    #0a1015;
}
.codex-merge-dialog-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.codex-merge-dialog-body label {
  display: grid;
  gap: 6px;
  color: rgba(226, 244, 244, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.codex-merge-dialog-body select {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
}
.codex-merge-dialog-target,
.codex-merge-dialog-note {
  margin: 0;
  color: rgba(217, 238, 238, 0.76);
  line-height: 1.55;
}
.codex-merge-dialog-target code {
  color: #eafffb;
}
.codex-merge-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.codex-reference-field {
  display: grid;
  gap: 5px;
}
.codex-reference-field code {
  max-width: 100%;
  padding: 5px 7px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(78, 183, 168, 0.28);
  color: var(--accent-2);
  background: rgba(78, 183, 168, 0.055);
  font-size: 11px;
}
.codex-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.codex-batch-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(215, 161, 58, 0.36);
  color: #ffe0a2;
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.11), rgba(78, 183, 168, 0.04)),
    rgba(255,255,255,0.02);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.codex-batch-confirm.confirmed {
  border-color: rgba(78, 183, 168, 0.46);
  color: #bdece4;
}
.codex-batch-confirm input {
  flex: 0 0 auto;
  margin-top: 2px;
}
.codex-submit-wait {
  padding: 8px 9px;
  border: 1px solid rgba(78, 183, 168, 0.36);
  color: #bdece4;
  background:
    linear-gradient(90deg, rgba(78, 183, 168, 0.12), rgba(215, 161, 58, 0.06)),
    rgba(7, 16, 20, 0.86);
  font-size: 12px;
}
.codex-task-list {
  display: grid;
  gap: 7px;
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  max-height: calc(100vh - 460px);
  min-height: 180px;
  overflow: auto;
  overflow-x: hidden;
}
.codex-task-list-session {
  align-self: start;
  min-height: 0;
  max-height: calc(100vh - 386px);
  overflow-x: hidden;
}
.codex-task-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(78, 183, 168, 0.26);
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.10), rgba(215, 161, 58, 0.05)),
    rgba(255,255,255,0.025);
  color: var(--muted);
  font-size: 12px;
}
.codex-task-pagination code {
  color: var(--accent-2);
}
.codex-task-section {
  display: grid;
  gap: 7px;
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  min-width: 0;
}
.codex-task-section + .codex-task-section {
  margin-top: 6px;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.codex-task-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.codex-task-section-head code {
  color: var(--accent-2);
}
.codex-task-section-list {
  display: grid;
  gap: 7px;
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  min-width: 0;
}
.codex-task-section-empty {
  margin: 0;
  padding: 8px 9px;
  border: 1px dashed var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  background: rgba(255,255,255,0.02);
}
.codex-task-card {
  position: relative;
  align-self: start;
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
  white-space: normal;
  padding: 9px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.09), #0a1015 42%),
    #0a1015;
  text-align: left;
}
.codex-task-card:hover,
.codex-task-card.selected {
  color: var(--text);
  border-color: var(--accent-2);
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.18), #0c181c 42%),
    #0c181c;
}
.codex-task-card.unread-terminal {
  padding-left: 23px;
}
.codex-task-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.codex-task-card-head,
.codex-task-meta,
.codex-task-id-row,
.codex-judge-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.codex-task-status-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.codex-unread-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 2px solid #0a1015;
  border-radius: 999px;
  background: var(--accent);
  box-shadow:
    0 0 0 2px rgba(215, 161, 58, 0.20),
    0 0 14px rgba(215, 161, 58, 0.36);
  pointer-events: none;
}
.codex-task-card.selected .codex-unread-badge,
.codex-task-card:hover .codex-unread-badge {
  border-color: #0c181c;
}
.codex-task-id-row {
  min-width: 0;
  align-items: center;
}
.codex-task-id-row code {
  min-width: 0;
  color: var(--accent-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codex-task-id-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
  align-items: center;
}
.codex-copy-id-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(215, 161, 58, 0.34);
  color: var(--accent);
  background: rgba(215, 161, 58, 0.07);
  padding: 3px 7px;
  font-size: 10px;
  cursor: pointer;
}
.codex-copy-id-btn:hover {
  border-color: var(--accent);
  background: rgba(215, 161, 58, 0.14);
}
.codex-mark-read-btn {
  border-color: rgba(78, 183, 168, 0.42);
  color: #bdece4;
  background: rgba(78, 183, 168, 0.08);
}
.codex-task-card strong {
  overflow-wrap: anywhere;
  color: var(--text);
}
.codex-task-meta,
.codex-judge-line {
  color: var(--muted);
  font-size: 11px;
}
.codex-task-update-meta {
  flex-wrap: wrap;
}
.codex-task-recent-update {
  color: #bdece4;
  font-weight: 700;
}
.codex-task-step-count {
  padding: 2px 6px;
  border: 1px solid rgba(78, 183, 168, 0.32);
  border-radius: 999px;
  background: rgba(78, 183, 168, 0.08);
  letter-spacing: 0.04em;
}
.codex-task-step-count.syncing,
.codex-task-step-count.unavailable {
  border-color: rgba(215, 161, 58, 0.38);
  color: #f0cf8a;
  background: rgba(215, 161, 58, 0.08);
}
.codex-task-step-count.failed {
  border-color: rgba(207, 106, 84, 0.52);
  color: var(--danger);
  background: rgba(207, 106, 84, 0.08);
}
.codex-task-step-count.fallback {
  border-color: rgba(148, 190, 255, 0.40);
  color: #b9d0ff;
  background: rgba(148, 190, 255, 0.08);
}
.codex-output-panel .panel-body {
  padding: 0;
}
.codex-session-title-toggle {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(215, 161, 58, 0.62);
  color: #ffe0a2;
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.24), rgba(78, 183, 168, 0.08)),
    #11110b;
  box-shadow: 0 10px 22px rgba(0,0,0,0.26);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.codex-session-title-toggle:hover {
  border-color: var(--accent);
  color: #fff0c8;
  transform: translateY(-1px);
}
.codex-output-stack {
  display: grid;
  min-width: 0;
  max-width: 100%;
}
.codex-transcript {
  position: relative;
  min-width: 0;
  max-width: 100%;
  min-height: 520px;
  max-height: calc(100vh - 300px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
  background:
    linear-gradient(rgba(78, 183, 168, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 183, 168, 0.026) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(215, 161, 58, 0.10), transparent 34%),
    #060a0d;
  background-size: 24px 24px, 24px 24px, auto, auto;
}
.codex-output-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255,255,255,0.025);
}
.codex-transcript-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  max-width: 100%;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.045);
}
.codex-transcript-bullet {
  display: none;
}
.codex-transcript-main {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.codex-transcript-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  color: var(--text);
}
.codex-transcript-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codex-transcript-title time {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.codex-transcript-title code {
  min-width: 0;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent-2);
}
.codex-transcript-command,
.codex-transcript-body {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-top: 1px solid rgba(78, 183, 168, 0.20);
  padding: 3px 0 0;
  color: #d9e8e7;
  font-size: 12px;
  line-height: 1.48;
}
.codex-transcript-command {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 2px;
  color: #a7c7c3;
  border-color: rgba(215, 161, 58, 0.30);
  background: rgba(215, 161, 58, 0.035);
}
.codex-transcript-streams {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin-top: 2px;
}
.codex-transcript-stream {
  min-width: 0;
  border-top: 1px solid rgba(78, 183, 168, 0.20);
  padding-top: 3px;
}
.codex-transcript-stream-label {
  display: inline-flex;
  margin-bottom: 2px;
  color: #8fc7ee;
  font-family: "Cascadia Mono", "IBM Plex Mono", "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.codex-transcript-stream.stderr .codex-transcript-stream-label {
  color: #ffb38a;
}
.codex-transcript-stream .codex-transcript-body {
  border-top: 0;
  padding-top: 0;
}
.codex-transcript-item.ran .codex-transcript-command,
.codex-transcript-item.ran .codex-transcript-body,
.codex-transcript-item.explored .codex-transcript-command,
.codex-transcript-item.explored .codex-transcript-body,
.codex-transcript-item.edited .codex-transcript-command,
.codex-transcript-item.edited .codex-transcript-body {
  max-width: 100%;
  white-space: pre;
  overflow-x: auto;
  overflow-y: hidden;
  overflow-wrap: normal;
  word-break: normal;
  overscroll-behavior-x: contain;
}
.codex-transcript-item.ran .codex-transcript-command,
.codex-transcript-item.ran .codex-transcript-body,
.codex-transcript-item.explored .codex-transcript-command,
.codex-transcript-item.explored .codex-transcript-body,
.codex-transcript-item.edited .codex-transcript-command,
.codex-transcript-item.edited .codex-transcript-body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.codex-transcript-item.ran .codex-transcript-command::-webkit-scrollbar,
.codex-transcript-item.ran .codex-transcript-body::-webkit-scrollbar,
.codex-transcript-item.explored .codex-transcript-command::-webkit-scrollbar,
.codex-transcript-item.explored .codex-transcript-body::-webkit-scrollbar,
.codex-transcript-item.edited .codex-transcript-command::-webkit-scrollbar,
.codex-transcript-item.edited .codex-transcript-body::-webkit-scrollbar {
  display: none;
}
.codex-transcript-item.message .codex-transcript-body,
.codex-initial-prompt-full .codex-transcript-body,
.codex-transcript-full-prompt {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: visible;
}
.codex-transcript-item.explored .codex-output-channel { color: #8fc7ee; border-color: rgba(105, 174, 232, 0.46); background: rgba(105, 174, 232, 0.08); }
.codex-transcript-item.edited .codex-output-channel { color: #b6da89; border-color: rgba(182, 218, 137, 0.42); background: rgba(182, 218, 137, 0.07); }
.codex-transcript-item.error .codex-output-channel { color: var(--danger); border-color: rgba(207, 106, 84, 0.52); background: rgba(207, 106, 84, 0.08); }
.codex-progressive-trace {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.codex-attempt-cycle {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(215, 161, 58, 0.22);
  background:
    linear-gradient(90deg, rgba(215, 161, 58, 0.09), transparent 28%),
    rgba(255,255,255,0.018);
}
.codex-attempt-cycle-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.codex-attempt-cycle-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}
.codex-attempt-cycle-head code {
  flex: 1 1 280px;
  min-width: 0;
  margin-left: auto;
  color: var(--muted);
  overflow-wrap: anywhere;
  text-align: right;
  white-space: normal;
}
.codex-progressive-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(78, 183, 168, 0.22);
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.08), rgba(215, 161, 58, 0.035) 46%, transparent),
    rgba(6, 10, 13, 0.84);
}
.codex-execution-summary.running {
  border-color: rgba(89, 224, 193, 0.58);
  background:
    linear-gradient(115deg, rgba(89, 224, 193, 0.18), rgba(215, 161, 58, 0.09) 46%, rgba(89, 224, 193, 0.04)),
    rgba(6, 10, 13, 0.9);
  box-shadow: 0 0 0 1px rgba(89, 224, 193, 0.12), 0 0 22px rgba(89, 224, 193, 0.16);
  animation: codexSummaryRunningPulse 1.8s ease-in-out infinite;
}
.codex-execution-summary.running > summary .codex-progressive-card-head {
  background:
    linear-gradient(90deg, rgba(89, 224, 193, 0.18), rgba(215, 161, 58, 0.08), transparent 76%);
}
.codex-summary-running-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid rgba(89, 224, 193, 0.46);
  color: #c7fff4;
  background: rgba(89, 224, 193, 0.12);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.codex-summary-running-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #59e0c1;
  box-shadow: 0 0 10px rgba(89, 224, 193, 0.9);
  animation: codexSummaryRunningDot 0.9s ease-in-out infinite;
}
.codex-progressive-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.055);
}
.codex-progressive-card-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codex-progressive-card-head code {
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
  color: var(--accent-2);
  white-space: nowrap;
}
.codex-execution-summary > summary .codex-progressive-card-head {
  flex-wrap: wrap;
}
.codex-execution-summary > summary .codex-progressive-card-head code {
  flex: 1 1 260px;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  white-space: normal;
}
.codex-judge-feedback-prompt {
  border-color: rgba(148, 190, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(148, 190, 255, 0.09), rgba(78, 183, 168, 0.045) 52%, transparent),
    rgba(6, 10, 13, 0.86);
}
.codex-judge-feedback-prompt .codex-output-channel {
  color: #a9c7ff;
  border-color: rgba(148, 190, 255, 0.44);
  background: rgba(148, 190, 255, 0.08);
}
.codex-feedback-preview {
  margin: 0;
  padding: 0 10px 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.codex-feedback-full {
  border-top: 1px solid rgba(255,255,255,0.055);
}
.codex-progressive-card > summary {
  display: grid;
  gap: 6px;
  padding: 0;
  cursor: pointer;
  list-style: none;
}
.codex-progressive-card > summary::-webkit-details-marker,
.codex-trace-step > summary::-webkit-details-marker {
  display: none;
}
.codex-execution-digest {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  padding: 0 10px 8px;
}
.codex-execution-digest.expanded {
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.055);
}
.codex-execution-digest span {
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid rgba(78, 183, 168, 0.18);
  color: #a7c7c3;
  background: rgba(78, 183, 168, 0.045);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codex-execution-digest .codex-execution-error-pill {
  border-color: rgba(207, 106, 84, 0.52);
  color: var(--danger);
  background: rgba(207, 106, 84, 0.08);
  font-weight: 750;
}
.codex-trace-step-list {
  display: grid;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  padding: 8px;
}
.codex-trace-step {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}
.codex-trace-step.error {
  border-color: rgba(207, 106, 84, 0.42);
  background:
    linear-gradient(135deg, rgba(207, 106, 84, 0.10), rgba(215, 161, 58, 0.025) 58%, transparent),
    rgba(255,255,255,0.022);
}
.codex-trace-step > summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  padding: 7px 9px;
  cursor: pointer;
}
.codex-trace-step.error > summary {
  background: linear-gradient(90deg, rgba(207, 106, 84, 0.12), rgba(207, 106, 84, 0.045) 56%, transparent);
}
.codex-trace-step > summary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codex-trace-step > summary time {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.codex-trace-step > summary code {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--accent-2);
  white-space: nowrap;
}
.codex-trace-step-inline-summary {
  min-width: 0;
  flex: 1 1 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #a7c7c3;
  font-size: 11px;
}
.codex-trace-step.error > summary .codex-output-channel {
  color: var(--danger);
  border-color: rgba(207, 106, 84, 0.52);
  background: rgba(207, 106, 84, 0.08);
}
.codex-trace-step.error > summary code {
  color: var(--danger);
}
.codex-trace-step-summary {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  padding: 0 9px 8px;
}
.codex-trace-step-summary pre {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d9e8e7;
  font-size: 11px;
  line-height: 1.42;
}
.codex-transcript.codex-step-detail-transcript {
  min-height: auto;
  min-width: 0;
  max-width: calc(100% - 16px);
  max-height: 520px;
  margin: 0 8px 8px;
  padding: 8px;
  background: rgba(4, 8, 10, 0.88);
}
.codex-progressive-prompt .codex-prompt-full,
.codex-final-response .codex-transcript-body,
.codex-progressive-judge .codex-judge-card {
  margin: 8px;
}
.codex-final-response .codex-transcript-body {
  max-height: 520px;
  overflow: auto;
  white-space: normal;
  overflow-wrap: anywhere;
}
.codex-markdown {
  display: block;
  padding: 8px 10px 10px;
}
.markdown-body {
  color: #d9e8e7;
  font-size: 12px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}
.markdown-body > :first-child {
  margin-top: 0;
}
.markdown-body > :last-child {
  margin-bottom: 0;
}
.markdown-body p {
  margin: 0 0 10px;
}
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin: 14px 0 7px;
  color: var(--text);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: none;
}
.markdown-body h3 {
  font-size: 15px;
}
.markdown-body h4 {
  font-size: 14px;
}
.markdown-body h5,
.markdown-body h6 {
  font-size: 13px;
}
.markdown-body a {
  color: #8fc7ee;
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 199, 238, 0.38);
}
.markdown-body a:hover {
  color: #b6daff;
  border-bottom-color: rgba(182, 218, 255, 0.72);
}
.markdown-body code {
  padding: 1px 4px;
  border: 1px solid rgba(78, 183, 168, 0.20);
  border-radius: 4px;
  color: #b6da89;
  background: rgba(78, 183, 168, 0.08);
  font-size: 0.92em;
}
.markdown-body pre {
  margin: 8px 0 10px;
  padding: 9px 10px;
  overflow: auto;
  border: 1px solid rgba(78, 183, 168, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.08), rgba(215, 161, 58, 0.035)),
    rgba(2, 6, 8, 0.72);
  white-space: pre;
}
.markdown-body pre code {
  display: block;
  padding: 0;
  border: 0;
  color: #d9e8e7;
  background: transparent;
  font-size: 11px;
  line-height: 1.55;
}
.markdown-body ul,
.markdown-body ol {
  margin: 0 0 10px;
  padding-left: 22px;
}
.markdown-body li {
  margin: 3px 0;
  padding-left: 2px;
}
.markdown-body li::marker {
  color: var(--accent);
}
.markdown-body .task-list-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-left: -20px;
  list-style: none;
}
.markdown-body .task-list-item input {
  width: 13px;
  height: 13px;
  margin: 3px 0 0;
  accent-color: var(--accent-2);
}
.markdown-body blockquote {
  margin: 8px 0 10px;
  padding: 7px 10px;
  border-left: 3px solid rgba(215, 161, 58, 0.70);
  color: #c8d8dc;
  background: rgba(215, 161, 58, 0.055);
}
.markdown-body hr {
  height: 1px;
  margin: 12px 0;
  border: 0;
  background: linear-gradient(90deg, rgba(215, 161, 58, 0.65), rgba(78, 183, 168, 0.32), transparent);
}
.markdown-body .markdown-table-wrap {
  max-width: 100%;
  margin: 8px 0 10px;
  overflow: auto;
}
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  min-width: 360px;
}
.markdown-body th,
.markdown-body td {
  padding: 6px 8px;
  border: 1px solid rgba(78, 183, 168, 0.18);
  vertical-align: top;
}
.markdown-body th {
  color: var(--text);
  background: rgba(78, 183, 168, 0.10);
  font-weight: 750;
}
.markdown-body td {
  background: rgba(255,255,255,0.018);
}
@keyframes codexSummaryRunningPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(89, 224, 193, 0.10), 0 0 18px rgba(89, 224, 193, 0.12); }
  50% { box-shadow: 0 0 0 1px rgba(89, 224, 193, 0.32), 0 0 30px rgba(89, 224, 193, 0.30); }
}
@keyframes codexSummaryRunningDot {
  0%, 100% { opacity: 0.45; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .codex-execution-summary.running,
  .codex-summary-running-pill::before {
    animation-duration: 3s;
  }
}
.codex-edit-observation {
  min-width: 0;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  border: 1px solid rgba(182, 218, 137, 0.28);
  background:
    linear-gradient(135deg, rgba(182, 218, 137, 0.10), rgba(78, 183, 168, 0.025) 42%, rgba(0,0,0,0)),
    rgba(4, 9, 10, 0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.codex-edit-observation-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 7px 9px;
  border-bottom: 1px solid rgba(182, 218, 137, 0.18);
  color: var(--text);
  background: rgba(182, 218, 137, 0.055);
}
.codex-edit-window-controls {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
}
.codex-edit-window-controls i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(182, 218, 137, 0.72);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
}
.codex-edit-window-controls i:nth-child(2) { background: rgba(215, 161, 58, 0.82); }
.codex-edit-window-controls i:nth-child(3) { background: rgba(78, 183, 168, 0.82); }
.codex-edit-observation-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.codex-edit-observation-head code {
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #d7f3b8;
  white-space: nowrap;
}
.codex-edit-stage-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 9px;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  background: rgba(255,255,255,0.018);
}
.codex-edit-stage {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid rgba(182, 218, 137, 0.24);
  color: #c9e8a6;
  background: rgba(182, 218, 137, 0.055);
  font-size: 10px;
}
.codex-edit-stage b,
.codex-edit-stage em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}
.codex-edit-stage.completed {
  border-color: rgba(78, 183, 168, 0.34);
  color: #bdece4;
  background: rgba(78, 183, 168, 0.07);
}
.codex-edit-stage.inprogress {
  border-color: rgba(215, 161, 58, 0.34);
  color: #ffe0a2;
  background: rgba(215, 161, 58, 0.07);
}
.codex-edit-diff {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 7px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(182, 218, 137, 0.28) transparent;
}
.codex-edit-diff-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  width: 100%;
  padding: 1px 10px;
  white-space: pre;
  color: #d7e6e1;
  font-size: 12px;
  line-height: 1.45;
}
.codex-edit-diff-line code,
.codex-edit-diff-sign,
.codex-edit-file-status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.codex-edit-diff-line code {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.codex-edit-diff-sign {
  color: rgba(215, 232, 231, 0.54);
  text-align: center;
}
.codex-edit-diff-line.meta { color: #8fb7b6; }
.codex-edit-diff-line.hunk {
  color: #ffd892;
  background: rgba(215, 161, 58, 0.075);
}
.codex-edit-diff-line.add {
  color: #d8f7c0;
  background: rgba(91, 178, 104, 0.12);
}
.codex-edit-diff-line.del {
  color: #ffb4a8;
  background: rgba(207, 106, 84, 0.12);
}
.codex-edit-diff-line.note { color: #bdece4; }
.codex-edit-diff-line.file {
  color: #e2f5cf;
  background: rgba(182, 218, 137, 0.075);
}
.codex-edit-file-status {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 18px;
  justify-self: center;
  border: 1px solid rgba(182, 218, 137, 0.36);
  color: #d8f7c0;
  background: rgba(182, 218, 137, 0.08);
  font-size: 10px;
  font-weight: 800;
}
.codex-edit-file-status.added { border-color: rgba(91, 178, 104, 0.45); color: #d8f7c0; background: rgba(91, 178, 104, 0.12); }
.codex-edit-file-status.deleted { border-color: rgba(207, 106, 84, 0.48); color: #ffb4a8; background: rgba(207, 106, 84, 0.12); }
.codex-edit-file-status.renamed { border-color: rgba(215, 161, 58, 0.46); color: #ffe0a2; background: rgba(215, 161, 58, 0.10); }
.codex-edit-omitted {
  padding: 6px 9px;
  border-top: 1px solid rgba(255,255,255,0.055);
  color: var(--muted);
  font-size: 11px;
}
.codex-initial-prompt-full {
  min-width: 0;
  border: 1px solid rgba(215, 161, 58, 0.28);
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.10), transparent 42%),
    rgba(6, 10, 13, 0.80);
}
.codex-initial-prompt-full summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  color: #ffe0a2;
  cursor: pointer;
  font-size: 12px;
}
.codex-initial-prompt-full summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codex-initial-prompt-full summary code {
  flex: 0 0 auto;
  color: var(--muted);
}
.codex-transcript-full-prompt {
  max-height: 460px;
  overflow: auto;
  border-left-color: rgba(215, 161, 58, 0.68);
  background:
    linear-gradient(90deg, rgba(215, 161, 58, 0.08), transparent 34%),
    rgba(5, 8, 10, 0.88);
}
.codex-raw-output {
  border-top: 1px solid var(--line);
  background: rgba(6, 10, 13, 0.92);
}
.codex-raw-output summary {
  cursor: pointer;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 12px;
}
.codex-raw-output > div {
  max-height: 360px;
  overflow: auto;
  padding: 0 12px 12px;
}
.codex-output-line {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.045);
}
.codex-output-meta {
  display: grid;
  align-content: start;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}
.codex-output-meta code {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codex-output-channel {
  width: max-content;
  padding: 2px 6px;
  border: 1px solid rgba(78, 183, 168, 0.42);
  color: var(--accent-2);
  background: rgba(78, 183, 168, 0.08);
  letter-spacing: 0.08em;
}
.codex-output-line.user .codex-output-channel { color: var(--accent); border-color: rgba(215, 161, 58, 0.48); background: rgba(215, 161, 58, 0.08); }
.codex-output-line.error .codex-output-channel { color: var(--danger); border-color: rgba(207, 106, 84, 0.52); background: rgba(207, 106, 84, 0.08); }
.codex-output-line.command .codex-output-channel { color: #8fc7ee; border-color: rgba(105, 174, 232, 0.46); background: rgba(105, 174, 232, 0.08); }
.codex-output-line.diff .codex-output-channel { color: #b6da89; border-color: rgba(182, 218, 137, 0.42); background: rgba(182, 218, 137, 0.07); }
.codex-output-line pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d9e8e7;
  font-size: 12px;
  line-height: 1.48;
}
.codex-output-line.reasoning pre { color: #9fb5b8; font-style: italic; }
.codex-detail-grid {
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
}
.codex-prompt-full {
  max-height: 360px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid rgba(215, 161, 58, 0.28);
  border-left: 3px solid rgba(215, 161, 58, 0.58);
  color: #e7ded0;
  background:
    linear-gradient(90deg, rgba(215, 161, 58, 0.08), transparent 34%),
    rgba(6, 10, 13, 0.84);
  font-size: 12px;
  line-height: 1.5;
}
.codex-reference-injection {
  min-width: 0;
  border: 1px solid rgba(78, 183, 168, 0.24);
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.08), transparent 38%),
    rgba(6, 10, 13, 0.72);
}
.codex-reference-injection summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  color: var(--accent-2);
  cursor: pointer;
  font-size: 12px;
}
.codex-reference-injection summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codex-reference-injection summary code {
  flex: 0 0 auto;
  color: var(--muted);
}
.codex-prompt-final-full {
  max-height: 560px;
  border-color: rgba(215, 161, 58, 0.34);
  border-left-color: rgba(215, 161, 58, 0.72);
  background:
    linear-gradient(90deg, rgba(215, 161, 58, 0.10), transparent 34%),
    rgba(6, 10, 13, 0.90);
}
.codex-judge-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}
.codex-judge-card > * {
  min-width: 0;
  max-width: 100%;
}
.codex-judge-card p,
.codex-judge-card pre,
.codex-judge-card code,
.codex-judge-card strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.codex-judge-card p {
  margin: 0;
  color: var(--muted);
}
.codex-judge-card pre,
.codex-judge-card code {
  display: block;
  margin: 0;
  white-space: pre-wrap;
}
.codex-attempt-table {
  max-height: 260px;
}
.inline-check {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
}
.inline-check input {
  width: auto;
}
.mono-text {
  font-family: "SFMono-Regular", "Consolas", monospace;
  color: var(--muted);
}
.met-control-strip, .met-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.met-control-strip label, .met-fork-card label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.met-control-strip input, .met-fork-card input, .met-fork-card select {
  min-height: 28px;
  padding: 4px 8px;
}
.met-control-strip input { width: 130px; }
.met-tabs {
  padding: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.met-tabs button {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
  color: var(--text);
}
.met-tabs button.active {
  border-color: var(--accent);
  background: rgba(215, 161, 58, 0.14);
}
.met-workspace { grid-column: 1 / -1; }
.met-form-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(560px, 1fr);
  gap: 10px;
  align-items: start;
}
.met-fork-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}
.met-fork-card h3 {
  margin: 0 0 2px;
  font-size: 13px;
}
.met-project-list {
  min-width: 0;
  border: 1px solid var(--line-soft);
}
.met-project-table {
  max-height: 560px;
  overflow: auto;
  font-size: 12px;
}
.met-tree-header, .met-tree-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 90px 72px 90px 116px;
  gap: 8px;
  align-items: center;
}
.met-tree-header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.met-tree-row {
  min-height: 30px;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.045);
}
.met-tree-row.project {
  cursor: pointer;
}
.met-tree-row.project:hover, .met-tree-row.project.active, .met-click-row:hover, .met-click-row.active {
  background: rgba(78, 183, 168, 0.08);
}
.met-tree-row.project.selected {
  box-shadow: inset 3px 0 0 var(--accent);
}
.met-tree-row.folder {
  grid-template-columns: auto auto 1fr;
  color: var(--text);
  background: rgba(255,255,255,0.025);
}
.met-tree-name {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
}
.met-tree-name input {
  width: 14px;
  height: 14px;
  margin: 0;
}
.met-tree-toggle {
  width: 20px;
  min-height: 20px;
  padding: 0;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
  color: var(--text);
}
.met-tree-count {
  color: var(--muted);
  font-size: 11px;
}
.met-inline-link {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.met-inline-link:hover {
  color: var(--accent-2);
}
.met-inline-link.project-path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.met-detail-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.07), transparent 38%),
    var(--panel-2);
}
.met-detail-panel.muted {
  background: var(--panel-3);
}
.met-detail-panel .panel-head {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line-soft);
}
.met-detail-panel code {
  display: block;
  margin-top: 3px;
  white-space: normal;
}
.met-detail-section {
  display: grid;
  gap: 7px;
}
.met-detail-section h3 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.met-detail-kv {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 6px;
}
.met-detail-kv-item {
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.025);
}
.met-detail-kv-item span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.met-detail-kv-item strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.met-detail-kv-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}
.met-layer-table {
  max-height: 260px;
  overflow: auto;
}
.met-file-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.met-file-chip-grid span {
  padding: 3px 7px;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
  color: var(--muted);
  font-size: 11px;
}
.met-log-lines {
  display: grid;
  gap: 4px;
  max-height: 240px;
  overflow: auto;
}
.met-log-lines div {
  padding: 5px 7px;
  border-left: 2px solid var(--accent-2);
  background: rgba(0,0,0,0.18);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  white-space: pre-wrap;
}
.ghost-btn.mini {
  min-height: 22px;
  padding: 2px 6px;
  font-size: 11px;
}
.pipeline-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}
.pipeline-toolbar select {
  width: min(280px, 42vw);
  min-height: 28px;
  padding: 4px 8px;
}
.pipeline-control-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(320px, 0.38fr);
  gap: 10px;
  align-items: stretch;
}
.pipeline-control-shell.detail-collapsed {
  grid-template-columns: minmax(0, 1fr);
}
.pipeline-control-shell.detail-open {
  grid-template-columns: minmax(620px, 1fr) minmax(320px, 0.38fr);
}
.pipeline-flow-frame {
  position: relative;
  height: min(68vh, 720px);
  min-height: 520px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 18% 22%, rgba(78, 183, 168, 0.11), transparent 30%),
    linear-gradient(135deg, rgba(215, 161, 58, 0.09), transparent 44%),
    #0b1319;
}
.pipeline-sidecar-tab {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(215, 161, 58, 0.44);
  border-radius: 999px;
  background: #0b1319;
  color: var(--text);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.pipeline-sidecar-tab.right {
  justify-self: end;
}
.pipeline-flow-frame .pipeline-sidecar-tab {
  position: absolute;
  z-index: 55;
  top: 12px;
  right: 12px;
}
.pipeline-sidecar-tab:disabled {
  cursor: default;
  color: var(--muted);
  border-color: rgba(129, 147, 159, 0.26);
  background: #0a1117;
  box-shadow: none;
}
.pipeline-flow-frame .react-flow__pane { cursor: grab; }
.pipeline-flow-frame .react-flow__controls {
  border: 1px solid var(--line);
  box-shadow: none;
}
.pipeline-flow-frame .react-flow__controls-button {
  border-bottom-color: var(--line-soft);
  background: #111a22;
  color: var(--text);
}
.pipeline-flow-frame .react-flow__controls-button svg { fill: currentColor; }
.pipeline-flow-frame .react-flow__edges {
  z-index: 30 !important;
}
.pipeline-flow-frame .react-flow__nodes {
  z-index: 20 !important;
}
.pipeline-flow-frame .react-flow__edge-path {
  stroke: rgba(129, 147, 159, 0.72);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(78, 183, 168, 0.12));
}
.pipeline-flow-frame .react-flow__edge {
  opacity: 0.82;
  z-index: 30 !important;
}
.pipeline-flow-frame .react-flow__edge:hover,
.pipeline-flow-frame .react-flow__edge.selected {
  opacity: 1;
}
.pipeline-flow-frame .react-flow__edge:hover .react-flow__edge-path,
.pipeline-flow-frame .react-flow__edge.selected .react-flow__edge-path {
  stroke-width: 2.8;
}
.pipeline-flow-frame .react-flow__edge.succeeded .react-flow__edge-path { stroke: var(--accent-2); }
.pipeline-flow-frame .react-flow__edge.running .react-flow__edge-path { stroke: var(--accent); }
.pipeline-flow-frame .react-flow__edge.failed .react-flow__edge-path { stroke: var(--danger); }
.pipeline-flow-frame .react-flow__edge.feedback .react-flow__edge-path {
  stroke-dasharray: 9 7;
}
.pipeline-flow-frame .react-flow__edge.overlap-colored .react-flow__edge-path {
  filter: drop-shadow(0 0 6px rgba(215, 161, 58, 0.16));
}
.pipeline-flow-frame .pipeline-flow-handle {
  width: 9px;
  height: 18px;
  border: 1px solid rgba(78, 183, 168, 0.8);
  border-radius: 2px;
  background: #071016;
}
.pipeline-flow-frame .pipeline-flow-handle.input.top,
.pipeline-flow-frame .pipeline-flow-handle.input.bottom {
  width: 18px;
  height: 9px;
}
.pipeline-flow-frame .pipeline-flow-handle.input.left { left: -6px; }
.pipeline-flow-frame .pipeline-flow-handle.input.top { top: -6px; }
.pipeline-flow-frame .pipeline-flow-handle.input.bottom { bottom: -6px; }
.pipeline-flow-frame .pipeline-flow-handle.output.right {
  right: -6px;
  border-color: rgba(215, 161, 58, 0.86);
}
.pipeline-flow-node {
  width: 236px;
  border: 1px solid rgba(129, 147, 159, 0.4);
  background: linear-gradient(180deg, rgba(19, 29, 38, 0.98), rgba(10, 18, 24, 0.98));
  color: var(--text);
  box-shadow: 0 14px 34px rgba(0,0,0,0.32);
}
.pipeline-flow-node-body {
  position: relative;
  padding: 10px 12px;
}
.pipeline-flow-node.succeeded { border-color: rgba(78, 183, 168, 0.72); }
.pipeline-flow-node.running { border-color: rgba(215, 161, 58, 0.82); }
.pipeline-flow-node.failed { border-color: rgba(207, 106, 84, 0.78); }
.pipeline-flow-node.quality-gate { background: linear-gradient(180deg, rgba(22, 38, 34, 0.98), rgba(10, 19, 17, 0.98)); }
.pipeline-flow-node.control-block { background: linear-gradient(180deg, rgba(36, 31, 20, 0.98), rgba(17, 15, 11, 0.98)); }
.pipeline-flow-node.selected-control-node {
  outline: 2px solid rgba(215, 161, 58, 0.78);
  box-shadow: 0 0 0 4px rgba(215, 161, 58, 0.16), 0 20px 38px rgba(0,0,0,0.42);
}
.flow-node-label {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}
.flow-node-label strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 12px;
}
.flow-node-label span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.flow-node-label code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent);
}
.pipeline-flow-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
}
.pipeline-flow-summary span {
  padding: 3px 7px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.03);
}
.pipeline-gantt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
}
.pipeline-gantt-actions select {
  width: min(420px, 48vw);
  min-height: 28px;
  padding: 4px 8px;
}
.pipeline-gantt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}
.pipeline-gantt-scale {
  display: grid;
  grid-template-columns: minmax(130px, 0.52fr) minmax(150px, 1fr);
  grid-template-areas: "label slider" "legend legend";
  align-items: center;
  gap: 3px 8px;
  min-width: min(340px, 72vw);
  padding: 6px 9px;
  border: 1px solid rgba(215, 161, 58, 0.22);
  background:
    linear-gradient(90deg, rgba(215, 161, 58, 0.08), rgba(78, 183, 168, 0.045)),
    rgba(255,255,255,0.026);
  color: var(--muted);
}
.pipeline-gantt-scale > span:first-child {
  grid-area: label;
  display: grid;
  gap: 1px;
  min-width: 0;
}
.pipeline-gantt-scale b {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pipeline-gantt-scale em {
  color: var(--text);
  font-style: normal;
  font-size: 11px;
  white-space: nowrap;
}
.pipeline-gantt-scale input[type="range"] {
  grid-area: slider;
  width: 100%;
  accent-color: var(--accent);
}
.pipeline-gantt-scale small {
  grid-area: legend;
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pipeline-gantt-wrap {
  display: grid;
  gap: 8px;
}
.pipeline-gantt-detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.36fr);
  gap: 10px;
  align-items: start;
}
.pipeline-gantt-detail-layout.detail-collapsed {
  grid-template-columns: minmax(0, 1fr);
}
.pipeline-gantt-detail-layout.detail-open {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.36fr);
}
.pipeline-gantt-main {
  min-width: 0;
}
.pipeline-gantt-main-head {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}
.pipeline-gantt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
}
.pipeline-gantt-meta span {
  padding: 4px 8px;
  border: 1px solid rgba(78, 183, 168, 0.18);
  background: rgba(78, 183, 168, 0.04);
}
.pipeline-gantt-viewport {
  max-height: min(78vh, 820px);
  overflow: auto;
  border: 1px solid rgba(78, 183, 168, 0.26);
  background:
    linear-gradient(90deg, rgba(215, 161, 58, 0.08), transparent 18%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.026) 0, rgba(255,255,255,0.026) 1px, transparent 1px, transparent 32px),
    #081118;
}
.pipeline-gantt-board {
  display: grid;
  align-items: start;
  position: relative;
}
.pipeline-gantt-head {
  position: sticky;
  top: 0;
  z-index: 6;
  min-height: 64px;
  padding: 8px 5px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(18, 31, 39, 0.98), rgba(8, 17, 24, 0.96));
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.15;
}
.pipeline-gantt-head.time {
  left: 0;
  z-index: 8;
}
.pipeline-gantt-head.node {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.02em;
}
.pipeline-gantt-head.empty {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.04em;
}
.pipeline-gantt-time-axis {
  position: sticky;
  left: 0;
  z-index: 4;
  border-right: 1px solid rgba(215, 161, 58, 0.22);
  background:
    linear-gradient(90deg, rgba(215, 161, 58, 0.08), rgba(8, 17, 24, 0.92)),
    #081118;
}
.pipeline-gantt-tick {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: grid;
  gap: 1px;
  padding: 0 7px;
  border-top: 1px solid rgba(215, 161, 58, 0.18);
  color: var(--muted);
  font-size: 10px;
}
.pipeline-gantt-tick:first-child {
  transform: translateY(0);
  padding-top: 3px;
}
.pipeline-gantt-tick:last-child {
  transform: translateY(-100%);
}
.pipeline-gantt-tick b {
  color: var(--text);
  font-weight: 700;
}
.pipeline-gantt-tick span {
  color: var(--faint);
}
.pipeline-gantt-node-col,
.pipeline-gantt-empty-col {
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.045);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), transparent),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.032) 0, rgba(255,255,255,0.032) 1px, transparent 1px, transparent 96px);
}
.pipeline-gantt-arrow-layer {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}
.pipeline-gantt-arrow {
  fill: none;
  stroke: #8aa0ad;
  stroke-width: 1.6;
  stroke-dasharray: 6 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
}
.pipeline-gantt-arrow.monitor,
.pipeline-gantt-arrow.guide,
.pipeline-gantt-arrow.observe {
  stroke: var(--accent-2);
}
.pipeline-gantt-arrow.observation {
  opacity: 0.92;
  stroke-width: 1.9;
  stroke-dasharray: 3 4;
}
.pipeline-gantt-arrow.webui {
  stroke: #69aee8;
}
.pipeline-gantt-arrow.cli {
  stroke: #d7a13a;
}
.pipeline-gantt-arrow.control-command-ignored,
.pipeline-gantt-arrow.ignored {
  stroke: var(--muted);
  opacity: 0.52;
}
.pipeline-gantt-empty-col {
  display: grid;
  place-items: start center;
  padding-top: 28px;
  color: var(--muted);
}
.pipeline-gantt-bar {
  position: absolute;
  left: 50%;
  width: 6px;
  min-height: 10px;
  border: 1px solid rgba(215, 161, 58, 0.92);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(246, 197, 91, 0.98), rgba(171, 107, 27, 0.92)),
    #20170b;
  color: #f7e8c5;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.32), 0 0 12px rgba(215, 161, 58, 0.28);
  overflow: hidden;
  padding: 0;
  text-indent: -999px;
  transform: translateX(-50%);
}
.pipeline-gantt-bar strong {
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pipeline-gantt-bar span {
  display: none;
  color: rgba(255,255,255,0.72);
  font-size: 10px;
}
.pipeline-gantt-bar.succeeded {
  border-color: rgba(78, 183, 168, 0.76);
  background: linear-gradient(180deg, rgba(78, 183, 168, 0.88), rgba(31, 111, 103, 0.72));
  color: #dffaf4;
}
.pipeline-gantt-bar.failed {
  border-color: rgba(207, 106, 84, 0.85);
  background: linear-gradient(180deg, rgba(207, 106, 84, 0.92), rgba(110, 42, 32, 0.74));
  color: #ffe3db;
}
.pipeline-gantt-bar.running {
  border-color: rgba(105, 174, 232, 0.95);
  background:
    linear-gradient(180deg, rgba(105, 174, 232, 0.95), rgba(35, 94, 133, 0.86)),
    #07131d;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.32), 0 0 18px rgba(105, 174, 232, 0.38);
  animation: ganttPulse 1.25s ease-in-out infinite;
}
.pipeline-gantt-bar.running.live::after {
  content: "";
  position: absolute;
  inset: -18px 0;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.82), transparent);
  opacity: 0.7;
  animation: ganttLiveSweep 1.4s linear infinite;
}
.pipeline-gantt-bar.selected {
  width: 10px;
  border-color: rgba(255, 240, 198, 0.98);
  box-shadow: 0 0 0 2px rgba(8, 17, 24, 0.88), 0 0 22px rgba(246, 197, 91, 0.55);
}
.pipeline-gantt-marker {
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: #a7bac5;
  box-shadow: 0 0 0 2px rgba(8, 17, 24, 0.88);
  transform: translate(-50%, -50%);
  z-index: 6;
}
.pipeline-gantt-marker.prompt {
  width: 9px;
  height: 9px;
  border-color: rgba(78, 183, 168, 0.58);
  background: rgba(78, 183, 168, 0.98);
}
.pipeline-gantt-marker.prompt.initial {
  border-color: rgba(215, 161, 58, 0.62);
  background: rgba(215, 161, 58, 0.98);
}
.pipeline-gantt-marker.prompt.monitor {
  border-color: rgba(105, 174, 232, 0.78);
  background: rgba(105, 174, 232, 0.98);
}
.pipeline-gantt-marker.prompt.queued {
  background: #0b1319;
  border-color: rgba(105, 174, 232, 0.7);
}
.pipeline-gantt-marker.control-source {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(138, 160, 173, 0.92);
}
.pipeline-gantt-marker.control-source.monitor {
  background: rgba(78, 183, 168, 0.98);
  border-color: rgba(78, 183, 168, 0.8);
}
.pipeline-gantt-marker.control-source.webui {
  background: rgba(105, 174, 232, 0.98);
  border-color: rgba(105, 174, 232, 0.82);
}
.pipeline-gantt-marker.control-source.cli {
  background: rgba(215, 161, 58, 0.98);
  border-color: rgba(215, 161, 58, 0.82);
}
.pipeline-gantt-marker.control-target {
  width: 12px;
  height: 12px;
  border-width: 2px;
  background: #081118;
}
.pipeline-gantt-marker.control-target.guide {
  border-color: rgba(78, 183, 168, 0.98);
}
.pipeline-gantt-marker.control-target.modify {
  border-color: rgba(224, 185, 90, 0.98);
}
.pipeline-gantt-marker.control-target.approve {
  border-color: rgba(78, 183, 168, 0.98);
  background: rgba(78, 183, 168, 0.22);
}
.pipeline-gantt-marker.control-target.restart {
  border-color: rgba(215, 161, 58, 0.98);
}
.pipeline-gantt-marker.control-target.ignored {
  border-color: rgba(129, 147, 159, 0.9);
  background: rgba(8, 17, 24, 0.62);
}
.pipeline-gantt-marker.selected {
  box-shadow: 0 0 0 2px rgba(8, 17, 24, 0.92), 0 0 0 4px rgba(246, 197, 91, 0.26), 0 0 18px rgba(246, 197, 91, 0.36);
}
.pipeline-gantt-detail-panel {
  position: sticky;
  top: 8px;
  display: grid;
  gap: 9px;
  max-height: min(78vh, 820px);
  min-height: 420px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(215, 161, 58, 0.28);
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.11), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.014)),
    #091219;
  box-shadow: inset 3px 0 0 rgba(215, 161, 58, 0.36);
}
.pipeline-gantt-detail-panel.empty {
  place-items: center;
}
.pipeline-gantt-detail-head,
.pipeline-attempt-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.pipeline-gantt-detail-head > div:first-child,
.pipeline-node-control-head > div:first-child {
  min-width: 0;
}
.pipeline-gantt-detail-head h3 {
  margin: 0;
  overflow-wrap: anywhere;
}
.pipeline-gantt-detail-head-actions,
.pipeline-node-control-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}
.pipeline-gantt-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pipeline-event-card {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(105, 174, 232, 0.22);
  background:
    linear-gradient(135deg, rgba(105, 174, 232, 0.08), transparent 42%),
    rgba(255,255,255,0.025);
}
.pipeline-event-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.pipeline-event-blocks {
  display: grid;
  gap: 7px;
}
.pipeline-event-text-block {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(215, 161, 58, 0.2);
  background:
    linear-gradient(90deg, rgba(215, 161, 58, 0.08), transparent 52%),
    rgba(0,0,0,0.14);
}
.pipeline-event-text-block b {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pipeline-event-text-block p {
  margin: 0;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.pipeline-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.pipeline-kv-grid > span {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.028);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.pipeline-kv-grid b {
  display: block;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pipeline-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
}
.pipeline-chip-row span {
  padding: 3px 6px;
  border: 1px solid rgba(78, 183, 168, 0.18);
  background: rgba(78, 183, 168, 0.055);
  color: var(--muted);
  font-size: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.pipeline-oa-panel {
  display: grid;
  gap: 10px;
}
.pipeline-minimax-quota-panel {
  display: grid;
  gap: 10px;
}
.pipeline-minimax-quota-panel .metric-card {
  min-width: 0;
}
.pipeline-oa-guarantees {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.pipeline-oa-guarantee {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.026);
}
.pipeline-oa-guarantee.ok {
  border-color: rgba(78, 183, 168, 0.22);
}
.pipeline-oa-guarantee.warn {
  border-color: rgba(215, 161, 58, 0.28);
}
.pipeline-oa-guarantee strong,
.pipeline-oa-guarantee span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pipeline-oa-guarantee strong {
  color: var(--text);
}
.pipeline-oa-guarantee span {
  color: var(--muted);
  font-size: 11px;
}
.pipeline-attempt-card {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.026);
}
.pipeline-attempt-card.matched {
  border-color: rgba(215, 161, 58, 0.46);
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.08), transparent 48%),
    rgba(255,255,255,0.03);
}
.pipeline-attempt-head > div {
  display: grid;
  gap: 2px;
}
.pipeline-attempt-head span {
  color: var(--muted);
  font-size: 11px;
}
.pipeline-attempt-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.pipeline-attempt-badges span {
  padding: 3px 6px;
  border: 1px solid rgba(78, 183, 168, 0.18);
  background: rgba(78, 183, 168, 0.055);
  color: #b8d7d3;
  font-size: 10px;
  text-transform: uppercase;
}
.pipeline-attempt-badges .danger {
  border-color: rgba(207, 106, 84, 0.36);
  background: rgba(207, 106, 84, 0.12);
  color: #f0b7a8;
}
.pipeline-structured-payload {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(105, 174, 232, 0.18);
  background:
    linear-gradient(90deg, rgba(105, 174, 232, 0.08), transparent 58%),
    rgba(8, 17, 24, 0.48);
}
.pipeline-structured-payload-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.pipeline-structured-payload-head b {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pipeline-structured-payload-head span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
.pipeline-text-preview {
  margin: 0;
  padding: 7px 8px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(4, 9, 13, 0.5);
  color: #bfd3d4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.pipeline-field-list {
  display: grid;
  grid-template-columns: minmax(82px, 0.38fr) minmax(0, 1fr);
  gap: 4px 7px;
  margin: 5px 0 0;
}
.pipeline-field-list dt {
  color: var(--accent-2);
  font-size: 10px;
  overflow-wrap: anywhere;
}
.pipeline-field-list dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
@keyframes ganttPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,0.32), 0 0 12px rgba(105, 174, 232, 0.28); }
  50% { box-shadow: 0 0 0 1px rgba(105, 174, 232, 0.62), 0 0 24px rgba(105, 174, 232, 0.58); }
}
@keyframes ganttLiveSweep {
  0% { transform: translateY(-48px); }
  100% { transform: translateY(48px); }
}
.pipeline-node-control {
  min-width: 0;
  max-height: min(68vh, 720px);
  min-height: 520px;
  overflow: auto;
  border: 1px solid rgba(215, 161, 58, 0.28);
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.11), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.014)),
    #0a1218;
  box-shadow: inset 3px 0 0 rgba(215, 161, 58, 0.28);
  padding: 10px;
}
.pipeline-node-control-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.pipeline-node-control-head h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.pipeline-control-runbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: end;
  margin: 10px 0;
}
.pipeline-control-runbar label,
.pipeline-control-actions label {
  display: grid;
  gap: 5px;
  color: var(--muted);
}
.pipeline-control-runbar select,
.pipeline-control-actions textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(4, 9, 13, 0.64);
  color: var(--text);
}
.pipeline-control-runbar select { min-height: 28px; padding: 4px 7px; }
.pipeline-control-actions textarea {
  resize: vertical;
  padding: 7px;
  line-height: 1.45;
}
.pipeline-control-meta,
.pipeline-control-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.pipeline-control-meta span,
.pipeline-control-evidence-grid span {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.pipeline-control-meta b {
  display: block;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pipeline-control-actions {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}
.pipeline-control-evidence {
  display: grid;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.pipeline-evidence-list {
  display: grid;
  gap: 7px;
}
.pipeline-evidence-list.compact {
  gap: 6px;
}
.pipeline-evidence-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.4fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(78, 183, 168, 0.05), transparent 38%),
    rgba(255,255,255,0.026);
}
.pipeline-evidence-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.pipeline-evidence-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.pipeline-evidence-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}
.pipeline-evidence-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pipeline-evidence-facts span {
  padding: 3px 6px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.16);
  color: var(--muted);
}
.compact-log code { font-size: 11px; }
.component-strata {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 7px;
}
.component-stratum, .pipeline-run-card {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}
.pipeline-run-card {
  cursor: pointer;
}
.pipeline-run-card.active {
  border-color: rgba(215, 161, 58, 0.68);
  box-shadow: inset 3px 0 0 rgba(215, 161, 58, 0.62);
}
.pipeline-run-card:focus {
  outline: 2px solid rgba(78, 183, 168, 0.58);
  outline-offset: 2px;
}
.pipeline-run-time {
  color: var(--muted);
  font-size: 12px;
}
.pipeline-score-board {
  display: grid;
  gap: 8px;
}
.pipeline-score-card, .pipeline-score-empty {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(135deg, rgba(78, 183, 168, 0.08), transparent 36%),
    var(--panel-3);
}
.pipeline-score-empty strong {
  color: var(--accent);
}
.pipeline-score-empty span {
  color: var(--muted);
}
.pipeline-score-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.pipeline-score-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.pipeline-score-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.pipeline-score-head strong {
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
}
.pipeline-score-meter {
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.24);
}
.pipeline-score-meter span {
  display: block;
  height: 100%;
  min-width: 2px;
  max-width: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.pipeline-score-card.failed .pipeline-score-meter span { background: linear-gradient(90deg, var(--danger), var(--accent)); }
.pipeline-score-card.running .pipeline-score-meter span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.pipeline-score-facts, .pipeline-score-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pipeline-score-facts span, .pipeline-score-badge, .pipeline-score-item {
  padding: 3px 7px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 11px;
}
.pipeline-score-badge {
  text-transform: uppercase;
}
.pipeline-score-badge.succeeded, .pipeline-score-item.passed {
  border-color: rgba(78, 183, 168, 0.55);
  color: var(--accent-2);
}
.pipeline-score-badge.failed, .pipeline-score-item.failed {
  border-color: rgba(207, 106, 84, 0.58);
  color: var(--danger);
}
.pipeline-score-badge.running {
  border-color: rgba(215, 161, 58, 0.58);
  color: var(--accent);
}
.pipeline-score-item {
  display: grid;
  gap: 1px;
  min-width: 62px;
}
.pipeline-score-item b {
  color: var(--text);
  font-size: 12px;
}
.pipeline-score-item small {
  color: currentColor;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pipeline-score-error {
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}
.component-stratum span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.component-stratum strong {
  color: var(--accent-2);
  font-size: 18px;
}
.pipeline-component-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.pipeline-run-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 8px;
}
.pipeline-log-list {
  display: grid;
  gap: 4px;
}
.pipeline-log-list code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 7px;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.18);
  color: #b9d5d8;
}
.draft-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.draft-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}
.draft-card > span,
.draft-card > code {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.endpoint-list article { grid-template-columns: 150px minmax(220px, 1fr) auto; }
.policy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.policy-grid article { grid-template-columns: 1fr; align-items: start; }
.policy-grid strong { font-size: 16px; }
.paragraph { margin: 10px 0 0; }
.security-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.security-board article { padding: 10px; display: grid; gap: 5px; }
.security-board .allow { border-color: rgba(113,191,120,0.45); }
.security-board .deny { border-color: rgba(207,106,84,0.45); }
.security-board span { color: var(--muted); }

.empty-state {
  display: grid;
  gap: 5px;
  min-height: 52px;
  align-content: start;
  justify-items: start;
  padding: 9px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: left;
}
.empty-state strong { color: var(--text); }
.muted { color: var(--muted); }
.block { display: block; }
.preline { white-space: pre-line; }

.login-screen, .loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}
.loading-screen { gap: 10px; align-content: center; color: var(--muted); }
.login-card {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)), var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}
.login-brand { padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.login-brand h1 { font-size: 24px; }
.login-brand p { margin: 2px 0 0; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; }
.login-form { display: grid; gap: 10px; }
.login-form label { display: grid; gap: 5px; color: var(--muted); }
.login-note { margin-top: 12px; color: var(--muted); font-size: 12px; }
.form-error {
  padding: 7px 8px;
  border: 1px solid rgba(207,106,84,0.5);
  color: #ffd7cf;
  background: rgba(207,106,84,0.1);
}
.unidesk-error {
  display: grid;
  gap: 8px;
  line-height: 1.45;
}
.unidesk-error-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.unidesk-error-title strong { color: #ffe6df; }
.unidesk-error-code {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid rgba(255,215,207,0.25);
  border-radius: 999px;
  color: #fff2ed;
  background: rgba(255,215,207,0.08);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.unidesk-error-message {
  margin: 0;
  color: #ffd7cf;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.unidesk-error-details {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 10px;
  margin: 0;
}
.unidesk-error-details dt {
  color: rgba(255,215,207,0.72);
  font-size: 12px;
}
.unidesk-error-details dd {
  margin: 0;
  color: #fff2ed;
  overflow-wrap: anywhere;
}
.form-success {
  padding: 7px 8px;
  border: 1px solid rgba(78,183,168,0.5);
  color: #d8fff6;
  background: rgba(78,183,168,0.1);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,0.58);
}
.raw-dialog {
  width: min(920px, 96vw);
  max-height: 86vh;
  border: 1px solid var(--line);
  background: #0a1015;
  box-shadow: var(--shadow);
}
.raw-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.unidesk-dialog {
  overflow: hidden;
}
.unidesk-dialog-body {
  display: grid;
  gap: 10px;
  max-height: calc(86vh - 118px);
  overflow: auto;
  padding: 10px;
}
.unidesk-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.unidesk-dialog-body.codex-merge-dialog-body {
  gap: 12px;
  padding: 14px;
}
.raw-json {
  max-height: calc(86vh - 58px);
  overflow: auto;
  margin: 0;
  padding: 10px;
  color: #c5dadd;
  font-size: 12px;
  line-height: 1.45;
}

.project-manager-page {
  display: grid;
  gap: 10px;
}
.project-manager-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.project-manager-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1.55fr) minmax(320px, 0.75fr);
  gap: 10px;
  align-items: start;
}
.project-manager-table {
  max-height: calc(100vh - 340px);
}
.project-manager-table table {
  min-width: 1120px;
}
.project-manager-table tr.active-row {
  background: rgba(78, 183, 168, 0.08);
}
.project-manager-table td {
  max-width: 280px;
}
.project-manager-form textarea {
  min-height: 82px;
}
.project-manager-filters {
  margin-top: 0;
}
.project-manager-filters input {
  width: min(320px, 42vw);
}
.project-manager-import {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.file-import {
  position: relative;
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(12, 18, 24, 0.62);
  cursor: pointer;
}
.file-import:hover {
  color: var(--text);
  border-color: var(--accent);
}
.file-import input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .metric-grid, .policy-grid, .security-board, .docker-metrics, .monitor-chart-grid, .monitor-summary-grid, .performance-metric-stack, .codex-load-test-grid, .codex-liveness-grid, .baidu-doc-grid, .filebrowser-target-grid, .oa-flow-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline-oa-guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dispatch-form, .schedule-form { grid-template-columns: 1fr 1fr; }
  .dispatch-actions { align-items: center; }
  .page-grid, .docker-layout, .monitor-layout, .performance-top-grid, .performance-grid, .findjob-grid, .findjob-hero, .pipeline-grid, .pipeline-hero, .met-grid, .met-form-grid, .code-queue-layout, .code-queue-hero, .codex-detail-grid, .project-manager-hero, .project-manager-layout, .baidu-netdisk-grid, .baidu-netdisk-hero, .baidu-transfer-forms, .filebrowser-hero, .oa-flow-hero, .oa-filter-bar { grid-template-columns: 1fr; }
  .codex-session-shell { grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr); position: relative; }
  .codex-session-shell.queue-collapsed { grid-template-columns: minmax(0, 1fr); }
  .codex-session-sidebar { border-right: 1px solid var(--line); border-bottom: 0; }
  .pipeline-control-shell,
  .pipeline-control-shell.detail-open,
  .pipeline-control-shell.detail-collapsed,
  .pipeline-gantt-detail-layout,
  .pipeline-gantt-detail-layout.detail-open,
  .pipeline-gantt-detail-layout.detail-collapsed { grid-template-columns: 1fr; }
  .pipeline-node-control { max-height: none; min-height: 0; }
  .findjob-grid .panel:nth-child(3), .claudeqq-page .findjob-grid .panel:nth-child(n+3), .pipeline-grid .panel:nth-child(3), .pipeline-grid .panel:nth-child(5), .met-grid .panel:nth-child(3), .met-grid .panel:nth-child(5), .met-detail-panel, .baidu-files-panel, .baidu-transfers-panel, .baidu-wide-panel, .baidu-docs-panel { grid-column: 1; }
  .gateway-record-grid { grid-template-columns: 1fr; }
  .overview-grid .panel:nth-child(n+3), .dispatch-grid .panel:first-child, .scheduled-task-page .panel:first-child, .scheduled-task-page .panel:nth-child(3), .topology-grid .panel:nth-child(3) { grid-column: 1; }
}

@media (max-width: 760px) {
  body { font-size: 12px; }
  .pipeline-control-runbar,
  .pipeline-control-meta,
  .pipeline-control-evidence-grid,
  .pipeline-evidence-row,
  .pipeline-oa-guarantees,
  .pipeline-kv-grid,
  .pipeline-field-list,
  .performance-metric-stack,
  .codex-load-test-grid,
  .oa-flow-metrics {
    grid-template-columns: 1fr;
  }
  .performance-hero { flex-direction: column; }
  .filebrowser-target-grid { grid-template-columns: 1fr; }
  .filebrowser-frame,
  .filebrowser-frame-shell {
    min-height: 520px;
    height: 70vh;
  }
  .pipeline-wide-panel .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .pipeline-wide-panel .panel-head > div:first-child,
  .pipeline-wide-panel .panel-actions {
    width: 100%;
  }
  .pipeline-gantt-actions { display: grid; grid-template-columns: 1fr; justify-content: stretch; width: 100%; }
  .pipeline-gantt-actions select { width: 100%; max-width: 100%; }
  .pipeline-gantt-scale { grid-template-columns: 1fr; grid-template-areas: "label" "slider" "legend"; min-width: 0; width: 100%; }
  .pipeline-gantt-scale em { white-space: normal; }
  .pipeline-gantt-toggle { width: 100%; justify-content: flex-start; }
  .pipeline-gantt-actions .ghost-btn { width: 100%; }
  .pipeline-gantt-bar { left: 50%; width: 5px; padding: 0; }
  .pipeline-gantt-bar.selected { width: 9px; }
  .pipeline-control-shell.detail-open,
  .pipeline-gantt-detail-layout.detail-open {
    display: block;
    position: relative;
  }
  .pipeline-control-shell.detail-open .pipeline-node-control,
  .pipeline-gantt-detail-layout.detail-open .pipeline-gantt-detail-panel {
    position: absolute;
    z-index: 24;
    inset: 0 0 auto auto;
    width: min(88vw, 360px);
    max-height: min(78vh, 720px);
    min-height: min(68vh, 420px);
    box-shadow: -24px 0 48px rgba(0, 0, 0, 0.46);
  }
  .pipeline-gantt-detail-layout.detail-collapsed .pipeline-gantt-detail-panel { display: none; }
  .pipeline-gantt-main-head { align-items: stretch; flex-direction: column; }
  .pipeline-sidecar-tab.right { width: 100%; }
  .pipeline-flow-frame {
    min-height: 430px;
  }
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
  }
  .rail {
    position: static;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    flex: 0 0 auto;
    height: 32px;
    margin: 0 3px 0 0;
    padding: 0 8px 0 0;
    border-bottom: 0;
    border-right: 1px solid var(--line-soft);
  }
  .brand-mark {
    width: 30px;
    height: 24px;
    font-size: 11px;
  }
  .brand-text { display: none; }
  .module {
    width: auto;
    min-width: 88px;
    min-height: 30px;
    grid-template-columns: auto 1fr;
    gap: 5px;
    padding: 4px 8px;
    margin: 0;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }
  .module-code { font-size: 9px; letter-spacing: 0.08em; }
  .module.active, .module:hover { border-bottom-color: var(--accent); }
  .workspace { padding: 10px; }
  .topbar {
    min-height: 36px;
    align-items: center;
    flex-direction: row;
    padding-bottom: 6px;
  }
  .topbar > div:first-child {
    min-width: 0;
    flex: 0 0 auto;
  }
  .topbar .eyebrow { display: none; }
  .topbar h1 {
    font-size: 14px;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  .status-strip {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 5px;
    padding: 3px 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .status-strip span:not(.dot):not([data-testid="conn-text"]):not(.user-pill) { display: none; }
  .status-strip .ghost-btn {
    min-height: 24px;
    padding: 2px 6px;
  }
  .top-status-bar {
    min-width: 0;
    flex: 1 1 auto;
    gap: 5px;
    padding: 4px;
    overflow-x: auto;
  }
  .top-status-main {
    min-width: 0;
  }
  .global-top-status .top-status-title,
  .global-top-status .top-status-chip:not([data-testid="conn-text"]):not(.user) {
    display: none;
  }
  .top-status-chip {
    min-height: 22px;
    padding: 2px 6px;
  }
  .top-status-actions .ghost-btn {
    min-height: 24px;
    padding: 2px 6px;
  }
  .tabs {
    height: 38px;
    align-items: center;
    padding: 5px 0;
    gap: 4px;
    overflow-y: hidden;
  }
  .tab {
    min-width: auto;
    min-height: 28px;
    padding: 4px 9px;
    white-space: nowrap;
  }
  .metric-grid, .policy-grid, .security-board, .dispatch-form, .schedule-form, .schedule-card-grid, .docker-metrics, .monitor-chart-grid, .monitor-summary-grid, .gateway-record-grid, .met-detail-kv, .code-queue-metrics, .codex-stats-summary-grid, .codex-liveness-grid, .codex-form-grid, .baidu-doc-grid { grid-template-columns: 1fr; }
  .compact-row, .heartbeat-row, .log-row, .endpoint-list article, .volume-route, .findjob-hero, .pipeline-hero, .code-queue-hero, .claudeqq-login-card, .baidu-login-card, .baidu-pathbar { grid-template-columns: 1fr; align-items: start; }
  .codex-output-line { grid-template-columns: 1fr; }
  .codex-transcript { min-height: 360px; }
  .codex-output-panel .panel-head { align-items: flex-start; flex-direction: column; }
  .codex-output-panel .panel-head > div:first-child,
  .codex-output-panel .panel-actions { width: 100%; }
  .codex-output-panel .panel-actions { justify-content: flex-start; }
  .code-queue-switcher { width: 100%; min-width: 0; }
  .codex-submit-queue-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "queue-select"
      "rename"
      "merge"
      "create";
  }
  .codex-workdir-row {
    grid-template-columns: 1fr;
  }
  .codex-rename-queue-btn, .codex-merge-queue-btn, .codex-create-queue-btn { width: 100%; }
  .codex-session-title-toggle { min-height: 40px; padding: 9px 15px; font-size: 14px; }
  .codex-attempt-cycle-head { align-items: flex-start; }
  .codex-attempt-cycle-head code {
    flex-basis: 100%;
    margin-left: 0;
    text-align: left;
  }
  .codex-execution-summary > summary .codex-progressive-card-head { align-items: flex-start; }
  .codex-execution-summary > summary .codex-progressive-card-head code {
    flex-basis: 100%;
    margin-left: 0;
    text-align: left;
  }
  .codex-task-move-control { grid-template-columns: 1fr; }
  .codex-task-move-control .ghost-btn { width: 100%; }
  .codex-stats-daily-row { grid-template-columns: 1fr 1fr; }
  .codex-stats-daily-row code { text-align: left; }
  .codex-session-shell {
    display: block;
    position: relative;
  }
  .codex-session-sidebar {
    position: absolute;
    z-index: 24;
    inset: 0 auto 0 0;
    width: min(86vw, 340px);
    max-height: 100%;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 26px 0 48px rgba(0, 0, 0, 0.44);
  }
  .codex-session-sidebar .codex-task-list-session {
    max-height: calc(100vh - 382px);
  }
  .codex-session-main {
    min-width: 0;
  }
  .process-resource-head {
    align-items: stretch;
    flex-direction: column;
  }
  .process-resource-actions {
    justify-content: flex-start;
  }
  .process-table-wrap {
    max-height: 360px;
  }
  .met-tree-header, .met-tree-row {
    grid-template-columns: minmax(220px, 1fr) 72px 62px 76px 96px;
    min-width: 560px;
  }
  .met-project-table { overflow-x: auto; }
  .docker-hero, .monitor-hero { flex-direction: column; }
}

.shell.rail-collapsed {
  grid-template-columns: 58px minmax(0, 1fr);
}
.rail-toggle {
  margin-left: auto;
  min-width: 24px;
  height: 24px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background: rgba(0,0,0,0.18);
}
.rail-toggle:hover { color: var(--text); border-color: var(--accent); }
.rail.collapsed {
  padding-inline: 8px;
}
.rail.collapsed .brand {
  justify-content: center;
  padding-inline: 0;
}
.rail.collapsed .brand-text,
.rail.collapsed .module > span:not(.module-code) {
  display: none;
}
.rail.collapsed .rail-toggle {
  position: absolute;
  top: 44px;
  left: 8px;
  width: 40px;
}
.rail.collapsed .module {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 38px;
  padding: 7px 4px;
  margin-top: 8px;
}
.rail.collapsed .module-code {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.todo-note-page {
  display: grid;
  gap: 10px;
}
.todo-note-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(260px, 0.9fr) minmax(220px, 0.7fr);
  gap: 8px;
  align-items: stretch;
}
.todo-note-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(680px, 1.8fr);
  gap: 10px;
  align-items: start;
}
.todo-list-panel .panel-body,
.todo-main-stack .panel-body {
  min-width: 0;
}
.todo-create-list,
.todo-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}
.todo-instance-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  max-height: calc(100vh - 310px);
  overflow: auto;
}
.todo-instance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background: var(--panel-3);
  text-align: left;
}
.todo-instance-row.active,
.todo-instance-row:hover {
  color: var(--text);
  border-color: var(--accent-2);
  background: rgba(78, 183, 168, 0.09);
}
.todo-instance-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.todo-instance-row code {
  grid-column: 1 / -1;
  color: #bcd2d7;
}
.todo-workbench {
  display: grid;
  gap: 8px;
  font-size: var(--todo-font-size, 13px);
}
.todo-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}
.todo-filter-strip,
.todo-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.todo-filter {
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(12, 18, 24, 0.62);
}
.todo-filter.active,
.todo-filter:hover {
  color: var(--text);
  border-color: var(--accent-2);
  background: rgba(78, 183, 168, 0.11);
}
.todo-font-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.todo-font-control input { width: 86px; padding: 0; }
.todo-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.todo-root-drop {
  padding: 6px 8px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.todo-tree {
  display: grid;
  gap: 5px;
  max-height: calc(100vh - 398px);
  min-height: 280px;
  overflow: auto;
  align-content: start;
}
.todo-row-wrap {
  display: grid;
  gap: 5px;
}
.todo-row {
  display: grid;
  grid-template-columns: 28px 24px minmax(240px, 1fr) 178px minmax(360px, auto);
  gap: 6px;
  align-items: center;
  margin-left: calc(var(--todo-depth, 0) * 18px);
  padding: 6px;
  border: 1px solid var(--line-soft);
  background: var(--panel-3);
}
.todo-row.completed {
  opacity: 0.76;
}
.todo-row.completed .todo-title-cell strong {
  text-decoration: line-through;
  color: var(--muted);
}
.todo-row.dragging {
  border-color: var(--accent);
  background: rgba(215, 161, 58, 0.08);
}
.todo-expand {
  min-width: 24px;
  height: 24px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background: rgba(0,0,0,0.14);
}
.todo-expand:disabled { opacity: 0.45; cursor: default; }
.todo-title-cell {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.todo-title-cell strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: var(--todo-font-size, 13px);
}
.todo-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}
.todo-reminder { color: var(--accent); }
.todo-reminder-input {
  min-width: 176px;
  padding: 5px 6px;
}
.todo-row-actions,
.todo-edit-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.todo-row-actions .ghost-btn {
  min-height: 24px;
  padding: 2px 6px;
}
.todo-children {
  display: grid;
  gap: 5px;
}

@media (max-width: 1120px) {
  .todo-note-layout,
  .todo-note-hero,
  .todo-toolbar {
    grid-template-columns: 1fr;
  }
  .todo-row {
    grid-template-columns: 28px 24px minmax(220px, 1fr);
  }
  .todo-reminder-input,
  .todo-row-actions {
    grid-column: 3;
  }
  .todo-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shell.rail-collapsed {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .rail.collapsed {
    height: 42px;
    padding: 4px 6px;
  }
  .rail.collapsed .brand {
    justify-content: flex-start;
    padding: 0 8px 0 0;
  }
  .rail.collapsed .rail-toggle {
    position: static;
    width: 24px;
    flex: 0 0 auto;
  }
  .rail.collapsed .module {
    width: auto;
    min-width: 88px;
    min-height: 30px;
    grid-template-columns: auto 1fr;
    justify-items: start;
    gap: 5px;
    padding: 4px 8px;
    margin: 0;
  }
  .rail.collapsed .module > span:not(.module-code) {
    display: inline;
  }
  .todo-stats-grid,
  .todo-create-list,
  .todo-add-form {
    grid-template-columns: 1fr;
  }
  .todo-tree {
    max-height: none;
    min-height: 220px;
  }
  .todo-row {
    grid-template-columns: 24px minmax(0, 1fr);
    margin-left: 0;
  }
  .todo-row > input[type="checkbox"] { grid-column: 1; }
  .todo-title-cell,
  .todo-reminder-input,
  .todo-row-actions {
    grid-column: 1 / -1;
  }
}

.codex-transcript-item.toolGroup {
  padding: 6px 0;
  border-bottom-color: rgba(215, 161, 58, 0.075);
}
.codex-tool-group {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(215, 161, 58, 0.24);
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.12), rgba(78, 183, 168, 0.035) 46%, rgba(255,255,255,0.018)),
    rgba(8, 12, 15, 0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.codex-tool-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 5px;
  position: relative;
  min-width: 0;
  padding: 8px 34px 8px 0;
  cursor: pointer;
  color: var(--text);
  list-style: none;
}
.codex-tool-group > summary::-webkit-details-marker { display: none; }
.codex-tool-group > summary::before {
  content: "+";
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(215, 161, 58, 0.38);
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
}
.codex-tool-group[open] > summary::before { content: "-"; }
.codex-tool-group-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.codex-tool-group > summary strong,
.codex-tool-group-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codex-tool-group > summary time,
.codex-tool-group-head time {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.codex-tool-group > summary code,
.codex-tool-group-head code {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--accent-2);
  white-space: nowrap;
}
.codex-tool-group-digest {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 12px;
  min-width: 0;
  max-width: 100%;
  color: #a7c7c3;
  font-size: 11px;
  line-height: 1.35;
}
.codex-tool-group-digest span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codex-tool-group-items {
  display: grid;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  padding: 0 0 8px;
}
.codex-transcript-item.nested {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  max-width: 100%;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.codex-transcript-item.nested:last-child { border-bottom: 0; }
.codex-transcript-item.nested .codex-transcript-bullet {
  display: none;
}

.pipeline-trace-timeline {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0;
}
.pipeline-trace-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(78, 183, 168, 0.20);
  background:
    radial-gradient(circle at top right, rgba(215, 161, 58, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(78, 183, 168, 0.10), rgba(255,255,255,0.018) 42%, transparent),
    #060a0d;
}
.pipeline-trace-head b {
  display: block;
  color: var(--text);
  letter-spacing: 0.04em;
}
.pipeline-trace-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
}
.pipeline-trace-session-head {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.pipeline-trace-focus {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(215, 161, 58, 0.24);
  background:
    linear-gradient(135deg, rgba(215, 161, 58, 0.12), rgba(78, 183, 168, 0.04) 48%, rgba(255,255,255,0.018)),
    rgba(8, 12, 15, 0.92);
  color: var(--text);
}
.pipeline-trace-focus strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pipeline-trace-focus time {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.pipeline-trace {
  min-height: 420px;
  max-height: min(76vh, 780px);
  margin-top: 0;
  border: 1px solid rgba(78, 183, 168, 0.18);
}
.pipeline-trace .codex-tool-group-digest {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 760px) {
  .pipeline-trace-head,
  .pipeline-trace-focus {
    grid-template-columns: minmax(0, 1fr);
    flex-direction: column;
    align-items: stretch;
  }
  .pipeline-trace {
    min-height: 360px;
  }
}

.notification-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  transition: background 0.15s;
}
.notification-icon-btn:hover {
  background: var(--panel-2);
}
.notification-icon-btn.has-unread {
  color: var(--accent);
}
.notification-icon-btn .notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.notification-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 9999;
  overflow: hidden;
}
.notification-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
}
.notification-popup-actions {
  display: flex;
  gap: 8px;
}
.notification-popup-clear,
.notification-popup-close {
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.notification-popup-clear:hover,
.notification-popup-close:hover {
  background: var(--panel-2);
  color: var(--text);
}
.notification-popup-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.notification-popup-list {
  max-height: 400px;
  overflow-y: auto;
}
.notification-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.notification-item:last-child {
  border-bottom: none;
}
.notification-item.success .notification-item-icon {
  color: var(--ok);
}
.notification-item.error .notification-item-icon {
  color: var(--danger);
}
.notification-item-icon {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
}
.notification-item-message {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  word-break: break-word;
}
.notification-item-dismiss {
  flex-shrink: 0;
  padding: 2px 6px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.notification-item-dismiss:hover {
  background: var(--panel-2);
  color: var(--text);
}

.notification-banner {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 10000;
  font-size: 14px;
  animation: notification-slide-in 0.2s ease-out;
}
@keyframes notification-slide-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.notification-banner.success {
  background: var(--ok);
  color: #fff;
}
.notification-banner.error {
  background: var(--danger);
  color: #fff;
}
.notification-banner-icon {
  font-size: 16px;
  font-weight: 700;
}
.notification-banner-message {
  flex: 1;
}
.notification-banner-dismiss {
  padding: 2px 6px;
  border: none;
  border-radius: 4px;
  background: rgba(255,255,255,0.2);
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.notification-banner-dismiss:hover {
  background: rgba(255,255,255,0.3);
}

.k3s-page {
  display: grid;
  gap: 14px;
}
.k3s-hero-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(215, 161, 58, 0.34);
  background:
    radial-gradient(circle at 88% 18%, rgba(215, 161, 58, 0.16), transparent 30%),
    radial-gradient(circle at 12% 84%, rgba(78, 183, 168, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
}
.k3s-hero {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.k3s-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(215, 161, 58, 0.5);
  border-radius: 999px;
  background:
    repeating-conic-gradient(from 12deg, rgba(215,161,58,0.22) 0 8deg, transparent 8deg 19deg),
    radial-gradient(circle, rgba(78,183,168,0.22), rgba(0,0,0,0.18) 62%);
  box-shadow: 0 0 34px rgba(78,183,168,0.18), inset 0 0 24px rgba(0,0,0,0.32);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 800;
}
.k3s-orb::before,
.k3s-orb::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(78,183,168,0.38);
  border-radius: inherit;
}
.k3s-orb::after {
  inset: 28px;
  border-style: solid;
  border-color: rgba(255,255,255,0.12);
}
.k3s-hero-copy h2 {
  max-width: 860px;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: none;
}
.k3s-route-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.k3s-route-strip span {
  padding: 5px 8px;
  border: 1px solid rgba(215,161,58,0.5);
  border-radius: 999px;
  background: rgba(215,161,58,0.12);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.k3s-route-strip code {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(0,0,0,0.24);
  color: var(--text);
  overflow-wrap: anywhere;
  white-space: normal;
}
.k3s-control-plane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.k3s-control-plane-card {
  min-height: 96px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, rgba(0,0,0,0.22), rgba(78,183,168,0.07));
}
.k3s-control-plane-card span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.k3s-control-plane-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 17px;
  letter-spacing: 0.08em;
}
.k3s-control-plane-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.k3s-service-panel {
  border-color: rgba(78,183,168,0.25);
}
.k3s-service-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.k3s-service-summary > div,
.k3s-instance-card {
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.18);
}
.k3s-service-summary > div {
  display: grid;
  gap: 6px;
  min-height: 66px;
  padding: 10px;
}
.k3s-service-summary span,
.k3s-kv dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.k3s-service-summary strong {
  color: var(--text);
  font-size: 18px;
}
.k3s-instance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.k3s-instance-card {
  padding: 12px;
  border-left: 3px solid rgba(78,183,168,0.7);
}
.k3s-instance-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 10px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.15em;
}
.k3s-kv {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
}
.k3s-kv dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}
.k3s-kv code {
  white-space: normal;
}

@media (max-width: 780px) {
  .k3s-hero {
    grid-template-columns: 1fr;
  }
  .k3s-orb {
    width: 96px;
    height: 96px;
  }
  .k3s-service-summary {
    grid-template-columns: 1fr 1fr;
  }
  .k3s-control-plane-grid {
    grid-template-columns: 1fr;
  }
}

.mdtodo-page {
  display: grid;
  gap: 12px;
}
.mdtodo-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.25fr) minmax(320px, 1fr);
  gap: 12px;
  align-items: start;
}
.mdtodo-file-list {
  display: grid;
  gap: 8px;
}
.mdtodo-file-item,
.mdtodo-task-row {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.16);
  color: var(--text);
  text-align: left;
}
.mdtodo-file-item {
  display: grid;
  gap: 4px;
  padding: 10px;
}
.mdtodo-file-item strong,
.mdtodo-file-item span,
.mdtodo-file-item code {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mdtodo-file-item span {
  color: var(--muted);
}
.mdtodo-file-item.active,
.mdtodo-task-row.active {
  border-color: rgba(215,161,58,0.75);
  background: rgba(215,161,58,0.08);
}
.mdtodo-tree,
.mdtodo-tree ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mdtodo-tree ol {
  margin-top: 6px;
}
.mdtodo-task-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 8px 7px calc(8px + (var(--task-depth, 0) * 16px));
}
.mdtodo-task-row code {
  color: var(--accent);
  white-space: nowrap;
}
.mdtodo-task-title {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mdtodo-link-count {
  color: var(--muted);
  font-size: 11px;
}
.mdtodo-editor {
  display: grid;
  gap: 10px;
}
.mdtodo-editor label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mdtodo-editor textarea {
  min-height: 260px;
  resize: vertical;
}
.mdtodo-command {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.22);
}
.mdtodo-command span {
  color: var(--muted);
}
.mdtodo-command code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.decision-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 10px;
  align-items: stretch;
}
.decision-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}
.decision-filter-bar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.decision-default-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.requirement-workspace {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.requirement-switcher,
.editor-mode-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.requirement-switcher button,
.editor-mode-grid button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background: rgba(0,0,0,0.18);
}
.requirement-switcher button.active,
.requirement-switcher button:hover,
.editor-mode-grid button.active,
.editor-mode-grid button:hover {
  border-color: rgba(215, 161, 58, 0.56);
  color: var(--text);
  background: rgba(215, 161, 58, 0.12);
}
.requirement-lanes {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 8px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 2px;
}
.requirement-lane {
  display: grid;
  gap: 8px;
  min-width: 210px;
  padding: 9px;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.13);
}
.requirement-lane-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
  min-width: 0;
}
.requirement-lane-head strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.goal-breakdown {
  display: grid;
  gap: 8px;
}
.goal-breakdown-item {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.14);
}
.goal-breakdown-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.goal-breakdown-head strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.goal-breakdown-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.goal-child-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.12);
}
.goal-child-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid var(--line-soft);
  color: var(--text);
  background: rgba(255,255,255,0.025);
  text-align: left;
}
.goal-child-list button:hover,
.goal-child-list button:focus-visible {
  border-color: rgba(78, 183, 168, 0.5);
}
.goal-child-list button span:last-child {
  overflow-wrap: anywhere;
}
.record-editor-form,
.diary-editor-form {
  display: grid;
  gap: 10px;
}
.decision-form-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(120px, 0.6fr));
  gap: 8px;
  align-items: end;
}
.decision-form-grid label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.decision-form-grid textarea {
  min-height: 140px;
  line-height: 1.45;
}
.diary-editor-grid {
  grid-template-columns: 150px minmax(220px, 1fr) minmax(180px, 0.6fr) minmax(150px, 0.5fr);
}
.diary-editor-grid textarea {
  min-height: 220px;
}
.decision-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.decision-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background: var(--panel-3);
  cursor: pointer;
}
.decision-tabs button.active,
.decision-tabs button:hover {
  border-color: rgba(78, 183, 168, 0.5);
  color: var(--text);
  background: rgba(78, 183, 168, 0.12);
}
.diary-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.diary-entry-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 250px);
  overflow: auto;
  padding-right: 2px;
}
.diary-entry-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.14);
}
.diary-entry-card.selected {
  border-color: rgba(78, 183, 168, 0.55);
  background: rgba(78, 183, 168, 0.09);
}
.diary-entry-main {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.diary-date {
  color: var(--accent-2);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.diary-entry-main strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.diary-entry-main span:last-child {
  color: var(--muted);
  line-height: 1.45;
}
.diary-calendar {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.12);
}
.diary-calendar-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.diary-calendar-head strong {
  letter-spacing: 0.08em;
}
.diary-calendar-week,
.diary-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.diary-calendar-week span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
}
.diary-day {
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 52px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  background: rgba(0,0,0,0.16);
  text-align: left;
}
.diary-day.empty {
  border-color: transparent;
  background: transparent;
}
.diary-day.has-entry {
  color: var(--text);
  border-color: rgba(78, 183, 168, 0.34);
  background: rgba(78, 183, 168, 0.08);
}
.diary-day.today {
  border-color: rgba(215, 161, 58, 0.52);
}
.diary-day.selected {
  box-shadow: inset 0 0 0 1px rgba(78, 183, 168, 0.8);
}
.diary-day span {
  font-size: 12px;
}
.diary-day i {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.diary-markdown {
  max-height: calc(100vh - 250px);
}
.decision-card-list {
  display: grid;
  gap: 8px;
}
.decision-record-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.16);
}
.decision-record-card.compact {
  padding: 9px;
}
.decision-record-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.decision-record-head strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.decision-record-meta,
.decision-record-foot,
.decision-tags,
.decision-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.decision-record-meta span:first-child {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.decision-record-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.decision-record-links span {
  min-width: 0;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--muted);
  background: rgba(255,255,255,0.025);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.decision-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.decision-markdown {
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}
.decision-record-foot {
  color: var(--muted);
  font-size: 11px;
}
.decision-record-foot code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.decision-tags span {
  padding: 2px 6px;
  border: 1px solid rgba(78, 183, 168, 0.34);
  color: var(--accent-2);
  background: rgba(78, 183, 168, 0.08);
  font-size: 11px;
}
.decision-evidence a {
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.decision-table th,
.decision-table td {
  vertical-align: top;
}
.decision-table td strong,
.decision-table td code {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.doc-workspace {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) minmax(0, 50%);
  gap: 10px;
  align-items: start;
  min-height: 480px;
}
.doc-workspace-left {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.doc-workspace-left.collapsed {
  min-width: 40px;
}
.doc-workspace-left-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
}
.doc-workspace-center {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-height: calc(100vh - 340px);
  overflow-y: auto;
}
.doc-workspace-right {
  display: grid;
  gap: 8px;
  min-width: 0;
  position: sticky;
  top: 0;
}
.doc-workspace-right.collapsed {
  min-width: 40px;
}
.doc-workspace-right-head {
  display: flex;
  justify-content: flex-end;
  padding: 4px 0;
}
.doc-type-tree {
  display: grid;
  gap: 4px;
  max-height: calc(100vh - 360px);
  overflow-y: auto;
  padding-right: 4px;
}
.doc-tree-group {
  display: grid;
  gap: 3px;
}
.doc-tree-group-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  color: var(--text);
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}
.doc-tree-group-head:hover {
  border-color: rgba(78, 183, 168, 0.45);
  background: rgba(78, 183, 168, 0.08);
}
.doc-tree-group-label {
  font-weight: 600;
  letter-spacing: 0.06em;
}
.doc-tree-group-count {
  color: var(--muted);
  font-size: 11px;
}
.doc-tree-caret {
  color: var(--muted);
  margin-left: auto;
}
.doc-tree-group-body {
  display: grid;
  gap: 2px;
  padding-left: 8px;
}
.doc-tree-node {
  display: grid;
  gap: 2px;
}
.doc-tree-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: 100%;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid transparent;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}
.doc-tree-item:hover {
  border-color: rgba(78, 183, 168, 0.3);
  background: rgba(78, 183, 168, 0.06);
}
.doc-tree-item.selected {
  border-color: rgba(78, 183, 168, 0.55);
  background: rgba(78, 183, 168, 0.14);
}
.doc-tree-meta {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-width: 0;
}
.doc-tree-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.doc-record-list {
  display: grid;
  gap: 6px;
}
.doc-list-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  color: var(--text);
  background: rgba(0,0,0,0.14);
  cursor: pointer;
  text-align: left;
}
.doc-list-item:hover {
  border-color: rgba(78, 183, 168, 0.4);
  background: rgba(78, 183, 168, 0.08);
}
.doc-list-item.selected {
  border-color: rgba(78, 183, 168, 0.6);
  background: rgba(78, 183, 168, 0.16);
}
.doc-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 11px;
}
.doc-list-meta span:first-child {
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.doc-list-title {
  font-weight: 600;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.doc-list-summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.doc-sidebar {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 4px;
}
.doc-sidebar.empty {
  align-items: center;
  justify-items: center;
}
.doc-sidebar-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--panel-3);
  z-index: 2;
  padding: 4px 0;
}
.doc-sidebar-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.doc-sidebar-mode-tabs button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  font-size: 12px;
}
.doc-sidebar-mode-tabs button.active,
.doc-sidebar-mode-tabs button:hover {
  border-color: rgba(78, 183, 168, 0.5);
  color: var(--text);
  background: rgba(78, 183, 168, 0.1);
}
.doc-detail-header {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.doc-detail-docno {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.doc-detail-title {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.doc-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}
.doc-detail-source {
  color: var(--accent);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.doc-detail-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.doc-detail-evidence a {
  color: var(--text);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.doc-viewer {
  display: grid;
  gap: 8px;
}
.doc-full-markdown {
  max-height: none;
  overflow-wrap: anywhere;
}
.doc-editor-form {
  display: grid;
  gap: 8px;
}
.doc-editor-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.doc-editor-form input,
.doc-editor-form select,
.doc-editor-form textarea {
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  color: var(--text);
  background: rgba(0,0,0,0.2);
  font-size: 13px;
  line-height: 1.4;
}
.doc-editor-form textarea {
  min-height: 160px;
  resize: vertical;
}
.doc-editor-form input:focus,
.doc-editor-form select:focus,
.doc-editor-form textarea:focus {
  border-color: rgba(78, 183, 168, 0.5);
  outline: none;
}

@media (max-width: 1100px) {
  .mdtodo-layout,
  .decision-hero,
  .decision-filter-bar,
  .decision-default-grid,
  .decision-form-grid,
  .goal-breakdown-head,
  .goal-breakdown-body,
  .diary-layout {
    grid-template-columns: 1fr;
  }
  .requirement-lanes {
    grid-template-columns: repeat(5, minmax(240px, 1fr));
  }
  .diary-entry-list,
  .diary-markdown {
    max-height: none;
  }
  .doc-workspace {
    grid-template-columns: 1fr;
  }
  .doc-workspace-left.collapsed,
  .doc-workspace-right.collapsed {
    display: none;
  }
  .doc-sidebar {
    max-height: none;
  }
}
