/* ---------- workshop demo: chat-led replay above the AI OS diagram ---------- */
.wd-sec { width: min(1320px, calc(100vw - 32px)); margin: 0 0 56px calc(50% - min(660px, 50vw - 16px)); }
.wd-head { max-width: 760px; margin: 0 auto 20px; text-align: center; }
.wd-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .18em; color: var(--accent-ink); }
.wd-head h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 650; letter-spacing: -0.015em; text-wrap: balance; }

.wd { --wd-h: 580px; }
.wd-win { background: var(--win-bg); color: var(--win-ink); border: 1px solid var(--win-line); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.wd-chrome { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--win-line); background: var(--win-surface); font-size: 12px; color: var(--win-dim); }
.wd-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #3a4047; }
.wd-chrome b { margin-left: 8px; font-weight: 600; color: var(--win-ink); }
.wd-body { display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); height: var(--wd-h); }

/* chat */
.wd-chat { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--win-line); }
.wd-msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 16px 14px 8px; }
.wd-m { flex-shrink: 0; max-width: 92%; padding: 10px 13px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; animation: wd-in .32s var(--ease-out, ease-out) both; }
.wd-m.u { align-self: flex-end; background: #1f4f59; color: #eaf8fb; border-bottom-right-radius: 4px; }
.wd-m.a { align-self: flex-start; background: var(--win-surface); border: 1px solid var(--win-line); border-bottom-left-radius: 4px; }
.wd-m.sys { align-self: center; background: none; padding: 2px 0; font-size: 12px; color: var(--win-dim); }
.wd-m code { font-family: var(--mono); font-size: 12px; color: var(--c-key); }
.wd-m .src { display: block; margin-top: 6px; font-size: 11.5px; color: var(--win-dim); }
.wd-acts { display: flex; gap: 8px; margin-top: 8px; }
.wd-acts span { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--win-line); color: var(--win-dim); }
.wd-acts .ok { background: var(--accent); border-color: var(--accent); color: #062026; }
.wd-acts .ok.press { transform: scale(.94); box-shadow: 0 0 0 4px rgba(60,195,219,.3); }
.wd-acts .ok.done { background: #2e7d4f; border-color: #2e7d4f; color: #fff; }
.wd-dots::after { content: "…"; display: inline-block; animation: wd-blink 1s steps(2) infinite; }
.wd-input { display: flex; align-items: center; gap: 8px; margin: 8px 12px 12px; padding: 9px 12px; border: 1px solid var(--win-line); border-radius: 10px; background: var(--win-surface); font-size: 13.5px; min-height: 40px; }
.wd-input .t { flex: 1; min-width: 0; color: var(--win-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-input .t:empty::before { content: "Ask anything…"; color: var(--win-dim); }
.wd-input .send { width: 24px; height: 24px; border-radius: 50%; background: #2a3138; display: grid; place-items: center; color: var(--win-dim); font-size: 12px; transition: background .2s; }
.wd-input.ready .send { background: var(--accent); color: #062026; }

/* workspace */
.wd-work { position: relative; display: flex; flex-direction: column; min-width: 0; }
.wd-tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--win-line); overflow-x: auto; scrollbar-width: none; }
.wd-tab { display: flex; align-items: center; gap: 6px; padding: 6px 12px 8px; font-size: 12.5px; color: var(--win-dim); border-bottom: 2px solid transparent; white-space: nowrap; transition: color .25s, border-color .25s; }
.wd-tab i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); opacity: .5; transition: opacity .25s, box-shadow .25s; }
.wd-tab.on { color: var(--win-ink); border-color: var(--c); }
.wd-tab.on i { opacity: 1; }
.wd-tab.ping i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent); animation: wd-ping 1s ease-out 2; }
.wd-panes { position: relative; flex: 1; min-height: 0; }
.wd-pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; overflow: hidden; }
.wd-pane.on { opacity: 1; visibility: visible; transition: opacity .4s; }
.wd-idle { display: grid; place-items: center; height: 100%; color: var(--win-dim); font-size: 13px; text-align: center; padding: 24px; }

/* pane: brain graph (the real 3D knowledge graph, embedded) */
.wd-brain { background: #071311; }
.wd-gl { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.wd-beam { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; overflow: visible; opacity: 0; }
.wd-beam.on, .wd-beam.land { opacity: 1; }
.wd-beam path { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--c)); }
.wd-beam circle { fill: #fff; stroke: var(--c); stroke-width: 3; filter: drop-shadow(0 0 10px var(--c)); }
.wd-beam.land { transition: opacity .38s ease-out; opacity: 0; }
.wd-body { position: relative; }
.wd-found { position: absolute; z-index: 2; left: 12px; right: 12px; top: 10px; align-content: flex-start !important; pointer-events: none; display: flex; flex-wrap: wrap; gap: 6px; min-height: 48px; align-content: flex-end; }
.wd-found span { padding: 2px 7px; border-radius: 6px; font: 11px var(--mono); background: var(--win-surface); border: 1px solid var(--win-line); color: var(--c-link); animation: wd-in .3s both; }
.wd-found span.tool { color: var(--c-head); border-color: #5c4b22; }

/* pane: miro board (light, like the real app, in both themes) */
.wd-miro { background-color: #f6f6f3; background-image: radial-gradient(#d6d6d0 1px, transparent 1px); background-size: 16px 16px; color: #222; }
.wd-board { position: absolute; inset: 12px; }
.wd-frame { position: absolute; left: 0; right: 0; top: 0; padding: 22px 10px 10px; border: 1px solid #cfcfca; border-radius: 6px; background: rgba(255,255,255,.7); }
.wd-frame > b { position: absolute; top: 5px; left: 10px; font-size: 11px; font-weight: 600; color: #555; }
.wd-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wd-col h4 { margin: 0 0 6px; font-size: 10px; letter-spacing: .08em; color: #777; text-transform: uppercase; font-weight: 650; }
.wd-st { position: relative; margin-bottom: 6px; padding: 6px 7px; font-size: 11px; line-height: 1.3; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.12); animation: wd-stick .35s var(--ease-out, ease-out) both; }
.wd-st.y { background: #fff1a6; }
.wd-st.r { background: #ffcfc7; }
.wd-st.g { background: #c9f0d1; }
.wd-st small { display: block; margin-top: 3px; font-size: 9.5px; color: #6b6b6b; }
.wd-votes { position: absolute; right: 4px; top: -5px; display: flex; gap: 1px; }
.wd-votes i { width: 9px; height: 9px; border-radius: 50%; background: #4262ff; border: 1.5px solid #fff; animation: wd-stick .25s both; }
.wd-wire { position: absolute; left: 0; bottom: 0; width: 46%; height: 34%; padding: 22px 10px 10px; border: 1px solid #cfcfca; border-radius: 6px; background: rgba(255,255,255,.7); }
.wd-wire > b, .wd-park > b { position: absolute; top: 5px; left: 10px; font-size: 11px; font-weight: 600; color: #555; }
.wd-wire .box { height: 12px; margin-bottom: 6px; border: 1.5px solid #999; border-radius: 3px; }
.wd-wire .box.w60 { width: 60%; } .wd-wire .box.w80 { width: 80%; }
.wd-park { position: absolute; right: 0; bottom: 0; width: 51%; height: 34%; padding: 22px 10px 10px; border: 1px solid #cfcfca; border-radius: 6px; background: rgba(255,255,255,.7); display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.wd-park .wd-st { width: calc(50% - 3px); margin: 0; }
.wd-cur { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; transition: transform 1s var(--ease-out, ease-out); }
.wd-cur svg { display: block; }
.wd-cur span { position: absolute; left: 14px; top: 14px; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; color: #fff; background: var(--c); white-space: nowrap; }
.wd-badge { position: absolute; left: 50%; bottom: 36%; transform: translate(-50%, 50%); z-index: 2; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #222; color: #fff; animation: wd-in .3s both; }

/* pane: markdown note */
.wd-note { padding: 14px 16px; font: 12.5px/1.6 var(--mono); color: var(--win-ink); }
.wd-note .path { margin-bottom: 8px; font-size: 11px; color: var(--win-dim); }
.wd-note .l { white-space: pre-wrap; min-height: 1.6em; animation: wd-in .2s both; }
.wd-note .fm { color: var(--c-cmt); }
.wd-note .h { color: var(--c-head); font-weight: 600; }
.wd-note .lk { color: var(--c-link); }
.wd-note .key { color: var(--c-str); font-weight: 600; }
.wd-note .flash { background: rgba(124,200,154,.18); border-radius: 3px; transition: background 1.2s; }

/* pane: jira + smartsheet */
.wd-out { display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 12px; height: 100%; }
.wd-jira { background: #f4f5f7; color: #172b4d; border-radius: 8px; padding: 10px; }
.wd-jira h5, .wd-ss h5 { margin: 0 0 8px; font-size: 11px; font-weight: 650; letter-spacing: .04em; color: #5e6c84; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.wd-jira h5 i, .wd-ss h5 i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.wd-jira .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wd-tk { background: #fff; border-radius: 4px; padding: 8px; font-size: 11.5px; line-height: 1.35; box-shadow: 0 1px 2px rgba(9,30,66,.25); animation: wd-drop .45s var(--ease-out, ease-out) both; }
.wd-tk b { display: block; margin-top: 6px; font-size: 10.5px; color: #0052cc; }
.wd-tk em { float: right; font-style: normal; font-size: 9.5px; font-weight: 700; color: #42526e; background: #dfe1e6; padding: 0 5px; border-radius: 3px; margin-top: 6px; }
.wd-ss { background: #fff; color: #1a1a1a; border-radius: 8px; padding: 10px; overflow: hidden; }
.wd-ss table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.wd-ss th, .wd-ss td { border: 1px solid #e1e1e1; padding: 4px 6px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
.wd-ss th { background: #f3f5f8; font-weight: 600; color: #555; }
.wd-ss tr.new td { animation: wd-row 1.6s ease-out both; }
.wd-ghost { opacity: .35; }

/* stepper */
.wd-ctl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 14px; }
.wd-play { font: inherit; font-size: 13px; font-weight: 600; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--card); color: var(--ink); cursor: pointer; }
.wd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.wd-steps button { width: 100%; height: 100%; text-align: left; font: inherit; padding: 8px 10px 10px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); color: var(--muted); cursor: pointer; position: relative; overflow: hidden; }
.wd-steps button b { display: block; font-size: 13px; color: var(--ink); }
.wd-steps button span { display: block; font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.wd-steps button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--accent); }
.wd-steps button[aria-current="step"] { border-color: var(--accent); background: var(--accent-wash); }
@media (hover: hover) { .wd-steps button:hover { border-color: var(--accent); } }
.wd-note-foot { margin: 10px 0 0; font-size: 12.5px; color: var(--faint); }

@keyframes wd-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes wd-stick { from { opacity: 0; transform: scale(.7) rotate(-3deg); } }
@keyframes wd-drop { from { opacity: 0; transform: translateY(-14px); } }
@keyframes wd-row { from { background: #dff3e6; } to { background: transparent; } }
@keyframes wd-blink { 50% { opacity: 0; } }
@keyframes wd-ping { to { box-shadow: 0 0 0 10px transparent; } }
@keyframes wd-glow { to { r: 9; } }

@media (max-width: 860px) {
  .wd-steps { grid-template-columns: 1fr; }
  .wd-steps button span { display: none; }
  .wd-steps button[aria-current="step"] span { display: block; }
}
@media (max-width: 720px) {
  .wd-body { grid-template-columns: 1fr; grid-template-rows: 230px 360px; height: auto; }
  .wd-thumbs { display: none; }
  .wd-deck { padding: 10px; }
  .wd-chat { border-right: 0; border-bottom: 1px solid var(--win-line); }
  .wd-ctl { grid-template-columns: 1fr; }
  .wd-jira .cards { grid-template-columns: 1fr 1fr; }
  .wd-jira .wd-tk:nth-child(3) { display: none; }
  .wd-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-col:nth-child(n+3) { display: none; }
  .wd-note { padding: 10px 12px; font-size: 11px; line-height: 1.45; }
  .wd-tab { padding: 6px 8px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .wd *, .wd *::before, .wd *::after { animation: none !important; transition: none !important; }
}
.wd-under { margin: 0 0 14px; text-align: center; }
.wd-aka { font-weight: 400; font-size: .8em; color: var(--muted); }

/* pane: slides */
.wd-deck { display: flex; gap: 12px; padding: 14px; background: radial-gradient(120% 90% at 70% 10%, #23303a 0%, var(--win-bg) 70%); }
.wd-thumbs { display: flex; flex-direction: column; gap: 8px; width: 46px; flex-shrink: 0; align-self: center; }
.wd-thumbs i { aspect-ratio: 16 / 9; border-radius: 3px; background: #e9edf0; opacity: .45; }
.wd-thumbs i.on { opacity: 1; outline: 2px solid #ff7a45; outline-offset: 2px; background: linear-gradient(#0b5560 0 22%, #fff 22%); }
.wd-stage { flex: 1; min-width: 0; display: grid; place-items: center; container-type: size; }
.wd-slide { position: relative; width: min(100cqw, 100cqh * 16 / 9); aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; border-radius: 6px; padding: 4.2cqi 4.6cqi 3cqi; background: #fbfbf9; color: #18232b; box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); display: flex; flex-direction: column; font-family: var(--font); }
.wd-slide .b { opacity: 0; transform: translateY(1.6cqi); transition: opacity .5s var(--ease-out, ease-out), transform .6s var(--ease-out, ease-out); }
.wd-slide .b.in { opacity: 1; transform: none; }
.sl-band { position: absolute; inset: 0 0 auto 0; height: .9cqi; background: linear-gradient(90deg, #00a1be, #3cc3db 45%, #ff7a45); transform: scaleX(0) !important; transform-origin: left; }
.sl-band.in { transform: scaleX(1) !important; transition: transform .9s var(--ease-out, ease-out) !important; }
.sl-top { display: flex; justify-content: space-between; align-items: center; font-size: 1.45cqi; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5b6872; }
.sl-rag { padding: .3cqi 1.1cqi; border-radius: 99px; background: #e3f4ea; color: #1f7a45; letter-spacing: .04em; }
.sl-h { margin: 1.6cqi 0 .8cqi; font-size: 4.6cqi; line-height: 1.05; font-weight: 750; letter-spacing: -0.025em; color: #0d1a22; }
.sl-sub { margin: 0 0 2cqi; max-width: 70%; font-size: 1.75cqi; line-height: 1.45; color: #4a5862; }
.sl-grid { display: grid; grid-template-columns: 1.25fr 1.1fr .8fr; gap: 1.6cqi; }
.sl-card { padding: 1.6cqi 1.8cqi; border-radius: 1cqi; background: #fff; box-shadow: 0 .2cqi .8cqi rgba(16,30,40,.08), 0 0 0 1px #e8ecef; font-size: 1.5cqi; }
.sl-card > b { display: block; margin-bottom: 1.2cqi; font-size: 1.2cqi; letter-spacing: .1em; text-transform: uppercase; color: #00869f; }
.sl-bar { display: grid; grid-template-columns: 1fr auto; gap: .4cqi 1cqi; margin-bottom: 1.1cqi; }
.sl-bar span { grid-row: 1; color: #2a3740; }
.sl-bar em { grid-row: 1; grid-column: 2; font-style: normal; font-weight: 750; color: #0d1a22; }
.sl-bar i { grid-row: 2; grid-column: 1 / -1; height: .9cqi; border-radius: 1cqi; background: #edf1f3; position: relative; overflow: hidden; }
.sl-bar i::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #00a1be, #3cc3db); transition: width 1s .2s var(--ease-out, ease-out); }
.sl-bar:first-of-type i::after { background: linear-gradient(90deg, #ff7a45, #ffa36e); }
.sl-card.in .sl-bar i::after { width: var(--w); }
.sl-tk { display: flex; align-items: center; gap: 1cqi; margin: 0 0 1cqi; padding-bottom: 1cqi; border-bottom: 1px solid #eef1f3; color: #2a3740; }
.sl-tk:last-child { border: 0; }
.sl-tk code { font: 600 1.3cqi var(--mono); color: #0052cc; background: #e9f0ff; padding: .2cqi .6cqi; border-radius: .4cqi; }
.sl-tk em { margin-left: auto; font-style: normal; font-size: 1.15cqi; font-weight: 700; color: #5e6c84; }
.sl-kpi { background: linear-gradient(160deg, #0b5560, #0d2f38); color: #d6f2f6; box-shadow: none; }
.sl-kpi > b { color: #7fe0ef; }
.sl-kpi p { margin: 0 0 .6cqi; display: flex; align-items: baseline; gap: .8cqi; }
.sl-kpi big { font-size: 3.4cqi; font-weight: 750; line-height: 1; color: #fff; min-width: 3.6cqi; }
.sl-road { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: auto 0 0; padding: 1.6cqi 0 0; position: relative; font-size: 1.45cqi; font-weight: 650; color: #2a3740; }
.sl-road::before { content: ""; position: absolute; left: .6cqi; right: 12%; top: 0; height: .35cqi; background: linear-gradient(90deg, #2e9d63 0 50%, #ff7a45 50% 62%, #d7dde1 62%); border-radius: 1cqi; }
.sl-road li { position: relative; padding-top: .8cqi; }
.sl-road li::before { content: ""; position: absolute; left: 0; top: -2.15cqi; width: 1.3cqi; height: 1.3cqi; border-radius: 50%; background: #d7dde1; border: .3cqi solid #fbfbf9; }
.sl-road li.d::before { background: #2e9d63; }
.sl-road li.c::before { background: #ff7a45; box-shadow: 0 0 0 .6cqi rgba(255,122,69,.22); }
.sl-road small { display: block; font-weight: 400; color: #6b7880; font-size: 1.25cqi; }
.sl-src { margin: 1.2cqi 0 0; font-size: 1.1cqi; color: #8a969e; font-family: var(--mono); }
