/* dexs0.com /sim/ (11-22, v16 11-25): the simulator on its own page, the lab bench filling the window. site.css's palette,
   Inter, radius 6 / 4, white panels with a 1 px line over the scene, no shadows, no glass. Purple (#7C65B5) is the
   visitor's command, blue (#1768D5) is Dex-S0, ink (#172C42) the text. */
html, body { height: 100%; overflow: hidden; }
body.simpage { background: #0c0d0f; overscroll-behavior: none; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0; }
button { -webkit-tap-highlight-color: transparent; }

/* top bar */
.simbar { position: fixed; top: 16px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
          pointer-events: none; z-index: 5; }
.simbar > * { pointer-events: auto; }
.simbar .title { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; }
.simbar .brand { font-size: 18px; }
.simbar .title > span { font-size: 14px; color: var(--soft); }
.simbar .links { display: flex; align-items: center; gap: 8px; }
.simbar .links a, .simbar .links button { height: 42px; display: inline-flex; align-items: center; padding: 0 14px; font: 500 14px "Inter", sans-serif;
          color: var(--ink); text-decoration: none; cursor: pointer; background: none; border: 0; border-radius: 6px; }
.simbar .links a:hover, .simbar .links button:hover { color: var(--blue); }

/* what Dex-S0 sees */
.inset { position: fixed; top: 76px; right: 16px; margin: 0; padding: 10px; width: 152px; z-index: 4; }
.inset canvas { width: 130px; height: 130px; display: block; border-radius: 4px; background: #000; }
.inset-c { position: relative; }
.inset-empty { position: absolute; left: 0; right: 0; bottom: 0; top: 30%; display: flex; align-items: center; justify-content: center; padding: 6px; text-align: center;
               font-size: 12.5px; line-height: 1.4; color: #c6ccd4; }
.inset-empty[hidden] { display: none; }
.inset figcaption { margin-top: 8px; font-size: 12.5px; font-weight: 500; color: var(--soft); }

kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; margin: 0 1px;
      font: 500 11.5px "Inter", sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--light); border-bottom-width: 2px;
      border-radius: 4px; vertical-align: 1px; line-height: 1; }

/* the keys, one line above the status (only when the guide is closed: the guide shows each key where it is used) */
.keys { position: fixed; left: 0; right: 0; bottom: 126px; width: max-content; margin: 0 auto; padding: 7px 12px; z-index: 4; display: flex; gap: 16px;
        font-size: 13px; color: var(--soft); white-space: nowrap; }
.keys span { display: inline-flex; align-items: center; gap: 2px; }
body.guide-open .keys, body.won .keys { display: none; }

/* the status: what runs now, or what Go will send */
.status { position: fixed; left: 0; right: 0; bottom: 82px; width: max-content; max-width: calc(100% - 20px); margin: 0 auto; z-index: 5;
          display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 12px; font-size: 14px; font-weight: 500; color: var(--ink);
          background: #fff; border: 1px solid var(--line); border-radius: 6px; transition: background .2s, color .2s, border-color .2s; }
.status b { font-weight: 600; }
.status[data-state="next"] { color: #fff; background: var(--purple); border-color: var(--purple); }
.status[data-state="next"] kbd { color: #fff; background: transparent; border-color: rgba(255,255,255,.6); }
.status[data-state="done"] { color: var(--ink2); }
.status .dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--blue); vertical-align: 1px;
               animation: blink 1s ease-in-out infinite; }
.status[data-state="win"] { color: #fff; background: var(--blue); border-color: var(--blue); }
@keyframes blink { 50% { opacity: .25; } }
.status.nudge { animation: nudge .38s ease; }
@keyframes nudge { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }

/* the dock */
.dock { position: fixed; left: 0; right: 0; bottom: 16px; width: max-content; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px;
        z-index: 4; white-space: nowrap; }
.seg { display: flex; gap: 2px; padding: 2px; background: var(--panel); border-radius: 6px; }
.seg button { position: relative; height: 36px; padding: 0 12px; font: 500 14px "Inter", sans-serif; color: var(--ink2); background: none; border: 0;
              border-radius: 6px; cursor: pointer; }
.seg button small { margin-left: 6px; font-size: 11px; color: var(--gray); }
.seg button.on { background: var(--purple); color: #fff; }
.seg button.on small { color: rgba(255,255,255,.7); }
.seg button.now::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
                         box-shadow: 0 0 0 1.5px #fff; }
.switch { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 14px; font-weight: 500; color: var(--ink); padding: 0 4px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 40px; height: 24px; border-radius: 12px; background: var(--light); position: relative; transition: background .2s; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .track { background: var(--blue); }
.switch input:checked + .track .knob { transform: translateX(16px); }
.switch:has(input:disabled) { cursor: progress; }
.switch input:disabled + .track { opacity: .45; }
.go { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; font: 600 14px "Inter", sans-serif; color: #fff;
      background: var(--blue); border: 0; border-radius: 6px; cursor: pointer; transition: background .2s, opacity .2s; }
.go kbd { color: #fff; background: transparent; border-color: rgba(255,255,255,.55); min-width: 0; height: 20px; }
.go:disabled { opacity: .35; cursor: default; }
body.staged #go { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { background: #3d84e6; } }
.textbtn { height: 36px; padding: 0 10px; font: 500 14px "Inter", sans-serif; color: var(--blue); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.textbtn:hover { background: var(--panel); }
.textbtn.on { color: #fff; background: var(--purple); }

/* the control the guide wants next */
.cue { outline: 2px solid var(--purple); outline-offset: 2px; animation: cue 1.2s ease-in-out infinite; }
@keyframes cue { 50% { outline-color: rgba(124, 101, 181, .25); } }

/* the on-screen pad (touch screens) */
.pad { position: fixed; left: 0; right: 0; bottom: 124px; width: max-content; margin: 0 auto; display: none; gap: 6px; padding: 6px; z-index: 4;
       background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.pad button { width: 44px; height: 40px; font: 600 17px "Inter", sans-serif; color: var(--purple); background: var(--panel); border: 0; border-radius: 6px;
              touch-action: none; user-select: none; -webkit-user-select: none; }
.pad button.wide { width: auto; padding: 0 12px; font-size: 14px; font-weight: 500; }
.pad button.down { background: var(--purple); color: #fff; }

/* the chip, loading */
.chip { position: fixed; right: 16px; bottom: 22px; font-size: 12px; color: var(--soft); z-index: 3; padding: 3px 8px; background: #fff;
        border: 1px solid var(--line); border-radius: 4px; }
.chip:empty { display: none; }
.conn { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #e9edf2;
        background: rgba(12, 13, 15, .88); z-index: 8; transition: opacity .4s; }
.conn.ok, .conn.hidden { opacity: 0; pointer-events: none; }

/* the guide: one step card in the corner */
.guide { position: fixed; left: 16px; top: 76px; width: 352px; padding: 16px 18px 12px; z-index: 6; }
.g-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.g-n { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.g-bar { display: flex; gap: 4px; }
.g-bar i { width: 18px; height: 4px; border-radius: 2px; background: var(--line); }
.g-bar i.on { background: var(--blue); }
.g-bar i.cur { background: var(--ink); }
.g-title { margin: 0 0 6px; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.g-body { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.g-hint { margin: 10px 0 0; padding: 8px 10px; font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--panel); border-radius: 4px; }
.g-legend { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line);
            font-size: 14px; line-height: 1.45; color: var(--ink2); }
.g-legend > span { display: flex; align-items: baseline; gap: 8px; }
.sw { flex: none; width: 10px; height: 10px; margin-right: 2px; border-radius: 2px; transform: translateY(1px); }
.sw-p { background: var(--purple); }
.sw-b { background: var(--blue); }
.g-nav { display: flex; justify-content: flex-end; gap: 4px; margin-top: 8px; }
.g-btn { height: 34px; padding: 0 10px; font: 500 14px "Inter", sans-serif; color: var(--ink2); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.g-btn:hover { color: var(--ink); background: var(--panel); }

/* the label on the duck or the bowl */
.tag { position: fixed; left: 0; top: 0; margin-top: -14px; padding: 3px 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: #fff;
       border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; pointer-events: none; z-index: 3; }
.tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 13px; background: #fff; }

/* the success moment */
.win { position: fixed; left: 0; right: 0; top: 76px; width: min(420px, calc(100% - 20px)); margin: 0 auto; padding: 20px 22px 16px; z-index: 7;
       text-align: center; animation: winIn .35s ease both; }
@keyframes winIn { from { opacity: 0; transform: translateY(-6px); } }
.win-check { width: 40px; height: 40px; display: block; margin: 0 auto 10px; }
.win-check circle { fill: var(--blue); }
.win-check path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30;
                  animation: tick .45s .15s ease forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.win h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.win p { margin: 0 auto; max-width: 340px; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.win-nav { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.win-x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; font: 400 22px/1 "Inter", sans-serif; color: var(--soft); background: none;
         border: 0; border-radius: 6px; cursor: pointer; }
.win-x:hover { color: var(--ink); background: var(--panel); }

.tap { display: none; }

/* touch screens: the pad replaces the keys */
@media (hover: none) and (pointer: coarse) {
  .keys, .go kbd, .seg button small { display: none; }
  .pad { display: flex; }
  .status { bottom: 182px; }
}

/* phones and narrow windows */
@media (max-width: 900px) {
  .simbar { top: 10px; left: 10px; right: 10px; }
  .simbar .title > span, .simbar .links a, .keys, .seg button small, .go kbd { display: none; }
  .simbar .title, .simbar .links button { height: 40px; }
  .simbar .title { padding: 0 14px; }
  .dock { left: 8px; right: 8px; width: auto; bottom: max(8px, env(safe-area-inset-bottom)); flex-wrap: wrap; justify-content: center; gap: 8px;
          white-space: normal; }
  .seg button { padding: 0 11px; }
  .status { bottom: 118px; font-size: 13.5px; }
  .pad { bottom: 118px; }
  .guide { left: 10px; right: 10px; top: 58px; width: auto; padding: 12px 14px 6px; }
  .g-title { font-size: 16px; margin-bottom: 4px; }
  .g-body { font-size: 14px; line-height: 1.5; }
  .g-hint { font-size: 13px; padding: 6px 8px; margin-top: 8px; }
  .g-legend { font-size: 13px; margin-top: 8px; padding-top: 8px; gap: 2px; }
  .g-nav { margin-top: 2px; }
  .inset { top: auto; bottom: 230px; right: 10px; width: 92px; padding: 6px; }
  .inset canvas { width: 78px; height: 78px; }
  .inset figcaption { font-size: 11px; margin-top: 5px; line-height: 1.3; }
  .inset-empty { font-size: 10.5px; padding: 3px; }
  .chip { display: none; }
  .win { top: 58px; }
  /* the step card stays short so the scene shows under it: Restart / Skip move up into its first line, the bar goes,
     and the legend only shows on step 1. The wrist view steps aside on steps 4 and 5, where the bowl is the target. */
  .guide { padding-top: 10px; }
  .g-head { margin-bottom: 4px; min-height: 30px; }
  .g-bar { display: none; }
  .g-nav { position: absolute; top: 6px; right: 6px; margin: 0; gap: 0; }
  .g-nav .g-btn { height: 30px; padding: 0 9px; font-size: 13.5px; }
  body:not([data-gstep="1"]) .g-legend { display: none; }
  .g-body { padding-bottom: 6px; }
  body.guide-open[data-gstep="4"] .inset, body.guide-open[data-gstep="5"] .inset { display: none; }
}
@media (max-width: 900px) and (hover: none) and (pointer: coarse) {
  .status { bottom: 178px; }
  .inset { bottom: 220px; }
}

/* v18 (11-25): the guide's white ring (in the legend), the Fingers panel (Dex-S0 off: the visitor sets every joint), the
   skills switched off with Dex-S0 */
.sw-t { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); border-radius: 50%; }
.segwrap { position: relative; }
.seg button:disabled { cursor: default; color: var(--gray); }
.seg button:disabled small { color: var(--light); }
.skills-off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
              color: var(--ink); background: rgba(246, 248, 251, .92); border-radius: 6px; pointer-events: none; }
.skills-off[hidden] { display: none; }
.mseg { display: none; }
.fingers { position: fixed; top: 262px; right: 16px; width: 344px; max-height: calc(100% - 262px - 96px); overflow-y: auto; padding: 12px 14px 10px;
           z-index: 4; }
.fingers[hidden] { display: none; }
.f-top { display: flex; align-items: center; gap: 4px; }
.f-title { margin: 0 auto 0 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.f-note { margin: 4px 0 8px; font-size: 14px; line-height: 1.45; color: var(--ink2); }
.f-tabs { display: none; }
.f-groups { display: grid; gap: 6px; }
.f-group { margin: 0; padding: 6px 0 2px; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.f-group legend { float: left; width: 100%; padding: 0; margin: 0 0 2px; font-size: 14px; font-weight: 600; color: var(--purple); }
.f-rows { clear: both; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.f-row { display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 6px; height: 30px; font-size: 14px; color: var(--ink2); }
.f-row input { width: 100%; margin: 0; accent-color: var(--purple); cursor: pointer; }
.cue.f-row, .fingers.cue { outline-offset: 0; }

@media (max-width: 900px) {
  body.manual .segwrap { display: none; }
  body.manual .mseg { display: flex; }
  .mseg button.on { background: var(--purple); color: #fff; }
  .fingers { top: auto; left: 8px; right: 8px; bottom: 118px; width: auto; max-height: 244px; padding: 8px 10px 6px; }
  body.manual:not(.fsheet) .fingers { display: none; }
  /* the sheet takes the pad's place; the card and the lit Go say what to do, so the status line steps aside for the duck */
  body.manual.fsheet .pad, body.manual.fsheet .inset, body.manual.fsheet .status { display: none; }
  .f-note { display: none; }
  .f-tabs { display: flex; gap: 2px; padding: 2px; margin: 6px 0 4px; background: var(--panel); border-radius: 6px; }
  .f-tabs button { flex: 1; height: 32px; font: 500 14px "Inter", sans-serif; color: var(--ink2); background: none; border: 0; border-radius: 6px; }
  .f-tabs button.on { background: var(--purple); color: #fff; }
  .f-group { display: none; border-top: 0; padding: 0; }
  .f-group.sel { display: block; }
  .f-rows { grid-template-columns: 1fr; }
  .f-group legend { display: none; }
  .f-row { grid-template-columns: 64px 1fr; height: 34px; }
}

/* v18: small grey text the guided first run shows, darker (owner: no small grey text) */
.inset figcaption { color: var(--ink2); }
@media (min-width: 901px) { .inset figcaption { font-size: 13px; } }
.simbar .title > span { color: var(--ink2); }
.keys { color: var(--ink2); }

/* v19 (11-26): with Dex-S0 off (body.manual) the legend drops "Dex-S0 makes the grasp precise from the wrist camera", which
   is not so then. On a phone this also keeps step 1's card off the purple hand the card asks to line up (390x844: the
   card ended at 321 px over a hand from 271 to 339 px; now 260 px). */
body.manual .g-legend > span:has(> .sw-b) { display: none; }

/* v20 (11-28, audit 11-27). No small grey text: 14 px in ink or white for the wrist view's note and caption, the step
   counter, the target's label, the keys line and, on phones, the hint, Restart and Skip and the status. Keycaps are 13 px
   inside those lines. The skill buttons lost their key digits (index.html), which the keys line and the card name. */
kbd { font-size: 13px; }
.inset-empty { font-size: 14px; font-weight: 500; color: #fff; }
.inset figcaption, .g-n, .tag, .keys, .g-hint, .g-nav .g-btn, .status { font-size: 14px; }
/* the loading chip in plain words with a bar (app_lab.js getReady), above the dock's end; phones show it in the top bar */
.chip { bottom: 76px; display: flex; flex-direction: column; gap: 5px; padding: 6px 10px 7px; font-size: 14px; color: var(--ink2); }
.chip-bar { display: block; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.chip-bar i { display: block; width: 0; height: 100%; background: var(--blue); transition: width .3s; }
/* a focus ring on every Tab stop: the scene (#gl.kb, set by app_lab.js when the keyboard brings focus there) and the
   Dex-S0 switch showed none */
#gl.kb:focus { outline: 3px solid var(--blue); outline-offset: -3px; }
.switch input:focus-visible + .track { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Dex-S0 off: the keys line steps aside (the Fingers panel covered its end below 1440 px, and its "1 … 4 skill" did
   nothing then; the panel says what Go does), and below 1200 px, where the centred status line reaches under the panel,
   the panel ends above it (they overlapped at 1024x768) */
body.manual .keys { display: none; }
@media (min-width: 901px) and (max-width: 1199px) { .fingers { max-height: calc(100% - 262px - 124px); } }
@media (max-width: 900px) {
  /* step 1's card covered the top of the purple hand (390x844): the legend goes on phones, as it did on steps 2 to 5 */
  .g-legend { display: none; }
  /* Dex-S0 off, step 3: the wrist view covered the duck's head on some layouts, so it steps aside as on steps 4 and 5 */
  body.guide-open.manual[data-gstep="3"] .inset { display: none; }
  .chip { top: 10px; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); height: 40px; padding: 0 10px; justify-content: center;
          line-height: 1.2; white-space: nowrap; z-index: 6; }
  /* the 14 px caption "What Dex-S0 sees" took three lines in the 92 px wrist view: a little wider, two lines */
  .inset { width: 104px; }
  .inset canvas { width: 90px; height: 90px; }
}

/* 11-28 audit (layout-reduced-motion-videos, the /sim/ part): with reduced motion, no decorative animation or transition
   (the Go pulse, blink, cue, nudge, winIn, tick). The simulation itself still runs on Go. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* v21 (11-28, owner "showing how to move the hand ... extremely intuitive"): the guide shows the way in the scene.
   The pointer: a dashed white arrow with an ink edge from the purple hand to the ring's middle, drawn over the scene
   (tutorial.js pointer); its dashes flow toward the ring. The key caps beside the purple hand (keyboards): the keys that
   bring it toward the ring in blue, the others quiet but readable (ink2 on white). Touch screens: the pad's matching
   buttons pulse blue instead. All of it lets clicks through to the scene. */
.aim { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; display: none; overflow: visible; pointer-events: none; }
.aim.on { display: block; }
.aim path { pointer-events: none; }
.aim-edge, .aim-line { fill: none; stroke-linecap: round; stroke-dasharray: 8 10; animation: aimflow .9s linear infinite; }
.aim-edge { stroke: var(--ink); stroke-width: 7.5; stroke-opacity: .88; }
.aim-line { stroke: #fff; stroke-width: 4.5; }
@keyframes aimflow { to { stroke-dashoffset: -18; } }
.aim-head { fill: #fff; stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: round; }
.kcaps { position: fixed; left: 0; top: 0; z-index: 3; display: none; align-items: flex-end; gap: 8px; pointer-events: none; will-change: transform; }
.kcaps.on { display: flex; }
.kc { display: grid; gap: 3px; }
.kc-arrows { grid-template-columns: repeat(3, 28px); grid-template-rows: repeat(2, 28px); }
.kc-arrows [data-k="up"] { grid-area: 1 / 2; }
.kc-arrows [data-k="left"] { grid-area: 2 / 1; }
.kc-arrows [data-k="down"] { grid-area: 2 / 2; }
.kc-arrows [data-k="right"] { grid-area: 2 / 3; }
.kc-ud { grid-template-rows: repeat(2, 28px); }
.kc-turn { grid-template-columns: repeat(2, 28px); }
.kcaps:not(.with-turn) .kc-turn { display: none; }
.kcaps i { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; box-sizing: border-box; font: 600 15px/1 "Inter", sans-serif;
           font-style: normal; color: var(--ink2); background: rgba(255, 255, 255, .8); border: 1px solid rgba(23, 44, 66, .18); border-bottom-width: 2px;
           border-radius: 5px; }
.kcaps i.on { color: #fff; background: var(--blue); border-color: #0f4ea6; box-shadow: 0 0 0 3px rgba(23, 104, 213, .3); }
@media (hover: none) and (pointer: coarse) { .kcaps, .kcaps.on { display: none; } }
.pad button.want { color: #fff; background: var(--blue); animation: want 1.6s ease-in-out infinite; }
.pad button.want.down { background: var(--purple); }
@keyframes want { 50% { box-shadow: 0 0 0 5px rgba(23, 104, 213, .3); } }   /* the fill stays blue: white on it is 5.1:1 */
/* Go waits for the ring (app_lab.js pending): dark, and no pulse */
body.staged #go:disabled { animation: none; }

/* ---------- v22 (11-29): the curtain until Dex-S0 is ready, and the auto demo ---------- */
.conn { flex-direction: column; gap: 12px; text-align: center; padding: 24px; }
.conn-t { font-size: 18px; font-weight: 600; color: #fff; }
.conn-bar { width: min(260px, 70vw); height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.conn-bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s; }
.conn-s { font-size: 15px; color: #dfe5ec; }
.conn-btn { margin-top: 4px; height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--blue); color: #fff;
  font: 600 15px "Inter", sans-serif; cursor: pointer; }
body.autoplay .dock, body.autoplay .pad, body.autoplay .fingers { pointer-events: none; }
body.autoplay #g-restart, body.autoplay #g-demo { display: none; }
.kc i.press { background: #0f4fb0 !important; color: #fff !important; transform: translateY(1px) scale(.9); }
#go.press { transform: scale(.94); filter: brightness(1.12); }

/* ---------- v26 (11-30): the callouts (tutorial.js Callout), a white label with an arrow to the skill to pick and, on the
   grasp step, to the wrist camera's view. The arrow has the scene pointer's look (white, an ink edge, flowing dashes). The
   label's left edge: purple for the skill (the visitor's pick), blue for the camera (Dex-S0). Both let clicks through. */
.co-svg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 6; overflow: visible; pointer-events: none; }
.co-edge, .co-line { fill: none; stroke-linecap: round; stroke-dasharray: 7 8; animation: coflow .8s linear infinite; }
.co-edge { stroke: var(--ink); stroke-width: 6.5; stroke-opacity: .88; }
.co-line { stroke: #fff; stroke-width: 3.5; }
@keyframes coflow { to { stroke-dashoffset: -15; } }
.co-head { fill: #fff; stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: round; }
.co { position: fixed; left: 0; top: 0; z-index: 6; box-sizing: border-box; max-width: 250px; padding: 8px 12px 9px; background: #fff;
      border: 1px solid var(--line); border-left: 3px solid var(--purple); border-radius: 6px; pointer-events: none; will-change: transform; }
.co[hidden] { display: none; }
.co-depth { border-left-color: var(--blue); }
.co-t { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.co-b { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--ink2); }
.co kbd { font-size: 13px; }
.co-b:empty { display: none; }
@media (max-width: 900px) {
  body.co-status .status { visibility: hidden; }                 /* the skill's label says it (tutorial.js callouts) */
  .co { max-width: 210px; padding: 7px 10px 8px; }
  .co-t { font-size: 14px; }
  .co-b { font-size: 14px; }
}
