/* =========================================================
   ZEAP · How it works section
   Bootstrap 5.3 + Bootstrap Icons + custom styles
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Website layer (zyrix.ai) */
  --zh-bg: #000010;
  --zh-purple: #322275;
  --zh-accent: #8D96F2;
  --zh-accent-soft: rgba(141, 150, 242, 0.14);
  --zh-violet: #9C83FF;
  --zh-gold: #F5CB36;
  --zh-text: #CAC9D1;
  --zh-muted: #A9ADC8;
  --zh-subtle: #7E84A6;
  --zh-line: rgba(255, 255, 255, 0.08);
  --zh-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --zh-display: "Hind", "Inter", sans-serif;
  --zh-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Product layer (ZEAP console) */
  --zc-bg: #1A1C2B;
  --zc-header: #1F2131;
  --zc-nav: #161827;
  --zc-card: #13151F;
  --zc-inner: #1D2033;
  --zc-canvas: #10121B;
  --zc-text: #E6E8F2;
  --zc-sub: #9AA0B8;
  --zc-blue: #1976D2;
  --zc-blue-text: #64B5FF;
  --zc-border: rgba(255, 255, 255, 0.07);

  /* Module colours */
  --m-test-autopilot: #FF3EB5;
  --m-data-copilot: #1E88E5;
  --m-tdm-copilot: #22D3EE;
  --m-api-copilot: #10D9A0;
  --m-agent-testing: #A78BFA;
  --m-all: #94A3B8;

  /* Motion */
  --zh-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Tone helpers: set --tone once, components read it */
.tone-pink   { --tone: var(--m-test-autopilot); }
.tone-blue   { --tone: var(--m-data-copilot); }
.tone-cyan   { --tone: var(--m-tdm-copilot); }
.tone-green  { --tone: var(--m-api-copilot); }
.tone-violet { --tone: var(--m-agent-testing); }
.tone-slate  { --tone: var(--m-all); }
.tone-sky    { --tone: #4DA3FF; }
.tone-red    { --tone: #F87171; }
.tone-amber  { --tone: #FBBF24; }
.tone-success{ --tone: #22C55E; }

/* ---------- Section shell & layout matching existing sections ---------- */
.zh-section {
  position: relative;
  background:
    radial-gradient(ellipse 70% 440px at 50% 0%, rgba(50, 34, 117, .65) 0%, rgba(50, 34, 117, .15) 50%, transparent 80%),
    var(--zh-bg);
  color: var(--zh-text);
  font-family: var(--zh-font);
  padding-top: 50px !important;
  padding-bottom: 70px !important;
  overflow: hidden;
}

/* Inherit existing title & description font styling */
.zh-section .s-heading {
  margin-bottom: 36px;
}
.zh-section .s-heading .s-title {
  font-family: var(--zh-display);
  font-size: 32px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: #ffffff;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 14px !important;
}
.zh-section .s-heading .text.text-type-2 {
  font-family: var(--zh-font);
  font-size: 16px !important;
  line-height: 1.55 !important;
  max-width: 820px !important;
  color: #B4B7CC !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-wrap: pretty;
}

/* ---------- Step rail ---------- */
.zh-rail-wrap {
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.zh-rail-wrap::-webkit-scrollbar { display: none; }
.zh-rail {
  display: grid; grid-template-columns: repeat(8, minmax(112px, 1fr));
  gap: 8px; min-width: 940px; margin: 0; padding: 0; list-style: none;
}
.zh-rail-btn {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  min-height: 64px; padding: 14px 4px 6px;
  background: transparent; border: 0; text-align: left; cursor: pointer;
  color: var(--zh-muted); transition: color .25s var(--zh-ease);
}
.zh-rail-btn::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .1); transition: background .3s var(--zh-ease);
}
.zh-rail-btn::after { /* progress fill while autoplay runs */
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; border-radius: 2px;
  background: var(--zh-accent);
}
.zh-rail-btn.is-done::before { background: rgba(141, 150, 242, .45); }
.zh-rail-btn[aria-selected="true"]::before { background: rgba(141, 150, 242, .3); }
.zh-rail-btn[aria-selected="true"]::after { width: var(--zh-progress, 100%); transition: width .2s linear; }
.zh-rail-num { font: 600 12px/1 var(--zh-font); letter-spacing: .06em; color: #6C7194; }
.zh-rail-label { font: 500 15px/1.2 var(--zh-font); }
.zh-rail-btn:hover .zh-rail-label { color: #fff; }
.zh-rail-btn[aria-selected="true"] .zh-rail-num { color: #B4BAFF; }
.zh-rail-btn[aria-selected="true"] .zh-rail-label { color: #fff; font-weight: 600; }

/* ---------- Stage (aside + console) ---------- */
.zh-stage { position: relative; margin-top: 24px; }
.zh-aside { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 992px) {
  .zh-aside { flex: 0 0 auto; width: 350px; }
}

.zh-eyebrow { font: 600 12px/1 var(--zh-font); letter-spacing: .08em; text-transform: uppercase; color: var(--zh-violet); }
.zh-step-title { margin: 0; font: 500 20px/1.22 var(--zh-display); color: #fff; letter-spacing: -.01em; }
.zh-step-lead { margin: 8px 0 0; font: 400 14.5px/1.55 var(--zh-font); color: var(--zh-muted); }
.zh-swap { animation: zhSwap .4s var(--zh-ease); }
@keyframes zhSwap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.btn.zh-ctrl {
  --bs-btn-color: #E6E8F2; --bs-btn-border-color: rgba(255, 255, 255, .16); --bs-btn-bg: rgba(255, 255, 255, .03);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .08); --bs-btn-hover-border-color: rgba(255, 255, 255, .28);
  --bs-btn-active-bg: rgba(255, 255, 255, .12); --bs-btn-active-border-color: rgba(255, 255, 255, .3); --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 245, 203, 54;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}

/* Callout list */
.zh-callouts { display: flex; flex-direction: column; gap: 8px; }
.zh-callout {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 0;
  padding: 13px 15px; border-radius: 12px;
  background: rgba(255, 255, 255, .02); border: 1px solid var(--zh-line);
  color: inherit; transition: background .25s, border-color .25s, box-shadow .25s;
}
.zh-callout:hover { border-color: rgba(141, 150, 242, .4); }
.zh-callout-head { display: flex; align-items: center; gap: 10px; }
.zh-callout-num {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 11px/1 var(--zh-font);
  background: var(--zc-inner); color: var(--zh-muted); border: 1px solid rgba(255, 255, 255, .2);
  transition: all .25s;
}
.zh-callout-title {font-size:14px; font-weight:500; }
.zh-callout-desc {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  font-size: 13px ;line-height:1.5; color: #B4B7CC;
  transition: grid-template-rows .35s var(--zh-ease), opacity .3s, margin .35s var(--zh-ease);
}
.zh-callout-desc > span { overflow: hidden; }
.zh-callout.is-active {
  background: rgba(141, 150, 242, .09); border-color: rgba(141, 150, 242, .55);
  box-shadow: 0 0 36px -18px rgba(141, 150, 242, .9);
}
.zh-callout.is-active .zh-callout-num { background: var(--zh-accent); color: #00001A; border-color: var(--zh-accent); }
.zh-callout.is-active .zh-callout-desc { grid-template-rows: 1fr; opacity: 1; margin-top: 6px; }

.zh-why {
  margin-top: auto; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(50, 34, 117, .5), rgba(50, 34, 117, .12));
  border: 1px solid rgba(156, 131, 255, .22);
}
.zh-why-label { font: 600 11px/1 var(--zh-font); letter-spacing: .1em; text-transform: uppercase; color: #C9B8FF; }
.zh-why-text { margin: 6px 0 0; font: 400 13px/1.5 var(--zh-font); color: #F4F7FF; }

/* Console frame scaled to fit */
.zh-fit { position: relative; min-width: 0; }
.zh-console {
  position: absolute; top: 0; left: 0;
  width: 980px; height: 660px; transform-origin: 0 0;
  display: flex; flex-direction: column;
  background: var(--zc-bg); border: 1px solid rgba(149, 158, 254, .22); border-radius: 16px;
  box-shadow: 0 40px 120px -30px rgba(80, 60, 200, .55);
  overflow: hidden; color: var(--zc-text); font-family: var(--zh-font);
}

/* Connector line between callout and console panel */
.zh-link {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible; z-index: 5;
}
.zh-link path { fill: none; stroke-linecap: round; transition: stroke-dashoffset .6s var(--zh-ease); }
.zh-link .zh-link-halo { stroke: var(--zc-nav); stroke-width: 6; opacity: .9; }
.zh-link .zh-link-line { stroke: var(--zh-accent); stroke-width: 1.6; filter: drop-shadow(0 0 4px rgba(141, 150, 242, .8)); }
.zh-link circle { fill: var(--zh-accent); filter: drop-shadow(0 0 6px rgba(141, 150, 242, .9)); transition: opacity .3s; }
@media (max-width: 991.98px) { .zh-link { display: none; } }

.zh-footnote { margin-top: 28px; font-size: 13px; color: var(--zh-subtle); }

/* Closing band */
.zh-closing { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--zh-line); }
.zh-closing-line { margin: 0; font: 600 clamp(22px, 2.4vw, 30px)/1.3 var(--zh-display); color: #fff; letter-spacing: -.01em; }
.btn.zh-btn-primary {
  --bs-btn-bg: #3A3EA5; --bs-btn-border-color: #3A3EA5; --bs-btn-color: #fff;
  --bs-btn-hover-bg: #4549C0; --bs-btn-hover-border-color: #4549C0; --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #33379A; --bs-btn-active-border-color: #33379A;
  height: 48px; padding: 0 28px; border-radius: 999px; font-weight: 500;
  display: inline-flex; align-items: center; box-shadow: 0 12px 32px -12px rgba(79, 96, 250, .8);
  text-decoration: none;
}
.btn.zh-btn-ghost {
  --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .2);
  --bs-btn-hover-bg: rgba(255, 255, 255, .06); --bs-btn-hover-border-color: rgba(255, 255, 255, .35); --bs-btn-hover-color: #fff;
  height: 48px; padding: 0 28px; border-radius: 999px; font-weight: 500; display: inline-flex; align-items: center;
  text-decoration: none;
}
.zh-section .btn:focus-visible, .zh-section button:focus-visible { outline: 2px solid var(--zh-gold); outline-offset: 2px; box-shadow: none; }

/* =========================================================
   ZEAP console (product layer)
   ========================================================= */
.zc-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px; background: var(--zc-header); border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.zc-brand { display: flex; align-items: center; gap: 12px; font: 700 20px/1 var(--zh-display); color: #fff; }
.zc-brand .bi { color: var(--m-data-copilot); font-size: 18px; }
.zc-app-title { font: 600 14.5px/1.2 var(--zh-font); color: var(--zc-text); }
.zc-header-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #B8BDD2; }
.zc-header-meta strong { color: #fff; font-weight: 600; }
.zc-live {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px;
  background: rgba(34, 197, 94, .12); color: #4ADE80; font: 500 12px/1 var(--zh-font);
}
.zc-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; animation: zcPulse 1.6s ease-in-out infinite; }
@keyframes zcPulse { 50% { opacity: .35; } }
.zc-avatar { width: 28px; height: 28px; border-radius: 50%; background: #3A3F55; display: inline-flex; align-items: center; justify-content: center; font: 600 11px/1 var(--zh-font); color: var(--zc-text); }

.zc-body { flex: 1 1 auto; min-height: 0; display: flex; }
.zc-nav {
  flex: none; width: 184px; padding: 16px 10px; display: flex; flex-direction: column; gap: 4px;
  background: var(--zc-nav); border-right: 1px solid rgba(255, 255, 255, .06);
}
.zc-nav-heading { padding: 4px 10px 10px; font: 600 11px/1 var(--zh-font); letter-spacing: .1em; text-transform: uppercase; color: var(--zc-sub); }
.zc-nav-link {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px;
  border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer;
  font: 500 13px/1 var(--zh-font); color: #B8BDD2; transition: background .2s, color .2s;
}
.zc-nav-link:hover { background: rgba(255, 255, 255, .04); }
.zc-nav-link .zc-dot { opacity: .7; }
.zc-nav-link.active { background: rgba(25, 118, 210, .22); color: #fff; box-shadow: inset 3px 0 0 var(--zc-blue); }
.zc-nav-link.active .zc-dot { opacity: 1; }
.zc-nav-foot { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 12px; color: #8A90B4; }

.zc-main {
  position: relative; flex: 1 1 auto; min-width: 0; padding: 16px 20px 18px;
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
}
.zc-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.zc-topbar .breadcrumb { --bs-breadcrumb-divider-color: #4A4F68; --bs-breadcrumb-item-active-color: #D0D4E4; margin: 0 0 6px; font-size: 11.5px; }
.zc-topbar .breadcrumb-item { color: #8A90B4; }
.zc-page-title { margin: 0; font: 600 19px/1.1 var(--zh-display); color: #fff; }
.zc-mods { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.zc-mod {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); font: 500 11px/1 var(--zh-font); color: #D0D4E4;
}

.btn.btn-zeap {
  --bs-btn-bg: var(--zc-blue); --bs-btn-border-color: var(--zc-blue); --bs-btn-color: #fff;
  --bs-btn-hover-bg: #1E88E5; --bs-btn-hover-border-color: #1E88E5; --bs-btn-hover-color: #fff;
  --bs-btn-padding-x: 14px; --bs-btn-padding-y: 6px; --bs-btn-font-size: 12.5px; --bs-btn-border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; flex: none;
}
.btn.btn-zeap-outline {
  --bs-btn-color: var(--zc-text); --bs-btn-border-color: rgba(255, 255, 255, .22); --bs-btn-hover-bg: rgba(255, 255, 255, .06);
  --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: rgba(255, 255, 255, .35);
  --bs-btn-padding-x: 12px; --bs-btn-padding-y: 5px; --bs-btn-font-size: 12.5px; --bs-btn-border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
/* Buttons inside the illustrative console are not focusable */
.zc-screen .btn { pointer-events: none; }

/* Screens */
.zc-screen { display: flex; flex-direction: column; gap: 12px; }
.zc-screen[hidden] { display: none !important; }
.zc-screen.is-entering { animation: zcEnter .35s var(--zh-ease); }
@keyframes zcEnter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Cards / panels */
.zc-card {
  position: relative; padding: 14px 16px; border-radius: 14px;
  background: var(--zc-card); border: 1px solid var(--zc-border);
  transition: opacity .35s var(--zh-ease), filter .35s var(--zh-ease), box-shadow .35s var(--zh-ease), border-color .35s;
}
.zc-card-tight { padding: 12px 14px; }
.zc-label { font: 600 10.5px/1.2 var(--zh-font); letter-spacing: .08em; text-transform: uppercase; color: var(--zc-sub); }
.zc-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.zc-card-title { font: 600 15px/1.2 var(--zh-display); color: #fff; }
.zc-strong { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.25; }
.zc-sub { font-size: 11.5px; color: var(--zc-sub); line-height: 1.25; }
.zc-text { font-size: 13px; color: var(--zc-text); line-height: 1.45; }
.zc-mono { font-family: var(--zh-mono); }

/* Spotlight: the active panel stays lit, the rest dims */
.zc-main.is-spot .zh-panel:not(.is-active) { opacity: .34; filter: saturate(.55); }
.zh-panel.is-active { border-color: rgba(141, 150, 242, .9); box-shadow: 0 0 0 1px var(--zh-accent), 0 0 34px -6px rgba(141, 150, 242, .6); }

/* Numbered marker on each panel */
.zc-marker {
  position: absolute; top: -10px; left: -10px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 11px/1 var(--zh-font);
  background: var(--zc-inner); color: var(--zh-muted); border: 1px solid rgba(255, 255, 255, .22);
  transition: all .3s var(--zh-ease);
}
.zh-panel.is-active .zc-marker {
  background: var(--zh-accent); color: #00001A; border-color: var(--zh-accent);
  box-shadow: 0 0 0 4px rgba(141, 150, 242, .22), 0 0 20px rgba(141, 150, 242, .75);
}

/* Atoms */
.zc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--m-all)); box-shadow: 0 0 8px var(--tone, transparent); flex: none; display: inline-block; }
.zc-dot-sm { width: 6px; height: 6px; }
.zc-tag { display: inline-flex; align-items: center; gap: 6px; font: 600 10px/1 var(--zh-font); letter-spacing: .06em; color: #B8BDD2; text-transform: uppercase; }
.zc-tag .zc-dot { width: 6px; height: 6px; }
.zc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 5px; background: var(--zc-inner); min-width: 64px; }
.zc-icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 34%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--tone) 20%, transparent);
}
.zc-tile {
  position: relative; display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 12px; border-radius: 12px; background: var(--zc-inner); border: 1px solid var(--zc-border);
}
.zc-tile.is-selected { border-color: var(--zc-blue); box-shadow: inset 0 0 0 1px var(--zc-blue); }
.zc-tile > .zc-dot { position: absolute; top: 10px; right: 10px; width: 7px; height: 7px; }

.badge.zc-pill { font: 500 11.5px/1 var(--zh-font); padding: 5px 10px; letter-spacing: 0; white-space: nowrap; }
.zc-pill-pass { background: rgba(34, 197, 94, .14); color: #4ADE80; }
.zc-pill-fail { background: rgba(239, 68, 68, .16); color: #F87171; }
.zc-pill-warn { background: rgba(245, 158, 11, .16); color: #FBBF24; }
.zc-pill-info { background: rgba(25, 118, 210, .2); color: var(--zc-blue-text); }
.zc-pill-mute { background: rgba(255, 255, 255, .06); color: #B8BDD2; }

.zc-list { list-style: none; margin: 4px 0 0; padding: 0; }
.zc-list > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 13px; color: var(--zc-text); }
.zc-list > li:last-child { border-bottom: 0; }
.zc-list-grid > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); justify-content: initial; }
.zc-bullets { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.zc-bullets li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--zc-text); }

/* Workflow nodes */
.zc-flow { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.zc-node { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--zc-inner); border: 1px solid var(--zc-border); font-size: 13px; font-weight: 500; color: #fff; }
.zc-arrow { color: #5A607A; font-size: 13px; }

/* Toolbar */
.zc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 12px; }
.zc-select { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16); font: 500 12px/1 var(--zh-font); color: var(--zc-text); }
.zc-select .bi { font-size: 10px; color: var(--zc-sub); }
.zc-seg { display: inline-flex; gap: 3px; padding: 2px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .08); }
.zc-seg > span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 6px; font: 500 12px/1 var(--zh-font); color: var(--zc-text); background: var(--zc-inner); border: 1px solid rgba(255, 255, 255, .1); }
.zc-seg > span.is-on { background: var(--zc-blue); border-color: var(--zc-blue); color: #fff; }
.zc-switch { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; min-height: 0; color: var(--zc-text); }
.zc-switch .form-check-input { margin: 0; float: none; width: 2em; height: 1.1em; background-color: #3A3F55; border-color: #3A3F55; opacity: 1; }
.zc-switch .form-check-input:checked { background-color: var(--zc-blue); border-color: var(--zc-blue); }
.zc-switch .form-check-input:disabled ~ .form-check-label { opacity: 1; }
.zc-switch .form-check-label { opacity: 1; font-size: 12px; }

/* Flow canvas */
.zc-canvas { background-color: var(--zc-canvas); background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 16px 16px; padding: 14px; }
.zc-step { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; background: var(--zc-card); border: 1px solid rgba(77, 163, 255, .26); }
.zc-step + .zc-step { margin-top: 8px; position: relative; }
.zc-step + .zc-step::before { content: ""; position: absolute; left: 25px; top: -9px; width: 1px; height: 8px; background: rgba(77, 163, 255, .5); }
.zc-step .bi-grip-vertical { color: #5A607A; }
.zc-step-no { padding: 3px 7px; border-radius: 5px; background: rgba(25, 118, 210, .22); color: var(--zc-blue-text); font: 600 11px/1 var(--zh-font); }
.zc-step-name { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zc-box { padding: 3px 7px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .14); font-size: 11px; color: var(--zc-text); }
.zc-step-status { width: 76px; display: inline-flex; justify-content: flex-end; }

/* Healing diff */
.zc-heal { padding: 12px; border-radius: 10px; background: var(--zc-inner); border-left: 3px solid var(--zc-blue); display: flex; flex-direction: column; gap: 8px; }
.zc-heal .form-check-input { margin: 0; float: none; background-color: var(--zc-blue); border-color: var(--zc-blue); opacity: 1; }
.zc-diff { border-radius: 7px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); background: var(--zc-canvas); font: 400 11.5px/1.4 var(--zh-mono); }
.zc-diff > div { padding: 7px 10px; }
.zc-diff-del { color: #FCA5A5; background: rgba(239, 68, 68, .08); }
.zc-diff-add { color: #6EE7B7; background: rgba(16, 185, 129, .1); border-top: 1px solid rgba(255, 255, 255, .04); }

/* Stat tile + timeline */
.zc-stat { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 10px; background: var(--zc-inner); border: 1px solid var(--zc-border); }
.zc-stat-value { font: 700 16px/1 var(--zh-font); color: #fff; }
.zc-timeline > li { display: grid; grid-template-columns: 64px 64px minmax(0, 1fr) auto; justify-content: initial; }
.zc-timeline time { font: 400 11.5px/1 var(--zh-mono); color: var(--zc-sub); }
.zc-progress { height: 5px; width: 72px; background: #2A2E45; }
.zc-progress .progress-bar { background: var(--zc-blue); }

/* Data connections */
.zc-conn { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 11px 12px; border-radius: 10px; background: var(--zc-inner); border: 1px solid var(--zc-border); }
.zc-db { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; font: 600 10.5px/1 var(--zh-font); color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); }
.table.zc-table { --bs-table-bg: transparent; --bs-table-color: var(--zc-text); --bs-table-border-color: rgba(255, 255, 255, .05); margin: 8px 0 0; font-size: 13px; }
.table.zc-table th { font: 600 10.5px/1.2 var(--zh-font); letter-spacing: .08em; text-transform: uppercase; color: var(--zc-sub); padding: 6px 0; }
.table.zc-table td { padding: 6px 0; vertical-align: middle; }

/* Agent trials */
.zc-trials { display: inline-flex; gap: 2px; }
.zc-trials > i { width: 4px; height: 12px; border-radius: 2px; background: #22C55E; display: block; font-style: normal; }
.zc-trials > i.is-warn { background: #F59E0B; }
.zc-eval > li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 76px; justify-content: initial; }
.zc-eval > li > :last-child { justify-self: end; }

/* KPI + readiness bars */
.zc-kpi { display: flex; flex-direction: column; gap: 5px; height: 100%; padding: 10px 12px; border-radius: 10px; background: var(--zc-inner); border: 1px solid var(--zc-border); border-left: 3px solid var(--tone); }
.zc-kpi-label { font-size: 11.5px; font-weight: 600; color: #D0D4E4; }
.zc-kpi-value { font: 700 22px/1 var(--zh-font); color: var(--tone); }
.zc-bars { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--zc-canvas); border: 1px solid rgba(255, 255, 255, .06); }
.zc-bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 84px; align-items: center; gap: 12px; padding: 5px 0; font-size: 12.5px; }
.zc-bar .progress-stacked { height: 8px; background: #2A2E45; }
.zc-bar .bg-pass { background: #22C55E; }
.zc-bar .bg-fail { background: #EF4444; }
.zc-bar span:last-child { text-align: right; font-size: 11.5px; color: #D0D4E4; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .zh-section *, .zh-section *::before, .zh-section *::after { animation: none !important; transition: none !important; }
}
