/* Experiment step screen (lab/exp.js). Layout of the approved mockups (wes-experiments draft-a, pi-desk #201): one
   screen, no page scroll; the book header stays above the page-owned toolbar, with the sidebar available as its drawer. This file keeps the
   layout only (placement, widths, heights, positions); colours, type, spacing, borders and the components shared with
   the task cards are in lab/course-theme.css, in the textbook's tokens. */

html.exp-page:not(.report-page) body > .family-links { display: none !important; }
html.exp-page:not(.report-page) body > :is(.remi-bar, .family-header) { flex: none; position: relative !important; top: auto !important; visibility: visible !important; }
html.exp-page:not(.report-page) body > .remi-bar { display: block !important; }
html.exp-page:not(.report-page) body > .family-header { display: flex !important; }
html.exp-page:not(.report-page) body > .book-layout { display: contents !important; }
html.exp-page:not(.report-page) .book-layout > main { display: none !important; }
@media (min-width: 1081px) {
  html.exp-page:not(.report-page) .book-layout > .book-sidebar { display: none; }
}
@media (min-width: 761px) {
  html.exp-page:not(.report-page) body { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
  html.exp-page:not(.report-page) #exp-app { flex: 1; height: auto; min-height: 0; }
}

/* First paint (PI 2026-11-11 17:4x KST, wireless-embed window: "그리고 실험/실습 페이지 누르면 이전 내용이 나오다가 로딩이 다
   끝나야 새 페이지가 나오는데 처음부터 좀 깔끔하게 띄울순 없어?"; measured 17:5x, pi-desk records/wireless-embed/20261111-page-load:
   the 실험 page painted its old notebook form at 0.13 s, went blank at 1.6 s and showed the one-screen page at 1.9-2.0 s). The
   chapter's front matter (lab-css: notebook course-theme exp) links notebook.css, course-theme.css and this file in the head, in the
   order the scripts linked them before (this file last, winning the ties), so these rules hold
   before any script; they key on the page's kind (html[data-course-kind="exp"], written by the build). Until exp.js has built
   the screen (html.exp-ready, added in a finally when mountExperiment settles), the page's own body stays hidden and the screen
   shows the experiment's empty frame at the built screen's sizes: the top bar (56 px), the step bar (50 px; 44 px at a height
   of 1000 px or less) and 준비's form, the screen both 실험 pages open on (exp.js at = 0; layout B, session ruling 2026-11-12
   00:1x): its top row (band, --exp-prep-row: 123 px; 107 px at a height of 1000 px or less, the row's measured height in job
   lr-wes-experiments-261111161537 with its border, and its min-height below) over the text at the page width (paper), so
   nothing changes shape when the screen arrives.
   visibility, not display: notebook.js reads the cells while they are hidden, and a keyframe can bring visibility back where
   it could not bring display back in every browser. If exp.js never arrives, the frame goes and the text shows after 8 s (as
   rows.css: the cold load measured about 2 s). The page's scroll bar stays out of sight meanwhile (the hidden text keeps its
   height), so the frame keeps the full width. */
html[data-course-kind="exp"], html[data-course-kind="exp"] body { margin: 0; background: var(--band); }
html[data-course-kind="exp"] { --exp-prep-row: 123px; }
@media (max-height: 1000px) { html[data-course-kind="exp"] { --exp-prep-row: 107px; } }
html[data-course-kind="exp"]:not(.exp-ready) { scrollbar-width: none; }
html[data-course-kind="exp"]:not(.exp-ready) body > :is(.family-links, .book-layout) { visibility: hidden; animation: exp-fail-open 0s linear 8s forwards; }
html[data-course-kind="exp"]:not(.exp-ready) body::before { content: ""; position: fixed; inset: var(--head, 69px) 0 0; z-index: 0; pointer-events: none;
  --exp-frame-step: 94px;
  background: linear-gradient(to bottom, var(--paper) 0 49px, var(--line) 49px 50px, var(--paper) 50px calc(var(--exp-frame-step) - 1px),
      var(--line) calc(var(--exp-frame-step) - 1px) var(--exp-frame-step),
      var(--band) var(--exp-frame-step) calc(var(--exp-frame-step) + var(--exp-prep-row) - 1px),
      var(--line) calc(var(--exp-frame-step) + var(--exp-prep-row) - 1px) calc(var(--exp-frame-step) + var(--exp-prep-row)),
      var(--paper) calc(var(--exp-frame-step) + var(--exp-prep-row)));
  animation: exp-frame-off 0s linear 8s forwards; }
@media (max-height: 1000px) { html[data-course-kind="exp"]:not(.exp-ready) body::before { --exp-frame-step: 94px; } }
@keyframes exp-fail-open { to { visibility: visible; } }
@keyframes exp-frame-off { to { visibility: hidden; } }

#exp-app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
#exp-app *, #exp-app *::before, #exp-app *::after { box-sizing: border-box; }

/* top bar: course, experiment, step chips, device and Python */
.exp-top { flex: none; height: 56px; display: flex; align-items: center; }
.exp-chips { display: flex; align-items: center; }
.exp-gap { width: 11px; }
.exp-gap:last-child { display: none; }
.exp-chip { min-width: 40px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.exp-status { display: flex; align-items: center; }
.exp-status span { display: inline-flex; align-items: center; }
.exp-dot { width: 9px; height: 9px; display: inline-block; }
/* "Pluto 연결" / "가상 Pluto로 바꾸기" beside the Pluto status (exp.js renderDevBtn): the theme's button at a step chip's
   height, in the top bar's text size (the status beside it is 15 px; #exp-app button inherits, so the size is set here) */
.exp-top .exp-devbtn, .exp-top .exp-sigbtn { height: 34px; padding: 0 12px; flex: none; }
#exp-app .exp-top .exp-devbtn, #exp-app .exp-top .exp-sigbtn { font-size: 17px; }
/* 신호 저장 / 신호 불러오기 (exp.js, lab/sigfile.js): beside the device button, as it is. A loaded file's status line is cut
   with … where the bar is short (exp.js fitTop sets its max-width); what fitTop takes out of a short bar (.exp-gone). */
.exp-status .exp-fname { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.exp-top .exp-gone { display: none !important; }

/* The top bar as draft A (PI 2026-11-15 21:3x KST, lecture-desk window: "A 안으로 해줘"; pi-desk records/web-design/
   20261113-wes-topbar/A/DESIGN.md revision 2 and A/topbar.css, web-design D:547c76; DESIGN-topbar-a.md at the repo root).
   Only the 실험 page's bar (exp.js: header.exp-top.tb-a); the report page's bar (.rep-top) has its own rules and shows its report pills as step chips. One row, 56 px,
   three objects: this page | the signal source unit | the student. Colours are course-theme.css tokens. Every pressable
   item and the status cell keeps a step chip's height (34 px; the walks' pluto-btn and sig-bar): the unit's 1 px border,
   the cell rules and the bordered 「로그인」 / 「보고서 보기」 are drawn as a 1 px ring outside the box (box-shadow), so the
   unit and those buttons read 36 px. The cells of the unit are siblings with no gap: each cell's ring falls on the cell
   before it, which draws the rule between them. */
#exp-app .tb-a .exp-name { margin: 0; font: inherit; letter-spacing: inherit; font-weight: 700; color: var(--ink); display: inline-block; flex: none; overflow: hidden; text-overflow: ellipsis; }
/* 1. the Python state right after the title: dot and text, no fill (14 px after the title: the bar's gap 22 / 16 less 8 / 2) */
#exp-app .tb-a .exp-py { display: inline-flex; align-items: center; gap: 7px; flex: none; margin-left: -8px; color: var(--muted); font-size: 15px; }
#exp-app .tb-a .exp-py .exp-dot { background: var(--amber); animation: tb-pulse 1.2s ease-in-out infinite alternate; }
#exp-app .tb-a .exp-py.on .exp-dot { background: var(--positive); animation: none; }
@keyframes tb-pulse { from { opacity: 1; } to { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { #exp-app .tb-a .exp-py .exp-dot { animation: none; } }
/* 2.–5. the right group: no gaps of its own (the unit has none inside; 24 px before the account, 18 px before 보고서 보기) */
#exp-app .tb-a .exp-status { margin-left: auto; gap: 0; }
/* 3. the signal source unit. Cell 1, the status: a quiet label band, ink text with its dot, default cursor */
#exp-app .tb-a .exp-status > .tb-stat { height: 34px; padding: 0 14px 0 12px; gap: 7px; flex: none; background: var(--shade); color: var(--ink); font-size: 16px;
  cursor: default; border-radius: 8px 0 0 8px; box-shadow: 0 0 0 1px var(--control-line); }
#exp-app .tb-a .exp-status[data-src="real"] > .tb-stat { font-weight: 700; }
/* a real Pluto that dropped: a hollow ring in --muted on the band (D3; not --rule, 1.93:1); an inset shadow, not a
   border: Chrome draws a 1.5 px border 1 px wide at a device pixel ratio of 1 */
#exp-app .tb-a .exp-status[data-src="dropped"] > .tb-stat .exp-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
/* cells 2–4, the unit's buttons: one pressable cue with the account links (link colour, 600, pointer, a hover fill) */
#exp-app .tb-a .exp-status > .tb-cell { height: 34px; padding: 0 12px; flex: none; border: 0; border-radius: 0; background: var(--paper); color: var(--go);
  font-size: 17px; font-weight: 600; cursor: pointer; box-shadow: 0 0 0 1px var(--control-line); }
#exp-app .tb-a .exp-status > .exp-sigsave { border-radius: 0 8px 8px 0; }
#exp-app .tb-a .exp-status > .tb-cell:hover:not(:disabled) { background: var(--panel); }
/* a saved signal in use: the whole unit in a faint blue tint, the status bold with a blue dot */
#exp-app .tb-a .exp-status[data-src="file"] > .tb-cell { color: var(--go-2); background: var(--go-t); box-shadow: 0 0 0 1px var(--line-2); }
#exp-app .tb-a .exp-status[data-src="file"] > .tb-cell:hover:not(:disabled) { background: linear-gradient(var(--select), var(--select)), var(--go-t); }
#exp-app .tb-a .exp-status[data-src="file"] > .tb-stat { color: var(--go-2); background: linear-gradient(var(--select), var(--select)), var(--go-t); box-shadow: 0 0 0 1px var(--line-2); font-weight: 700; }
#exp-app .tb-a .exp-status[data-src="file"] > .tb-stat .exp-dot { background: var(--go); }
/* 5. the student: the account slot, as wide as its wider form in both states (exp.js renderLogin, data-wide), its face at
   the right end */
#exp-app .tb-a .exp-status > .tb-acct { display: inline-grid; justify-items: end; align-items: center; height: 34px; margin-left: 24px; padding: 0; flex: none;
  border: 0; border-radius: 0; background: none; color: var(--ink); font-size: 17px; cursor: pointer; }
#exp-app .tb-a .tb-acct::before { content: attr(data-wide); grid-area: 1 / 1; visibility: hidden; padding-right: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
#exp-app .tb-a .tb-acct > .tb-face { grid-area: 1 / 1; }
/* logged out: 「로그인」, a bordered button at the unit's height (border and text in the link colour, the unit's radius) */
#exp-app .tb-a .tb-acct .tb-signin { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 8px; background: var(--paper);
  color: var(--go); font-weight: 600; box-shadow: 0 0 0 1px var(--go); }
/* logged in: 「<학번>」 (ink) · 「로그아웃」 (link); spaces kept around the dot (inline, not flex) */
#exp-app .tb-a .tb-acct .tb-who { display: inline-block; line-height: 34px; }
#exp-app .tb-a .tb-acct .tb-who span { display: inline; }
#exp-app .tb-a .tb-acct .tb-id { color: var(--ink); font-variant-numeric: tabular-nums; }
#exp-app .tb-a .tb-acct .tb-sep { color: var(--muted); }
#exp-app .tb-a .tb-acct .tb-out { color: var(--go); font-weight: 600; padding: 2px 4px; margin-left: -4px; border-radius: 12px; }
#exp-app .tb-a .tb-acct:hover:not(:disabled) .tb-signin, #exp-app .tb-a .tb-acct:hover:not(:disabled) .tb-out { background: var(--panel); }
/* the staff view's mark beside the account (exp.js staffMark): a label band in the theme's warning colours, not a control */
#exp-app .tb-a .exp-status > .tb-staff { display: inline-flex; align-items: center; height: 34px; margin-left: 12px; padding: 0 12px; flex: none;
  border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); font-size: 16px; font-weight: 600; white-space: nowrap; cursor: default; }
/* the answer fill's line after the mark's words (exp.js answerLine) */
#exp-app .tb-a .exp-status > .tb-staff > .tb-ans:not(:empty) { margin-left: 10px; font-weight: 400; }
#exp-app .tb-a .exp-status > a.tb-report { height: 34px; margin-left: 18px; padding: 0 16px; flex: none; border: 1px solid var(--go); border-radius: 8px; background: var(--paper);
  color: var(--go-2); font-size: 17px; font-weight: 600; text-decoration: none; }
#exp-app .tb-a .exp-status > a.tb-report:hover, #exp-app .tb-a .exp-status > a.tb-report:focus-visible { text-decoration: underline; }
#exp-app .tb-a .exp-status > :focus-visible { outline: 2px solid var(--go); outline-offset: -2px; }
/* disabled (D2): one look for every disabled control of the bar, 「로그인」's border included: 0.60, default cursor, no
   hover fill. During a run (D1) the look comes 300 ms after the control was disabled: an animation of zero length with a
   300 ms delay that holds its end (exp.js renderDevBtn); a control disabled for its own reason (tb-own: 신호 저장 with
   nothing recorded) takes it at once. On the unit's cells the 0.60 is the label's (its colour at 60 %), not the cell's
   opacity: the cells' rings are the unit's border and rules, which would fade beside a disabled cell (신호 저장 before
   the first 수신 is the page's first state). These rules outrank the pointer rules above (one more pseudo-class on the same
   selector) and every hover fill is :not(:disabled) (web-design 21:48 on its rev 2 topbar.css). */
#exp-app .tb-a .exp-status > .tb-cell:disabled { color: var(--go); cursor: default; animation: tb-off-cell 0s linear .3s forwards; }
#exp-app .tb-a .exp-status > .tb-acct:disabled { cursor: default; animation: tb-off-acct 0s linear .3s forwards; }
#exp-app .tb-a .exp-status > .tb-cell.tb-own:disabled { color: color-mix(in srgb, var(--go) 60%, transparent); animation: none; }
@keyframes tb-off-cell { to { color: color-mix(in srgb, var(--go) 60%, transparent); } }
@keyframes tb-off-acct { to { opacity: .6; } }
@media (max-width: 1700px) {
  #exp-app .tb-a .exp-py { margin-left: -2px; }
}
/* the no-match lines of a signal file under the controls (exp.js missNote), in the device line's box */
.exp-msg .exp-miss p { margin: 0; }
/* the line under the controls after a switch, a cancel or in a browser without WebUSB (exp.js deviceNote) */
.exp-msg .exp-devnote { margin: 0; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-box); background: var(--paper);
  color: var(--ink); font-size: 17px; line-height: 1.5; }

/* body: left text and code, right controls and results */
.exp-main { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: 41.667% 58.333%; }
.exp-left:not(.prep) .exp-lead, .exp-left :is(.exp-ctext, .exp-gtext, p, ul, ol:not(.exp-steps)), .exp-left.prep .exp-lead > :not(ol.exp-paras) { max-width: var(--column, 46em); }
.exp-left { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.exp-right { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }

/* read-only code block */
.exp-code { overflow: hidden; flex: none; }
.exp-code-bar { display: flex; align-items: center; height: 38px; }
.exp-code-bar svg { width: 14px; height: 14px; }
.exp-code li { display: flex; align-items: center; min-height: 30px; }
.exp-code li .n { width: 36px; flex: none; }
.exp-code li .c { flex: 1; }

/* controls row: parameters, action, previous/next together, run state */
.exp-ctl { display: flex; align-items: center; min-height: 52px; flex: none; flex-wrap: wrap; }
.exp-ctl .vsep { width: 1px; height: 30px; }
/* 실험 2 (nav 'first'): the row's first line keeps the top of the bar whether the row wraps or not, so ◀ 이전 / 다음 ▶
   stay at one place (walks-run-13, 1536 wide: 4 px higher on the 13 screens whose state line wraps) */
.exp-ctl.navfirst { align-content: flex-start; }
/* 실험 2 at 1536 and the like: ◀ 이전 / 다음 ▶ open the row, so the sliders are shorter and g, φ and their values keep one
   row (second Fable look 2026-11-11 C: 설명 2-8, 2-9 at 1536 put "5°" alone on a second row, 50 px lower figures) */
@media (max-width: 1700px) { .exp-ctl.navfirst input[type=range] { width: clamp(110px, 8vw, 260px); } }
.exp-ctl .val { min-width: 64px; height: 40px; display: inline-flex; align-items: center; justify-content: flex-end; }
.exp-ctl input[type=range] { width: clamp(160px, 14vw, 260px); height: 24px; }
.exp-seg { display: inline-flex; }
.exp-seg button { height: 40px; }
.exp-seg button.on { position: relative; }
.exp-lock { display: inline-flex; }
.exp-lock svg { width: 16px; height: 16px; }
.exp-btn { height: 44px; display: inline-flex; align-items: center; }
.exp-nav { display: inline-flex; }
.exp-state { display: inline-flex; align-items: center; }
/* EXPERIMENT.stateRoom: a task's state keeps its widest width in the row (exp.js placeStrip0 sets --state-w) */
.exp-ctl > .exp-state { min-width: var(--state-w, 0); }

/* messages of the run: errors, the connect prompt, notes (Python's printed lines stay hidden) */
.exp-msg { flex: none; }
.exp-msg:empty { display: none; }
.exp-msg .lab-stream, .exp-msg .lab-value { display: none; }
.exp-msg .lab-error { max-height: 180px; overflow: hidden; }
.exp-msg .lab-prompt-actions { display: flex; }

/* figures and tables */
.exp-body { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
/* 실험 2 (EXPERIMENT.fit 'scroll'): figures keep their drawings' heights; the column scrolls below them (exp.js layoutAll) */
.exp-body.scroll { overflow-y: auto; }
.exp-body.scroll > * { flex-shrink: 0; }
.exp-row { display: flex; align-items: stretch; min-height: 0; }
.exp-fig { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.exp-fig figcaption { flex: none; display: flex; flex-wrap: wrap; align-items: center; min-height: 34px; }
/* The title keeps 5 px under the figure's top rule also when the legend takes a second row (publisher's look 2026-11-10:
   실험 1-4 비교, 2-3 at 1536); on one row the 34 px caption centres it at the same 5 px, so nothing else moves. */
.exp-fig .pt { margin-block: 5px; }
/* The missing-4-1 notice is a sentence and stays inside its figure at either lab width. */
.exp-fig.exp4-need41-figure .pt { white-space: normal; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.exp-fig .lg { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.exp-fig .lg span { display: inline-flex; align-items: center; }
.exp-fig .lg i { display: inline-block; width: 26px; height: 0; }
.exp-fig .lg b { display: inline-block; width: 11px; height: 11px; }
.exp-fig .lg u { display: inline-block; width: 14px; height: 14px; }
.exp-svg { flex: 1 1 0; min-height: 0; overflow: hidden; }
.exp-svg svg { display: block; }
table.exp-t { flex: none; align-self: flex-start; max-width: 100%; }
table.exp-t caption { caption-side: top; }
.exp-sw { display: inline-block; width: 22px; height: 0; }

/* student task: task cards, typed fields, report marks */
.exp-pill { display: inline-flex; align-items: center; height: 36px; align-self: flex-start; flex: none; }
.exp-card { flex: none; }
.exp-ch { display: flex; align-items: center; }
.exp-prow { display: flex; align-items: center; }
.exp-prow .k { flex: 1; }
.exp-in { width: 120px; height: 42px; }
.exp-auto { min-width: 120px; height: 40px; display: inline-flex; align-items: center; justify-content: flex-end; }
.exp-prow .unit { min-width: 44px; }
.exp-save-row { display: flex; justify-content: flex-end; }
.exp-save { height: 38px; }
.exp-save.done::before { content: '✓'; }
.exp-card textarea { display: block; width: 100%; resize: none; height: 76px; }
.exp-replist { display: flex; flex-wrap: wrap; align-items: center; flex: none; }
.exp-replist .i { display: inline-flex; align-items: center; }
.exp-rep { display: inline-flex; align-items: center; height: 30px; }
.exp-rep svg { width: 14px; height: 15px; }
.exp-fig .lg .exp-rep { height: 30px; }

/* shorter screens (1536×864 and the like); exp.js scales the left column down as a whole only if it still does not fit */
@media (max-height: 1000px) {
  .exp-in, .exp-auto { height: 36px; }
  .exp-save { height: 32px; }
  .exp-card textarea { height: 58px; }
  .exp-code-bar { height: 30px; }
  .exp-code li { min-height: 25px; }
}

/* formula box (설명 2-2): formulas left, values right */
.exp-formula { flex: none; align-self: flex-start; display: grid; grid-template-columns: auto auto; align-items: baseline; }
.exp-pseg button { height: 38px; }

/* task card v2 (1안): 근거 line, mean and range per quantity, 비교 answer and verdict, two 고찰 fields */
.exp-text { flex: 1; min-width: 0; height: 38px; }
.exp-prow .exp-spread { min-width: 150px; }
.exp-prow.stack { flex-wrap: wrap; }
.exp-prow.stack .k { flex: 1 0 100%; }
.exp-prow.stack .exp-seg { flex-direction: column; align-items: stretch; width: 100%; }
.exp-prow.stack .exp-seg button { height: auto; min-height: 34px; }
.exp-verdict { display: flex; flex-wrap: wrap; align-items: baseline; }
.exp-field { display: block; }
.exp-field > span { display: block; }
.exp-field textarea { height: 58px; }
@media (max-height: 1000px) {
  .exp-text { height: 34px; }
  .exp-field textarea { height: 50px; }
}

/* task cards fold (FIXES-v2-fable F2): the card the student is on is open; a finished card is one summary line, a
   later card its name only; a click on a closed card's name opens it. Card text keeps its size (no column zoom). */
.exp-sum { flex: 1 1 auto; min-width: 0; overflow: hidden; }

/* task card, option ③ (PI 2026-11-10 03:34 KST "난 3"; lab/exp.js renderLeft): a step bar of the five parts under the
   title (no 목적 line there since PI 2026-11-16 22:44 "이부분을 없애버리고 아래를 넓게"), one large card that shows one part. The theme has no rules for these new parts, so their look is here,
   from the theme's tokens only (no new colour or font). Text in the step bar and the card is never smaller than the
   column's prose (19 px; PI 2026-11-10 00:4x "너무 작아진거 같아서"), on both screen sizes; nothing folds or zooms to fit. */

.exp-steps { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 6px; padding: 0; list-style: none; }
.exp-steps li { position: relative; min-width: 0; text-align: center; }
.exp-steps li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.exp-steps li:first-child::before { display: none; }
.exp-steps li.done::before, .exp-steps li.now::before { background: var(--blue); }
.exp-stp { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 0 4px; border: 0;
  background: none; color: var(--faint); cursor: pointer; font-size: 19px; }
.exp-stp:disabled { cursor: default; }
.exp-stp .node { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 2px solid var(--control-line); background: var(--paper); color: var(--faint); font-size: 19px; font-weight: 700; line-height: 1; }
.exp-stp .node svg { width: 16px; height: 16px; }
.exp-steps .done .node { border-color: var(--blue); background: var(--blue); color: var(--paper); }
.exp-steps .now .node { border-color: var(--blue); color: var(--blue); }
.exp-steps .view .node { box-shadow: 0 0 0 5px var(--tint-strong); }
.exp-stp b { margin-top: 2px; font-weight: 700; line-height: 1.3; }
.exp-steps .done b { color: var(--blue); }
.exp-steps .now b, .exp-steps .view b { color: var(--ink); }
.exp-steps .done .exp-stp:not(:disabled) b { text-decoration: underline; text-decoration-color: var(--tint-strong); text-underline-offset: 4px; }
/* a finished part's value: at most two lines, wrapping between values; never cut (exp.js shows fewer values instead) */
.exp-steps small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; overflow: hidden; white-space: normal;
  word-break: keep-all; overflow-wrap: anywhere; line-height: 1.3; font-size: 19px; color: var(--ink); }
.exp-steps .now small { color: var(--blue); font-weight: 600; }

.exp-pcard { flex: 1 0 auto; display: flex; flex-direction: column; margin-bottom: 6px; border: 1px solid var(--line); border-radius: var(--radius-box);
  background: var(--paper); font-size: 19px; line-height: 1.4; }
.exp-pch { flex: none; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 2px 14px 2px 20px; border-bottom: 1px solid var(--line); }
.exp-pch .k { flex: none; white-space: nowrap; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
#exp-app { --wait-bg: #fff1d6; --wait: #8a5300; --fail: #b42318; }
.exp-save-warning { flex: none; display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box;
  border-radius: 0; border-bottom: 1px solid #f5d08a; background: var(--wait-bg); color: var(--wait); font-size: 14.5px; font-weight: 500; line-height: 1.35; padding: 6px 14px; }
.exp-save-warning[hidden] { display: none; }
.exp-save-message { flex: 1; min-width: 0; }
.exp-save-warning .exp-btn { flex: none; min-height: 28px; padding: 2px 10px; border: 1px solid currentColor; border-radius: 6px;
  background: var(--paper); color: inherit; font-size: 14px; font-weight: 600; transition: none; animation: none; }
@media (max-width: 480px) {
  .exp-save-warning { flex-direction: column; align-items: stretch; gap: 8px; }
  .exp-save-warning .exp-btn { align-self: flex-end; min-height: 44px; }
}
.exp-pname { font-size: 23px; font-weight: 700; color: var(--ink); }
.exp-pnavs { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.exp-pch .exp-btn { height: 34px; padding: 0 14px; font-size: 19px; }
.exp-prep .exp-rep { height: 34px; padding: 0 12px; font-size: 19px; }
.exp-prep .exp-rep svg { width: 14px; height: 15px; }
.exp-part { flex: 1 0 auto; display: flex; flex-direction: column; gap: 5px; padding: 6px 20px 8px; }
.exp-part[hidden] { display: none !important; }
.exp-pcard .exp-given { padding: 2px 12px; border-left: 3px solid var(--blue); border-radius: var(--radius); background: var(--tint); }
.exp-pcard .exp-prow { margin-top: 0; }
.exp-pcard .exp-prow.stack .exp-seg button { white-space: normal; min-height: 32px; padding-top: 2px; padding-bottom: 2px; }
.exp-pcard .exp-in, .exp-pcard .exp-text, .exp-pcard .exp-save { height: 38px; }
/* 근거 (mockup A-1): the label, the input across the card, then 예상 저장 on its own line */
.exp-basis { display: flex; flex-direction: column; gap: 3px; }
.exp-basis .k { line-height: 1.2; }
.exp-pcard .exp-basis .exp-text { flex: none; width: 100%; }
.exp-pcard .exp-save-row { display: flex; justify-content: flex-end; }
.exp-pcard .exp-save-row .exp-save { height: 36px; }
.exp-pcard .exp-save { flex: none; padding: 0 18px; }
/* 예상 after 예상 저장 (rule 13 (a); lab/exp.js renderLeft): 예상 다시 저장 at the right end of the 근거 input's line (the
   input gives it room while it shows), and right-aligned on the 근거 label's line above it the lines it will clear, one
   line each (43.7 px); that line keeps their height in every state after 예상 저장, so nothing moves when they come and
   go and the task keeps one zoom (walk 2026-11-10 12:1x KST: a line of its own under 근거 cost 실험 1-3 a zoom of 0.982 at
   1920×1080). */
.exp-basis .exp-bhead { display: flex; align-items: flex-end; justify-content: space-between; column-gap: 12px; min-height: 44px; }
.exp-basis .exp-bline { display: flex; align-items: center; column-gap: 12px; }
.exp-pcard .exp-basis .exp-bline .exp-text { flex: 1 1 auto; width: auto; min-width: 0; }
.exp-pcard .exp-again[hidden], .exp-again-notes[hidden], .exp-again-notes p[hidden], .exp-inerr[hidden] { display: none; }
.exp-again-notes { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; color: var(--orange); }
.exp-again-notes p { white-space: normal; overflow-wrap: anywhere; }
/* a 예상 field that refuses what was typed (rule 13 (d); lab/exp.js refusal): why, in one line, left of 예상 저장 before
   예상 저장 and in the place of the lines above 예상 다시 저장 after it, in the theme's error colour; the field as the theme
   draws a refused input on the 실습 pages (.task-prow input.bad) */
.exp-pcard .exp-save-row { align-items: center; column-gap: 12px; }
.exp-inerr { min-width: 0; max-width: 100%; color: var(--red); white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.exp-field-refusal { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.exp-bhead .exp-inerr { line-height: 1.2; }
.exp-pcard .exp-in[aria-invalid="true"] { border-color: var(--red); background: var(--error-bg); }
.exp-pcard .exp-prow .unit, .exp-pcard .exp-prow .exp-spread, .exp-pcard .exp-pseg button, .exp-pcard .exp-save, .exp-pcard .exp-text, .exp-pcard .exp-verdict, .exp-pcard .exp-verdict .exp-diff, .exp-pcard .exp-field > span { font-size: 19px; }
.exp-pcard textarea { display: block; width: 100%; height: 70px; resize: none; padding: 5px 12px; border: 1px solid var(--control-line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font: 19px/1.5 var(--remi-font); }
.exp-pcard textarea::placeholder { color: var(--faint); }
.exp-pcard .exp-field { margin-top: 0; }
.exp-pcard .exp-field > span { line-height: 1.4; }
.exp-pcard textarea + .exp-field-save { display: block; min-height: 21px; margin-top: 2px; font-size: 15px; line-height: 1.4;
  font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.exp-pcard textarea + .exp-field-save[data-state="login"] { color: var(--wait); }
.exp-pcard textarea + .exp-field-save:is([data-state="retry"], [data-state="refused"]), .exp-field-refusal { color: var(--fail); }
/* 목적 card (card 1 / 5): 목적, 문제, 예상에서 적을 것 as labelled blocks in the card's text size, 예상 쓰기 › at the foot */
.exp-gsec { display: flex; flex-direction: column; gap: 2px; }
.exp-gsec .k { font-weight: 700; color: var(--blue); line-height: 1.3; }
.exp-gtext p, .exp-gq { margin: 0; }
.exp-gq { font-weight: 600; }
.exp-gtext .exp-glink { margin-top: 6px; }
/* 실험 2's 목적 line under the task title holds the 목적's step block: the same list look */
.exp-pcard .exp-qfield .exp-qtext { display: block; margin: 2px 0 4px; font-weight: 400; }
/* 실험 2, D6: a subframe resting on a textbook figure links to its place in the book (exp2-figs.js bookLink) */
.exp-fig.sf figcaption .exp-booklink { margin-left: 12px; font-weight: 400; white-space: nowrap; }
/* 실험 2 task cards: the code folded to its driving line (exp.js codeBlock, the mockup's foldCode toggle) and the card
   head's 보고서 count with its checklist over the card (exp.js repPop) */
.exp-code.fold ol > li:not(.hl):not(.keep) { display: none; }
.exp-code-bar .more { margin-left: auto; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; }
.exp-code-bar .more::after { content: " ▸"; }
.exp-code:not(.fold) .exp-code-bar .more::after { content: " ▾"; }
.exp-pch { position: relative; flex-wrap: wrap; }
.exp-prep.pop .exp-repcount { height: 34px; padding: 0 12px; font-size: 19px; display: inline-flex; align-items: center; gap: 6px; }
.exp-prep.pop .exp-repcount svg { width: 14px; height: 15px; }
.exp-reppop { position: absolute; right: 10px; top: calc(100% + 4px); z-index: 20; max-width: min(560px, calc(100% - 20px)); padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-box); background: var(--paper); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.exp-repcount .n { white-space: nowrap; }
.exp-reppop[hidden] { display: none; }
.exp-reppop .exp-replist { gap: 4px 12px; }
.exp-reppop .exp-replinkbox { margin-top: 8px; }
/* 실험 2 task cards (exp2-cards.js): a field's line under it, a card's own text, a text field */
.exp-pcard .exp-help { margin: 0 0 6px; color: var(--muted); }
.exp-pcard .exp-ctext { margin-bottom: 8px; }
.exp-pcard .exp-ctext + .exp-ctext { margin-top: 8px; }
.exp-pcard .exp-decide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0; }
.exp-pcard .exp-decide .k { font-weight: 600; }
.exp-pcard .exp-decide .exp-in { width: 140px; }
.exp-pcard .exp-ctable { margin: 8px 0; }
.exp-glist { margin: 0; padding-left: 22px; }
.exp-glist .unit { color: var(--muted); }
/* 결과: the next press, above the values, in the card's text size */
.exp-pcard .exp-how { margin: 0; padding: 2px 12px; border-left: 3px solid var(--blue); border-radius: var(--radius); background: var(--tint); font-weight: 600; }
.exp-pcard .exp-how[hidden] { display: none; }
/* why 받기 ×3: under the action line, in the same box, the card's text size */
.exp-pcard .exp-how:not([hidden]) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.exp-pcard .exp-why { margin: -5px 0 0; padding: 0 12px 3px; border-left: 3px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); background: var(--tint); color: var(--ink); }
.exp-pcard .exp-why[hidden] { display: none; }
.exp-pcard .exp-go { height: 38px; padding: 0 18px; font-size: 19px; font-weight: 650; background: var(--blue); border-color: var(--blue); color: var(--paper); }

/* 비교: 예상 and 결과 side by side as large numbers (예상 in the figures' prediction colour, 결과 in the measurement colour) */
.exp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.exp-tile { min-width: 0; padding: 6px 14px 8px; border: 1px solid var(--line); border-radius: var(--radius-box); }
.exp-tile .t { font-weight: 700; color: var(--muted); line-height: 1.35; }
.exp-trow { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; line-height: 1.35; }
.exp-trow .k { flex: 1 0 100%; }
.exp-tile.many .exp-trow .k { flex: 1 1 0; min-width: 0; }
.exp-big { font-size: 34px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exp-tile.many .exp-big { font-size: 28px; }
.exp-big small { margin-left: 5px; font-size: 20px; font-weight: 500; color: var(--muted); }
.exp-big.pred { color: var(--purple); }
.exp-big.meas { color: var(--orange); }
.exp-tspread { flex: 1 0 100%; color: var(--muted); line-height: 1.35; }
.exp-topt { flex: 1 0 100%; }
.exp-tafter { color: var(--purple); font-weight: 600; line-height: 1.35; }
.exp-ask .q { font-size: 20px; font-weight: 650; line-height: 1.4; }
.exp-ask .exp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.exp-pcard .exp-ask .exp-seg button { height: 46px; margin: 0; border-radius: var(--radius); white-space: normal; }
.exp-outcome { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 4px 14px; border-radius: var(--radius); background: var(--tint); font-weight: 700; }
.exp-outcome .tag { color: var(--blue); }
.exp-outcome .mine { color: var(--ink); font-weight: 500; }
.exp-outcome .arrow { color: var(--muted); font-weight: 500; }
.exp-outcome.ok { color: var(--positive); }
.exp-outcome.bad { color: var(--orange); }
.exp-outcome .exp-diff { color: var(--ink); font-weight: 600; }

/* shorter screens (1536×864 and the like): tighter spacing, the same text sizes; the step bar's values fold (each part
   keeps its name and mark; its value shows again when the part is opened) */
@media (max-height: 1000px) {
  /* the card's text is never folded or shrunk here */
  .exp-steps small { display: none; }
  .exp-stp .node { width: 28px; height: 28px; }
  .exp-stp .node svg { width: 16px; height: 16px; }
  .exp-steps li::before { top: 13px; }
  .exp-stp b { margin-top: 1px; }
  .exp-pcard { margin-bottom: 4px; line-height: 1.35; }
  .exp-pch { min-height: 36px; padding: 1px 12px 1px 16px; }
  .exp-pch .exp-btn, .exp-prep .exp-rep, .exp-prep.pop .exp-repcount { height: 32px; }
  .exp-part { gap: 4px; padding: 5px 16px 5px; }
  .exp-pcard .exp-why { margin-top: -4px; }
  .exp-pcard .exp-in, .exp-pcard .exp-text, .exp-pcard .exp-save { height: 34px; }
  .exp-basis { gap: 1px; }
  .exp-basis .k { line-height: 1.2; }
  .exp-pcard .exp-save-row .exp-save { height: 32px; }
  .exp-pcard textarea { height: 64px; padding: 4px 10px; line-height: 1.4; }
  .exp-tile { padding: 2px 12px 4px; }
  .exp-tile .t, .exp-trow, .exp-tspread, .exp-tafter { line-height: 1.25; }
  .exp-big { font-size: 30px; }
  .exp-tile.many .exp-big { font-size: 25px; }
  .exp-pcard .exp-ask .exp-seg button { height: 40px; }
  .exp-ask .exp-seg { margin-top: 4px; }
  .exp-ask .q { line-height: 1.3; }
}

/* web lab report (report labs only, lab/report-sync.js): the 보고서 mark of a figure or table as a button, and the one
   line under a task when a report save failed. The mark keeps its look from course-theme.css (.exp-rep); only the
   button states are added here, in the theme's tokens. */
button.exp-repbtn { cursor: pointer; }
a.exp-replink { text-decoration: none; }
a.exp-replink:hover, a.exp-replink:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
/* the card head's link after a change the latest submission lacks ("보고서 · 고친 내용 미제출"), in the report page's
   고친 내용 미제출 colour */
a.exp-replink.again { color: var(--orange); border-color: var(--orange); }
/* the summary row's 보고서: a plain muted label (Fable review round 3 item 1) */
.exp-replabel { color: var(--muted); font-weight: 600; }
/* The summary row under a task and the 보고서 buttons of figures and tables at the body text size, 19 px (lecture/CLAUDE.md
   figure rules 2 and 6; coordinator round 2, item 6), on every experiment page. The card's own 보고서 (.exp-prep) is
   sized by the task card rules above and is not restyled here. Type values belong in course-theme.css (remilab-website's:
   .exp-replist 16 px, .exp-rep 15 and 17 px), which this branch does not edit: move them there. */
#exp-app .exp-replist, #exp-app .exp-replist .exp-rep, #exp-app .exp-fig .exp-rep, #exp-app table.exp-t caption .exp-rep { font-size: 19px; }
/* 10 px between the summary row's items (theme 16 px; no theme spacing variable): at 1920 the row fits one line, so the
   left column stays at zoom 1 (batch3 walk 2026-11-10 11:2x KST: two lines, 1-1 and 2-1 at 0.996, 2-2 at 0.992). */
#exp-app .exp-replist { column-gap: 10px; }
button.exp-repbtn:disabled { color: var(--rule); cursor: default; }
button.exp-repbtn.saved { color: var(--positive); border-color: var(--positive); }
.exp-repfail { flex: 1 0 100%; color: var(--orange); font-weight: 600; }

/* ---------------------------------------------------------------- 실험 2 (주파수 변환과 I/Q; DESIGN.md items 2–5)
   The look of the approved mockup (branch wes-experiments/e2-match-a, m.css: draft A + coloured terms), in the theme's
   tokens only: no new colour, no smaller text. */
/* the step chips on their own row under the top bar (EXPERIMENT.stepbar 'row'): 16 chips, none dropped (D10) */
.exp-stepbar { flex: none; display: flex; align-items: center; height: 50px; padding: 0 32px; background: var(--paper); border-bottom: 1px solid var(--line); white-space: nowrap; }
.exp-stepbar .exp-chips { margin-left: 0; }
/* the step shown: its screens a·b·c in its chip, the screen shown marked */
.exp-chip .hv { margin-left: 6px; display: inline-flex; align-items: center; font-weight: 500; }
.exp-chip .hv i { font-style: normal; padding: 0 2px; border-radius: 12px; }
.exp-chip .hv em { font-style: normal; opacity: .5; }
.exp-chip.now .hv i.on { background: var(--paper); color: var(--blue); font-weight: 800; padding: 0 4px; }
/* numbered paragraphs (gen-e2.mjs): the lead, its steps 1) 2), cases and display formulas on their own lines (PI 15:45) */
.exp-lead ol.exp-paras { list-style: none; margin: 0; padding: 0; }
.exp-lead ol.exp-paras > li { position: relative; padding-left: 40px; isolation: isolate; cursor: pointer; outline: none; }
.exp-lead ol.exp-paras > li + li { margin-top: 16px; }
.exp-lead ol.exp-paras > li > .pk { position: absolute; left: 0; top: 3px; }
:is(.exp-lead, .exp-gtext) p { margin: 0; }
#exp-app :is(.exp-lead, .exp-gtext) p.fu:not(.pg) { margin-top: 10px; }
/* a card block that joins two rows (exp3-cards measure: why2 + why3, …): the later row's lead paragraph takes the same gap,
   so it reads as its own paragraph (Fable look of the paragraph split, P2-1) */
#exp-app .exp-ctext > * + p.ld:not(.pg) { margin-top: 10px; }
:is(.exp-lead, .exp-gtext, .exp-reject) ol.st { list-style: none; margin: 6px 0 0; padding: 0; }
:is(.exp-lead, .exp-gtext, .exp-reject) ol.st > li { position: relative; padding-left: 1.6em; margin: 3px 0 0; }
:is(.exp-lead, .exp-gtext, .exp-reject) ol.st > li > .sn { position: absolute; left: 0; font-weight: 650; }
:is(.exp-lead, .exp-gtext) ul.cs { list-style: none; margin: 6px 0 0; padding: 0; }
:is(.exp-lead, .exp-gtext) ul.cs > li { position: relative; padding-left: 1.2em; margin: 3px 0 0; }
:is(.exp-lead, .exp-gtext) ul.cs > li::before { content: ''; position: absolute; left: .3em; top: .7em; width: .36em; height: .36em; border-radius: 50%; background: var(--ink); opacity: .55; }
:is(.exp-lead, .exp-gtext) div.eq { margin: 4px 0 0 1.2em; padding: 2px 0 2px 12px; border-left: 3px solid var(--line); }
:is(.exp-lead, .exp-gtext) li > div.eq { margin-left: 0; }
.exp-lead sub, .exp-lead sup, .exp-gtext sub, .exp-gtext sup, .exp-fig.sf sub, .exp-fig.sf sup { font-size: .72em; }
.exp-left:has(ol.exp-paras) h1 { margin-bottom: 14px; }
.exp-left:has(ol.exp-paras) .exp-lead { margin-bottom: 18px; }
.exp-left:has(ol.exp-paras) .exp-code { margin-top: 4px; }
/* keys (D9): a paragraph's number as a 28 px square, filled ink when the figure or the code shows what it explains, the
   same square on that part; outlined when the paragraph is text only */
.pk, span.kb { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-box);
  background: var(--ink); color: var(--paper); font: 700 19px/1 var(--remi-font); font-variant-numeric: tabular-nums; flex: none; }
.exp-lead ol.exp-paras > li > .pk[hidden] { display: none; }
.pk.txt { background: none; color: var(--muted); border: 1.5px solid var(--rule); }
g.kb rect { fill: var(--ink); }
g.kb text { fill: var(--paper); font-family: var(--remi-font); }
g.kb, span.kb { cursor: pointer; }
.exp-fig.sf .pt span.kb { height: 26px; margin-right: 10px; vertical-align: 1px; }
.exp-code li span.kb { height: 26px; margin: 0 10px 0 8px; }
.khost > span.kb { height: 26px; margin: 0 8px; vertical-align: 1px; }
/* the active key: its paragraph tinted, its parts lit, the other subframes faded (is-lit / is-dim, D9) */
.exp-lead ol.exp-paras > li.is-lit::before { content: ''; position: absolute; z-index: -1; inset: -7px -12px -7px -8px; background: var(--tint); border-radius: var(--radius-box); }
.kb.is-dim { opacity: .3; }
.exp-fig.sf { transition: opacity .12s; }
.exp-fig.sf.is-lit { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.exp-fig.sf.is-dim { opacity: .35; }
rect.kreg { fill: var(--select); stroke: var(--blue); stroke-width: 1.5; }
polyline.khalo { fill: none; stroke: var(--tint-strong); stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }
.exp-code li.is-lit { box-shadow: inset 0 0 0 2px var(--blue); }
.khost.is-lit { box-shadow: inset 0 0 0 2px var(--blue); background: var(--select); }
/* a coloured term: the words in the colour of one figure mark */
.exp-lead .kt { font-weight: 650; white-space: nowrap; }
/* subframe (ctx.figure({frame: true})): one element of the figure with its own border and title */
.exp-fig.sf { background: var(--paper); background-image: none; border: 1px solid var(--line); border-radius: var(--radius-box); }
.exp-fig.sf figcaption { padding: 4px 16px 3px; min-height: 0; border-bottom: 1px solid var(--line); }
.exp-fig.sf .pt { font-size: 20px; white-space: normal; }
.exp-fig.sf .kref { color: var(--muted); font-size: 17px; font-weight: 400; }
.kref .nw { white-space: nowrap; }   /* (K2) a reference never breaks inside its name (exp-keys.js refOf) */
.exp-code li .kref { flex: none; margin: 0 10px 0 8px; color: var(--muted); font-family: var(--remi-font); font-size: 16px; font-weight: 400; white-space: nowrap; }
.exp-fig.sf .exp-svg { padding: 0; }   /* layout() draws the SVG at the box's client size */
/* the 안내 줄 under a table (설명 2-13b) */
.exp-note { flex: none; margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink); }
@media (max-height: 1000px) {
  .exp-stepbar { height: 44px; padding: 0 24px; }
  .exp-lead ol.exp-paras > li + li { margin-top: 10px; }
  .exp-left:has(ol.exp-paras) h1 { margin-bottom: 10px; }
  .exp-left:has(ol.exp-paras) .exp-lead { margin-bottom: 12px; }
  #exp-app :is(.exp-lead, .exp-gtext) p.fu:not(.pg) { margin-top: 6px; }
  #exp-app .exp-ctext > * + p.ld:not(.pg) { margin-top: 6px; }
  :is(.exp-lead, .exp-gtext) :is(ol.st, ul.cs) { margin-top: 3px; }
  :is(.exp-lead, .exp-gtext) :is(ol.st, ul.cs) > li { margin-top: 1px; }
  :is(.exp-lead, .exp-gtext) div.eq { margin-top: 2px; padding: 0 0 0 12px; }
  .exp-lead ol.exp-paras > li > .pk { top: 1px; }
  .exp-left:has(ol.exp-paras) .exp-code { margin-top: 0; }
  .exp-code li span.kb { height: 23px; }
  .exp-fig.sf figcaption { padding: 2px 14px 1px; }
}
/* EXPERIMENT.fit 'scroll' (실험 2): no column zoom; a column taller than the screen scrolls inside itself */
.exp-left.scroll { overflow-y: auto; overscroll-behavior: contain; }
/* and a code line wider than the column wraps (hanging indent) instead of being cut (1536 px: 설명 2-11 line 3, 18 px) */
.exp-left.scroll .exp-code li { white-space: pre-wrap; align-items: flex-start; }
.exp-left.scroll .exp-code li .c { overflow-wrap: anywhere; padding-left: 2ch; text-indent: -2ch; }
/* 보고서 보기 in the top bar (D18, report pages): a link drawn as the bar's buttons are (.exp-btn), in their text colour
   and without a link underline; the underline shows on hover and focus as on the task card's 보고서 link. */
#exp-app .exp-top a.exp-repview { background: var(--paper); border: 1px solid var(--go); color: var(--go-2); text-decoration: none; }
#exp-app .exp-top a.exp-repview:hover, #exp-app .exp-top a.exp-repview:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
#exp-app .rep-top a.exp-chip { text-decoration: none; }

/* Fable look on the 실험 2 screens, 2026-11-11 */
/* item 9: a subframe marked "→ 설명 2-Nx" (explained on another screen of the step) is dimmed at rest, a little less than
   the subframes a pointed paragraph does not name (is-dim) */
.exp-fig.sf.is-ref:not(.is-dim):not(.is-lit) { opacity: .5; }
/* (D) a frame none of whose paragraphs is in the reading band of a scrolled 설명 screen (exp-keys.js awayKeys) */
.exp-fig.sf.is-awayf:not(.is-dim):not(.is-lit):not(.is-ref) { opacity: .5; }
.exp-fig.sf.has-strip.is-awayf:not(.is-dim):not(.is-lit):not(.is-ref) { opacity: 1; }
.exp-fig.sf.has-strip.is-awayf:not(.is-dim):not(.is-lit):not(.is-ref) > :not(figcaption), .exp-fig.sf.has-strip.is-awayf:not(.is-dim):not(.is-lit):not(.is-ref) figcaption > :not(.exp-ctl) { opacity: .5; }
/* a table that belongs to a dimmed subframe (exp-keys.js data-of; 설명 2-12a, b), and with its frame while a paragraph is
   pointed at (faded with it, at full strength when the frame is lit) */
.exp-t.is-ref:not(.is-dim):not(.is-lit) { opacity: .5; }
.exp-t.is-dim { opacity: .35; }
/* item 4 (PI rule 10): the task card's step bar is one line (each part's name and mark; the values are in the card),
   the same height on every part */
.exp-left.cards .exp-steps small { display: none; }
/* item 6: the checklist's line while logged out */
.exp-replist .exp-replogin { flex: 1 0 100%; margin: 0 0 4px; color: var(--muted); }
/* item 7: what 실험 2-2 질문 3 needs from 설명 2-13b, above its field */
.exp-qbox .exp-qnote { margin: 0 0 6px; color: var(--muted); }
.exp-qbox .exp-qlink { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; }
.exp-qbox .exp-qvals { margin: 0 0 8px; }
/* items 3 and 19: the bottom shadow of a scrolling right column (exp.js moreBelow) */
.exp-right { position: relative; }
/* the left column's bottom shadow (exp.js shadeL) is placed in .exp-main */
.exp-main { position: relative; }
/* an empty capture frame's line while a signal file is loaded (exp.js figure empty): body text size, at the centre of the
   plot's frame (exp.js sets left, top and max-width after each draw), on paper over the mark lines behind it */
.exp-fig:has(> .exp-empty) { position: relative; }
.exp-empty { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 48px);
  margin: 0; padding: 2px 10px; background: var(--paper); text-align: center; font-size: 19px; line-height: 1.5; color: var(--ink);
  pointer-events: none; }
.exp-empty p { margin: 0; }
.exp-shade { position: absolute; z-index: 5; height: 24px; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)); }
.exp-shade[hidden] { display: none; }
/* 준비 at the page width (session ruling 2026-11-12 00:1x, B; one-screen rule, lecture/CLAUDE.md appendix item 2): 준비 has no
   figure and no result, and its text overflowed the left column (실험 1: 679 px at 1920×1080, 933 px at 1536×864, job
   lr-wes-experiments-261111144132). For kind 'prep' only (exp.js renderLeft: .exp-left.prep): the right column's controls
   (이전/다음, 송신 시작), its notices and the table become one row at the top, starting where the right column starts, so
   「화면 오른쪽 … 맨 위의 송신 시작 버튼」 still points at them; the text runs below across the page in two text columns,
   a column break only between paragraphs or list items, never inside one; no text is made smaller. */
.exp-main:has(> .exp-left.prep) { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.exp-main:has(> .exp-left.prep) > .exp-right { order: -1; flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start;
  overflow: visible; border-bottom: 1px solid var(--line); }
.exp-main:has(> .exp-left.prep) > .exp-right { min-height: var(--exp-prep-row); }
/* The controls (이전/다음, 송신 시작) start where the right column starts on every other screen (41.667 % of the width plus the
   column's padding), so 「화면 오른쪽 열 맨 위의 송신 시작 버튼」 points at them at every width; the table follows them and wraps
   under them when the row is too narrow, never pushing them left (session ruling 2026-11-12 02:1x: at 1536×864 실험 2's
   flush-right row put 송신 시작 at x ≈ 375-480 px). Pin: e1-look prep-btn; mutations prep-btn-left (1920), prep-btn-left-1536. */
/* The notice row (.exp-msg) spans the whole content width from the left edge, so a device or file notice is one line, while the
   controls and the table keep starting where the right column starts (coordinator 2026-11-12 03:0x: 실험 1's 준비a after 가상
   Pluto로 바꾸기 overflowed 6 px at 1536×864 with the notice wrapped in the right part of the row, job
   lr-wes-experiments-261111173500). The row keeps its left padding P = 41.667 % of its width W plus 32 px (24 px below 1000 px
   height), so the table still sits beside the controls when it fits; the notice takes it back with a negative margin. A margin's
   % is of the content width C = W − P − R (R the row's right padding, 32 px / 24 px), so W = (C + 32 + R) / 0.58333 and
   P = 71.4296 % of C + 0.714296 × (32 + R) + 32. The notice starts at the left column's padding L (30 px / 24 px) and ends at the
   row's right padding: margin-left = L − P, width = C + P − L. 1920 (R 32, L 30): 71.4296 % + 47.715 px; 1536×864 (R 24, L 24):
   71.4296 % + 34.286 px. No viewport units: a flex placement would need the controls and the table in one box (a change of the
   page's DOM). Pin: e2-look prep-form (the notice one line, prep-btn); mutations prep-notice-right, prep-notice-padded. */
.exp-main:has(> .exp-left.prep) > .exp-right { padding-left: calc(41.667% + 32px); }
.exp-main:has(> .exp-left.prep) > .exp-right > .exp-msg { margin-left: calc(-71.4296% - 47.715px); flex-basis: calc(171.4296% + 47.715px); }
/* The 준비 table sits in the row's left part, beside the controls (03:1x: with the controls' state word 「저장된 신호 사용 중」 or
   「송신 중」 the table could not sit on their right at 1536×864 even with its 장치 cell capped, went under them, and 실험 2's 준비
   text ran 24 px past the screen with a file loaded, job lr-wes-experiments-261111180735). It comes first (order −1), starts at
   the left column's padding L (the notice's margin) and takes the width up to the controls less the row's gap G (14 px / 10 px),
   so the controls still start at P: flex-basis P − L − G. Its table (about 580 px with the 160 px 장치 cap) fits inside it at both
   FIT sizes. Pin: e2-look prep-form (fit, prep-btn); mutation prep-table-under. */
.exp-main:has(> .exp-left.prep) > .exp-right > .exp-body { order: -1; margin-left: calc(-71.4296% - 47.715px); flex: 0 0 calc(71.4296% + 47.715px - 14px); }
@media (max-height: 1000px) {
  .exp-main:has(> .exp-left.prep) > .exp-right { padding-left: calc(41.667% + 24px); }
  .exp-main:has(> .exp-left.prep) > .exp-right > .exp-msg { margin-left: calc(-71.4296% - 34.286px); flex-basis: calc(171.4296% + 34.286px); }
  .exp-main:has(> .exp-left.prep) > .exp-right > .exp-body { margin-left: calc(-71.4296% - 34.286px); flex-basis: calc(71.4296% + 34.286px - 10px); }
}
.exp-main:has(> .exp-left.prep) > .exp-right > .exp-ctl { flex: none; }
.exp-main:has(> .exp-left.prep) > .exp-right > .exp-msg { flex-grow: 0; flex-shrink: 0; order: 3; }
.exp-main:has(> .exp-left.prep) > .exp-right > .exp-body { min-height: 0; }
/* 실험 4·5's 준비, the RX gain control (lecture-desk D:ab1718; Fable look a1d1e6b8 P1-1: at 1536×864 the control row ran off
   the screen's right edge, its readout held in the row's left part): the readout takes the band's full width (from the left
   column's padding to the row's right padding, as the notice row), and the controls come under it, starting where the right
   column starts and wrapping inside its width as on the task steps, so the gain group takes a second line where it must.
   Keyed on the gain control (.exp45-rx): 실험 1–3 keep the rules above. Pin: e45-look ctl-edge (every control-row element
   ends inside the viewport at both FIT sizes); mutations prep-ctl-none, prep-rx-unkeyed. */
.exp-main:has(> .exp-left.prep):has(.exp45-rx) > .exp-right > .exp-body { flex-basis: calc(171.4296% + 47.715px); }
.exp-main:has(> .exp-left.prep):has(.exp45-rx) > .exp-right > .exp-ctl { flex: 0 1 100%; min-width: 0; }
@media (max-height: 1000px) {
  .exp-main:has(> .exp-left.prep):has(.exp45-rx) > .exp-right > .exp-body { flex-basis: calc(171.4296% + 34.286px); }
}
/* 준비's 장치 cell (form B; Fable look on bbd975c0 P2-1 follow-up, coordinator 2026-11-12 02:5x): one line, at most 160 px, cut with
   an ellipsis, the full text in the cell's title (exp.js table(), kind 'prep'). A signal file's name (「불러온 신호 파일 · …npz」) or a
   real Pluto's model wrapped the cell, and the table under the controls, which pushed 실험 2's 준비 text 50 px past the screen at
   1536×864 with a file loaded (job lr-wes-experiments-261111173014). Pin: e2-look prep-form (the cell one line in every state);
   mutations prep-cell-nocap, prep-cell-wraps. */
.exp-main:has(> .exp-left.prep) > .exp-right table td:first-child { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-left.prep { border-right: 0; }
.exp-left.prep .exp-lead { columns: 2; column-gap: 56px; }
.exp-left.prep .exp-lead > :not(ol.exp-paras), .exp-left.prep .exp-lead li { break-inside: avoid; }
/* EXPERIMENT.prepSent (실험 2, look4b P3-2): 준비's button after it has sent, outlined in the theme's own colours */
#exp-app:not(:has(.exp-btn.run:enabled:not(.sent), .exp-go:enabled)) .exp-next:enabled { background: var(--go); border-color: var(--go); color: var(--paper); }
#exp-app:has(.exp-btn.run:enabled:not(.sent)) .exp-go { background: var(--paper); color: var(--go-2); }
.exp-btn.run.sent { background: var(--paper); color: var(--blue); border-color: var(--blue); }
/* 실험 2's 준비 (look4b P2-2): a visible gap between its paragraphs and around its list. course-theme.css's #exp-app p
   {margin: 0} outranks the .exp-lead rules above, so the rule names the id. 12 px at every size (Fable look on bbd975c0 P2-2:
   the earlier 4 px at 1536×864 did not show as a break; coordinator 03:3x: the largest gap of 12 px or less that keeps at least
   8 px spare in every 준비 state; measured with form B's table beside the controls, job lr-wes-experiments-261111181246, at
   1536×864 with 12 px: open 79, file-loaded 22, switched 22, sent 69, real Pluto 79 px). */
#exp-app .exp-lead > .pg { margin-top: var(--prep-gap, 12px); }
/* 실험 3: the 설명's 필요한 내용 line under its title (SPEC 실험 3 §3, R6; lab/text/gen-e3.mjs) */
#exp-app .exp-lead > .exp-need { margin: 0 0 10px; color: var(--muted); }
/* 실험 3-2: the 방법 1 | 2 | 3 switch above its one method frame (exp3-cards.js K32 render; Fable look 966ef203 P1-2) */
#exp-app .exp3-mswitch { flex: none; display: flex; justify-content: flex-start; margin: 0 0 8px; }
/* 실험 4·5's RX gain control (Fable look a1d1e6b8): the refusal on its own line under the field, in the 예상 refusal's colour
   (P2-7); a stopped run's figure and table dimmed under their line (P2-3); 실험 4-2's gain as text (P2-4) */
.exp45-rx .exp45-rx-err { flex-basis: 100%; }
.exp45-rx .exp45-rx-err[hidden] { display: none; }
#exp-app .exp45-dim { opacity: .42; }
#exp-app .exp45-older { margin: 0 0 6px; color: var(--muted); font-size: 16px; }
.exp45-rx-read { color: var(--muted); }
/* a square plot in a frame that keeps its width (exp.js figure wide; 실험 5-1's F8): the plot centred */
#exp-app .exp-fig.wide .exp-svg { display: flex; justify-content: center; }

/* ---------------------------------------------------------------- opt-in forms (DESIGN-port.md at the worktree root)
   Each rule below acts only on a class that exp.js adds under its flag; with EXPERIMENT.scroll, .layout and .oneLineTitle
   off none of these classes exists. Placement only: every text keeps its size, font and colour from course-theme.css. */
/* EXPERIMENT.scroll (PI 2026-11-11 22:37 KST "제한적으로 한두 스크롤 정도", content approved 2026-11-13 09:58): a scrolled
   설명 screen's text scrolls inside the left column; the code block is pinned at the column's bottom (.exp-dock), the figure
   column does not move. The native scrollbar gives way to the rail (exp.js flowCues), which shows the text's length and the
   view in every browser. */
.exp-left.flow { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.exp-left.flow:not(.task) { padding-bottom: 0; }
.exp-left.flow::-webkit-scrollbar { display: none; }
/* scrollCards (def.cards.scrollCards / EXPERIMENT.scrollCards, DESIGN-scroll.md R7): the card head, the five-part bar, the
   목적 line and the folded code stay; the shown part's body scrolls under the card head */
.exp-left.flow.task .exp-pcard { flex: 1 1 0; min-height: 0; }
.exp-left.flow.task .exp-part:not([hidden]) { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.exp-left.flow.task .exp-part::-webkit-scrollbar { display: none; }
/* a frame set aside on this part (exp.js figure aside) */
.exp-fig[hidden], table.exp-t[hidden] { display: none !important; }
.exp-dock { position: sticky; bottom: 0; z-index: 3; flex: none; background: var(--paper); padding: 0 0 22px; }
@media (max-height: 1000px) { .exp-dock { padding-bottom: 14px; } }
.exp-fadeL { position: absolute; z-index: 5; pointer-events: none; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--fade-bg, var(--paper)) 88%); }
.exp-moreL { position: absolute; z-index: 6; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 50%; background: var(--paper); color: var(--blue); box-shadow: 0 2px 8px rgba(37, 52, 60, .16); cursor: pointer; }
.exp-moreL svg { width: 22px; height: 22px; }
.exp-moreL:hover { border-color: var(--blue); }
.exp-railL { position: absolute; z-index: 5; width: 4px; border-radius: 2px; background: var(--line); pointer-events: none; }
.exp-railL > i { position: absolute; left: 0; right: 0; border-radius: 2px; background: var(--rule); }
.exp-fadeL[hidden], .exp-moreL[hidden], .exp-railL[hidden] { display: none; }
/* (scrollCards) the top fade of a scrolled card part's body (exp.js fadeT) */
.exp-fadeT { position: absolute; z-index: 5; pointer-events: none; background: linear-gradient(to top, rgba(255, 255, 255, 0), var(--fade-bg, var(--paper)) 70%); }
.exp-fadeT[hidden] { display: none; }
/* (scrollCards) the notice row holds only the hidden output of a capture (pre.lab-stream, .lab-value) after the first batch:
   it takes no row, so the right column's gap does not push the figures down by 10–14 px on 수신 (Fable look of the card
   sample 262a1617, P2-3: 수신 ×3 of 실험 2-1 dropped 10 px at 1536×864 and 14 px at 1920×1080 on 예상 저장) */
/* also every screen of a page with EXPERIMENT.layout (.exp-right[data-strip]: placeStrip sets it only then): 설명 2-12b's 수신
   in the title line dropped 401 → 415 px at 1920×1080 and 383 → 393 at 1536×864 on its first capture (e2-scroll) */
.exp-main:has(> .exp-left.flow.task) > .exp-right > .exp-msg:not(:has(> :not(.lab-stream, .lab-value))),
.exp-right[data-strip] > .exp-msg:not(:has(> :not(.lab-stream, .lab-value))) { display: none; }
/* a key whose paragraph is out of the reading band: outlined, not filled (choice review 2026-11-12 P1-2). It differs from
   the hover tie's is-dim (a filled square at .3 opacity); is-lit and is-dim win over it */
g.kb.is-away:not(.is-lit):not(.is-dim) rect { fill: var(--paper); stroke: var(--muted); stroke-width: 1.5; }
g.kb.is-away:not(.is-lit):not(.is-dim) text { fill: var(--muted); }
span.kb.is-away:not(.is-lit):not(.is-dim) { background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--muted); }

/* EXPERIMENT.oneLineTitle (PI 2026-11-13 09:58 "실험 2-1 박스와 제목이 줄바꿈 되지 않아도 되고"): the tag (설명 2-1b, the 실험
   2-2 box) and the title on one line; a title longer than the line wraps under the tag; the gap under them as under the
   title before */
.exp-tline { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; row-gap: 2px; margin: 0; }
#exp-app .exp-tline { margin-bottom: 18px; }
#exp-app .exp-tline h1 { margin: 0; }
.exp-tline .exp-kicker { flex: none; }
.exp-tline.task { align-items: center; }
.exp-tline.task .exp-pill { align-self: center; }
@media (max-height: 1000px) { #exp-app .exp-tline { margin-bottom: 10px; } }

/* EXPERIMENT.layout (layout B; PI 2026-11-13 09:58 "이전/다음/수신 같은 버튼 위치도 빈 공간이 있잖아"; html.exp-lb) */
/* ◀ 이전 / 다음 ▶ at the right end of the step bar, at a chip's height plus 4 px; the same place on every screen */
.exp-stepbar .exp-navhost { margin-left: auto; flex: none; padding-left: 16px; display: flex; align-items: center; }
.exp-navhost:empty { display: none; }
.exp-navhost .exp-btn { height: 38px; }
@media (max-height: 1000px) { .exp-navhost .exp-btn { height: 34px; } }
/* the strip: none without a control or 수신; in a row, the state right after 수신 */
html.exp-lb .exp-ctl[hidden] { display: none !important; }
html.exp-lbw .exp-ctl .exp-state { margin-left: 4px; }
/* the strip in a frame's title line, at the line's right end */
.exp-ctl.incap { min-height: 0; flex-wrap: nowrap; margin-left: auto; }
.exp-ctl.incap .exp-btn, .exp-ctl.incap .exp-seg button { height: 36px; }
.exp-fig.sf figcaption:has(> .exp-ctl.incap) { padding-top: 3px; padding-bottom: 3px; }
/* a split strip's choice part: no line before 수신 there */
.exp-ctlb .vsep { display: none; }
/* a frame that holds a strip: the zoom hint and 전체 보기 of its plot on the line under the title line (exp-plot.js puts
   them between the title and the legend, where the strip now is); a frame with 수신 keeps that line from the start, so
   the first capture does not change the frame's height */
.exp-fig.sf.has-strip > figcaption > .exp-ztools { order: 5; flex: 1 0 100% !important; margin-right: 0 !important; justify-content: flex-start !important; min-height: 30px; }
.exp-fig.sf.has-run > figcaption:not(:has(> .exp-ztools))::after { content: ''; order: 5; flex: 1 0 100%; height: 30px; }
/* where the pair is in the step bar (html.exp-lbw, exp.js measureBar): 수신 and the strip's buttons at the title line's
   height in a row too */
html.exp-lbw .exp-ctl .exp-btn, html.exp-lbw .exp-ctl .exp-seg button, html.exp-lbw .exp-ctl .val { height: 36px; }
html.exp-lbw .exp-ctl:not(.incap) { min-height: 44px; }
/* a frame dimmed by a tie (is-dim) or marked → 설명 2-Nx (is-ref) keeps its strip at full strength: the drawing and the
   title fade, the buttons do not (a faded 수신 would read as off) */
.exp-fig.sf.has-strip.is-dim, .exp-fig.sf.has-strip.is-ref:not(.is-dim):not(.is-lit) { opacity: 1; }
.exp-fig.sf.has-strip.is-dim > :not(figcaption), .exp-fig.sf.has-strip.is-dim figcaption > :not(.exp-ctl) { opacity: .35; }
.exp-fig.sf.has-strip.is-ref:not(.is-dim):not(.is-lit) > :not(figcaption), .exp-fig.sf.has-strip.is-ref:not(.is-dim):not(.is-lit) figcaption > :not(.exp-ctl) { opacity: .5; }
/* (scroll-int, Fable look of 실험 4·5 item 3) 실험 4's two half-width spectra (설명 4-1c): a legend entry longer than its frame
   (「LO leakage가 나타나는 위치(이 가상 신호에는 없음)」 at 1440×900, 22 px past the frame) wraps inside it, text size kept */
.exp-fig.sf[data-sf^="f1s-"] .lg { min-width: 0; white-space: normal; }
.exp-fig.sf[data-sf^="f1s-"] .lg span { min-width: 0; }
/* OOK/FSK legends wrap within each comparison caption. */
.exp-fig.sf:is([data-sf="compareOok"], [data-sf="compareFsk"]) .lg { min-width: 0; max-width: 100%; white-space: normal; }
.exp-fig.sf:is([data-sf="compareOok"], [data-sf="compareFsk"]) .lg span { min-width: 0; }

/* EXPERIMENT.chipScroll (실험 2; exp.js CHIP_SCROLL): the chip row scrolls sideways where it is wider than the bar, at the
   same text size, its scrollbar hidden; ‹ › at a cut edge over a fade of the bar's colour */
.exp-stepbar.scroll .exp-chipwrap { position: relative; flex: 0 1 auto; min-width: 0; display: flex; align-items: center; height: 100%; }
.exp-stepbar.scroll .exp-chips { min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; height: 100%; }
.exp-stepbar.scroll .exp-chips::-webkit-scrollbar { display: none; }
.exp-stepbar.scroll .exp-chip { flex: none; }
/* 참고자료 as its own view (exp.js refHost; PI 2026-11-16 22:43 "실험2의 참고자료는 별도 메뉴로 빼자"): the entry stands after the
   chip row, outside its scroller, in the chip's own look; nothing new but its place */
.exp-stepbar .exp-refhost { flex: none; display: flex; align-items: center; }
.exp-stepbar .exp-refhost[hidden] { display: none; }
.exp-stepbar .exp-refhost .exp-chip, .exp-chips .exp-refback { flex: none; }
.exp-chipmore { position: absolute; top: 0; bottom: 0; width: 52px; display: flex; align-items: center; padding: 0; border: 0;
  font: 700 28px/1 var(--remi-font); color: var(--blue); cursor: pointer; }
.exp-chipmore[hidden] { display: none; }
.exp-chipmore.l { left: 0; justify-content: flex-start; padding-left: 4px; background: linear-gradient(90deg, var(--paper) 55%, transparent); }
.exp-chipmore.r { right: 0; justify-content: flex-end; padding-right: 4px; background: linear-gradient(270deg, var(--paper) 55%, transparent); }

@media (max-width: 760px) {
  /* Keep controls and groups reachable by wrapping in DOM order. */
  html.exp-page .remi-bar .remi-bar-in { column-gap: 8px !important; }
  html.exp-page #exp-app :is(.exp-top, .rep-top) { height: auto; max-width: 100%; overflow: visible !important; flex-wrap: wrap; gap: 8px; padding: 8px 16px; white-space: normal; }
  html.exp-page #exp-app .exp-top .exp-name { flex: 1 1 100%; min-width: 0; max-width: 100% !important; white-space: normal !important; overflow: visible; }
  html.exp-page #exp-app .exp-top .exp-py { margin-left: 0; }
  html.exp-page #exp-app .exp-top .exp-status { width: 100%; max-width: 100%; margin: 0; flex-wrap: wrap; gap: 8px; }
  html.exp-page #exp-app .exp-top .exp-status > * { margin-left: 0; }
  html.exp-page #exp-app .exp-top .exp-status > .tb-staff { max-width: 100%; height: auto; min-height: 34px; flex-wrap: wrap; white-space: normal; gap: 4px; padding: 8px 12px; }
  html.exp-page #exp-app .exp-top .exp-status > .tb-staff > .tb-ans { min-width: 0; margin-left: 0; white-space: normal; }
  html.exp-page #exp-app .exp-top :is(button, a) { min-height: 44px; }
  html.exp-page #exp-app .rep-top .rep-link { display: inline-flex; align-items: center; }
  html.exp-page #exp-app .rep-top .exp-name { flex: 1 1 0; }
  html.exp-page #exp-app .rep-top .rep-here { flex: 0 0 auto; }
  html.exp-page #exp-app .rep-top .rep-end { flex: 1 0 100%; justify-content: flex-end; gap: 8px; margin-left: 0; }
  html[data-course-kind="exp"] #exp-app {
    height: auto;
    overflow: visible;

    & :is(.exp-top, .exp-stepbar) { max-width: 100%; height: auto; flex-wrap: wrap; overflow: visible; }
    & :is(.exp-chips, .exp-chipwrap) { width: 100%; min-width: 0; max-width: 100%; height: auto; flex: 1 1 auto; flex-wrap: wrap; overflow: visible; }
    & .exp-top .exp-gone { display: inline-block !important; }

    & .exp-main { display: flex; flex-direction: column; flex: none; min-width: 0; }
    & :is(.exp-left, .exp-right) { width: 100%; min-width: 0; overflow: visible; }
    & .exp-left { zoom: 1 !important; width: 100% !important; height: auto !important; }
    & .exp-left.prep .exp-lead { columns: auto; }
    & .exp-main:has(> .exp-left.prep) > .exp-right {
      order: 0; flex-direction: column; align-items: stretch; padding-left: 24px;
    }
    & .exp-right > :is(.exp-body, .exp-msg, .exp-ctl) { flex: none; margin-left: 0; }
    & :is(.exp-main, .exp-left, .exp-right, .exp-body, .exp-row, .exp-ctl) > * { min-width: 0; }
    & .exp-left.flow.task :is(.exp-pcard, .exp-part:not([hidden])) { flex: auto; overflow: visible; }
    & .exp-dock { position: static; }

    & :is(.exp-ctl, .exp-prow, .exp-seg) { max-width: 100%; flex-wrap: wrap; }
    & :is(.exp-lead, .exp-gtext) :is(code, .kt, .nw),
    & :is(.exp-ctl .exp-state, .exp-inerr) { white-space: normal; }
    & .exp-steps { display: flex; flex-wrap: wrap; }
    & .exp-steps small { overflow-wrap: normal; }
    & :is(figure, canvas, svg, table, pre, .exp-code) { max-width: 100%; }
    & :is(table, pre, .exp-code, .eq) { overflow-x: auto; }
    & table { display: block; }
    & .exp-code li { width: max-content; min-width: 100%; white-space: pre; }
    & .exp-left.scroll .exp-code li .c { overflow-wrap: normal; }
    & .exp-svg { min-height: 180px; }
  }
}

/* The last task's submission guidance keeps the card's existing text metrics. */
.exp-submit-line { margin-top: 1em; }

/* V-A1: persistent result status above the scroll body; navigation owns its entire row. */
.exp-pcard > :is(.r-left, .s-left) { flex: none; display: block; min-height: 64px; padding: 8px 20px; border-bottom: 1px solid var(--line); }
.r-task-buttons { display: flex; align-items: center; gap: 16px; flex: 0 1 auto; }
.r-task-buttons .r-device { white-space: nowrap; flex: none; }
.r-task-controls > p:not([data-sum]) { flex-basis: 100%; }
.r-task-controls > [data-sum] { white-space: nowrap; }
table.exp-t.r-records { table-layout: auto; width: auto; align-self: flex-start; flex: none; }
table.exp-t.r-records :is(th, td):first-child { width: auto; max-width: none; white-space: nowrap; overflow: visible; }
table.exp-t.r-records td { overflow: visible; }
.exp-fig.sf[data-sf="four"] { flex: none !important; height: 540px; max-height: 540px; }

/* V19: paired frames retain their inline weights; standalone frames keep the fixed box. */
.exp-fig.sf.v19-size { max-width: 960px !important; max-height: 540px !important; }
.exp-fig.sf.v19-size:not(.exp-row:has(> .v19-size ~ .v19-size) > .v19-size) { flex: none !important; height: 540px; }

.rep-link { color: var(--link); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.rep-link:hover, .rep-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
#exp-app .exp-field-save > .rep-link { font: inherit; }

/* The one screen hint belongs below its frames, outside every caption. */
.exp-body > .exp-zhintrow { flex: none; margin: 0; font-size: 16px; line-height: 1.35; color: var(--muted); max-width: 960px; }
/* Tables and status rows end on the figure column's common right edge. */
.exp-body > :is(table.exp-t, .exp-row) { max-width: 960px; width: 100%; box-sizing: border-box; }
.exp-body.r-task-body { gap: 4px; }
.r-task-body > .exp-row { flex: none; }
.r-task-body .exp-row p { margin: 0; line-height: 1.25; }
.r-task-detail { font-size: .85em; }
.r-task-detail > .r-decode-group, .r-task-detail > .r-same-capture { flex: 1 1 200px; }
.exp-body.r-task-body > .exp-fig.r-task-figure { flex: none !important; height: auto; min-height: 0; max-height: none; }
.exp-body.r-task-body > .exp-fig.r-task-figure[data-sf="frozen51"] { flex: none !important; max-height: none; }
.r-task-body table.exp-t.r-records { width: 100%; max-width: 960px; }
.exp-body.r-task-body table.exp-t caption { margin-bottom: 2px; }
.exp-body.r-task-body table.exp-t :is(th, td) { padding-block: 3px; line-height: 1.3; }
.r-task-controls input[type="range"] { min-width: 100px; }

.exp-fig.sf.has-strip > figcaption > .exp-ztools { flex: 0 0 auto !important; min-height: 0; }
.exp-fig.sf.has-run > figcaption:not(:has(> .exp-ztools))::after { display: none; }
.exp-fig .lg .lgtext { display: inline-flex; flex-basis: auto; }
.exp-fig .nw, .exp-zread .nw, table.exp-t th .nw { white-space: nowrap; }

.exp-fig.sf .exp-plotrefs { color: var(--muted); font-size: 17px; font-weight: 400; }

.r-task-tuning { display: flex; flex: 0 0 100%; flex-wrap: wrap; align-items: center; gap: 6px 10px; white-space: nowrap; }
.r-task-tuning > .exp-unit { display: inline-flex; flex: 1 1 auto; align-items: center; gap: 8px; }
.r-task-tuning input[type="range"] { flex: 1 1 0; width: 0; }
.r-task-tuning [data-sum] { flex: 0 1 auto; margin: 0 auto 0 0; white-space: nowrap; }

.exp-fig .lg > .lg-group { display: flex; flex-basis: 100%; align-items: center; gap: 16px; }

.exp45-action-box {
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #f0f6ff;
  font-size: 16.5px;
  line-height: 1.55;
}
.exp45-action-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 700; color: #1e3a8a; }
.exp45-action-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.exp45-note-card {
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 15.5px;
  line-height: 1.5;
}
.exp45-note-card .exp45-note-title { font-weight: 700; color: #1e3a8a; margin-bottom: 4px; font-size: 15.5px; }
.exp45-note-card ul { margin: 0; padding-left: 18px; }
.exp45-note-card li { margin: 2px 0; }

/* Mockup-grade task status banner inside left pcard (Lab 4-5 only; preserves Lab 2 .s-left) */
.exp-pcard > .r-left {
  flex: none;
  display: block;
  min-height: 0;
  margin: 8px 16px 2px;
  padding: 9px 13px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #f0f6ff;
  color: #1e3a8a;
  font-size: 15px;
  line-height: 1.4;
}
.exp-pcard > .r-left.done {
  border-color: #86efac;
  background: #ecfdf3;
  color: #166534;
}
.r-stepbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-bottom: 3px;
  font-weight: 700;
  font-size: 14.5px;
}
.r-step-sep { color: #94a3b8; font-weight: 600; }
.r-step-pill { padding: 0; border: 0; background: none; color: #64748b; font-size: 14.5px; font-weight: 600; }
.r-step-pill.now { color: var(--blue); font-weight: 700; }
.r-step-pill.done { color: #15803d; font-weight: 700; }
.r-step-pill.wait { color: #64748b; }
.r-left-msg { display: block; font-size: 14px; color: inherit; opacity: .92; }
.exp-measure-cta { margin-top: 8px; }

/* Mockup-grade right-pane cards, controls, banners, bars, tables */
.exp45-ctl-card {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 9px 14px;
  border: 1px solid #dbe2ec;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
  font-size: 15.5px;
}
.exp45-ctl-card .exp45-ctl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  width: 100%;
  font-size: 14px;
}
.exp45-ctl-card input[type="range"] { width: 96px; }
.exp45-ctl-card .exp45-ctl-row + .exp45-ctl-row {
  padding-top: 7px;
  border-top: 1px solid #edf2f7;
}
.exp45-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}
.exp45-pill-status.frozen { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.exp45-pill-status.live { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.exp45-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #15803d;
  margin-left: 10px;
}
.exp45-live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}
.exp45-live-dot.paused { color: #64748b; }
.exp45-live-dot.paused::before { background: #94a3b8; }

.exp45-seg-toggle {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}
.exp45-seg-toggle button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.exp45-seg-toggle button + button { border-left: 1px solid #cbd5e1; }
.exp45-seg-toggle button.on { background: #eff6ff; color: #1d4ed8; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--blue); }
.exp45-seg-toggle button.on.ok { background: #ecfdf3; color: #15803d; box-shadow: inset 0 0 0 1.5px #16a34a; }

.exp45-card-foot {
  padding: 5px 14px 8px;
  font-size: 14px;
  line-height: 1.35;
  color: #334155;
  border-top: 1px solid #f1f5f9;
}
.exp45-banner {
  margin: 4px 12px 10px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
}
.exp45-banner.ok { background: #ecfdf3; color: #15803d; border: 1px solid #bbf7d0; }
.exp45-banner.bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.exp45-table-card {
  flex: none;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe2ec;
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.exp45-table-card .exp45-table-head {
  padding: 7px 14px 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid #edf2f7;
}
.exp45-table-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.exp45-table-card th {
  background: #f5f7fb;
  color: #334155;
  font-weight: 700;
  padding: 6px 12px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.exp45-table-card td {
  padding: 6px 12px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.35;
}
.exp45-table-card tr:last-child td { border-bottom: 0; }
.exp45-table-card tr.active td { background: #f8fbff; }
.exp45-table-card :is(th, td):first-child { text-align: left; font-weight: 650; }
.t-ok { color: #15803d; font-weight: 700; }
.t-bad { color: #b91c1c; font-weight: 700; }
.t-blue { color: #1d4ed8; font-weight: 700; }
.t-orange { color: #c2410c; font-weight: 700; }
.t-purple { color: #6d28d9; font-weight: 700; }
.t-muted { color: #64748b; }

/* Mockup-grade split card (constellation left + HTML bars/insight right) */
.exp45-split-card {
  flex: none;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe2ec;
  border-radius: 12px;
  background: var(--paper);
  padding: 10px 14px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.exp45-split-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.exp45-split-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.exp45-split-legend { display: inline-flex; align-items: center; gap: 12px; font-size: 13.5px; color: #475569; }
.exp45-split-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.05fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: center;
}
.exp45-split-svg svg { display: block; width: 100%; height: auto; }
.exp45-bar-panel {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.exp45-bar-title { font-size: 15.5px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.exp45-bar-sub { font-size: 13.5px; color: #475569; margin-bottom: 8px; }
.exp45-bar-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 7px 0;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.exp45-bar-lbl { font-weight: 700; min-width: 28px; }
.exp45-bar-track {
  height: 14px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.exp45-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .12s ease;
}
.exp45-bar-val { font-weight: 700; min-width: 78px; text-align: right; white-space: nowrap; }
.exp45-insight {
  margin-top: 9px;
  padding: 8px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: var(--paper);
  font-size: 13.5px;
  line-height: 1.45;
  color: #334155;
}
.exp45-insight.warn { border-color: #fed7aa; background: #fff7ed; }
.exp45-insight-title { font-weight: 700; color: var(--ink); margin-bottom: 3px; font-size: 14px; }
.exp45-insight ul { margin: 0 0 4px; padding-left: 16px; }
.exp45-insight li { margin: 1px 0; }
.exp45-insight-take { font-weight: 700; color: #c2410c; }

.exp-body.r-task-body > .exp-fig.r-task-figure[data-sf="frozen52"] { flex: none !important; max-height: none; }
.r-task-controls { flex-wrap: wrap; gap: 8px 14px; }

.exp45-iq-strip-card {
  flex: none;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe2ec;
  border-radius: 12px;
  background: var(--paper);
  padding: 9px 14px 11px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.exp45-iq-strip-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.exp45-iq-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.exp45-iq-thumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.exp45-iq-thumb svg { flex: none; width: 52px; height: 46px; }
.exp45-iq-thumb-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 12.5px; line-height: 1.3; }
.exp45-iq-thumb-text b { font-size: 13.5px; color: var(--ink); }
.exp45-iq-thumb-text em { font-style: normal; font-weight: 700; }
.exp45-iq-thumb.active { border-color: var(--blue); background: #eff6ff; box-shadow: 0 0 0 1px var(--blue); }
.exp45-iq-thumb.active[data-mode="quadrature"] { border-color: #ea580c; background: #fff7ed; box-shadow: 0 0 0 1px #ea580c; }
.exp45-iq-thumb.active[data-mode="gain"] { border-color: #16a34a; background: #ecfdf3; box-shadow: 0 0 0 1px #16a34a; }

/* Prep control card */
.exp45-prep-line {
  flex: none;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 14px;
  border: 1px solid #dbe2ec;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  font-size: 15.5px;
}
.exp45-prep-line .exp45-readout-value {
  font-size: 14.5px;
  color: #334155;
  margin-left: 6px;
}
.exp45-gain-change {
  flex: none;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: #f0f6ff;
  border: 1px solid #bfdbfe;
  font-size: 13px;
  line-height: 1.4;
  color: #1e3a8a;
}

/* ============================================================================
   Unified Mockup-Grade Visual System for Labs 1-5 (2026-11-30)
   Strictly scoped to non-report experiment pages (#exp-app:not(.rep-app)) and
   lab-web-design tokens (course-theme.css). Preserves report-page, mobile
   @media (max-width: 760px), and all Lab 1-5 interactive state modifiers.
   ============================================================================ */
html[data-course-kind="exp"]:not(.report-page),
html.exp-page:not(.report-page),
#exp-app:not(.rep-app) {
  --band: var(--wash);
  --reading: var(--paper);
  --radius: 8px;
  --radius-box: 14px;
}

html.exp-page:not(.report-page),
html.exp-page:not(.report-page) body {
  background: var(--wash);
}

#exp-app:not(.rep-app) {
  background: var(--wash);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Top bar & step bar: sleek mockup proportions */
#exp-app:not(.rep-app) .exp-top {
  height: 50px;
  padding: 0 24px;
  gap: 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
#exp-app:not(.rep-app) .tb-a .exp-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
#exp-app:not(.rep-app) .tb-a .exp-py {
  font-size: 12.5px;
  color: var(--muted);
  margin-left: -4px;
}
#exp-app:not(.rep-app) .tb-a .exp-py .exp-dot { width: 7px; height: 7px; }
#exp-app:not(.rep-app) .tb-a .exp-status > .tb-stat {
  height: 30px;
  padding: 0 12px 0 10px;
  font-size: 13px;
  border-radius: 8px 0 0 8px;
}
#exp-app:not(.rep-app) .tb-a .exp-status > .tb-cell {
  height: 30px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 600;
}
#exp-app:not(.rep-app) .tb-a .exp-status > .tb-acct {
  height: 30px;
  font-size: 13px;
}
#exp-app:not(.rep-app) .tb-a .tb-acct .tb-signin {
  height: 30px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 13px;
}
#exp-app:not(.rep-app) .tb-a .tb-acct .tb-who { line-height: 30px; }
#exp-app:not(.rep-app) .tb-a .exp-status > .tb-staff {
  height: 30px;
  font-size: 12.5px;
  padding: 0 10px;
}
#exp-app:not(.rep-app) .tb-a .exp-status > a.tb-report {
  height: 30px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 8px;
}
@media (min-width: 761px) {
  #exp-app:not(.rep-app) .tb-a .exp-status > .tb-acct { margin-left: 16px; }
  #exp-app:not(.rep-app) .tb-a .exp-status > a.tb-report { margin-left: 10px; }
}
#exp-app:not(.rep-app) .exp-top .exp-devbtn,
#exp-app:not(.rep-app) .exp-top .exp-sigbtn {
  height: 30px;
  padding: 0 11px;
  font-size: 13px;
}

#exp-app:not(.rep-app) .exp-stepbar {
  height: 44px;
  padding: 0 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
#exp-app:not(.rep-app) .exp-chips { gap: 5px; font-size: 13px; }
#exp-app:not(.rep-app) .exp-grp {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 3px 0 6px;
}
#exp-app:not(.rep-app) .exp-gap { width: 8px; }
#exp-app:not(.rep-app) .exp-chip {
  min-width: 32px;
  min-height: 28px;
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--paper);
  color: var(--go);
  transition: background .12s ease, border-color .12s ease;
}
#exp-app:not(.rep-app) .exp-chip:hover:not([aria-disabled="true"]):not(.now) {
  background: var(--wash);
  border-color: var(--ink-2);
}
#exp-app:not(.rep-app) .exp-chip.done {
  background: var(--go-t);
  border-color: color-mix(in srgb, var(--go) 30%, var(--line));
  color: var(--go-2);
}
#exp-app:not(.rep-app) .exp-chip.now {
  background: var(--go);
  border-color: var(--go);
  color: var(--paper);
  font-weight: 700;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--go) 28%, transparent);
}
#exp-app:not(.rep-app) .exp-chip .hv { margin-left: 4px; font-size: 12px; }
#exp-app:not(.rep-app) .exp-nav { gap: 6px; }
#exp-app:not(.rep-app) .exp-nav .exp-btn,
#exp-app:not(.rep-app) .exp-nav .exp-btn:first-child,
#exp-app:not(.rep-app) .exp-nav .exp-btn:last-child {
  border-radius: 8px;
  border-left: 1px solid var(--control-line);
}
#exp-app:not(.rep-app) .exp-navhost .exp-btn {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Main two-column workspace */
@media (min-width: 761px) {
  #exp-app:not(.rep-app) .exp-main {
    grid-template-columns: minmax(380px, 39.5%) minmax(0, 1fr);
  }
  #exp-app:not(.rep-app) .exp-main:has(> .exp-left.prep) {
    grid-template-columns: minmax(0, 1fr);
  }
}

#exp-app:not(.rep-app) .exp-left {
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 18px 24px 16px;
}
#exp-app:not(.rep-app) .exp-left.flow:not(.task) {
  padding-bottom: 0;
}
#exp-app:not(.rep-app) .exp-left.task {
  background: var(--paper);
  padding: 16px 22px 14px;
}
#exp-app:not(.rep-app) .exp-right {
  background: var(--wash);
  padding: 16px 22px;
  gap: 12px;
}
#exp-app:not(.rep-app) .exp-body { gap: 12px; }
#exp-app:not(.rep-app) .exp-row { gap: 14px; }

/* Titles & left-column typography */
#exp-app:not(.rep-app) .exp-tline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  margin: 0 0 12px;
}
#exp-app:not(.rep-app) .exp-kicker {
  font-size: 14px;
  font-weight: 700;
  color: var(--go);
  letter-spacing: -0.01em;
}
#exp-app:not(.rep-app) .exp-pill {
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--go);
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
#exp-app:not(.rep-app) h1 {
  font-size: 19px;
  line-height: 1.32;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 4px 0 12px;
}
#exp-app:not(.rep-app) .exp-tline h1 {
  margin: 0;
  font-size: 18.5px;
}
#exp-app:not(.rep-app) .exp-lead {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--ink);
}
#exp-app:not(.rep-app) .exp-lead p + p { margin-top: 8px; }
#exp-app:not(.rep-app) .exp-lead > .exp-need {
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--wash);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
#exp-app:not(.rep-app) .exp-lead ol.exp-paras > li { padding-left: 32px; }
#exp-app:not(.rep-app) .exp-lead ol.exp-paras > li + li { margin-top: 12px; }
#exp-app:not(.rep-app) .exp-lead ol.exp-paras > li > .pk { top: 2px; }
#exp-app:not(.rep-app) .exp-lead ol.exp-paras > li.is-lit::before {
  inset: -6px -10px -6px -6px;
  border-radius: 10px;
  background: var(--go-t);
}
#exp-app:not(.rep-app) .pk,
#exp-app:not(.rep-app) span.kb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 700 12px/1 var(--remi-font);
}
#exp-app:not(.rep-app) .pk.txt {
  background: var(--paper);
  color: var(--muted);
  border: 1.5px solid var(--line-2);
}
#exp-app:not(.rep-app) span.kb.is-away:not(.is-lit):not(.is-dim) {
  background: var(--paper);
  color: var(--muted);
  box-shadow: inset 0 0 0 1.5px var(--muted);
}
#exp-app:not(.rep-app) .exp-fig.sf .pt span.kb {
  width: 20px;
  height: 20px;
  font-size: 11.5px;
  margin-right: 6px;
  vertical-align: 0;
}
#exp-app:not(.rep-app) .exp-code li span.kb {
  width: 20px;
  height: 20px;
  font-size: 11.5px;
  margin: 0 8px 0 6px;
}
#exp-app:not(.rep-app) .exp-foot {
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 8px;
}
#exp-app:not(.rep-app) .exp-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}

/* Read-only code block */
#exp-app:not(.rep-app) .exp-code {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--wash);
}
#exp-app:not(.rep-app) .exp-code-bar {
  height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
  background: var(--surface);
  color: var(--muted);
}
#exp-app:not(.rep-app) .exp-code ol { padding: 6px 0; }
#exp-app:not(.rep-app) .exp-code li {
  min-height: 22px;
  font: 12.5px/22px var(--mono);
  color: var(--ink);
  border-left: 3px solid transparent;
}
#exp-app:not(.rep-app) .exp-code li .n { width: 30px; padding-right: 10px; font-size: 11.5px; color: var(--muted); }
#exp-app:not(.rep-app) .exp-code li.hl { background: var(--go-t); border-left-color: var(--go); }
#exp-app:not(.rep-app) .exp-code li .kref { font-size: 12px; }
#exp-app:not(.rep-app) .exp-dock { padding: 0 0 12px; }
#exp-app:not(.rep-app) .exp-moreL {
  width: 32px;
  height: 32px;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 16%, transparent);
}
#exp-app:not(.rep-app) .exp-moreL svg { width: 17px; height: 17px; }

/* Task stepper & task card (Labs 1-5) */
#exp-app:not(.rep-app) .exp-steps { margin: 0 0 10px; }
#exp-app:not(.rep-app) .exp-steps li::before { top: 13px; height: 1.5px; background: var(--line); }
#exp-app:not(.rep-app) .exp-steps li.done::before,
#exp-app:not(.rep-app) .exp-steps li.now::before { background: var(--go); }
#exp-app:not(.rep-app) .exp-stp { font-size: 12px; color: var(--muted); }
#exp-app:not(.rep-app) .exp-stp .node {
  width: 26px;
  height: 26px;
  border-width: 1.5px;
  border-color: var(--line-2);
  font-size: 12.5px;
  color: var(--muted);
}
#exp-app:not(.rep-app) .exp-stp .node svg { width: 13px; height: 13px; }
#exp-app:not(.rep-app) .exp-steps .done .node {
  border-color: var(--go);
  background: var(--go);
  color: var(--paper);
}
#exp-app:not(.rep-app) .exp-steps .now .node {
  border-color: var(--go);
  color: var(--go);
}
#exp-app:not(.rep-app) .exp-steps .view .node { box-shadow: 0 0 0 4px var(--select); }
#exp-app:not(.rep-app) .exp-stp b { margin-top: 3px; font-size: 12px; }
#exp-app:not(.rep-app) .exp-steps small { font-size: 11.5px; }

#exp-app:not(.rep-app) .exp-pcard {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 5%, transparent);
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink);
}
#exp-app:not(.rep-app) .exp-pch {
  min-height: 38px;
  padding: 4px 12px 4px 14px;
  gap: 8px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
}
#exp-app:not(.rep-app) .exp-pch .k { font-size: 13px; color: var(--muted); }
#exp-app:not(.rep-app) .exp-pname { font-size: 15px; font-weight: 700; color: var(--ink); }
#exp-app:not(.rep-app) .exp-pnavs { gap: 6px; }
#exp-app:not(.rep-app) .exp-pch .exp-btn,
#exp-app:not(.rep-app) .exp-prep .exp-rep,
#exp-app:not(.rep-app) .exp-prep.pop .exp-repcount {
  height: 28px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
}
#exp-app:not(.rep-app) .exp-prep .exp-rep svg,
#exp-app:not(.rep-app) .exp-prep.pop .exp-repcount svg { width: 12px; height: 13px; }

#exp-app:not(.rep-app) .exp-save-warning {
  padding: 4px 14px;
  font-size: 11.5px;
  line-height: 1.25;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  gap: 8px;
}
@media (min-width: 481px) {
  #exp-app:not(.rep-app) .exp-save-warning {
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  #exp-app:not(.rep-app) .exp-save-warning .exp-save-message {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #exp-app:not(.rep-app) .exp-save-warning .exp-btn {
    min-height: 22px;
    height: 22px;
    padding: 0 9px;
    font-size: 11.5px;
  }
}
#exp-app:not(.rep-app) .exp-save-warning .exp-btn {
  font-weight: 600;
  border-radius: 6px;
  border-color: var(--line-2);
  background: var(--paper);
  color: var(--go);
  flex: none;
}
#exp-app:not(.rep-app) .exp-save-warning .exp-btn:hover:not(:disabled):not(.run):not(.exp-go):not(.exp-next) {
  background: var(--go-t);
  border-color: var(--go);
  color: var(--go-2);
}

#exp-app:not(.rep-app) .exp-part { padding: 10px 16px 12px; gap: 8px; }
#exp-app:not(.rep-app) .exp-pcard p { font-size: 14px; line-height: 1.58; }
#exp-app:not(.rep-app) .exp-pcard .exp-prow,
#exp-app:not(.rep-app) .exp-pcard .exp-prow .unit,
#exp-app:not(.rep-app) .exp-pcard .exp-prow .exp-spread,
#exp-app:not(.rep-app) .exp-pcard .exp-pseg button,
#exp-app:not(.rep-app) .exp-pcard .exp-save,
#exp-app:not(.rep-app) .exp-pcard .exp-text,
#exp-app:not(.rep-app) .exp-pcard .exp-verdict,
#exp-app:not(.rep-app) .exp-pcard .exp-verdict .exp-diff,
#exp-app:not(.rep-app) .exp-pcard .exp-field > span {
  font-size: 13.5px;
}
#exp-app:not(.rep-app) .exp-pcard .exp-in,
#exp-app:not(.rep-app) .exp-pcard .exp-text,
#exp-app:not(.rep-app) .exp-pcard .exp-save,
#exp-app:not(.rep-app) .exp-pcard .exp-go {
  height: 34px;
  font-size: 13.5px;
  border-radius: 8px;
}
#exp-app:not(.rep-app) .exp-pcard .exp-auto {
  height: 34px;
  font-size: 14px;
  border-radius: 8px;
  padding: 0 10px;
}
#exp-app:not(.rep-app) .exp-pcard .exp-save-row .exp-save { height: 34px; padding: 0 15px; }
#exp-app:not(.rep-app) .exp-pcard .exp-go { padding: 0 16px; }
#exp-app:not(.rep-app) .exp-pcard textarea {
  height: 62px;
  padding: 6px 10px;
  font: 13.5px/1.5 var(--remi-font);
  border-radius: 8px;
  border-color: var(--line-2);
}
#exp-app:not(.rep-app) .exp-pcard textarea:focus,
#exp-app:not(.rep-app) .exp-pcard .exp-in:focus,
#exp-app:not(.rep-app) .exp-pcard .exp-text:focus {
  outline: none;
  border-color: var(--go);
  box-shadow: 0 0 0 3px var(--select);
}
#exp-app:not(.rep-app) .exp-pcard textarea + .exp-field-save { font-size: 12px; min-height: 17px; }
#exp-app:not(.rep-app) .exp-basis .exp-bhead { min-height: 28px; }
#exp-app:not(.rep-app) .exp-pcard .exp-given,
#exp-app:not(.rep-app) .exp-pcard .exp-how {
  padding: 7px 12px;
  border-left: 3px solid var(--go);
  border-radius: 8px;
  background: var(--go-t);
  font-size: 13.5px;
  color: var(--go-2);
}
#exp-app:not(.rep-app) .exp-pcard .exp-how:not([hidden]) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
#exp-app:not(.rep-app) .exp-pcard .exp-why {
  margin-top: -8px;
  padding: 0 12px 6px;
  border-left: 3px solid var(--go);
  border-radius: 0 0 8px 8px;
  background: var(--go-t);
  font-size: 13px;
  color: var(--ink);
}
#exp-app:not(.rep-app) .exp-pcard > .s-left {
  min-height: 0;
  margin: 8px 14px 2px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--go) 28%, var(--line));
  border-radius: 10px;
  background: var(--go-t);
  font-size: 13px;
  color: var(--go-2);
}
#exp-app:not(.rep-app) .exp-pcard > .r-left {
  margin: 8px 14px 2px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  border-color: color-mix(in srgb, var(--go) 28%, var(--line));
  background: var(--go-t);
  color: var(--go-2);
}
#exp-app:not(.rep-app) .exp-pcard > .r-left.done {
  border-color: color-mix(in srgb, var(--positive) 38%, var(--line));
  background: color-mix(in srgb, var(--positive) 10%, var(--paper));
  color: var(--positive);
}
#exp-app:not(.rep-app) .r-stepbar,
#exp-app:not(.rep-app) .r-step-pill { font-size: 13px; }
#exp-app:not(.rep-app) .r-left-msg { font-size: 12.5px; }
#exp-app:not(.rep-app) .exp-tile {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--wash);
}
#exp-app:not(.rep-app) .exp-big { font-size: 24px; }
#exp-app:not(.rep-app) .exp-tile.many .exp-big { font-size: 20px; }
#exp-app:not(.rep-app) .exp-big small { font-size: 13px; }
#exp-app:not(.rep-app) .exp-ask .q { font-size: 14.5px; }
#exp-app:not(.rep-app) .exp-pcard .exp-ask .exp-seg button {
  height: auto;
  min-height: 36px;
  padding: 6px 12px;
  line-height: 1.38;
  font-size: 13.5px;
  white-space: normal;
}
#exp-app:not(.rep-app) .exp-pcard .exp-prow.stack .exp-seg button {
  height: auto;
  min-height: 34px;
  padding: 6px 12px;
  line-height: 1.4;
  white-space: normal;
  text-align: left;
}
#exp-app:not(.rep-app) .exp-replist,
#exp-app:not(.rep-app) .exp-replist .exp-rep,
#exp-app:not(.rep-app) .exp-fig .exp-rep,
#exp-app:not(.rep-app) table.exp-t caption .exp-rep {
  font-size: 12.5px;
}
#exp-app:not(.rep-app) .exp-rep { height: 26px; padding: 0 8px; border-radius: 7px; font-size: 12.5px; }
#exp-app:not(.rep-app) .exp-gsec .k { font-size: 13px; color: var(--go); }
#exp-app:not(.rep-app) .exp-gq { font-size: 14px; color: var(--ink); }

/* Right-pane controls: sleek single-row white card; hide empty .exp-ctl */
#exp-app:not(.rep-app) .exp-ctl:empty,
#exp-app:not(.rep-app) .exp-ctl:not(:has(> :not([hidden]):not(.exp-state:empty))) { display: none !important; }
#exp-app:not(.rep-app) .exp-ctl:not(.incap) {
  min-height: 44px;
  padding: 6px 14px;
  gap: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent);
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
}
#exp-app:not(.rep-app) .exp-ctl.incap {
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  width: auto;
  max-width: none;
  gap: 8px;
}
#exp-app:not(.rep-app) .exp-ctl .lbl { font-size: 13px; font-weight: 700; color: var(--ink); }
#exp-app:not(.rep-app) .exp-ctl .vsep { height: 22px; margin: 0 2px; }
#exp-app:not(.rep-app) .exp-ctl .val {
  min-width: 52px;
  height: 30px;
  padding: 0 9px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  color: var(--ink);
}
#exp-app:not(.rep-app) .exp-ctl input[type=range] {
  width: clamp(110px, 10.5vw, 175px);
  height: 20px;
}
#exp-app:not(.rep-app) .exp-seg button {
  height: auto;
  min-height: 30px;
  padding: 5px 11px;
  line-height: 1.35;
  font-size: 13px;
  font-weight: 600;
  border-color: var(--line-2);
  color: var(--ink);
}
#exp-app:not(.rep-app) .exp-seg button.on {
  background: var(--go-t);
  border-color: var(--go);
  color: var(--go-2);
  font-weight: 700;
  z-index: 1;
}
#exp-app:not(.rep-app) .exp-seg button:disabled:not(.on) {
  color: var(--ink-2);
  background: var(--wash);
  border-color: var(--line);
  cursor: default;
}
#exp-app:not(.rep-app) .exp-btn {
  height: 32px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  transition: background .12s ease, border-color .12s ease;
}
#exp-app:not(.rep-app) .exp-btn:hover:not(:disabled):not(.run):not(.exp-go):not(.exp-next) {
  background: var(--wash);
  border-color: var(--ink-2);
}
#exp-app:not(.rep-app) .exp-btn.run:hover:not(:disabled),
#exp-app:not(.rep-app) .exp-pcard .exp-go:hover:not(:disabled) {
  background: var(--go-2);
  border-color: var(--go-2);
  color: var(--paper);
}
#exp-app:not(.rep-app) .exp-btn.run.sent {
  background: var(--paper);
  color: var(--go);
  border-color: var(--go);
}
#exp-app:not(.rep-app) .exp-btn.run.sent:hover:not(:disabled) {
  background: var(--go-t);
  color: var(--go-2);
  border-color: var(--go);
}
#exp-app:not(.rep-app):not(:has(.exp-btn.run:enabled:not(.sent), .exp-go:enabled)) .exp-navhost .exp-next:enabled {
  background: var(--go);
  border-color: var(--go);
  color: var(--paper);
}
#exp-app:not(.rep-app):not(:has(.exp-btn.run:enabled:not(.sent), .exp-go:enabled)) .exp-navhost .exp-next:enabled:hover {
  background: var(--go-2);
  border-color: var(--go-2);
  color: var(--paper);
}
#exp-app:not(.rep-app):has(.exp-btn.run:enabled:not(.sent), .exp-go:enabled) .exp-navhost .exp-next:enabled:hover {
  background: var(--wash);
  border-color: var(--ink-2);
}
#exp-app:not(.rep-app) .exp-state { font-size: 12.5px; color: var(--muted); }
#exp-app:not(.rep-app) .exp-msg { font-size: 13px; }
#exp-app:not(.rep-app) .exp-msg .exp-devnote { font-size: 13px; padding: 8px 12px; border-radius: 10px; }

/* Unified crisp white rounded cards for ALL figures (Labs 1-5) */
#exp-app:not(.rep-app) .exp-fig {
  background: var(--paper);
  background-image: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 5%, transparent);
  overflow: hidden;
}
#exp-app:not(.rep-app) .exp-fig.sf.is-lit {
  border-color: var(--go);
  box-shadow: 0 0 0 1px var(--go);
}
#exp-app:not(.rep-app) .exp-fig figcaption {
  min-height: 34px;
  padding: 7px 14px 6px;
  border-bottom: 1px solid var(--line);
  gap: 4px 12px;
}
#exp-app:not(.rep-app) .exp-fig .pt {
  margin-block: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
#exp-app:not(.rep-app) .exp-fig .lg {
  font-size: 12.5px;
  color: var(--muted);
  gap: 2px 12px;
}
#exp-app:not(.rep-app) .exp-fig .lg i { width: 18px; border-top-width: 2.2px; }
#exp-app:not(.rep-app) .exp-fig .lg b { width: 8px; height: 8px; }
#exp-app:not(.rep-app) .exp-fig .lg u { width: 10px; height: 10px; border-width: 2px; }
#exp-app:not(.rep-app) .exp-fig.sf .kref,
#exp-app:not(.rep-app) .exp-fig.sf .exp-plotrefs {
  font-size: 12.5px;
  color: var(--muted);
}
#exp-app:not(.rep-app) .exp-body > .exp-zhintrow { font-size: 12.5px; color: var(--muted); }
#exp-app:not(.rep-app) .exp-empty {
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 8%, transparent);
}

/* Unified crisp rounded card tables for ALL labs (Labs 1-5) */
#exp-app:not(.rep-app) table.exp-t {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent);
  font-size: 13px;
}
#exp-app:not(.rep-app) table.exp-t thead tr:first-child th:first-child { border-top-left-radius: 11px; }
#exp-app:not(.rep-app) table.exp-t thead tr:first-child th:last-child { border-top-right-radius: 11px; }
#exp-app:not(.rep-app) table.exp-t tbody tr:last-child td:first-child { border-bottom-left-radius: 11px; }
#exp-app:not(.rep-app) table.exp-t tbody tr:last-child td:last-child { border-bottom-right-radius: 11px; }
#exp-app:not(.rep-app) table.exp-t.e1-tcap {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#exp-app:not(.rep-app) .e1-tscroll {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent);
}
#exp-app:not(.rep-app) .e1-tscroll > table.exp-t {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#exp-app:not(.rep-app) .e1-tscroll > table.exp-t thead tr:first-child th:first-child,
#exp-app:not(.rep-app) .e1-tscroll > table.exp-t thead tr:first-child th:last-child,
#exp-app:not(.rep-app) .e1-tscroll > table.exp-t tbody tr:last-child td:first-child,
#exp-app:not(.rep-app) .e1-tscroll > table.exp-t tbody tr:last-child td:last-child {
  border-radius: 0;
}
#exp-app:not(.rep-app) table.exp-t caption {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 2px 6px;
}
#exp-app:not(.rep-app) table.exp-t th {
  background: var(--wash);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
}
#exp-app:not(.rep-app) table.exp-t td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
#exp-app:not(.rep-app) table.exp-t td.miss {
  color: var(--orange);
  font-weight: 700;
}
#exp-app:not(.rep-app) table.exp-t tr:last-child td { border-bottom: 0; }
#exp-app:not(.rep-app) .exp-formula {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent);
}
#exp-app:not(.rep-app) .exp-formula i { font-size: 16.5px; }

/* Lab 1-3 prep top band refined (desktop only; mobile keeps vertical stack from @media max-width: 760px) */
@media (min-width: 761px) {
  #exp-app:not(.rep-app) .exp-main:has(> .exp-left.prep) > .exp-right {
    min-height: 0;
    padding: 12px 24px 12px calc(41.667% + 24px);
    background: var(--wash);
  }
  #exp-app:not(.rep-app) .exp-main:has(> .exp-left.prep) > .exp-right > .exp-ctl {
    width: auto;
    max-width: none;
    min-height: 36px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  #exp-app:not(.rep-app) .exp-main:has(> .exp-left.prep) > .exp-right > .exp-body {
    margin-left: calc(-71.4296% - 34.286px);
    flex: 0 0 calc(71.4296% + 34.286px - 14px);
  }
  #exp-app:not(.rep-app) .exp-main:has(> .exp-left.prep) > .exp-right > .exp-msg {
    margin-left: calc(-71.4296% - 34.286px);
    flex-basis: calc(171.4296% + 34.286px);
  }
  #exp-app:not(.rep-app) .exp-left.prep {
    border-right: 0;
    padding: 18px 24px 16px;
  }
  #exp-app:not(.rep-app) .exp-left.prep .exp-lead {
    column-gap: 48px;
  }
}

/* Lab 4-5 refined cards, compact 1-line controls, split panels */
#exp-app:not(.rep-app) .exp45-action-box {
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--go) 28%, var(--line));
  border-radius: 11px;
  background: var(--go-t);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}
#exp-app:not(.rep-app) .exp45-action-head { font-size: 13.5px; margin-bottom: 5px; color: var(--go-2); }
#exp-app:not(.rep-app) .exp45-action-badge { font-size: 11.5px; padding: 2px 8px; background: var(--go); color: var(--paper); }
#exp-app:not(.rep-app) .exp45-note-card {
  margin-top: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--wash);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
#exp-app:not(.rep-app) .exp45-ctl-card {
  padding: 7px 11px;
  gap: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12.5px;
}
#exp-app:not(.rep-app) .exp45-ctl-card .exp45-ctl-row {
  flex-wrap: wrap;
  gap: 5px 7px;
  font-size: 12.5px;
}
#exp-app:not(.rep-app) .exp45-ctl-card [data-sum] {
  white-space: nowrap;
  flex: none;
}
#exp-app:not(.rep-app) .exp45-ctl-card .exp45-ctl-row label {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
#exp-app:not(.rep-app) .exp45-ctl-card .exp45-ctl-row output {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
#exp-app:not(.rep-app) .exp45-ctl-card .exp-unit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
#exp-app:not(.rep-app) .exp45-ctl-card input[type="range"] {
  min-width: 0;
  width: 68px;
  height: 18px;
}
#exp-app:not(.rep-app) .exp45-ctl-card .exp-btn {
  height: 28px;
  padding: 0 9px;
  font-size: 12px;
  border-radius: 7px;
}
#exp-app:not(.rep-app) .exp45-pill-status { padding: 2px 8px; font-size: 11.5px; }
#exp-app:not(.rep-app) .exp45-seg-toggle button { height: 28px; padding: 0 10px; font-size: 12.5px; }
#exp-app:not(.rep-app) .exp45-live-dot { font-size: 12.5px; margin-left: 8px; }
#exp-app:not(.rep-app) .exp45-live-toggle { margin-left: auto; height: 28px; padding: 0 11px; font-size: 12.5px; }
#exp-app:not(.rep-app) .exp45-card-foot { padding: 6px 14px 8px; font-size: 13px; color: var(--ink-2); border-top-color: var(--line); }
#exp-app:not(.rep-app) .exp45-word-chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--positive) 10%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--positive) 35%, var(--paper));
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
#exp-app:not(.rep-app) .exp45-banner { margin: 4px 12px 10px; padding: 6px 12px; font-size: 13px; }
#exp-app:not(.rep-app) .exp45-table-card { border-radius: 12px; border-color: var(--line); }
#exp-app:not(.rep-app) .exp45-table-card .exp45-table-head { padding: 7px 14px 6px; font-size: 13.5px; border-bottom-color: var(--line); }
#exp-app:not(.rep-app) .exp45-table-card table { font-size: 13px; }
#exp-app:not(.rep-app) .exp45-table-card th { font-size: 12.5px; padding: 6px 10px; background: var(--wash); color: var(--ink-2); border-bottom-color: var(--line); }
#exp-app:not(.rep-app) .exp45-table-card td { padding: 6px 10px; border-bottom-color: var(--line); }
#exp-app:not(.rep-app) .exp45-split-card { border-radius: 14px; padding: 10px 14px 12px; border-color: var(--line); }
#exp-app:not(.rep-app) .exp45-split-title { font-size: 15px; }
#exp-app:not(.rep-app) .exp45-split-legend { font-size: 12.5px; color: var(--muted); }
#exp-app:not(.rep-app) .exp45-split-grid { grid-template-columns: minmax(290px, 1.08fr) minmax(250px, 1fr); gap: 14px; }
#exp-app:not(.rep-app) .exp45-bar-panel { background: var(--wash); border-color: var(--line); }
#exp-app:not(.rep-app) .exp45-bar-title { font-size: 14px; }
#exp-app:not(.rep-app) .exp45-bar-sub { font-size: 12.5px; color: var(--muted); }
#exp-app:not(.rep-app) .exp45-bar-row { font-size: 13px; gap: 8px; margin: 6px 0; }
#exp-app:not(.rep-app) .exp45-bar-track { height: 12px; background: var(--line); }
#exp-app:not(.rep-app) .exp45-bar-val { min-width: 68px; font-size: 13px; }
#exp-app:not(.rep-app) .exp45-insight { font-size: 12.5px; line-height: 1.48; border-color: var(--line); color: var(--ink); }
#exp-app:not(.rep-app) .exp45-insight.warn {
  border-color: color-mix(in srgb, var(--orange) 42%, var(--paper));
  background: var(--warn-bg);
}
#exp-app:not(.rep-app) .exp45-insight-title { font-size: 13px; }
#exp-app:not(.rep-app) .exp45-iq-strip-card { border-radius: 12px; padding: 9px 14px 10px; border-color: var(--line); }
#exp-app:not(.rep-app) .exp45-iq-strip-title { font-size: 13.5px; }
#exp-app:not(.rep-app) .exp45-prep-line { padding: 8px 14px; border-radius: 12px; border-color: var(--line); font-size: 13.5px; gap: 8px; }
#exp-app:not(.rep-app) .exp45-prep-line .exp45-rx-in {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--paper);
}
#exp-app:not(.rep-app) .exp45-prep-line .exp45-readout-value { font-size: 13px; color: var(--ink-2); }
#exp-app:not(.rep-app) .exp45-gain-change {
  background: var(--go-t);
  border-color: color-mix(in srgb, var(--go) 28%, var(--line));
  color: var(--go-2);
}
#exp-app:not(.rep-app) .r-task-buttons { gap: 8px; }
#exp-app:not(.rep-app) .exp-body.r-task-body { gap: 10px; }

/* ---- Mockup-grade left-pane structure: callout boxes, numbered headings, task steps, CTA ---- */
#exp-app:not(.rep-app) .exp45-em {
  color: var(--orange);
  font-weight: 700;
}
#exp-app:not(.rep-app) .exp45-box {
  margin: 10px 0 4px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--wash);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}
#exp-app:not(.rep-app) .exp45-box.is-action {
  margin: 0 0 6px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--go) 35%, var(--line));
  background: var(--go-t);
  color: var(--ink);
}
#exp-app:not(.rep-app) .exp45-box.is-preview {
  margin: 6px 0 0;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--go) 24%, var(--line));
  background: color-mix(in srgb, var(--go-t) 45%, var(--paper));
}
#exp-app:not(.rep-app) .exp45-box-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
#exp-app:not(.rep-app) .exp45-box.is-action .exp45-box-h,
#exp-app:not(.rep-app) .exp45-box.is-preview .exp45-box-h {
  color: var(--go-2);
}
#exp-app:not(.rep-app) .exp45-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--go);
  color: var(--paper);
  font-size: 11.5px;
  font-weight: 700;
  flex: none;
}
#exp-app:not(.rep-app) .exp45-box ul {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#exp-app:not(.rep-app) .exp45-box.is-action ul {
  list-style: none;
  padding-left: 0;
  gap: 3px;
}
#exp-app:not(.rep-app) .exp45-box li {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink-2);
}
#exp-app:not(.rep-app) .exp45-box li.em {
  color: var(--go-2);
  font-weight: 650;
}
#exp-app:not(.rep-app) .exp-paras > li:not([data-parts]):has(> .exp45-box) {
  padding-left: 0;
}
#exp-app:not(.rep-app) .exp-paras > li:not([data-parts]):has(> .exp45-box) > .pk {
  display: none;
}
#exp-app:not(.rep-app) .exp-paras > li[data-parts]:has(> .exp45-box) {
  padding-left: 30px;
}
#exp-app:not(.rep-app) .exp-paras > li:has(> p.ld > strong:only-child) {
  margin-bottom: 12px;
}
#exp-app:not(.rep-app) .exp-paras > li:not([data-parts]):has(> p.ld > strong:only-child) {
  padding-left: 0;
}
#exp-app:not(.rep-app) .exp-paras > li:not([data-parts]):has(> p.ld > strong:only-child) > .pk {
  display: none;
}
#exp-app:not(.rep-app) .exp-paras > li[data-parts]:has(> p.ld > strong:only-child) {
  padding-left: 30px;
}
#exp-app:not(.rep-app) .exp-paras > li > p.ld > strong:only-child {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
#exp-app:not(.rep-app) .exp-paras > li:has(> p.ld > strong:only-child) > p.fu {
  margin-top: 4px;
  font-size: 13.8px;
  line-height: 1.56;
  color: var(--ink-2);
}
#exp-app:not(.rep-app) .exp-paras > li:has(> p.ld > strong:only-child) > :is(ul.cs, ol.st) {
  margin: 5px 0 4px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13.6px;
  line-height: 1.5;
  color: var(--ink-2);
}
#exp-app:not(.rep-app) .exp-paras > li:has(> p.ld > strong:only-child) > ol.st {
  list-style: none;
  padding-left: 0;
}
#exp-app:not(.rep-app) .exp-paras > li:has(> p.ld > strong:only-child) > ol.st > li {
  padding-left: 20px;
}
#exp-app:not(.rep-app) .exp-paras > li:has(> p.ld > strong:only-child) > ol.st .sn {
  color: var(--go);
  font-weight: 700;
}
#exp-app:not(.rep-app) .exp-paras > li:has(> p.ld > strong:only-child) > .eq {
  margin: 6px 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--wash);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
}
#exp-app:not(.rep-app):has(.exp-paras[data-sec="prep"]) .kb {
  display: none;
}
#exp-app:not(.rep-app) .exp-gtext > p.ld > strong:only-child {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 2px 0 6px;
}
#exp-app:not(.rep-app) .exp-gtext ol.st {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#exp-app:not(.rep-app) .exp-gtext ol.st li {
  font-size: 13.5px;
  line-height: 1.52;
  color: var(--ink);
  padding-left: 22px;
}
#exp-app:not(.rep-app) .exp-gtext ol.st .sn {
  color: var(--go);
  font-weight: 700;
}
#exp-app:not(.rep-app) .exp-gtext p.r-again {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
#exp-app:not(.rep-app) .exp-part[data-sec="measure"]:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#exp-app:not(.rep-app) .exp-measure-cta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: flex-end;
}
#exp-app:not(.rep-app) .exp-measure-cta .exp-go {
  min-width: 148px;
  height: 36px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 9px;
}
#exp-app:not(.rep-app) .exp-measure-cta .exp-go:disabled {
  background: var(--wash);
  border-color: var(--line);
  color: var(--muted);
  opacity: 0.72;
}
#exp-app:not(.rep-app) .exp45-ctl-card input[type="range"].exp45-range-orange {
  accent-color: var(--orange);
}
#exp-app:not(.rep-app) .exp45-ctl-card .exp45-ctl-row output.t-orange {
  color: var(--orange);
}
/* 5-1 dedicated tuning row with wider sliders and +/- step buttons */
#exp-app:not(.rep-app) .exp45-ctl-card .exp45-tune-row {
  gap: 8px 12px;
}
#exp-app:not(.rep-app) .exp45-ctl-card .exp45-tune-unit {
  flex: 1 1 210px;
  gap: 5px;
}
#exp-app:not(.rep-app) .exp45-ctl-card .exp45-tune-unit input[type="range"] {
  flex: 1 1 120px;
  width: auto;
  min-width: 110px;
}
#exp-app:not(.rep-app) .exp45-ctl-card .exp-btn.exp45-nudge {
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
/* 5-3 4-card distortion strip (phase, gain, quadrature, combined) */
#exp-app:not(.rep-app) .exp45-iq-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
#exp-app:not(.rep-app) .exp45-iq-thumb {
  padding: 6px 8px;
  gap: 6px;
}
#exp-app:not(.rep-app) .exp45-iq-thumb svg {
  width: 44px;
  height: 40px;
}
#exp-app:not(.rep-app) .exp45-iq-thumb-text {
  font-size: 11.5px;
}
#exp-app:not(.rep-app) .exp45-iq-thumb-text b {
  font-size: 12.5px;
}
#exp-app:not(.rep-app) .exp45-iq-thumb.active[data-mode="combined"] {
  border-color: var(--purple);
  background: color-mix(in srgb, var(--purple) 9%, var(--paper));
  box-shadow: 0 0 0 1px var(--purple);
}
/* 5 Appendix (64-QAM algorithmic compensation) */
#exp-app:not(.rep-app) .exp45-qam-est {
  margin: 8px 0 2px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
#exp-app:not(.rep-app) .exp45-qam-est b {
  color: var(--ink);
  margin-right: 4px;
}
#exp-app:not(.rep-app) .exp45-qam-next {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}
#exp-app:not(.rep-app) .exp45-qam-next .exp-btn {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 8px;
}
#exp-app:not(.rep-app) .exp45-qam-next .exp-btn.exp-go {
  background: var(--go);
  border-color: var(--go);
  color: var(--paper);
}
#exp-app:not(.rep-app) .exp45-qam-next .exp-btn.exp-go:hover:not(:disabled) {
  background: var(--go-2);
  border-color: var(--go-2);
  color: var(--paper);
}
#exp-app:not(.rep-app) .exp45-table-card tr.exp45-qam-row {
  cursor: pointer;
}
#exp-app:not(.rep-app) .exp45-table-card tr.exp45-qam-row:hover td {
  background: var(--wash);
}
#exp-app:not(.rep-app) .exp45-table-card tr.exp45-qam-row.active td {
  background: var(--go-t);
}
#exp-app:not(.rep-app) .exp45-qam-table .exp45-table-head {
  padding: 5px 12px 4px;
  font-size: 13px;
}
#exp-app:not(.rep-app) .exp45-qam-table :is(th, td) {
  padding: 4px 10px;
  font-size: 12.5px;
}
@media (max-width: 1100px) {
  #exp-app:not(.rep-app) .exp45-iq-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Lab 1 real-time gain presets, pause/resume toggle, live readout badge, and Labs 1-3 prep hardware card (token-only) */
@media (min-width: 1100px) {
  #exp-app:not(.rep-app) .exp-ctl:not(.incap):has(.exp-live-toggle) {
    flex-wrap: nowrap;
  }
}
@media (min-width: 761px) {
  #exp-app:not(.rep-app) .exp-ctl:not(.incap):has(.exp-live-toggle) {
    min-height: 40px;
    padding: 5px 10px;
    gap: 6px;
  }
  #exp-app:not(.rep-app) .exp-ctl:not(.incap):has(.exp-live-toggle) .exp-unit {
    gap: 5px;
    flex: 0 1 auto;
    min-width: 0;
  }
  #exp-app:not(.rep-app) .exp-ctl:not(.incap):has(.exp-live-toggle) .exp-nudge {
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    line-height: 1;
    flex: none;
  }
  #exp-app:not(.rep-app) .exp-ctl:not(.incap):has(.exp-live-toggle) input[type=range] {
    width: clamp(72px, 7.2vw, 118px);
    min-width: 68px;
    flex: 1 1 76px;
  }
  #exp-app:not(.rep-app) .exp-ctl:not(.incap):has(.exp-live-toggle) .val {
    min-width: 44px;
    height: 28px;
    padding: 0 6px;
    font-size: 12.5px;
    flex: none;
  }
  #exp-app:not(.rep-app) .exp-ctl:not(.incap):has(.exp-live-toggle) .exp-presets {
    gap: 3px;
    margin-left: 2px;
    flex: none;
  }
  #exp-app:not(.rep-app) .exp-ctl:not(.incap):has(.exp-live-toggle) .exp-preset {
    height: 26px;
    padding: 0 7px;
    font-size: 12px;
  }
  #exp-app:not(.rep-app) .exp-ctl:not(.incap):has(.exp-live-toggle) .exp-btn:not(.exp-nudge):not(.exp-preset) {
    height: 28px;
    padding: 0 9px;
    font-size: 12.5px;
    flex: none;
  }
  #exp-app:not(.rep-app) .exp-ctl:not(.incap):has(.exp-live-toggle) .exp-state {
    font-size: 12px;
    white-space: nowrap;
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
#exp-app:not(.rep-app) .exp-presets {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}
#exp-app:not(.rep-app) .exp-preset {
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--control-line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
#exp-app:not(.rep-app) .exp-presets .exp-btn.exp-preset:hover:not(:disabled) {
  border-color: var(--go);
  color: var(--go);
  background: var(--go-t);
}
#exp-app:not(.rep-app) .exp-preset.on {
  background: var(--go-t);
  border-color: var(--go);
  color: var(--go-2);
  font-weight: 700;
}
#exp-app:not(.rep-app) .exp-live-toggle {
  height: 32px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 999px;
  white-space: nowrap;
}
#exp-app:not(.rep-app) .exp-live-toggle.is-live {
  background: var(--go-t);
  border-color: var(--go);
  color: var(--go-2);
}
#exp-app:not(.rep-app) .exp-fig.sf figcaption {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#exp-app:not(.rep-app) .exp1-live-badge {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  max-width: 100%;
  box-sizing: border-box;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--wash);
  color: var(--go-2);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: normal;
  overflow-wrap: break-word;
}
#exp-app:not(.rep-app) .exp-row > .exp-fig.sf figcaption .exp1-live-badge {
  margin-left: 0;
}
#exp-app:not(.rep-app) .exp1-live-badge.warn {
  background: var(--warn-bg);
  border-color: var(--orange);
  color: var(--orange);
}
#exp-app:not(.rep-app) .exp13-prep-card {
  flex: none;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#exp-app:not(.rep-app) .exp13-prep-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink);
}
#exp-app:not(.rep-app) .exp13-prep-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--go-t);
  color: var(--go-2);
  font-size: 12.5px;
  font-weight: 700;
}
#exp-app:not(.rep-app) .exp13-prep-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--wash);
}
#exp-app:not(.rep-app) .exp13-prep-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 14px;
  border: 1px solid var(--go);
  border-radius: 9px;
  background: var(--paper);
  color: var(--go-2);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
}
#exp-app:not(.rep-app) .exp13-prep-node small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
}
#exp-app:not(.rep-app) .exp13-prep-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
#exp-app:not(.rep-app) .exp13-prep-arrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--muted);
  flex: none;
}
#exp-app:not(.rep-app) .exp13-prep-arrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 10px;
  background: var(--muted);
  clip-path: polygon(0 42%, 72% 42%, 72% 10%, 100% 50%, 72% 90%, 72% 58%, 0 58%);
  flex: none;
}
#exp-app:not(.rep-app) .exp13-prep-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
