/* AI Engineering Workshop (/lab/ai-workshop/). Uses the site's tokens from styles.css. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ws { --ok: #6fbf8f; --warn: #d8a24a; --bad: #d9706a; margin-top: 14px; padding: 22px 22px 16px; }
.ws button { font-family: inherit; }
.ws h2 { font: 600 17px/1.3 var(--head); color: var(--hd); margin: 0 0 10px; }
.ws-box { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: rgba(0, 0, 0, .18); }
html:not(.js) .ws-req, html:not(.js) .ws-grid, html:not(.js) .ws-now, html:not(.js) .ws-stats { display: none; }

/* request bar */
.ws-req { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; }
.ws-hint { flex: 1 1 100%; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--mut); }
.ws-lab { font: 600 12.5px/1 var(--body); color: var(--mut); }
.ws-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-pre { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; font: 600 13.5px/1.2 var(--body); color: var(--mut); border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, .03); transition: color .15s, border-color .15s, background .15s; }
.ws-pre:hover:not(:disabled) { color: var(--hd); border-color: rgba(217, 163, 91, .4); }
.ws-pre[aria-pressed="true"] { color: var(--hd); border-color: var(--accent); background: rgba(217, 163, 91, .12); }
.ws-pre:disabled { opacity: .55; cursor: default; }
.ws-pre small { font: 500 12.5px/1.2 var(--body); color: var(--mut); }
.wi { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ws-pre .wi { width: 16px; height: 16px; }
.ws-pre:focus-visible, .ws-btn:focus-visible, .ws-log button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ws-prompt { flex: 1 1 calc(100% - 240px); min-width: 0; padding: 9px 12px; font: 400 14.5px/1.4 var(--body); color: #e6e1d8; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, .03); overflow-wrap: anywhere; }
.ws-prompt.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--accent); animation: ws-caret 1s steps(1) infinite; }
@keyframes ws-caret { 50% { opacity: 0; } }
.ws-acts { display: flex; gap: 8px; flex: none; }
.ws-req .ws-lab + .ws-presets { flex: 1 1 auto; }
.ws-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 4px; cursor: pointer; font: 700 14.5px/1 var(--body); color: #e6e1d8; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); transition: filter .15s, border-color .15s; }
.ws-btn[hidden] { display: none; }
.ws-btn:hover:not(:disabled) { border-color: rgba(217, 163, 91, .4); color: var(--hd); }
.ws-btn:disabled { opacity: .7; cursor: progress; }
.ws-btn.sm { padding: 7px 11px; font-size: 13px; }
.ws-hero-run { display: none; margin-top: 14px; }
.ws-btn.run { background: var(--accent); color: #1a1305; border: 0; }
.ws-btn.run:hover:not(:disabled) { filter: brightness(1.1); }
.ws-btn.run:focus-visible { outline-color: var(--hd); }

/* stats */
.ws-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; scroll-margin-top: 12px; }
.ws-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; padding: 8px 14px; }
.ws-stat span { display: block; font: 600 12.5px/1 var(--body); color: var(--mut); }
.ws-stat b { display: block; font: 700 16px/1.25 var(--body); color: var(--hd); overflow-wrap: anywhere; }
.ws-stat[data-s="running"] b { color: var(--accent); }
.ws-stat[data-s="wait"] b { color: var(--warn); }
.ws-stat[data-s="done"] b { color: var(--ok); }

/* diagram */
.ws-scroll { margin-top: 12px; overflow-x: auto; border-radius: 4px; border: 1px solid var(--line); background: rgba(0, 0, 0, .18); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.ws-svg { display: block; width: 100%; height: auto; }
.ws-svg text { font: 600 17px var(--body); fill: var(--hd); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.ws-svg .rl { font: 600 12px var(--body); fill: var(--accent); opacity: 0; transition: opacity .25s; }
.ws-svg .rl.bad { fill: var(--bad); }
.ws-svg .rl.am { fill: var(--warn); }
.ws-svg .e.lit + .rl, .ws-svg .e.on + .rl { opacity: 1; }
.ws-svg .e { fill: none; stroke: rgba(140, 190, 255, .35); stroke-width: 1.8; opacity: 0; transition: opacity .25s, stroke .3s; }
.ws-svg .e.br { stroke: var(--warn); stroke-width: 1.4; stroke-dasharray: 5 5; }
.ws-svg .e.lit { stroke: var(--accent); stroke-dasharray: none; opacity: 1; }
.ws-svg .e.br.lit { stroke: var(--warn); }
.ws-svg .e.rw { display: none; stroke: var(--bad); stroke-width: 2; stroke-dasharray: 6 5; }
.ws-svg .e.rw.on { display: block; opacity: 1; animation: ws-dash 1s linear infinite; }
@keyframes ws-dash { to { stroke-dashoffset: -11; } }
.ws-svg .mk-n { fill: rgba(140, 190, 255, .6); } .ws-svg .mk-a { fill: var(--warn); } .ws-svg .mk-r { fill: var(--bad); }
.ws-svg .n rect { fill: #1b1a17; stroke: rgba(140, 190, 255, .28); stroke-width: 1.6; transition: stroke .3s; }
.ws-svg .n .ck { display: none; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ws-svg .n { transition: opacity .3s; cursor: pointer; }
.ws-svg .n:hover rect, .ws-svg .n:focus-visible rect { stroke: var(--accent); }
.ws-svg .n:focus { outline: none; }
.ws-svg .n[data-open] rect { stroke: var(--hd); }
.ws-svg .n[data-s="active"] rect { stroke: var(--accent); stroke-width: 2.2; animation: ws-pulse 1.6s ease-in-out infinite; }
.ws-svg .n[data-s="done"] rect { stroke: var(--ok); }
.ws-svg .n[data-s="done"] .ck { display: block; }
.ws-svg .n[data-s="fail"] rect { stroke: var(--bad); stroke-width: 2.2; }
.ws-svg .n[data-s="wait"] rect { stroke: var(--warn); stroke-width: 2.2; animation: ws-pulse-w 1.4s ease-in-out infinite; }
.ws-svg .n[data-s="skipped"] { opacity: .4; }
.ws-svg .n .sub { font-size: 12px; font-weight: 600; fill: #fb923c; }
.ws-svg .n .sub.alt { fill: #e6e1d8; }
.ws-svg .n .sub.code { fill: var(--accent); }
.ws-svg .n .sub.hum { fill: var(--warn); }
.ws-svg .tdd { opacity: .45; transition: opacity .3s; }
.ws-svg .tdd rect { fill: #1b1a17; stroke: var(--accent); stroke-width: 1.4; }
.ws-svg .tdd circle { fill: var(--accent); }
.ws-svg .tdd text { font-size: 12px; font-weight: 700; fill: var(--hd); }
.ws-svg .tdd.on { opacity: 1; }
.ws-svg .tdd[data-t="fail"] circle { fill: var(--bad); }
.ws-svg .tdd[data-t="fail"] rect { stroke: var(--bad); }
.ws-svg .tdd[data-t="pass"] circle { fill: var(--ok); }
.ws-svg .tdd[data-t="pass"] rect { stroke: var(--ok); }
.ws-svg .ri { color: var(--mut); opacity: .7; }
.ws-svg .ri.on { color: var(--accent); opacity: 1; }
.ws-svg .e.src { display: none; stroke: var(--accent); }
.ws-svg .e.src.sel { display: block; }
.ws-svg .pill rect { fill: #1b1a17; stroke: rgba(140, 190, 255, .2); stroke-width: 1.4; transition: stroke .3s, fill .3s; }
.ws-svg .pill text { text-anchor: start; font-size: 13.5px; fill: var(--mut); transition: fill .3s; }
.ws-svg .pill .wi { color: var(--mut); transition: color .3s; }
.ws-svg .pill.on rect { stroke: var(--accent); fill: rgba(217, 163, 91, .1); }
.ws-svg .pill.on text { fill: var(--hd); }
.ws-svg .pill.on .wi { color: var(--accent); }
.ws-svg .doc rect { fill: rgba(216, 162, 74, .05); stroke: rgba(216, 162, 74, .25); stroke-width: 1.4; transition: stroke .3s, fill .3s; }
.ws-svg .doc text { text-anchor: start; font-size: 13.5px; fill: var(--mut); transition: fill .3s; }
.ws-svg .doc .wi { color: rgba(216, 162, 74, .5); transition: color .3s; }
.ws-svg .doc.on rect { stroke: var(--warn); fill: rgba(216, 162, 74, .12); }
.ws-svg .doc.on text { fill: var(--hd); }
.ws-svg .doc.on .wi { color: var(--warn); }
.ws-svg .n.brain rect { stroke: var(--warn); }
.ws-svg .n.brain text { fill: var(--warn); }
.ws-svg .n.brain .ic { fill: none; stroke: var(--warn); stroke-width: 1.6; stroke-linecap: round; }
.ws-svg .n.brain .ic circle { fill: var(--warn); stroke: none; }
@keyframes ws-pulse { 50% { stroke-opacity: .45; } }
@keyframes ws-pulse-w { 50% { stroke-opacity: .45; } }

.ws-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 4px 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--mut); }
.ws-legend li { display: flex; align-items: center; gap: 7px; }
.ws-legend i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.ws-legend .ag { background: linear-gradient(90deg, #fb923c 50%, #e6e1d8 50%); }
.ws-legend .cd { background: var(--accent); }
.ws-legend .hu { background: var(--warn); }

/* caption */
.ws-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 12px; padding: 10px 14px; }
.ws-now p { flex: 1 1 260px; min-width: 0; font-size: 15px; line-height: 1.45; color: #e6e1d8; }
.ws-now b { margin-right: 6px; color: var(--accent); }
.ws-now .ws-acts { flex-wrap: wrap; }
.ws-now .ws-btn:disabled { cursor: default; opacity: .5; }

/* node details */
.ws-info { position: relative; margin-top: 12px; padding: 12px 40px 12px 14px; }
.ws-info h3 { margin: 0 0 4px; font: 600 15px/1.3 var(--head); color: var(--hd); }
.ws-info p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: #e6e1d8; }
.ws-info dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 14px; margin: 0; }
.ws-info dt { margin-top: 6px; font: 600 12.5px/1 var(--body); color: var(--mut); }
.ws-info dd { margin: 0; font-size: 14px; line-height: 1.45; color: #e6e1d8; }
.ws-info-x { all: unset; box-sizing: border-box; position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; color: var(--mut); cursor: pointer; border-radius: 4px; }
.ws-info-x:hover { color: var(--hd); }
.ws-info-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* decision panel */
.ws-decide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--warn); border-radius: 4px; background: rgba(216, 162, 74, .06); }
.ws-decide[hidden] { display: none; }
.ws-decide p { flex: 1 1 260px; min-width: 0; font-size: 15px; line-height: 1.5; color: #fde9c1; }
.ws-decide .ws-acts { flex-wrap: wrap; }

/* end card */
.ws-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--ok); border-radius: 4px; background: rgba(111, 191, 143, .07); }
.ws-result h3 { flex: 1 1 100%; margin: 0; font: 600 16px/1.3 var(--head); color: var(--ok); }
.ws-result p { flex: 1 1 260px; min-width: 0; margin: 0; font-size: 14.5px; line-height: 1.5; color: #e6e1d8; }

/* tdd */
.ws-tdd-task { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--hd); }
.ws-tdd-row { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
.ws-tdd-link { justify-self: center; align-self: center; width: 2px; height: 14px; background: rgba(217, 163, 91, .45); }
.ws-tdd-win { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: #1b1a17; overflow: hidden; transition: border-color .3s; }
.ws-tdd-win[data-s="on"] { border-color: rgba(217, 163, 91, .45); }
.ws-tdd-win[data-s="fail"] { border-color: var(--bad); }
.ws-tdd-win[data-s="pass"] { border-color: var(--ok); }
.ws-tdd-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.ws-tdd-bar i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #d9706a; }
.ws-tdd-bar i:nth-child(2) { background: #d8a24a; }
.ws-tdd-bar i:nth-child(3) { background: #6fbf8f; }
.ws-tdd-bar span { min-width: 0; margin-left: 6px; font: 500 12px/1.2 var(--mono); color: var(--mut); overflow-wrap: anywhere; }
.ws-tdd-win pre { margin: 0; min-height: 96px; padding: 10px 12px; font: 400 13px/1.55 var(--mono); color: #e6e1d8; white-space: pre-wrap; overflow-wrap: anywhere; }
.ws-tdd-win pre .add { color: #6fbf8f; }
.ws-tdd-win pre .del { color: #d9706a; }
.ws-tdd-win pre .lbl { display: block; margin-top: 8px; font: 700 22px/1.2 var(--body); }
.ws-tdd-win[data-s="fail"] .lbl { color: var(--bad); }
.ws-tdd-win[data-s="pass"] .lbl { color: var(--ok); }
.ws-tdd-back { display: none; }

/* workspace tabs */
.ws-stagebox { margin-top: 12px; }
.ws-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); }
.ws-tabs button { all: unset; box-sizing: border-box; padding: 8px 14px; cursor: pointer; font: 600 13.5px/1.2 var(--body); color: var(--mut); border-radius: 4px 8px 0 0; }
.ws-tabs button[hidden] { display: none; }
.ws-tabs button:hover { color: var(--hd); }
.ws-tabs button[aria-selected="true"] { color: var(--hd); box-shadow: inset 0 -2px 0 var(--accent); }
.ws-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ws-tabs .ws-follow { margin-left: auto; font-size: 12.5px; color: var(--accent); }
.ws-stagebox [role="tabpanel"] { padding: 12px 14px; }
.ws-sub { margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--mut); }
.ws-reveal { animation: ws-in .35s ease-out; }
.ws-reveal[hidden] { display: none !important; }
.ws-grid:not(:has(> :not([hidden]))) { display: none; }
@keyframes ws-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ws-tree { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
#ws-p-tree { display: flex; flex-direction: column; }
.ws-tree text { font: 500 20px var(--mono); fill: var(--mut); }
.ws-tree .hid { display: none; }
.ws-tree .ln { fill: none; stroke-width: 3; }
.ws-tree .mainl { stroke: rgba(140, 190, 255, .3); }
.ws-tree #ws-branch { stroke: var(--accent); }
.ws-tree #ws-merge { stroke: var(--ok); stroke-dasharray: 4 3; }
.ws-tree .mc { fill: #1b1a17; stroke: #e6e1d8; stroke-width: 2.5; }
.ws-tree .tr-c { fill: #1b1a17; stroke: var(--accent); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ws-pop .35s ease-out; }
.ws-tree #ws-main-commit { fill: var(--ok); stroke: var(--ok); }
.ws-tree #ws-branch-name { fill: var(--accent); }
.ws-tree .gl { color: var(--accent); }
@keyframes ws-pop { 0% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
.ws-none { margin: 0; font-size: 14px; color: var(--mut); }
.ws-spec-doc h3, .ws-brain-out h3 { margin: 10px 0 3px; font: 600 12.5px/1 var(--body); color: var(--mut); }
.ws-spec-doc h3:first-child, .ws-brain-out h3:first-child { margin-top: 0; }
.ws-spec-doc > div + div { margin-top: 10px; }
.ws-spec-doc p { margin: 0; font-size: 14px; line-height: 1.5; color: #e6e1d8; }
.ws-tasks { margin: 0; padding: 0; list-style: none; }
.ws-tasks li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 3px 0 5px; font-size: 14px; line-height: 1.4; color: var(--mut); }
.ws-tasks .mk { flex: none; width: 1em; text-align: center; }
.ws-tasks .lb { flex: 1 1 120px; min-width: 0; }
.ws-tasks .tc { flex: none; display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.ws-tasks .ch { padding: 2px 7px; font: 600 11px/1.2 var(--body); color: var(--mut); border: 1px solid var(--line); border-radius: 4px; }
.ws-tasks .x, .ws-tasks .v { display: none; font-style: normal; font-weight: 700; font-size: 12.5px; }
.ws-tasks .x { color: var(--bad); }
.ws-tasks .v { color: var(--accent); }
.ws-tasks li[data-t="fail"] .x, .ws-tasks li[data-t="pass"] .x, .ws-tasks li[data-t="pass"] .v { display: inline; }
.ws-tasks li[data-s="active"] { color: var(--hd); }
.ws-tasks li[data-s="active"] .mk { color: var(--accent); }
.ws-tasks li[data-s="done"] { color: #e6e1d8; }
.ws-tasks li[data-s="done"] .mk { color: var(--ok); }
.ws-tasks .pg { display: none; position: absolute; left: 22px; right: 0; bottom: 0; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(217, 163, 91, .15); }
.ws-tasks .pg::after { content: ""; display: block; width: 40%; height: 100%; background: var(--accent); animation: ws-prog 1.1s ease-in-out infinite; }
.ws-tasks li[data-s="active"] .pg { display: block; }
@keyframes ws-prog { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.ws-docs, .ws-out { margin: 0; padding: 0; list-style: none; }
.ws-docs li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 6px; font-size: 14px; color: var(--mut); border: 1px solid var(--line); border-radius: 4px; transition: color .3s, border-color .3s, background .3s; }
.ws-docs .wi { width: 16px; height: 16px; }
.ws-docs li.on { color: var(--hd); border-color: var(--warn); background: rgba(216, 162, 74, .08); }
.ws-docs li.on .wi { color: var(--warn); }
.ws-out li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 6px; font-size: 14px; color: var(--mut); border: 1px solid var(--line); border-radius: 4px; opacity: .7; transition: color .3s, border-color .3s, background .3s, opacity .3s; }
.ws-out .wi { width: 16px; height: 16px; }
.ws-out li small { font-size: 12.5px; color: var(--mut); }
.ws-out li.bad .wi { color: #d9706a; }
.ws-out li.good .wi { color: var(--accent); }
.ws-out.on li { opacity: 1; }
.ws-out.on li.bad { border-color: #d9706a; background: rgba(217, 112, 106, .06); }
.ws-out.on li.bad span { text-decoration: line-through; text-decoration-color: #d9706a; }
.ws-out.on li.good { border-color: var(--accent); background: rgba(59, 130, 246, .1); color: var(--hd); }

/* parallel runs */
.ws-par { margin-top: 12px; padding: 14px 14px 12px; }
.ws-par h2 { font-size: 15px; text-transform: lowercase; }
.ws-par > p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--mut); }
.ws-par-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ws-par-rows li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 8px 12px; font-size: 14px; border: 1px solid var(--line); border-radius: 4px; }
.ws-par-rows li.sel { border-color: rgba(217, 163, 91, .5); }
.ws-par-rows b { color: var(--hd); }
.ws-par-rows em { display: none; margin-left: 8px; font: 600 11px/1 var(--body); font-style: normal; color: var(--accent); }
.ws-par-rows li.sel em { display: inline; }
.ws-par-rows code { font: 500 13px var(--mono); color: var(--mut); overflow-wrap: anywhere; }
.ws-par-rows .stg { color: #e6e1d8; }
.ws-par-rows .pb { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(217, 163, 91, .15); }
.ws-par-rows .pb i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .4s, background .3s; }
.ws-par-rows li[data-s="done"] .pb i { background: var(--ok); }
.ws-par-rows li[data-s="wait"] .pb i { background: var(--warn); }

/* log + artifact */
.ws-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.ws-panel { padding: 14px 14px 12px; }
.ws-log { max-height: 320px; overflow-y: auto; margin: 0; padding: 0; list-style: none; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.ws-log button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 8px 10px; cursor: pointer; border-radius: 4px; font-size: 14px; line-height: 1.45; color: var(--txt); overflow-wrap: anywhere; }
.ws-log button:hover { background: rgba(255, 255, 255, .04); }
.ws-log button[aria-current="true"] { background: rgba(217, 163, 91, .1); box-shadow: inset 2px 0 0 var(--accent); }
.ws-log button b { margin-right: 6px; font-weight: 700; color: var(--hd); }
.ws-art { max-height: 320px; overflow: auto; margin: 0; padding: 4px; font: 400 13px/1.6 var(--mono); color: #e6e1d8; white-space: pre-wrap; overflow-wrap: anywhere; }
.ws-art .add { color: #6fbf8f; }
.ws-art .del { color: #d9706a; }
.ws-note { margin: 14px 6px 0; font-size: 13px; color: var(--mut); text-align: center; }

/* why */
.ws-why { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 32px; }
.ws-why li { min-width: 0; }
.ws-why h3 { font: 600 16px/1.3 var(--body); color: var(--hd); margin-bottom: 7px; }
.ws-why p { font-size: 13.5px; line-height: 1.6; color: var(--mut); }

@media (min-width: 700px) {
  .ws-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-info dl { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; }
  .ws-info dt { margin-top: 0; }
  .ws-brain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .ws-spec-doc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
  .ws-spec-doc > div { min-width: 0; }
  .ws-spec-doc > div + div { margin-top: 0; }
}
@media (min-width: 900px) {
  .ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-svg { max-height: min(460px, 46vh); }
  .ws-tdd-row { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; }
  .ws-tdd-win pre { min-height: 130px; }
  .ws-tdd-link { width: 28px; height: 2px; }
  .ws-tdd-back { display: block; position: relative; height: 22px; margin-left: calc((100% - 56px) / 3 * 1.5 + 28px); width: calc((100% - 56px) / 3 + 28px); border: 2px solid rgba(217, 163, 91, .45); border-top: 0; border-radius: 0 0 14px 14px; }
  .ws-tdd-back::before { content: ""; position: absolute; left: -6px; top: -2px; border: 5px solid transparent; border-bottom: 7px solid rgba(217, 163, 91, .75); border-top: 0; }
  .ws-par-rows li { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.2fr); }
}
@media (min-width: 1040px) { .ws-why { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .ws-svg { min-width: 900px; }
}
@media (max-width: 767px) {
  #ws-decide, #ws-result { scroll-margin-bottom: 84px; }
  .ws-stats { gap: 6px; }
  .ws-stat { flex-direction: column; gap: 5px; padding: 8px 10px; }
  .ws-stat b { font-size: 14px; overflow-wrap: normal; }
  .ws { padding: 16px 12px 14px; }
  .ws-hero-run { display: inline-flex; }
  .ws-req { padding: 12px; }
  .ws-prompt { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-svg .n[data-s="active"] rect, .ws-svg .n[data-s="wait"] rect, .ws-svg .e.rw.on { animation: none; }
  .ws-reveal { animation: none; }
  .ws-prompt.typing::after { animation: none; }
  .ws-tree .tr-c, .ws-tasks .pg::after { animation: none; }
}

.page-intro h1 + p { margin-top: 14px; }
