/* StepLab kit 2.0.7 (kit.css) */
/* 実験ラボ: while it is open (the lesson's .in-lab), the lab shows by its violet band under the header (--band), the violet
   frame of its drawing card (--lab-frame, 04-style-zdiorama.html), the 「実験ラボ」 tag and its violet buttons (--try).
   2.0.3: the page keeps the lesson's colours (cards, the drawing's lattice, the settings). Until 2.0.2 the lab tinted them
   all violet (--bg, --surface*, --line*, --host-bg …): the user, 2026-11-21, 「実験LABの色味は、通常の色味と違って、目に優しく
   ない」, and of the 画面案 chose A. The colours with a meaning in the diagram never changed, and do not. */

.sl-root [hidden]{display:none!important}
.sl-root *{box-sizing:border-box}
/* the page appears once the script has drawn it (or decided not to start on this site) */
.sl-root:not(.on) .sl-app{visibility:hidden}
/* Japanese text breaks only between phrases: <wbr> marks the phrase boundaries (see 13-phrases.js) and keep-all keeps the rest together */
.sl-root .sl-app{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-ui);font-size:15px;line-height:1.65;-webkit-text-size-adjust:100%;word-break:keep-all;overflow-wrap:break-word}
.sl-root button,.sl-root select{font:inherit;color:inherit}
.sl-root .locked{max-width:560px;margin:0 auto;padding:48px 20px 24px;display:flex;flex-direction:column;gap:8px;text-align:center;font-size:15px;line-height:1.7}
.sl-root button{cursor:pointer}
.sl-root button[disabled]{cursor:not-allowed}
.sl-root :focus-visible{outline:3px dashed var(--focus);outline-offset:3px}   /* 2.0.5: dashed, so it is not read as the blue frame of 「いま見ている所」 (the UI review) */
.sl-root .mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.sl-root p{margin:0}
.sl-root .sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* top bar */
.sl-root .topbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;min-height:60px;padding:8px max(24px,calc(50% - 776px));background:var(--top-bg,var(--surface));border-bottom:1px solid var(--line)}
.sl-root .brand{font-size:17px;font-weight:700;letter-spacing:.02em}
.sl-root .top-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sl-root .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink-2);font-size:14px;white-space:nowrap}
.sl-root .btn:hover:not([disabled]):not([aria-disabled="true"]){background:var(--surface-2)}
.sl-root .btn[disabled]{opacity:.45}
.sl-root .btn-primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:700}
.sl-root .btn-primary:hover:not([disabled]):not([aria-disabled="true"]){background:var(--accent-hover)}
.sl-root .lab-btn{border-color:var(--try-line);color:var(--try);font-weight:700}
.sl-root .lab-btn:hover:not([disabled]){background:var(--try-soft-2)}
.sl-root .lab-btn[aria-pressed="true"]{background:var(--try);border-color:var(--try);color:var(--on-try)}
.sl-root .lab-btn[aria-pressed="true"]:hover:not([disabled]){background:var(--try-strong)}
.sl-root .cfg-sum{padding:2px 9px;border-radius:999px;background:var(--surface-3);color:var(--ink-3);font-size:12px;font-weight:700;white-space:nowrap}
.sl-root .switch{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 6px 0 14px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:var(--ink-2);font-size:14px;font-weight:700;white-space:nowrap}
.sl-root .switch:hover{background:var(--surface-2)}
.sl-root .lang-btn{font-weight:700}
.sl-root .lng-abbr{display:none}
.sl-root .switch .short{display:none}
.sl-root .switch-track{position:relative;flex:0 0 auto;width:40px;height:24px;border-radius:999px;background:var(--line-strong);transition:background-color .18s}
.sl-root .switch-thumb{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--thumb);box-shadow:0 1px 3px var(--shadow-bar);transition:transform .18s cubic-bezier(.3,.7,.4,1)}
.sl-root .switch[aria-checked="true"] .switch-track{background:var(--accent)}
.sl-root .switch[aria-checked="true"] .switch-thumb{transform:translateX(16px)}

/* chapter rail: progress lives here (bars) and in the dock (9 / 21) */
.sl-root .rail{background:var(--surface);border-bottom:1px solid var(--line);padding:0 max(24px,calc(50% - 776px))}
.sl-root .rail-now,.sl-root .rail-bar,.sl-root .rail-sl{display:none}
.sl-root .rail-now{width:100%;padding:0;border:0;background:none;color:var(--ink);text-align:left;cursor:pointer}
.sl-root .rn-ic{display:inline-flex;color:var(--muted);transition:transform .18s}
.sl-root .rail.open .rn-ic{transform:rotate(180deg)}
.sl-root .rail ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--chn,6),minmax(0,1fr));gap:0 20px}
.sl-root .chap{display:flex;flex-direction:column;gap:8px;width:100%;min-height:44px;padding:9px 0;border:0;background:none;text-align:left;color:var(--ink-3)}
.sl-root .chap-top{display:flex;align-items:center;gap:8px;font-size:13px;min-width:0}
/* 1.35.0: 「第1章」 (Chapter 1) over the name (PC) or before it (phones' list), and ✓ after it once the chapter is done:
   the number was in a circle, and the ✓ took its place, so that the chapters seen had no number on screen, and the
   lesson's 「第2章で見ます」 named nothing on screen (the user, 2026-11-08: 「画面に章と入れた方が、今後も説明しやすくなる」) */
.sl-root .chap-no{flex:0 0 auto;display:inline-flex;align-items:center;gap:3px;font-size:11px;font-weight:700;line-height:1.15;color:var(--ink-3);white-space:nowrap}
.sl-root .chap.current .chap-no{color:var(--accent)}
.sl-root .chap-ok{display:inline-flex;width:12px;color:var(--accent)}
.sl-root .chap-ok svg{width:12px;height:12px}
.sl-root .chap.current{color:var(--ink)}
.sl-root .chap-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sl-root .chap.current .chap-name{font-weight:700}
.sl-root .chap:hover .chap-name{text-decoration:underline;text-underline-offset:3px}
.sl-root .bars{display:flex;gap:3px}
.sl-root .bars i{flex:1;height:4px;border-radius:2px;background:var(--line)}
.sl-root .bars i.done{background:var(--accent-done)}
.sl-root .bars i.now{background:var(--accent)}
/* a quiz's step on the bars: a ring with ? (filled, with a tick, once answered) */
.sl-root .bars i.q,.sl-root .rb-ch i.q,.sl-root .rb-ch{position:relative}
.sl-root .rq{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:15px;height:15px;box-sizing:border-box;border:1.5px solid var(--accent);border-radius:50%;background:var(--surface);color:var(--accent);font-family:var(--font-mono);font-size:10px;font-weight:700;font-style:normal;line-height:1;pointer-events:none}
.sl-root .rq.ok{background:var(--accent);color:var(--on-accent)}
.sl-root .rq.ng{background:var(--ng);border-color:var(--ng);color:var(--surface)}   /* 2.0.5: answered wrong (×) */
.sl-root .rq svg{width:9px;height:9px}
/* 次のクイズへ: at the end of the panel; on phones also at the top of the list of chapters */
.sl-root .next-quiz{margin:0;padding-top:12px;border-top:1px solid var(--line-2)}
.sl-root .nq-link{display:inline-flex;align-items:center;gap:6px}
.sl-root .nq-link svg{flex:0 0 auto}
/* 1.45.0: its words wrap as text, the arrow right after the last word (inline-flex put the arrow at the far right of
   two lines on a phone: the UI review, 2026-11-12) */
.sl-root .nq-link{display:inline;text-align:left}
.sl-root .nq-link svg{display:inline-block;vertical-align:-3px;margin-left:6px}
.sl-root .rail-nq{display:none}
.sl-root .nq-btn{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:6px 10px;border:0;border-radius:10px;background:var(--accent-soft-2);color:var(--accent);font-size:13px;font-weight:700;text-align:left}
.sl-root .nq-btn:hover{text-decoration:underline;text-underline-offset:3px}
/* 実験ラボ: a band in place of the chapter rail says where the lesson is paused. It is solid violet, so the focus
   ring on it is white (the usual blue would not show on violet). */
.sl-root .lab-banner{--focus:#FFFFFF;background:var(--band);border-bottom:1px solid var(--band-line);padding:0 max(24px,calc(50% - 776px))}
.sl-root .lab-banner-in{display:flex;align-items:center;gap:12px;min-height:62px;padding:8px 0}
.sl-root .lb-ic{flex:0 0 auto;display:inline-flex;width:34px;height:34px;border-radius:50%;align-items:center;justify-content:center;background:var(--band-ic-bg);color:var(--band-ic)}
.sl-root .lb-text{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;font-size:13.5px;line-height:1.5;color:var(--band-ink)}
.sl-root .lb-title{margin:0;font-size:15px;line-height:1.5;font-weight:700;color:var(--band-title)}
.sl-root .lb-title:focus{outline:none}
.sl-root .lb-back{flex:0 0 auto;background:var(--band-back);border-color:var(--band-back-line);color:var(--band-back-ink);font-weight:700}
.sl-root .lb-back:hover:not([disabled]){background:var(--try-soft)}
/* 1.30.0: the page's scrollbar coming or going never changes the width (the drawing would be drawn again smaller and
   次へ would move; design guide 1章「画面を動かさない・操作の位置を変えない」). From 641px (a PC's window): a phone's
   scrollbars are laid over the page and take no room, and on a narrow phone the room is better kept for the words. */
/* (2.0.0: the page's scrollbar-gutter is the site's: kit 1.30.0 kept room for a scrollbar on 641px and up) */
/* main layout */
.sl-root .main{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,420px);gap:16px 20px;padding:16px 24px 20px;max-width:1600px;margin:0 auto;align-items:start}
.sl-root .stage,.sl-root .panel,.sl-root .lab,.sl-root .lab-below{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.sl-root .stage{position:relative;display:flex;flex-direction:column;--dg-max-h:430px;overflow:visible}
.sl-root .panel,.sl-root .lab,.sl-root .lab-below{display:flex;flex-direction:column;overflow:clip}

/* stage head: what the diagram shows, plus 凡例 */
.sl-root .stage-head{position:relative;display:flex;align-items:center;gap:6px 10px;min-height:56px;padding:6px 8px 6px 20px;border-bottom:1px solid var(--line-2);border-radius:16px 16px 0 0}
.sl-root .stage-title{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0;flex:1 1 auto}
.sl-root .stage-title h2{margin:0;font-size:16px;line-height:1.4}
.sl-root .topo{font-size:13px;color:var(--muted)}
.sl-root .pill{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap}
.sl-root .pill-blue{color:var(--accent);background:var(--accent-soft)}
.sl-root .pill-gray{color:var(--ink-3);background:var(--surface-3)}
.sl-root .pill-try{color:var(--try-strong);background:var(--try-soft)}
.sl-root .pill-q{color:var(--accent);border:1px solid var(--accent-line);padding:2px 9px}
.sl-root .stage-tools{flex:0 0 auto;display:flex;align-items:center;gap:4px;margin-left:auto}
.sl-root .tool{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink-3);font-size:13px;font-weight:700;white-space:nowrap}
.sl-root .tool:hover{background:var(--surface-2)}
.sl-root .tool[aria-expanded="true"]{background:var(--surface-3)}
.sl-root .legend-pop{position:absolute;right:8px;top:calc(100% + 6px);z-index:35;width:min(380px,calc(100% - 16px));padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 12px var(--shadow-bar)}
.sl-root .tool-short{display:none}   /* 2.0.6: the legend's short word, shown on a phone only (04-style-parts). Not the hidden attribute: [hidden] is display:none!important, and 2.0.5's phone button was empty */
.sl-root .legend-h{margin-bottom:10px;font-size:13px;font-weight:700;color:var(--ink-2)}
/* 1.25.0 (TOPIC.terms): 用語. A box like the legend's; the step's own terms first, in blue; a blue dot on the button
   while the step has some. Narrower than 700px (04-style-parts), a tab in the legend's box instead of the button */
.sl-root .terms-btn,.sl-root #legendBtn{position:relative}
.sl-root .terms-pop{max-height:min(62vh,440px);overflow:auto}
.sl-root .tm-list{margin:4px 0 0;padding:0}
.sl-root .tm-h{margin:6px 0 2px;font-size:12px;font-weight:700;color:var(--accent)}
.sl-root .tm-none{margin:4px 0;font-size:14px;color:var(--ink-3)}
/* 1.26.0: the names' column holds the longest word of 8 characters (「インターフェース」「ブロードキャスト」, 14px bold),
   and a Japanese name wraps only where the lesson writes <wbr> (「ルーティング<wbr>テーブル」); English at its spaces. 1.25.0's
   6.8em broke long katakana names mid-word (「ルーティングテ／ーブル」: the user's request, 2026-10-29, ルータの基本動作 ステップラボ) */
.sl-root .tm-row{display:grid;grid-template-columns:8.2em 1fr;gap:2px 10px;padding:6px 0;border-top:1px solid var(--line)}
.sl-root .tm-row:first-of-type{border-top:0}
.sl-root .tm-row dt{font-weight:700;color:var(--ink);font-size:14px;word-break:keep-all;overflow-wrap:normal}
.sl-root .tm-row dd{margin:0;color:var(--ink-2);font-size:14px;line-height:1.5}   /* 2.0.6: 14px, the body's size (was 13px: the UI review, 2026-11-21) */
.sl-root .tm-row.tm-new dt{color:var(--accent)}
.sl-root .tm-new + .tm-row:not(.tm-new){border-top:1px solid var(--line-strong)}
.sl-root .lg-tabs,.sl-root .tm-pane{display:none}
.sl-root .lg-tabs[hidden]{display:none!important}
.sl-root .legend{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;font-size:14px;color:var(--ink-2)}   /* 2.0.6: 14px (was 13px) */
.sl-root .legend li{display:flex;align-items:center;gap:10px;line-height:1.5}
.sl-root .legend li>:first-child{flex:0 0 auto}
.sl-root .legend-note{margin-top:12px;padding-top:10px;border-top:1px solid var(--line-2);font-size:14px;line-height:1.6;color:var(--muted)}
.sl-root .lg{display:block}
.sl-root .lg-frame{fill:var(--frame)}
.sl-root .lg-net{display:inline-block;width:22px;height:14px;border-radius:4px;background:var(--surface-2);border:1.5px dashed var(--line-strong)}
.sl-root .lg-bpdu{fill:var(--bpdu);stroke:var(--bpdu-line);stroke-width:1.6}
.sl-root .lg-cut{fill:var(--surface);stroke:var(--try-ring);stroke-width:1.6}
.sl-root .lg-cut-x{fill:none;stroke:var(--try);stroke-width:1.8;stroke-linecap:round}
.sl-root .lg-chip{display:inline-flex;border:1px solid var(--line-strong);border-radius:5px;overflow:hidden;font-size:11px}
.sl-root .lg-chip span{padding:1px 6px;color:var(--ink)}
.sl-root .lg-chip span:first-child{background:var(--chip-pri);color:var(--muted)}
.sl-root .lg-chip span:last-child{font-weight:700}
.sl-root .lg-root{display:inline-block;width:20px;height:14px;border-radius:4px;border:2px solid var(--accent);background:var(--accent-soft-2)}
.sl-root .lg-role{display:inline-flex;width:20px;height:20px;border-radius:50%;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--on-role)}
.sl-root .lg-R{background:var(--role-r)}
.sl-root .lg-D{background:var(--role-d)}
.sl-root .lg-B{background:var(--role-b);font-size:13px}
.sl-root .lg-leds{display:inline-flex;gap:5px;padding:4px 6px;border:1px solid var(--line-strong);border-radius:6px}
.sl-root .lg-leds i{width:8px;height:8px;border-radius:50%}
.sl-root .lg-leds .fwd{background:var(--led-fwd)}
.sl-root .lg-leds .blk{background:var(--led-blk)}
.sl-root .lg-leds .lrn{box-shadow:inset 0 0 0 1.6px var(--led-blk)}
.sl-root .lg-leds .off{background:var(--led-off)}
.sl-root .lg-pill{display:inline-flex;align-items:center;height:20px;padding:0 7px;border:1px solid var(--line-strong);border-radius:999px;font-size:11px;font-weight:600;color:var(--ink-3)}
.sl-root .lg-sum{border-color:var(--accent-line);background:var(--accent-soft);color:var(--role-r);font-weight:700}
.sl-root .lg-ring{display:inline-block;width:20px;height:20px;border-radius:50%;border:2.5px solid var(--try-ring)}
.sl-root .lg-clk{fill:var(--surface);stroke:var(--line-strong);stroke-width:1.2}
.sl-root .lg-clk-a{fill:none;stroke:var(--tm-hello);stroke-width:2.2}
.sl-root .lg-tm{fill:var(--surface);stroke:var(--line-strong);stroke-width:1}
.sl-root .lg-tm-s{fill:var(--tm-age)}
.sl-root .lg-tm-t{fill:var(--tm-track)}
.sl-root .lg-tm-b{fill:var(--tm-age)}

/* slim strip: decision order, counters, notes */
.sl-root .strip{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-height:44px;padding:6px 20px;background:var(--surface-2);border-bottom:1px solid var(--line-2);font-size:13px}
.sl-root .strip:empty{display:none}
.sl-root .pstrip{display:none}
/* measures each step's strip on one line (placeStrips) */
.sl-root .strip-probe{position:absolute;left:0;top:0;width:max-content;flex-wrap:nowrap;white-space:nowrap;visibility:hidden;pointer-events:none;border:0}
.sl-root .strip-probe:empty{display:flex}
.sl-root .strip-h{font-weight:700;color:var(--ink-3);margin-right:2px}
.sl-root .strip-note{color:var(--ink-2);line-height:1.5}
.sl-root .chev{color:var(--muted);flex:0 0 auto}
.sl-root .crit{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 10px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--ink-3)}
/* 1.29.0: the step on screen moves along the strip with a short change of colour (not at once) */
.sl-root .crit,.sl-root .crit .n{transition:background-color .3s,color .3s,border-color .3s}
.sl-root .crit .n{display:inline-flex;width:18px;height:18px;border-radius:50%;background:var(--surface-3);color:var(--ink-3);font-size:11px;font-weight:700;align-items:center;justify-content:center}
.sl-root .crit-note{font-size:11.5px;color:var(--muted)}
.sl-root .crit.now{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:700}
.sl-root .crit.now .n{background:var(--on-accent);color:var(--accent)}
.sl-root .crit.now .crit-note{color:var(--on-accent);font-weight:400}
/* the same height as the chips above, so a strip of counters is exactly as tall as any other strip */
.sl-root .stat{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 10px;border-radius:10px;background:var(--surface);border:1px solid var(--line);line-height:1.2}
.sl-root .stat-l{font-size:12px;color:var(--muted)}
.sl-root .stat-v{font-size:16px;font-weight:700;color:var(--ink)}
.sl-root .chg{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:var(--try-soft);color:var(--try-strong);font-size:12.5px;font-weight:700}

/* the diagram, with subtitles laid over its bottom edge */
.sl-root .diagram-wrap{display:flex;align-items:center;justify-content:center;padding:8px 16px 10px}
.sl-root .dg{aspect-ratio:var(--ar,1.58)}
.sl-root .dg-box{position:relative;width:100%;max-width:calc(var(--dg-max-h) * var(--ar,1.58));margin:0 auto}
/* a line under the diagram card's heading, when the lesson gives one (TOPIC.stageNote, kit 1.4.0) */
.sl-root .stage-note{padding:6px 16px 2px;font-size:14px;line-height:1.5;color:var(--ink-2)}
.sl-root .stage-note[hidden]{display:none}
.sl-root .stage-note.under-intro{opacity:.3}
/* はじめに (kit 1.4.0): before step 1 plays, the drawing (faded) under a card that says what the lesson shows, with 始める */
.sl-root .intro{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:12px;background:color-mix(in srgb,var(--bg) 70%,transparent)}
.sl-root .intro[hidden]{display:none}
.sl-root .intro-card{width:min(520px,100%);max-height:100%;overflow:auto;padding:18px 20px;background:var(--surface);border:1px solid var(--line-strong);border-radius:14px;box-shadow:0 4px 12px var(--shadow-bar)}
.sl-root .intro-k{margin:0 0 4px;font-size:12.5px;font-weight:700;color:var(--accent)}
.sl-root .intro-h{margin:0 0 10px;font-size:17px;font-weight:700;line-height:1.45;color:var(--ink)}
.sl-root .intro-p{margin:0 0 8px;font-size:14px;line-height:1.7;color:var(--ink-2)}
.sl-root .intro-p strong{display:block;margin:2px 0;font-size:16px;line-height:1.6;color:var(--ink)}
.sl-root .intro-lt{margin:14px 0 4px;padding-top:10px;border-top:1px solid var(--line);font-size:13px;font-weight:700;color:var(--ink)}
.sl-root .intro-list{margin:0 0 16px;padding-left:1.25em;font-size:14px;line-height:1.7;color:var(--ink-2)}
.sl-root .intro-list li+li{margin-top:2px}
.sl-root .intro-go{display:flex;width:100%;min-height:48px;border-radius:12px;font-size:16px}

/* counters on the diagram itself (phones): in the top right corner, which every layout keeps free;
   with 2 or 4 switches a switch sits under that corner, so the counters go in two columns there */
.sl-root .hud{display:none;position:absolute;top:1%;right:1.5%;width:28.5%;grid-template-columns:minmax(0,1fr);gap:1px 12px;padding:2px 0;font-size:11px;line-height:1.2;pointer-events:none}
.sl-root .dg-box[data-n="2"] .hud,.sl-root .dg-box[data-n="4"] .hud{width:auto;grid-template-columns:none;grid-template-rows:repeat(2,auto);grid-auto-flow:column;column-gap:10px}
/* 1.29.0: the strip's copy in the drawing (TOPIC.stripCopy; 17-app.js placeStripCopy): where the lesson says, over the
   drawing, the strip's words in rows (the title on a row of its own, no arrows between the steps: their numbers say
   the order). Shown only where the strip is not over the drawing */
.sl-root .strip-copy{display:none;position:absolute;flex-wrap:wrap;align-items:center;gap:.33em .5em;font-size:12px;line-height:1.3;pointer-events:none}
.sl-root .strip-copy.on:not(:empty){display:flex}
.sl-root .strip-copy .strip-h{flex-basis:100%;margin:0}
.sl-root .strip-copy .chev,.sl-root .strip-copy .crit-note{display:none}   /* (2.0.5: a step's notes stay out of the copy too: with them the
   copy took a third row and ran into the subtitle at 320–390px, test_strip. The subtitle says which pair is which) */
.sl-root .strip-copy .crit{min-height:2em;padding:0 .75em 0 .33em;gap:.4em}
.sl-root .strip-copy .crit .n{width:1.4em;height:1.4em;font-size:.92em}
.sl-root .hud-row{display:flex;justify-content:flex-end;align-items:baseline;gap:5px;white-space:nowrap}
.sl-root .hud-l{color:var(--muted)}
.sl-root .hud b{min-width:1.6em;text-align:right;font-size:12px;color:var(--ink)}
.sl-root #diagram{display:block;width:100%;height:auto;aspect-ratio:var(--ar,1.58);-webkit-user-select:none;user-select:none}
.sl-root .sub{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 14px;background:var(--sub-bg);color:var(--sub-ink);border:1px solid var(--sub-line);border-radius:12px;font-size:14px;line-height:1.45;box-shadow:0 6px 18px var(--shadow-bar);pointer-events:none}
.sl-root .sub.empty{display:none}
.sl-root .sub-text{flex:1 1 auto;min-width:0}

/* narration panel */
.sl-root .panel-body{flex:1 1 auto;display:flex;flex-direction:column;gap:14px;padding:20px 22px 18px}
.sl-root .try-tie{align-self:flex-start;border-color:var(--try-line);color:var(--try);font-weight:700;white-space:normal;text-align:left}
.sl-root .try-tie:hover:not([disabled]){background:var(--try-soft-2)}
.sl-root .eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.sl-root .eyebrow .ch{font-size:13px;font-weight:700;color:var(--accent)}
.sl-root .title{margin:0;font-size:21px;line-height:1.45;font-weight:700;text-wrap:pretty}
.sl-root .title:focus{outline:none}
.sl-root .body{font-size:15px;line-height:1.8;color:var(--ink-2)}
.sl-root .body-list{margin:0;padding-left:1.4em;display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:1.75;color:var(--ink-2)}
.sl-root .gterm{display:inline;padding:0;border:0;border-bottom:1.5px dotted var(--accent);border-radius:0;background:none;font:inherit;color:inherit;line-height:inherit;cursor:help}
.sl-root .gterm:hover,.sl-root .gterm[aria-expanded="true"]{color:var(--accent);background:var(--accent-soft)}
.sl-root .nobr{white-space:nowrap}
.sl-root .quiz{display:flex;flex-direction:column;gap:10px;padding:14px 16px;background:var(--q-bg);border:1px solid var(--q-line);border-radius:14px}
.sl-root .quiz-q{font-size:15.5px;font-weight:700;line-height:1.6}
.sl-root .qmk{color:var(--accent);margin-right:6px;font-family:var(--font-mono)}
.sl-root .opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100px,100%),1fr));gap:6px}
.sl-root .opts.many{grid-template-columns:repeat(3,minmax(0,1fr))}
.sl-root .opts.text{grid-template-columns:minmax(0,1fr)}
.sl-root .opts.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.sl-root .opts.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.sl-root .opts.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.sl-root .opt{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:6px 10px;border:1.5px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink);font-size:14px;text-align:center}
.sl-root .opts.text .opt{justify-content:flex-start;text-align:left;padding:8px 12px}
.sl-root .opts.big .opt{min-height:52px;font-size:18px;font-weight:700}
.sl-root .opt:hover:not([disabled]){border-color:var(--accent);background:var(--accent-soft)}
.sl-root .opt[disabled]{cursor:default;color:var(--muted)}
.sl-root .opt.ok{border:2px solid var(--ok);background:var(--ok-soft);color:var(--ok-ink);font-weight:700}
.sl-root .opt.ng{border:2px solid var(--ng);background:var(--ng-soft);color:var(--ink-2)}
.sl-root .opt .opt-you{margin-left:auto;padding:1px 8px;border:1.5px solid var(--ng);border-radius:999px;background:var(--surface);color:var(--ng);font-size:12px;font-weight:700;white-space:nowrap}   /* 2.0.5 */
.sl-root .opt svg{flex:0 0 auto}
.sl-root .opt .opt-br{display:none}
/* 2.0.6: where the choices stand side by side (every grid but .text), the button can be narrower than ×, the choice and
   「あなたの答え」 in one line (a phone's 4 columns: 62px), and they ran out of it (the × into the next choice). There, the
   wrong choice wraps: 「あなたの答え」 on a line of its own under the choice, and the choice under the × if need be. */
.sl-root .opts:not(.text) .opt.ng{flex-wrap:wrap;gap:2px 4px;padding-left:6px;padding-right:6px}
.sl-root .opts:not(.text) .opt.ng .opt-br{display:block;flex:0 0 100%;height:0}
.sl-root .opts:not(.text) .opt.ng .opt-you{margin-left:0;border-radius:10px;white-space:normal}
.sl-root .quiz-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 12px}
.sl-root .quiz-hint{font-size:14px;line-height:1.5;color:var(--muted)}
.sl-root .fb{display:flex;align-items:flex-start;gap:8px}
.sl-root .fb:focus{outline:none}
.sl-root .fb-ic{flex:0 0 auto;display:inline-flex;width:20px;height:20px;margin-top:2px;border-radius:50%;align-items:center;justify-content:center}
.sl-root .fb.ok .fb-ic{background:var(--ok);color:var(--on-role)}
.sl-root .fb.ng .fb-ic{background:var(--ng);color:var(--surface)}
.sl-root .fb.neutral .fb-ic{background:var(--surface-3);color:var(--ink-2)}
.sl-root .fb p{font-size:14px;line-height:1.7}
.sl-root .fb.ok b{color:var(--ok-ink)}
.sl-root .link-btn{align-self:flex-start;min-height:36px;padding:0;border:0;background:none;color:var(--accent);font-size:13.5px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.sl-root .key{display:flex;flex-direction:column;gap:6px;padding:12px 14px;background:var(--accent-soft-2);border-radius:12px}
.sl-root .key-h{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--accent)}
.sl-root .key p{font-size:14.5px;line-height:1.75}
.sl-root .key .memo{display:flex;gap:10px;margin-top:2px;padding-top:8px;border-top:1px dashed var(--accent-line);font-size:13.5px;color:var(--ink-2)}
.sl-root .key .memo b{flex:0 0 auto;color:var(--accent);font-size:12px;line-height:1.9}
.sl-root .panel-foot{border-top:1px solid var(--line-2)}
.sl-root .term-pop{position:absolute;z-index:70;display:flex;flex-direction:column;gap:4px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px var(--shadow-sheet)}
.sl-root .tp-name{font-weight:700;font-size:14px}
.sl-root .tp-def{font-size:14px;line-height:1.7;color:var(--ink-2)}
/* diagram (SVG) */
.sl-root .dg text{font-family:var(--font-ui)}
.sl-root .lk{fill:none;stroke:var(--link);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;transition:stroke .25s,stroke-width .25s,opacity .25s}
.sl-root .lk.tree{stroke:var(--tree);stroke-width:4.5}
.sl-root .lk.off{stroke:var(--link-off);stroke-dasharray:8 8}
.sl-root .lk.down{stroke:var(--link-off);stroke-dasharray:2 8;stroke-width:3}
.sl-root .lk.hl{stroke:var(--accent);stroke-width:5;stroke-dasharray:none}
.sl-root .lk.pending{stroke:var(--try-ring);stroke-width:5;stroke-dasharray:12 7}
.sl-root .lk-glow{fill:none;stroke:var(--loop);stroke-width:16;stroke-linecap:round;stroke-linejoin:round;opacity:.3;animation:glow 1.8s ease-in-out infinite}
.sl-root .hits{pointer-events:none}
.sl-root .hits polyline{fill:none;stroke:transparent;stroke-width:28;stroke-linecap:round;stroke-linejoin:round}
.sl-root .hits.on{pointer-events:auto}
.sl-root .hits.on .lkh{cursor:pointer}
.sl-root .hits.on .lkh:hover polyline{stroke:var(--try-ring);stroke-opacity:.22}
.sl-root .lkh:focus{outline:none}
.sl-root .lkh:focus-visible polyline{stroke:var(--focus);stroke-opacity:.35}
.sl-root .term rect{fill:var(--accent-soft);stroke:var(--accent-line);stroke-width:1.5}
.sl-root .term text{fill:var(--ink);font-weight:700}
.sl-root .nd .box{fill:var(--node);stroke:var(--node-line);stroke-width:1.5;transition:stroke .2s}
.sl-root .nd .nm{fill:var(--ink);font-weight:700}
.sl-root .nd .st{fill:var(--muted)}
.sl-root .nd .st.em{fill:var(--role-r);font-weight:700}
.sl-root .nd .st.warn{fill:var(--warn-ink);font-weight:700}
.sl-root .nd .st.try{fill:var(--try-strong);font-weight:700}
.sl-root .nd.root .box{fill:var(--accent-soft-2);stroke:var(--accent);stroke-width:2.5;filter:drop-shadow(0 6px 12px var(--shadow-root))}
.sl-root .nd.chg .box{stroke:var(--try-ring);stroke-width:2.5}
.sl-root .nd.pick{cursor:pointer}
.sl-root .nd.pick:hover .box{stroke:var(--accent);stroke-width:2.5}
/* a quiz: the switches you can choose are outlined (in the lab every switch can be tapped, so none is marked there) */
.sl-root .main:not(.lab-on) .nd.pick .box{stroke:var(--accent);stroke-width:2;stroke-dasharray:7 5}
.sl-root .main:not(.lab-on) .nd.pick:hover .box{stroke-dasharray:none;stroke-width:2.5}
.sl-root .nd:focus{outline:none}
.sl-root .nd:focus-visible .box{stroke:var(--focus);stroke-width:3.5}
.sl-root .nd.mark-ng .box{stroke:var(--ng);stroke-width:2.5;stroke-dasharray:7 5}
.sl-root .bdg rect{fill:var(--accent)}
.sl-root .bdg text{fill:var(--on-accent);font-weight:700}
.sl-root .cs rect{fill:var(--node)}
.sl-root .cs text{fill:var(--ink);font-family:var(--font-mono);font-weight:700}
.sl-root .cs-pri rect{fill:var(--chip-pri)}
.sl-root .cs-pri text{fill:var(--muted);font-weight:400}
.sl-root .cs.hl rect{fill:var(--accent)}
.sl-root .cs.hl text{fill:var(--on-accent);font-weight:700}
.sl-root .cs.chg rect{fill:var(--try-soft)}
.sl-root .cs.chg text{fill:var(--try-strong);font-weight:700}
.sl-root .cs-frame{fill:none;stroke:var(--node-line);stroke-width:1}
.sl-root .nd.root .cs-frame{stroke:var(--accent-line)}
/* ports with a state dot: green = forwarding, amber with a bar = blocking, hollow gray ring = getting ready, gray = down */
.sl-root .pt .hit{fill:transparent}
.sl-root .pt .pbox{fill:var(--node);stroke:var(--node-line);stroke-width:1}
.sl-root .pt text{fill:var(--ink-2);font-family:var(--font-mono);font-weight:600}
.sl-root .led{stroke-width:2}
.sl-root .led.fwd{fill:var(--led-fwd);stroke:var(--led-fwd-ring)}
.sl-root .led.blk{fill:var(--led-blk);stroke:var(--led-blk-ring)}
.sl-root .led.lrn{fill:var(--node);stroke:var(--led-lrn);stroke-width:1.8}
.sl-root .led-bar{display:none;fill:none;stroke:var(--on-led-blk);stroke-width:1.7;stroke-linecap:round}
.sl-root .led.blk+.led-bar{display:inline}
.sl-root .pt .okring{display:none;fill:none;stroke:var(--ok);stroke-width:2.5}
.sl-root .led.blink{animation:ledblink 1s ease-in-out infinite}
.sl-root .led.off{fill:var(--led-off);stroke:none}
.sl-root .pt.down .pbox{fill:var(--surface-2);stroke:var(--led-off);stroke-dasharray:3 2}
.sl-root .pt.down text{fill:var(--muted)}
.sl-root .pt.pick{cursor:pointer}
.sl-root .pt.pick .pbox{stroke:var(--accent);stroke-width:1.5}
.sl-root .pt.pick:hover .pbox{fill:var(--accent-soft);stroke-width:2.5}
.sl-root .pt:focus{outline:none}
.sl-root .pt:focus-visible .pbox{stroke:var(--focus);stroke-width:3}
.sl-root .pt.changed .pbox{fill:var(--try-soft);stroke:var(--try-ring);stroke-width:1.5}
.sl-root .pt.changed text{fill:var(--try-strong)}
/* a correct quiz answer: a ring around the port, which keeps its own colours (a teal fill would read as a designated port) */
.sl-root .pt.ok .okring{display:inline}
.sl-root .pt.ok .pbox{stroke:var(--ok);stroke-width:1.5}
.sl-root .pt.ng .pbox{fill:var(--ng-soft);stroke:var(--ng);stroke-width:2;stroke-dasharray:4 3}
/* role badges */
.sl-root .role circle{stroke:var(--surface);stroke-width:2}
.sl-root .role text{font-weight:700;fill:var(--on-role)}
.sl-root .role-R circle{fill:var(--role-r)}
.sl-root .role-D circle{fill:var(--role-d)}
.sl-root .role-B circle{fill:var(--role-b)}
.sl-root .role .ring-c{fill:none;stroke:var(--try-ring);stroke-width:2.5}
/* pills on the diagram: +4 (cost of that port), =8 or 4+4=8 (total to the root), violet = changed */
.sl-root .lbl text{font-family:var(--font-mono);font-weight:600}
.sl-root .lbl rect{stroke-width:1}
.sl-root .lbl-cost rect{fill:var(--surface);stroke:var(--line-strong)}
.sl-root .lbl-cost text{fill:var(--ink-3)}
.sl-root .lbl-sum rect{fill:var(--accent-soft);stroke:var(--accent-line)}
.sl-root .lbl-sum text{fill:var(--role-r);font-weight:700}
.sl-root .lbl-chg rect,.sl-root .lbl-diff rect{fill:var(--try-soft);stroke:var(--try-line)}
.sl-root .lbl-chg text{fill:var(--try-strong);font-weight:700}
.sl-root .lbl-diff text{fill:var(--try-strong);font-family:var(--font-ui);font-weight:700}
.sl-root .lbl-note text,.sl-root .lbl-note-block text{font-family:var(--font-ui);font-weight:700;paint-order:stroke;stroke:var(--surface);stroke-width:4px;stroke-linejoin:round}
.sl-root .lbl-note text{fill:var(--ink-2)}
.sl-root .lbl-note-block text{fill:var(--role-b)}
/* packets: frames are ink squares, BPDUs white circles */
.sl-root .pkf rect{fill:var(--frame)}
.sl-root .pkf text{fill:var(--on-frame);font-family:var(--font-mono);font-weight:700}
.sl-root .pkb circle{fill:var(--bpdu);stroke:var(--bpdu-line);stroke-width:2}
.sl-root .pkl{fill:var(--ink-2);font-family:var(--font-mono);font-weight:700;paint-order:stroke;stroke:var(--surface);stroke-width:4px}
/* the question on the loop step (where to stop it?), boxed in the loop's colour */
.sl-root .qm rect{fill:var(--surface);stroke:var(--loop);stroke-width:2.5}
.sl-root .qm .qm-t{fill:var(--warn-ink);font-weight:700}
.sl-root .qm .qm-s{fill:var(--ink-2)}
.sl-root .cutm circle{fill:var(--surface);stroke:var(--try-ring);stroke-width:2.5}
.sl-root .cut-x{fill:none;stroke:var(--try);stroke-width:2.6;stroke-linecap:round}
/* STP timers. The card (top right of the drawing) names the timer that is running and shows the time left on a bar;
   the port it is timing gets a ring in the same colour; a switch's clock fills up over its Hello time, then it sends. */
.sl-root .tm-hello{--tm-c:var(--tm-hello)}
.sl-root .tm-age{--tm-c:var(--tm-age)}
.sl-root .tm-fwd{--tm-c:var(--tm-fwd)}
.sl-root .tmc-bg{fill:var(--surface);stroke:var(--tm-c);stroke-width:1.5}
.sl-root .tmc-name{fill:var(--ink);font-weight:700}
.sl-root .tmc-val{fill:var(--ink-2)}
.sl-root .tmc-num{fill:var(--ink);font-family:var(--font-mono);font-weight:700}
.sl-root .tmc-ff rect{fill:var(--surface-3)}
.sl-root .tmc-ff text{fill:var(--ink-3);font-family:var(--font-mono);font-weight:700}
.sl-root .tmc-track{fill:var(--tm-track)}
.sl-root .tmc-bar{fill:var(--tm-c)}
.sl-root .tmc.flash .tmc-bar{animation:tmflash .6s ease-out}
.sl-root .pt .tmring{display:none;fill:none;stroke-width:2.5}
.sl-root .pt.tm-age .tmring{display:inline;stroke:var(--tm-age)}
.sl-root .pt.tm-fwd .tmring{display:inline;stroke:var(--tm-fwd)}
.sl-root .pt.tm-flash .tmring{animation:tmflash .6s ease-out}
.sl-root .clk{display:none}
.sl-root .clk.on{display:inline}
.sl-root .clk-bg{fill:var(--surface);stroke:var(--tm-hello);stroke-width:1.5}
.sl-root .clk-arc{fill:none;stroke:var(--tm-hello);stroke-linecap:butt}
/* Since kit 1.6.0, two parts of the network drawing first made in MAC・IPアドレス ステップラボ (its 05-style-topic.html),
   the same look (the field file's 図の部品, fields/network.md):
   An address label (.lbl .lbl-addr: a device's or an interface's addresses, MAC over IP; plain text, no box, so it
   reads apart from a network's tag). A switch's is grey (.sw: it is not used while a frame only passes through);
   the addresses the frame or packet carries now are blue and bold (text.hl). */
.sl-root .lbl-addr rect{fill:none;stroke:none}
.sl-root .lbl-addr text{fill:var(--ink-2);font-family:var(--font-mono);font-weight:500}
.sl-root .lbl-addr.sw text{fill:var(--muted)}
.sl-root .lbl-addr text.hl{fill:var(--accent);font-weight:800}
/* A card (.hc[data-c]: what a frame or packet carries, a table a device reads): a box (.hc-bg) with its title (.hc-t),
   a heading over some rows (.hc-s, or .hc-g beside them), and its rows (.hc-row: a name .hc-k, a value .hc-v, a middle
   value .hc-m). A row in blue (.hl) is the value just put on or the row the device used; a dim row (.dim) is out of
   use; .mono-k sets the row's name in the mono font (an address). A card that waits for its place is .hc-off. */
.sl-root .hc-bg{fill:var(--surface);stroke:var(--line-strong);stroke-width:1.2}
.sl-root .hc-t{fill:var(--ink);font-weight:700}
.sl-root .hc-s,.sl-root .hc-g{fill:var(--muted);font-weight:700}
.sl-root .hc-row rect{fill:transparent}
.sl-root .hc-k{fill:var(--ink-2)}
.sl-root .hc-row.mono-k .hc-k{font-family:var(--font-mono);font-weight:600}
.sl-root .dg .hc-v{fill:var(--ink);font-family:var(--font-mono);font-weight:700}
.sl-root .hc-m{font-weight:600;fill:var(--ink-2)}
.sl-root .hc-row.hl rect{fill:var(--accent)}
.sl-root .hc-row.hl text{fill:var(--on-accent)}
.sl-root .hc-row.dim .hc-v,.sl-root .hc-row.dim .hc-k{fill:var(--muted)}
.sl-root .hc-off{display:none}
/* A summary card (.hc.sumc, kit 1.27.0; SummaryCard in 18-summary.js): a card whose rows are short sentences (.sumc-k),
   or a name and a value (.sumc-v) under a heading (.sumc-h); a row turns blue (.hl) when it is told, over 0.3s. */
.sl-root .dg .sumc .sumc-k,.sl-root .dg .sumc .sumc-v{font-family:var(--font-ui);font-weight:700;fill:var(--ink-2);transition:fill .3s}
.sl-root .dg .sumc .sumc-v{fill:var(--ink)}
.sl-root .dg .sumc .sumc-h{font-family:var(--font-ui);font-weight:700;fill:var(--muted)}
.sl-root .dg .sumc .hc-row rect{transition:fill .3s}
.sl-root .dg .sumc .hc-row.hl .sumc-k,.sl-root .dg .sumc .hc-row.hl .sumc-v{fill:var(--on-accent)}
@media (prefers-reduced-motion:reduce){.sl-root .dg .sumc .sumc-k,.sl-root .dg .sumc .sumc-v,.sl-root .dg .sumc .hc-row rect{transition:none}}
/* Since kit 1.9.0, the network frame and its tag, also first made in MAC・IPアドレス ステップラボ (its 05-style-topic.html),
   the same look (the field file's ネットワークとアドレスを書く図): a network (.net) is a dotted frame round what is on it,
   drawn under everything else; its address is a tag on the frame's top edge (.net-tag: a solid outline and bold text,
   .net-k the word "network", .net-a the address in mono), so it reads apart from a device's address (an address label,
   plain text). The legend's icon for a network is .lg-net (02-style-base.html). */
.sl-root .net > rect{fill:var(--surface-2);stroke:var(--line-strong);stroke-width:1.2;stroke-dasharray:5 5}
.sl-root .net-tag rect{fill:var(--surface);stroke:var(--ink-3);stroke-width:1.5}
.sl-root .net-tag .net-k{fill:var(--ink-2);font-weight:700}
.sl-root .net-tag .net-a{fill:var(--ink);font-family:var(--font-mono);font-weight:800}
@keyframes tmflash{0%{opacity:.25}100%{opacity:1}}
.sl-root .pop{transform-box:fill-box;transform-origin:center;animation:pop .5s cubic-bezier(.2,.9,.3,1.3)}
.sl-root .pulse{transform-box:fill-box;transform-origin:center;animation:pulse .9s ease-out}
@keyframes pop{0%{transform:scale(.3);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes pulse{0%{transform:scale(1)}40%{transform:scale(1.06)}100%{transform:scale(1)}}
@keyframes glow{0%,100%{opacity:.16}50%{opacity:.42}}
@keyframes ledblink{50%{opacity:.25}}
/* the playback bar: playback on the left, step navigation on the right (on a PC, right after the playback: below).
   It sits right under the diagram: Ping-t's iframe grows to the height of the page, so a bar fixed to the window would
   not stay in view. */
.sl-root .dock{border-top:1px solid var(--line-2);border-radius:0 0 16px 16px;background:var(--surface)}
.sl-root .dock-in{padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px 20px}
.sl-root .dock-play{display:flex;align-items:center;gap:10px;min-width:0}
.sl-root .dock.is-review .dock-play{visibility:hidden}
.sl-root .cluster{display:flex;flex:0 0 auto;border:1px solid var(--line-strong);border-radius:12px;overflow:hidden;background:var(--surface)}
.sl-root .cl-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 14px;border:0;background:transparent;color:var(--ink-2);font-size:14px;white-space:nowrap}
.sl-root .cl-btn+.cl-btn{border-left:1px solid var(--line)}
.sl-root .cl-btn:hover:not([disabled]){background:var(--surface-2)}
.sl-root .cl-btn[disabled]{color:var(--muted);opacity:.55}
.sl-root .cl-btn:focus-visible{outline-offset:-3px}
.sl-root .keys{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);white-space:nowrap}
.sl-root kbd{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;border:1px solid var(--line-strong);border-bottom-width:2px;border-radius:5px;background:var(--surface);font-family:inherit;font-size:12px;color:var(--ink-2)}
.sl-root .dock-nav{flex:0 1 420px;display:flex;align-items:center;gap:10px;min-width:0}
.sl-root .dock-nav .btn{min-height:48px;border-radius:12px}
.sl-root .dock-count{flex:0 0 auto;min-width:64px;text-align:center;font-size:14px;color:var(--muted)}
.sl-root .dock-count b{font-size:17px;color:var(--ink)}
.sl-root .done-label{font-family:var(--font-ui);font-weight:700;color:var(--ok-ink)}
.sl-root .dock-nav .next{flex:1;font-size:16px}
.sl-root .dock-nav .next[disabled]{opacity:1;background:var(--surface-3);border-color:var(--line);color:var(--muted);font-size:14.5px}
/* a quiz is waiting: the button takes you to its choices (on a phone they are further down the page) */
.sl-root .dock-nav .next.to-quiz{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)}
.sl-root .dock-nav .next.to-quiz:hover:not([aria-disabled="true"]){background:var(--accent-soft-2);border-color:var(--accent)}
.sl-root .tq-ic{display:inline-flex}
/* a part is still moving: 次へ waits (greyed; it keeps the keyboard focus) */
.sl-root .dock-nav .next{transition:background-color .2s,border-color .2s,color .2s}
.sl-root .dock-nav .next[aria-disabled="true"]{background:var(--surface-3);border-color:var(--line);color:var(--muted);cursor:default}
.sl-root .dock-nav .next.alt{background:var(--surface);border-color:var(--line-strong);color:var(--ink-2);font-size:15px}
.sl-root .dock-nav .next.alt:hover{background:var(--surface-2)}

/* 実験ラボ: a sandbox. The panel holds every setting; violet marks what you changed and what it changed */
/* a small table under the text of a step (kit 1.7.0, the step's table) */
.sl-root .step-tbl-wrap{display:flex;flex-direction:column;gap:6px}
/* No overflow:hidden on the table: it clips the caption too (kit 1.8.0: the left of the "T" of an English caption was
   cut). The corner cells take the inner radius instead, so a shaded header or marked row stays inside the round border. */
.sl-root .step-tbl{width:100%;max-width:360px;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:12px;font-size:13.5px;line-height:1.5;color:var(--ink-2)}
.sl-root .step-tbl thead tr:first-child>:first-child,.sl-root .step-tbl caption+tbody>tr:first-child>:first-child,.sl-root .step-tbl>tbody:first-child>tr:first-child>:first-child{border-top-left-radius:11px}
.sl-root .step-tbl thead tr:first-child>:last-child,.sl-root .step-tbl caption+tbody>tr:first-child>:last-child,.sl-root .step-tbl>tbody:first-child>tr:first-child>:last-child{border-top-right-radius:11px}
.sl-root .step-tbl>tbody:last-child>tr:last-child>:first-child{border-bottom-left-radius:11px}
.sl-root .step-tbl>tbody:last-child>tr:last-child>:last-child{border-bottom-right-radius:11px}
.sl-root .step-tbl caption{caption-side:top;text-align:left;padding:0 0 6px;font-size:13px;font-weight:700;color:var(--ink-2)}
.sl-root .step-tbl th,.sl-root .step-tbl td{padding:7px 14px;text-align:left;border-top:1px solid var(--line-2)}
.sl-root .step-tbl thead th{border-top:0;background:var(--surface-2);font-size:12.5px;font-weight:700;color:var(--ink-3)}
.sl-root .step-tbl .num{text-align:right}
/* a narrow phone (kit 1.10.0): less room round the cells, so a table of two addresses (an IP and a MAC) fits from 320px */
/* a phone (400px and less): a table of addresses (two columns of 14 characters) fits a 320px screen */
@container sl (max-width:400px){.sl-root .step-tbl{font-size:12.5px}.sl-root .step-tbl th,.sl-root .step-tbl td{padding:7px 7px}.sl-root .more .more-in{padding:4px 0 6px}}
.sl-root .step-tbl td.num{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.sl-root .step-tbl-tag{display:inline-block;margin-left:6px;padding:0 7px;border:1px solid var(--accent-line);border-radius:999px;background:var(--surface);color:var(--accent);font-size:11.5px;font-weight:700;line-height:1.6;vertical-align:1px}
.sl-root .step-tbl tr.now td{background:var(--accent-soft-2);color:var(--ink);font-weight:700}
.sl-root .step-tbl-note{margin:0;font-size:14px;line-height:1.6;color:var(--muted)}
.sl-root .lab-body{flex:1 1 auto;display:flex;flex-direction:column;gap:18px;padding:18px 20px 20px}
.sl-root .icon-btn{flex:0 0 auto;display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink-2)}
.sl-root .icon-btn:hover{background:var(--surface-2)}
.sl-root .lab-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px}
.sl-root .lab-label{font-size:13px;color:var(--ink-3)}
.sl-root .lab-h{margin:0;font-size:13px;font-weight:700;color:var(--ink-2)}
.sl-root .lab-sec{display:flex;flex-direction:column;gap:10px}
.sl-root .lab-sec+.lab-sec{padding-top:16px;border-top:1px solid var(--line-2)}
.sl-root .seg{display:flex;gap:2px;padding:3px;background:var(--seg);border-radius:11px}
.sl-root .seg button{min-height:38px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--ink-3);font-size:13px;white-space:nowrap}
.sl-root .seg button:hover{color:var(--ink)}
.sl-root .seg button[aria-pressed="true"]{background:var(--seg-on);color:var(--ink);font-weight:700;box-shadow:0 1px 3px var(--seg-shadow)}
/* 1.26.0: the order of the terms (登場順 / 五十音順), small, at the top of the 用語 list */
.sl-root .seg.tm-sort{display:inline-flex;margin:0 0 8px}
.sl-root .seg.tm-sort button{min-height:30px;padding:0 10px;font-size:12.5px}
.sl-root .fields{display:flex;flex-wrap:wrap;gap:8px}
.sl-root .fields-3{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100px,100%),1fr))}
.sl-root .field{flex:1 1 90px;min-width:0;display:flex;flex-direction:column;gap:5px}
.sl-root .field label{font-size:12px;color:var(--ink-3)}
.sl-root .field select{width:100%;min-height:40px;padding:0 6px;background:var(--surface-2);color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;font-family:var(--font-mono);font-size:14px}
.sl-root .field.changed label{color:var(--try-strong);font-weight:700}
.sl-root .field.changed select{border:1.5px solid var(--try-ring);background:var(--try-soft-2);color:var(--try-strong);font-weight:600}
.sl-root .field select:disabled{opacity:.5}
.sl-root .costs summary{display:flex;align-items:center;gap:6px;min-height:40px;cursor:pointer;font-size:13px;color:var(--accent);font-weight:700}
.sl-root .costs summary::-webkit-details-marker{display:none}
.sl-root .costs summary::before{content:'';width:0;height:0;border-style:solid;border-width:5px 0 5px 7px;border-color:transparent transparent transparent currentColor;transition:transform .15s}
.sl-root .costs[open]>summary::before{transform:rotate(90deg)}   /* 2.0.7: the triangle a disclosure has (display:flex had taken it away; the UI review of STP, 2026-11-22: it read as a heading) */
.sl-root .costs .fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(108px,100%),1fr));padding-top:6px}
.sl-root .lab-note{font-size:14px;line-height:1.6;color:var(--muted)}   /* 2.0.7: 14px (was 12.5): the design guide's 3章, a note the learner reads is not smaller than 14px. Found by the check of every rule, 2026-11-22 */
.sl-root .sb-summary{display:none}
/* 2.0.4: 実験ラボ on a phone (16-lab.js, placeLabPhone): the lab's 「くわしく」 in the drawing's place (#labOver, the lesson's
   「くわしく」 frame: .more-over.more-sheet.more-cover), the card of the explanation not shown, and the settings folded to one
   line (#labFold: いまの設定, what they are, 変える) until they are opened */
.sl-root .lab-over[hidden],.sl-root .lab-fold[hidden]{display:none!important}
.sl-root .main.lab-phone > #labBelow{display:none}
.sl-root .lab-over .lab-body{padding:0}
.sl-root .lab-fold{display:flex;align-items:center;gap:12px;padding:14px 16px}
.sl-root .lab-fold .lf-t{flex:1 1 auto;min-width:0;margin:0;font-size:14px;line-height:1.6;color:var(--ink-2)}
.sl-root .lab-fold .lf-h{display:block;font-weight:700;color:var(--ink)}
.sl-root .lab-fold .lf-btn{flex:none;min-height:44px;padding:0 16px;border-radius:12px}
/* 2.0.5 (the UI review): the button stays where it is when the settings open (the line above it is shorter then), and looks
   pressed while they are open, as 「くわしく」 does */
.sl-root .lab-fold{align-items:flex-start}
.sl-root .lab-fold .lf-btn[aria-expanded="true"],.sl-root .lab-fold .lf-btn[aria-expanded="true"]:hover:not([disabled]){background:var(--accent);border-color:var(--accent);color:var(--on-accent)}   /* (and while hovered: a phone keeps the hover after a tap, and .btn:hover's light ground left the white word unreadable. The UI review) */
.sl-root #lab.lab-folded #labBody{display:none}
/* (2.0.7: the settings fold in one column too, not only on a phone: .lab-fold-on, 16-lab.js renderLabFold) */
.sl-root .main.lab-fold-on #lab:not(.lab-folded) .lab-fold{border-bottom:1px solid var(--line)}
.sl-root .main.lab-fold-on #lab:not(.lab-folded) #labBody{padding-top:12px}
.sl-root .sb-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sl-root .sb-preset{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:8px 6px;border:1.5px solid var(--line-strong);border-radius:12px;background:var(--surface);color:var(--ink);font-size:12px;line-height:1.35;text-align:center}
.sl-root .sb-preset .thumb{width:48px;height:30px}
.sl-root .sb-preset:hover{border-color:var(--try-ring)}
.sl-root .sb-preset[aria-pressed="true"]{border:2px solid var(--try-ring);background:var(--try-soft-2);color:var(--try-strong);font-weight:700}
.sl-root .sb-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.sl-root .sb-links li{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:4px 6px 4px 12px}
.sl-root .sb-links li+li{border-top:1px solid var(--line-2)}
.sl-root .sb-links li.is-down{background:var(--try-soft-2)}
.sl-root .sb-link-name{min-width:0;font-size:13.5px}
.sl-root .sb-links li.is-down .sb-link-name{color:var(--try-strong);font-weight:700}
.sl-root .sb-toggle{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 6px;border:0;border-radius:10px;background:none;color:var(--ink-3);font-size:12.5px;font-weight:700}
.sl-root .sb-toggle:hover{background:var(--surface-2)}
.sl-root .sb-toggle .switch-track{background:var(--try-ring)}
.sl-root .sb-toggle[aria-checked="true"] .switch-track{background:var(--ok)}
.sl-root .sb-toggle[aria-checked="true"] .switch-thumb{transform:translateX(16px)}
.sl-root .sb-toggle[aria-checked="false"]{color:var(--try-strong)}
.sl-root .timeline{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border:1px solid var(--try-line);border-radius:12px;background:var(--try-soft-2);container-type:inline-size}
.sl-root .tl-h{margin:0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 8px;font-size:13px;color:var(--ink-2)}
.sl-root .tl-speed{font-weight:400;color:var(--muted)}
/* The four phases never break a name in the middle (フォワーディン / グ): one row when the box is 320px or wider (the last
   column takes the width its name needs), two rows of two when it is narrower (phones, and the side panel at 880-1000px). */
.sl-root .tl{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 4px}
@container (min-width:320px){.sl-root .tl{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(max-content,1fr);gap:4px}}
.sl-root .tl li{display:flex;flex-direction:column;gap:4px;min-width:0}
.sl-root .tl-bar{position:relative;display:block;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.sl-root .tl-bar i{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--led-blk)}
.sl-root .tl li.done .tl-bar{background:var(--ok)}
.sl-root .tl li.now .tl-bar{background:var(--led-blk-ring)}
.sl-root .tl-name{font-size:11.5px;font-weight:700;line-height:1.35;color:var(--ink-2);white-space:nowrap}
.sl-root .tl-sub{font-size:11px;color:var(--muted)}
.sl-root .tl li.now .tl-name,.sl-root .tl li.now .tl-sub{color:var(--warn-ink)}
.sl-root .tl-note{font-size:14px;line-height:1.6;color:var(--ink-3)}
.sl-root .sb-why{padding-top:16px;border-top:1px solid var(--line-2)}
.sl-root .sb-why summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--ink-2)}
/* 2.0.2: 14px (13px before), as the notes under the commands: sentences a learner reads are not smaller than 14px */
.sl-root .why{margin:10px 0 0;padding-left:1.2em;display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:1.65;color:var(--ink-2)}
.sl-root .why b{color:var(--ink)}
.sl-root .sum-dl{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;padding:12px 14px;background:var(--surface-2);border-radius:12px;font-size:13px}
.sl-root .sum-dl dt{color:var(--muted)}
.sl-root .sum-dl dd{margin:0;font-weight:700}
.sl-root .btn-lab{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 14px;border:0;border-radius:12px;background:var(--try);color:var(--on-try);font-size:14.5px;font-weight:700}
.sl-root .btn-lab{transition:background-color .2s,color .2s}
.sl-root .btn-lab:hover:not([disabled]):not([aria-disabled="true"]){background:var(--try-strong)}
.sl-root .btn-lab[disabled],.sl-root .btn-lab[aria-disabled="true"]{background:var(--surface-3);color:var(--muted)}
.sl-root .btn-lab[aria-disabled="true"]{cursor:default}
.sl-root .dock-lab{flex:0 1 420px;display:none;align-items:center;gap:10px;min-width:0}
.sl-root .dock.is-lab .dock-nav,.sl-root .dock.is-lab .keys,.sl-root .dock.is-lab #replayBtn{display:none}
.sl-root .dock.is-lab .dock-lab{display:flex}
.sl-root .dock-lab .btn{min-height:48px;border-radius:12px}
.sl-root .dock-lab .btn-lab{flex:1;min-height:48px}
.sl-root .dock-lab .btn-lab.is-next{font-size:16px}
/* 前へ while a playback is on screen: like 前へ in the lesson (a label on a PC, the arrow alone on a phone) */
.sl-root .dock-lab .lab-prev{flex:0 0 auto}
/* 1.21.0: which part of how many (「2 / 4」), between 前へ and the play button, as in the lesson; also on phones */
.sl-root .dock-lab .lab-count{min-width:44px}
.sl-root .dock-lab .lab-count[hidden]{display:none}
.sl-root .dock-lab .lab-count.is-blank{visibility:hidden}   /* 2.0.5: its room kept before a playback (the play button never moves) */
/* 2.0.5 (the UI review, 2026-11-21): while the lab plays, its result (the lesson's data-lab-below sections) waits faded, with
   a line saying so: the table said the end's states while the drawing played from the start */
.sl-root .lab-wait{display:none;margin:0 0 10px;padding:8px 12px;border-radius:10px;background:var(--try-soft-2);border:1px solid var(--try-line);font-size:14px;line-height:1.6;color:var(--ink-2)}
.sl-root .main.lab-busy .lab-wait{display:block}
.sl-root .main.lab-busy #labBelowBody > :not(.lab-wait){filter:grayscale(1)}   /* not opacity: the text keeps its contrast (test_axe: opacity .4 made the table's headings 1.9:1) */
.sl-root .lb-short{display:none}
.sl-root .crit b{margin-left:6px}
/* right under a changed setting: its Cisco command (and, when the diagram is above the settings, what it changed) */
.sl-root .lab-result{display:flex;flex-direction:column;gap:8px}
.sl-root .lab-result .lr-t,.sl-root .lab-result .lr-go{display:none}
.sl-root .lr-t{align-items:flex-start;gap:6px;min-width:0;margin:0}
.sl-root .lr-t svg{flex:0 0 auto;margin-top:4px;color:var(--try)}
.sl-root .lr-go{align-items:center;gap:4px;min-height:40px;color:var(--try-strong)}
/* Cisco IOS commands: a small console (the lab, under a change, and 初期設定). Values are highlighted;
   the lines the last change added are marked in violet, like everything changed in the lab. */
.sl-root .ios{display:flex;flex-direction:column;gap:2px;padding:8px 12px 10px;border:1px solid var(--ios-line);border-radius:10px;background:var(--ios-bg);color:var(--ios-ink);font-size:12.5px;line-height:1.55}
.sl-root .ios-top{align-self:flex-start;margin-bottom:2px;font-size:10px;font-weight:700;letter-spacing:.08em;color:var(--ios-dim)}
.sl-root .ios-l{padding-left:2ch;text-indent:-2ch;overflow-wrap:anywhere}
.sl-root .ios-p{color:var(--ios-prompt)}
.sl-root .ios-c b{font-weight:700;color:var(--ios-val)}
.sl-root .ios-kv{white-space:nowrap}
.sl-root .ios-l.ios-g{margin-top:5px}
.sl-root .ios-cm{color:var(--ios-comment);font-family:var(--font-ui);font-size:14px;line-height:1.6}
.sl-root .ios-l.fresh{margin-left:-12px;margin-right:-12px;padding:0 12px 0 calc(9px + 2ch);border-left:3px solid var(--try-ring);background:var(--ios-fresh)}
/* 2.0.3: 「最初の設定に戻す」 at the top of the lab's settings, on the right (16-lab.js). A thin outline, as the tools on the
   drawing's card (2.0.1): drawn inside the button, which keeps the size to press (44px high) */
.sl-root .lab-reset-row{display:flex;justify-content:flex-end;margin:-6px 0 -4px}
.sl-root .lab-reset{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:var(--ink);font-size:14px;font-weight:700}
.sl-root .lab-reset::before{content:"";position:absolute;inset:4px 0;z-index:-1;border:1.5px solid var(--line-strong);border-radius:999px;background:var(--node)}
.sl-root .lab-reset:hover::before{background:var(--surface-2)}
.sl-root .lab-reset svg{flex:none}
/* 2.0.2: the notes under the commands in the body's size (14px; 12px before: the user, 2026-11-20, 「文字が小さすぎる」) */
.sl-root .ios-note{display:flex;flex-direction:column;gap:2px;margin-top:8px;font-size:14px;line-height:1.7;color:var(--muted)}
.sl-root .ios-note+.ios-note{margin-top:4px}
.sl-root .ios-note code{padding:1px 6px;border-radius:5px;background:var(--surface-3);color:var(--ink-2);font-size:13px;white-space:nowrap}
.sl-root .ios-sec{padding-top:16px;border-top:1px solid var(--line-2)}
.sl-root .cfg-ios{display:flex;flex-direction:column;gap:8px}
.sl-root .cfg-ios .cfg-h{margin:0}
.sl-root .cfg-ios-lead{font-size:13px;color:var(--muted)}

/* 振り返り */
.sl-root .review{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,420px);gap:16px 20px;align-items:start;grid-column:1 / -1}
.sl-root .rv-main-card,.sl-root .rv-side{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.sl-root .rv-main-card{display:flex;flex-direction:column;gap:20px;padding:24px 28px}
.sl-root .rv-head{display:flex;flex-wrap:wrap;align-items:center;gap:20px 24px}
/* 2.0.5 (the UI review, 2026-11-21): under the ring, how many quizzes are not answered (「1/12」 alone read as 11 missed);
   the action the lead asks for, right under the lead */
.sl-root .rv-ring{display:flex;flex-direction:column;align-items:center;gap:4px}
.sl-root .rv-skip{font-size:13px;font-weight:700;color:var(--muted)}
.sl-root .rv-main-act{margin-top:12px}
.sl-root .rv-main-act .btn{min-height:48px}
.sl-root .rv-head-t{flex:1 1 300px;display:flex;flex-direction:column;gap:6px}
.sl-root .rv-kicker{font-size:13px;font-weight:700;color:var(--ok-ink)}
.sl-root .rv-head h1{margin:0;font-size:26px;line-height:1.4}
.sl-root .rv-head h1:focus{outline:none}
.sl-root .rv-head p{font-size:15px;line-height:1.7;color:var(--ink-2)}
.sl-root .score .sc-bg{fill:none;stroke:var(--line);stroke-width:11}
.sl-root .score .sc-fg{fill:none;stroke:var(--ok);stroke-width:11;stroke-linecap:round}
.sl-root .score .sc-n{font-family:var(--font-mono);font-size:26px;font-weight:700;fill:var(--ink)}
.sl-root .score .sc-l{font-size:11px;fill:var(--muted)}
.sl-root .score .sc-check{fill:none;stroke:var(--ok);stroke-width:7;stroke-linecap:round;stroke-linejoin:round}
.sl-root .rv-list-sec h2,.sl-root .rv-side h2{margin:0 0 8px;font-size:14px;color:var(--ink-2)}
.sl-root .rv-list{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.sl-root .rv-item{display:flex;align-items:center;gap:14px;padding:12px 16px;border-bottom:1px solid var(--line-2)}
.sl-root .rv-item:last-child{border-bottom:0}
.sl-root .rv-item.ng,.sl-root .rv-item.skip{background:var(--surface-2)}
.sl-root .rv-ic{flex:0 0 auto;display:inline-flex;width:26px;height:26px;border-radius:50%;align-items:center;justify-content:center;background:var(--ok);color:var(--on-role)}
.sl-root .rv-item.ng .rv-ic{background:var(--ng);color:var(--surface)}
.sl-root .rv-item.skip .rv-ic{background:var(--surface-3);color:var(--ink-2)}
.sl-root .rv-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.sl-root .rv-meta{font-size:12px;color:var(--muted)}
.sl-root .rv-q{font-size:14px;line-height:1.6}
.sl-root .rv-detail{font-size:13px;color:var(--ink-3)}
.sl-root .rv-detail s{color:var(--muted)}
.sl-root .rv-tag{flex:0 0 auto;font-size:13px;font-weight:700;color:var(--ok-ink)}
.sl-root .rv-go{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 6px;border:0;background:none;color:var(--accent);font-size:14px;font-weight:700}
.sl-root .rv-side{display:flex;flex-direction:column;gap:14px;padding:20px 22px}
.sl-root .dg.mini{display:block;width:100%;max-width:340px;height:auto;margin:0 auto}
.sl-root .rv-actions{display:flex;flex-direction:column;gap:8px}
.sl-root .rv-actions .btn{width:100%;min-height:48px;border-radius:12px;white-space:normal;text-align:center}
.sl-root .rv-try{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:0;background:none;color:var(--try);font-size:14px;font-weight:700}
.sl-root .rv-try:hover{text-decoration:underline;text-underline-offset:3px}
/* the playback bar is part of the diagram card, which the review hides: its way back and start over are here */
.sl-root .rv-fold p{margin:0 0 12px;font-size:14px;line-height:1.7;color:var(--ink-2)}   /* 2.0.6: a side that gives answers away, closed (17-app renderReview) */
.sl-root .rv-fold .btn{width:100%;min-height:48px;border-radius:12px;white-space:normal;text-align:center}
.sl-root .rv-side-body{display:flex;flex-direction:column;gap:14px}
.sl-root .rv-side-body:focus{outline:none}
.sl-root .rv-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;padding-top:8px;border-top:1px solid var(--line-2)}
.sl-root .rv-back{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:0;background:none;color:var(--accent);font-size:14px;font-weight:700}
.sl-root .rv-back:hover{text-decoration:underline;text-underline-offset:3px}

/* the 初期設定 dialog */
/* Inside Ping-t's iframe the "window" is the whole lesson, so a dialog opens near the button that opened it (--dlg-top, set by the script) and gets a height in pixels. */
.sl-root .cfg{width:min(900px,calc(100vw - 32px));max-height:min(640px,calc(100% - 32px));margin:var(--dlg-top,16px) auto auto;padding:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 24px 64px var(--shadow-sheet);overflow:hidden}
.sl-root .cfg[open]{display:flex;flex-direction:column}
.sl-root .cfg::backdrop{background:var(--scrim)}
.sl-root .cfg-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 16px;padding:20px 24px 14px;border-bottom:1px solid var(--line-2)}
.sl-root .cfg-head h2{margin:0;font-size:20px;line-height:1.4}
.sl-root .cfg-head-t{display:flex;flex-direction:column;gap:4px;min-width:0}
.sl-root .cfg-head-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
.sl-root .cfg-sub{font-size:14px;color:var(--muted)}
.sl-root .cfg-body{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:20px;padding:18px 24px 22px}
.sl-root .cfg-h{margin:0 0 10px;font-size:14px;font-weight:700;color:var(--ink-2)}
.sl-root .presets{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));gap:10px}
.sl-root .preset{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:10px 12px;border:1.5px solid var(--line-strong);border-radius:12px;background:var(--surface);color:var(--ink);text-align:left}
.sl-root .preset:hover{border-color:var(--accent)}
.sl-root .preset[aria-pressed="true"]{border:2px solid var(--accent);background:var(--accent-soft-2)}
.sl-root .preset-name{font-size:14px;font-weight:700;line-height:1.4}
.sl-root .preset-meta{font-size:12px;line-height:1.5;color:var(--muted)}
.sl-root .preset[aria-pressed="true"] .preset-meta{color:var(--ink-3)}
.sl-root .thumb .th-link{fill:none;stroke:var(--line-strong);stroke-width:2}
.sl-root .thumb .th-node{fill:var(--surface);stroke:var(--line-strong);stroke-width:1.5}
.sl-root .thumb .th-root{fill:var(--accent)}
.sl-root .thumb .th-block{fill:var(--role-b)}
.sl-root .cfg-result{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:10px;padding:10px 14px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;font-size:13px}
.sl-root .cfg-result-h{color:var(--ink-2)}
.sl-root .cfg-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,320px);gap:16px;align-items:start}
.sl-root .cfg-custom{display:flex;flex-direction:column;gap:14px;min-width:0;padding:14px 16px;border:1px solid var(--line);border-radius:14px}
.sl-root .cfg-custom .cfg-h{margin:0}
.sl-root .cfg-row{display:flex;flex-direction:column;gap:8px}
.sl-root .cfg-label{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:13px;font-weight:700;color:var(--ink-3)}
.sl-root .cfg-hint{font-size:12px;font-weight:400;color:var(--muted)}
.sl-root .cfg-custom .seg{align-self:flex-start}
.sl-root .cfg-preview{min-width:0;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.sl-root #pvSvg{display:block;width:100%;height:auto;max-height:340px}
.sl-root .cfg-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:14px 24px 18px;border-top:1px solid var(--line-2);background:var(--surface-2)}
.sl-root .cfg-note{font-size:13px;color:var(--muted)}
.sl-root .cfg-actions{display:flex;gap:10px;margin-left:auto}
.sl-root .cfg-actions .btn{min-height:48px}
/* 最初から: a small question next to the button, since nothing is saved and the answers cannot be brought back */
.sl-root .confirm-pop{gap:12px;padding:14px 16px}
.sl-root .cp-q{font-size:14px;font-weight:700;line-height:1.6}
.sl-root .cp-actions{display:flex;justify-content:flex-end;gap:8px}
.sl-root .cp-actions .btn{min-height:44px}

/* The strip in the panel: when any step's strip would not fit on one line above the diagram, all of them move here
   (placeStrips), so 次へ under the diagram stays at the same height on every step. */
.sl-root .main.strip-in-panel:not(.lab-on) #strip{display:none}
/* 1.32.0: a strip's steps are the same width lit or not (their words bold either way, so lighting one does not push the
   others along), and a strip that would not fit on one line in the card is packed, the same at every step, before it
   goes to the panel (placeStrips: 1 closer, 2 without the numbers, 3 its name small over it, 4 a size smaller). A phone
   is not packed */
.sl-root .crit{font-weight:700}
.sl-root .crit .crit-note{font-weight:400}
.sl-root .main.strip-pack1 :is(#strip,#stripProbe){gap:6px 4px;padding-left:12px;padding-right:12px}
.sl-root .main.strip-pack1 :is(#strip,#stripProbe) .crit{padding:0 7px}
.sl-root .main.strip-pack1 :is(#strip,#stripProbe) .chev{width:10px;height:10px}
.sl-root .main.strip-pack2 :is(#strip,#stripProbe) .crit .n{display:none}
.sl-root .main.strip-pack3 #strip{position:relative;padding-top:18px;min-height:56px}
.sl-root .main.strip-pack3 #strip .strip-h{position:absolute;top:3px;left:12px;font-size:11px;line-height:1.2;margin:0;white-space:nowrap}
.sl-root .main.strip-pack3 #stripProbe .strip-h{display:none}
.sl-root .main.strip-pack4 :is(#strip,#stripProbe){gap:6px 2px}
.sl-root .main.strip-pack4 :is(#strip,#stripProbe) .crit{padding:0 5px;font-size:12px}
.sl-root .main.strip-pack4 :is(#strip,#stripProbe) .chev{width:8px;height:8px}
.sl-root .main.strip-in-panel:not(.lab-on) #pstrip:not(:empty){display:flex}
.sl-root .pstrip{min-height:0;padding:8px 10px;font-size:12.5px;border:1px solid var(--line-2);border-radius:12px}
/* the order of the decision, top to bottom */
.sl-root .pstrip.is-steps{flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:4px}
.sl-root .pstrip.is-steps .chev{transform:rotate(90deg);margin-left:13px}

/* the keyboard hint needs a wide playback bar (the bar is as wide as the diagram card) */
@container sl (max-width:1399px){
  .sl-root .keys{display:none}
}
/* 1.13.0: on a PC (641px and up) the step navigation (前へ, N / 全体, 次へ; the lab's buttons too) comes right after
   the playback, on the left, and the right of the bar stays empty: Ping-t's question page has buttons fixed at the
   window's bottom right (メモ・お気に入り・すすむ) that can cover 次へ. No keyboard hint. (ユーザーの指示、2026-10-21:
   全教材の標準に。スイッチの動作 ステップラボで画面案から選んだ A。) Phones keep their bar. */
@container sl (min-width:641px){
  .sl-root .dock-in{justify-content:flex-start}
  .sl-root .keys{display:none}
}
/* 1.28.0: on a PC (641px and up) the chapters are one row that slides sideways when they do not fit: each name on one
   line, never cut short; while they fit, each has its share of the rail as before (1/6, or 1/n for more than six), a
   longer name taking more from the others (a column is never narrower than its name). An
   arrow over a fade shows an end where there is more (a click slides the row), and the current chapter is scrolled
   into view (17-app.js's railFit). (The user's request, 2026-10-29, サブネット計算 ステップラボ with 7 chapters:
   「章が長くなりすぎた場合はスライドできるようにできませんか？」, tried in that lesson first. Before, under 1200px the
   columns followed the names' lengths and more than six chapters took two lines (1.12.0); 1200px and up, a long name
   was cut short.) Phones keep their list of chapters. */
@container sl (min-width:641px){
  .sl-root .rail{position:relative}
  .sl-root .rail ol{--rail-gap:20px;display:flex;gap:0 var(--rail-gap);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
  .sl-root .rail ol::-webkit-scrollbar{display:none}
  .sl-root .rail ol>li:not(.rail-nq){flex:0 1 calc((100% - (var(--chn,6) - 1) * var(--rail-gap)) / var(--chn,6));min-width:max-content}
  .sl-root .rail ol .chap{min-width:7em}   /* (room for a chapter's bars, also when its name is short) */
  /* 1.35.0: 「第1章 ✓」 on a line of its own over the name, the rail as high as before (less room above and under): all
     the chapters in one row from 661px (they were from 701px; on one line with the name, from 861px, English 1,021px) */
  .sl-root .rail ol .chap{padding:4px 0 6px;gap:5px;position:relative}
  /* 2.0.5 (the UI review, 2026-11-21): a chapter's name looks pressable (a thin frame drawn outside it, which takes no room:
     the rail keeps its width); 「第1章 DRの役目 ∨」 in words alone read as headings */
  .sl-root .rail ol .chap::before{content:"";position:absolute;inset:-1px -7px 1px;border:1.5px solid var(--line-strong);border-radius:9px;background:var(--node);z-index:-1}
  .sl-root .rail ol .chap:hover::before{background:var(--surface-2)}
  .sl-root .rail ol>li{position:relative;z-index:0}
  .sl-root .rail ol{padding:2px 8px}   /* (room for the frames inside the scrolling row: no arrow appears for them) */
  .sl-root .rail ol .chap:focus-visible{outline-offset:-3px}   /* (in the rail: an outline outside the button was cut by the rail, the UI review, 2026-11-08) */
  .sl-root .rail ol .chap-top{flex-direction:column;align-items:flex-start;gap:0}
  .sl-root .rail ol .chap-name{overflow:visible;text-overflow:clip}
  .sl-root .rail-sl{position:absolute;top:0;bottom:1px;z-index:3;width:52px;display:flex;align-items:center;padding:0;border:0;cursor:pointer;color:var(--ink-2)}
  .sl-root .rail-sl[hidden]{display:none}
  .sl-root .rail-sl.l{left:max(24px,calc(50% - 776px));justify-content:flex-start;background:linear-gradient(to right,var(--surface) 55%,transparent)}
  .sl-root .rail-sl.r{right:max(24px,calc(50% - 776px));justify-content:flex-end;background:linear-gradient(to left,var(--surface) 55%,transparent)}
  .sl-root .rail-sl svg{width:16px;height:16px;padding:5px;box-sizing:content-box;border-radius:50%;background:var(--surface);border:1px solid var(--line-strong)}
  .sl-root .rail-sl:hover svg{background:var(--surface-2)}
  .sl-root .rail-sl:focus-visible{outline:none}
  .sl-root .rail-sl:focus-visible svg{outline:2px solid var(--accent);outline-offset:2px}
}
@container sl (max-width:1199px){
  .sl-root .rail ol{--rail-gap:14px}
}
/* 1.24.0: on a PC (641px and up) every chapter's bars sit at the bottom of the rail, on one line, also when some names
   take two lines and others one (the user's instruction, 2026-10-27; the kit's README). The rail is as tall as before.
   (Phones show the chapters as a list, not here; the 次のクイズへ item, .rail-nq, stays hidden on a PC.) */
@container sl (min-width:641px){
  .sl-root .rail ol>li:not(.rail-nq){display:flex}
  .sl-root .rail ol>li>.chap{flex:1 1 auto}
  .sl-root .chap .bars{margin-top:auto}
}
/* 880–1099px: still side by side, with a narrower panel */
@container sl (max-width:1099px){
  .sl-root .main,.sl-root .review{grid-template-columns:minmax(0,1fr) minmax(300px,340px)}
  .sl-root .keys{display:none}
  .sl-root .cluster .btn-label{display:none}
  .sl-root .cl-btn{width:44px;padding:0}
  .sl-root .cfg-sum{display:none}
}
/* under 880px: one column (the panel under the diagram) */
@container sl (max-width:879px){
  .sl-root .main,.sl-root .review{grid-template-columns:minmax(0,1fr)}
  /* the lab's settings are under the diagram: the result of a change also shows under the setting */
  .sl-root .lab-result{padding:10px 12px 2px;border:1px solid var(--try-line);border-radius:12px;background:var(--try-soft-2);font-size:14px;line-height:1.6;color:var(--ink-2)}
  .sl-root .lab-result .lr-t{display:flex}
  .sl-root .lab-result .lr-go{display:inline-flex;align-self:flex-start}
  /* the panel is under the diagram, so counters sit on the diagram itself, next to the animation */
  .sl-root .main.strip-in-panel:not(.lab-on) #pstrip.is-stats{display:none}
  .sl-root .main.strip-in-panel:not(.lab-on) .hud:not(:empty){display:grid}
}
@container sl (min-width:880px){
  /* the quiz is beside the diagram: no arrow down */
  .sl-root .tq-ic{display:none}
  /* 2.0.5 (the UI review, 2026-11-21): a TOPIC.brief lesson's quiz is under the card at every width (1.30.0): the arrow
     says where the choices are, as on a phone */
  .sl-root .dock.brief .tq-ic{display:inline-flex}
}
/* 実験ラボ: a little room under the drawing and a wider subtitle, so the lab's longer messages never cover the switches */
@container sl (min-width:641px){
  .sl-root .main.lab-on .diagram-wrap{position:relative}
  .sl-root .main.lab-on .dg-box{position:static;padding-bottom:24px}
  .sl-root .main.lab-on .sub{bottom:18px;max-width:min(560px,calc(100% - 24px))}
}
/* 2.0.2: the settings beside the drawing are narrow at every width side by side (280-320px; 340-420px from 1,100px
   before), so the drawing gets the wide picture as the lesson has it (from 640px: about 1,000px of lesson and wider).
   With the settings at 420px it got the phone's picture, scaled up, taller than the window: while the lab played, its
   subtitle was under the playback bar (the user's review of the lab, 2026-11-20). Side by side from 1,000px (880px
   before): narrower, the drawing beside the settings would be under 640px, the phone's picture again; from 880 to 999px
   the lab is in one column, as under 880px (the settings under the drawing, the result of a change under the setting) */
@container sl (min-width:880px) and (max-width:999px){
  .sl-root .main.lab-on{grid-template-columns:minmax(0,1fr)}
  .sl-root .main.lab-on .lab-result{padding:10px 12px 2px;border:1px solid var(--try-line);border-radius:12px;background:var(--try-soft-2);font-size:14px;line-height:1.6;color:var(--ink-2)}
  .sl-root .main.lab-on .lab-result .lr-t{display:flex}
  .sl-root .main.lab-on .lab-result .lr-go{display:inline-flex;align-self:flex-start}
}
@container sl (min-width:1000px){
  .sl-root .main.lab-on{grid-template-columns:minmax(0,1fr) clamp(280px,30%,320px)}
  /* the settings panel is as narrow as a small phone here: a segmented choice whose words do not fit (English
     "2 switches | 3 switches | 4 switches") shares the width and breaks its words instead of running out of the panel
     (it was cut off at the panel's edge). Choices that fit stay as they are. */
  .sl-root .lab .seg{flex-shrink:0;max-width:100%} /* it never shrinks beside its label: one that does not fit goes to its own line first */
  .sl-root .lab .seg button{min-width:0;white-space:normal}
  /* 2.0.2: a choice whose words are long (the DR lesson's シナリオ: 「4台を同時に起動」…) one under the other, one line
     each, instead of three lines in each button (the lesson marks it .seg-col) */
  .sl-root .lab .seg.seg-col{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
  .sl-root .lab .seg.seg-col button{justify-content:flex-start;text-align:left;padding:0 14px;min-height:40px}
}
/* 実験ラボ side by side: the sections the lesson marks data-lab-below (such as its commands and why it came out so) sit
   under the diagram (#labBelow), so the settings beside it stay short. The settings span both rows; the diagram keeps
   its own height. In one column (under 880px) the same card is under the settings card (1.36.0; 16-lab.js,
   placeLabBelow). */
.sl-root .lab-below .lab-body > :first-child{padding-top:0;border-top:0}
/* 1.36.0: the legend in the lab (17-app.js, placeLegend): over the settings column side by side, under the play bar in
   one column; it covers no part of the drawing */
.sl-root #lab{position:relative}
.sl-root .legend-pop.lg-side{top:12px;right:12px;left:12px;width:auto;max-height:calc(100% - 24px);overflow:auto;border-color:var(--line-strong)}
/* while it is open over the settings, the settings under it are faded (part of a setting showing under its edge read
   as broken: the UI review), and a tap on them closes it, as anywhere outside it */
.sl-root #lab.lg-on::before{content:"";position:absolute;inset:0;z-index:34;background:var(--surface);opacity:.85}
.sl-root .legend-pop.lg-below{position:static;width:auto;margin:0 16px 16px;box-shadow:none}
@container sl (min-width:1000px){   /* (2.0.2: 880px before) */
  .sl-root .main.lab-on.has-below{grid-template-rows:auto 1fr}
  .sl-root .main.lab-on.has-below > .stage{grid-column:1;grid-row:1}
  .sl-root .main.lab-on.has-below > #lab{grid-column:2;grid-row:1 / span 2}
  .sl-root .main.lab-on.has-below > #labBelow{grid-column:1;grid-row:2}
}
@container sl (max-width:760px){
  .sl-root .cfg-grid{grid-template-columns:minmax(0,1fr)}
  .sl-root .cfg-preview{order:-1}
  .sl-root #pvSvg{max-height:260px}
}
@container sl (max-width:640px){
  .sl-root .sl-app{font-size:14px}
  /* one row: the title, then the tools as icons (their names stay for screen readers) and the quiz switch */
  .sl-root .topbar{flex-wrap:nowrap;gap:6px;min-height:52px;padding:6px 12px 6px 16px}
  .sl-root .brand{flex:1 1 auto;min-width:0;font-size:15px;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sl-root .brand wbr{display:none}   /* 1.30.0: no break at a phrase in the title (fitBrand stacks a title too long for the row) */
  .sl-root .brand.brand-stack{display:flex;flex-direction:column;line-height:1.2}
  .sl-root .brand.brand-stack .brand-k{font-size:10.5px;letter-spacing:.08em;color:var(--accent)}
  .sl-root .brand.brand-stack .brand-n{font-size:13px;overflow:hidden;text-overflow:ellipsis}
  .sl-root .top-tools{flex:0 0 auto;flex-wrap:nowrap;gap:4px}
  .sl-root .top-tools .btn{min-width:40px;min-height:40px;padding:0 11px;gap:0}
  .sl-root .top-tools .btn-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .sl-root .top-tools .lang-btn{padding:0 8px;font-size:13px}
  .sl-root .lang-btn .lng-full{display:none}
  .sl-root .lang-btn .lng-abbr{display:inline}
  .sl-root .restart-btn{display:none}
  .sl-root .lab-banner{padding:0 16px}
  .sl-root .lab-banner-in{gap:10px;min-height:0;padding:8px 0}
  .sl-root .lb-ic{width:28px;height:28px}
  .sl-root .lb-text{flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;gap:0;font-size:12px}
  .sl-root .lb-title{font-size:14px}
  .sl-root .lb-desc{display:none}
  .sl-root .lb-where{display:none}   /* 2.0.5 (the user, 2026-11-21: 「長くて邪魔」): on a phone the band is one line, 実験ラボ and the way back */
  .sl-root .lb-back{min-height:40px;padding:0 10px;font-size:13px}
  .sl-root .lb-back .lb-long{display:none}
  .sl-root .lb-back .lb-short{display:inline}
  .sl-root .main.lab-on .stage{--dg-max-h:390px}
  /* (2.0.4: no result strip at the top of the settings on a phone: the subtitle right above it says the same, and a
     change says it under the setting changed. The user: 「上の行を消して」. .sb-summary stays hidden at every width) */
  .sl-root .sb-presets{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
  .sl-root .dock-lab{flex:1;gap:6px}
  .sl-root .dock-lab .btn{width:auto;padding:0 10px}
  .sl-root .dock-lab .btn-lab[disabled]{font-size:13px}
  .sl-root .dock-lab .btn-lab{font-size:14px;padding:0 8px}
  .sl-root .dock-lab .lab-prev{width:44px;padding:0}
  .sl-root .dock-lab .lab-prev .btn-label{display:none}
  .sl-root .dock-lab .lab-count:not([hidden]){display:inline-block;min-width:40px;font-size:13px}
  .sl-root .dock-lab .lab-count b{font-size:15px}
  .sl-root .switch{min-height:40px;gap:6px;padding:0 4px 0 10px;font-size:13px}
  .sl-root .switch .long{display:none}
  .sl-root .switch .short{display:inline;font-family:var(--font-mono)}
  .sl-root .switch-track{width:34px;height:20px}
  .sl-root .switch-thumb{width:14px;height:14px}
  .sl-root .switch[aria-checked="true"] .switch-thumb{transform:translateX(14px)}
  /* the chapter line opens a list of the chapters */
  .sl-root .rail{position:relative;padding:4px 16px 8px}
  .sl-root .rail-now{display:flex;align-items:center;gap:8px;min-height:36px;font-size:13px;font-weight:700}
  .sl-root .rail-now>span:first-child{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sl-root .rail-now .mono{flex:0 0 auto;color:var(--muted);font-weight:400}
  .sl-root .rail-now .mono b{color:var(--ink)}
  /* 2.0.3: the chapter line drawn as a button, in the thin outline of 「くわしく」「凡例」 (2.0.1). It opens the list of
     chapters, but looked like a heading (the user, 2026-11-21: 「スマホで、第3章の部分の文字がクリックできることが分からない」;
     of three 画面案 the user chose A, the whole line outlined). The pill is drawn inside the button (::before), 44px high */
  .sl-root .rail-now{position:relative;isolation:isolate;min-height:44px;gap:6px;padding:0 8px 0 12px}
  .sl-root .rail-now::before{content:"";position:absolute;inset:4px 0;z-index:-1;border:1.5px solid var(--line-strong);border-radius:999px;background:var(--node)}
  .sl-root .rail-now:hover::before{background:var(--surface-2)}
  .sl-root .rail-now[aria-expanded="true"]::before{background:var(--surface-3)}
  .sl-root .rail-now .rn-ic{color:var(--ink)}
  .sl-root .rail-bar{display:flex;gap:4px;margin-top:2px}
  .sl-root .rb-ch{display:flex;gap:2px}
  .sl-root .rb-ch i{flex:1;height:4px;border-radius:2px;background:var(--line)}
  .sl-root .rb-ch.done i,.sl-root .rb-ch i.done{background:var(--accent-done)}
  .sl-root .rb-ch i.now{background:var(--accent)}
  .sl-root .rail ol{display:none}
  .sl-root .rail.open ol{position:absolute;left:8px;right:8px;top:calc(100% - 4px);z-index:40;display:flex;flex-direction:column;gap:2px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px var(--shadow-sheet)}
  .sl-root .rail.open .chap{flex-direction:row;align-items:center;gap:12px;padding:6px 10px;border-radius:10px}
  .sl-root .rail.open .chap:hover{background:var(--surface-2)}
  .sl-root .rail.open .chap.current{background:var(--accent-soft-2)}
  .sl-root .rail.open .chap-top{flex:1 1 auto}
  .sl-root .rail.open .chap-name{white-space:normal}
  .sl-root .rail.open .bars{flex:0 0 64px}
  .sl-root .rail.open .rail-nq{display:block}
  .sl-root .rail-bar .rq{width:12px;height:12px;font-size:8.5px;box-shadow:0 0 0 1.5px var(--surface)}   /* 2.0.5: a ring of the page's colour parts marks side by side */
  .sl-root .rail-bar .rq svg{width:7px;height:7px}
  .sl-root .rail-bar .near-l .rq{margin-left:-5px}
  .sl-root .rail-bar .near-r .rq{margin-left:5px}
  .sl-root .main{padding:10px 16px 12px;gap:10px}
  .sl-root .stage{--dg-max-h:440px}
  .sl-root .stage-head{min-height:40px;padding:0 2px 0 10px;gap:6px}
  .sl-root .stage-title{flex-wrap:nowrap;gap:8px}
  .sl-root .stage-title h2{min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sl-root .topo{display:none}
  .sl-root .pill{font-size:11px;padding:3px 8px}
  .sl-root .tool{width:40px;min-height:40px;padding:0;justify-content:center}
  .sl-root .tool-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  /* 2.0.5 (the UI review, 2026-11-21): the legend's button says 凡例 on a phone too (the 「?」 alone read as help, and the
     terms in its box were not found); its tabs (図の見かた・用語) are as before */
  .sl-root #legendBtn{width:auto;padding:0 12px}
  .sl-root #legendBtn .tool-short{display:inline}   /* 2.0.5: 「凡例」 / 「Key」 (the full word stays for assistive technology) */
  .sl-root #legendBtn svg{display:none}
  .sl-root #strip{display:none}
  .sl-root .main:not(.lab-on) #pstrip:not(:empty){display:flex}
  .sl-root .pstrip{font-size:12px}
  .sl-root .ios{font-size:12px}
  /* counters sit on the diagram itself, next to the animation */
  .sl-root .main:not(.lab-on) #pstrip.is-stats{display:none}
  .sl-root .hud:not(:empty){display:grid}
  .sl-root .crit{min-height:28px;padding:0 9px}
  .sl-root .stat-v{font-size:14px}
  .sl-root .diagram-wrap{padding:4px}
  .sl-root .sub{font-size:13.5px}
  .sl-root .intro-card{padding:14px 16px}
  .sl-root .intro-h{font-size:16px}
  .sl-root .intro-p{font-size:13.5px;line-height:1.6}
  .sl-root .intro-p strong{font-size:15px}
  .sl-root .intro-lt{margin-top:10px;padding-top:8px}
  .sl-root .intro-list{font-size:13.5px;line-height:1.6;margin-bottom:12px}
  .sl-root .panel-body{padding:16px}
  .sl-root .title{font-size:19px}
  /* the chapter is on the line above (the chapter list), so the panel does not repeat it */
  .sl-root .eyebrow .ch,.sl-root .eyebrow.no-pill{display:none}
  .sl-root .body{font-size:14.5px}
  .sl-root .opts.many{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sl-root .dock-in{gap:6px;padding:10px}
  .sl-root .dock-play{flex:0 0 auto;gap:6px}
  .sl-root .dock-nav{flex:1;gap:6px}
  .sl-root .dock-count{display:none}
  .sl-root .nav-prev{width:44px;padding:0}
  .sl-root .nav-prev .btn-label{display:none}
  .sl-root .dock-nav .next{min-width:0;padding:0 8px;font-size:14px}
  .sl-root .dock-nav .next[disabled]{font-size:13.5px}
  .sl-root .cl-btn{width:40px}
  .sl-root .lab-body{padding:14px 16px}
  .sl-root .rv-main-card{padding:18px 16px}
  .sl-root .rv-side{padding:16px}
  .sl-root .rv-head h1{font-size:22px}
  .sl-root .rv-item{gap:10px;padding:12px}
  .sl-root .cfg{width:calc(100vw - 16px);max-width:calc(100vw - 16px);margin-top:var(--dlg-top,8px);border-radius:14px}
  .sl-root .cfg-head{padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px}
  .sl-root .cfg-body{padding:16px}
  .sl-root .cfg-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))}
  .sl-root .cfg-note{display:none}
  .sl-root .cfg-actions{width:100%}
  .sl-root .cfg-actions .btn{flex:1}
}
/* narrow phones: smaller gaps around the tools */
@container sl (max-width:420px){
  .sl-root .topbar{padding:6px 10px 6px 14px}
  .sl-root .top-tools{gap:3px}
  .sl-root .top-tools .btn{min-width:38px;padding:0 10px}
  .sl-root .top-tools .lang-btn{min-width:38px;padding:0 6px}
  .sl-root .switch{padding:0 4px 0 9px}
}
/* the smallest phones (Ping-t's column on a small phone): the title stacks (STP over its name), so the whole
   name fits next to the tools; segmented choices share the width */
@container sl (max-width:359px){
  .sl-root .brand{display:flex;flex-direction:column;line-height:1.2}
  .sl-root .brand-k{font-size:10.5px;letter-spacing:.08em;color:var(--accent)}
  .sl-root .brand-n{font-size:13px;overflow:hidden;text-overflow:ellipsis}
}
@container sl (max-width:344px){
  .sl-root .seg{max-width:100%}
  .sl-root .seg button{flex:1 1 auto;min-width:0;padding:0 8px;white-space:normal;line-height:1.25}
}
@container sl (max-width:380px){
  .sl-root .dock-nav .next span,.sl-root .dock-lab .btn-lab span{white-space:normal;line-height:1.25;font-size:13px}
}
/* The narrow drawing (phones, and a narrow pane beside the panel) has no strip for a subtitle laid over it: the
   subtitle sits under the drawing, so it never covers a switch. It keeps room for three lines even when empty,
   so nothing under it jumps. (After the lab's rules above, which it overrides.) */
.sl-root #dgBox.dg-narrow .sub{position:relative;left:auto;bottom:auto;transform:none;width:auto;max-width:none;min-height:calc(4.2em + 10px);margin-top:4px;padding:4px 10px;gap:8px;border-radius:10px;line-height:1.4;box-shadow:none}
.sl-root #dgBox.dg-narrow .sub.empty{display:flex;visibility:hidden}
.sl-root .main.lab-on #dgBox.dg-narrow{padding-bottom:0}
/* 1.45.0 (the user's choice C, 2026-11-12, OSPF DR・BDR ステップラボ's UI review: 次へ under the first 600px of a 390×600
   window): on a phone, outside the lab, the subtitle under the playback bar (17-app.js's placePhoneParts moves it after
   #dock), as it was under the drawing: the same look, its room for three lines kept. (By where it is: the subtitle's
   classes are set again as it plays) */
.sl-root .stage>.sub{position:relative;left:auto;bottom:auto;transform:none;width:auto;max-width:none;min-height:calc(4.2em + 10px);margin:0 10px 10px;padding:4px 10px;gap:8px;border-radius:10px;line-height:1.4;box-shadow:none}
.sl-root .stage>.sub.empty{display:flex;visibility:hidden}
/* the header's tools at the right of the chapter line; the header's own row goes (the title is on Ping-t's bar) */
@container sl (max-width:640px){
  .sl-root .topbar.tools-out{display:none}
  .sl-root .rail.tools-in{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:center;padding:6px 12px 8px 16px}
  .sl-root .rail.tools-in>*{grid-column:1/-1}
  .sl-root .rail.tools-in>.rail-now{grid-column:1;grid-row:1}
  .sl-root .rail.tools-in>.top-tools{grid-column:2;grid-row:1}
  .sl-root .rail.tools-in>.rail-bar{grid-row:2}
  /* (the open list of chapters, absolute: from the rail's edges as before, not the grid's columns. In the columns it
     stopped 1px short of the card's 凡例 button, which axe saw as a button almost covered: test_axe) */
  .sl-root .rail.tools-in>ol,.sl-root .rail.tools-in>.chap-pop{grid-column:auto;grid-row:auto}
  .sl-root .rail-now .rn-s{display:none}
  .sl-root .rail-now.is-short .rn-l{display:none}
  .sl-root .rail-now.is-short .rn-s{display:inline}   /* (17-app.js's fitRailNow: 「第4章」 alone when the name does not fit) */
  .sl-root .rail-now wbr{display:none}   /* (Chrome breaks at <wbr> even under nowrap: the chapter's name, narrower now, took two lines) */
  /* the quiz switch and 実験ラボ say what they are (「クイズ」「ラボ」: a 「Q」 and a flask alone were not read) */
  .sl-root .switch .short{font-family:inherit;font-weight:700}
  .sl-root .top-tools .lab-btn{gap:4px;padding:0 10px}
  .sl-root .top-tools .lab-btn .btn-short{display:inline;font-size:13px;font-weight:700}
}
.sl-root .btn-short{display:none}
/* 1.45.0: the strip is not repeated under 次へ while its copy shows in the drawing (17-app.js's placeStripCopy) */
.sl-root .main.strip-copied:not(.lab-on) #pstrip{display:none!important}
/* 1.45.0: a PC or a tablet (760px and up) of a TOPIC.brief lesson: もう一度再生 and 一時停止 say their words (the icons
   alone at 641–1,099px: the UI review, the user's choice, 2026-11-12. Narrower, the words ran into 前へ, up to 736px in Japanese: icons there) */
@container sl (min-width:760px){
  .sl-root .main.brief:not(.lab-on) .cluster .btn-label{display:inline}
  .sl-root .main.brief:not(.lab-on) .cl-btn{width:auto;padding:0 14px}
}
/* 2.0.5 (the UI review, 2026-11-21): in the lab 一時停止 says its word too, from 760px as in the lesson (it was an icon alone
   at 1,000–1,099px; and the widths are the lesson's: on a 1,280px PC with the site's list beside it, the lesson is under 1,000px) */
@container sl (min-width:760px){
  .sl-root .main.brief.lab-on .cluster .btn-label{display:inline}
  .sl-root .main.brief.lab-on .cl-btn{width:auto;padding:0 14px}
}
/* the copyright line under everything (a darker grey in the light lab: see the lab's colours) */
.sl-root .copy{max-width:1600px;margin:0 auto;padding:0 24px 16px;font-size:12px;color:var(--copy-ink,var(--muted));text-align:center}
@container sl (max-width:640px){
  .sl-root .copy{padding:0 16px 12px}
}
/* 図を見るだけで分かる配置 (kit 1.10.0, TOPIC.brief; ユーザーの指示、2026-10-19): one column at every width, the diagram
   as wide as the card (up to the height the drawing may take), the step's title over the diagram, the step's text
   folded under 「くわしく」 under the playback bar. The lab keeps its two columns. */
.sl-root .main.brief:not(.lab-on){grid-template-columns:minmax(0,1fr);max-width:1120px}
.sl-root .main.brief .stage{--dg-max-h:560px}
/* 1.14.0: on a PC (641px and up) the drawing is 450px high at most (ユーザーの指示、2026-10-21; design-guide.md 1章):
   on a learner's 1536×864 screen the card's head down to 次へ shows at once. Phones and the lab are as before */
@container sl (min-width:641px){.sl-root .main.brief:not(.lab-on) .stage{--dg-max-h:450px}}
.sl-root .main.brief:not(.lab-on) .stage-title h2{font-size:18px;line-height:1.4;font-weight:700}
.sl-root .main.brief:not(.lab-on) .stage-title h2 .title{font-size:inherit;line-height:inherit}
.sl-root .main.brief:not(.lab-on) .stage-title .pill[hidden]{display:none}
.sl-root .main.brief .panel.is-empty{display:none}
.sl-root .main.brief .panel-body{gap:12px;padding:12px 16px}
.sl-root .main.brief .tq-ic{display:inline-flex}
/* 1.14.0: 「くわしく」 from the card's head (17-app.js renderMore): the button, beside the card (1,024px and up) or over
   the drawing (narrower). Nothing of it under the playback bar */
/* 1.30.0: closed, the button looks like the other tools (凡例・用語); open, it is pressed (filled) */
.sl-root .tool.more-btn.on,.sl-root .tool.more-btn.on:hover{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}
.sl-root .tool.more-btn[hidden]{display:none}
@container sl (max-width:640px){.sl-root .tool.more-btn{width:auto;padding:0 10px}}   /* (a phone's tools are icons only: this one keeps its word) */
/* a PC's narrow window (up to 760px): the 「くわしく」 button takes room from the title, so the quiz pill keeps its Q only
   (as on a phone), and a quiz step's title does not go to a second row (次へ would move on those steps) */
@container sl (min-width:641px) and (max-width:760px){
  .sl-root .main.brief:not(.lab-on) .stage-title .pill-q .pill-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@container sl (max-width:360px){.sl-root .tool.more-btn{padding:0 7px;font-size:12.5px}}   /* a long English title keeps to 2 lines */
.sl-root .more{display:flex;flex-direction:column;gap:6px;border-radius:12px}
.sl-root .more-h{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sl-root .more-t{margin:0;font-size:15px;font-weight:700;color:var(--accent)}
.sl-root .more-x{min-height:44px;padding:0 12px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink-2);font:inherit;font-size:13.5px;font-weight:700;white-space:nowrap}
.sl-root .more-x:hover{background:var(--surface-2)}
.sl-root .more-in{display:flex;flex-direction:column;gap:12px;padding:4px 4px 6px}
/* 1.17.0: the strip's copy beside the card, in 「くわしく」 under its head (17-app.js moreSection) */
.sl-root .more>.pstrip{margin:8px 0 10px}
@container sl (min-width:1024px){
  .sl-root .main.brief.with-more-side:not(.lab-on):not(.is-review){grid-template-columns:minmax(0,1fr) 300px;max-width:1436px;column-gap:16px}
  /* the narrow column takes the phone's table: smaller text, closer cells */
  .sl-root .main.brief.with-more-side .panel .step-tbl{font-size:12.5px}
  .sl-root .main.brief.with-more-side .panel .step-tbl th,.sl-root .main.brief.with-more-side .panel .step-tbl td{padding:7px 7px}
  .sl-root .main.brief.with-more-side .panel .more-in{padding:4px 0 6px}
  /* 1.15.0: the button for its length (17-app.js moreLenFit) just before 閉じる, on one line with it (with a scrollbar,
     Windows, the head is narrower: the gaps are closer). Short: its bottom at the playback bar's top, its text scrolling
     inside it (what is in it keeps its height: the strip's copy, the quiz, 「くわしく」 do not shrink), a light shade at
     its bottom while there is more under it (.more-end: none at the end of the text). The shade is over what is in the
     column (a box with a background, a table, would hide a shade drawn as the column's background) */
  .sl-root .main.brief.with-more-side .more-h{gap:6px}
  .sl-root .main.brief.with-more-side .more-h .more-t{min-width:0;white-space:nowrap}
  .sl-root .main.brief.with-more-side .more-h .more-len{margin-left:auto;flex:0 0 auto;padding:0 9px;word-break:keep-all}
  .sl-root .main.brief.with-more-side .more-h #moreClose{flex:0 0 auto;padding:0 10px}
  .sl-root .main.brief.with-more-side.more-short .panel{overflow:hidden}
  .sl-root .main.brief.with-more-side.more-short .panel-body{flex:1 1 auto;min-height:0;overflow-y:auto;scroll-padding:8px 0 26px}
  .sl-root .main.brief.with-more-side.more-short .panel-body>*{flex-shrink:0}
  /* (the shade takes no room: its 18px and the column's gap, 12px, are taken back by its top margin; its sides reach
     the column's sides, over the padding, 16px. A lesson that changes those at 1,024px and up changes these too) */
  .sl-root .main.brief.with-more-side.more-short .panel-body::after{content:'';position:sticky;z-index:2;bottom:0;flex:0 0 18px;margin:-30px -16px 0;pointer-events:none;
    background:linear-gradient(color-mix(in srgb,var(--ink) 0%,transparent),color-mix(in srgb,var(--ink) 12%,transparent))}
  .sl-root .main.brief.with-more-side.more-short.more-end .panel-body::after{visibility:hidden}
}
.sl-root .more-len[hidden]{display:none}
.sl-root .main.brief .diagram-wrap{position:relative}
.sl-root .more-over{position:absolute;inset:0;z-index:30;display:flex;flex-direction:column;background:var(--surface);border-top:1px solid var(--line-2)}
.sl-root .more-over[hidden]{display:none}
.sl-root .more-over .more{flex:1 1 auto;min-height:0;gap:0}
.sl-root .more-over .more-h{flex:0 0 auto;padding:6px 12px 6px 16px;border-bottom:1px solid var(--line-2)}
.sl-root .more-over .more-in{flex:1 1 auto;min-height:0;overflow:auto;padding:12px 16px 16px}
.sl-root .more-over .more-in:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
/* 1.39.0: on a phone, 「くわしく」 over the drawing (.more-sheet); 2.0.4: always over its whole area (.more-cover, below), in
   every lesson (1.39.0's lower part, TOPIC.moreSheet: true, is gone) */
.sl-root .more-over.more-sheet{inset:var(--more-sheet-top,46%) 4px 4px;border:1px solid var(--line-2);border-radius:14px 14px 10px 10px;box-shadow:0 -6px 16px rgba(20,30,50,.18)}
.sl-root .more-over.more-sheet .more-in{padding:12px 14px 16px}
/* 1.40.0 ('cover'; 2.0.4: always): 「くわしく」 in the drawing's whole area, in its place. The scrolling box has no rounded
   corners of its own (1.39.0 had them: on an iPhone a line of the text was drawn twice, a repaint suspected there) */
.sl-root .more-over.more-sheet.more-cover{inset:4px;border-radius:10px;box-shadow:none}
.sl-root .tool.more-btn.sheet .more-btn-t{display:inline-grid}
.sl-root .tool.more-btn.sheet .more-btn-t>span{grid-area:1/1;text-align:center}
.sl-root .tool.more-btn.sheet:not(.is-close) .mbt-close,.sl-root .tool.more-btn.sheet.is-close .mbt-more{visibility:hidden}
/* (2.0.5: 「くわしく」 takes the drawing's place at every width: the button says 閉じる while it is open, at every width) */
/* the review: 「くわしく」 for a learner who never opened it */
.sl-root .rv-more{margin-top:12px;padding:12px 14px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;border:1px solid var(--accent-line);border-radius:12px;background:var(--accent-soft)}
.sl-root .rv-more p{margin:0;font-size:14px;line-height:1.7;color:var(--ink)}
.sl-root .rv-more-go{max-width:100%;height:auto;min-height:44px;padding:8px 14px;border-color:var(--accent);color:var(--accent);background:var(--surface);white-space:normal;text-align:left;line-height:1.45}
.sl-root .more-in .body{font-size:14.5px;line-height:1.8}
.sl-root .main.brief .next-quiz{padding-top:8px}
@container sl (max-width:640px){
  .sl-root .main.brief:not(.lab-on) .stage-title{flex-wrap:nowrap}
  .sl-root .main.brief:not(.lab-on) .stage-title h2{flex:1 1 auto;min-width:0}
  /* a phone: the quiz pill keeps its Q only, and 見るだけ steps aside (the header's quiz switch says it), so the title has the room */
  .sl-root .main.brief:not(.lab-on) .stage-title .pill-q .pill-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .sl-root .main.brief:not(.lab-on) .stage-title .pill-gray{display:none}
  /* two lines are kept for the title, so the diagram and 次へ stay where they are when a title is longer (a quiz's
     title while it asks and after it is answered, one step and the next) */
  .sl-root .main.brief:not(.lab-on) .stage-title h2{display:flex;align-items:center;min-height:2.8em;font-size:15px;white-space:normal;overflow:visible;text-overflow:clip}
  .sl-root .main.brief .stage-head{min-height:44px;padding:6px 2px 6px 12px}
  .sl-root .main.brief .panel-body{padding:8px 12px}
}
@media (prefers-reduced-motion:reduce){
  .sl-root .pop,.sl-root .pulse,.sl-root .lk-glow,.sl-root .led.blink,.sl-root .tmc.flash .tmc-bar,.sl-root .pt.tm-flash .tmring{animation:none}
  .sl-root .switch-track,.sl-root .switch-thumb,.sl-root .lk,.sl-root .nd .box{transition:none}
  .sl-root .crit,.sl-root .crit .n{transition:none}   /* 1.29.0 */
}
/* 1.25.0 (TOPIC.terms): narrower than 700px, no 用語 button (no room beside the title); the legend's box has two tabs */
@container sl (max-width:699px){
  .sl-root .terms-btn,.sl-root .terms-pop{display:none!important}
  .sl-root .legend-pop.has-terms .lg-tabs{display:flex;gap:4px;margin:-4px 0 8px;border-bottom:1px solid var(--line)}
  .sl-root .lg-tab{position:relative;min-height:40px;padding:0 12px;border:0;border-bottom:2px solid transparent;background:none;color:var(--ink-3);font-size:14px;font-weight:700}
  .sl-root .lg-tab[aria-selected="true"]{color:var(--accent);border-bottom-color:var(--accent)}
  .sl-root .legend-pop.has-terms > .legend-h{display:none}
  .sl-root .legend-pop.show-terms > .legend,.sl-root .legend-pop.show-terms > .legend-note{display:none}
  .sl-root .legend-pop.show-terms > .tm-pane{display:block;max-height:min(58vh,420px);overflow:auto}
  .sl-root .legend-pop.show-terms > .tm-pane > .legend-h{display:block}
}
/* 1.37.0: a chapter's steps (17-app.js renderChapSteps). The ∨ after the chapter's name says the button opens a list;
   the list: the step's number, its title, the quiz's mark (quizzes on), いま at the current step */
.sl-root .chap-nl{display:flex;align-items:center;gap:4px;min-width:0;max-width:100%}
.sl-root .chap-nl .chap-name{min-width:0}
.sl-root .chap-chev{flex:0 0 auto;display:inline-flex;align-items:center;color:var(--ink-2)}
.sl-root .chap-chev svg{width:13px;height:13px;transition:transform .15s}
.sl-root .chap.open .chap-chev svg{transform:rotate(180deg)}
.sl-root .chap-pop[hidden]{display:none}
.sl-root .cp-row{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:5px 10px;border:0;border-radius:10px;background:none;
  text-align:left;font:inherit;font-size:14px;line-height:1.4;color:var(--ink);cursor:pointer}
.sl-root .cp-row:hover{background:var(--surface-2)}
.sl-root .cp-row:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.sl-root .cp-row.done .cp-t{color:var(--ink-2)}
.sl-root .cp-row.now{background:var(--accent-soft-2);font-weight:700}
.sl-root .cp-n{flex:0 0 2em;text-align:right;font-size:12.5px;color:var(--ink-3)}
.sl-root .cp-row.now .cp-n{color:var(--accent)}
.sl-root .cp-t{flex:1 1 auto;min-width:0}
.sl-root .cp-row .rq{position:static;transform:none;flex:0 0 auto}
.sl-root .cp-here{flex:0 0 auto;font-size:11px;font-weight:700;line-height:1.5;color:var(--accent);border:1px solid var(--accent-line);border-radius:999px;padding:0 7px}
@container sl (min-width:641px){
  .sl-root .chap.open .chap-name{text-decoration:underline;text-underline-offset:3px}
  .sl-root .chap-pop{position:absolute;z-index:45;max-height:min(470px,72vh);overflow:auto;padding:6px;background:var(--surface);border:1px solid var(--line);
    border-radius:14px;box-shadow:0 12px 32px var(--shadow-sheet)}
}
@container sl (max-width:640px){
  .sl-root .chap-pop{display:none}
  .sl-root .rail.open .chap .bars{display:none}   /* (the list's rows: ∨ in place of the bars; the line above keeps one bar for the lesson) */
  .sl-root .rail.open .chap-nl{flex:1 1 auto;gap:8px}
  .sl-root .rail.open .chap-chev{margin-left:auto}
  .sl-root .rail.open .chap-chev svg{width:13px;height:13px}
  .sl-root .rail.open .chap-sub{list-style:none;margin:0 0 4px 22px;padding:2px 0 4px 4px;border-left:2px solid var(--accent-line)}
  .sl-root .rail.open .chap-sub>div{display:flex;flex-direction:column;gap:2px}
  .sl-root .rail.open .chap-sub .cp-row{min-height:40px;font-size:13.5px}
}
/* 2.0.0: the lesson as one part of the StepLab site's page (the report 「画面の境目」). The site gives it a column (the
   window less the list of lessons) and draws only outside .sl-root; the lesson draws only inside. The lesson is 320px to
   1,100px wide (centred in a wider column) and every width it asks is its own (container queries: css-scope.mjs). The
   bottom of the window is the playback bar's (PC 84px, a phone 74px): fixed there, so 次へ is in the same place at every
   step and at every scroll (the site keeps room for it under its footer). --site-header-h (the site's): the height of
   the site's parts above the lesson. */
.sl-root{display:block;max-width:1100px;margin:0 auto;container:sl/inline-size;--sl-pad:24px;--sl-bar-h:84px}
@container sl (max-width:640px){.sl-root .sl-app{--sl-pad:16px;--sl-bar-h:74px}}
.sl-root .sl-app{background:transparent;scroll-margin-top:8px}
.sl-root .sl-app *{scroll-margin-bottom:calc(var(--sl-bar-h) + 12px)}
/* the lesson's own row: its title (the page's h1) and its tools */
.sl-root .topbar{padding:0 var(--sl-pad);background:transparent;border-bottom:0;min-height:56px}
.sl-root .topbar .brand{margin:0}
.sl-root .rail{padding:0 var(--sl-pad);background:transparent}
.sl-root .lab-banner{margin:0 var(--sl-pad);border-radius:16px}
.sl-root .main{max-width:none;margin:0;padding:16px var(--sl-pad) 20px}
.sl-root .review{max-width:none}
.sl-root .locked{padding:48px 20px 24px}
/* the playback bar: out of the card, fixed to the bottom of the window across it (the site's list of lessons, over it,
   covers its left end), its buttons over the lesson's column (--sl-dock-left / --sl-dock-w: the lesson's place, set by
   placeDock in 17-app.js). A sticky bar (2.0.0 before it was submitted) rose by the footer's height when the page was
   scrolled to its end, and 次へ moved between steps (the kit's test_flow, test_more). Under the lesson, room for it. */
.sl-root .sl-app{padding-bottom:var(--sl-bar-h)}
.sl-root .dock{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;align-items:center;min-height:var(--sl-bar-h);margin:0;border-radius:0;
  background:var(--surface);border-top:2px solid var(--ink)}
.sl-root .dock-in{flex:0 0 auto;box-sizing:border-box;width:var(--sl-dock-w,100%);max-width:100%;margin-left:var(--sl-dock-left,0);min-width:0;padding:0 var(--sl-pad)}
.sl-root .keys{display:none!important}
/* the drawing's height (641px and wider): no taller than what the window leaves under the site's parts (--site-header-h)
   and the lesson's own (its row, the chapters, the card's head and strip, the playback bar: about --sl-chrome), so the
   card is in sight above the playback bar; not below 280px. A phone's drawing follows its width (the page scrolls). */
@container sl (min-width:641px){.sl-root .dg-box{max-width:calc(min(var(--dg-max-h),max(280px,100vh - var(--site-header-h,0px) - var(--sl-chrome,352px))) * var(--ar,1.58));max-width:calc(min(var(--dg-max-h),max(280px,100svh - var(--site-header-h,0px) - var(--sl-chrome,352px))) * var(--ar,1.58))}}
.sl-root .copy{display:none}
/* 2.0.0: ジオラマ, the look of the StepLab site (the user's choice, 2026-11-19: 案1 ジオラマ, no shadow on the floor, PCs from
   the front; the design's artifact, 「サイト」 and 「3教材」). Over the parts' CSS (01-04): the cards and the buttons are
   outlined in ink (--edge) with a hard shadow under them (--lift), the headings in a rounded face (--font-head), the
   drawing on a lattice. Only the look: no size that the layout or the tests measure changes here, except the playback
   bar's buttons (48px high) and the cards' corners. The colours are tokens.css's. */
.sl-root .sl-app{color:var(--ink)}
.sl-root .brand,.sl-root .stage-title h2,.sl-root .title,.sl-root .rv-head h1,.sl-root .intro-h,.sl-root .lb-title,.sl-root .cfg-head h2,.sl-root .more-h{font-family:var(--font-head)}
.sl-root .topbar .brand{font-size:20px;letter-spacing:.01em}
.sl-root .brand-k{color:var(--accent);margin-right:.25em}

/* buttons: outlined, a hard shadow under them that they sink into when pressed */
.sl-root .btn,.sl-root .switch,.sl-root .cluster,.sl-root .icon-btn{border:2px solid var(--edge);box-shadow:0 3px 0 var(--lift);background:var(--node);color:var(--ink);font-weight:700}
.sl-root .btn,.sl-root .icon-btn{border-radius:12px}
.sl-root .switch:hover,.sl-root .icon-btn:hover{background:var(--surface-2)}   /* (.btn:hover is the kit's: a pressed 実験ラボ keeps its violet) */
.sl-root .btn:where(:active:not([disabled]):not([aria-disabled="true"])),.sl-root .switch:active,.sl-root .icon-btn:active{transform:translateY(2px);box-shadow:0 1px 0 var(--lift)}
.sl-root .btn-primary{background:var(--accent);border-color:var(--edge);color:var(--on-accent);box-shadow:0 4px 0 var(--lift);border-radius:14px}
.sl-root .btn-primary:hover:not([disabled]):not([aria-disabled="true"]){background:var(--accent-hover)}
.sl-root .lab-btn{border-color:var(--try);color:var(--try);box-shadow:0 3px 0 var(--try)}
.sl-root .lab-btn[aria-pressed="true"]{background:var(--try);border-color:var(--edge);color:var(--on-try);box-shadow:0 3px 0 var(--lift)}
.sl-root .lab-btn[aria-pressed="true"]:hover:not([disabled]){background:var(--try-strong)}
.sl-root .switch{border-radius:12px;padding:0 8px 0 14px}
.sl-root .switch-track{background:var(--line);border:1.5px solid var(--edge)}
.sl-root .switch-thumb{top:1.5px;left:1.5px;border:1.5px solid var(--edge);box-shadow:none}
.sl-root .cluster{border-radius:12px;overflow:hidden}
.sl-root .cl-btn{color:var(--ink);font-weight:700}
.sl-root .cl-btn+.cl-btn{border-left:2px solid var(--edge)}

/* the chapters: on the page, under a soft rule */
.sl-root .rail{border-bottom:1.5px solid var(--line)}
.sl-root .bars{gap:3px}
.sl-root .bars i{height:5px;border-radius:999px;background:var(--line)}
.sl-root .bars i.done{background:var(--accent-done)}
.sl-root .bars i.now{background:var(--accent)}
.sl-root .chap-no{font-size:12px;line-height:16px}
.sl-root .chap-name{font-size:14px}

/* the cards: outlined in ink, round corners, a hard shadow under them */
.sl-root .stage,.sl-root .panel,.sl-root .lab,.sl-root .lab-below,.sl-root .rv-main-card,.sl-root .rv-side,.sl-root .review-card{border:2px solid var(--edge);border-radius:22px;box-shadow:0 5px 0 var(--lift)}
/* 2.0.3: the lab's drawing card in a violet frame (the lab no longer tints the page: 01-style-tokens.html) */
.sl-root .main.lab-on .stage{border-color:var(--lab-frame);box-shadow:0 5px 0 var(--lab-frame)}
.sl-root .stage-head{border-bottom:1px solid var(--line);border-radius:20px 20px 0 0;min-height:58px}
.sl-root .stage-title h2{font-size:20px;line-height:1.4}
/* 2.0.1: 「くわしく」「凡例」「用語」 drawn as buttons, in a thin outline (they were words alone, and looked like the rest of
   the card's head: the user, 2026-11-20, 「押せると分かりにくい気がする…毎回少し探してしまう」. Of the two 画面案 the user chose
   B, the quieter one, over A, outlined in ink with a hard shadow like the playback bar's buttons). The pill is drawn inside
   the button (::before), so the button keeps the kit's size to press (44px high; a phone's 40px square) */
.sl-root .stage-tools{gap:6px}
.sl-root .tool{position:relative;isolation:isolate;color:var(--ink);font-size:14px;border-color:transparent;background:transparent}
.sl-root .tool::before{content:"";position:absolute;inset:4px 0;z-index:-1;border:1.5px solid var(--line-strong);border-radius:999px;background:var(--node)}
.sl-root .tool:hover,.sl-root .tool[aria-expanded="true"]{background:transparent}
.sl-root .tool:hover::before{background:var(--surface-2)}
.sl-root .tool[aria-expanded="true"]::before{background:var(--accent);border-color:var(--accent)}   /* 2.0.5: open looks as 「くわしく」 open does (the UI review) */
.sl-root .tool[aria-expanded="true"]{color:var(--on-accent)}
.sl-root .tool.more-btn.on,.sl-root .tool.more-btn.on:hover{background:transparent;border-color:transparent}
.sl-root .tool.more-btn.on::before{background:var(--accent);border-color:var(--accent)}
.sl-root .tool.more-btn.on:hover::before{background:var(--accent-hover)}
@container sl (min-width:641px){.sl-root .tool{padding:0 14px}}
@container sl (max-width:640px){.sl-root .tool::before{inset:2px 0}}
/* (an outline needs room from the card's round corner: the head's right padding was 8px, 2px on a phone, for words alone) */
.sl-root .stage-head{padding-right:14px}
@container sl (max-width:640px){.sl-root .main.brief .stage-head{padding-right:8px}}
.sl-root .strip{background:var(--strip-bg);border-bottom:1px solid var(--line);font-size:13px}
.sl-root .strip-h{color:var(--muted)}
.sl-root .crit{background:var(--node);border:2px solid var(--edge);color:var(--ink);font-weight:700}   /* (30px high, the kit's: a step with no strip keeps the strip's place at the same height) */
.sl-root .crit .n{background:var(--num);color:var(--ink);width:20px;height:20px;font-family:var(--font-mono);font-size:12px}
.sl-root .crit.now{background:var(--accent);border-color:var(--edge);color:var(--on-accent);box-shadow:0 3px 0 var(--lift)}
.sl-root .crit.now .n{background:var(--on-accent);color:var(--accent)}
.sl-root .strip-copy .crit{border-width:1.5px;min-height:2em}
.sl-root .strip-copy .crit.now{box-shadow:0 2px 0 var(--lift)}
/* the drawing: on a lattice, which is the card's under its head (so a step with no strip keeps the strip's place on the
   same lattice, and a phone's subtitle under the drawing is on it too) */
.sl-root .stage{background-color:var(--host-bg);background-image:repeating-linear-gradient(26.565deg,transparent 0 27px,var(--host-grid) 27px 28px),repeating-linear-gradient(-26.565deg,transparent 0 27px,var(--host-grid) 27px 28px)}
.sl-root .stage-head,.sl-root .stage-note{background:var(--surface)}
/* the subtitle: a dark pill over the drawing's bottom (a phone: under it, in the card) */
.sl-root .sub{background:var(--sub-bg);color:var(--sub-ink);border:0;border-radius:999px;box-shadow:0 3px 0 var(--lift-soft);padding:8px 18px;font-size:15px}
.sl-root .stage>.sub,.sl-root #dgBox.dg-narrow .sub{border-radius:14px;box-shadow:0 3px 0 var(--lift-soft)}

/* the narration, 「くわしく」, quizzes */
.sl-root .panel-body{gap:14px}
.sl-root .quiz{background:var(--q-bg);border:2px solid var(--edge);border-radius:16px;box-shadow:0 3px 0 var(--lift)}
.sl-root .opt{border:2px solid var(--edge);border-radius:12px;background:var(--node);box-shadow:0 2px 0 var(--lift);font-weight:700}
.sl-root .opt:hover:not([disabled]){background:var(--accent-soft);border-color:var(--edge)}
.sl-root .opt.ok{border-color:var(--ok);background:var(--ok-soft)}
.sl-root .key{border:2px solid var(--accent-line);border-radius:14px}
.sl-root .step-tbl{border:2px solid var(--edge);border-radius:12px}
.sl-root .legend-pop,.sl-root .term-pop,.sl-root .chap-pop{border:2px solid var(--edge);border-radius:16px;box-shadow:0 4px 0 var(--lift)}
/* the lab's legend in the settings column or under the drawing is in the page's flow: no shadow over what follows it */
.sl-root .legend-pop.lg-side,.sl-root .legend-pop.lg-below{box-shadow:none}
.sl-root .nq-btn{border-radius:12px}

/* the playback bar (the bottom of the window): 48px buttons, 次へ wide */
.sl-root .dock{border-top:2px solid var(--edge)}
.sl-root .dock-nav .btn,.sl-root .cl-btn,.sl-root .dock-lab .btn,.sl-root .dock-lab .btn-lab{min-height:48px}
.sl-root .cl-btn{min-height:44px}
.sl-root .dock-nav .next{font-size:16px}
.sl-root .dock-nav .next[aria-disabled="true"],.sl-root .dock-nav .next[disabled]{background:var(--surface-3);border-color:var(--line-strong);color:var(--muted);box-shadow:0 3px 0 var(--line-strong)}
.sl-root .dock-nav .next.to-quiz{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);box-shadow:0 3px 0 var(--accent)}
/* 2.0.7: hovered, the light buttons stay light (.btn-primary:hover, as specific and later, gave them the blue under their dark
   text: 「最初からやり直す」 at 1.3:1 under the mouse. The UI review of STP, 2026-11-22) */
.sl-root .dock-nav .next.alt:hover:not([disabled]):not([aria-disabled="true"]){background:var(--surface-2)}
.sl-root .dock-nav .next.to-quiz:hover:not([disabled]):not([aria-disabled="true"]){background:var(--accent-soft-2)}
.sl-root .dock-count{font-family:var(--font-mono);font-size:15px;min-width:86px}   /* (「9 / 56」 and 「10 / 56」 the same width: 次へ does not move) */
.sl-root .dock-count b{font-size:18px}
@container sl (min-width:880px){.sl-root .dock-nav{flex:0 1 auto}.sl-root .dock-nav .next{flex:0 0 254px}.sl-root .dock-in{justify-content:flex-start}}
