/* ============================================
   CLIQUE WORKSHOP — Clinician / Researcher surface
   Light, calm, almost consumer. Opposite of the
   dense Control Plane. Shares brand tokens.
   ============================================ */

:root {
  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --bg-sidebar: #F8F8F8;
  --bg-hover: #F4F4F5;
  --border: #E4E4E7;
  --border-strong: #D4D4D8;
  --text: #09090B;
  --text-sub: #52525B;
  --text-muted: #A1A1AA;
  --accent: #09090B;
  --accent-hover: #18181B;
  --green: #16A34A;
  --green-bg: #F0FDF4;
  --red: #DC2626;
  --red-bg: #FEF2F2;
  --orange: #EA580C;
  --orange-bg: #FFF7ED;
  --blue: #2563EB;
  --blue-bg: #EFF6FF;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }
body { min-height: 100%; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input { font-family: inherit; font-size: inherit; color: inherit; }

[data-lucide] { width: 1em; height: 1em; stroke-width: 2; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* --- Demo Banner --- */
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 60;
}
.demo-banner-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.25);
  animation: demoPulse 2s ease-in-out infinite;
}
@keyframes demoPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22,163,74,0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(22,163,74,0.12); }
}
.demo-banner-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.demo-banner-exit {
  display: inline-flex; align-items: center; gap: 4px;
  color: #fff; opacity: 0.75; font-size: 12px;
  transition: opacity 0.15s ease;
}
.demo-banner-exit:hover { opacity: 1; }
.demo-banner-exit i { width: 13px; height: 13px; }

/* --- Topbar --- */
.wk-topbar {
  position: sticky;
  top: 38px; /* sits below demo banner */
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .wk-topbar {
  background: rgba(11,11,14,0.85);
}

.wk-topbar-left { display: flex; align-items: center; }
.wk-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.wk-brand svg { color: var(--text); }
.wk-wordmark {
  font-size: 15px;
  letter-spacing: -0.01em;
}
.wk-wordmark-sub {
  color: var(--text-sub);
  font-weight: 500;
  margin-left: 2px;
}

/* step progress */
.wk-steps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  justify-self: center;
}
.wk-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-sub);
  transition: background 0.15s ease, color 0.15s ease;
}
.wk-step:hover { color: var(--text); background: var(--bg-hover); }
.wk-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 600;
}
.wk-step.is-complete .wk-step-num {
  background: var(--green); color: #fff;
}
.wk-step.is-active {
  background: var(--accent);
  color: #fff;
}
.wk-step.is-active .wk-step-num {
  background: rgba(255,255,255,0.22);
  color: #fff;
}
[data-theme="dark"] .wk-step.is-active { color: #0B0B0E; }
[data-theme="dark"] .wk-step.is-active .wk-step-num {
  background: rgba(11,11,14,0.22); color: #0B0B0E;
}
.wk-step-sep {
  width: 14px; height: 1px;
  background: var(--border-strong);
}

.wk-topbar-right {
  display: flex; align-items: center; gap: 10px;
  justify-self: end;
}
.wk-role-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
}
.wk-role-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E4E4E7, #A1A1AA);
  color: #fff;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .wk-role-avatar {
  background: linear-gradient(135deg, #3F3F46, #71717A);
}
.wk-role-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.wk-role-text strong { font-weight: 600; font-size: 12.5px; }
.wk-role-dept { color: var(--text-muted); font-size: 11px; }

.wk-topbar-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-sub);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.wk-topbar-link:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-alt); }
.wk-topbar-link i { width: 14px; height: 14px; }

.wk-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.wk-icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-alt); }
.wk-icon-btn i { width: 15px; height: 15px; }

/* Theme toggle icons */
.theme-icon-light { display: none; }
.theme-icon-dark { display: inline-flex; }
[data-theme="dark"] .theme-icon-light { display: inline-flex; }
[data-theme="dark"] .theme-icon-dark { display: none; }

/* --- Main layout --- */
.wk-main { display: block; }
.wk-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

.wk-section {
  padding: 88px 0 96px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 120px;
}
.wk-section:first-of-type { border-top: none; padding-top: 72px; }
.wk-section-alt { background: var(--bg-alt); }

.wk-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.wk-h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 14px;
}
.wk-h2 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 12px;
}
.wk-sub {
  font-size: 17px;
  color: var(--text-sub);
  margin-bottom: 32px;
  max-width: 640px;
}
.wk-sub-em { color: var(--text); font-weight: 500; }
.wk-sub-quote {
  font-size: 13.5px;
  color: var(--text-muted);
  font-style: italic;
  margin: -20px 0 28px;
  max-width: 640px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
}

/* --- Buttons --- */
.wk-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.wk-btn:active { transform: translateY(1px); }
.wk-btn i { width: 15px; height: 15px; }
.wk-btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
[data-theme="dark"] .wk-btn-primary { color: #0B0B0E; }
.wk-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.wk-btn-secondary {
  background: var(--bg); color: var(--text);
  border-color: var(--border-strong);
}
.wk-btn-secondary:hover { background: var(--bg-alt); }
.wk-btn-ghost {
  color: var(--text-sub); border-color: transparent;
}
.wk-btn-ghost:hover { color: var(--text); background: var(--bg-hover); }
.wk-btn-xl { padding: 13px 22px; font-size: 14.5px; }

/* --- Pills --- */
.wk-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--text-sub);
  border: 1px solid var(--border);
}
.wk-pill i { width: 12px; height: 12px; }
.wk-pill-green { background: var(--green-bg); color: var(--green); border-color: transparent; }
.wk-pill-orange { background: var(--orange-bg); color: var(--orange); border-color: transparent; }
.wk-pill-blue { background: var(--blue-bg); color: var(--blue); border-color: transparent; }
.wk-pill-subtle { background: transparent; color: var(--text-muted); border-color: var(--border); }

/* ============================================
   SECTION 1 — Data Drop
   ============================================ */
.wk-drop {
  display: flex; flex-direction: column; align-items: center;
  padding: 52px 32px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.wk-drop:hover,
.wk-drop:focus-visible {
  border-color: var(--accent);
  background: var(--bg);
  outline: none;
}
.wk-drop.is-dragover {
  border-color: var(--accent);
  background: var(--bg);
  transform: scale(1.003);
}
.wk-drop.is-loading { pointer-events: none; opacity: 0.7; }
.wk-drop-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.wk-drop-icon i { width: 24px; height: 24px; }
.wk-drop-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.wk-drop-hint { color: var(--text-sub); font-size: 14px; }
.wk-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.wk-drop-tags {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-top: 22px;
}
.wk-drop-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.wk-drop-tag i { width: 12px; height: 12px; }

.wk-drop-progress {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.wk-drop-progress-head {
  display: flex; justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.wk-progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.wk-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.15s linear;
}

.wk-samples {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.wk-samples-label { font-size: 13px; color: var(--text-muted); margin-right: 4px; }
.wk-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-sub);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.wk-chip:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-alt); }
.wk-chip i { width: 14px; height: 14px; }

/* Dataset summary */
.wk-dataset {
  margin-top: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: wkFadeUp 0.35s ease;
}
.wk-dataset-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.wk-dataset-title {
  display: flex; align-items: center; gap: 12px;
}
.wk-dataset-title > i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--text);
  padding: 8px;
}
.wk-dataset-name { font-size: 14px; font-weight: 600; }
.wk-dataset-meta { font-size: 12.5px; color: var(--text-muted); }
.wk-dataset-body { padding: 20px 22px 22px; }
.wk-dataset-label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.wk-stackbar {
  display: flex;
  height: 34px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.wk-stackbar-seg {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 8px;
  transition: filter 0.15s ease;
}
.wk-stackbar-seg:hover { filter: brightness(1.05); }
.wk-seg-a { background: #3F3F46; }
.wk-seg-b { background: var(--orange); }
.wk-seg-c { background: var(--blue); }
[data-theme="dark"] .wk-seg-a { background: #71717A; }

.wk-dataset-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.wk-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 20px 28px;
}
.wk-mini-stat { display: flex; flex-direction: column; }
.wk-mini-stat-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.wk-mini-stat-value { font-size: 13px; font-weight: 500; }

/* ============================================
   SECTION 2 — Task Picker
   ============================================ */
.wk-task-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.wk-task-card {
  position: relative;
  text-align: left;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.wk-task-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.wk-task-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(9,9,11,0.06);
}
[data-theme="dark"] .wk-task-card.is-selected {
  box-shadow: 0 0 0 3px rgba(244,244,245,0.08);
}
.wk-task-illus {
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 8px 10px;
}
.wk-task-illus svg { width: 100%; height: 100%; display: block; }
.il-bg { fill: var(--border); }
.il-bg-sub { fill: var(--border-strong); }
.il-accent { fill: var(--accent); }
.il-accent-fill { fill: var(--accent); opacity: 0.18; }
.il-outline { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.il-outline-dashed { stroke: var(--accent); stroke-width: 1.3; stroke-dasharray: 3 2; }
.il-line { fill: var(--border-strong); }
.il-accent-line { fill: var(--accent); }

.wk-task-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
}
.wk-task-icon i { width: 15px; height: 15px; }
.wk-task-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.wk-task-q { color: var(--text-sub); font-size: 13.5px; }
.wk-task-meta { margin-top: 4px; }

.wk-task-check {
  position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}
[data-theme="dark"] .wk-task-check { color: #0B0B0E; }
.wk-task-check i { width: 13px; height: 13px; }
.wk-task-card.is-selected .wk-task-check { opacity: 1; }

.wk-task-continue {
  margin-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  animation: wkFadeUp 0.25s ease;
}
.wk-task-continue-text { color: var(--text-sub); font-size: 13.5px; }

/* ============================================
   SECTION 3 — Auto-Configure
   ============================================ */
.wk-config-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.wk-config-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.15s ease;
}
.wk-config-card.is-revealed {
  opacity: 1;
  transform: none;
}
.wk-config-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.wk-config-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.wk-config-label i { width: 13px; height: 13px; }
.wk-config-value {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.wk-config-desc { font-size: 12.5px; color: var(--text-sub); }

.wk-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.wk-tip:hover { color: var(--text); background: var(--bg-hover); }
.wk-tip i { width: 14px; height: 14px; }

.wk-advanced {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: 28px;
  overflow: hidden;
}
.wk-advanced-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
}
.wk-advanced-summary::-webkit-details-marker { display: none; }
.wk-advanced-chev {
  width: 16px; height: 16px;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}
.wk-advanced[open] .wk-advanced-chev { transform: rotate(90deg); }
.wk-advanced-note {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
.wk-advanced-body {
  padding: 4px 18px 18px;
  border-top: 1px solid var(--border);
}
.wk-hp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 16px;
}
.wk-hp-field { display: flex; flex-direction: column; gap: 6px; }
.wk-hp-field span {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.wk-hp-field input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wk-hp-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(9,9,11,0.06);
}
[data-theme="dark"] .wk-hp-field input:focus {
  box-shadow: 0 0 0 3px rgba(244,244,245,0.08);
}

.wk-start-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wk-start-note { color: var(--text-muted); font-size: 12.5px; }

/* ============================================
   SECTION 4 — Training
   ============================================ */
.wk-lifecycle {
  list-style: none;
  display: flex;
  gap: 0;
  padding: 22px 20px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow-x: auto;
}
/* Each step is a vertical stack: dot on top, label below. The connector
   between dots lives *between* this step's dot and the next step's dot,
   on the same horizontal line as the dot centers — so labels (which now
   sit below the dot) can never be overstruck. */
.wk-lc-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  flex: 1;
  min-width: 130px;
  padding: 0 4px;
}
.wk-lc-step:not(:last-child)::after {
  content: "";
  position: absolute;
  /* dot is 26px tall → its center is at y = 13px from the top of the step */
  top: 13px;
  /* Start at the right edge of this dot, end at the left edge of the next */
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  z-index: 0;
  transform: none;
}
.wk-lc-step.is-done:not(:last-child)::after,
.wk-lc-step.is-active:not(:last-child)::after { background: var(--accent); }
.wk-lc-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text-muted);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.wk-lc-dot i { width: 13px; height: 13px; }
.wk-lc-step.is-done .wk-lc-dot {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
[data-theme="dark"] .wk-lc-step.is-done .wk-lc-dot { color: #0B0B0E; }
.wk-lc-step.is-active .wk-lc-dot {
  background: var(--bg); border-color: var(--accent); color: var(--accent);
}
.wk-lc-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: wkPulse 1.2s ease-in-out infinite;
}
@keyframes wkPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.55; }
}
.wk-lc-body {
  display: flex; flex-direction: column; gap: 2px; padding-top: 2px;
  align-items: center;
  max-width: 100%;
  position: relative;
  z-index: 2;
}
.wk-lc-title { font-size: 13px; font-weight: 600; }
.wk-lc-detail { font-size: 11.5px; color: var(--text-muted); line-height: 1.35; }
.wk-lc-step.is-done .wk-lc-title,
.wk-lc-step.is-active .wk-lc-title { color: var(--text); }

/* Training body: chart + log */
.wk-train-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
.wk-train-chart, .wk-train-log {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; flex-direction: column;
}
.wk-train-chart-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.wk-train-chart-title { font-weight: 600; font-size: 13.5px; }
.wk-train-chart-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--text-sub); }
.wk-legend { display: inline-flex; align-items: center; gap: 6px; }
.wk-legend-swatch { width: 10px; height: 2px; border-radius: 2px; }
.wk-legend-loss { background: var(--accent); }
.wk-legend-dice { background: var(--green); }

.wk-chart-svg { width: 100%; height: 260px; display: block; }
.wk-chart-grid line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 3; }
.wk-chart-axis text {
  fill: var(--text-muted);
  font-family: var(--mono);
  font-size: 9.5px;
}
.wk-chart-line { stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.wk-chart-loss { stroke: var(--accent); }
.wk-chart-dice { stroke: var(--green); }

.wk-train-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.wk-stat { display: flex; flex-direction: column; gap: 2px; }
.wk-stat-label {
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.wk-stat-value { font-size: 15px; font-weight: 600; }

.wk-train-actions {
  display: flex; justify-content: flex-end;
  margin-top: 12px;
}

.wk-train-log-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 10px;
}
.wk-train-log-head span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.wk-train-log-head i { width: 13px; height: 13px; }
.wk-train-log-sub { color: var(--text-muted); font-size: 11px; }
.wk-train-log-body {
  flex: 1;
  min-height: 280px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-sub);
  white-space: pre-wrap;
  word-break: break-word;
}
.wk-train-log-line { display: block; }
.wk-train-log-line .lg-k { color: var(--text-muted); }
.wk-train-log-line .lg-v { color: var(--text); }
.wk-train-log-line.is-new { animation: logIn 0.25s ease; }
@keyframes logIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }

.wk-train-success {
  margin-top: 20px;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--green-bg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  animation: wkFadeUp 0.3s ease;
}
.wk-train-success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: #fff;
}
.wk-train-success-icon i { width: 20px; height: 20px; }
.wk-train-success-title { font-weight: 600; font-size: 14.5px; }
.wk-train-success-sub { color: var(--text-sub); font-size: 12.5px; }
.wk-train-success .wk-btn { margin-left: auto; }

/* ============================================
   SECTION 5 — Deploy
   ============================================ */
.wk-model-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.wk-model-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.wk-model-name { font-size: 18px; font-weight: 600; }
.wk-model-meta { font-size: 12.5px; color: var(--text-muted); }
.wk-model-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.wk-metric { display: flex; flex-direction: column; gap: 4px; }
.wk-metric-label {
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.wk-metric-value { font-size: 16px; font-weight: 600; }
.wk-metric-hash { font-size: 13px; font-weight: 500; color: var(--text-sub); }

.wk-model-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================
   SECTION 6 — Experiments table
   ============================================ */
.wk-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.wk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.wk-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.wk-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.wk-table tbody tr:last-child td { border-bottom: none; }
.wk-table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}
.wk-table tbody tr:hover { background: var(--bg-alt); }
.wk-exp-name { font-weight: 500; }
.wk-exp-name small { display: block; color: var(--text-muted); font-weight: 400; font-size: 11.5px; margin-top: 1px; }
.wk-state {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500;
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-alt); color: var(--text-sub);
  border: 1px solid var(--border);
}
.wk-state::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.wk-state.s-configuring { color: var(--text-sub); }
.wk-state.s-training    { color: var(--blue); background: var(--blue-bg); border-color: transparent; }
.wk-state.s-validating  { color: var(--orange); background: var(--orange-bg); border-color: transparent; }
.wk-state.s-exporting   { color: var(--blue); background: var(--blue-bg); border-color: transparent; }
.wk-state.s-released    { color: var(--green); background: var(--green-bg); border-color: transparent; }
.wk-state.s-archived    { color: var(--text-muted); }

.wk-state.s-training::before,
.wk-state.s-validating::before,
.wk-state.s-exporting::before {
  animation: wkDotBlink 1.2s ease-in-out infinite;
}
@keyframes wkDotBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ============================================
   Footer
   ============================================ */
.wk-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  background: var(--bg);
}
.wk-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.wk-footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-sub); font-size: 12.5px;
}
.wk-footer-brand svg { color: var(--text); }
.wk-footer-links { display: flex; gap: 18px; }
.wk-footer-links a { font-size: 12.5px; color: var(--text-sub); }
.wk-footer-links a:hover { color: var(--text); }

/* ============================================
   Toast (matches Control Plane)
   ============================================ */
.toast-root {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 12px 16px;
  min-width: 280px; max-width: 400px;
  font-size: 13px;
  pointer-events: auto;
  animation: toastIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.toast-success { border-left-color: var(--green); }
.toast.toast-success .toast-icon { color: var(--green); }
.toast.toast-warn { border-left-color: var(--orange); }
.toast.toast-warn .toast-icon { color: var(--orange); }
.toast.toast-error { border-left-color: var(--red); }
.toast.toast-error .toast-icon { color: var(--red); }
.toast.hide { animation: toastOut 0.2s ease forwards; }
.toast-icon { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; }
.toast-content { flex: 1; }
.toast-title { font-weight: 600; margin-bottom: 2px; }
.toast-msg { color: var(--text-sub); font-size: 12px; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(20px); }
}

/* ============================================
   Modals
   ============================================ */
.wk-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(9,9,11,0.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
  padding: 24px;
  animation: wkFadeIn 0.2s ease;
}
.wk-modal-overlay[hidden] { display: none; }
.wk-modal {
  width: 100%;
  max-width: 460px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: wkModalIn 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-theme="dark"] .wk-modal-overlay { background: rgba(0,0,0,0.6); }
.wk-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.wk-modal-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.wk-modal-title i { width: 16px; height: 16px; }
.wk-modal-body { padding: 20px; font-size: 13.5px; color: var(--text-sub); }
.wk-modal-body p { margin-bottom: 14px; color: var(--text); }
.wk-modal-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
}
.wk-modal-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.wk-modal-list i { width: 14px; height: 14px; color: var(--green); }
.wk-modal-kv {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.wk-modal-kv:last-child { border-bottom: none; }
.wk-modal-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 20px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
@keyframes wkFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wkModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ============================================
   Custom tooltip
   ============================================ */
.wk-tooltip {
  position: fixed;
  z-index: 400;
  max-width: 280px;
  padding: 8px 10px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  line-height: 1.45;
  box-shadow: var(--shadow);
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.wk-tooltip[data-show="true"] {
  opacity: 1;
  transform: none;
}

/* ============================================
   Dark mode palette (copied from Control Plane)
   ============================================ */
[data-theme="dark"] {
  --bg: #0B0B0E;
  --bg-alt: #111116;
  --bg-sidebar: #0E0E13;
  --bg-hover: #1A1A21;
  --border: #23232B;
  --border-strong: #2F2F38;
  --text: #F4F4F5;
  --text-sub: #A1A1AA;
  --text-muted: #71717A;
  --accent: #F4F4F5;
  --accent-hover: #E4E4E7;
  --green: #4ADE80;
  --green-bg: rgba(74,222,128,0.12);
  --red: #F87171;
  --red-bg: rgba(248,113,113,0.12);
  --orange: #FB923C;
  --orange-bg: rgba(251,146,60,0.12);
  --blue: #60A5FA;
  --blue-bg: rgba(96,165,250,0.12);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
  --shadow: 0 2px 10px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.6);
  color-scheme: dark;
}
[data-theme="dark"] .demo-banner { background: #000; }
[data-theme="dark"] .wk-tooltip { background: var(--text); color: var(--bg); }

/* ============================================
   Animations
   ============================================ */
@keyframes wkFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .wk-topbar {
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
    gap: 10px;
  }
  .wk-steps {
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
    border-radius: var(--radius);
    padding: 4px 6px;
  }
  .wk-topbar-right .wk-topbar-link span { display: none; }
  .wk-topbar-right .wk-role-dept { display: none; }
  .wk-container { padding: 0 20px; }
  .wk-h1 { font-size: 34px; }
  .wk-h2 { font-size: 26px; }
  .wk-sub { font-size: 15.5px; }
  .wk-task-grid { grid-template-columns: 1fr; }
  .wk-config-grid { grid-template-columns: 1fr; }
  .wk-hp { grid-template-columns: 1fr 1fr; }
  .wk-train-body { grid-template-columns: 1fr; }
  .wk-mini-stats { grid-template-columns: 1fr 1fr; }
  .wk-model-metrics { grid-template-columns: repeat(2, 1fr); }
  .wk-lifecycle { flex-direction: column; gap: 16px; }
  .wk-lc-step { padding-right: 0; }
  .wk-lc-step:not(:last-child)::after { display: none; }
  .toast-root { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: auto; max-width: 100%; }
}

@media (max-width: 560px) {
  .wk-section { padding: 64px 0 72px; }
  .wk-h1 { font-size: 28px; }
  .wk-h2 { font-size: 22px; }
  .wk-drop { padding: 36px 18px; }
  .wk-table thead { display: none; }
  .wk-table, .wk-table tbody, .wk-table tr, .wk-table td { display: block; width: 100%; }
  .wk-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
  }
  .wk-table tbody td {
    padding: 4px 0;
    border-bottom: none;
  }
  .wk-table tbody td::before {
    content: attr(data-label) " · ";
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-right: 6px;
  }
  .wk-table tbody tr:last-child { border-bottom: none; }
}

/* ============================================================
   "Why this configuration?" decision tree
   ============================================================ */
.wk-dtree {
  margin: 20px 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.wk-dtree-summary {
  list-style: none;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text);
  transition: background 0.15s;
}
.wk-dtree-summary::-webkit-details-marker { display: none; }
.wk-dtree-summary:hover { background: var(--bg-alt); }
.wk-dtree-icon { width: 15px; height: 15px; color: var(--text-sub); flex-shrink: 0; }
.wk-dtree-title { font-weight: 600; }
.wk-dtree-note {
  margin-left: auto;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--text-muted); letter-spacing: 0.03em;
}
.wk-dtree-chev {
  width: 14px; height: 14px; color: var(--text-muted);
  transition: transform 0.2s;
}
.wk-dtree[open] .wk-dtree-chev { transform: rotate(180deg); }
.wk-dtree-body {
  padding: 6px 22px 22px;
  border-top: 1px dashed var(--border);
}
.wk-dtree-intro {
  font-size: 13px; color: var(--text-sub);
  margin: 14px 0 16px; line-height: 1.6;
}
.wk-dtree-intro strong { color: var(--text); font-weight: 600; }
.wk-dtree-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.wk-dtree-step {
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
}
.wk-dtree-step + .wk-dtree-step::before {
  content: '';
  position: absolute;
  left: 24px; top: -10px; height: 10px;
  border-left: 1.5px dashed var(--border-strong);
}
.wk-dtree-q {
  font-size: 12.5px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.wk-dtree-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--text); color: var(--bg);
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  flex-shrink: 0;
}
.wk-dtree-a {
  font-size: 12.5px; color: var(--text); margin-left: 30px; margin-bottom: 4px;
}
.wk-dtree-a strong { color: var(--green); font-weight: 600; }
.wk-dtree-reason {
  font-size: 12px; color: var(--text-sub);
  margin-left: 30px; line-height: 1.5;
}
.wk-dtree-reason .mono { font-size: 11.5px; }
.wk-dtree-foot {
  margin-top: 14px; padding: 10px 12px;
  background: var(--green-bg);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  border-radius: var(--radius-sm);
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text-sub); line-height: 1.5;
}
.wk-dtree-foot i, .wk-dtree-foot svg {
  width: 14px; height: 14px; color: var(--green); flex-shrink: 0; margin-top: 1px;
}

/* ============================================================
   Scenario banner (outbreak demo)
   ============================================================ */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.wk-scenario-banner {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  font-size: 13px;
  z-index: 8500;
  animation: wkScenarioIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wk-scenario-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #EA580C; box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.2);
  animation: pulse 2s infinite;
}
.wk-scenario-banner strong { color: var(--text); font-weight: 600; }
.wk-scenario-close {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 18px; line-height: 1;
  padding: 2px 4px; margin-left: 4px;
}
.wk-scenario-close:hover { color: var(--text); }
@keyframes wkScenarioIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --- Stepped panel variant --------------------------------------
   Switches the pill banner into a compact checklist pinned to the
   bottom-right, so the viewer can follow the scripted flow without
   blocking the main canvas. Each row ticks over as the scenario
   advances through cliquePlatform.advanceScenario().
---------------------------------------------------------------- */
.wk-scenario-banner.wk-scenario-panel {
  left: auto; right: 22px; bottom: 22px; transform: none;
  flex-direction: column; align-items: stretch; gap: 0;
  width: min(320px, calc(100vw - 44px));
  padding: 14px 16px;
  border-radius: 14px;
  animation: wkScenarioPanelIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes wkScenarioPanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wk-scenario-panel .wk-scenario-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.wk-scenario-panel .wk-scenario-head strong { flex: 1; }
.wk-scenario-panel .wk-scenario-close { margin-left: 0; }

.wk-scenario-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
  position: relative;
}
.wk-scenario-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 2px;
  font-size: 12.5px; line-height: 1.4;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
}
.wk-scenario-mark {
  flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
}
.wk-scenario-mark i, .wk-scenario-mark svg {
  width: 11px; height: 11px; color: transparent;
  stroke-width: 3;
  transition: color 0.2s;
}
/* Vertical connector between step circles */
.wk-scenario-step:not(:last-child) .wk-scenario-mark::after {
  content: '';
  position: absolute;
  left: 50%; top: 100%;
  width: 1.5px; height: 14px;
  background: var(--border);
  transform: translateX(-50%);
}
.wk-scenario-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wk-scenario-meta strong { font-weight: 600; color: var(--text-muted); font-size: 12.5px; }
.wk-scenario-meta small { font-size: 11px; color: var(--text-muted); opacity: 0.7; }

/* Active row: pulsing orange ring */
.wk-scenario-step.is-active { color: var(--text); }
.wk-scenario-step.is-active .wk-scenario-meta strong { color: var(--text); }
.wk-scenario-step.is-active .wk-scenario-mark {
  border-color: #EA580C;
  background: #FFF7ED;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.15);
  animation: pulse 1.6s infinite;
}

/* Done row: green filled check */
.wk-scenario-step.is-done .wk-scenario-mark {
  background: var(--green, #10B981);
  border-color: var(--green, #10B981);
}
.wk-scenario-step.is-done .wk-scenario-mark i,
.wk-scenario-step.is-done .wk-scenario-mark svg {
  color: #fff;
}
.wk-scenario-step.is-done:not(:last-child) .wk-scenario-mark::after {
  background: var(--green, #10B981);
}
.wk-scenario-step.is-done .wk-scenario-meta strong { color: var(--text); }

@media (max-width: 640px) {
  .wk-scenario-banner.wk-scenario-panel {
    right: 12px; bottom: 12px;
    width: calc(100vw - 24px);
  }
}

/* ============================================================
   First-visit onboarding overlay (Workshop)
   ============================================================ */
.wk-onboard-overlay {
  position: fixed; inset: 0;
  background: rgba(9, 9, 11, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  z-index: 9000;
  animation: wkOnboardFade 0.2s ease;
}
[data-theme="dark"] .wk-onboard-overlay { background: rgba(0,0,0,0.72); }
.wk-onboard-overlay.is-closing { animation: wkOnboardFade 0.2s reverse ease; }
.wk-onboard-card {
  max-width: 520px; width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  animation: wkOnboardUp 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wk-onboard-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 14px;
  background: var(--bg-alt); color: var(--text-muted);
  font-size: 10.5px; font-weight: 500; font-family: var(--mono);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 14px;
}
.wk-onboard-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.2);
  animation: pulse 2s infinite;
}
.wk-onboard-card h2 {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.015em; margin-bottom: 8px;
}
.wk-onboard-card > p {
  font-size: 13.5px; color: var(--text-sub);
  line-height: 1.55; margin-bottom: 18px;
}
.wk-onboard-steps {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.wk-onboard-steps li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--bg-alt); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-sub); line-height: 1.45;
}
.wk-onboard-steps li span {
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--text); color: var(--bg);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.wk-onboard-steps strong { color: var(--text); font-weight: 600; }
.wk-onboard-actions {
  display: flex; justify-content: flex-end; gap: 10px;
}
.wk-onboard-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg); color: var(--text);
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.wk-onboard-btn:hover { background: var(--bg-alt); }
.wk-onboard-btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.wk-onboard-btn.primary:hover { background: var(--text-sub); }
.wk-onboard-btn i, .wk-onboard-btn svg { width: 14px; height: 14px; }
@keyframes wkOnboardFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wkOnboardUp {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

