/* Agentic Workflows: the home page's orange "outline and link" applied to the v1 pinned
   deck of four steps. The card in front takes the orange outline (in place of the cyan
   glow), and the progress marks fill in orange as each step is reached. The water
   animations inside the cards are untouched. Easy to revert: remove this file's link. */
#agentic-steps .cap-deck .workflow-step { transition: border-color 0.5s ease, box-shadow 0.5s ease; }
#agentic-steps .cap-deck .workflow-step.is-focus {
  border-color: rgba(255, 107, 0, 0.7) !important;
  box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.25), 0 18px 40px -18px rgba(255, 107, 0, 0.45) !important;
}
#agentic-steps .cap-progress span::after { background: #ff6b00 !important; }

/* Sandbox: the next empty box pulses gently until it's filled, so it's clear where to start */
@media (prefers-reduced-motion: no-preference) {
  #interactive-workflow-sandbox .flow-node.is-next { animation: wfNext 2.2s ease-out infinite; }
}
@keyframes wfNext { 0% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(0, 243, 255, 0); } }

/* The Websites page has its own .wa-site icon (a small outlined box) in websites.css, which
   this page now loads for the info panels. Keep it off the Site Check-Ins scene here. */
.wa-scene.wa-site { display: none; width: auto; height: auto; border: 0; border-radius: 0; padding: 0; gap: 0; flex-direction: initial; }

/* Step 1 (Capture): the raw input as free-electron bubbles wandering inside the card
   (workflows.js), bigger and clearer than the old rising specks, which they replace. */
#agentic-steps .step-1-water .dirty-particles .particle { display: none; }
.wf-bubble {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  background: rgba(90, 80, 70, 0.7);            /* the same dots as step 2's falling dirt */
  box-shadow: 0 0 0 1px rgba(90, 80, 70, 0.2);
  opacity: 0; transition: opacity 0.6s ease; will-change: transform;
}
.workflow-step.is-focus .wf-bubble, .workflow-step:hover .wf-bubble { opacity: 0.9; }

/* Step 2 (Understand): the dirt falling out through the filter, more of it and clearer */
#agentic-steps .particle-down { width: 8px; height: 8px; background: rgba(90, 80, 70, 0.7); box-shadow: 0 0 0 1px rgba(90, 80, 70, 0.2); }
#agentic-steps .particle-down.pd2, #agentic-steps .particle-down.pd5 { width: 6px; height: 6px; }
#agentic-steps .particle-down.pd4 { left: 35%; animation-delay: 0.9s; }
#agentic-steps .particle-down.pd5 { left: 65%; animation-delay: 0.3s; }
#agentic-steps .particle-down.pd6 { left: 10%; animation-delay: 1.5s; width: 10px; height: 10px; }
#agentic-steps .particle-down.pd7 { left: 88%; animation-delay: 1.8s; }
#agentic-steps .workflow-step.is-focus .particle-down, #agentic-steps .workflow-step:hover .particle-down { animation-name: wfFall; animation-duration: 2.4s; }
@keyframes wfFall {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% { transform: translateY(130px); opacity: 0; }
}

/* ── "A workforce that ticks 24/7": a real night. Light by day, properly dark at night; the
   city is pale by day with its windows dark or catching a blue sky glint, then turns to
   silhouette at dusk and every window lights warm. The headline and text turn light for
   the night. Same 16s clock as the sky: 0% sunrise, 25% noon, 50% sunset, 75% midnight. ── */
.cta-shift .sky-night { background: linear-gradient(180deg, #070b1f 0%, #0e1533 65%, #1a2350 100%) !important; }
.cta-shift .shift-stars { filter: brightness(2.2) saturate(0); }
.cta-shift .shift-moon { background: #f4f6ff !important; box-shadow: inset -12px -6px 0 0 #c9d2ec, 0 0 34px 10px rgba(220, 230, 255, 0.45) !important; }
.cta-shift .shift-city i { animation: wfCity 16s linear infinite; }
@keyframes wfCity {
  0%       { background: #8f9bb8; }
  10%, 42% { background: #d3dbec; }
  52%      { background: #6b7694; }
  60%, 90% { background: #121a33; }
  100%     { background: #8f9bb8; }
}
/* night windows: warm, bright, glowing */
.cta-shift .shift-city i::after {
  background-image: radial-gradient(circle, #ffc65a 1.3px, transparent 1.8px) !important;
  filter: drop-shadow(0 0 2px rgba(255, 190, 80, 0.9));
  animation: wfLightsOn 16s linear infinite !important;
}
@keyframes wfLightsOn { 0% { opacity: 0.5; } 8%, 44% { opacity: 0; } 54%, 92% { opacity: 1; } 100% { opacity: 0.5; } }
/* day windows: a faint blue glint of the sky */
.cta-shift .shift-city i::before {
  content: ''; position: absolute; inset: 6px 4px 0;
  background-image: radial-gradient(circle, rgba(96, 150, 230, 0.75) 1.1px, transparent 1.6px);
  background-size: 7px 8px;
  animation: wfLightsDay 16s linear infinite;
}
.cta-shift .shift-city i:nth-child(3n)::before { background-size: 6px 9px; }
@keyframes wfLightsDay { 0% { opacity: 0.3; } 10%, 42% { opacity: 0.9; } 52%, 100% { opacity: 0; } }
/* the words follow the light: dark by day, light by night */
.cta-shift h2, .cta-shift p { animation: wfInk 16s linear infinite; }
@keyframes wfInk {
  0%, 46%  { color: #0f172a; text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9); }
  56%, 92% { color: #f1f5ff; text-shadow: 0 2px 16px rgba(3, 7, 25, 0.8); }
  100%     { color: #0f172a; text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9); }
}
.cta-shift p { animation-name: wfInkP; }
@keyframes wfInkP {
  0%, 46%  { color: #475569; text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9); }
  56%, 92% { color: rgba(226, 232, 240, 0.92); text-shadow: 0 1px 12px rgba(3, 7, 25, 0.8); }
  100%     { color: #475569; text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-shift .shift-city i, .cta-shift .shift-city i::before, .cta-shift .shift-city i::after, .cta-shift h2, .cta-shift p { animation: none !important; }
}

/* The sky crossfades without a dark flash: now that the night layer is dark, day and dusk
   must never both be half-faded at once. At sunrise the day layer is fully up before the
   dusk on top of it fades; at sunset the dusk is fully up before the day under it goes.
   The words switch only while the sky is clearly light or clearly dark. */
.cta-shift .sky-day  { animation-name: wfSkyDay !important; }
.cta-shift .sky-dusk { animation-name: wfSkyDusk !important; }
@keyframes wfSkyDay  { 0% { opacity: 0; } 4%, 46% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes wfSkyDusk { 0%, 4% { opacity: 1; } 9%, 41% { opacity: 0; } 46%, 50% { opacity: 1; } 59%, 91% { opacity: 0; } 100% { opacity: 1; } }
@keyframes wfInk {
  0%, 52%  { color: #0f172a; text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9); }
  58%, 91% { color: #f1f5ff; text-shadow: 0 2px 16px rgba(3, 7, 25, 0.8); }
  97%, 100% { color: #0f172a; text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9); }
}
@keyframes wfInkP {
  0%, 52%  { color: #475569; text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9); }
  58%, 91% { color: rgba(226, 232, 240, 0.92); text-shadow: 0 1px 12px rgba(3, 7, 25, 0.8); }
  97%, 100% { color: #475569; text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9); }
}

/* ===== Dark mode (html[data-theme="dark"]) =====
   Design: docs/plans/dark-mode-design-system.md. The sandbox wrapper is a stage (styles.css section 9, after the page-style fix in workflow-automation.html: its glass
   rules are scoped to light). Nothing here glows; the success state keeps the marching border and the flash, in the green tint. */

/* ---- "Four steps": the pinned deck (the desktop rule in service-page.css forces its surfaces with !important, so these carry it too) ---- */
:root[data-theme="dark"] body:not(.pillar-marketing) #agentic-steps .cap-deck .workflow-step{ background:var(--surface-solid) !important; border-color:var(--dk-line-1) !important; box-shadow:inset 0 1px 0 var(--dk-light-top) !important; }
/* the card in front: one level up, an orange-tint edge and a flat 1px ring (the light mode's orange halo is a glow) */
:root[data-theme="dark"] body:not(.pillar-marketing) #agentic-steps .cap-deck .workflow-step.is-focus{ background:var(--surface-raised) !important; border-color:rgba(243,157,94,.75) !important; box-shadow:0 0 0 1px rgba(243,157,94,.28),inset 0 1px 0 var(--dk-light-top) !important; }
/* the "dirt" in steps 1 and 2 is a neutral slate dot (a warm grey-brown reads as mud on navy) */
:root[data-theme="dark"] body:not(.pillar-marketing) .wf-bubble,
:root[data-theme="dark"] body:not(.pillar-marketing) #agentic-steps .particle-down{ background:rgba(176,184,197,.70); box-shadow:0 0 0 1px rgba(176,184,197,.25); }
/* ---- "Four steps": the water, channels and taps are calm blue tints, not cyan; the glows go (every animation stays) ---- */
:root[data-theme="dark"] .step-1-water .wave-back{ background:rgba(129,170,247,.05); }
:root[data-theme="dark"] .step-1-water .wave-front{ background:rgba(129,170,247,.08); }
:root[data-theme="dark"] .step-2-water .wave-back{ background:rgba(129,170,247,.07); }
:root[data-theme="dark"] .step-2-water .wave-front{ background:rgba(129,170,247,.12); }
:root[data-theme="dark"] .filter-line{ background:linear-gradient(90deg,rgba(129,170,247,0) 0%,rgba(129,170,247,.7) 50%,rgba(129,170,247,0) 100%); box-shadow:none; }
:root[data-theme="dark"] .bubble{ border-color:rgba(129,170,247,.45); background:rgba(150,175,230,.18); }
:root[data-theme="dark"] .channel{ background:rgba(129,170,247,.03); border-left-color:rgba(129,170,247,.14); border-right-color:rgba(129,170,247,.14); }
:root[data-theme="dark"] .stream-flow{ background:linear-gradient(180deg,rgba(129,170,247,0) 0%,rgba(129,170,247,.16) 50%,rgba(129,170,247,0) 100%); }
:root[data-theme="dark"] .faucet-pipe{ border-color:rgba(129,170,247,.8); }
:root[data-theme="dark"] .faucet-pipe::after,
:root[data-theme="dark"] .faucet-handle{ background:rgba(129,170,247,.8); }
:root[data-theme="dark"] .faucet-drip{ background:rgba(129,170,247,.75); }
/* hover on a step outside the pinned deck: service-page.css paints a cyan 25px glow with !important; flat orange-tint edge instead (the deck's own rule above has more specificity) */
:root[data-theme="dark"] body:not(.pillar-marketing) .workflow-step:hover:not(.is-focus){ border-color:rgba(243,157,94,.6) !important; box-shadow:inset 0 1px 0 var(--dk-light-top) !important; }

/* ---- "What we automate" (phones): the illustration band at the top of each card is a flat panel, no radial glow ---- */
:root[data-theme="dark"] body:not(.pillar-marketing) #what-we-automate .wa-inbox .wa-lane[style*="--c:0,98,255"]{ color:var(--blue-text); border-color:rgba(129,170,247,.35); }
:root[data-theme="dark"] body:not(.pillar-marketing) #what-we-automate .wa-scene{ background:var(--dk-s3); border-bottom-color:var(--dk-line-3); }
/* (do not set display, height, margin or overflow here: the band is display:none on desktop in service-page.css) */

/* ---- The sandbox ("Agentic Workflow Sandbox", also synced into sandbox.html) ---- */
:root[data-theme="dark"] .sandbox-builder-wrapper{ --wf-violet:var(--violet-text); }      /* the Brains palette title reads this (inline style, light fallback #8b5cf6) */
:root[data-theme="dark"] #interactive-workflow-sandbox .service-hero-badge{ color:var(--green-text) !important; border-color:rgba(107,207,157,.28) !important; }   /* inline brand green: !important */
/* palette: the group is a plate (styles.css); each pill is a faint lift on it, never the same tone (same-on-same), and rises to plate-hi with its tint edge on hover */
:root[data-theme="dark"] .sandbox-palette .drag-pill{ background:rgba(190,210,255,.07); border-color:var(--dk-edge); color:var(--text-primary); box-shadow:none; }
:root[data-theme="dark"] .sandbox-palette .drag-pill[data-type="trigger"]{ border-left-color:var(--blue-text); }
:root[data-theme="dark"] .sandbox-palette .drag-pill[data-type="brain"]{ border-left-color:var(--violet-text); }
:root[data-theme="dark"] .sandbox-palette .drag-pill[data-type="db"]{ border-left-color:var(--orange-text); }
:root[data-theme="dark"] .sandbox-palette .drag-pill[data-type="gateway"]{ border-left-color:var(--green-text); }
/* states: (0,6,0), one class heavier than rest; the 4px accent bar and the translateX(4px) slide stay, the 0 0 10px glows go */
:root[data-theme="dark"] .sandbox-palette .drag-pill[data-type="trigger"]:hover{ background:var(--stage-plate-hi); border-color:var(--blue-text); box-shadow:none; color:var(--text-primary); }
:root[data-theme="dark"] .sandbox-palette .drag-pill[data-type="brain"]:hover{ background:var(--stage-plate-hi); border-color:var(--violet-text); box-shadow:none; color:var(--text-primary); }
:root[data-theme="dark"] .sandbox-palette .drag-pill[data-type="db"]:hover{ background:var(--stage-plate-hi); border-color:var(--orange-text); box-shadow:none; color:var(--text-primary); }
:root[data-theme="dark"] .sandbox-palette .drag-pill[data-type="gateway"]:hover{ background:var(--stage-plate-hi); border-color:var(--green-text); box-shadow:none; color:var(--text-primary); }
/* drop slots: an empty slot is a recess (styles.css); the pulse on the next one is a ring in the blue tint instead of neon cyan */
:root[data-theme="dark"] .flow-node{ color:var(--text-secondary); border-color:var(--dk-edge); }
:root[data-theme="dark"] .sandbox-flowchart .flow-node.drag-hover{ border-color:var(--text-primary) !important; background:var(--stage-plate) !important; }   /* light carries !important white */
:root[data-theme="dark"] .sandbox-flowchart .flow-path-arrow{ color:var(--text-muted); }
@media (prefers-reduced-motion: no-preference){
  :root[data-theme="dark"] #interactive-workflow-sandbox .flow-node.is-next{ animation-name:wfNextD; }
}
@keyframes wfNextD{ 0%{ box-shadow:0 0 0 0 rgba(129,170,247,.45); } 70%,100%{ box-shadow:0 0 0 10px rgba(129,170,247,0); } }
/* a filled slot: plate-hi with its tint edge (the white ink and the gear stay, they are !important in the page and 9:1 on plate-hi) */
:root[data-theme="dark"] .flow-node[data-type="trigger"].has-item{ border-color:var(--blue-text); background:var(--stage-plate-hi); box-shadow:none; }
:root[data-theme="dark"] .flow-node[data-type="brain"].has-item{ border-color:var(--violet-text); background:var(--stage-plate-hi); box-shadow:none; }
:root[data-theme="dark"] .flow-node[data-type="db"].has-item{ border-color:var(--orange-text); background:var(--stage-plate-hi); box-shadow:none; }
:root[data-theme="dark"] .flow-node[data-type="gateway"].has-item{ border-color:var(--green-text); background:var(--stage-plate-hi); box-shadow:none; }
/* the result box is a display (styles.css). Its title, description and badge carry inline white (and the script rewrites the badge inline), so these four carry !important */
:root[data-theme="dark"] #workflow-result-title{ color:var(--text-primary) !important; }
:root[data-theme="dark"] #workflow-result-desc{ color:var(--text-secondary) !important; }
:root[data-theme="dark"] .sandbox-result-box .sandbox-badge{ background:rgba(150,175,230,.14) !important; color:var(--text-primary) !important; }
:root[data-theme="dark"] #workflow-result-title :is(i,svg){ color:var(--green-text) !important; }                                   /* the script writes #22c55e inline */
:root[data-theme="dark"] .sandbox-result-box:not(.success-active) #workflow-result-title :is(i,svg){ color:var(--text-muted) !important; }   /* ...and #64748b when empty */
/* success: the same marching dashed border (borderMovement) and a 0.5s flash, in the green tint on the display; no neon, no glow, no drop-shadow */
:root[data-theme="dark"] #result-box-container.success-active{
  border:2px solid transparent;
  background-image:
    linear-gradient(var(--stage-inset),var(--stage-inset)),
    linear-gradient(90deg,var(--green-text) 50%,transparent 50%),
    linear-gradient(90deg,var(--green-text) 50%,transparent 50%),
    linear-gradient(0deg,var(--green-text) 50%,transparent 50%),
    linear-gradient(0deg,var(--green-text) 50%,transparent 50%);
  background-origin:padding-box,border-box,border-box,border-box,border-box;
  background-clip:padding-box,border-box,border-box,border-box,border-box;
  background-repeat:no-repeat,repeat-x,repeat-x,repeat-y,repeat-y;
  background-size:100% 100%,12px 2px,12px 2px,2px 12px,2px 12px;
  background-position:0 0,0 0,100% 100%,0 100%,100% 0;
  box-shadow:none; filter:none;
  animation:successFlashD .5s ease-out,borderMovement .6s linear infinite;
}
@keyframes successFlashD{ 0%{ box-shadow:0 0 0 0 rgba(107,207,157,0); } 50%{ box-shadow:0 0 0 6px rgba(107,207,157,.35); } 100%{ box-shadow:0 0 0 0 rgba(107,207,157,0); } }
:root[data-theme="dark"] .sandbox-result-box.success-active .sandbox-badge.rainbow-active{ background:rgba(107,207,157,.12) !important; color:var(--green-text) !important; border:1px dashed rgba(107,207,157,.45) !important; animation:none !important; }

/* ---- "A workforce that ticks 24/7": the card's sky, text, moon and sun are in service-page.css; the city is animated here ---- */
/* the light city animates from pale to a near-black silhouette: dark twin on the stage tones (night = the stage-inset tone, the lowest allowed) */
:root[data-theme="dark"] body:not(.pillar-marketing) .cta-shift .shift-city i{ animation-name:wfCityDark; }
@keyframes wfCityDark{ 0%{ background:#2d405d; } 10%,42%{ background:#3b5171; } 52%{ background:#22304a; } 60%,90%{ background:#0d1627; } 100%{ background:#2d405d; } }
/* lit windows: warm dots stay, the drop-shadow glow goes */
:root[data-theme="dark"] body:not(.pillar-marketing) .cta-shift .shift-city i::after{ filter:none; }
/* the drop-zone strip: the page's inline translucent black and white hairline move into a light-only rule (see the HTML edit), so the stage shows through with a visible 1px line */
:root[data-theme="dark"] .sandbox-flowchart{ background:transparent; border:1px solid var(--dk-line-2); }

/* ===================== Agentic Workflows page on phones (Mars, 25 Nov): what worked on the home page =====================
   body.wf-page only (the Sandbox's copy of the workflow demo is left alone). Desktop unchanged.
   1. The four steps as compact cards: icon on the left; number, title, text and "Works with" on the right.
   2. One background: no bands, the grid runs behind every section.
   3. Every section holds at least one screen, content centred, the same 48px spacing.
   4. "Complete your agentic stack": tighter cards. */
@media (max-width: 767px) {
  body.wf-page #agentic-steps .workflow-steps { gap: 10px !important; }
  body.wf-page #agentic-steps .workflow-step {
    display: grid !important; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 3px; align-items: start;
    padding: 16px 16px 14px !important; min-height: 0 !important; text-align: left;
  }
  body.wf-page #agentic-steps .workflow-step > i, body.wf-page #agentic-steps .workflow-step > svg { grid-column: 1; grid-row: 1 / span 4; width: 26px; height: 26px; margin: 2px 0 0 !important; }
  body.wf-page #agentic-steps .workflow-step .step-num { grid-column: 2; margin: 0 !important; font-size: 0.72rem; }
  body.wf-page #agentic-steps .workflow-step h4 { grid-column: 2; margin: 0 !important; font-size: 1.05rem; }
  body.wf-page #agentic-steps .workflow-step p { grid-column: 2; margin: 2px 0 0 !important; font-size: 0.88rem; line-height: 1.5; }
  body.wf-page #agentic-steps .workflow-step .step-links { grid-column: 2; margin-top: 6px !important; }
  body.wf-page #agentic-steps .workflow-arrow { display: none !important; }

  body.wf-page #interactive-workflow-sandbox, body.wf-page #what-we-automate {
    background: transparent !important; box-shadow: none !important; border-top: 0 !important; border-bottom: 0 !important;
  }

  body.wf-page main > section {
    min-height: calc(100vh - 96px); min-height: calc(100svh - 96px);
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 48px !important; padding-bottom: 48px !important;
  }
  body.wf-page main > section .section-header { margin-bottom: 24px; }
  body.wf-page main > section#interactive-workflow-sandbox { padding-top: 48px !important; padding-bottom: 48px !important; }

  body.wf-page .related-grid { gap: 10px !important; }
  body.wf-page .related-card { padding: 16px 18px !important; }
  body.wf-page .related-card p { margin-bottom: 6px !important; font-size: 0.88rem; }
}

/* ===================== Phones: the four steps stay in place and swap as you scroll (Mars, 25 Nov) =====================
   workflows.js adds .wf-pinned. The section is tall; its .container sticks under the 60px header for that
   length, so the heading and one card hold still while the page scrolls past. The card in front is .is-cur;
   cards already passed (.is-past) leave upwards, the ones to come wait below. All four share one grid cell,
   so they're always the same size. The water animation plays in the card in front (it is also .is-focus). */
.wf-pin-nav { display: none; }
@media (max-width: 767px) {
  body.wf-page #agentic-steps.wf-pinned {
    display: block !important; min-height: 0 !important; padding: 0 !important;
    height: calc(100vh - 96px + 180vh); height: calc(100svh - 96px + 180svh);
  }
  body.wf-page #agentic-steps.wf-pinned > .container {
    position: sticky; top: 60px;
    height: calc(100vh - 96px); height: calc(100svh - 96px);
    display: flex; flex-direction: column; justify-content: center;
  }
  body.wf-page #agentic-steps.wf-pinned .section-header { margin-bottom: 20px; }
  body.wf-page #agentic-steps.wf-pinned .workflow-steps { display: grid !important; gap: 0 !important; }
  body.wf-page #agentic-steps.wf-pinned .workflow-step {
    grid-area: 1 / 1; display: flex !important; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px;
    min-height: clamp(220px, 34svh, 300px) !important; padding: 20px !important;
    opacity: 0; visibility: hidden; transform: translateY(28px) !important;
    transition: opacity .45s ease, transform .6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear .6s,
                border-color .4s ease, box-shadow .4s ease, background .4s ease !important;
  }
  body.wf-page #agentic-steps.wf-pinned .workflow-step.is-past { transform: translateY(-28px) !important; }
  body.wf-page #agentic-steps.wf-pinned .workflow-step.is-cur {
    opacity: 1; visibility: visible; transform: none !important;
    transition: opacity .45s ease .1s, transform .6s cubic-bezier(0.16, 1, 0.3, 1) .1s, visibility 0s,
                border-color .4s ease, box-shadow .4s ease, background .4s ease !important;
  }
  body.wf-page #agentic-steps.wf-pinned .workflow-step > i,
  body.wf-page #agentic-steps.wf-pinned .workflow-step > svg { width: 28px; height: 28px; margin: 0 0 4px !important; }
  body.wf-page #agentic-steps.wf-pinned .workflow-step h4 { font-size: 1.2rem; }
  body.wf-page #agentic-steps.wf-pinned .workflow-step p { font-size: 0.92rem; }

  body.wf-page #agentic-steps.wf-pinned .wf-pin-nav { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .wf-pin-nav button { position: relative; width: 40px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
  .wf-pin-nav button::before {
    content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px;
    background: rgba(148, 163, 184, 0.3); transition: background .3s ease;
  }
  .wf-pin-nav button.is-on::before { background: var(--accent-orange); }
  :root[data-theme="dark"] .wf-pin-nav button.is-on::before { background: var(--orange-text, #f39d5e); }
  .wf-pin-nav button:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 2px; border-radius: 4px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body.wf-page #agentic-steps.wf-pinned .workflow-step,
  body.wf-page #agentic-steps.wf-pinned .workflow-step.is-cur { transition: none !important; transform: none !important; }
}
