:root {
  --bg: #f5f7f8;
  --bg-accent: #e9eff1;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --panel-2: rgba(246, 249, 250, 0.96);
  --text: #1b2a2f;
  --muted: #667980;
  --line: rgba(27, 42, 47, 0.1);
  --line-strong: rgba(27, 42, 47, 0.18);
  --primary: #0f766e;
  --primary-hover: #0b5e58;
  --primary-soft: #ddf5f1;
  --danger: #9f2f2f;
  --danger-bg: #fceeee;
  --success: #0f766e;
  --success-bg: #e8f8f5;
  --warning: #0e9387;
  --warning-bg: #e4faf7;
  --neutral-bg: #edf2f3;
  --shadow: 0 20px 60px rgba(15, 118, 110, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 118, 110, 0.1);
  --radius: 18px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --code-bg: #18231f;
  --code-text: #eef5ef;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(180deg, #fbfcfc 0%, var(--bg) 55%, #eef3f4 100%);
  color: var(--text);
  font: 15px/1.55 "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: calc(100% - 32px);
  margin: 0 auto;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.app-glow {
  position: fixed;
  inset: auto;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.app-glow-left {
  top: -12rem;
  left: -14rem;
  background: rgba(20, 184, 166, 0.1);
}

.app-glow-right {
  top: 10rem;
  right: -16rem;
  background: rgba(148, 163, 184, 0.12);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(245, 247, 248, 0.78);
  border-bottom: 1px solid rgba(27, 42, 47, 0.06);
}

.topbar-inner {
  position: relative;
  z-index: 1;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-mark {
  width: auto;
  height: 50px;
  display: block;
}

.brand-copy {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.05em;
}

.brand-title {
  font-size: 29px;
  line-height: 1;
  font-weight: 700;
}

.brand-title-dark {
  color: #24353b;
}

.brand-title-accent {
  color: var(--primary);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topnav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--text);
}

.topnav-link:hover {
  text-decoration: none;
  background: rgba(15, 118, 110, 0.06);
}

.topbar-project-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 4px 0 0;
}

.topbar-project-label {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.topbar-project-select {
  min-width: 180px;
  max-width: 240px;
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(27, 42, 47, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.page {
  position: relative;
  z-index: 1;
  padding: 36px 0 56px;
}

.workflow-detail-page {
  width: calc(100vw - 32px);
  margin-left: calc(50% - 50vw + 16px);
  margin-right: calc(50% - 50vw + 16px);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid rgba(27, 42, 47, 0.06);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 251, 0.94)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.page-title {
  margin: 0 0 8px;
  font: 700 clamp(2rem, 3vw, 3.2rem)/1.02 "IBM Plex Serif", "Iowan Old Style", Georgia, serif;
  letter-spacing: -0.03em;
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.page-eyebrow {
  margin: 0 0 10px;
  color: var(--warning);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-header-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workflow-header-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
  align-items: start;
  margin-bottom: 20px;
  padding: 4px 0 6px;
}

.workflow-header-main {
  min-width: 0;
}

.workflow-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 14px;
}

.workflow-title {
  margin: 0;
  font: 700 clamp(2rem, 2.5vw, 2.8rem)/1.02 "IBM Plex Serif", "Iowan Old Style", Georgia, serif;
  letter-spacing: -0.03em;
}

.workflow-title-detail {
  font-size: clamp(1.5rem, 1.8vw, 2.1rem);
  line-height: 1.04;
}

.workflow-description {
  margin: 8px 0 0;
  max-width: 70ch;
  color: var(--muted);
}

.workflow-header-meta {
  margin-top: 0;
}

.workflow-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-self: center;
}

.schedule-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(27, 42, 47, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 252, 0.92));
  box-shadow: var(--shadow-soft);
}

.schedule-form {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 14px 18px;
  align-items: start;
}

.schedule-copy {
  min-width: 0;
}

.schedule-kicker {
  margin: 0 0 4px;
  color: var(--warning);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schedule-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.schedule-caption {
  color: var(--muted);
  line-height: 1.45;
}

.schedule-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.schedule-input {
  min-width: 180px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(27, 42, 47, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
}

.schedule-input-timezone {
  min-width: 160px;
}

.schedule-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(27, 42, 47, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.schedule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-feedback {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.schedule-feedback-error {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid rgba(159, 47, 47, 0.16);
}

.schedule-feedback-success {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(15, 118, 110, 0.14);
}

.page-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.card-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.card-subtitle {
  color: var(--muted);
  margin-top: 6px;
}

.card-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card-compact {
  padding: 18px 20px;
}

.muted {
  color: var(--muted);
}

.empty {
  color: var(--muted);
  padding: 30px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-weight: 600;
  color: #18403c;
}

input[type="text"],
input[type="password"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

textarea {
  min-height: 180px;
  resize: vertical;
  font: 13px/1.55 "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

textarea.code {
  min-height: 320px;
}

.form-actions,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fffaf3;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.14);
  transition: transform 0.04s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--primary-hover);
  text-decoration: none;
  border-color: var(--primary-hover);
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.16);
}

.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(250, 252, 253, 1);
}

.btn-danger {
  background: rgba(255, 255, 255, 0.9);
  color: var(--danger);
  border-color: #efc2c2;
  box-shadow: none;
}

.btn-danger:hover {
  background: var(--danger-bg);
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  line-height: 1;
}

.badge-neutral {
  background: var(--neutral-bg);
  color: #335a56;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-failed {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-running {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-ghost {
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  border-color: var(--line);
}

.kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 16px;
}

.kv div:nth-child(odd) {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

pre {
  margin: 0;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 14px;
  padding: 16px;
  overflow: auto;
  font: 12.5px/1.6 "IBM Plex Mono", "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  overflow: hidden;
}

details + details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  user-select: none;
}

details[open] summary {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 252, 253, 0.9);
}

.details-body {
  padding: 16px;
}

.error-box {
  background: var(--danger-bg);
  border: 1px solid #efc2c2;
  color: #7e2323;
  border-radius: 14px;
  padding: 14px 16px;
  white-space: pre-wrap;
}

.message-box {
  background: var(--success-bg);
  border: 1px solid rgba(36, 99, 75, 0.16);
  color: var(--success);
  border-radius: 14px;
  padding: 14px 16px;
}

.section-title {
  margin: 34px 0 16px;
  font: 700 24px/1.15 "IBM Plex Serif", "Iowan Old Style", Georgia, serif;
}

.inline-form {
  display: inline;
}

.step-card {
  border-left: 4px solid rgba(20, 184, 166, 0.28);
}

.steps-workbench {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.steps-workbench-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.steps-kicker {
  margin: 0;
  color: #18403c;
  font: 700 24px/1.05 "IBM Plex Serif", "Iowan Old Style", Georgia, serif;
}

.steps-caption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.steps-search {
  min-width: min(320px, 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.steps-search-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steps-search-input {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(27, 42, 47, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.steps-search-empty {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px dashed rgba(27, 42, 47, 0.14);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

.steps-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 2px 0;
  scrollbar-width: thin;
  position: relative;
  z-index: 2;
}

.step-tab {
  flex: 0 0 auto;
  min-width: 196px;
  max-width: 228px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 14px 14px 10px 10px;
  border: 1px solid rgba(27, 42, 47, 0.06);
  background: rgba(255, 255, 255, 0.44);
  color: rgba(27, 42, 47, 0.88);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.04);
  opacity: 0.74;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.step-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.74);
  opacity: 0.92;
}

.step-tab.is-active {
  transform: translateY(1px);
  border-color: rgba(15, 118, 110, 0.38);
  border-bottom-color: rgba(255, 255, 255, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(231, 247, 244, 0.98));
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.12);
  position: relative;
  z-index: 3;
  opacity: 1;
}

.step-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 8px;
  background: linear-gradient(180deg, rgba(231, 247, 244, 0.98), rgba(255, 255, 255, 0.98));
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 0;
}

.step-tab.is-secondary-active {
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(236, 246, 244, 0.92);
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.08);
  opacity: 0.96;
}

.step-tab.is-secondary-active .step-tab-order {
  background: rgba(15, 118, 110, 0.2);
  color: var(--primary);
}

.step-tab-order {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  flex: 0 0 auto;
  align-self: start;
  position: relative;
  z-index: 1;
}

.step-tab.is-active .step-tab-order {
  background: var(--primary);
  color: #ffffff;
}

.step-tab-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0;
  position: relative;
  z-index: 1;
}

.step-tab-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.08;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.step-tab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 1px;
}

.step-tab-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.step-tab-tag-muted {
  background: rgba(27, 42, 47, 0.06);
  color: var(--muted);
}

.step-tab-annotation {
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.steps-panels {
  min-width: 0;
  position: relative;
  z-index: 1;
  margin-top: -1px;
}

.steps-panels.is-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.92fr);
  gap: 14px;
  align-items: start;
}

.step-panel {
  border-left-width: 0;
  border-top: 1px solid rgba(15, 118, 110, 0.22);
  border-top-left-radius: 10px;
  padding: 16px 18px 18px;
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 250, 0.96)),
    var(--panel-strong);
}

.step-panel[hidden] {
  display: none;
}

.step-panel .card-title {
  font-size: 16px;
}

.step-panel .step-meta {
  margin-top: 4px;
  gap: 6px;
}

.step-panel .badge {
  padding: 4px 8px;
  font-size: 11px;
}

.steps-panels.is-split .step-panel {
  margin: 0;
}

.steps-panels.is-split .step-header {
  min-height: 78px;
}

.compare-panel .card-title {
  font-size: 16px;
}

.compare-panel .step-meta {
  margin-top: 4px;
  gap: 6px;
}

.compare-panel .badge {
  padding: 4px 8px;
  font-size: 11px;
}

.step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

hr.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 248, 0.92));
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 10px;
  font: 700 34px/1 "IBM Plex Serif", "Iowan Old Style", Georgia, serif;
}

.stat-note {
  margin-top: 8px;
  color: var(--muted);
}

.split-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
}

.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-note {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(250, 252, 253, 0.82);
}

.workflow-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.workflow-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.workflow-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workflow-card-schedule {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.workflow-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step-layout {
  display: grid;
  gap: 18px;
}

.step-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.step-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

.step-title-wrap {
  display: flex;
  gap: 14px;
}

.step-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.step-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(27, 42, 47, 0.08);
  border-radius: 14px;
  background: rgba(250, 252, 253, 0.76);
}

.step-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.step-toolbar-group-quiet {
  opacity: 0.9;
}

.rail-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rail-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.step-config-form {
  display: flex;
  flex-direction: column;
}

.step-json-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(27, 42, 47, 0.08);
  border-radius: 14px;
  background: rgba(250, 252, 253, 0.78);
}

.step-json-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.step-json-title {
  color: #19423e;
  font-size: 13px;
  font-weight: 700;
}

.step-json-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.step-json-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  font: 700 14px/1 "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
}

.icon-btn:hover {
  background: rgba(250, 252, 253, 1);
}

.icon-btn .rail-icon {
  width: 16px;
  height: 16px;
}

.icon-btn .rail-icon svg {
  width: 16px;
  height: 16px;
}

.compare-panel {
  border-left-width: 0;
  border-top: 1px solid rgba(15, 118, 110, 0.16);
  border-top-right-radius: 10px;
  padding: 16px 18px 18px;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.08);
  background:
    linear-gradient(180deg, rgba(253, 255, 255, 0.98), rgba(245, 250, 249, 0.96)),
    var(--panel-strong);
}

.compare-panel[hidden] {
  display: none;
}

.compare-panel-head {
  margin-bottom: 0;
}

.compare-panel-actions {
  margin-left: auto;
  gap: 6px;
}

.compare-config-shell {
  display: flex;
  flex-direction: column;
}

.mono {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

.run-meta-section {
  margin-bottom: 18px;
}

.run-meta-head {
  margin-bottom: 10px;
}

.run-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-bottom: 4px;
}

.run-meta-item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.run-meta-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.run-meta-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.runs-section {
  margin-top: 32px;
}

.runs-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.runs-kicker {
  margin: 0;
  color: #2a4a47;
  font: 700 20px/1.05 "IBM Plex Serif", "Iowan Old Style", Georgia, serif;
}

.runs-caption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.run-debug-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.run-debug-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(27, 42, 47, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.run-failures-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(159, 47, 47, 0.12);
  border-radius: 14px;
  background: rgba(252, 238, 238, 0.55);
}

.run-failures-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.run-failures-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.run-failure-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(159, 47, 47, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.run-failure-chip:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.98);
}

.run-step-card {
  scroll-margin-top: 92px;
}

.runs-stack {
  gap: 12px;
}

.runs-stack .card-header {
  margin-bottom: 8px;
}

.runs-stack .card-title {
  font-size: 17px;
}

.runs-stack .card-subtitle {
  font-size: 13px;
}

.runs-stack .badge {
  padding: 4px 8px;
  font-size: 11px;
}

.runs-stack .meta-list {
  padding-top: 8px;
  border-top: 1px solid rgba(27, 42, 47, 0.06);
}

.runs-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(27, 42, 47, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.run-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 18px;
  padding: 12px 14px;
}

.run-row + .run-row {
  border-top: 1px solid rgba(27, 42, 47, 0.07);
}

.run-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.run-row-titleline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.run-row-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.15;
}

.run-row-time {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.run-row-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 auto;
}

.run-row .badge {
  padding: 4px 8px;
  font-size: 11px;
}

.run-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-shell {
  max-width: none;
}

.form-shell-narrow {
  max-width: none;
}

.surface-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-gap {
  margin-bottom: 24px;
}

.error-box-compact {
  margin-bottom: 12px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 860px) {
  .grid-2,
  .grid-3,
  .overview-grid,
  .run-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .page-header,
  .card-header,
  .topbar-inner,
  .workflow-card-header,
  .workflow-card-footer,
  .step-header {
    flex-direction: column;
    align-items: stretch;
  }

  .kv {
    grid-template-columns: 1fr;
  }

  .step-actions {
    justify-content: flex-start;
  }

  .run-row {
    flex-direction: column;
    align-items: stretch;
  }

  .run-row-meta {
    justify-content: flex-start;
  }

  .brand-subtitle {
    display: none;
  }

  .step-tab {
    min-width: min(76vw, 230px);
  }

  .steps-workbench-head,
  .runs-section-head,
  .schedule-form {
    flex-direction: column;
    align-items: stretch;
  }

  .schedule-form {
    display: flex;
  }

  .schedule-controls {
    justify-content: flex-start;
  }

  .schedule-input,
  .schedule-input-timezone {
    width: 100%;
    min-width: 0;
  }

  .steps-search {
    min-width: 0;
  }

  .workflow-header-bar {
    grid-template-columns: 1fr;
  }

  .workflow-header-actions {
    justify-content: flex-start;
  }

  .workflow-detail-page {
    width: 100%;
    margin: 0;
  }

  .steps-panels.is-split {
    grid-template-columns: 1fr;
  }

  .compare-panel-head,
  .step-json-head {
    flex-direction: column;
    align-items: stretch;
  }

  .compare-panel-actions,
  .step-json-actions {
    justify-content: flex-start;
  }

  .step-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .run-failures-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .run-failures-links {
    justify-content: flex-start;
  }
}

.details-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

textarea.code {
  min-height: 420px;
  tab-size: 2;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}
.editor-shell {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(250, 252, 253, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.editor-error {
  margin-top: 10px;
}

button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hidden-textarea {
  display: none;
}

.code-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.code-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-text {
  color: var(--muted);
  font-size: 13px;
}

.code-block-card {
  overflow: hidden;
}

.status-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.status-tile {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(250, 252, 253, 0.66);
  border: 1px solid var(--line);
  box-shadow: none;
}

.status-tile-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-tile-value {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.cm-editor .cm-tooltip {
  z-index: 50;
}

.hint-box {
  background: #eafaf7;
  border: 1px solid rgba(15, 118, 110, 0.16);
  color: #0f5e58;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}

.id-pill {
  flex: 0 0 auto;
  min-width: auto;
  padding: 6px 10px;
  border-radius: 10px;
  justify-content: center;
  white-space: nowrap;
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.04em;
}
