/* ==========================================================================
   Studio: deck styles (version 2)
   The page uses the module toolbar (TOP-NAV:v1) and the podcast pages'
   background, and the slides are the slide-companion stage: this file is
   loaded after ../../podcasts/companion/companion.css and adds only what the
   companion does not have (the class's activities, results, the R pane, the
   2 x 2 tables and the deck controls).
   ========================================================================== */
:root { --nav-h: 52px; --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace; --math: 'STIX Two Text', 'Cambria Math', Cambria, Georgia, serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.ics {
  padding-top: var(--nav-h); overflow: hidden;
  font-family: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif; color: #F2FAF8;
  background: linear-gradient(180deg, rgba(6,92,80,0.92) 0%, rgba(4,42,37,0.97) 100%), url('../../bg_texture.jpg') center/cover no-repeat fixed, #042A25;
  -webkit-font-smoothing: antialiased;
}
body.ics.narrow { overflow: auto; }
button { font: inherit; }

/* ── TOP-NAV:v1, as on the lesson pages ── */
.top-nav { position: fixed; top: 0; left: 0; right: 0; height: 52px; background: #03241F; border-bottom: 1px solid #0A4239; box-shadow: 0 2px 12px rgba(0,0,0,0.25); z-index: 200; display: flex; align-items: center; padding: 0 20px; gap: 18px; }
.top-nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.top-nav .brand img { height: 26px; opacity: 0.95; }
.top-nav .brand-text { font-size: 13px; font-weight: 700; letter-spacing: 0.2px; color: rgba(255,255,255,0.95); }
.top-nav .nav-divider { width: 1px; height: 22px; background: rgba(255,255,255,0.18); flex-shrink: 0; }
.top-nav .crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: rgba(255,255,255,0.55); flex: 1; overflow: hidden; }
.top-nav .crumbs a { color: rgba(255,255,255,0.7); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-nav .crumbs a:hover { color: #fff; }
.top-nav .crumbs .sep { color: rgba(255,255,255,0.3); flex-shrink: 0; }
.top-nav .crumbs .current { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.room-chip { display: none; align-items: center; gap: 10px; padding: 4px 6px 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.3); cursor: pointer; white-space: nowrap; color: #fff; flex-shrink: 0; }
.room-chip.on { display: inline-flex; }
.room-chip .u { font-size: 12px; color: rgba(255,255,255,0.65); }
.room-chip .u b { color: #fff; }
.room-chip .code { font-weight: 800; font-size: 16px; letter-spacing: .18em; color: #F5C76B; }
.room-chip .n { padding: 3px 10px; border-radius: 999px; background: rgba(127,216,195,0.15); color: #7FD8C3; font-weight: 800; font-size: 12.5px; }
.room-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); }
.room-chip .dot.ok { background: #7FD8C3; box-shadow: 0 0 0 3px rgba(127,216,195,.2); }
.room-chip .dot.bad { background: #FF6E8A; }
@media (max-width: 900px) { .top-nav .brand-text, .top-nav .nav-divider { display: none; } .top-nav { gap: 10px; padding: 0 12px; } .room-chip .u { display: none; } }
/* ── the deck ── */
#deck { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 12px; }
body.narrow #deck { position: static; justify-content: flex-start; padding: 8px 6px 20px; }
#deck .pc { width: var(--sw, 1280px); margin: 0; flex: none; }
#deck .pc-stage { cursor: default; }
/* The background layer (.pc-bg) reaches 20% past each edge of the stage, so a stage with overflow: hidden can still be
   scrolled by the browser when it brings a focused field into view (for example in an R pane), which shifts the whole
   slide and cuts it off. overflow: clip clips the same way but can never be scrolled; session.js also undoes any such
   scroll. */
#deck .pc-stage { overflow: hidden; overflow: clip; min-height: 0; }
#deck .pc-controls { gap: 6px; padding: 7px 10px; }
/* review on a student's device (join.html opens the deck with ?mode=review): the slides alone, without the toolbar,
   the controls (join.html has its own), the countdown or anything that belongs to the room */
body.m-review { --nav-h: 0px; }
body.m-review .top-nav, body.m-review .pc-controls, body.m-review .ccbar, body.m-review .hud-r, body.m-review #notes,
body.m-review .ask-foot, body.m-review .t-blank, body.m-review .demo-note, body.m-review .hints, body.m-review #toast { display: none !important; }
.ics .pc-scene { top: 11.3%; bottom: 5.8%; left: 4.6%; right: 4.6%; transition: opacity .35s var(--pc-ease), transform .4s var(--pc-ease); }
.ics .pc-scene:not(.is-in) { transition-duration: .15s; }
.ics .pc-scene.top { justify-content: flex-start; }
.ics .pc-scene.is-in { z-index: 2; }
.ics .pc-scene:not(.is-in) { pointer-events: none; }
.ics .pc-hud { pointer-events: none; }
.ics .pc-hud .pc-chapter { font-size: 0.7em; }
.ics .pc-hud .pc-chap-n { font-weight: 800; color: rgba(242,250,248,.55); letter-spacing: .08em; white-space: nowrap; }
.ics .hud-r { display: flex; flex: none; gap: .5em; align-items: center; pointer-events: auto; white-space: nowrap; }
.ics .hud-r > * { flex: none; }
.ics .hud-r.tight { gap: .35em; }
.ics .hud-r.tight .hud-timer, .ics .hud-r.tight .hud-meter { font-size: .66em; }
.hud-meter { display: none; align-items: center; gap: .55em; padding: .32em .9em; border-radius: 999px; font-size: .74em; font-weight: 800; color: #fff; background: #CC0033; box-shadow: 0 0 0 .14em rgba(255,110,138,.45), 0 0 1.4em rgba(204,0,51,.55); white-space: nowrap; }
.hud-meter.on { display: inline-flex; }
.hud-meter i { font-style: normal; font-weight: 800; padding: .05em .45em; border-radius: 999px; background: rgba(255,255,255,.22); }
/* the countdown: the mint fill drains from right to left as time runs out */
.hud-timer { display: none; align-items: center; gap: .4em; font: 800 .8em var(--mono); padding: .32em .8em .32em .6em; border-radius: 999px; border: 1px solid rgba(127,216,195,.55); color: #fff; --p: 1;
  background: linear-gradient(90deg, rgba(127,216,195,.42) calc(var(--p) * 100%), rgba(0,0,0,.38) calc(var(--p) * 100%)); cursor: pointer; }
.hud-timer.on { display: inline-flex; }
.hud-timer svg { width: 1.05em; height: 1.05em; flex: none; }
.hud-timer b { font-size: 1.12em; letter-spacing: .02em; }
.hud-timer span { font: 700 .72em 'Open Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.hud-timer.low { border-color: #FF4D6D; background: linear-gradient(90deg, rgba(255,77,109,.6) calc(var(--p) * 100%), rgba(0,0,0,.38) calc(var(--p) * 100%)); }
.hud-timer.done { background: #CC0033; border-color: #CC0033; }
.hud-timer.done b { font-size: .9em; letter-spacing: 0; }
.hud-timer.paused { opacity: .75; }
.hud-mode { font-size: .62em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: .3em .8em; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: rgba(242,250,248,.6); }

/* controls */
.ics .pc-btn kbd { font: 700 9.5px var(--mono); opacity: .55; margin-left: 4px; }
.ics .pc-btn.txt { padding: 0 10px; gap: 4px; display: inline-flex; align-items: center; }
.ics .pc-btn.hot { background: #CC0033; color: #fff; }
.ics .pc-time { min-width: 62px; text-align: center; }
.ics .stephint { font: 700 11.5px 'Open Sans', sans-serif; color: #F5C76B; white-space: nowrap; }
.ics .scrub { position: relative; flex: 1 1 160px; min-width: 100px; height: 26px; cursor: pointer; }
.ics .scrub .trk { position: absolute; left: 0; right: 0; top: 50%; height: 6px; transform: translateY(-50%); border-radius: 3px; background: rgba(255,255,255,0.12); overflow: hidden; }
.ics .scrub .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #CC0033; transition: width .3s; }
.ics .scrub .mk { position: absolute; top: 3px; bottom: 3px; width: 2px; background: rgba(255,255,255,.35); }
.ics .scrub .mk.a { width: 4px; border-radius: 2px; background: #F5C76B; top: 7px; bottom: 7px; }
@media (max-width: 760px) { .ics .pc-btn kbd, .ics .stephint { display: none; } }

/* facilitator notes */
#notes { display: none; width: var(--sw, 1280px); max-height: 22vh; overflow: auto; margin-top: 8px; padding: 10px 16px; border-radius: 12px; background: #FFFDF6; color: #2C2A22; border-left: 4px solid #F5C76B; font-size: 15px; line-height: 1.5; flex: none; }
body.notes-open #notes { display: block; }
#notes .nh { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8A5A12; margin-bottom: 4px; display: flex; gap: 14px; flex-wrap: wrap; }
#notes .nh span { color: #A08B5C; letter-spacing: .05em; }
#notes p { margin: 0 0 6px; }
#notes b { color: #5C3D07; }
#notes code { font-family: var(--mono); font-size: .9em; background: #F3EEDC; padding: 0 4px; border-radius: 4px; }

/* the reset the companion's scene styles expect (the podcast pages set it globally) */
.pc-scene :where(h1, h2, h3, h4, h5, h6, ul, ol, dl, dd, figure, blockquote) { margin: 0; padding: 0; }
.ics .pc-scene.top > .pc-title { font-size: 1.35em; margin-bottom: .45em; }

/* mode-specific content */
.m-room .noroom, .m-present .roomonly, .m-self .roomonly, .m-self .notself, .m-room .selfonly, .m-present .selfonly, body.guide .selfonly, body.guide .noroom { display: none !important; }

/* ── content components inside the stage (all sizes in em) ── */
.ics .pc-scene p { margin: 0 0 .55em; }
.ics .pc-scene .pc-title { margin-bottom: .45em; }
.ics .pc-scene .pc-sub { margin-bottom: .7em; }
.ics .q { font-size: 1.32em; font-weight: 800; line-height: 1.28; color: #fff; margin: 0 0 .55em; max-width: 44em; }
.ics .q b, .ics .q strong { color: #7FD8C3; }
.ics .small, .ics .pc-scene .small { font-size: .82em; }
.ics .dim { color: rgba(242,250,248,.64); }
.ics .mt { margin-top: .7em; } .ics .mt2 { margin-top: 1.2em; }
.ics .grid2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1em; }
.ics .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8em; }
.ics .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .7em; }
.ics .w60 { grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); }
.ics .w40 { grid-template-columns: minmax(0,1fr) minmax(0,1.45fr); }
.ics .ac { align-items: center; } .ics .as { align-items: start; }
.ics .card { padding: .8em .95em; border-radius: .75em; background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.08); border-top: .22em solid var(--accent, #7FD8C3); min-width: 0; }
.ics .card h4 { font-size: 1.02em; font-weight: 800; color: #fff; margin: 0 0 .3em; line-height: 1.25; }
.ics .card h4 .tag { font-size: .62em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, #7FD8C3); margin-left: .4em; }
.ics .card p, .ics .card li { font-size: .86em; color: rgba(242,250,248,.78); line-height: 1.42; margin: 0 0 .3em; }
.ics .card b { color: #fff; }
.ics .card.rose { --accent: #FF6E8A; } .ics .card.gold { --accent: #F5C76B; } .ics .card.sky { --accent: #8EC5FF; } .ics .card.violet { --accent: #C9A7FF; }
.ics .card.now { background: rgba(255,255,255,0.1); box-shadow: 0 .6em 1.8em rgba(0,0,0,.3); }
.ics .pill { display: inline-block; padding: .3em .85em; border-radius: 999px; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.14); font-size: .82em; font-weight: 700; color: #F2FAF8; }
.ics .pill.mint { background: rgba(127,216,195,.16); border-color: rgba(127,216,195,.35); color: #7FD8C3; }
.ics .pill.gold { background: rgba(245,199,107,.14); border-color: rgba(245,199,107,.4); color: #F5C76B; }
.ics .pill.rose { background: rgba(255,110,138,.14); border-color: rgba(255,110,138,.4); color: #FF8AA3; }
.ics .pills { display: flex; flex-wrap: wrap; gap: .45em; align-items: center; }
.ics .lst { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.ics .lst li { display: flex; gap: .75em; align-items: flex-start; padding: .55em .85em; border-radius: .6em; background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.07); font-size: .92em; line-height: 1.4; }
.ics .lst li .ix { flex-shrink: 0; width: 1.65em; height: 1.65em; border-radius: 50%; display: grid; place-items: center; font-size: .8em; font-weight: 800; background: rgba(127,216,195,0.16); color: #7FD8C3; margin-top: .05em; }
.ics .lst li .tx { min-width: 0; } .ics .lst li .tx small { display: block; color: rgba(242,250,248,.62); font-size: .86em; margin-top: .12em; }
.ics .lst li.now { border-color: rgba(127,216,195,.55); background: rgba(127,216,195,.1); }
.ics .lst li.now .ix { background: #7FD8C3; color: #04231F; }
.ics .note { margin-top: .8em; font-size: .86em; color: rgba(242,250,248,.72); padding-left: .9em; border-left: 3px solid #F5C76B; }
.ics .note b { color: #F5C76B; }
.ics .exam { margin-top: .8em; padding: .6em .9em; border-radius: .6em; background: rgba(245,199,107,.08); border: 1px solid rgba(245,199,107,.35); font-size: .84em; color: rgba(242,250,248,.85); line-height: 1.42; }
.ics .exam .h { display: block; font-size: .78em; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #F5C76B; margin-bottom: .2em; }
.ics .ans { padding: .65em .9em; border-radius: .6em; background: rgba(2,22,19,.82); border: 1px solid rgba(245,199,107,.55); border-left: .25em solid #F5C76B; font-size: .9em; line-height: 1.45; color: #fff; }
.ics .ans .ah { display: block; font-size: .74em; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #F5C76B; margin-bottom: .25em; }
.ics .ans b, .ics .ans strong { color: #fff; font-weight: 800; }
.ics .ans.mint { background: rgba(2,22,19,.82); border-color: rgba(127,216,195,.55); border-left-color: #7FD8C3; }
.ics .ans.mint .ah { color: #7FD8C3; }
.ics .ah .nc, .ics .lbl .nc, .ics .fh .nc { text-transform: none; letter-spacing: .03em; }   /* symbols and code inside an upper-case heading keep their case (t, r, θ, glm) */
.ics .ah sub, .ics .ah sup, .ics .lbl sub, .ics .lbl sup { text-transform: none; }
.ics .ans .pc-math, .ics .ans .mint, .ics .ans .gold { color: #fff; }
.ics .res .rside .small, .ics .res .rside p { color: rgba(255,255,255,.94); }
.ics .res .rside .eqbox { color: #fff; background: rgba(2,22,19,.82); }
.ics .ans p { margin: 0 0 .35em; }
.ics .qa { display: grid; gap: .6em; }
.ics .qa > div { padding: .6em .85em; border-radius: .65em; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-left: .22em solid #FF6E8A; }
.ics .qa .qq { font-weight: 800; color: #fff; font-size: .95em; margin-bottom: .2em; }
.ics .qa .qq::before { content: 'Q'; display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: rgba(255,110,138,.2); color: #FF8AA3; font-size: .78em; margin-right: .55em; vertical-align: .05em; }
.ics .qa .aa { font-size: .86em; color: rgba(242,250,248,.8); line-height: 1.42; }
/* with a discussion line above, the questions and answers are set a little tighter */
.ics .talk.slim ~ .qa { font-size: .9em; gap: .45em; }
.ics .talk.slim ~ .qa > div { padding: .5em .8em; }
.ics .qa .aa code, .ics .card code, .ics .lst code, .ics .ans code, .ics .q code, .ics .pc-scene p code { font-family: var(--mono); font-variant-ligatures: none; font-size: .9em; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1); padding: 0 .3em; border-radius: .25em; color: #FFE7B0; }
.ics .eqbox { text-align: center; font-family: var(--math); font-size: 1.45em; padding: .45em .9em; border-radius: .5em; background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,.14); color: #fff; white-space: nowrap; }
.ics .eqbox .lbl { display: block; font-family: 'Open Sans', sans-serif; font-size: .36em; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(242,250,248,.45); margin-bottom: .4em; white-space: normal; }
.ics .eqbox.sm { font-size: 1.15em; }
.ics .eqbox.sm .lbl { font-size: .5em; letter-spacing: .14em; }
.ics .frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 .2em; }
.ics .frac > span { padding: .04em .3em; line-height: 1.2; }
.ics .frac > span:first-child { border-bottom: .07em solid currentColor; }
.ics .c-tp, .ics .c-tn { color: #7FD8C3; } .ics .c-fn, .ics .c-fp { color: #FF8AA3; } .ics .orange, .ics .pc-scene .orange { color: #FFA46B; }
.ics .c-ans, .ics .mint { color: #7FD8C3; } .ics .gold { color: #F5C76B; } .ics .rose { color: #FF8AA3; } .ics .sky { color: #8EC5FF; }
.ics .steps { display: grid; gap: .4em; }
.ics .step { font-family: var(--math); font-size: 1.12em; padding: .3em .75em; border-left: .16em solid rgba(255,255,255,.18); }
.ics .step .lab { display: block; font-family: 'Open Sans', sans-serif; font-size: .6em; font-weight: 800; color: rgba(242,250,248,.5); letter-spacing: .1em; text-transform: uppercase; }
.ics .step.res { border-left-color: #F5C76B; color: #F5C76B; background: rgba(245,199,107,.1); border-radius: 0 .5em .5em 0; }
.ics figure.fig { margin: 0; border-radius: .6em; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.12); }
.ics figure.fig img { display: block; width: 100%; height: auto; max-height: 15em; object-fit: contain; }
.ics figure.fig figcaption { font-size: .62em; color: rgba(242,250,248,.6); background: rgba(0,0,0,.25); padding: .35em .7em; }
.ics .mods { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .6em; }
.ics a.mod { display: inline-flex; align-items: center; gap: .45em; padding: .3em .75em; border-radius: 999px; font-size: .62em; font-weight: 800; text-decoration: none; color: #7FD8C3; border: 1px solid rgba(127,216,195,.35); background: rgba(127,216,195,.08); pointer-events: auto; }
.ics a.mod.wt { color: #FF8AA3; border-color: rgba(255,110,138,.35); background: rgba(255,110,138,.08); }
.ics a.mod:hover { background: rgba(255,255,255,.12); }
.ics a.mod svg { width: 1.1em; height: 1.1em; }
.ics .slide-links { position: absolute; left: 0; right: 0; top: 100%; margin-top: .3em; display: flex; gap: .4em; flex-wrap: nowrap; overflow: hidden; z-index: 3; pointer-events: none; }
.ics .slide-links a.mod { font-size: .56em; }

/* builds (companion reveal mechanics) */
.ics .pc-scene [data-t] { opacity: 0; transform: translateY(.5em); transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); }
.ics .pc-scene [data-t].on { opacity: 1; transform: none; }
.ics .pc-scene [data-t].gone:not(.on) { display: none; }

/* 2 x 2 tables */
.ics table.tt { border-collapse: separate; border-spacing: .35em; font-size: 1em; margin: -.3em 0 0 0; }
.ics table.tt th { font-size: .66em; font-weight: 800; letter-spacing: .05em; color: rgba(242,250,248,.7); padding: .2em .4em; text-align: center; line-height: 1.2; }
.ics table.tt th.rh { text-align: right; }
.ics table.tt th small { display: block; font-weight: 600; color: rgba(242,250,248,.45); letter-spacing: 0; }
.ics table.tt td { min-width: 5.6em; height: 2.55em; text-align: center; border-radius: .5em; background: rgba(255,255,255,.05); border: .09em solid rgba(255,255,255,.14); font: 700 1.05em var(--math); color: #fff; font-variant-numeric: tabular-nums; line-height: 1.05; }
.ics table.tt td small { display: block; font: 700 .52em 'Open Sans', sans-serif; letter-spacing: .04em; margin-top: .15em; }
.ics table.tt td.tp, .ics table.tt td.tn { background: rgba(127,216,195,.12); border-color: rgba(127,216,195,.55); color: #7FD8C3; }
.ics table.tt td.fn, .ics table.tt td.fp { background: rgba(255,110,138,.12); border-color: rgba(255,110,138,.55); color: #FF8AA3; }
.ics table.tt th.dp { color: #FFA46B; } .ics table.tt th.dn { color: #8EC5FF; }
.ics table.tt td.tot { background: transparent; border-style: dashed; color: rgba(242,250,248,.7); font-weight: 600; }
.ics table.tt td.blank { color: rgba(242,250,248,.3); }
.ics table.tt.sm td { height: 2.1em; min-width: 4.6em; font-size: .92em; }
.ics table.tt td.hl { box-shadow: 0 0 0 .14em #F5C76B; }
.ics .tcap { font-size: .7em; color: rgba(242,250,248,.55); margin-top: .25em; }
.ics table.dt { border-collapse: collapse; font-size: .84em; width: 100%; }
.ics table.dt th, .ics table.dt td { padding: .38em .7em; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
.ics table.dt thead th { font-size: .78em; letter-spacing: .08em; text-transform: uppercase; color: #7FD8C3; background: rgba(127,216,195,.08); font-weight: 800; }
.ics table.dt td.n, .ics table.dt th.n { text-align: right; font-family: var(--math); font-size: 1.08em; font-variant-numeric: tabular-nums; }
.ics table.dt tr.hl td { background: rgba(245,199,107,.12); color: #F5C76B; }

/* R output and code (outside the R pane) */
.ics .rout { margin: 0 0 .5em; font: .7em/1.48 var(--mono); font-variant-ligatures: none; white-space: pre; overflow: hidden; border-radius: .6em; padding: .6em .85em; background: rgba(0,0,0,0.38); border: 1px solid rgba(255,255,255,.1); color: #E6F2EF; }
.ics .rout .cmd { color: #8FE3CF; } .ics .rout .cm { color: rgba(242,250,248,.45); }
.ics .rout .hl { background: rgba(245,199,107,.22); color: #FFE7B0; border-radius: .2em; padding: 0 .15em; }
.ics .rout .hl2 { background: rgba(255,110,138,.22); color: #FFC4D0; border-radius: .2em; padding: 0 .15em; }
.ics .rout.sm { font-size: .62em; }
.ics .rbadge { display: inline-flex; align-items: center; gap: .5em; font-size: .62em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #FF8AA3; margin-bottom: .35em; }

/* ── activities: the question slide ── */
.ics .ask { display: flex; flex-direction: column; min-height: 0; height: 100%; }
/* format of an activity: on your own, in pairs, in small groups or as a whole class */
.ics .askhead { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .7em; margin-bottom: .1em; }
.ics .askhead .pc-kicker { margin: 0; }
.ics .grp { display: inline-flex; align-items: center; gap: .35em; font-size: .56em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .28em .75em .28em .55em; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: rgba(242,250,248,.9); white-space: nowrap; }
.ics .grp svg { width: 1.35em; height: 1.35em; flex: none; }
.ics .grp.g-pairs { background: rgba(245,199,107,.16); border-color: rgba(245,199,107,.6); color: #F5C76B; }
.ics .grp.g-groups { background: rgba(255,164,107,.16); border-color: rgba(255,164,107,.6); color: #FFB98A; }
.ics .grp.g-class { background: rgba(142,197,255,.14); border-color: rgba(142,197,255,.55); color: #A9D3FF; }
.ics .askhead .how { font-size: .62em; color: rgba(242,250,248,.78); line-height: 1.35; }
body.m-self.ics .askhead .grp:not(.g-solo), body.m-self.ics .askhead .how { display: none; }
/* report back aloud, shown on the results slide until the answer is revealed */
.ics .report { background: rgba(245,199,107,.12); border: 1px solid rgba(245,199,107,.55); border-left: .25em solid #F5C76B; border-radius: .7em; padding: .6em .85em; font-size: .78em; line-height: 1.45; color: #fff; }
.ics .report .rh { display: flex; align-items: center; gap: .45em; font-size: .74em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #F5C76B; margin-bottom: .3em; }
.ics .report .rh svg { width: 1.5em; height: 1.5em; }
.ics .gone { display: none !important; }
body.m-self.ics .report { display: none; }
/* a discussion box on a content slide */
.ics .talk { margin-top: .6em; background: rgba(245,199,107,.1); border: 1px solid rgba(245,199,107,.5); border-left: .25em solid #F5C76B; border-radius: .7em; padding: .55em .85em; }
.ics .talk .tkh { margin-bottom: .3em; }
.ics .talk .tkq { font-size: .82em; line-height: 1.45; color: #fff; }
.ics .talk .tkr { font-size: .7em; line-height: 1.4; color: rgba(242,250,248,.8); margin-top: .3em; }
.ics .talk .tkr b { color: #F5C76B; }
body.m-self.ics .talk .tkh, body.m-self.ics .talk .tkr { display: none; }
.ics .talk.slim { display: flex; align-items: center; gap: .6em; margin: .05em 0 .45em; padding: .3em .7em; }
.ics .talk.slim .tkq { font-size: .68em; line-height: 1.35; color: rgba(255,255,255,.92); }
body.m-self.ics .talk.slim .grp { display: none; }
.hud-r.clock-on .hud-mode { display: none; }
.ics .t-vchips { display: flex; flex-wrap: wrap; gap: .4em; font-size: .72em; }
.ics .t-vchips span { padding: .35em .75em; border-radius: .6em; border: 1px solid rgba(245,199,107,.45); background: rgba(245,199,107,.08); color: #F5C76B; font-weight: 700; }
.ics .ask .ask-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ics .ask .ask-body.side { display: grid; grid-template-columns: minmax(0, var(--l, 1fr)) minmax(0, var(--r, 1.2fr)); gap: 1.3em; align-items: center; }
.ics .ask .ask-body.side .ctx { margin: 0; align-self: center; }
/* a context box that would not fit beside the task is shrunk to fit (session.js, fitBox), never spilled over the question */
.ics .ask .ask-body.side > .ctx { max-height: 100%; overflow: hidden; }
.ics .ask .ask-body.side .task { height: 100%; }
.ics .ask .task { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.ics .ask .ctx { margin-bottom: .7em; }
/* the formulas a calculation question needs, shown on its own slide */
.ics .fkey { margin-top: .5em; padding: .4em .75em; border-radius: .55em; background: rgba(0,0,0,.24); border: 1px solid rgba(255,255,255,.13); font-size: .8em; line-height: 1.55; color: #F2FAF8; }
.ics .fkey .fh { display: block; font-family: 'Open Sans', sans-serif; font-size: .72em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(242,250,248,.6); }
.ics .fkey .pc-math { white-space: nowrap; }
.ics .selfans .eqbox, .ics .selfans .eqbox .pc-math { white-space: normal; }   /* a worked answer in self-study wraps inside its panel */
.ics .fkey .fsep { display: inline-block; width: 1.8em; }   /* a wide gap between two formulas, never a dot that could be read as multiplication; it disappears where a line wraps */
.ics .t-opts { display: grid; gap: .5em; }
.ics .t-opts.two { grid-template-columns: 1fr 1fr; }
.ics .t-opt { display: flex; gap: .7em; align-items: flex-start; padding: .6em .85em; border-radius: .7em; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: .95em; line-height: 1.35; }
.ics .t-opt .l { flex: none; width: 1.7em; height: 1.7em; border-radius: .45em; display: grid; place-items: center; font-weight: 800; font-size: .85em; background: rgba(127,216,195,.18); color: #7FD8C3; }
.ics .t-scale { display: flex; gap: .5em; } .ics .t-scale span { flex: 1; text-align: center; padding: .55em; border-radius: .6em; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-weight: 800; font-size: 1.2em; }
.ics .t-scale-l { display: flex; justify-content: space-between; font-size: .72em; color: rgba(242,250,248,.55); margin-top: .35em; }
.ics .t-blank { border: .1em dashed rgba(255,255,255,.25); border-radius: .8em; padding: .9em 1em; color: rgba(242,250,248,.55); font-size: .9em; text-align: center; }
.ics .t-pool { display: flex; flex-wrap: wrap; gap: .4em; padding: .5em; border-radius: .7em; border: .09em dashed rgba(255,255,255,.22); margin-bottom: .55em; }
.ics .t-chip { padding: .38em .7em; border-radius: .55em; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .8em; font-weight: 600; line-height: 1.3; }
.ics .t-bins { display: grid; gap: .5em; grid-template-columns: repeat(var(--nb, 2), minmax(0,1fr)); }
.ics .t-bin { border-radius: .7em; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); padding: .45em .55em; min-height: 2.6em; font-size: .7em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7FD8C3; line-height: 1.25; }
.ics .t-fields { display: grid; grid-template-columns: repeat(var(--nf, 2), minmax(0,1fr)); gap: .55em; }
.ics .t-field { border-radius: .6em; border: .09em dashed rgba(255,255,255,.25); padding: .45em .6em; }
.ics .t-field b { display: block; font-size: .7em; color: rgba(242,250,248,.7); font-weight: 800; letter-spacing: .03em; }
.ics .t-field span { display: block; height: 1.4em; }
.ics .t-code { margin: 0 0 .5em; font: .66em/1.5 var(--mono); font-variant-ligatures: none; white-space: pre; overflow: hidden; border-radius: .6em; padding: .55em .85em; background: #fff; color: #000; border: 1px solid #B9C4CE; }
.ics .t-code { tab-size: 8; }
.ics .t-code .in { color: #0000FF; }
.ics .t-code .er { color: #C5060B; }
.ics .t-code .hl { background: rgba(245,199,107,.55); border-radius: .15em; }
.ics .rside .t-code { font-size: .5em; }
.ics .t-code.sm { font-size: .56em; }
.ics .t-code .er { white-space: pre-wrap; }
.ics .res.ws { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.ics .t-code .c { color: #4C886B; } .ics .t-code .s { color: #036A07; } .ics .t-code .n { color: #0000CD; } .ics .t-code .k { color: #0000FF; } .ics .t-code .o { color: #687687; }
.ics .t-code mark { background: rgba(245,199,107,.55); color: inherit; border-radius: .2em; }
.ics .t-vers { display: grid; gap: .4em; }
.ics .t-vers div { padding: .45em .75em; border-radius: .55em; background: rgba(245,199,107,.08); border: 1px solid rgba(245,199,107,.3); font-size: .82em; }
.ics .t-vers b { color: #F5C76B; }
.ics .ask-foot { display: flex; align-items: center; gap: 1em; margin-top: .7em; flex: none; }
/* hints: one appears every 15 or 30 seconds of working time (session.js); on screen only, never read aloud.
   One compact row: a tab for each hint shown so far (the chosen one, normally the newest, in full) and the next one's countdown */
.ics .ask .hints { flex: none; margin-top: .5em; }
.ics .ask .hints:empty { display: none; }
.ics .hintbox { display: flex; gap: .7em; align-items: flex-start; border-radius: .5em; padding: .35em .65em; font-size: .62em; line-height: 1.4; background: rgba(245,199,107,.1); border: 1px solid rgba(245,199,107,.38); }
.ics .hints.none .hintbox { background: transparent; border-style: dashed; border-color: rgba(245,199,107,.3); padding: .25em .5em; }
.ics .htabs { display: flex; gap: .3em; flex: none; flex-wrap: wrap; max-width: 45%; }
.ics .htab { font: inherit; font-size: .8em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #F5C76B; background: transparent; border: 1px solid rgba(245,199,107,.45); border-radius: 999px; padding: .12em .6em; cursor: pointer; pointer-events: auto; white-space: nowrap; }
.ics .htab.cur { background: rgba(245,199,107,.25); color: #fff; }
.ics .htab.next { border-style: dashed; color: rgba(245,199,107,.72); letter-spacing: .06em; }
.ics .htext { flex: 1; min-width: 0; color: #F2FAF8; }
.ics .htext.new { animation: hintIn .45s cubic-bezier(.2,.7,.2,1); }
.ics .htext code { font-size: .92em; }
.ics .pc-scene.self-rev .hints { display: none; }
@keyframes hintIn { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
.ics .meter { flex: 1; display: flex; align-items: center; gap: .8em; padding: .5em .85em; border-radius: .7em; background: rgba(204,0,51,.22); border: .1em solid #FF6E8A; box-shadow: 0 0 1.2em rgba(204,0,51,.35); }
.ics .meter .mn { font-weight: 800; font-size: 1.15em; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ics .meter .mn small { font-size: .62em; font-weight: 700; color: rgba(255,255,255,.8); margin-left: .3em; }
.ics .meter .mb { flex: 1; height: .7em; border-radius: .35em; background: rgba(0,0,0,.35); overflow: hidden; min-width: 4em; }
.ics .meter .mb i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FF8AA3, #FF2E57); transition: width .4s; }
.ics .meter .mp { font: 800 1.1em var(--mono); color: #fff; min-width: 3.2em; text-align: right; }
.ics .meter .mh { font-size: .66em; color: rgba(255,255,255,.8); white-space: nowrap; }
.ics .meter.full { animation: icsmeter 1.6s ease-in-out infinite; }
@keyframes icsmeter { 50% { box-shadow: 0 0 2em rgba(255,46,87,.7); } }
.ics .joinmini { display: block; font-size: .7em; color: rgba(242,250,248,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38%; flex: none; }
.ics .joinmini b { color: #F5C76B; letter-spacing: .14em; font-size: 1.15em; }
.ics .self-w { flex: 1; min-height: 0; overflow: hidden; }
.ics .self-w .ainput { font-size: .8em; }
.ics .demo-note { margin-top: .4em; font-size: .62em; color: rgba(242,250,248,.55); font-style: italic; }
/* sorting tasks shown on the main screen of a live room: smaller cards, so that the boxes stay in view */
body.m-room .self-w .ainput:has(.pool) { font-size: .7em; }
.ics .self-w .ainput .opt { padding: .55em .8em; }

/* ── activities: the results slide ── */
.ics .res { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.2em; height: 100%; min-height: 0; }
.ics .res.full { grid-template-columns: minmax(0,1fr); }
.ics .res .viz { min-height: 0; overflow: hidden; }
.ics .res .rside { min-height: 0; display: flex; flex-direction: column; gap: .6em; overflow: hidden; }
.ics .res .rside .eqbox { font-size: 1em; padding: .4em .7em; white-space: normal; }
.ics .res .rside .eqbox .pc-math { white-space: normal; }
.ics .res .rside .rq { font-size: .78em; color: rgba(242,250,248,.62); line-height: 1.4; padding: .5em .75em; border-radius: .6em; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.ics .res .rside .rq b { color: #fff; }
.ics .vh { font-size: .66em; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(242,250,248,.55); margin-bottom: .4em; display: flex; gap: .8em; align-items: baseline; }
.ics .vh b { color: #7FD8C3; letter-spacing: .04em; font-size: 1.15em; }
.ics .rbars { display: grid; gap: .45em; }
.ics .rbar { position: relative; border-radius: .6em; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: .5em 4.2em .5em 2.6em; font-size: .86em; line-height: 1.3; overflow: hidden; min-height: 2.3em; }
.ics .rbar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(127,216,195,.22); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.ics .rbar .l { position: absolute; left: .55em; top: 50%; transform: translateY(-50%); width: 1.5em; height: 1.5em; border-radius: .4em; background: rgba(255,255,255,.12); display: grid; place-items: center; font-weight: 800; font-size: .85em; }
.ics .rbar .t { position: relative; }
.ics .rbar .pc { position: absolute; right: .6em; top: 50%; transform: translateY(-50%); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.ics .rbar .pc small { display: block; font-size: .7em; color: rgba(242,250,248,.5); font-weight: 700; }
.ics .rbar .why { display: block; font-size: .82em; color: rgba(242,250,248,.62); margin-top: .2em; }
.ics .rbar.ok { border: .14em solid #3DDC97; background: rgba(61,220,151,.12); } .ics .rbar.ok .fill { background: rgba(61,220,151,.5); } .ics .rbar.ok .l { background: #3DDC97; color: #04231F; } .ics .rbar.ok .pc { color: #B9FFDF; }
.ics .rbar .tag-ok { display: inline-block; margin-right: .5em; padding: .05em .55em; border-radius: 999px; background: #3DDC97; color: #04231F; font-size: .74em; font-weight: 800; letter-spacing: .04em; vertical-align: .08em; }
.ics .rbar.no { border-color: rgba(255,77,109,.75); } .ics .rbar.no .fill { background: rgba(255,77,109,.38); } .ics .rbar.no .l { background: #FF4D6D; color: #fff; } .ics .rbar.no .t { color: rgba(255,214,222,.9); }
.ics .bigpc { display: flex; align-items: baseline; gap: .6em; margin: 0 0 .4em; }
.ics .bigpc b { font-size: 2em; font-weight: 800; color: #7FD8C3; font-variant-numeric: tabular-nums; }
.ics .bigpc span { font-size: .78em; color: rgba(242,250,248,.62); }
.ics .tagrow { display: flex; flex-wrap: wrap; gap: .35em; margin-bottom: .5em; }
.ics .tagc { border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.2); border-radius: 999px; padding: .25em .7em; font-size: .7em; font-weight: 700; color: rgba(242,250,248,.75); cursor: pointer; pointer-events: auto; }
.ics .tagc b { color: #fff; margin-left: .3em; }
.ics .tagc.good { border-color: rgba(127,216,195,.45); color: #7FD8C3; }
.ics .tagc.warn { border-color: rgba(255,110,138,.45); color: #FF8AA3; }
.ics .tagc.sel { background: #fff; color: #04231F; } .ics .tagc.sel b { color: #04231F; }
.ics .rcards { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; }
.ics .rcard { position: relative; border-radius: .6em; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: .5em .75em; font-size: .8em; line-height: 1.38; cursor: pointer; overflow-wrap: anywhere; pointer-events: auto; }
.ics .rcard:hover { border-color: #7FD8C3; }
.ics .rcard .who { display: block; font-size: .78em; color: rgba(242,250,248,.5); margin-top: .2em; }
.ics .rcard .v { position: absolute; right: .5em; top: .4em; font-size: .8em; font-weight: 800; color: #FF8AA3; }
.ics .rcard.has-v { padding-right: 2.6em; }
.ics .rcard.pinned { border-color: #F5C76B; background: rgba(245,199,107,.1); }
.ics .rcard.pinned::before { content: '★'; position: absolute; left: -.4em; top: -.55em; color: #F5C76B; font-size: 1.1em; }
.ics .rcloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .15em .7em; padding: .4em; line-height: 1.05; }
.ics .rcloud span { font-weight: 800; white-space: nowrap; }
.ics .np { position: relative; margin: .3em .6em 0; }
.ics .np .axis { position: absolute; left: 0; right: 0; bottom: 1.4em; height: 2px; background: rgba(255,255,255,.3); }
.ics .np .tick { position: absolute; bottom: 0; transform: translateX(-50%); font: .74em var(--mono); color: rgba(242,250,248,.55); }
.ics .np .dot { position: absolute; width: .6em; height: .6em; border-radius: 50%; background: #7FD8C3; opacity: .9; transform: translate(-50%, 50%); }
.ics .np .dot.bad { background: #FF4D6D; } .ics .np .dot.ok { background: #3DDC97; }
.ics .np .ansl { position: absolute; top: 0; bottom: 1.4em; border-left: .14em dashed #F5C76B; }
.ics .np .ansl span { position: absolute; top: -.1em; left: .35em; font: 800 .74em var(--mono); color: #F5C76B; white-space: nowrap; }
.ics .np .ansl.l span { left: auto; right: .5em; }
.ics .modes { display: grid; gap: .3em; margin-top: .45em; }
.ics .mode { display: flex; align-items: center; gap: .7em; font-size: .78em; padding: .35em .6em; border-radius: .5em; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.ics .mode .val { font: 800 1em var(--mono); color: #fff; min-width: 4.6em; }
.ics .mode .k { font-weight: 800; color: rgba(242,250,248,.6); min-width: 2.6em; text-align: right; font-variant-numeric: tabular-nums; }
.ics .mode .lbl { color: rgba(242,250,248,.72); font-size: .92em; line-height: 1.3; }
.ics .mode.ok { border-color: #3DDC97; background: rgba(61,220,151,.14); } .ics .mode.ok .val, .ics .mode.ok .lbl { color: #3DDC97; }
.ics .mode.bad { border-color: rgba(255,77,109,.6); background: rgba(255,77,109,.1); } .ics .mode.bad .val { color: #FF8AA3; } .ics .mode.bad .lbl { color: #FF8AA3; }
.ics .varbox { border: 1px solid rgba(255,255,255,.1); border-radius: .6em; background: rgba(255,255,255,.04); padding: .4em .6em; margin-bottom: .45em; }
.ics .varbox h5 { margin: 0 0 .2em; font-size: .74em; color: #F5C76B; display: flex; gap: .6em; align-items: baseline; flex-wrap: wrap; }
.ics .varbox h5 small { color: rgba(242,250,248,.6); font-weight: 600; }
.ics .vrows { display: grid; gap: .35em; }
.ics .vrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2em .8em; align-items: baseline; padding: .4em .7em; border-radius: .55em; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.ics .vrow .vl { font-size: .8em; font-weight: 700; color: #F5C76B; line-height: 1.3; }
.ics .vrow .vn { font-size: .74em; color: rgba(242,250,248,.66); text-align: right; white-space: nowrap; } .ics .vrow .vn b { color: #3DDC97; }
.ics .vrow .vt { grid-column: 1 / -1; display: flex; gap: .45em; flex-wrap: wrap; align-items: baseline; }
.ics .vrow .tv { font: 800 .86em var(--mono); color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: .4em; padding: .05em .45em; }
.ics .vrow .tv small { font-weight: 700; color: rgba(242,250,248,.6); margin-left: .35em; }
.ics .vrow .tv.ok { color: #3DDC97; border-color: #3DDC97; background: rgba(61,220,151,.12); } .ics .vrow .tv.bad { color: #FF8AA3; border-color: rgba(255,77,109,.5); }
.ics .vrow .tv.none { font-family: 'Open Sans', sans-serif; font-weight: 600; font-size: .8em; color: rgba(242,250,248,.5); }
.ics .vrow .va { margin-left: auto; font-size: .78em; color: rgba(242,250,248,.75); } .ics .vrow .va b { font-family: var(--mono); color: #3DDC97; }
.ics .legend { display: flex; flex-wrap: wrap; gap: .2em .9em; font-size: .6em; color: rgba(242,250,248,.72); margin-bottom: .4em; }
.ics .legend span { display: inline-flex; align-items: center; gap: .4em; }
.ics .legend i { width: .9em; height: .9em; border-radius: .2em; display: inline-block; }
.ics .mres { display: grid; gap: .25em; }
.ics .mrrow { display: grid; grid-template-columns: minmax(0,1fr) 9em; gap: .7em; align-items: center; padding: .25em .6em; border-radius: .55em; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.ics .mrrow .it { font-size: .74em; line-height: 1.25; }
.ics .mrrow .it code { font-size: .92em; }
.ics .mrrow .it small { display: block; color: #7FD8C3; font-size: .9em; margin-top: .15em; }
.ics .stack { display: flex; height: 1em; border-radius: .3em; overflow: hidden; background: rgba(255,255,255,.08); }
.ics .stack i { display: block; height: 100%; }
.ics .mrrow .okp { font-size: .62em; font-weight: 700; color: #B9FFDF; margin-top: .2em; } .ics .mrrow .okp b { color: #3DDC97; }
/* sorting results: a wider results column, and after the reveal the boxes flow in two columns */
.ics .res.mt, .ics .res.ws.mt { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.ics .mres.bybin { display: block; columns: 2; column-gap: .7em; }
.ics .mres.bybin.one { columns: 1; }
.ics .res.full.mt { grid-template-columns: minmax(0,1fr); }
.ics .res.mt .rside .t-code { white-space: pre-wrap; overflow-wrap: anywhere; }
.ics .res.full .mres.bybin.one { columns: 2; }
.ics .mres.bybin .mrg { break-inside: avoid; display: grid; gap: .2em; margin-bottom: .35em; }
.ics .mres.bybin .mrrow { grid-template-columns: minmax(0,1fr) 5.2em; gap: .5em; padding: .2em .5em; }
.ics .mres.bybin .mrrow .it { font-size: .72em; }
.ics .mres.bybin .mrc .okn { font-size: .66em; min-width: 2.6em; }
.ics .res.mt .bigpc b { font-size: 1.5em; }
.ics .mrgh { font-size: .62em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(242,250,248,.7); margin: .3em 0 0 .2em; }
.ics .mrgh b { color: #3DDC97; }
.ics .mrc { display: flex; align-items: center; gap: .45em; }
.ics .mrc .stack { flex: 1; }
.ics .mrc .okn { font-size: .66em; color: #B9FFDF; min-width: 2.7em; text-align: right; }
.ics .fres { display: grid; grid-template-columns: repeat(var(--nf, 2), minmax(0,1fr)); gap: .45em; }
.ics .fcell { border-radius: .55em; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: .4em .6em; min-width: 0; }
.ics .fcell .fl { font-size: .66em; font-weight: 800; color: rgba(242,250,248,.7); line-height: 1.25; }
.ics .fcell .fv { font: 800 1.15em var(--mono); color: #fff; }
.ics .fcell .fs { font-size: .64em; color: rgba(242,250,248,.62); }
.ics .fcell.ok { border-color: #3DDC97; } .ics .fcell.ok .fv { color: #3DDC97; }
.ics .fcell .okc { color: #3DDC97; font-weight: 800; } .ics .fcell .noc { color: #FF8AA3; font-weight: 800; }
.ics .stack.mini { height: .45em; margin-top: .25em; }
.ics .readyc { display: grid; place-items: center; text-align: center; height: 100%; }
.ics .readyc b { font-size: 4em; font-weight: 800; color: #7FD8C3; line-height: 1; }
.ics .readyc span { display: block; font-size: .8em; color: rgba(242,250,248,.62); margin-top: .3em; }
.ics .empty { color: rgba(242,250,248,.55); font-size: .86em; text-align: center; padding: 1.5em .5em; line-height: 1.5; }
.ics .from { border-radius: .7em; border: .1em dashed rgba(127,216,195,.45); background: rgba(127,216,195,.05); padding: .55em .8em; }
.ics .from .fh { font-size: .64em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7FD8C3; margin-bottom: .35em; }
.ics .from .fh small { color: rgba(242,250,248,.5); letter-spacing: 0; text-transform: none; font-weight: 600; }
.ics .from .fq { font-size: .9em; color: #fff; line-height: 1.4; font-style: italic; margin: .2em 0; }
.ics .from .fq::before { content: '\201C'; color: #7FD8C3; font-weight: 800; } .ics .from .fq::after { content: '\201D'; color: #7FD8C3; font-weight: 800; }
.ics .from .rbar { font-size: .72em; min-height: 1.9em; padding-top: .3em; padding-bottom: .3em; }

/* the module calculator, shown as it is on the lesson page */
.ics .calc-host { background: #fff; color: #2D3436; border-radius: .7em; padding: .2em; min-height: 0; overflow: auto; scrollbar-width: thin; pointer-events: auto; }
.ics .calc-host .fx-calc { margin: 0; }
.ics .calc-host .fx-intro { display: none; }

/* ── the R pane (RStudio, default light theme) ── */
.ics .rs-host { min-height: 0; height: 100%; display: flex; }
.rs { --rs-f: .56em; --rs-fc: .7em; display: flex; flex-direction: column; width: 100%; min-height: 0; background: #E5E9EE; border-radius: .55em; overflow: hidden; border: 1px solid #B9C4CE; box-shadow: 0 1em 2.6em rgba(0,0,0,.35); color: #000; font-family: 'Open Sans', sans-serif; pointer-events: auto; text-align: left; }
.rs-bar { display: flex; align-items: center; gap: .5em; padding: .3em .6em; background: linear-gradient(#F7F9FB, #E3E8EE); border-bottom: 1px solid #B9C4CE; font-size: var(--rs-f); flex: none; }
.rs-logo { width: 1.55em; height: 1.55em; border-radius: 50%; background: #75AADB; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9em; }
.rs-title { font-weight: 700; color: #2B3A47; }
.rs-st { font-size: .85em; color: #5B6B78; padding: .1em .55em; border-radius: 999px; background: #fff; border: 1px solid #CDD6DE; white-space: nowrap; }
.rs-st.ready { color: #1E7D3B; border-color: #9CD0AD; } .rs-st.loading { color: #8A5A12; border-color: #EBCB8B; } .rs-st.failed { color: #A3002A; border-color: #F2B9C6; }
.rs-sp { flex: 1; }
.rs-btn { display: inline-flex; align-items: center; gap: .35em; border: 1px solid #C2CCD6; background: #fff; color: #23313E; border-radius: .35em; padding: .2em .65em; font: 700 1em 'Open Sans', sans-serif; cursor: pointer; }
.rs-btn svg { width: .8em; height: .8em; color: #2E7D32; }
.rs-btn:hover { background: #EEF3F8; }
.rs-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: .3em; padding: .3em; }
.rs-left, .rs-right { display: grid; gap: .3em; min-height: 0; }
.rs-left { grid-template-rows: minmax(0, 1fr) minmax(0, 1.1fr); }
.rs-right { grid-template-rows: minmax(0, 1fr) minmax(0, 1.3fr); }
.rs-compact .rs-body { grid-template-columns: minmax(0,1fr); }
.rs-compact .rs-right { display: none; }
.rs-side .rs-body { grid-template-columns: minmax(0,1fr); }
.rs-side .rs-left { grid-template-rows: none; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.rs-side .rs-right { display: none; }
/* layout 'split', for code that draws a plot: the Source pane across the top, the Console and Plots panes side by side below */
.rs-split .rs-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "src src" "con plot"; }
.rs-split .rs-left, .rs-split .rs-right { display: contents; }
.rs-split .rs-src { grid-area: src; } .rs-split .rs-con { grid-area: con; } .rs-split .rs-plot { grid-area: plot; } .rs-split .rs-env { display: none; }
.rs-pane { background: #fff; border: 1px solid #C8D1DA; border-radius: .3em; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.rs-tabs { display: flex; align-items: center; gap: .15em; background: #EEF2F5; border-bottom: 1px solid #D3DBE2; padding: .15em .3em 0; font-size: var(--rs-f); flex: none; }
.rs-tabs span { padding: .25em .7em; color: #5B6B78; border-radius: .3em .3em 0 0; white-space: nowrap; }
.rs-tabs span.on { background: #fff; color: #1F2D3A; font-weight: 700; border: 1px solid #D3DBE2; border-bottom-color: #fff; margin-bottom: -1px; }
.rs-tabs .rs-path { color: #7B8B98; font-family: var(--mono); font-size: .9em; }
.rs-tabs .rs-sp { flex: 1; }
.rs-x { border: none; background: transparent; color: #5B6B78; font: 700 .9em 'Open Sans', sans-serif; cursor: pointer; padding: .1em .5em; }
.rs-fi { display: inline-block; width: .75em; height: .9em; background: #75AADB; border-radius: .1em; margin-right: .4em; vertical-align: -.1em; }
.rs-ed { flex: 1; min-height: 0; display: flex; font: var(--rs-fc, .6em)/1.5 var(--mono); font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.rs-gut { flex: none; width: 2.6em; padding: .4em .5em .4em 0; text-align: right; color: #A0A9B2; background: #FAFBFC; border-right: 1px solid #ECEFF2; white-space: pre; overflow: hidden; user-select: none; }
.rs-code { position: relative; flex: 1; min-width: 0; }
.rs-code pre, .rs-code textarea { position: absolute; inset: 0; margin: 0; padding: .4em .6em; font: inherit; line-height: inherit; white-space: pre; overflow: auto; tab-size: 2; letter-spacing: 0; font-variant-ligatures: none; }
.rs-code pre { color: #000; pointer-events: none; scrollbar-width: none; }
.rs-code pre::-webkit-scrollbar { display: none; }
.rs-code textarea { color: transparent; background: transparent; caret-color: #000; border: none; outline: none; resize: none; }
.rs-code textarea::selection { background: rgba(117,170,219,.35); }
.rs-hl .c { color: #4C886B; } .rs-hl .s { color: #036A07; } .rs-hl .n { color: #0000CD; } .rs-hl .k { color: #0000FF; } .rs-hl .f { color: #000; } .rs-hl .o { color: #687687; }
.rs-hl mark { background: rgba(245,199,107,.55); color: inherit; border-radius: .2em; box-shadow: 0 0 0 .12em rgba(245,160,40,.6); }
.rs-out { flex: 1; min-height: 0; overflow: auto; padding: .35em .6em; font: var(--rs-fc, .6em)/1.42 var(--mono); font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 8; color: #000; outline: none; }
.rs-l { min-height: 1.42em; }
.rs-l.in { color: #0000FF; }
.rs-l.err { color: #C5060B; }
.rs-l.note { color: #8A5A12; white-space: pre-wrap; font-family: 'Open Sans', sans-serif; font-style: italic; }
.rs-l.busy { color: #8A5A12; font-family: 'Open Sans', sans-serif; }
.rs-l.busy::after { content: ''; display: inline-block; width: .7em; height: .7em; margin-left: .5em; border-radius: 50%; border: .15em solid #EBCB8B; border-top-color: #8A5A12; animation: rsspin .8s linear infinite; vertical-align: -.1em; }
@keyframes rsspin { to { transform: rotate(360deg); } }
.rs-in { display: flex; align-items: center; gap: .4em; padding: .15em .6em .3em; font: var(--rs-fc, .6em) var(--mono); flex: none; }
.rs-pr { color: #0000FF; }
.rs-in input { flex: 1; border: none; outline: none; font: inherit; font-variant-ligatures: none; color: #0000FF; background: transparent; padding: .15em 0; }
.rs-envb { flex: 1; min-height: 0; overflow: auto; font-size: var(--rs-f); }
.rs-eh { background: #F1F4F7; color: #3B4A57; font-weight: 700; padding: .2em .6em; border-bottom: 1px solid #E2E7EC; }
.rs-er { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: .5em; padding: .2em .6em; border-bottom: 1px solid #F0F2F4; font-family: var(--mono); font-variant-ligatures: none; font-size: .92em; }
.rs-er span:first-child { color: #1F2D3A; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.rs-er span:last-child { color: #5B6B78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-empty { color: #8A97A3; padding: .6em; font-style: italic; }
.rs-plotb { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; }
.rs-plotb canvas { max-width: 100%; max-height: 100%; display: none; position: absolute; inset: 0; margin: auto; }
.rs.has-plot .rs-plotb canvas { display: block; }
.rs.has-plot .rs-noplot { display: none; }
.rs.has-plot .rs-plotb { cursor: zoom-in; }
.rs.rs-zoom { position: relative; }
.rs.rs-zoom .rs-plot { display: flex; position: absolute; left: .3em; right: .3em; top: 2.3em; bottom: .3em; z-index: 6; box-shadow: 0 .6em 2em rgba(0,0,0,.35); }
.rs.rs-zoom .rs-plotb { cursor: zoom-out; }
.rs-noplot { color: #A0A9B2; font-size: var(--rs-f); font-style: italic; }
.rs.is-busy .rs-st { animation: rspulse 1s ease-in-out infinite; }
@keyframes rspulse { 50% { opacity: .55; } }
/* explanations beside the R pane */
.ics .code-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1em; height: 100%; min-height: 0; }
.ics .code-grid.wide { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); }
.ics .code-grid.full { grid-template-columns: minmax(0,1fr); }
.ics .argl { display: flex; flex-direction: column; gap: .35em; min-height: 0; overflow: hidden; }
.ics .argl > [data-t]:not(.on) { display: none; }
.ics .argl > div > code { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .2em; }
.ics .argl > div.now > code { white-space: normal; overflow-wrap: anywhere; }
.ics .argl .ad code { font-size: .9em; overflow-wrap: anywhere; }   /* a function named inside an explanation stays in the sentence */
.ics .argl > div:not(.now) .ad:not(.keep) { display: none; }
.ics .argl > div:not(.now) { padding-top: .3em; padding-bottom: .15em; opacity: .7; }
.ics .argl .ad { line-height: 1.38; }
.ics .argl > div { min-width: 0; overflow: hidden; flex: none; padding: .45em .7em; border-radius: .55em; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-left: .2em solid #F5C76B; font-size: .78em; line-height: 1.38; }
.ics .argl > div b { color: #fff; }
.ics .argl > div.now { border-left-color: #7FD8C3; background: rgba(127,216,195,.1); box-shadow: 0 0 0 1px rgba(127,216,195,.35); }
.ics .argl > .ah { font-size: .62em; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #F5C76B; background: none; border: none; padding: 0; }

/* the join box on the title and sign-in slides */
.ics .joinbox { display: flex; gap: 1.1em; align-items: center; background: #fff; border-radius: .8em; padding: .7em 1em .7em .7em; color: #2D3436; box-shadow: 0 .6em 2em rgba(0,0,0,.3); align-self: flex-start; }
.ics .joinbox .qr { width: 7.2em; height: 7.2em; flex: none; }
.ics .joinbox .qr svg { width: 100%; height: 100%; display: block; }
.ics .joinbox .jl { font-size: .6em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6B7579; }
.ics .joinbox .ju { font-size: 1em; font-weight: 800; color: #2D3436; margin: .1em 0 .4em; word-break: break-all; }
.ics .joinbox .jc { font-size: 2.6em; font-weight: 800; letter-spacing: .18em; color: #CC0033; line-height: 1; }
.ics .joinbox.off { display: none; }
.ics .names { display: flex; flex-wrap: wrap; gap: .35em; align-content: flex-start; overflow: hidden; max-height: 100%; }
.ics .names span { background: rgba(127,216,195,.14); border: 1px solid rgba(127,216,195,.35); color: #7FD8C3; font-weight: 700; padding: .25em .7em; border-radius: 999px; font-size: .78em; }
.ics .names span.new { animation: icspop .4s cubic-bezier(.2,.7,.2,1); }
@keyframes icspop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* demonstrations drawn in the session file */
.ics .demo { background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.12); border-radius: .7em; padding: .6em .8em; pointer-events: auto; }
.ics .demo canvas { display: block; width: 100%; }
.ics .demo .ctl { display: grid; grid-template-columns: 7.5em minmax(0,1fr) 3.6em; gap: .6em; align-items: center; font-size: .72em; margin: .25em 0; }
.ics .demo .ctl b { font: 800 1.05em var(--mono); text-align: right; color: #F5C76B; }
.ics .demo input[type=range] { width: 100%; accent-color: #7FD8C3; }
.ics .demo .out { display: flex; gap: .5em; margin-top: .4em; }
.ics .demo .out > div { flex: 1; text-align: center; background: rgba(255,255,255,.06); border-radius: .5em; padding: .3em; }
.ics .demo .out b { display: block; font-size: 1.25em; font-weight: 800; color: #7FD8C3; font-variant-numeric: tabular-nums; }
.ics .demo .out span { font-size: .6em; color: rgba(242,250,248,.62); }

/* ── overlays ── */
.ovl { position: fixed; inset: 0; z-index: 300; background: rgba(1,14,12,.84); display: none; align-items: center; justify-content: center; padding: 30px; backdrop-filter: blur(3px); }
.ovl.on { display: flex; }
.spot { max-width: 1100px; width: 100%; background: #04231F; border: 1px solid rgba(255,255,255,.14); border-left: 6px solid #7FD8C3; border-radius: 20px; padding: 34px 42px 26px; color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.spot .sq { font-size: 38px; font-weight: 700; line-height: 1.35; }
.spot .sw { margin-top: 14px; font-size: 15px; color: rgba(242,250,248,.6); }
.spot .sb { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.ob { height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font: 700 13px 'Open Sans', sans-serif; cursor: pointer; }
.ob:hover { border-color: #7FD8C3; }
.ob.pri { background: #CC0033; border-color: #CC0033; }
.ob.on { background: #7FD8C3; color: #04231F; border-color: #7FD8C3; }
.qrbig { background: #fff; border-radius: 24px; padding: 30px 40px; color: #2D3436; display: flex; gap: 36px; align-items: center; }
.qrbig .qr { width: min(420px, 50vh); height: min(420px, 50vh); } .qrbig .qr svg { width: 100%; height: 100%; }
.qrbig .jl { font-size: 18px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6B7579; }
.qrbig .ju { font-size: 32px; font-weight: 800; margin: 4px 0 18px; }
.qrbig .jc { font-size: 104px; font-weight: 800; letter-spacing: .18em; color: #CC0033; line-height: 1; }
.menu { background: #04231F; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 22px 24px; color: #fff; width: 600px; max-width: 100%; }
.menu h3 { margin: 0 0 10px; font-size: 18px; }
.menu .mi { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.menu p { font-size: 13.5px; color: rgba(242,250,248,.65); margin: 6px 0 12px; line-height: 1.5; }
.menu a.ob { display: inline-flex; align-items: center; text-decoration: none; }
.ovw { width: min(1400px, 96vw); max-height: 88vh; overflow: auto; background: #04231F; border-radius: 18px; padding: 18px; border: 1px solid rgba(255,255,255,.14); }
.ovw h3 { color: #7FD8C3; margin: 4px 4px 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.ovw .g { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ovw button { text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: #F2FAF8; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; line-height: 1.3; min-height: 56px; cursor: pointer; }
.ovw button small { display: block; color: rgba(242,250,248,.45); font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.ovw button.cur { border-color: #7FD8C3; background: rgba(127,216,195,.14); }
.ovw button.ask::after { content: 'Question'; display: block; margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #F5C76B; }
.ovw button.res::after { content: 'Results'; display: block; margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7FD8C3; }
.ovw .part { grid-column: 1 / -1; color: #FF6E8A; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 10px 4px 0; }
#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); z-index: 400; background: #04231F; color: #F2FAF8; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px 16px; font-size: 14px; opacity: 0; transition: all .25s; pointer-events: none; }
#toast.on { opacity: 1; transform: translateX(-50%); }

/* ── start screen ── */
#start { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 150; overflow: auto; }
#start.off { display: none; }
body.starting #deck { visibility: hidden; }
.st { max-width: 1180px; margin: 0 auto; padding: 32px 24px 60px; }
/* the title band of the lesson menu, as on the Studio course pages: crimson pill, plain white title, subtitle */
.st-hero { position: relative; overflow: hidden; text-align: center; padding: 56px 24px 44px; background: linear-gradient(135deg, rgba(6,92,80,.88) 0%, rgba(4,42,37,.92) 100%), url('../../bg_texture.jpg') center/cover no-repeat; }
.st-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(to bottom, transparent, rgba(4,42,37,.6)); pointer-events: none; }
.st-hero .pill { position: relative; z-index: 1; display: inline-block; background: #CC0033; color: #fff; padding: 6px 18px; border-radius: 24px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.st-hero h1 { position: relative; z-index: 1; color: #fff; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.2; margin: 0 0 8px; letter-spacing: 0; }
.st-hero .subtitle { position: relative; z-index: 1; color: #E8F0EE; font-size: 18px; max-width: 760px; margin: 0 auto; }
.st .sub { color: #E8F0EE; font-size: 16.5px; max-width: 56em; margin: 0 0 24px; line-height: 1.6; }
.st .modes3, .st .modes4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.st .modes4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .st .modes4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .st .modes4 { grid-template-columns: 1fr; } }
.st a.mcard { text-decoration: none; }
/* the format cards of the lesson menu use the lesson cards of the Studio course pages (tools/build_studio_index.py):
   translucent panel, thin border, crimson left bar, white title, near-white text, and a crimson pill for the action */
.st .mcard { text-align: left; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-left: 4px solid #CC0033; border-radius: 10px; padding: 18px 20px; color: #fff; display: flex; flex-direction: column; gap: 8px; cursor: pointer; font-family: inherit; transition: all .2s ease; }
.st .mcard:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); border-left-color: #CC0033; transform: translateX(4px); }
.st .mcard:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.st .mcard b { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.3; }
.st .mcard span { font-size: 14px; color: #E8F0EE; line-height: 1.5; }
.st .mcard .open-pill { align-self: flex-start; margin-top: auto; font-style: normal; display: inline-block; padding: 8px 14px; border-radius: 20px; background: #CC0033; border: 1px solid #CC0033; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transition: background .15s, border-color .15s; }
.st .mcard:hover .open-pill { background: #A3002A; border-color: #A3002A; }
.st .resume { display: none; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(245,199,107,.45); background: rgba(245,199,107,.1); font-size: 15px; align-items: center; gap: 14px; flex-wrap: wrap; }
.st .resume.on { display: flex; }
.st .resume b { color: #F5C76B; }
.st .row2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-top: 16px; }
.st .pan { background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 16px 20px; }
.st .pan h2 { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #7FD8C3; }
.st .pan p, .st .pan li { color: rgba(242,250,248,.75); font-size: 14px; line-height: 1.55; }
.st .pan ul { margin: 0; padding-left: 18px; }
.st .pan a { color: #7FD8C3; }
.st .keys { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 13.5px; color: rgba(242,250,248,.75); }
.st .keys kbd { font: 700 12px var(--mono); color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 5px; padding: 2px 7px; text-align: center; }
.st .lnk { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.st .lnk a { display: inline-flex; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); text-decoration: none; color: #F2FAF8; font-size: 13px; font-weight: 700; }
.st .lnk a:hover { border-color: #7FD8C3; color: #7FD8C3; }
@media (max-width: 860px) { .st .modes3, .st .row2 { grid-template-columns: 1fr; } }

/* ── printable facilitator guide ── */
body.guide { overflow: auto; background: #fff; color: #2D3436; }
body.guide #deck, body.guide #start { display: none !important; }
#guide { display: none; max-width: 1080px; margin: 0 auto; padding: 28px 24px 60px; }
body.guide #guide { display: block; }
#guide h1 { font-size: 28px; margin: 0 0 6px; }
#guide .gi { font-size: 15px; color: #4A5356; line-height: 1.55; }
#guide .gs { break-inside: avoid; page-break-inside: avoid; border-top: 2px solid #E8ECEE; padding: 16px 0; display: grid; grid-template-columns: 448px 1fr; gap: 22px; }
#guide .gs .thumb { width: 448px; }
#guide .gs .thumb .pc { width: 448px; margin: 0; }
#guide .gs .gn h3 { margin: 0 0 4px; font-size: 17px; }
#guide .gs .gn .meta { font-size: 12.5px; color: #6B7579; margin-bottom: 8px; font-weight: 700; }
#guide .gs .gn p { font-size: 14px; line-height: 1.5; margin: 0 0 6px; }
#guide .gs .gk { margin-top: 8px; background: #F0FAF7; border: 1px solid #BFE3D9; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; line-height: 1.5; }
#guide .gs .gk b.h { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #0B7B6B; }
#guide .gpart { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #CC0033; margin-top: 20px; }
#guide .gs .thumb .pc-scene [data-t] { opacity: 1; transform: none; }
@media print { #guide .noprint { display: none; } body.guide { overflow: visible; } }

/* ── narrow screens (self-study on a phone): the companion turns the stage portrait ── */
@container pcstage (max-width: 620px) {
  .ics .pc-scene { overflow-y: auto; justify-content: flex-start; top: 10%; bottom: 3%; }
  .ics .grid2, .ics .grid3, .ics .grid4, .ics .w60, .ics .w40, .ics .res, .ics .res.ws, .ics .code-grid, .ics .code-grid.wide, .ics .ask .ask-body.side, .ics .pc-scene .sx-lay, .ics .kv { grid-template-columns: minmax(0,1fr) !important; height: auto; }
  .ics .ask .ask-body.side { display: flex; flex-direction: column; }
  .ics .pc-scene.self-rev .ask .ask-body.side { grid-template-rows: auto; }
  .ics .calc-host { min-height: 24em; }
  .ics .rs-host { min-height: 30em; }
  .ics .res .viz, .ics .res .rside { overflow: visible; }
  .ics .t-opts.two, .ics .rcards { grid-template-columns: 1fr; }
  .ics .slide-links { display: none; }
  .rs { min-height: 30em; }
}

/* ── worked problems, step bars and calculator slides ── */
.ics .stepbar { display: flex; gap: .35em; flex-wrap: wrap; margin: 0 0 .55em; }
.ics .stepbar span { font-size: .6em; font-weight: 800; letter-spacing: .04em; padding: .3em .75em; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); color: rgba(242,250,248,.5); white-space: nowrap; }
.ics .stepbar span.done { color: #7FD8C3; border-color: rgba(127,216,195,.35); }
.ics .stepbar span.now { background: #F5C76B; color: #04231F; border-color: #F5C76B; }
.ics .wp { padding: .65em .95em; border-radius: .65em; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-left: .22em solid #F5C76B; font-size: .9em; line-height: 1.45; }
.ics .wp .h { display: block; font-size: .7em; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #F5C76B; margin-bottom: .25em; }
.ics .wp mark { background: rgba(245,199,107,.2); color: #FFE7B0; border-radius: .2em; padding: 0 .15em; }
.ics .calc-text { display: flex; flex-direction: column; gap: .55em; }
.ics .calc-text .what { font-size: .82em; line-height: 1.45; color: rgba(242,250,248,.85); padding: .55em .8em; border-radius: .6em; background: rgba(127,216,195,.07); border: 1px solid rgba(127,216,195,.3); }
.ics .calc-text .what b { color: #7FD8C3; }
.ics .calc-text .th { font-size: .62em; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #F5C76B; }
.ics .try { counter-reset: tr; list-style: none; margin: 0; padding: 0; display: grid; gap: .35em; }
.ics .try li { counter-increment: tr; display: grid; grid-template-columns: 1.55em minmax(0,1fr); gap: .5em; font-size: .76em; line-height: 1.4; padding: .4em .6em; border-radius: .55em; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.ics .try li::before { content: counter(tr); width: 1.55em; height: 1.55em; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9em; background: rgba(245,199,107,.18); color: #F5C76B; }
.ics .try li b { color: #fff; }
.ics .kv { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0,1fr)); gap: .5em; }
.ics .kv > div { padding: .45em .7em; border-radius: .55em; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-left: .2em solid var(--c, #7FD8C3); min-width: 0; }
.ics .kv b { display: block; font-family: var(--math); font-size: 1.45em; color: var(--c, #7FD8C3); line-height: 1.1; }
.ics .kv span { font-size: .7em; color: rgba(242,250,248,.7); font-weight: 700; }

/* ---------- self-study: the answer is marked on the question slide ---------- */
.ics .ask-body > .selfans:not(.on) { display: none; }
.ics .pc-scene.self-rev .ask-body { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: minmax(0, 1fr); gap: 1.2em; align-items: stretch; }
.ics .pc-scene.self-rev.self-rev-solo .ask-body { grid-template-columns: minmax(0, 1fr); }
.ics .pc-scene.self-rev .ask-body > .ctx { display: none; }
.ics .pc-scene.self-rev .ask-body > .task { height: auto; min-height: 0; justify-content: flex-start; }
.ics .pc-scene.self-rev .ask-body > .selfans { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: .55em; }
.ics .pc-scene.self-rev .ask-body > .selfans:empty { display: none; }
.ics .selfans .samples { margin: .3em 0 0; padding-left: 1.1em; font-size: .92em; line-height: 1.45; color: rgba(255,255,255,.9); }
.ics .selfans .samples li { margin-bottom: .25em; }
/* an unanswered question: the next button shakes and turns orange, with a short message */
@keyframes nudge-shake { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-7px); } 30% { transform: translateX(6px); } 45% { transform: translateX(-5px); } 60% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
#bnext.nudge { background: #F59E0B !important; border-color: #F59E0B !important; color: #1F1300 !important; animation: nudge-shake .5s ease; position: relative; overflow: visible; }
#bnext.nudge::after { content: '!'; position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%; background: #FF7A00; color: #fff; font: 900 13px/18px 'Open Sans', sans-serif; text-align: center; box-shadow: 0 0 0 2px #04231F; }
.ics .task.needans { border-radius: .8em; box-shadow: 0 0 0 .14em #F59E0B, 0 0 1.2em rgba(245,158,11,.35); transition: box-shadow .2s; }
#nudgemsg { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(14px); z-index: 420; display: flex; align-items: center; gap: 10px; background: #2A1A00; color: #FFE2B3; border: 1.5px solid #F59E0B; border-radius: 12px; padding: 10px 16px; font: 700 15px 'Open Sans', sans-serif; opacity: 0; transition: all .22s; pointer-events: none; }
#nudgemsg::before { content: '!'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #F59E0B; color: #1F1300; font-weight: 900; }
#nudgemsg.on { opacity: 1; transform: translateX(-50%); }

/* ── self-study: the recorded walkthrough ── */
.ics .pc-btn.narr-only { display: none; }
body.m-self.has-narr .pc-btn.narr-only { display: inline-flex; }
#bvoice svg { width: 15px; height: 15px; }
#bvoice .i-pause { display: none; }
#bvoice.playing .i-pause { display: block; }
#bvoice.playing .i-play { display: none; }
#bvoice.hot { animation: ready-pulse 1.6s ease-in-out infinite; }
#bcc.is-on { color: #04231F; background: #7FD8C3; }
.ccbar { display: none; height: 58px; padding: 6px 18px; background: #021A17; border-left: 1px solid rgba(255,255,255,0.12); border-right: 1px solid rgba(255,255,255,0.12); align-items: center; justify-content: center; text-align: center; overflow: hidden; }
body.m-self.has-narr.cc-on .ccbar { display: flex; }
.ccbar span { font: 600 15px/1.45 'Open Sans', sans-serif; color: #F2FAF8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.narrow .ccbar { height: auto; min-height: 58px; }
body.narrow .ccbar span { -webkit-line-clamp: unset; display: block; }
#bnext.ready { animation: ready-pulse 1.6s ease-in-out infinite; }
@keyframes ready-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(127,216,195,.75); } 50% { box-shadow: 0 0 0 9px rgba(127,216,195,0); } }
@media (max-width: 1000px) { body.m-self.has-narr .pc-btn kbd, body.m-self.has-narr .stephint { display: none; } }
/* the walkthrough moving on to the next slide: a ring fills around the Next button over the countdown */
@property --autop { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
#bnext.auto { position: relative; overflow: visible; }
#bnext.auto::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(#7FD8C3 var(--autop), rgba(255,255,255,.14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: auto-fill var(--auto, 1.5s) linear forwards; }
@keyframes auto-fill { from { --autop: 0%; } to { --autop: 100%; } }

/* a phone-width screen: the deck is a flex item, so without this its widest content (a long formula, a wide card)
   set its width and the page scrolled sideways */
#deck > .pc { min-width: 0; max-width: 100%; }

/* ── the objective vote and today's plan (decks with SESSION.objectives, live room and present mode) ── */
.ics .plan-w { flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 1.1em; align-items: start; font-size: .82em; text-align: left; }
.ics .objv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35em; }
.ics .objv li { display: grid; grid-template-columns: 1.7em minmax(0, 1fr) 2em; gap: .5em; align-items: center; }
.ics .objv .onum, .ics .hands .onum { width: 1.7em; height: 1.7em; border-radius: .45em; display: grid; place-items: center; font-weight: 800; font-size: .9em; background: rgba(127,216,195,.18); color: #7FD8C3; }
.ics .objv .ot { position: relative; font-size: .78em; line-height: 1.3; color: rgba(242,250,248,.88); padding-bottom: .4em; }
.ics .objv .ot i { position: absolute; left: 0; bottom: 0; height: .25em; border-radius: 1em; background: #F5C76B; }
.ics .objv b { font-size: 1.05em; color: #F5C76B; text-align: right; font-variant-numeric: tabular-nums; }
.ics .plan-t { width: 100%; border-collapse: separate; border-spacing: 0 .25em; font-size: .86em; }
.ics .plan-t th { font-size: .7em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(242,250,248,.55); text-align: left; padding: 0 .5em; }
.ics .plan-t td { padding: .38em .5em; background: rgba(255,255,255,.05); line-height: 1.25; }
.ics .plan-t td:first-child { border-radius: .5em 0 0 .5em; } .ics .plan-t td:last-child { border-radius: 0 .5em .5em 0; text-align: right; }
.ics .plan-t td.pm, .ics .plan-t td.pv { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.ics .plan-t td.po { white-space: nowrap; color: #7FD8C3; font-weight: 700; }
.ics .plan-t tr.off td { opacity: .5; } .ics .plan-t tr.off td:last-child { opacity: 1; }
.ics .plan-t tr.fixed td { background: transparent; color: rgba(242,250,248,.7); }
.ics .plan-t tr.tot td { background: rgba(127,216,195,.12); font-weight: 800; font-size: 1.08em; }
.ics .plan-t tr.tot.long td { background: rgba(245,199,107,.16); } .ics .plan-t tr.tot.over td { background: rgba(255,77,109,.22); }
.ics .ppeer { display: inline-block; margin-left: .4em; padding: .05em .5em; border-radius: 1em; font-size: .7em; font-weight: 800; background: #F5C76B; color: #1B2A27; vertical-align: .1em; }
.ics .pfix, .ics .ptgt { font-size: .75em; color: rgba(242,250,248,.55); font-weight: 700; white-space: nowrap; }
.ics .ptog { min-width: 3.6em; padding: .25em .7em; border-radius: 1em; border: .09em solid rgba(255,255,255,.3); background: rgba(0,0,0,.25); color: rgba(242,250,248,.8); font-weight: 800; font-size: .85em; cursor: pointer; }
.ics .ptog.on { background: #7FD8C3; border-color: #7FD8C3; color: #04231F; }
.ics .plan-f { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; margin-top: .5em; }
.ics .plan-f .pst { flex: 1 1 14em; font-size: .78em; color: rgba(242,250,248,.75); line-height: 1.35; }
.ics .plan-f .ob { height: auto; padding: .45em 1em; font-size: .78em; }
.ics .hands { display: grid; grid-template-columns: repeat(auto-fit, minmax(22em, 1fr)); gap: .4em .9em; font-size: .86em; }
.ics .hands .hrow { display: grid; grid-template-columns: 1.7em minmax(0, 1fr) 4.2em; gap: .55em; align-items: center; }
.ics .hands .ot { font-size: .82em; line-height: 1.3; }
.ics .hands input { width: 100%; height: 2em; border-radius: .5em; border: .09em solid rgba(255,255,255,.25); background: rgba(0,0,0,.3); color: #fff; font: 800 1em var(--mono); text-align: center; }
.ics .hands input:focus { outline: none; border-color: #7FD8C3; }
body.ics.narrow .plan-w { grid-template-columns: minmax(0, 1fr); }
.ovw .part.off { color: rgba(255,110,138,.55); } .ovw .part em { font-style: normal; color: rgba(242,250,248,.5); letter-spacing: .06em; margin-left: .6em; }
.ovw button.off { opacity: .5; border-style: dashed; }
#guide .glive { display: block; font-size: 11.5px; letter-spacing: .04em; text-transform: none; font-weight: 600; color: #59646A; margin-top: 2px; }
#guide ol.gobj { font-size: 13.5px; line-height: 1.5; margin: 4px 0 12px; }
.ics .pneed { display: inline-block; margin-left: .4em; font-size: .7em; font-weight: 700; color: rgba(242,250,248,.6); font-style: italic; }
