.wt-platform {
  background: var(--ground);
  color: var(--text);
}
.wt-index {
  padding-block: clamp(68px, 8vw, 140px) clamp(36px, 5vw, 78px);
}
.wt-index-head { margin-bottom: clamp(32px, 3.8vw, 66px); }
.wt-index-head .eyebrow { margin-bottom: 18px; }
.wt-index h2 {
  font-size: clamp(48px, 6.4vw, 108px);
  line-height: .97;
  font-weight: 530;
  letter-spacing: -.073em;
}
.wt-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(18px, 3.6vw, 70px);
}
.wt-directory a {
  display: grid;
  grid-template-columns: 1fr auto 20px;
  align-items: center;
  gap: 10px;
  padding: 12px 1px;
  min-height: 54px;
  border-top: 1px solid var(--rule);
  font-size: clamp(16px, 1.35vw, 24px);
  letter-spacing: -.025em;
}
.wt-directory small {
  color: var(--muted);
  font: 450 11px/1.2 var(--mono);
  letter-spacing: 0;
  white-space: nowrap;
}
.wt-directory svg { width: 18px; color: var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.wt-directory a:is(:hover, :focus-visible) { color: var(--accent); }
.wt-directory a:is(:hover, :focus-visible) svg { transform: translate(2px, 2px) rotate(45deg); color: currentColor; }

.wt-group {
  background: var(--ground);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 12px;
}
.wt-group:nth-of-type(even) { background: var(--surface); }
.wt-columns {
  display: grid;
  grid-template-columns: minmax(200px, .4fr) minmax(0, 1fr);
  gap: 0 clamp(32px, 5vw, 96px);
  align-items: start;
  padding-block: clamp(52px, 6.8vw, 112px);
}
.wt-copy h3 {
  font-size: clamp(36px, 4.2vw, 74px);
  line-height: 1;
  letter-spacing: -.062em;
  font-weight: 530;
}
.wt-intro { margin-top: 14px; max-width: 30ch; color: var(--secondary); font-size: clamp(16px, 1.22vw, 21px); line-height: 1.42; }
.wt-options { margin-top: clamp(24px, 2.4vw, 44px); }
.wt-options a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 45px;
  padding: 8px 1px;
  border-bottom: 1px solid var(--rule);
  color: var(--secondary);
  font-size: clamp(15px, 1.13vw, 19px);
  line-height: 1.3;
  transition: color .17s;
}
.wt-options a:first-child { border-top: 1px solid var(--rule); }
.wt-options a[aria-current='true'] { color: var(--accent); font-weight: 610; }
.wt-options a:is(:hover, :focus-visible) { color: var(--text); }
.wt-arrow { display: block; flex: none; opacity: 0; transform: translateX(-4px); transition: opacity .17s, transform .17s; }
.wt-arrow svg { width: 19px; height: 19px; }
.wt-options a:is([aria-current='true'], :hover, :focus-visible) .wt-arrow { opacity: 1; transform: none; }
.wt-feature-description { margin: 18px 0 0; max-width: 34ch; min-height: 4.4em; font-size: 15px; line-height: 1.48; color: var(--muted); }

.wt-demo { min-width: 0; }
/* Align the live surface directly with the section. Only the working area catches light. */
.capture-display { min-width: 0; }
.capture-mast { display: flex; align-items: center; justify-content: space-between; min-height: 45px; gap: 8px; color: var(--secondary); }
.capture-path { display: flex; align-items: baseline; gap: 8px; font: 500 11px/1.4 var(--mono); }
.capture-path i { color: var(--muted); font-style: normal; }
.capture-path strong { color: var(--text); font-weight: 550; }
.inspect-frame {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px;
  color: var(--secondary); border: 0; background: transparent; font-size: 13px;
}
.inspect-frame svg { width: 15px; height: 15px; }
.inspect-frame:is(:hover,:focus-visible) { color: var(--accent); }
.wt-visual { position: relative; min-width: 0; isolation: isolate; }
.live-stage {
  position: relative; min-width: 0; isolation: isolate; padding: clamp(13px, 1.7vw, 29px);
  background: linear-gradient(125deg, #1b1b1c, #161617 68%, #151516);
  border-radius: 4px;
  box-shadow: 0 20px 38px -33px rgb(0 0 0 / .76);
}
.live-stage [data-live-root] { display: block; min-width: 0; min-height: clamp(308px, 26vw, 440px); }
.live-placeholder { color: var(--muted); font: 500 12px var(--mono); }
[data-demo-pointer] {
  position: absolute; top: 0; left: 0; z-index: 12; pointer-events: none;
  transform-origin: 0 0; filter: drop-shadow(0 2px 4px #0008);
}
.live-contact {
  position: absolute; z-index: 11; width: 24px; height: 24px; border: 2px solid var(--accent);
  border-radius: 50%; opacity: 0; translate: -50% -50%; pointer-events: none;
}
.wt-demo figcaption { display: block; padding: 0; text-transform: none; letter-spacing: normal; font: inherit; color: var(--text); }
.wt-caption-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 58px; gap: 0 12px; padding-block: 6px; border-bottom: 1px solid var(--rule); }
.wt-origin { display: flex; flex-wrap: wrap; align-items: baseline; min-width: 0; gap: 4px 12px; }
.wt-example, .wt-count { font: 450 11px/1.5 var(--mono); color: var(--secondary); }
.wt-transport { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.wt-count, .wt-motion { flex: none; white-space: nowrap; }
.wt-motion, .wt-cues button { display: grid; place-items: center; padding: 0; min-height: 44px; margin: 0; border: 0; background: none; cursor: pointer; }
.wt-motion { width: 36px; color: var(--text); }
.wt-motion svg { width: 20px; height: 20px; }
.wt-motion:hover { color: var(--accent); }
.wt-motion .wt-play-mark, .wt-motion[data-paused='true'] .wt-pause-mark { display: none; }
.wt-motion[data-paused='true'] .wt-play-mark { display: block; }
.wt-cues { display: flex; flex-wrap: wrap; min-width: 0; }
.wt-cues button { width: clamp(26px, 2.45vw, 42px); padding-inline: 2px; }
.wt-track { display: block; position: relative; width: 100%; height: 3px; background: #706d69; overflow: hidden; }
.wt-cues button[aria-pressed='true'] .wt-track { background: #997362; }
.wt-cues button:is(:hover, :focus-visible) .wt-track { height: 5px; }
.wt-track i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.wt-count { min-width: 4ch; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wt-step-copy { padding-top: 16px; }
.wt-step-copy h4 { margin: 0; color: var(--text); font: 580 clamp(20px, 1.65vw, 29px)/1.2 Figtree, sans-serif; letter-spacing: -.033em; }
.wt-step-copy p { margin: 6px 0 0; min-height: 3em; max-width: 68ch; font-size: clamp(15px, 1.05vw, 18px); line-height: 1.5; color: var(--secondary); }
.wt-transcript { grid-column: 1 / -1; min-width: 0; margin-top: 16px; }
.wt-transcript summary { cursor: pointer; color: var(--secondary); min-height: 44px; padding-block: 10px; font-size: 14px; }
.wt-transcript summary:hover, .wt-transcript[open] summary { color: var(--text); }
.wt-transcript[open] > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 24px 40px; }
.wt-transcript article { padding-top: 18px; border-top: 1px solid var(--rule); color: var(--secondary); }
.wt-transcript article h4 { margin: 0 0 8px; color: var(--text); font-size: 21px; letter-spacing: -.025em; }
.wt-transcript ol { padding-left: 1.4em; }
.wt-transcript li { margin-block: 10px; font-size: 15px; }

.capture-dialog {
  width: min(1030px, 96vw); max-width: 96vw; max-height: 94svh; overflow: auto;
  padding: 0 clamp(12px, 2.2vw, 32px) 22px; color: var(--text); background: var(--ground);
  border: 0; border-radius: 6px; box-shadow: 0 18px 80px #0009;
}
.capture-dialog::backdrop { background: rgb(7 10 15 / 82%); }
body:has(.capture-dialog[open]) { overflow: hidden; }
.capture-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 55px; }
.capture-dialog-head button { background: none; border: 0; min-height: 44px; color: var(--accent); }
.detail-stage .live-stage { box-shadow: none; }
@media (min-width: 761px) and (max-width: 1000px) {
  .wt-columns { grid-template-columns: minmax(175px, .35fr) minmax(0, 1fr); column-gap: 26px; }
  .wt-copy h3 { font-size: clamp(32px, 3.5vw, 36px); }
}
@media (max-width: 760px) {
  .wt-index h2 { max-width: 14ch; }
  .wt-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-directory a { grid-template-columns: 1fr auto; row-gap: 3px; }
  .wt-directory svg { grid-column: 2; grid-row: 1 / span 2; }
  .wt-directory small { grid-column: 1; }
  .wt-columns { grid-template-columns: minmax(0, 1fr); row-gap: 16px; padding-block: 46px; }
  .wt-copy h3 { font-size: clamp(38px, 7.3vw, 54px); }
  .wt-intro { margin-top: 10px; max-width: 46ch; }
  .wt-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; margin-top: 18px; }
  .wt-options a { border-top: 1px solid var(--rule); border-bottom: 0; min-height: 44px; }
  .wt-feature-description { margin-top: 12px; min-height: 3em; max-width: 54ch; }
  .wt-caption-line { gap: 0 6px; }
  .wt-transport { gap: 5px; }
  .wt-step-copy p { min-height: 4.5em; }
  .wt-transcript { margin-top: 0; }
}
@media (max-width: 420px) {
  .capture-mast { min-height: 38px; }
  .capture-path { font-size: 11px; gap: 6px; }
  .inspect-frame { min-height: 38px; }
  .capture-dialog-head { gap: 4px 12px; }

  .wt-arrow svg { width: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .wt-platform *, .wt-platform *::before, .wt-platform *::after { transition: none !important; scroll-behavior: auto; }
}
/* The embedded document retains the workbench's own sidebar, type, header and responsive layout. */
.live-stage { padding: 0; border-radius: 5px; background: #171717; box-shadow: 0 20px 46px -36px #000b; }
.live-stage [data-live-root] { min-height: 0; aspect-ratio: 16 / 10; }
.live-viewport, .live-camera { position: absolute; inset: 0; }
.live-viewport { overflow: hidden; border-radius: inherit; isolation: isolate; background: #141415; }
.live-camera, .live-app { transform-origin: 0 0; }
.live-app { display: block; border: 0; background: #171717; }
.live-app.live-preparing { visibility:hidden; position:absolute; inset:0; pointer-events:none; }
.live-placeholder { display: block; padding: 18px; }
.live-stage [data-inline-close] { display: none; }
.tour-expanded { overflow: hidden; }
.live-stage[data-expanded=true] { position:fixed; inset: 3svh 2vw; width:96vw; height:94svh; margin:0; border:0; z-index:1000; background:#141414; }
.live-stage[data-expanded=true]::backdrop { background:#090909d9; }
.live-stage[data-expanded=true] [data-inline-close] { display:block; position:absolute; top:8px; right:10px; z-index:15; padding:8px 12px; background:#282726; color:#fff; border:1px solid #595855; border-radius:5px; }
.capture-dialog { width:min(1600px,96vw); max-height:96svh; }
.detail-stage .live-stage [data-live-root] { height:min(78svh,840px); aspect-ratio:auto; }
@media(max-width:760px) { .live-stage [data-live-root]{aspect-ratio:1.23;} }
@media(max-width:460px) { .live-stage [data-live-root]{aspect-ratio:1.12;} }

.camera-tools { display:flex; align-items:center; gap:15px; }
.camera-tools .inspect-frame { font-variant-numeric:tabular-nums; }
@media(max-width:480px){.camera-tools{gap:8px}.capture-mast{gap:4px}.capture-path{gap:4px}.camera-tools .inspect-frame{font-size:12px}}
