@charset "UTF-8";
/* compiled from site/scss/site.scss: edit the SCSS, run `npm run build:css`, commit both */
:root {
  color-scheme: light;
  --bg: #FAF8F6;
  --panel: #FDFCFB;
  --ink: #1a1a1a;
  --dim: #474747;
  --line: #DDD4C4;
  --accent: #176F40;
  --accent-soft: #E6F4EC;
  --read-bg: #E6F4EC;
  --read-line: #C9EAD6;
  --ok: #176F40;
  --okbg: #E6F4EC;
  --warn: #B02A1E;
  --warnbg: #FDECEB;
  --rulebg: #F5F2ED;
  --rule-edge: #7DDBA3;
  --grid: #EDE8E0;
  --curve: #176F40;
  --mid: #B02A1E;
  --gold: #8A5A00;
  --goldbg: #FBF3DF;
  --display: "Hanken Grotesk", sans-serif;
  --ui: "Hanken Grotesk", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --math: var(--mono);
  --source: "Source Code Pro", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0C1017;
    --panel: #10141B;
    --ink: #F5F5F5;
    --dim: #B4BCC9;
    --line: #334155;
    --accent: #4FCA85;
    --accent-soft: #14312A;
    --read-bg: #14312A;
    --read-line: #1B4236;
    --ok: #4FCA85;
    --okbg: #14312A;
    --warn: #FF8A7D;
    --warnbg: #3A1F1C;
    --rulebg: #1C2635;
    --rule-edge: #B8F0D2;
    --grid: #2A2D36;
    --curve: #4FCA85;
    --mid: #FF8A7D;
    --gold: #E9BD62;
    --goldbg: #33290F;
  }
}
[data-theme=dark] {
  color-scheme: dark;
  --bg: #0C1017;
  --panel: #10141B;
  --ink: #F5F5F5;
  --dim: #B4BCC9;
  --line: #334155;
  --accent: #4FCA85;
  --accent-soft: #14312A;
  --read-bg: #14312A;
  --read-line: #1B4236;
  --ok: #4FCA85;
  --okbg: #14312A;
  --warn: #FF8A7D;
  --warnbg: #3A1F1C;
  --rulebg: #1C2635;
  --rule-edge: #B8F0D2;
  --grid: #2A2D36;
  --curve: #4FCA85;
  --mid: #FF8A7D;
  --gold: #E9BD62;
  --goldbg: #33290F;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/hanken-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-code-pro.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
}
:root * {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 var(--ui);
}

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  padding: 9px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  font: 500 13px/1.3 var(--ui);
}

.bar .t {
  font-weight: 700;
}

.bar .prog {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.bar .sp {
  flex: 1;
}

.bar button {
  font: inherit;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.bar button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.bar button.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

:root[data-theme=dark] .bar button.on {
  color: #10131a;
}

.lay {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px 120px;
}

@media (min-width: 1040px) {
  .lay {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 34px;
  }
}
.toc {
  font: 500 13.5px/1.35 var(--ui);
  padding-top: 22px;
}

@media (min-width: 1040px) {
  .toc {
    position: sticky;
    top: 52px;
    align-self: start;
    max-height: calc(100vh - 60px);
    overflow: auto;
    padding-bottom: 30px;
  }
}
.toc h5 {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dim);
}

.toc a {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.toc a:hover {
  background: var(--rulebg);
}

.toc a.cur {
  border-left-color: var(--accent);
  background: var(--rulebg);
}

.toc a .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  min-width: 26px;
}

.toc a.ok .n {
  color: var(--ok);
}

.toc a.ok .n::after {
  content: " ✓";
}

.toc .grp {
  margin: 16px 0 6px;
}

main {
  min-width: 0;
  padding-top: 26px;
}

h1 {
  font-size: 33px;
  line-height: 1.15;
  margin: 0 0 6px;
}

.sub1 {
  color: var(--dim);
  margin: 0 0 20px;
  font-size: 16px;
}

.urgent {
  background: var(--warnbg);
  border-left: 4px solid var(--warn);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 22px;
  font-size: 16px;
}

.urgent b {
  color: var(--warn);
}

.how {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 26px;
  font-size: 15.5px;
}

.how b {
  color: var(--accent);
}

.sec {
  margin: 0 0 54px;
  padding-top: 6px;
}

h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 40px 0 10px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

h2 .num {
  font: 700 15px var(--mono);
  color: var(--accent);
  background: var(--rulebg);
  padding: 3px 8px;
  border-radius: 6px;
}

h2 .done {
  margin-left: auto;
  font: 500 12.5px var(--ui);
  color: var(--dim);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

h2 .done input {
  accent-color: var(--ok);
  width: 16px;
  height: 16px;
}

.src {
  font: 13px var(--ui);
  color: var(--dim);
  margin: -2px 0 12px;
}

.big {
  background: var(--rulebg);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 12px 0 16px;
  font-size: 17.5px;
}

.big > b:first-child {
  display: block;
  font: 700 11.5px var(--ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

h3.sub {
  font: 700 13px var(--ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 30px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h3.sub::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

h3.sub .cnt {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  order: 2;
  white-space: nowrap;
}

.pre {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  margin: 0 0 14px;
  background: var(--panel);
}

.pre summary {
  cursor: pointer;
  font: 600 14px var(--ui);
  color: var(--gold);
}

.prq {
  margin: 14px 0 18px;
  font-size: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.prq:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.prq > b:first-child {
  display: block;
  font: 700 14px var(--ui);
  color: var(--gold);
  margin-bottom: 5px;
}

.prq p {
  margin: 6px 0;
}

.prq ol {
  margin: 8px 0;
  padding-left: 24px;
}

.prq ol li {
  margin: 9px 0;
  padding-left: 3px;
}

.prq .sk {
  background: var(--goldbg);
  border-radius: 7px;
  padding: 8px 12px;
  margin: 8px 0;
}

.prq .try {
  color: var(--dim);
  font-size: 15px;
}

.prq .fig {
  max-width: 460px;
}

.vocab {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin: 0;
}

.v {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 13px;
  cursor: default;
}

.v .vis {
  display: block;
  margin: -2px -4px 6px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 4px;
}

.v .vis svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
}

.v .vis {
  cursor: zoom-in;
}

.zoom {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 12, 16, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.zoom .zc {
  background: var(--panel);
  color: var(--ink);
  border-radius: 14px;
  max-width: 760px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  padding: 18px 22px;
  border: 1px solid var(--line);
}

.zoom .zc svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 56vh;
}

.zoom .zt {
  font: 700 22px var(--ui);
  color: var(--accent);
  margin: 10px 0 4px;
}

.zoom .zb {
  font-size: 18px;
}

.zoom .zx {
  float: right;
  font: 600 13px var(--ui);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.zoom .eg, .zoom .like {
  display: block;
  margin-top: 6px;
}

.zoom .like {
  color: var(--gold);
}

.zoom .eg {
  color: var(--dim);
}

.v .sayrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin: 1px 0 5px;
}

.v .say {
  font: 13px var(--ui);
  color: var(--dim);
}

.v .say i {
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

.v .hear {
  font: 600 11.5px var(--ui);
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.v .hear:hover {
  border-color: var(--accent);
}

.v .hear.on {
  background: var(--accent);
  color: #fff;
}

.v dt {
  font-size: 17px;
}

.v dt {
  font: 700 15px var(--ui);
  color: var(--accent);
  margin: 0 0 3px;
}

.v dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.v .eg {
  display: block;
  margin-top: 5px;
  color: var(--dim);
  font-size: 14px;
}

body.quiz .v dd, body.quiz .v .vis {
  filter: blur(7px);
  cursor: pointer;
  user-select: none;
  transition: filter 0.15s;
}

body.quiz .v.show .vis {
  filter: none;
}

body.quiz .v.show dd {
  filter: none;
}

body.quiz .v {
  cursor: pointer;
}

.th {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 19px;
  margin: 0 0 12px;
}

.th h4 {
  margin: 0 0 7px;
  font-size: 18px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.th h4 > span:not([class]) {
  font: 700 12px var(--mono);
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  position: relative;
  top: -2px;
}

:root[data-theme=dark] .th h4 > span:not([class]) {
  color: #10131a;
}

.th p {
  margin: 7px 0;
}

.th ul, .th ol {
  margin: 7px 0;
  padding-left: 22px;
}

.th li {
  margin: 4px 0;
}

.key {
  background: var(--rulebg);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 9px 0;
  font-size: 17px;
}

.key b.k {
  display: block;
  font: 700 11px var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}

.why {
  border-left: 3px solid var(--gold);
  background: var(--goldbg);
  padding: 8px 13px;
  border-radius: 0 7px 7px 0;
  margin: 9px 0;
  font-size: 15.5px;
}

.why b {
  color: var(--gold);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
  font-size: 15px;
}

th, td {
  border: 1px solid var(--line);
  padding: 6px 9px;
  text-align: center;
}

th {
  background: var(--rulebg);
  font: 700 13px var(--ui);
}

td:first-child, th:first-child {
  font-weight: 700;
}

table.l td, table.l th {
  text-align: left;
}

table.l td:first-child {
  white-space: nowrap;
}

.tw {
  overflow-x: auto;
  max-width: 100%;
}

ol.steps {
  margin: 6px 0;
  padding-left: 22px;
}

ol.steps > li {
  margin: 7px 0;
  padding-left: 2px;
}

ol.steps .s {
  display: block;
}

ol.steps .r {
  display: inline-block;
  margin-top: 2px;
  font: 500 12.5px var(--ui);
  color: var(--gold);
  background: var(--goldbg);
  padding: 1px 8px;
  border-radius: 5px;
}

.ans {
  background: var(--panel);
  border: 2px solid var(--ok);
  border-left-width: 7px;
  padding: 12px 16px 10px;
  border-radius: 10px;
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 0 0 4px var(--okbg);
}

.ans b.lbl {
  display: inline-block;
  background: var(--ok);
  color: var(--bg);
  padding: 3px 11px;
  border-radius: 999px;
  font: 800 11.5px var(--ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ans .aone {
  line-height: 1.5;
}

.alist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alist li {
  padding: 6px 0 6px 18px;
  border-bottom: 1px dashed var(--line);
  position: relative;
}

.alist li:last-child {
  border-bottom: 0;
}

.alist li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--ok);
}

.chk {
  color: var(--dim);
  font-size: 14.5px;
  margin-top: 7px;
}

.chk > b:first-child {
  font: 700 11.5px var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

ul.traps {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.traps li {
  background: var(--warnbg);
  border-left: 3px solid var(--warn);
  padding: 8px 13px;
  border-radius: 0 7px 7px 0;
  margin: 0 0 7px;
  font-size: 15.5px;
}

.quick details {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  padding: 9px 14px;
  margin: 0 0 7px;
}

.quick summary {
  cursor: pointer;
  font-weight: 600;
}

.quick .qa {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
  color: var(--ink);
}

.f {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  vertical-align: middle;
  text-align: center;
  margin: 0 0.2em;
  font-size: 0.9em;
  line-height: 1.18;
  white-space: nowrap;
}

.f > b {
  border-bottom: 1.4px solid currentColor;
  padding: 0 0.32em 0.08em;
  font-weight: inherit;
}

.f > i {
  padding: 0.06em 0.32em 0;
  font-style: normal;
}

.f .f {
  font-size: 0.9em;
}

.sq {
  display: inline-block;
  position: relative;
  padding-left: 0.62em;
  white-space: nowrap;
}

.sg {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.68em;
  height: 100%;
  overflow: visible;
}

.sg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.rad {
  display: inline-block;
  border-top: 1.4px solid currentColor;
  padding: 0.07em 0.14em 0 0.08em;
  line-height: 1.18;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

code {
  font-family: var(--source);
  font-size: 1em;
}

.m {
  font-family: var(--math);
  font-size: 1em;
}

.figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 10px 0;
}

.fig {
  margin: 10px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
}

.figs .fig {
  margin: 0;
}

.fig figcaption {
  font: 13px var(--ui);
  color: var(--dim);
  text-align: center;
  margin-top: 3px;
}

svg.plot {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

svg .dom {
  stroke: var(--accent);
  stroke-width: 8;
  stroke-opacity: 0.35;
  stroke-linecap: round;
}

svg .rng {
  stroke: var(--gold);
  stroke-width: 8;
  stroke-opacity: 0.5;
  stroke-linecap: round;
}

svg .lbdom {
  font: 700 11.5px var(--ui);
  fill: var(--accent);
}

svg .lbrng {
  font: 700 11.5px var(--ui);
  fill: var(--gold);
}

.fig svg {
  max-height: 380px;
}

svg .ax {
  stroke: var(--dim);
  stroke-width: 1.3;
}

svg .grid {
  stroke: var(--grid);
  stroke-width: 1;
}

svg .asym {
  stroke: var(--mid);
  stroke-width: 1.2;
  stroke-dasharray: 5 4;
}

svg .c1 {
  stroke: var(--curve);
  stroke-width: 2.4;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}

svg .c2 {
  stroke: var(--mid);
  stroke-width: 2.2;
  fill: none;
}

svg .c3 {
  stroke: var(--dim);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 4;
}

svg .hl {
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-dasharray: 6 4;
}

svg .tk {
  font: 11px var(--ui);
  fill: var(--dim);
}

svg .lb {
  font: 600 12px var(--ui);
  fill: var(--ink);
}

svg .lbd {
  font: 12px var(--ui);
  fill: var(--dim);
}

svg .lba {
  font: 700 12.5px var(--ui);
  fill: var(--accent);
}

svg .lbw {
  font: 700 12.5px var(--ui);
  fill: var(--mid);
}

svg .pt {
  fill: var(--mid);
}

svg .dotc {
  fill: var(--curve);
  stroke: var(--curve);
  stroke-width: 2;
}

svg .doto {
  fill: var(--panel);
  stroke: var(--curve);
  stroke-width: 2;
}

svg .arc {
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
}

svg .ah {
  fill: var(--gold);
}

svg .wd {
  fill: var(--rulebg);
  stroke: var(--line);
  stroke-width: 1;
}

svg .wdo {
  fill: var(--accent);
  fill-opacity: 0.28;
  stroke: var(--accent);
  stroke-width: 1.2;
}

svg .wdx {
  fill: var(--mid);
  fill-opacity: 0.3;
  stroke: var(--mid);
  stroke-width: 1.2;
}

svg .dim {
  stroke: var(--dim);
  stroke-width: 1.2;
  fill: none;
  stroke-dasharray: 3 3;
}

svg .vx {
  fill: var(--ink);
}

svg .lbs {
  font: 600 10.5px var(--ui);
  fill: var(--ink);
}

svg .lbsa {
  font: 700 10.5px var(--ui);
  fill: var(--accent);
}

svg .lbsw {
  font: 700 10.5px var(--ui);
  fill: var(--mid);
}

svg .lbsd {
  font: 10.5px var(--ui);
  fill: var(--dim);
}

svg .lbsg {
  font: 700 10.5px var(--ui);
  fill: var(--gold);
}

svg .sh {
  fill: var(--rulebg);
  stroke: var(--accent);
  stroke-width: 1.6;
}

svg .ln {
  stroke: var(--ink);
  stroke-width: 1.8;
  fill: none;
}

svg .lna {
  stroke: var(--accent);
  stroke-width: 2.2;
  fill: none;
}

svg .lnw {
  stroke: var(--mid);
  stroke-width: 2.2;
  fill: none;
}

.lab {
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
}

.lab h4 {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 19px;
}

.lab .ls {
  color: var(--dim);
  font-size: 14.5px;
  margin: 0 0 12px;
}

.ctrls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px 14px;
  margin: 10px 0;
}

.ctrl label {
  display: block;
  font: 12.5px var(--mono);
  color: var(--dim);
  margin-bottom: 2px;
}

.ctrl input[type=range] {
  width: 100%;
  accent-color: var(--accent);
}

.ctrl select {
  width: 100%;
  font: 14px var(--ui);
  padding: 6px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.ro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.ro div {
  background: var(--rulebg);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

.ro span {
  display: block;
  font: 11px var(--ui);
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ro b {
  font: 700 16px var(--mono);
  color: var(--accent);
}

canvas.cv {
  display: block;
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
}

.eqn {
  font: 600 19px var(--mono);
  text-align: center;
  margin: 8px 0;
  color: var(--ink);
}

.ucw {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

@media (max-width: 700px) {
  .ucw {
    grid-template-columns: 1fr;
  }
}
#uc circle.a {
  fill: var(--panel);
  stroke: var(--accent);
  stroke-width: 2;
  cursor: pointer;
}

#uc circle.a:hover, #uc circle.a.on {
  fill: var(--accent);
}

.gl input {
  width: 100%;
  font: 15px var(--ui);
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  margin: 0 0 12px;
}

.gl dl {
  margin: 0;
  columns: 2 320px;
  column-gap: 26px;
}

.gl .g {
  break-inside: avoid;
  margin: 0 0 9px;
  font-size: 15px;
}

.gl dt {
  display: inline;
  font: 700 14.5px var(--ui);
  color: var(--accent);
}

.gl dd {
  display: inline;
  margin: 0;
}

.gl dd a {
  font: 12px var(--mono);
  color: var(--dim);
  text-decoration: none;
  margin-left: 5px;
}

.fs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.fs .key {
  margin: 0;
}

.nlrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.nlrow > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  text-align: center;
  font-size: 15px;
}

.nlrow code {
  font-size: 15px;
}

@media (max-width: 1039px) {
  .toc {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 14px;
    background: var(--panel);
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 27px;
  }
  h2 {
    font-size: 22px;
  }
  .lay {
    padding: 0 12px 100px;
  }
  .th {
    padding: 12px 14px;
  }
}
@media print {
  .bar, .toc, .lab {
    display: none !important;
  }
  .lay {
    display: block;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .quick details {
    break-inside: avoid;
  }
  .ex, .th, .v {
    break-inside: avoid;
  }
}
.lesson {
  padding: 18px 20px;
}

.lesson h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.lg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 18px;
  align-items: start;
}

.lg.nofig {
  grid-template-columns: minmax(0, 1fr);
}

.lg .fig {
  margin: 0;
}

@media (max-width: 820px) {
  .lg {
    grid-template-columns: minmax(0, 1fr);
  }
  .eli .lg {
    grid-template-columns: minmax(0, 1fr);
  }
}
.plain {
  font-size: 17.5px;
}

.plain p {
  margin: 0 0 9px;
}

.tagl {
  display: block;
  font: 700 11px var(--ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 5px;
}

.how2 {
  margin: 12px 0 4px;
}

.how2 ol {
  margin: 4px 0;
  padding-left: 24px;
}

.how2 li {
  margin: 5px 0;
}

.trap1 {
  background: var(--warnbg);
  border-left: 3px solid var(--warn);
  padding: 8px 13px;
  border-radius: 0 7px 7px 0;
  margin: 12px 0 0;
  font-size: 15.5px;
}

.trap1 b {
  color: var(--warn);
}

ol.steps.s2 .r {
  display: block;
  background: none;
  border-left: 2px solid var(--gold);
  border-radius: 0;
  padding: 0 0 0 9px;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.4;
}

.v .like {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 14.5px;
}

.tagl.e5 {
  color: var(--gold);
}

.lesson.keystone {
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--goldbg);
}

.ks {
  font: 800 11px var(--ui);
  font-style: normal;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--bg);
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 10px;
  white-space: nowrap;
}

.ways {
  margin: 12px 0;
}

.wgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.way {
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 9px;
  padding: 10px 13px;
  background: var(--bg);
  font-size: 15.5px;
}

.way p {
  margin: 5px 0;
}

.wl {
  display: inline-block;
  font: 700 11.5px var(--ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}

.parts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.part {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 12px 15px;
  background: var(--bg);
}

.part h5 {
  margin: 0 0 6px;
  font-size: 17px;
  display: flex;
  gap: 9px;
  align-items: baseline;
}

.part h5 span {
  font: 700 12px var(--mono);
  color: var(--accent);
}

.facts {
  margin: 6px 0;
  padding-left: 20px;
  font-size: 15.5px;
}

.pi details summary {
  cursor: pointer;
  list-style: none;
  padding: 2px 4px;
  border-radius: 6px;
}

.pi details summary::-webkit-details-marker {
  display: none;
}

.pi details summary:hover {
  background: var(--rulebg);
}

.pmore {
  display: inline-block;
  margin-left: 8px;
  font: 700 10.5px var(--ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0 7px;
  vertical-align: 1px;
}

.pi details[open] .pmore {
  background: var(--accent);
  color: var(--bg);
}

.pib {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 8px 8px 0;
}

.pib .ex {
  margin: 10px 0;
}

.phint {
  font: 13px var(--ui);
  color: var(--dim);
  margin: 6px 0 0;
}

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.rule2 {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 15px;
  background: var(--panel);
}

.rule2 h4 {
  margin: 0 0 6px;
  font-size: 17px;
  display: flex;
  gap: 9px;
}

.rule2 h4 span {
  font: 700 12px var(--mono);
  color: var(--accent);
}

.bg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}

.bg > div {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 15px;
}

.bg b {
  display: block;
  font: 700 11px var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.bad {
  background: var(--warnbg);
}

.bad b {
  color: var(--warn);
}

.good {
  background: var(--okbg);
}

.good b {
  color: var(--ok);
}

.paper {
  border: 1px solid var(--line);
  border-left: 4px solid var(--mid);
  border-radius: 8px;
  background: var(--panel);
  padding: 4px 14px 8px;
  margin: 8px 0;
}

.phead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 36%);
  gap: 14px;
  font: 700 11px var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.pl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 36%);
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.pw {
  font-size: 18px;
}

.pn {
  font: 13.5px/1.4 var(--ui);
  color: var(--gold);
}

.pts {
  font-size: 15px;
  margin: 8px 0 0;
}

@media (max-width: 700px) {
  .pl, .phead {
    grid-template-columns: 1fr;
  }
  .bg {
    grid-template-columns: 1fr;
  }
}
.tkgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.tk {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--panel);
}

.tk h4 {
  margin: 0 0 4px;
  font-size: 18px;
  display: flex;
  gap: 9px;
  align-items: baseline;
}

.tk h4 span {
  font: 700 12px var(--mono);
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tkf {
  font: 600 22px var(--mono);
  text-align: center;
  margin: 4px 0;
}

.tke {
  font-size: 15.5px;
}

.tk table {
  font-size: 14px;
}

.symt td.sym {
  font: 700 20px var(--mono);
  text-align: center;
  white-space: nowrap;
}

.big p {
  margin: 0 0 7px;
}

.big p:last-child {
  margin: 0;
}

details.try {
  margin: 7px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  background: var(--bg);
  font-size: 15px;
}

details.try summary {
  cursor: pointer;
}

details.try .qa {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.prq .why {
  margin: 8px 0;
}

.prq .fig {
  max-width: 340px;
}

.prq .fig svg {
  max-height: 200px;
}

.bar {
  gap: 6px 8px;
}

.bar .seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.bar .seg button {
  border: 0;
  border-radius: 0;
}

.bar .seg button + button {
  border-left: 1px solid var(--line);
}

.srch {
  position: relative;
}

.srch input {
  font: 14px var(--ui);
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  width: 210px;
}

.qres {
  position: absolute;
  top: 36px;
  left: 0;
  width: min(560px, 92vw);
  max-height: 70vh;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  z-index: 80;
}

.qres a {
  display: block;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font: 14px/1.35 var(--ui);
}

.qres a.on, .qres a:hover {
  background: var(--rulebg);
}

.qres .k {
  font: 700 10.5px var(--ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 6px;
}

.qres .s {
  display: block;
  color: var(--dim);
  font-size: 12px;
}

.ovl {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(10, 12, 16, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.ovl[hidden] {
  display: none;
}

.ovc {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 820px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  padding: 18px 22px;
}

.ovc h3 {
  margin: 4px 0 12px;
}

.fch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font: 500 13px var(--ui);
}

.fch b {
  font-size: 16px;
  margin-right: 6px;
}

.fch select, .fch button, .fcf button, .fdIn button, .player button, .player select, #rateSel {
  font: 500 13px var(--ui);
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.fch .sp {
  flex: 1;
}

.pri {
  background: var(--accent) !important;
  color: var(--bg) !important;
  border-color: var(--accent) !important;
}

.fcProg, .qzProg {
  font: 13px var(--ui);
  color: var(--dim);
  margin: 10px 0;
}

.fcCard {
  min-height: 230px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--bg);
  font-size: 19px;
  cursor: pointer;
}

.fcFront .fcT {
  font: 700 30px var(--ui);
  color: var(--accent);
  text-align: center;
  margin: 28px 0 8px;
}

.fcFront .fcS {
  text-align: center;
  color: var(--dim);
  font: 14px var(--ui);
}

.fcBack {
  border-top: 1px dashed var(--line);
  margin-top: 14px;
  padding-top: 12px;
}

.fcBack svg {
  max-height: 220px;
}

.fcf {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 6px;
}

.fcHelp {
  font: 13px var(--ui);
  color: var(--dim);
  text-align: center;
  margin: 4px 0 0;
}

.qzQ {
  font-size: 20px;
  font-weight: 600;
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--bg);
}

.qzHints {
  margin: 10px 0;
  padding-left: 26px;
}

.qzHints li {
  margin: 8px 0;
  background: var(--goldbg);
  border-radius: 8px;
  padding: 6px 10px;
}

.qzA {
  border: 2px solid var(--ok);
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--okbg);
  font-size: 18px;
}

.gtip {
  position: absolute;
  z-index: 90;
  max-width: 340px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 9px 12px;
  font: 14px/1.45 var(--ui);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.gtip b {
  display: block;
  color: var(--accent);
  margin-bottom: 3px;
}

.gtip i {
  display: block;
  color: var(--dim);
  font-size: 12px;
  margin-top: 5px;
  font-style: normal;
}

a.gt {
  color: inherit;
  text-decoration: underline dotted var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: help;
}

a.gt:hover {
  background: var(--rulebg);
}

.nav3 {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 70;
  display: flex;
  gap: 6px;
}

.nav3 button {
  font: 600 13px var(--ui);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

#nBack.pulse {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  animation: pz 1s ease-in-out 3;
}

@keyframes pz {
  50% {
    transform: scale(1.08);
  }
}
.flash {
  animation: fl 1.6s ease-out 1;
}

@keyframes fl {
  0% {
    box-shadow: 0 0 0 4px var(--gold);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.player {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 75;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  font: 13px var(--ui);
  max-width: 94vw;
}

.player[hidden] {
  display: none;
}

.plab {
  color: var(--dim);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.speaking {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.listen, .hearm, .pvoc, .formalbtn {
  font: 600 11.5px var(--ui);
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  margin-left: 8px;
  vertical-align: 2px;
}

.listen:hover, .hearm:hover, .pvoc:hover {
  border-color: var(--accent);
}

.pvoc {
  font-size: 12.5px;
  padding: 4px 12px;
  margin: 0 0 10px;
}

.pctl {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}

.pctl button {
  font: 600 12.5px var(--ui);
  padding: 5px 11px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.pctl .pcount {
  font: 12px var(--ui);
  color: var(--dim);
  align-self: center;
}

body.practice .pctl {
  display: flex;
}

body.simple .lesson .key, body.simple .lesson > table, body.simple .lesson .how2 {
  display: none;
}

body.simple .lesson.formal .key, body.simple .lesson.formal > table, body.simple .lesson.formal .how2 {
  display: block;
}

body.simple .lesson.formal > table {
  display: table;
}

body.simple .tagl.e5 {
  font-size: 13px;
}

body.simple .lesson .plain {
  font-size: 19px;
}

.formalbtn {
  display: none;
}

body.simple .formalbtn {
  display: inline-block;
}

body.focus main > *:not(section.fcur) {
  display: none;
}

.fdIn {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin: 8px 0;
}

.fdIn label {
  font: 12.5px var(--mono);
  color: var(--dim);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fdIn input {
  font: 600 18px var(--mono);
  width: 110px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}

.fdAsk {
  text-align: center;
  font-size: 16px;
  color: var(--dim);
  margin: 0 0 6px;
}

.fdMsg {
  font-size: 17px;
  font-weight: 600;
  margin: 8px 0;
  min-height: 1.4em;
}

.fdMsg.ok {
  color: var(--ok);
}

.fdMsg.no {
  color: var(--warn);
}

.fdHints {
  padding-left: 24px;
}

.fdHints li {
  margin: 6px 0;
  background: var(--goldbg);
  border-radius: 8px;
  padding: 6px 10px;
}

.hlp td {
  vertical-align: top;
}

.hlp td:first-child {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
  }
  .bar .t {
    display: none;
  }
  .srch input {
    width: 150px;
  }
  .nav3 {
    bottom: 10px;
    right: 8px;
  }
  .nav3 button {
    padding: 7px 10px;
  }
}
a.gt {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 20%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: help;
  background: none;
}

a.gt:hover {
  text-decoration-color: var(--accent);
  background: var(--rulebg);
}

a.gt.new {
  font-weight: 650;
  text-decoration: none;
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--gold) 30%, transparent) 58%);
  border-radius: 2px;
  padding: 0 1px;
}

a.gt.new::after {
  content: "new";
  font: 700 8.5px var(--ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  vertical-align: super;
  margin-left: 2px;
}

.ccchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 10px 0 2px;
  font: 12.5px var(--ui);
  color: var(--dim);
}

.ccchips > span {
  font-weight: 600;
}

.ccchips button {
  font: 600 12.5px var(--ui);
  padding: 4px 11px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--panel);
  color: var(--accent);
  cursor: pointer;
}

.ccchips button.on, .ccchips button:hover {
  background: var(--accent);
  color: var(--bg);
}

.ccin {
  margin: 8px 0 12px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 4px 6px 10px;
  background: var(--bg);
}

.ccin .cc {
  border: 0;
  margin: 0;
}

.ccclose {
  display: block;
  margin: 8px auto 0;
  font: 600 13px var(--ui);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.cc {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 18px;
  background: var(--panel);
}

.cch {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cch h4 {
  margin: 0;
  font-size: 20px;
}

.cck {
  font: 800 10.5px var(--ui);
  font-style: normal;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--bg);
  background: var(--accent);
  white-space: nowrap;
}

.cck.rule {
  background: var(--warn);
}

.cck.strategy {
  background: var(--ok);
}

.ccidx {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 16px;
}

.ccidx a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font: 600 13.5px var(--ui);
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
}

.ccidx a:hover {
  border-color: var(--accent);
}

.cct {
  margin: 10px 0;
  font-size: 15px;
}

.cc .key ul {
  margin: 4px 0 0;
  padding-left: 20px;
}

.cc .key li {
  margin: 4px 0;
}

.dev1 {
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--goldbg);
  border: 1px solid var(--gold);
  font-size: 16px;
}

.forms {
  margin: 12px 0;
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.fm {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 11px;
  background: var(--bg);
  font-size: 15px;
}

.fm p {
  margin: 3px 0;
}

.fm ul {
  margin: 3px 0;
  padding-left: 18px;
}

.fml {
  display: block;
  font: 800 10.5px var(--ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.fm .fig {
  margin: 4px 0 0;
}

.remind {
  margin: 10px 0;
  padding: 9px 13px;
  border-left: 4px solid var(--accent);
  background: var(--rulebg);
  border-radius: 0 9px 9px 0;
  font-size: 15.5px;
}

.remind ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.counter {
  margin: 12px 0;
  padding: 10px 13px;
  border: 1px solid var(--warn);
  border-radius: 10px;
  background: var(--warnbg);
}

.counter > b.tagl {
  color: var(--warn);
}

.cx {
  padding: 7px 0;
  border-top: 1px dashed color-mix(in srgb, var(--warn) 40%, transparent);
  font-size: 15.5px;
}

.cx:first-of-type {
  border-top: 0;
}

.cxw b {
  color: var(--warn);
}

.cxy {
  color: var(--dim);
  margin: 2px 0 2px 16px;
}

.cxr b {
  color: var(--ok);
}

.tips {
  margin: 12px 0;
  padding: 10px 13px;
  border: 1px solid var(--ok);
  border-radius: 10px;
  background: var(--okbg);
}

.tips > b.tagl {
  color: var(--ok);
}

.tips ul {
  margin: 4px 0 0;
  padding-left: 20px;
}

.tips li {
  margin: 4px 0;
}

.strat {
  margin: 12px 0;
  padding: 12px 14px;
  border: 2px solid var(--ok);
  border-radius: 12px;
  background: var(--panel);
}

.strat h5 {
  margin: 2px 0 8px;
  font-size: 17px;
}

.tagl.st {
  color: var(--ok);
}

.strat ol {
  margin: 6px 0 0;
  padding-left: 22px;
}

.strat li {
  margin: 4px 0;
}

.flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 6px 0;
}

.fq {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  background: var(--bg);
}

.fn {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ok);
  color: var(--bg);
  font: 800 13px var(--ui);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fqa {
  grid-column: 2/4;
  font-weight: 650;
}

.fy, .fno {
  font-size: 14.5px;
  border-radius: 7px;
  padding: 5px 9px;
}

.fy {
  background: var(--okbg);
}

.fno {
  background: var(--rulebg);
}

.fy b, .fno b {
  display: block;
  font: 800 10.5px var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fy b {
  color: var(--ok);
}

.fno b {
  color: var(--dim);
}

.fdown {
  text-align: center;
  color: var(--ok);
  font-size: 18px;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .fq {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .fqa, .fy, .fno {
    grid-column: 2;
  }
}
.asks {
  margin: 8px 0;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 15.5px;
}

.asks {
  background: var(--rulebg);
}

.asks b {
  color: var(--accent);
}

.exfig {
  margin: 8px 0 10px;
}

.exfig .fig {
  max-width: 390px;
}

.mq {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 15px;
  margin: 0 0 12px;
  background: var(--panel);
}

.mq.gap {
  border-left: 5px solid var(--warn);
}

.mqh b {
  font-size: 17px;
}

.mqc {
  display: inline-block;
  font: 700 11px var(--ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 1px 8px;
  margin-right: 8px;
  vertical-align: 2px;
}

.mqa {
  margin: 6px 0;
  font-size: 16px;
}

.mqsee {
  font: 13.5px var(--ui);
  color: var(--dim);
}

.mqlink {
  display: inline-block;
  margin: 2px 6px 2px 0;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
}

.mqlink:hover {
  border-color: var(--accent);
}

.gapg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.gapg .mq {
  margin: 0;
}

.casesw {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin: 10px 0;
}

.cases {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid var(--ink);
  border-radius: 10px 0 0 10px;
  padding: 4px 0 4px 12px;
}

svg .ftc {
  fill: var(--panel);
  stroke: var(--line);
  stroke-width: 1.2;
}

svg .fte {
  fill: color-mix(in srgb, var(--accent) 16%, var(--panel));
  stroke: var(--accent);
  stroke-width: 2;
}

svg .fts {
  fill: color-mix(in srgb, var(--gold) 20%, var(--panel));
  stroke: var(--gold);
  stroke-width: 2;
}

svg .fta {
  stroke: var(--accent);
  stroke-width: 2.2;
}

svg .ftah {
  fill: var(--accent);
}

svg .ftw {
  stroke: var(--gold);
  stroke-width: 2.2;
}

svg .ftwh {
  fill: var(--gold);
}

svg .ftdot {
  fill: var(--accent);
}

svg .ftdotw {
  fill: var(--gold);
}

svg .mir {
  stroke: var(--dim);
  stroke-dasharray: 4 4;
  stroke-width: 1.2;
}

svg .nlseg {
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
}

svg .nlhead {
  fill: var(--accent);
}

svg .nlc {
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 2;
}

svg .nlo {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 2.5;
}

svg .nst0 {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

svg .nst1, svg .nst2, svg .nst3, svg .nst4 {
  fill: color-mix(in srgb, var(--accent) 7%, transparent);
  stroke: var(--accent);
  stroke-width: 1.3;
}

svg .nsti {
  fill: color-mix(in srgb, var(--gold) 12%, transparent);
  stroke: var(--gold);
  stroke-width: 1.3;
}

.notev {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  font: 600 16px/1.45 var(--ui);
  text-align: center;
}

.notev .nl1 {
  padding: 4px 6px;
  border-bottom: 1px dashed var(--line);
}

.notev .nl1:last-child {
  border-bottom: 0;
}

main .lesson table, main .part table, main .cc table, main .prq table, main .notev table, main .mq table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.fig {
  max-width: 100%;
  overflow: hidden;
}

.figs {
  max-width: 100%;
}

.th > h4, .part h5, .tk h4, .rule2 h4, .cch, .exh, .mqh, main section.sec > h2 {
  flex-wrap: wrap;
  min-width: 0;
  overflow-wrap: anywhere;
}

.listen, .tryb {
  white-space: nowrap;
  max-width: 100%;
}

.fb {
  display: inline-block;
  font: 800 10.5px var(--ui);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--warn);
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: 3px;
  white-space: nowrap;
}

.th.focus, .cc.focus {
  border: 2px solid var(--warn);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 14%, transparent);
}

.focusban {
  margin: 6px 0 12px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--warnbg);
  border: 1px solid var(--warn);
  color: var(--warn);
  font: 700 14.5px var(--ui);
}

.prbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 12px;
  font: 13px var(--ui);
}

.prbar button {
  font: 600 12.5px var(--ui);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.prsum {
  color: var(--dim);
  font-weight: 600;
}

.prgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 12px;
}

.pr1 {
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--panel);
}

.pr1.prk {
  border-left-color: var(--ok);
}

.pr1.prr {
  border-left-color: var(--warn);
}

.prh {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.prh b {
  font-size: 17px;
}

.prrate button {
  font: 600 11.5px var(--ui);
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  margin-left: 4px;
}

.pr1.prk [data-r=k] {
  background: var(--ok);
  color: var(--bg);
  border-color: var(--ok);
}

.pr1.prr [data-r=r] {
  background: var(--warn);
  color: var(--bg);
  border-color: var(--warn);
}

.prrule {
  margin: 6px 0;
  font-size: 16.5px;
  font-weight: 600;
}

.pr1 .fig {
  margin: 6px 0;
}

.pr1 .fig svg {
  max-height: 210px;
}

.prex {
  font-size: 15px;
  margin: 6px 0;
}

.prex ol {
  margin: 4px 0;
  padding-left: 22px;
}

.pra {
  font-weight: 700;
  color: var(--ok);
}

.prtrap {
  font-size: 14.5px;
  background: var(--warnbg);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 6px 0;
}

.prtrap b {
  color: var(--warn);
}

.prlink {
  font: 600 13px var(--ui);
}

.bclist {
  list-style: decimal;
  padding-left: 28px;
  margin: 8px 0;
}

.bc1 {
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 10px;
  background: var(--panel);
}

.bc1.prk {
  border-left-color: var(--ok);
}

.bc1.prr {
  border-left-color: var(--warn);
}

.bc1 .prh b {
  font-size: 17px;
}

.bcwhy {
  font-size: 15px;
  color: var(--dim);
  margin: 4px 0;
}

.bc1 .ccchips {
  margin-top: 6px;
}

.bc1 .ccchips button {
  background: var(--accent);
  color: var(--bg);
}

.bc1.prk [data-r=k] {
  background: var(--ok);
  color: var(--bg);
  border-color: var(--ok);
}

.bc1.prr [data-r=r] {
  background: var(--warn);
  color: var(--bg);
  border-color: var(--warn);
}

.tw {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 15px;
  margin: 0 0 12px;
  background: var(--panel);
}

.tw h4 {
  margin: 0 0 4px;
  font-size: 17px;
}

.tw .twa {
  font-size: 15px;
  color: var(--dim);
  margin: 0 0 6px;
}

.tw .twtip {
  font-size: 14.5px;
  background: var(--goldbg);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 8px 0 0;
}

.pic {
  max-width: 760px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--panel);
}

.pic h3 {
  font: 700 18px/1.35 var(--ui);
  margin: 0 0 8px;
}

.pic svg.plot {
  max-width: 680px !important;
  margin: 0 auto;
}

.pic .fig {
  border: 0;
  background: none;
}

.tkfig {
  margin: 10px auto;
  max-width: 360px;
}

.tkfig.tksm {
  max-width: 300px;
}

.tkbody {
  background: #1c1e23;
  border-radius: 16px;
  padding: 10px 11px 13px;
  box-shadow: inset 0 0 0 2px #2c2f36;
}

.tkscr {
  background: #b9c3a8;
  border-radius: 6px;
  height: 34px;
  margin: 0 4px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 3px 8px;
  font: 600 10px var(--ui);
  color: #3b4232;
}

.tkp {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: minmax(38px, auto);
  gap: 7px 6px;
}

.tk {
  position: relative;
  background: #3b3f47;
  color: #f4f5f7;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 13px 1px 5px;
  box-shadow: 0 2px 0 #111;
}

.tk .tkl {
  font: 700 11.5px/1 var(--ui);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tk .tks {
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  text-align: center;
  font: 600 7.4px/1 var(--ui);
  letter-spacing: -0.02em;
  color: #9fc0ff;
  white-space: nowrap;
  overflow: hidden;
}

.tk.tkn {
  background: #6b7079;
}

.tk.tk2 {
  background: #4a74c9;
}

.tk.tke {
  background: #5a5f69;
}

.tk.thit, .tka.thit {
  background: #f0b429;
  color: #1b1b1b;
  box-shadow: 0 0 0 2px #fff;
}

.tk.thit .tks {
  color: #5b4300;
}

.tkb {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  background: #d9412b;
  color: #fff;
  font: 800 10.5px/17px var(--ui);
  text-align: center;
  font-style: normal;
  padding: 0 3px;
  box-shadow: 0 0 0 2px #1c1e23;
}

.tkb + .tkb {
  right: 12px;
}

.tkb + .tkb + .tkb {
  right: 30px;
}

.tkpad {
  position: relative;
  border-radius: 50%;
  background: #2c2f36;
  margin: 2px 10px;
}

.tka {
  position: absolute;
  color: #e8eaee;
  font: 700 12px var(--ui);
  width: 26px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.tka0 {
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.tka1 {
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.tka2 {
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.tka3 {
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.tkseq {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  list-style: none;
  padding: 0;
  margin: 8px 0 2px;
  counter-reset: tk;
}

.tkseq li {
  counter-increment: tk;
  display: flex;
  align-items: center;
  font: 12px var(--ui);
  color: var(--dim);
}

.tkseq li::before {
  content: counter(tk);
  font: 800 10px var(--ui);
  background: #d9412b;
  color: #fff;
  border-radius: 8px;
  min-width: 15px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  margin-right: 1px;
}

.tkfig figcaption {
  font: 13.5px/1.45 var(--ui);
  color: var(--dim);
  margin-top: 6px;
}

.kpshow > summary {
  font: 600 13.5px var(--ui);
  color: var(--accent);
  cursor: pointer;
  margin: 4px 0;
}

.cc .figs {
  grid-template-columns: repeat(auto-fill, minmax(240px, 360px));
  justify-content: start;
}

.tpath {
  columns: 2 300px;
  column-gap: 26px;
  font-size: 17px;
  margin: 6px 0 4px;
}

.tpath li {
  margin: 6px 0;
  break-inside: avoid;
}

.tpath a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.tpath a:hover {
  text-decoration: underline;
}

.plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin: 0 0 8px;
}

.pc {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  background: var(--panel);
  font-size: 15.5px;
}

.pc > b {
  display: block;
  font: 700 12px var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.pc ul {
  margin: 0;
  padding-left: 19px;
}

.pc li {
  margin: 5px 0;
}

.pc.k {
  border-top: 3px solid var(--warn);
}

.pc.k > b {
  color: var(--warn);
}

.pc.r {
  border-top: 3px solid var(--accent);
}

.pc.r > b {
  color: var(--accent);
}

.pc.s {
  border-top: 3px solid var(--ok);
}

.pc.s > b {
  color: var(--ok);
}

.pc.d {
  border-top: 3px solid var(--gold);
  background: var(--goldbg);
  grid-column: 1/-1;
}

.pc.d > b {
  color: var(--gold);
}

.pc.d li b:first-child {
  color: var(--gold);
}

.cheat {
  columns: 2 340px;
  column-gap: 22px;
}

.cs {
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 12px;
  background: var(--panel);
  font-size: 15px;
}

.cs h4 {
  margin: 0 0 4px;
  font-size: 16.5px;
}

.cs h4 a {
  font: 700 13px var(--mono);
  color: var(--accent);
  background: var(--rulebg);
  padding: 2px 7px;
  border-radius: 5px;
  text-decoration: none;
  margin-right: 6px;
}

.cs ul {
  margin: 2px 0 6px;
  padding-left: 19px;
}

.cs li {
  margin: 3px 0;
}

.cl {
  font: 700 11px var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 7px 0 1px;
}

.cl.k {
  color: var(--warn);
}

.cl.s {
  color: var(--ok);
}

.cl.d {
  color: var(--gold);
}

.printbtn {
  margin-left: auto;
  font: 600 13px var(--ui);
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

@media print {
  body.print-cheat main > *:not(#cheat), body.print-cheat .printbtn {
    display: none !important;
  }
  body.print-cheat .cs {
    font-size: 9.5pt;
    padding: 5px 8px;
    margin-bottom: 6px;
  }
  body.print-cheat #cheat h2 {
    font-size: 14pt;
    margin: 0 0 4px;
  }
  body.print-cheat .cheat {
    column-gap: 12px;
  }
}
.chip {
  display: inline-block;
  font: 500 12px var(--ui);
  padding: 3px 10px;
  border-radius: 999px;
  margin: 0 0 10px;
  border: 1px solid var(--line);
}

.chip.ok {
  color: var(--ok);
  border-color: var(--ok);
}

.chip.wait {
  color: var(--gold);
  border-color: var(--gold);
}

.eli {
  border: 2px solid var(--gold);
  background: var(--goldbg);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 12px 0 16px;
}

.eli > b:first-child {
  display: block;
  font: 800 13px var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.eli .lg {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
}

.eli .plain {
  font-size: 18px;
}

.eli .fig {
  background: var(--panel);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

svg.plot {
  width: auto;
  max-width: min(100%, 680px) !important;
}

.plot .edge {
  stroke: var(--dim);
  stroke-width: 1.2;
}

.tint-a10 {
  fill: var(--accent);
  fill-opacity: 0.1;
  stroke: none;
}

.tint-a12 {
  fill: var(--accent);
  fill-opacity: 0.12;
  stroke: none;
}

.tint-a14-stroke {
  fill: var(--accent);
  fill-opacity: 0.14;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.tint-ok12 {
  fill: var(--ok);
  fill-opacity: 0.12;
  stroke: none;
}

.tint-ok14-stroke {
  fill: var(--ok);
  fill-opacity: 0.14;
  stroke: var(--ok);
  stroke-width: 1.5;
}

.dash-dim {
  fill: none;
  stroke: var(--dim);
  stroke-dasharray: 4 3;
}

.dash-dim-12 {
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
}

.panel-accent {
  fill: var(--panel);
  stroke: var(--accent);
  stroke-width: 1.4;
}

.bg-warn {
  fill: var(--bg);
  stroke: var(--warn);
  stroke-width: 2;
}

.say-sm {
  font: 14px var(--ui);
  color: var(--dim);
}

.gl-count {
  font: 500 13px var(--ui);
  color: var(--dim);
}

.cv.tall {
  height: 340px;
}

.sm {
  font-size: 13px;
}

.center {
  text-align: center;
}

.mv .mv-ln {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.mv .mv-lead {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.mv .mv-heel {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-dasharray: 4 3;
}

.mv .mv-ld {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
}

.mv .mv-pt {
  fill: var(--ink);
}

.mv .mv-dim {
  stroke: var(--dim);
  stroke-width: 1.2;
}

.mv .mv-fill {
  fill: var(--rulebg);
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.mv .mv-lb {
  font: 600 13px var(--ui);
  fill: var(--ink);
}

.mv .mv-part {
  fill: var(--panel);
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.mv .mv-part.done {
  fill: var(--accent-soft);
}

.mv .mv-part.on {
  stroke: var(--accent);
  stroke-width: 3.4;
}

.mv .mv-limb {
  fill: none;
  stroke: var(--ink);
  stroke-width: 15.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mv .mv-limb.lead {
  stroke: var(--accent);
  stroke-width: 18.8;
}

.mv .mv-limb-in {
  fill: none;
  stroke: var(--panel);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mv .mv-fist {
  fill: var(--panel);
  stroke: var(--ink);
  stroke-width: 1.8;
}

.mv .mv-fist.lead {
  stroke: var(--accent);
  stroke-width: 3.4;
}

.mv .mv-head {
  fill: var(--panel);
  stroke: var(--ink);
  stroke-width: 1.8;
}

.mv .mv-no {
  fill: none;
  stroke: var(--warn);
  stroke-width: 3.4;
  stroke-linecap: round;
}

.fig.sourced .pic {
  max-width: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
}

.fig.sourced img {
  display: block;
  width: auto;
  max-width: min(100%, 420px);
  height: auto;
  max-height: 60vh;
  margin: 0 auto;
  border-radius: 4px;
  background: #fff;
}

.fig.sourced .credit {
  display: block;
  padding: 6px 12px 0;
  font: 14px/1.4 var(--ui);
  color: var(--dim);
}

.fig.sourced .credit a {
  color: inherit;
  text-decoration: underline;
}

html[data-stance=southpaw] [data-form=orthodox], html:not([data-stance=southpaw]) [data-form=southpaw],
html[data-hand=left] [data-form=right], html:not([data-hand=left]) [data-form=left] {
  display: none !important;
}

.js .fig.mirrors .no-script {
  display: none;
}

.mv-choice-wrap {
  margin: 14px 0 0;
}

.mv-choice {
  display: flex;
  gap: 8px;
  margin: -5px;
  padding: 5px;
  min-width: 0;
  overflow-x: auto;
}

.mv-choice label {
  position: relative;
  flex: 1 0 0px;
  display: flex;
  cursor: pointer;
}

.mv-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.mv-choice .tile {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 5px 12px;
  border: 1px solid var(--dim);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: 600 15px/1.25 var(--ui);
}

.mv-choice .mv-tick {
  flex: 0 0 auto;
  color: var(--accent);
  visibility: hidden;
}

.mv-choice input:checked + .tile {
  border: 2px solid var(--accent);
  padding: 4px 11px;
}

.mv-choice input:checked + .tile .mv-tick {
  visibility: visible;
}

.mv-choice input:focus + .tile {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.mv-choice .words {
  min-width: 0;
}

.mv-choice .ft {
  font-weight: 400;
}

.mv-choice-wrap .mv-lead-line {
  margin: 6px 0 0;
  font: 14px/1.4 var(--ui);
  color: var(--dim);
}

@media (min-width: 1040px) {
  .mv-choice-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .mv-choice label {
    flex: 0 1 auto;
  }
}
@media (max-width: 599px) {
  .mv-stance .tile {
    min-height: 56px;
  }
  .mv-stance .words {
    display: flex;
    flex-direction: column;
  }
  .mv-stance .sep {
    display: none;
  }
  .mv-stance .ft {
    font-size: 13px;
    color: var(--dim);
  }
}
@media (forced-colors: active) {
  .mv .mv-ln, .mv .mv-lead, .mv .mv-heel, .mv .mv-ld, .mv .mv-dim, .mv .mv-part, .mv .mv-fill, .mv .mv-limb, .mv .mv-fist, .mv .mv-head, .mv .mv-no {
    stroke: CanvasText;
  }
  .mv .mv-pt, .mv .mv-lb {
    fill: CanvasText;
  }
  .mv-choice .tile {
    border-color: CanvasText;
  }
}
.tk.r1 {
  grid-row-start: 1;
}

.tk.r2 {
  grid-row-start: 2;
}

.tk.r3 {
  grid-row-start: 3;
}

.tk.r4 {
  grid-row-start: 4;
}

.tk.r5 {
  grid-row-start: 5;
}

.tk.r6 {
  grid-row-start: 6;
}

.tk.r7 {
  grid-row-start: 7;
}

.tk.r8 {
  grid-row-start: 8;
}

.tk.r9 {
  grid-row-start: 9;
}

.tk.s1 {
  grid-row-end: span 1;
}

.tk.s2 {
  grid-row-end: span 2;
}

.tk.c1 {
  grid-column-start: 1;
}

.tk.c2 {
  grid-column-start: 2;
}

.tk.c3 {
  grid-column-start: 3;
}

.tk.c4 {
  grid-column-start: 4;
}

.tk.c5 {
  grid-column-start: 5;
}

.tkpad {
  grid-row: 1/span 2;
  grid-column: 4/span 2;
}

html {
  font-family: var(--ui);
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--accent);
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 14px;
  text-wrap: balance;
}

[id] {
  scroll-margin-top: 72px;
}

a, button, summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
}

.brand img {
  display: block;
}

.crumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--dim);
  min-width: 0;
}

.crumbs a {
  color: var(--dim);
  text-decoration: none;
}

.crumbs a + a::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}

.crumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.theme {
  margin-left: auto;
  font: 500 13px var(--ui);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.theme:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lay {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.lay.with-aside {
  display: grid;
  grid-template-columns: 220px minmax(0, 72ch);
  gap: 40px;
  align-items: start;
}

main {
  min-width: 0;
}

.contents {
  position: sticky;
  top: 72px;
  font-size: 14px;
}

.contents summary {
  font-family: var(--display);
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 8px;
  list-style: none;
}

.contents summary::-webkit-details-marker {
  display: none;
}

.contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.contents li a {
  display: block;
  padding: 5px 12px;
  color: var(--dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.contents li a:hover, .contents li a:focus-visible {
  color: var(--accent);
  border-left-color: var(--accent);
}

.lesson-page .tagl, .lesson-page .k {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--accent);
}

.see {
  margin: 28px 0 0;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.see h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.see ul {
  margin: 0;
  padding-left: 20px;
}

.pn {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.pn a {
  text-decoration: none;
  color: var(--ink);
  max-width: 48%;
}

.pn a small {
  display: block;
  color: var(--dim);
  font-size: 13px;
}

.pn a[rel=next] {
  margin-left: auto;
  text-align: right;
}

.pn a:hover {
  color: var(--accent);
}

.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.foot nav {
  display: flex;
  gap: 14px;
}

.foot a {
  color: var(--dim);
}

.foot p {
  margin: 0;
  margin-left: auto;
}

@media (max-width: 820px) {
  .top {
    padding: 10px 16px;
    gap: 12px;
  }
  .crumbs {
    display: none;
  }
  .lay {
    padding: 20px 16px 48px;
  }
  .lay.with-aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .contents {
    position: static;
  }
  .contents details:not([open]) summary {
    margin: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .contents li a, .theme {
    transition: color 0.15s ease, border-color 0.15s ease;
  }
}
.tick {
  font: 500 14px var(--ui);
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  margin: 0 0 16px;
}

.tick[aria-pressed=true] {
  color: var(--panel);
  background: var(--accent);
}

.tick[aria-pressed=true]::before {
  content: "✓ ";
}

.not-saved {
  margin-left: 10px;
  font-size: 14px;
  color: var(--warn);
}

.not-saved a {
  color: var(--warn);
}

.store-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: var(--warnbg);
  border-left: 3px solid var(--warn);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
}

.unit-page.practice .unit-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 4px 0 24px;
  max-width: 72ch;
}

.unit-page.practice .unit-go {
  flex: 1 0 100%;
  box-sizing: border-box;
  display: block;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font: 600 18px/48px var(--display);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unit-page.practice .unit-go:hover {
  filter: brightness(1.08);
}

.unit-page.practice .unit-go:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.unit-page.practice .unit-keys .practice-links {
  flex: 0 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
  margin: -4px -6px;
  padding: 4px 6px;
  overflow-x: auto;
}

.unit-page.practice .unit-keys .practice-links a {
  flex: none;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  white-space: nowrap;
}

@media (min-width: 600px) {
  .unit-page.practice .unit-keys {
    flex-wrap: nowrap;
  }
  .unit-page.practice .unit-go {
    flex: 0 1 auto;
    min-width: 0;
  }
}
.unit-page.practice #before-you-practice {
  max-width: 72ch;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--warn);
}

.unit-page.practice #before-you-practice p {
  margin: 0;
}

.unit-page.practice .have {
  max-width: 72ch;
  margin: 0;
  padding-left: 22px;
}

.unit-page.practice .have li {
  margin: 6px 0;
}

@media (min-width: 600px) and (max-width: 1039px) {
  .unit-page.practice .have {
    columns: 2;
    column-gap: 40px;
  }
  .unit-page.practice .have li {
    break-inside: avoid;
  }
}
.unit-page.practice .lessons .tick {
  min-height: 44px;
}

.unit-page.practice .lessons li {
  align-items: start;
  box-sizing: border-box;
  min-height: 56px;
}

.unit-page.practice .lessons li::before {
  line-height: 1.5;
}

.unit-page.practice .l-what {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.unit-page.practice .l-what a {
  overflow-wrap: anywhere;
}

.unit-page.practice .holds {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  height: 1.5em;
  font: 14px/1.5 var(--ui);
  color: var(--dim);
}

.unit-page.practice .holds > span {
  white-space: pre;
}

@media (min-width: 600px) {
  .unit-page.practice .lessons li {
    grid-template-columns: 2.2em minmax(0, 1fr) auto;
    align-items: center;
  }
  .unit-page.practice .lessons .tick {
    grid-column: auto;
    justify-self: end;
  }
  .unit-page.practice .l-what {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
  }
  .unit-page.practice .l-what a {
    flex: 0 1 auto;
  }
  .unit-page.practice .holds {
    flex: 1 1 0;
    min-width: 0;
  }
}
@media (min-width: 1040px) {
  .unit-page.practice {
    display: grid;
    grid-template-columns: minmax(0, 72ch) minmax(220px, 300px);
    column-gap: 56px;
    align-items: start;
  }
  .unit-page.practice > * {
    grid-column: 1;
    min-width: 0;
  }
  .unit-page.practice > #have {
    grid-column: 2;
    grid-row: 1/span 4;
    margin-top: 8px;
  }
}
@media (min-width: 1440px) {
  .unit-page.practice > #have {
    grid-row: 1/span 12;
    position: sticky;
    top: 76px;
  }
}
.unit-page.practice .wide-practice-links {
  display: none;
}

@media (min-width: 1440px) {
  .unit-page.practice:has(#have) .unit-keys .practice-links {
    display: none;
  }
  .unit-page.practice .wide-practice-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 20px;
  }
  .unit-page.practice .wide-practice-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    white-space: nowrap;
  }
}
.explorer {
  margin: 18px 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.explorer figure {
  margin: 0;
}

.explorer figcaption {
  font-size: 14px;
  color: var(--dim);
  margin-top: 6px;
}

.explorer[data-error]::after {
  content: attr(data-error);
  display: block;
  font-size: 14px;
  color: var(--dim);
  margin-top: 8px;
}

.explorer-ui {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.explorer-ui label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  font-size: 14px;
  color: var(--dim);
}

.explorer-ui input[type=number], .explorer-ui select {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  max-width: 220px;
}

.explorer-ui input[type=range] {
  accent-color: var(--accent);
  max-width: 320px;
}

.explorer-ui button {
  justify-self: start;
  font: 500 14px var(--ui);
  color: var(--panel);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.explorer-ui button[type=button] {
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line);
}

.explorer-ui [role=status] {
  font-size: 15px;
  color: var(--ink);
  min-height: 1.4em;
}

.explorer-ui .eqn {
  font-family: var(--mono);
  font-size: 15px;
  margin: 0;
}

.explorer-ui .chain {
  margin: 0;
  padding-left: 22px;
}

.explorer-ui .chain li {
  margin: 4px 0;
}

.explorer-ui .cv {
  width: 100%;
  height: 300px;
  display: block;
}

.explorer-ui .plot {
  width: min(100%, 320px);
  height: auto;
  display: block;
}

.explorer-ui .plot .ax {
  stroke: var(--line);
  stroke-width: 1;
}

.explorer-ui .plot .ln {
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.2;
}

.explorer-ui .plot .lnw {
  stroke: var(--accent);
  stroke-width: 2.2;
}

.explorer-ui .plot .lna {
  stroke: var(--gold);
  stroke-width: 1.8;
}

.explorer-ui .plot .hl {
  stroke: var(--mid);
  stroke-width: 1.8;
}

.explorer-ui .plot .a {
  fill: var(--panel);
  stroke: var(--dim);
  stroke-width: 1.2;
  cursor: pointer;
}

.explorer-ui .plot .a.on {
  fill: var(--accent);
  stroke: var(--accent);
}

.explorer-ui .plot .a:focus-visible {
  outline: none;
  stroke: var(--accent);
  stroke-width: 3;
}

.explorer-ui .plot .tk {
  font: 11px var(--ui);
  fill: var(--dim);
}

.write {
  margin-top: 12px;
}

.write h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.write ol {
  margin: 0 0 8px;
  padding-left: 22px;
  font-family: var(--mono);
  font-size: 15px;
}

.write .box {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-family: var(--mono);
}

@media (max-width: 820px) {
  .explorer-ui .cv {
    height: 240px;
  }
}
.explorer[data-lab=on] {
  grid-column: 1/-1;
  padding: 20px 24px 18px;
}

.explorer[data-lab=on] > figure {
  display: none;
}

.ulab {
  font: 16px/1.5 var(--ui);
  color: var(--ink);
}

.ulab .ulab-h {
  margin: 0 0 6px;
  font: 500 22px/1.25 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ulab .ulab-q {
  margin: 0 0 16px;
  font-size: 17px;
}

.ulab .ulab-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 24px;
}

.ulab .ulab-fig {
  flex: none;
  display: block;
  width: 184px;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.ulab .ulab-ax {
  stroke: var(--dim);
  stroke-width: 1;
}

.ulab .ulab-circle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}

.ulab .ulab-leg {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.ulab .ulab-radius {
  stroke: var(--accent);
  stroke-width: 2.2;
}

.ulab .ulab-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.ulab .ulab-head, .ulab .ulab-p {
  fill: var(--accent);
}

.ulab .ulab-tk {
  font: 13px var(--ui);
  fill: var(--dim);
  paint-order: stroke;
  stroke: var(--panel);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.ulab .ulab-t, .ulab .ulab-pl {
  font: 600 15px var(--ui);
  fill: var(--accent);
  paint-order: stroke;
  stroke: var(--panel);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.ulab .ulab-work {
  flex: 1 1 280px;
  min-width: 0;
}

.ulab .ulab-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 12px;
  padding-left: 80px;
}

.ulab .ulab-row label {
  position: absolute;
  top: 0;
  left: 0;
  font: 17px/44px var(--mono);
  white-space: nowrap;
}

.ulab .ulab-row input {
  flex: none;
  width: 12.5ch;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  font: 17px/1.4 var(--mono);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--dim);
  border-radius: 8px;
}

.ulab .ulab-row input:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.ulab .ulab-res {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.ulab .ulab-res[data-verdict=correct] {
  color: var(--ok);
}

.ulab .ulab-res[data-verdict=wrong] {
  color: var(--warn);
}

.ulab .ulab-mark {
  flex: none;
  width: 20px;
  height: 20px;
}

.ulab .ulab-mark circle {
  fill: currentColor;
}

.ulab .ulab-mark path {
  fill: none;
  stroke: var(--panel);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ulab .ulab-how {
  margin: 2px 0 14px;
  font-size: 14px;
  color: var(--dim);
}

.ulab button {
  min-height: 40px;
  margin: 0;
  padding: 7px 16px;
  font: 500 15px var(--ui);
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
}

.ulab button:hover {
  background: var(--accent-soft);
}

.ulab button.primary {
  color: var(--panel);
  background: var(--accent);
}

.ulab button.primary:hover {
  background: var(--accent);
  filter: brightness(1.1);
}

.ulab button:disabled {
  color: var(--dim);
  background: transparent;
  border-color: var(--line);
  cursor: default;
  filter: none;
}

.ulab .ulab-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.ulab .ulab-worked {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ulab .ulab-worked > b {
  display: block;
  margin: 0 0 2px;
  color: var(--accent);
}

.ulab .ulab-worked p {
  margin: 4px 0;
}

@media (max-width: 720px) {
  .explorer[data-lab=on] {
    padding: 16px;
  }
}
@media print {
  .explorer[data-lab=on] > figure {
    display: block;
  }
  .ulab {
    display: none;
  }
}
.top-tools {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.top-tools .theme {
  margin-left: 0;
}

.top-tools .reading, .top-tools .help-btn {
  font: 500 13px var(--ui);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.top-tools .reading:hover, .top-tools .help-btn:hover, .top-tools .reading[aria-expanded=true] {
  border-color: var(--accent);
  color: var(--accent);
}

.say {
  float: right;
  margin: 0 0 6px 12px;
  font: 500 13px/1.2 var(--ui);
  padding: 5px 11px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.say:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.say[data-state=reading] {
  border-color: var(--accent);
  color: var(--accent);
}

.say[data-state=none] {
  color: var(--dim);
  cursor: default;
}

html[data-text-size="2"] {
  font-size: 112.5%;
  --text-scale: 1.125;
}

html[data-text-size="3"] {
  font-size: 125%;
  --text-scale: 1.25;
}

html[data-text-size="2"] body, html[data-text-size="3"] body {
  font-size: calc(17px * var(--text-scale));
}
html[data-text-size="2"] .plain, html[data-text-size="2"] .q, html[data-text-size="3"] .plain, html[data-text-size="3"] .q {
  font-size: calc(17.5px * var(--text-scale));
}
html[data-text-size="2"] .lesson .plain, html[data-text-size="3"] .lesson .plain {
  font-size: calc(19px * var(--text-scale));
}
html[data-text-size="2"] .key, html[data-text-size="3"] .key {
  font-size: calc(17px * var(--text-scale));
}
html[data-text-size="2"] .why, html[data-text-size="2"] .trap1, html[data-text-size="3"] .why, html[data-text-size="3"] .trap1 {
  font-size: calc(15.5px * var(--text-scale));
}
html[data-text-size="2"] .dev1, html[data-text-size="3"] .dev1 {
  font-size: calc(16px * var(--text-scale));
}
html[data-text-size="2"] .ans, html[data-text-size="3"] .ans {
  font-size: calc(18px * var(--text-scale));
}
html[data-text-size="2"] ol.steps.s2 .r, html[data-text-size="3"] ol.steps.s2 .r {
  font-size: calc(13.5px * var(--text-scale));
}

.focus-mode .th.lesson > *:not(.current):not(h4) {
  display: none;
}

.focus-nav {
  display: none;
}

.focus-mode .focus-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: 12px 0 0;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.focus-pos {
  font: 500 13px var(--ui);
  color: var(--dim);
}

.unfold, .focus-nav button {
  font: 500 14px var(--ui);
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.unfold {
  display: block;
  margin: 9px 0;
}

.focus-nav button:disabled {
  color: var(--dim);
  border-color: var(--line);
  cursor: default;
}

.vocab .meaning.hidden {
  filter: blur(6px);
  cursor: pointer;
  user-select: none;
}

.vocab .meaning.hidden:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .vocab .meaning {
    transition: filter 0.15s ease;
  }
}
dialog.prefs, dialog.help {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: 15px/1.45 var(--ui);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

dialog.prefs {
  position: fixed;
  inset: auto 16px auto auto;
  top: 64px;
  margin: 0;
  z-index: 10;
  width: min(22rem, 100vw - 32px);
  max-height: calc(100vh - 88px);
  overflow: auto;
  padding: 12px 16px 14px;
}

dialog.help {
  width: min(40rem, 100vw - 32px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 16px 22px 20px;
}

dialog.help::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

dialog .dh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

dialog .dh h2 {
  font-size: 19px;
  margin: 0;
}

dialog .close {
  font: 500 13px var(--ui);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

dialog .close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

dialog.prefs label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  min-height: 28px;
}

dialog.prefs label[hidden] {
  display: none;
}

dialog.prefs input[type=checkbox], dialog.prefs input[type=radio] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

dialog.prefs fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0;
  padding: 4px 12px 6px;
}

dialog.prefs legend {
  font-weight: 600;
  padding: 0 4px;
}

dialog.prefs select {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 6px;
  max-width: 13rem;
}

dialog.help dl {
  margin: 0;
}

dialog.help dt {
  font-weight: 600;
  margin: 12px 0 2px;
}

dialog.help dd {
  margin: 0;
}

dialog.recall {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: 15px/1.45 var(--ui);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  width: min(30rem, 100vw - 32px);
  padding: 16px 22px 18px;
}

dialog.recall::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

dialog.recall h2 {
  font: 600 13px var(--ui);
  letter-spacing: 0.04em;
  color: var(--dim);
  margin: 0 0 8px;
}

dialog.recall .front {
  font: 19px/1.4 var(--display);
  margin: 0 0 10px;
}

dialog.recall .back {
  font-size: 17px;
  color: var(--accent);
  margin: 0;
}

dialog.recall .status {
  font-size: 13px;
  color: var(--dim);
  margin: 0;
}

dialog.recall .back:not(:empty), dialog.recall .status:not(:empty) {
  margin: 0 0 10px;
}

dialog.recall .acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

dialog.recall .acts button {
  font: 500 14px var(--ui);
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

dialog.recall .acts button:hover {
  background: var(--accent-soft);
}

@media print {
  .say, .unfold, .focus-nav, .top-tools .reading, .top-tools .help-btn, dialog {
    display: none !important;
  }
}
.lg > .say {
  grid-column: 1/-1;
  justify-self: end;
} /* #<slug>-plain is the .lg grid (site/scss/_prototype.scss:89): without this, the prepended button becomes grid item 1 and pushes .plain into the narrow figure column */
.unit-page > p {
  max-width: 72ch;
}

.unit-page section {
  margin: 28px 0 0;
}

.unit-page h2 {
  font-size: 22px;
  margin: 0 0 12px;
}

.lessons {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lesson;
  max-width: 72ch;
}

.lessons li {
  counter-increment: lesson;
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.lessons li:last-child {
  border-bottom: 1px solid var(--line);
}

.lessons li::before {
  content: counter(lesson);
  font-family: var(--display);
  font-size: 18px;
  color: var(--accent);
}

.lessons li a {
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
}

.lessons li a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.lessons .tick {
  margin: 0;
}

.vocab .term {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 13px;
}

.vocab dt {
  font-weight: 600;
}

.vocab .pron {
  color: var(--dim);
  font-weight: 400;
  font-size: 14px;
}

.vocab dd {
  margin: 4px 0 0;
}

.vocab .like {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 14.5px;
}

.refresh {
  padding-left: 20px;
}

.practice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.practice-links a {
  font: 500 14px var(--ui);
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 14px;
}

.practice-links a:hover {
  background: var(--accent-soft);
}

.review-form {
  display: grid;
  gap: 12px;
  max-width: 72ch;
  margin: 0 0 20px;
}

.review-form fieldset {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.review-form legend {
  padding: 0 6px;
  font-weight: 600;
}

.review-form button[type=submit] {
  justify-self: start;
  font: 500 15px var(--ui);
  color: var(--panel);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
}

.deck-get {
  max-width: 72ch;
  margin: 0 0 20px;
  font: 15px/1.5 var(--ui);
  color: var(--dim);
}

.deck-get a {
  font-weight: 500;
}

@media (max-width: 820px) {
  .lessons li {
    grid-template-columns: 2em minmax(0, 1fr);
  }
  .lessons .tick {
    grid-column: 2;
    justify-self: start;
  }
}
#questions textarea {
  display: block;
  width: 100%;
  max-width: 64ch;
  margin-top: 4px;
  font: inherit;
}

#questions [role=tablist] {
  display: flex;
  gap: 8px;
  margin: 18px 0 8px;
}

#questions [role=tab] {
  font: 500 15px var(--ui);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

#questions [role=tab][aria-selected=true] {
  color: var(--panel);
  background: var(--accent);
  border-color: var(--accent);
}

#questions .question {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.practice-item [hidden], .card [hidden] {
  display: none !important;
}

.practice-item {
  box-sizing: border-box;
  max-width: 72ch;
  margin: 0 0 20px;
  padding: 22px 26px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.practice-item .count {
  margin: 0 0 6px;
  font: 500 13px var(--ui);
  color: var(--dim);
}

.practice-item .where {
  margin: 0 0 8px;
  font: 700 12px var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.practice-item .q {
  margin: 0 0 16px;
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.5;
}

.practice-item button {
  min-height: 40px;
  padding: 7px 16px;
  font: 500 15px var(--ui);
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
}

.practice-item button:hover {
  background: var(--accent-soft);
}

.practice-item button.primary {
  color: var(--panel);
  background: var(--accent);
}

.practice-item button.primary:hover {
  background: var(--accent);
  filter: brightness(1.1);
}

.practice-item button:disabled {
  color: var(--dim);
  background: transparent;
  border-color: var(--line);
  cursor: default;
  filter: none;
}

.typed label {
  display: block;
  margin: 0 0 6px;
  font: 500 14px var(--ui);
}

.typed-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.typed input {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--dim);
  border-radius: 8px;
}

.typed input:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.typed .how-to {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--dim);
}

.verdict-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 12px 0 0;
}

.verdict {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.verdict b {
  font-weight: 600;
}

.verdict[data-verdict=correct] b {
  color: var(--ok);
}

.verdict[data-verdict=wrong] b {
  color: var(--warn);
}

.vmark {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.vmark circle {
  fill: currentColor;
}

.vmark path {
  fill: none;
  stroke: var(--panel);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.verdict[data-verdict=correct] .vmark {
  color: var(--ok);
}

.verdict[data-verdict=wrong] .vmark {
  color: var(--warn);
}

.practice-item .hint {
  margin: 12px 0 0;
  padding: 6px 12px;
  background: var(--goldbg);
  border-radius: 8px;
}

.practice-item .answer {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.practice-item .answer > b {
  margin-right: 6px;
  color: var(--accent);
}

.practice-item .acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .practice-item {
    padding: 16px 16px 14px;
  }
}
html.narrated {
  --bar-h: 84px;
  scroll-padding-bottom: calc(var(--bar-h) + 16px);
}

html.narrated body {
  padding-bottom: var(--bar-h);
}

#transport {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  min-height: 84px;
  box-sizing: border-box;
  padding: 10px max(16px, (100vw - 1180px) / 2 + 24px);
  background: var(--panel);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font: 14px/1.35 var(--ui);
}

#transport:empty {
  display: none;
}

#transport button {
  font: 500 14px var(--ui);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 36px;
  padding: 6px 12px;
  cursor: pointer;
}

#transport button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

#transport button:disabled {
  color: var(--dim);
  cursor: default;
  opacity: 0.5;
}

#transport svg {
  display: block;
}

.tp-keys {
  display: flex;
  align-items: center;
  gap: 6px;
}

#transport .tp-step {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

#transport .tp-play {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--panel);
}

#transport .tp-play:hover {
  color: var(--panel);
  filter: brightness(1.1);
}

.tp-where {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 380px;
}

.tp-where .now {
  display: flex;
  gap: 14px;
  margin: 0 0 7px;
  font-size: 15px;
}

.tp-where .cue-pos {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tp-line {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--rulebg);
  overflow: hidden;
}

.tp-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

#transport .cue-status {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--dim);
}

#transport .cue-status:empty {
  margin: 0;
}

.tp-set {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#transport .tp-toggle {
  border-color: var(--accent);
  color: var(--accent);
}

#transport .disclosure {
  margin-left: auto;
  font-size: 13px;
  color: var(--dim);
}

#transport .transcript {
  flex: 1 0 100%;
  order: 9;
  max-height: 32vh;
  overflow: auto;
  box-sizing: border-box;
  margin: 4px 0 0;
  padding: 8px 12px 8px 30px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}

#transport .transcript[hidden] {
  display: none;
}

#transport .transcript li {
  margin: 4px 0;
  color: var(--dim);
}

#transport .transcript li.current {
  color: var(--ink);
  font-weight: 600;
}

#transport .transcript:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .tp-fill {
    transition: width 0.2s ease;
  }
}
.now-step {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contents li a.reading {
  color: var(--accent);
  border-left-color: var(--accent);
}

.marks {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 12px 0 0;
}

.marks button {
  font: 500 14px var(--ui);
  min-height: 40px;
  min-width: 72px;
  padding: 6px 16px;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
}

.marks button:hover {
  background: var(--accent-soft);
}

.marks button[data-m=got] {
  color: var(--panel);
  background: var(--accent);
}

.marks button[data-m=got]:hover {
  background: var(--accent);
  filter: brightness(1.1);
}

html.narrated .focus-mode .focus-nav {
  bottom: var(--bar-h);
}

@media (max-width: 720px) {
  html.narrated {
    --bar-h: 168px;
  }
  #transport {
    gap: 8px 12px;
    padding: 8px 16px 10px;
  }
  .tp-where {
    flex: 1 1 0;
    max-width: none;
  }
  .tp-set {
    flex: 1 0 100%;
  }
  #transport .disclosure {
    flex: 1 0 100%;
    margin: 0;
    text-align: center;
  }
}
@media print {
  #transport, .marks {
    display: none !important;
  }
  html.narrated body {
    padding-bottom: 0;
  }
}
.pg-practice .lay {
  display: block;
  max-width: 1380px;
}

.pg-practice .crumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.pg-practice .crumbs a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 44px;
}

.pg-practice .top-tools {
  margin-left: auto;
}

@media (max-width: 1039px) {
  .pg-practice .crumbs a {
    color: var(--ink);
    font: 600 17px/44px var(--display);
  }
  .pg-practice .crumbs a + a {
    display: none;
  }
}
.review [hidden], .round-settings [hidden] {
  display: none !important;
}

.review {
  max-width: 100%;
}

.practice-start h1 {
  font: 700 clamp(34px, 5vw, 56px)/1.06 var(--display);
  margin: 16px 0 22px;
  max-width: 17ch;
}

.practice-start .lead {
  font: 400 19px/1.5 var(--ui);
  max-width: 48ch;
  margin-bottom: 22px;
}

.review .start-key, .review .end-key, .review button.primary, .round-settings button.primary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font: 600 18px/1.3 var(--ui);
  text-decoration: none;
  white-space: nowrap;
}

.start-key {
  width: 100%;
}

.start-line {
  margin: 10px 0 24px;
  font: 400 15px/1.5 var(--ui);
}

.practice-with {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 22px 0 28px;
}

.practice-with > span {
  grid-column: 1/-1;
  font: 700 15px/1.4 var(--ui);
  margin-bottom: 10px;
}

.practice-with > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  font: 600 16px/1.4 var(--ui);
  text-decoration: none;
}

.practice-with > a[aria-current=true] {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.start-units h2 {
  font: 700 32px/1.2 var(--display);
  margin: 22px 0 12px;
}

.unit-rows {
  list-style: none;
  padding: 0;
  margin: 0;
}

.unit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 24px;
  gap: 10px 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  min-height: 116px;
  box-sizing: border-box;
}

.unit-rows li:first-child .unit-row {
  border-top: 0;
}

.unit-title {
  grid-column: 1/3;
  font: 700 25px/1.18 var(--display);
}

.unit-arrow {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  font-size: 26px;
}

.unit-total, .unit-count {
  font: 400 14px/1.5 var(--ui);
}

.unit-count {
  grid-column: 2/4;
  min-height: 22px;
}

.unit-progress {
  grid-column: 1/-1;
  width: 100%;
  height: 8px;
  accent-color: var(--accent);
  border: 0;
}

.unit-progress[hidden] {
  display: block !important;
  visibility: hidden;
}

.exam-row {
  display: block;
  border-block: 1px solid var(--line);
  color: var(--ink);
  padding: 20px 0;
  text-decoration: none;
}

.exam-row b {
  display: block;
  font: 700 27px/1.2 var(--display);
  margin-bottom: 9px;
}

.exam-row span {
  font: 400 16px/1.5 var(--ui);
}

.browser-line {
  margin-top: 24px;
  font: 400 15px/1.6 var(--ui);
}

.browser-line a {
  display: block;
  min-height: 44px;
}

.round-note {
  font: 400 15px/1.5 var(--ui);
  max-width: 62ch;
  border-left: 3px solid var(--accent);
  padding: 12px;
}

.round-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.round-count, .end-count {
  font: 700 30px/1.2 var(--display);
  margin: 20px 0;
}

.round-skip, .review .card button, .review .end-review button, .round-settings button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  background: transparent;
  font: 600 15px/1.35 var(--ui);
  cursor: pointer;
}

.round-skip {
  border-color: transparent;
}

.round-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 10px 0 28px;
}

.round-strip .block {
  flex: 1 1 0;
  min-width: 10px;
  min-height: 28px;
  max-width: 48px;
  border: 1px solid var(--dim);
  border-radius: 2px;
  transform: skew(-7deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 13px/1 var(--ui);
  color: var(--dim);
}

.round-strip .block[data-state=got] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.round-strip .block[data-state=missed] {
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
}

.round-strip .block[data-state=skipped] {
  border-style: dashed;
}

.round-strip .block[data-state=now] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.round-progress {
  display: none;
  width: 100%;
  height: 12px;
  accent-color: var(--accent);
  margin-bottom: 24px;
}

.round-strip.strip-bar {
  display: none;
}

.round-strip.strip-bar + .round-progress {
  display: block;
}

.round-rail > .round-links {
  display: none;
}

.round-place {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font: 700 14px/1.3 var(--ui);
}

.round-view {
  min-width: 0;
}

.round-view section.ex {
  border: 0;
  padding: 0;
  margin: 8px 0 20px;
  background: transparent;
}

.round-view .ex-q .q {
  font: 500 calc(23px * var(--text-scale, 1))/1.4 var(--display);
}

.round-view .ex-where {
  display: none;
}

.round-view .ex-head:has(.ex-mark[hidden]) {
  display: none;
}

.round-view .ex-title {
  font: 700 23px/1.3 var(--display);
  margin: 20px 0;
}

.round-view .ex-next {
  margin-top: 24px;
}

.round-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  font: 500 15px/1.4 var(--ui);
  overflow-x: auto;
}

.round-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}

.round-source {
  display: block;
  font: 500 13px/1.5 var(--ui);
  margin: 8px 0;
}

.round-credit {
  font: 400 13px/1.6 var(--ui);
  overflow-wrap: anywhere;
  margin: 28px 0;
}

.round-end {
  padding: 18px 0;
}

.end-count {
  font-size: 34px;
}

.end-links {
  display: grid;
  margin: 20px 0;
}

.end-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

.review-these {
  padding-left: 24px;
}

.review-these > li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.review-these > li:first-child {
  border-top: 0;
}

.review-these .ans {
  margin: 16px 0;
}

.question-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card {
  position: relative;
  border-block: 1px solid var(--line);
  padding: 24px 0;
}

.card .card-listen {
  position: absolute;
  top: 12px;
  right: 0;
}

.card:has(> .card-listen) .front {
  padding-right: 104px;
}

.card .front, .card .back {
  font: 500 25px/1.45 var(--display);
  overflow-wrap: anywhere;
}

.card .back {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.card-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}

.card-actions button {
  flex: 1 1 0;
  white-space: nowrap;
}

.deck-get {
  font: 400 13px/1.5 var(--ui);
  margin: 24px 0;
}

.round-settings {
  box-sizing: border-box;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  width: min(540px, 100% - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

.round-settings::backdrop {
  background: rgba(0, 0, 0, 0.35);
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-head h2 {
  font: 700 22px/1.2 var(--display);
  margin: 0;
  padding: 0;
  border: 0;
}

.round-settings fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0 0;
  padding: 12px 0;
  min-width: 0;
}

.round-settings legend {
  font: 700 16px/1.4 var(--ui);
  padding: 0 8px 0 0;
}

.round-settings label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: 400 15px/1.4 var(--ui);
}

.round-settings select {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
}

.round-settings label:has(select) {
  flex-direction: column;
  align-items: stretch;
}

.round-settings input {
  accent-color: var(--accent);
}

.settings-length, .settings-modes {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
}

.settings-length label, .settings-modes label {
  flex: 1 0 auto;
  white-space: nowrap;
}

.settings-note {
  font: 400 14px/1.5 var(--ui);
}

.none-waiting {
  margin-left: auto;
  font: 400 13px/1.4 var(--ui);
  color: var(--dim);
}

.round-settings a.pick-unit {
  display: flex;
  align-items: center;
  min-height: 44px;
  font: 500 15px/1.4 var(--ui);
}

.review .nojs {
  margin: 16px 0;
  padding: 10px 14px;
  font: 400 15px/1.5 var(--ui);
  background: var(--goldbg);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

html[data-theme] .review .nojs {
  display: none;
}

@media (max-width: 599px) {
  .pg-practice .lay {
    padding-inline: 16px;
  }
  .pg-practice .crumbs {
    margin: 0;
  }
  .round-end .end-key {
    width: 100%;
  }
  .round-settings button.primary {
    width: 100%;
  }
  .round-settings {
    position: fixed;
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: none;
    max-height: 85dvh;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    border-radius: 12px 12px 0 0;
  }
}
@media (max-width: 599px) and (min-height: 480px) {
  .pg-practice.in-round {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
    scroll-padding-bottom: 100px;
  }
  .round-help:not([hidden]) {
    position: fixed;
    z-index: 20;
    inset: auto 0 0;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .round-help > button {
    flex: 1 0 auto;
    min-height: 44px;
    font-size: 13px;
  }
  .round-view :focus {
    scroll-margin-block: 90px 110px;
  }
}
@media (min-width: 600px) {
  .practice-start {
    max-width: 760px;
    margin-inline: auto;
  }
  .end-links {
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
  .round-count {
    font-size: 36px;
  }
}
@media (min-width: 1040px) {
  .practice-start {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr);
    gap: 24px 64px;
    max-width: none;
  }
  .start-intro {
    position: sticky;
    top: 90px;
    align-self: start;
  }
  .browser-line {
    grid-column: 1;
  }
  .start-units {
    grid-column: 2;
    grid-row: 1/span 2;
  }
  .in-round #stage {
    display: grid;
    grid-template-columns: 240px minmax(0, 760px);
    grid-template-rows: auto 1fr;
    gap: 0 40px;
    justify-content: center;
    align-items: start;
  }
  .round-view > .round-links {
    display: none;
  }
  .round-top {
    grid-column: 2;
  }
  .round-rail {
    grid-column: 1;
    grid-row: 1/span 2;
    position: sticky;
    top: 90px;
    align-self: start;
  }
  .round-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  .round-rail > .round-links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .round-view {
    grid-column: 2;
  }
  .round-end {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr);
    gap: 48px;
  }
  .end-summary {
    position: sticky;
    top: 90px;
    align-self: start;
  }
  .round-rail > .round-settings[open], #stage > .round-settings[open] {
    position: static;
    margin: 16px 0 0;
    width: auto;
    max-height: none;
    padding: 14px;
  }
}
@media (min-width: 1440px) {
  .unit-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
  .in-round #stage:has(> .round-settings) {
    grid-template-columns: 240px minmax(0, 760px) 300px;
  }
  #stage > .round-settings[open] {
    grid-column: 3;
    grid-row: 1/-1;
    align-self: start;
    position: sticky;
    top: 90px;
    margin: 0;
  }
  .round-view section.ex.ex-mounted {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr);
    gap: 28px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .round-strip .block {
    transition: background-color 150ms, border-color 150ms;
  }
  .round-view > .arrives {
    animation: round-in 180ms ease-out;
  }
  .card .back:not([hidden]) {
    animation: round-in 300ms ease-out;
  }
  dialog.round-settings:modal {
    animation: round-in 200ms ease-out;
  }
}
@keyframes round-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (forced-colors: active) {
  .round-strip .block, .review button, .review .start-key, .review .end-key {
    outline: 1px solid ButtonText;
  }
}
section.ex {
  position: relative;
  margin: 20px 0 0;
  padding: 14px 0 6px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 76px;
  scroll-margin-bottom: 100px;
}

section.ex [hidden] {
  display: none !important;
}

.ex-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
  margin: 0 0 4px;
  font: 600 14px/1.4 var(--ui);
  white-space: nowrap;
}

.ex-head:focus {
  outline: none;
}

.ex-head:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.ex-where {
  color: var(--accent);
}

.ex-mark {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--dim);
  font-weight: 500;
}

.ex-mark[data-mark=got]::before {
  content: "✓ ";
  color: var(--ok);
}

.ex-mark[data-mark=missed]::before {
  content: "○ ";
}

.ex-title {
  margin: 2px 0 6px;
  font: 700 22px/1.25 var(--display);
  color: var(--ink);
}

.ex-q .q {
  margin: 6px 0;
  padding-bottom: 2px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  overflow-x: auto;
  overflow-y: hidden;
}

section.ex .asks {
  margin: 6px 0;
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--ink);
}

section.ex .asks b {
  color: var(--accent);
}

.ex-q figure.given {
  margin: 8px 0;
  border: 0;
  background: none;
}

.ex-q figure.given svg {
  max-height: 320px;
}

section.ex figcaption.waits {
  display: none;
}

section.ex[data-answer] figcaption.waits,
section.ex:has(> details.ex-fold[open]) figcaption.waits {
  display: block;
  margin: 6px 0 0;
}

.ex-fold {
  margin: 8px 0 0;
}

.ex-fold > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font: 600 15px var(--ui);
  color: var(--accent);
}

.ex-work {
  margin: 8px 0 0;
}

.ex-pics {
  margin: 8px 0;
}

.ex-pics .fig {
  max-width: 420px;
}

.ex-more {
  margin: 4px 0 8px;
}

ol.ex-hints {
  list-style: none;
  margin: 8px 0;
  padding: 0;
}

ol.ex-hints > li {
  margin: 6px 0;
  padding: 4px 0 4px 12px;
  border-left: 2px solid var(--gold);
}

.ex-hint-n {
  display: block;
  font: 600 13px var(--ui);
  color: var(--dim);
}

section.ex ol.steps {
  margin: 8px 0;
}

.ex-answer {
  margin: 10px 0 0;
}

.ex-label {
  display: block;
  margin: 12px 0 6px;
  padding: 0;
  font: 700 17px/1.3 var(--display);
  color: var(--ink);
}

.ex-prompt {
  margin: 10px 0 6px;
  color: var(--dim);
}

.ex-how {
  margin: 4px 0;
  font-size: 14px;
  color: var(--dim);
}

.ex-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  padding: 3px 2px;
  overflow-x: auto;
}

.ex-typed .ex-lead, .ex-typed .ex-unit {
  flex: none;
  font: italic 20px var(--display);
  color: var(--ink);
}

.ex-typed input {
  flex: 0 1 auto;
  min-width: 9ch;
  min-height: 44px;
  box-sizing: border-box;
  padding: 6px 10px;
  font: 17px var(--ui);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ex-typed input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.ex-typed input[readonly] {
  background: var(--rulebg);
}

.ex-answer button,
.ex-answer a.ex-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 16px;
  font: 500 15px var(--ui);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.ex-answer button:hover, .ex-answer a.ex-button:hover {
  border-color: var(--accent);
}

.ex-answer button:focus-visible, .ex-answer a.ex-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.ex-answer button.primary, .ex-answer a.ex-button.primary {
  color: var(--panel);
  background: var(--accent);
  border-color: var(--accent);
}

.ex-answer button:disabled {
  color: var(--dim);
  background: var(--rulebg);
  border-color: var(--line);
  cursor: default;
}

.ex-help > button, .ex-marks > button, .ex-next > *, .ex-go > button {
  flex: 1 1 0;
  min-width: max-content;
}

@media (min-width: 600px) {
  .ex-help > button, .ex-next > *, .ex-go > button {
    flex: 0 0 auto;
    min-width: 160px;
  }
  .ex-marks > button {
    flex: 0 0 auto;
    min-width: 140px;
  }
  .ex-options {
    max-width: 480px;
  }
}
.ex-typed > button {
  min-width: 88px;
}

.ex-after > button, .ex-stepsrow > button {
  flex: 1 1 auto;
}

.ex-keys {
  display: none;
  margin: 6px 0;
  gap: 0;
  overflow-x: auto;
}

@media (max-width: 819px), (hover: none) and (pointer: coarse) {
  .ex-keys {
    display: flex;
  }
}
.ex-keys > button {
  flex: 1 1 44px;
  min-width: 44px;
  max-width: 64px;
  min-height: 44px;
  padding: 0;
  margin-left: -1px;
  font: 18px var(--ui);
  border-radius: 0;
}

.ex-keys > button:first-child {
  margin-left: 0;
  border-radius: 8px 0 0 8px;
}

.ex-keys > button:last-child {
  border-radius: 0 8px 8px 0;
}

.ex-keys:has(> :nth-child(7)) {
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
  mask-image: linear-gradient(to right, #000 85%, transparent);
}

@media (min-width: 360px) {
  .ex-keys {
    gap: 4px;
  }
  .ex-keys > button, .ex-keys > button:first-child, .ex-keys > button:last-child {
    margin-left: 0;
    border-radius: 8px;
  }
}
.ex-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

.ex-answer .ex-options > button.ex-option {
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  text-align: left;
  white-space: normal;
}

.ex-ring {
  flex: none;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 2px solid var(--dim);
  border-radius: 50%;
}

.ex-answer button.ex-option[aria-checked=true] {
  border: 2px solid var(--accent);
}

.ex-option[aria-checked=true] .ex-ring {
  border-color: var(--accent);
  background: radial-gradient(var(--accent) 45%, transparent 50%);
}

.ex-answer button.ex-option.struck {
  color: var(--dim);
  cursor: default;
}

.ex-option.struck .ex-option-words {
  text-decoration: line-through;
}

.ex-option.struck .ex-ring {
  background: linear-gradient(45deg, transparent 44%, var(--dim) 45%, var(--dim) 55%, transparent 56%);
}

.ex-parts {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ex-part {
  margin: 6px 0 10px;
}

.ex-part .ex-label, .ex-part-label {
  margin: 6px 0 2px;
  font: 600 15px var(--ui);
}

.ex-part-mark {
  flex: none;
  font: 600 14px var(--ui);
}

.ex-part-mark[data-mark=right] {
  color: var(--ok);
}

.ex-part-mark[data-mark=right]::before {
  content: "✓ ";
}

.ex-part-mark[data-mark=wrong] {
  color: var(--warn);
}

.ex-part-mark[data-mark=wrong]::before {
  content: "✕ ";
}

.ex-part-mark[data-mark=dash] {
  color: var(--dim);
}

.ex-part-mark[data-mark=dash]::before {
  content: "– ";
}

.ex-line {
  margin: 10px 0 4px;
  font-size: 16px;
  line-height: 1.45;
}

.ex-line b {
  font-weight: 700;
}

.ex-icon {
  display: inline-block;
  width: 18px;
  margin-right: 6px;
  font-weight: 700;
}

.ex-line[data-mark=right] {
  color: var(--ok);
}

.ex-line[data-mark=right] .ex-icon::before {
  content: "✓";
}

.ex-line[data-mark=wrong] {
  color: var(--warn);
}

.ex-line[data-mark=wrong] .ex-icon::before {
  content: "✕";
}

.ex-line[data-mark=dash] .ex-icon::before {
  content: "–";
}

.ex-line:not([data-mark]) .ex-icon {
  display: none;
}

.ex-kept {
  margin: 4px 0;
  font-size: 14px;
  color: var(--dim);
}

.ex-kept a {
  color: var(--accent);
}

.ex-store-note {
  margin: 12px 0 0;
  padding: 8px 0;
  font-size: 15px;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

.ex-record {
  margin: 12px 0 0;
}

section.ex .ans {
  margin: 8px 0 0;
  padding: 4px 0 4px 12px;
  font-size: 18px;
  background: transparent;
  border: 0;
  border-left: 3px solid var(--ok);
  border-radius: 0;
  box-shadow: none;
}

section.ex .ans b.lbl {
  display: block;
  margin: 0 0 4px;
  padding: 0;
  font: 700 17px var(--display);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: none;
}

section.ex .ans b.lbl:focus {
  outline: none;
}

section.ex .ans b.lbl:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

section.ex .chk {
  margin: 8px 0 0;
}

.ex-ask {
  margin: 12px 0 0;
  font: 600 16px var(--ui);
}

.ex-answer .ex-marks > button[aria-pressed=true] {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
}

.ladder {
  margin: 22px 0;
  padding: 0;
  border: 0;
}

.ladder-head {
  margin: 0 0 4px;
}

.ladder-say {
  margin: 0 0 6px;
  color: var(--dim);
}

.ladder > section.ex > .ex-head::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  margin-right: 8px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: var(--bg);
}

.ladder > section.ex[data-mark=got] > .ex-head::before {
  background: var(--accent);
}

.ladder > section.ex[data-mark=missed] > .ex-head::before {
  border-radius: 50%;
}

.ladder > section.ex > .ex-head {
  justify-content: flex-start;
}

.ladder > section.ex > .ex-head > .ex-mark {
  margin-left: auto;
}

@media (min-width: 360px) {
  .ladder {
    position: relative;
    padding-left: 26px;
  }
  .ladder::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 64px;
    bottom: 12px;
    border-left: 2px solid var(--accent);
  }
  .ladder > section.ex > .ex-head::before {
    position: absolute;
    left: -26px;
    top: 18px;
    margin: 0;
  }
}
@media (min-width: 1040px) {
  .ladder {
    padding-left: 0;
  }
  .ladder::before {
    left: -25px;
  }
  .ladder > section.ex > .ex-head::before {
    left: -32px;
  }
}
@media (min-width: 1440px) {
  section.ex.ex-mounted {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
  }
  section.ex.ex-mounted > * {
    grid-column: 1;
  }
  section.ex.ex-mounted > .ex-work {
    grid-column: 2;
    grid-row: 1/span 4;
  }
}
#transport.tp-away {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .ex-line:not([hidden]), ol.ex-hints > li:not([hidden]), section.ex ol.steps > li:not([hidden]), .ex-pics:not([hidden]), .ex-record:not([hidden]) {
    animation: ex-in 180ms ease-out;
  }
  .ex-line[data-mark=right] .ex-icon {
    animation: ex-tick 240ms ease-out;
  }
  .ex-answer button {
    transition: background-color 90ms, border-color 90ms;
  }
}
@keyframes ex-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ex-tick {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@media print {
  .ex-row, .ex-keys, .ex-answer input, .ex-answer button, .ex-fold > summary, .ex-label, .ex-how, .ex-prompt, .ex-options, .ex-parts, .ex-result, .ex-ask, .ex-store-note {
    display: none !important;
  }
  section.ex {
    break-inside: avoid;
  }
}
@media print {
  details.ex-fold::details-content {
    content-visibility: visible;
    display: block;
  }
}
.ex-answer .ex-marks > button[aria-pressed=true]::before {
  content: "✓";
  margin-right: 8px;
  font-weight: 700;
  color: var(--accent);
}

section.ex p.ex-why, section.ex p.ex-source {
  max-width: 72ch;
  margin: 0;
  padding: 8px 0 0 12px;
  border-left: 3px solid var(--ok);
  font-size: 1em;
}

section.ex p.ex-source {
  padding-bottom: 4px;
}

section.ex p.ex-why > b, section.ex p.ex-source > b {
  font: 700 1em var(--display);
  color: var(--ink);
}

section.ex p.ex-source a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.th.lesson > .blk.quick-checks > section.ex + section.ex {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.quick-checks .ex-answer button {
  transition: none;
}

@media (min-width: 1040px) {
  .quick-checks .ex-options.short-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1440px) {
  .pg-lesson .lay.with-aside:has(.quick-checks) {
    grid-template-columns: 220px minmax(0, min(72ch, 100% - 636px));
  }
  .pg-lesson .quick-checks section.ex.ex-mounted {
    display: block;
  }
  .pg-lesson .quick-checks section.ex > .ex-answer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 48px;
    width: calc(100% + 368px);
  }
  .pg-lesson .quick-checks section.ex > .ex-answer > * {
    grid-column: 1;
    min-width: 0;
  }
  .pg-lesson .quick-checks section.ex > .ex-answer > .ex-record {
    grid-column: 2;
    grid-row: 1/span 8;
    align-self: start;
    margin-top: 0;
  }
}
@media print {
  .pg-lesson .quick-checks section.ex > .ex-answer {
    display: block;
    width: auto;
  }
}
.explorer[data-drill=on] {
  grid-column: 1/-1;
  padding: 20px 24px 18px;
}

.explorer[data-drill=on] > figure {
  display: none;
}

.drill {
  font: 16px/1.5 var(--ui);
  color: var(--ink);
}

.drill .drill-h {
  margin: 0 0 14px;
  font: 700 12px var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.drill .drill-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 18px;
}

.drill .drill-levels {
  display: inline-flex;
}

.drill .drill-levels button {
  min-height: 40px;
  margin: 0;
  padding: 7px 16px;
  font: 500 15px var(--ui);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 0;
  cursor: pointer;
}

.drill .drill-levels button + button {
  margin-left: -1px;
}

.drill .drill-levels button:first-child {
  border-radius: 8px 0 0 8px;
}

.drill .drill-levels button:last-child {
  border-radius: 0 8px 8px 0;
}

.drill .drill-levels button:hover {
  background: var(--accent-soft);
}

.drill .drill-levels button[aria-pressed=true] {
  color: var(--panel);
  background: var(--accent);
}

.drill .drill-levels button:focus-visible {
  position: relative;
  z-index: 1;
}

.drill .drill-count {
  margin: 0;
  font-size: 14px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.drill .drill-q {
  margin: 0 0 16px;
  font-size: 21px;
  line-height: 1.4;
}

.drill .drill-field label {
  display: block;
  margin: 0 0 6px;
  font: 500 14px var(--ui);
}

.drill .drill-field input {
  width: 23ch;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  font: 17px/1.4 var(--mono);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--dim);
  border-radius: 8px;
}

.drill .drill-field input:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.drill .drill-how {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--dim);
}

.drill .drill-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 16px 0 0;
}

.drill .drill-acts button {
  min-height: 40px;
  margin: 0;
  padding: 7px 16px;
  font: 500 15px var(--ui);
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
}

.drill .drill-acts button:hover {
  background: var(--accent-soft);
}

.drill .drill-acts button.primary {
  color: var(--panel);
  background: var(--accent);
}

.drill .drill-acts button.primary:hover {
  background: var(--accent);
  filter: brightness(1.1);
}

.drill .drill-acts button:disabled {
  color: var(--dim);
  background: transparent;
  border-color: var(--line);
  cursor: default;
  filter: none;
}

.drill .drill-say {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.drill .drill-say b {
  font-weight: 600;
}

.drill .drill-say[data-verdict=correct] {
  color: var(--ok);
}

.drill .drill-say[data-verdict=wrong] b {
  color: var(--warn);
}

.drill .drill-mark {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.drill .drill-mark circle {
  fill: currentColor;
}

.drill .drill-mark path {
  fill: none;
  stroke: var(--panel);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drill .drill-say[data-verdict=correct] .drill-mark {
  color: var(--ok);
}

.drill .drill-say[data-verdict=wrong] .drill-mark {
  color: var(--warn);
}

.drill .drill-hint {
  margin: 12px 0 0;
  padding: 6px 12px;
  background: var(--goldbg);
  border-radius: 8px;
}

.drill .drill-worked {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.drill .drill-worked > b {
  display: block;
  margin: 0 0 2px;
  color: var(--accent);
}

.drill .drill-worked p {
  margin: 4px 0;
}

@media (max-width: 720px) {
  .explorer[data-drill=on] {
    padding: 16px;
  }
  .drill .drill-q {
    font-size: 19px;
  }
}
@media print {
  .explorer[data-drill=on] > figure {
    display: block;
  }
  .drill {
    display: none;
  }
}
html.watching {
  --bar-h: 76px;
  scroll-padding-bottom: calc(var(--bar-h) + 16px);
}

html.watching body {
  padding-bottom: var(--bar-h);
}

.watch {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  font-family: var(--ui);
}

.w-list {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 88px);
  overflow: auto;
  box-sizing: border-box;
  padding: 4px 16px 4px 6px;
  border-right: 1px solid var(--line);
}

html.watching .w-list {
  max-height: calc(100vh - 88px - var(--bar-h));
}

.w-group + .w-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.w-unit {
  margin: 0 0 6px;
  padding-left: 10px;
  font: 700 12px var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.w-lessons {
  margin: 0;
  padding: 0;
  list-style: none;
}

.w-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px 6px 7px;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
}

.w-row:hover {
  color: var(--accent);
}

.w-row[aria-current=true] {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.w-n {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.w-d {
  color: var(--dim);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.w-main {
  min-width: 0;
}

.w-main h1 {
  margin: 0 0 18px;
}

.w-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

html:not([data-theme]) .w-panel {
  display: none;
}

.w-fig:empty, .w-line:empty {
  display: none;
}

.w-fig figure {
  margin: 0;
}

.w-fig .fig {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.w-fig svg {
  margin: 0 auto;
  max-height: min(46vh, 380px);
}

.w-fig figcaption {
  margin-top: 8px;
  font: 14px var(--ui);
  color: var(--dim);
  text-align: center;
}

.w-line {
  margin: 0;
  padding: 14px 20px;
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--ink);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.4;
}

.w-nojs {
  margin: 0;
  padding: 10px 14px;
  background: var(--goldbg);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

html[data-theme] .w-nojs {
  display: none;
}

.w-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  min-height: 76px;
  box-sizing: border-box;
  padding: 10px 24px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font: 14px/1.35 var(--ui);
}

.w-bar[hidden] {
  display: none;
}

.w-bar svg {
  display: block;
  flex: none;
}

.w-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  font: 500 14px var(--ui);
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
}

.w-bar button:hover {
  background: var(--accent-soft);
}

.w-keys {
  display: flex;
  align-items: center;
  gap: 10px;
}

.w-bar .w-step {
  padding: 6px 12px;
}

.w-bar .w-play {
  flex: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  color: var(--panel);
  background: var(--accent);
}

.w-bar .w-play:hover {
  background: var(--accent);
  filter: brightness(1.1);
}

.w-bar button:disabled {
  color: var(--dim);
  background: transparent;
  border-color: var(--line);
  cursor: default;
  filter: none;
}

.w-where {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 420px;
}

.w-pos {
  margin: 0 0 7px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.w-of {
  font-weight: 600;
}

.w-track {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--rulebg);
  overflow: hidden;
}

.w-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.w-status {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--dim);
}

.w-status:empty {
  margin: 0;
}

.w-speed {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 8px;
}

.w-speed label {
  font-weight: 600;
}

.w-speed select {
  min-height: 40px;
  padding: 6px 8px;
  font: 500 14px var(--ui);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--dim);
  border-radius: 8px;
  cursor: pointer;
}

.w-speed select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.w-speed small {
  grid-column: 2;
  font-size: 13px;
  color: var(--dim);
}

.w-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.w-voice {
  margin-left: auto;
  font-size: 13px;
  color: var(--dim);
}

@media (prefers-reduced-motion: no-preference) {
  .w-fill {
    transition: width 0.2s ease;
  }
  .w-row {
    transition: color 0.15s ease, background-color 0.15s ease;
  }
}
@media (max-width: 820px) {
  .watch {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .w-list, html.watching .w-list {
    position: static;
    max-height: 34vh;
    padding: 0 6px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .w-panel {
    padding: 14px;
  }
}
@media (max-width: 720px) {
  .w-bar {
    gap: 8px 12px;
    padding: 8px 16px 10px;
  }
  .w-keys {
    flex: 1 0 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .w-bar .w-step {
    min-width: 0;
    padding: 6px 10px;
    font-size: 13px;
  }
  .w-where {
    flex: 1 0 100%;
    max-width: none;
  }
  .w-voice {
    flex: 1 0 100%;
    margin: 0;
    text-align: center;
  }
}
@media print {
  .w-bar {
    display: none !important;
  }
  html.watching body {
    padding-bottom: 0;
  }
  .w-list, html.watching .w-list {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
.explorer[data-picker=on] {
  grid-column: 1/-1;
  padding: 20px 24px 18px;
}

.explorer[data-picker=on] > figure {
  display: none;
}

.qp {
  font: 16px/1.5 var(--ui);
  color: var(--ink);
}

.qp .qp-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 32px;
}

.qp .qp-ask {
  flex: 1 1 200px;
  min-width: 0;
}

.qp .qp-h {
  margin: 0 0 6px;
  font: 500 24px/1.25 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.qp .qp-how {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--dim);
}

.qp .qp-clues {
  margin: 0;
  padding: 0;
  list-style: none;
}

.qp .qp-clues li {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.4;
}

.qp .qp-plane {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 244px);
  aspect-ratio: 1;
}

.qp .qp-axes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.qp .qp-axis {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.qp .qp-arrow {
  fill: var(--ink);
}

.qp .qp-label {
  font: 18px var(--ui);
  fill: var(--dim);
}

.qp .qp-plane button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38%;
  height: 38%;
  margin: 0;
  padding: 0;
  font: 400 30px/1 var(--display);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--dim);
  border-radius: 6px;
  cursor: pointer;
}

.qp .qp-plane button[data-q="1"] {
  left: 53%;
  top: 9%;
}

.qp .qp-plane button[data-q="2"] {
  left: 9%;
  top: 9%;
}

.qp .qp-plane button[data-q="3"] {
  left: 9%;
  top: 53%;
}

.qp .qp-plane button[data-q="4"] {
  left: 53%;
  top: 53%;
}

.qp .qp-plane button:hover {
  background: var(--rulebg);
}

.qp .qp-plane button:disabled {
  color: var(--dim);
  background: transparent;
  cursor: default;
}

.qp .qp-plane button[data-state=right] {
  color: var(--ink);
  background: var(--okbg);
  border: 2px solid var(--ok);
}

.qp .qp-plane button[data-state=wrong] {
  color: var(--ink);
  background: var(--warnbg);
  border: 2px dashed var(--warn);
}

.qp .qp-say {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 24px;
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.qp .qp-say b {
  font-weight: 600;
}

.qp .qp-say[data-verdict=correct] {
  color: var(--ok);
}

.qp .qp-say[data-verdict=wrong] b {
  color: var(--warn);
}

.qp .qp-mark {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.qp .qp-mark circle {
  fill: currentColor;
}

.qp .qp-mark path {
  fill: none;
  stroke: var(--panel);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qp .qp-say[data-verdict=correct] .qp-mark {
  color: var(--ok);
}

.qp .qp-say[data-verdict=wrong] .qp-mark {
  color: var(--warn);
}

.qp .qp-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 14px 0 0;
}

.qp .qp-acts button {
  min-height: 40px;
  margin: 0;
  padding: 7px 16px;
  font: 500 15px var(--ui);
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
}

.qp .qp-acts button:hover {
  background: var(--accent-soft);
}

.qp .qp-acts button.primary {
  color: var(--panel);
  background: var(--accent);
}

.qp .qp-acts button.primary:hover {
  background: var(--accent);
  filter: brightness(1.1);
}

@media (max-width: 720px) {
  .explorer[data-picker=on] {
    padding: 16px;
  }
  .qp .qp-h {
    font-size: 22px;
  }
}
@media print {
  .explorer[data-picker=on] > figure {
    display: block;
  }
  .qp {
    display: none;
  }
}
.exam {
  max-width: 889px;
  margin: 0 auto;
  font-family: var(--ui);
}

.exam h2 {
  display: block;
  padding: 0;
  border: 0;
}

.exam-sub {
  margin: 0 0 22px;
  font-size: 18px;
  color: var(--dim);
}

.exam-date {
  margin: 0 0 16px;
  font-weight: 500;
}

.exam-short {
  margin: 0 0 22px;
  padding: 10px 14px;
  font-size: 15px;
  background: var(--rulebg);
  border-radius: 8px;
}

.exam-form {
  margin: 0;
}

.exam-how {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.exam-label {
  margin: 0 0 8px;
  padding: 0;
  font: 700 12px var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.exam-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.exam-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 18px;
  font-size: 17px;
  cursor: pointer;
}

.exam-choice + .exam-choice {
  border-top: 1px solid var(--line);
}

.exam-choice input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--accent);
}

.exam-choice input:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.exam-dim {
  color: var(--dim);
}

.exam-choice .exam-dim {
  margin-left: auto;
  font-size: 15px;
}

.exam-honest {
  margin: 14px 0 22px;
  font-size: 15px;
  color: var(--dim);
}

.exam-nojs {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: var(--goldbg);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

html[data-theme] .exam-nojs {
  display: none;
}

.exam-go, .exam-primary {
  min-height: 44px;
  margin: 0;
  padding: 9px 20px;
  font: 600 15px var(--ui);
  color: var(--panel);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
}

.exam-go:hover, .exam-primary:hover {
  filter: brightness(1.1);
}

.exam-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 9px 18px;
  font: 500 15px var(--ui);
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.exam-quiet:hover {
  background: var(--accent-soft);
}

.exam-skip {
  min-height: 44px;
  margin: 0;
  padding: 9px 4px;
  font: 500 15px var(--ui);
  color: var(--accent);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.exam-skip:hover {
  text-decoration-thickness: 2px;
}

.exam-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.exam-clock {
  margin: 0;
  font: 500 15px var(--ui);
  color: var(--dim);
}

.exam-time {
  font: 600 26px/1.2 var(--ui);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.exam-pos {
  margin: 0;
  font: 500 16px var(--ui);
  text-align: center;
}

.exam-strip .exam-quiet {
  justify-self: end;
}

.exam-dots {
  margin: 0 0 18px;
}

.exam-dots ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exam-dot {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  font: 500 14px/1 var(--ui);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--dim);
  border-radius: 50%;
  cursor: pointer;
}

.exam-dot:hover {
  border-color: var(--accent);
}

.exam-dot:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.exam-dot[data-state=answered] {
  color: var(--panel);
  background: var(--accent);
  border-color: var(--accent);
}

.exam-dot[aria-current=step] {
  width: 44px;
  height: 44px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  background: var(--panel);
  border: 2px solid var(--accent);
}

.exam-dot[aria-current=step][data-state=answered] {
  color: var(--panel);
  background: var(--accent);
}

.exam-skipdot {
  display: block;
  width: 5px;
  height: 5px;
  margin-top: 4px;
  background: currentColor;
  border-radius: 50%;
}

.exam-card {
  box-sizing: border-box;
  margin: 0 0 20px;
  padding: 24px 28px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.exam-unit {
  margin: 0 0 10px;
  font: 700 12px var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.exam-q {
  margin: 0 0 18px;
  font: 500 19px/1.5 var(--ui);
  color: var(--ink);
}

.exam-card label {
  display: block;
  margin: 0 0 6px;
  font: 500 14px var(--ui);
}

.exam-card input[name=answer] {
  box-sizing: border-box;
  min-width: 12em;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font: 17px var(--ui);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--dim);
  border-radius: 8px;
}

.exam-card input[name=answer]:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.exam-card input[name=answer]::placeholder {
  color: var(--dim);
  opacity: 1;
}

.exam-card input[readonly] {
  background: var(--rulebg);
  border-style: dashed;
}

.exam-howto {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--dim);
}

.exam-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 16px 0 0;
}

.exam-lock {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--dim);
}

.exam-say {
  margin: 8px 0 0;
  font-size: 15px;
}

.exam-say:empty {
  margin: 0;
}

.exam-locked {
  margin: 14px 0 0;
  font: 600 15px var(--ui);
  color: var(--ink);
}

.exam-gone {
  margin: 0 0 6px;
  color: var(--dim);
}

.exam-finish h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.exam-finish p {
  margin: 0 0 8px;
}

.exam-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.exam-finish .exam-quit {
  margin: 14px 0 0;
}

.exam-ran-out {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--goldbg);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

.exam-score {
  margin: 0 0 6px;
  font: 400 34px/1.2 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.exam-split {
  margin: 0 0 28px;
  font-size: 16px;
  color: var(--dim);
}

.exam-results section {
  margin: 0 0 28px;
}

.exam-lead {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--dim);
}

.exam-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.exam-rows > li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.exam-by .exam-rows > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 220px) 7.5em;
  align-items: center;
  gap: 16px;
}

.exam-name {
  min-width: 0;
}

.exam-bar {
  display: block;
  height: 6px;
  overflow: hidden;
  background: var(--accent-soft);
  border-radius: 3px;
}

.exam-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.exam-count {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.exam-item-n {
  margin: 0 0 4px;
  font: 500 13px var(--ui);
  color: var(--dim);
}

.exam-rows .exam-q {
  margin: 0 0 6px;
  font-size: 17px;
}

.exam-why, .exam-worked, .exam-yours, .exam-stale {
  margin: 0 0 6px;
  font-size: 15px;
}

.exam-worked b {
  font-weight: 600;
}

.exam-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
}

.exam-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font: 500 15px var(--ui);
}

.exam-review .exam-rows > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 24px;
}

.exam-review .exam-item-n, .exam-review .exam-q, .exam-review .exam-stale {
  grid-column: 1;
}

.exam-review .exam-links {
  grid-column: 2;
  grid-row: 1/3;
  justify-content: flex-end;
}

.exam-rows .exam-acts {
  margin: 8px 0 0;
}

.exam-end {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 8px 0 0;
}

.units + .practice-links {
  margin-top: 20px;
}

@media (max-width: 720px) {
  .exam-strip {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .exam-pos {
    text-align: right;
  }
  .exam-strip .exam-quiet {
    grid-column: 1/-1;
    justify-self: start;
  }
  .exam-card {
    padding: 18px 16px;
  }
  .exam-score {
    font-size: 28px;
  }
  .exam-by .exam-rows > li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }
  .exam-bar {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .exam-review .exam-rows > li {
    grid-template-columns: minmax(0, 1fr);
  }
  .exam-review .exam-links {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }
}
@media print {
  .exam-strip, .exam-dots, .exam-end, .exam-acts {
    display: none;
  }
}
#search:empty {
  display: none;
}

.pg-course {
  --m: 27px;
  --bh: 20px;
  --gutter: 0px;
  font-variant-numeric: tabular-nums;
}

.pg-course .lay {
  padding-top: 0;
}

html:has(> body.pg-course) {
  scroll-padding-top: 64px;
}

.pg-course h1, .pg-course h2, .pg-course h3 {
  text-wrap: balance;
}

.course-page h2 {
  padding-bottom: 0;
  border-bottom: 0;
}

.pg-course .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pg-course .top {
  height: calc(48px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(8px, env(safe-area-inset-right));
}

.pg-course .top-tools {
  margin-left: auto;
}

.pg-course .crumbs {
  display: none;
}

.top-tools .search-key {
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
}

.top-tools .search-key .ico {
  display: block;
}

.top-tools .search-key .lbl {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.top-tools .search-key:hover {
  color: var(--accent);
}

.where {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: calc(15px * var(--text-scale, 1));
}

.where a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 44px;
}

.where .count {
  flex: none;
  color: var(--ink);
  white-space: nowrap;
}

@media (min-width: 1040px) {
  .where, .top-tools .search-key {
    display: none;
  }
  .pg-course .crumbs {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .pg-course .top {
    height: 56px;
    padding: 0 24px;
  }
}
.course-page {
  padding-top: 20px;
}

.course-head {
  margin: 0 0 8px;
}

.course-head h1 {
  font-size: calc(34px * var(--text-scale, 1));
  line-height: 1.1;
  margin: 0 0 10px;
  font-weight: 600;
}

@media (max-width: 359px) {
  .course-head h1 {
    font-size: calc(26px * var(--text-scale, 1));
  }
}
.course-summary {
  font: 400 calc(18px * var(--text-scale, 1))/1.45 var(--display);
  color: var(--ink);
  margin: 0 0 8px;
}

.course-facts, .course-needs, .course-lesson-line, .course-builds-on {
  font: 400 calc(15px * var(--text-scale, 1))/1.5 var(--ui);
  color: var(--dim);
  margin: 0 0 8px;
}

.course-facts > span {
  display: inline-block;
}

.course-needs a, .course-builds-on a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.course-safety {
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.course-safety .safety-label {
  margin: 0 0 4px;
  font: 600 calc(13px * var(--text-scale, 1)) var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.course-safety .safety-note {
  margin: 0;
  font: 400 calc(15px * var(--text-scale, 1))/1.5 var(--ui);
  color: var(--ink);
}

.course-key {
  margin: 14px 0 12px;
}

.course-key .start-key {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg);
  font: 600 calc(18px * var(--text-scale, 1))/1.25 var(--ui);
  text-align: center;
  text-decoration: none;
}

.course-key .start-key:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--ink));
}

.course-key .key-place {
  margin: 10px 0 0;
  font: 600 calc(15px * var(--text-scale, 1))/1.4 var(--ui);
  color: var(--dim);
}

.course-key .key-title {
  margin: 2px 0 0;
  min-height: 2.8em;
  font: 400 calc(17px * var(--text-scale, 1))/1.4 var(--display);
  color: var(--ink);
}

.course-key.empty .key-empty {
  margin: 0 0 6px;
  font: 400 calc(16px * var(--text-scale, 1))/1.5 var(--display);
  color: var(--ink);
}

.course-key.empty .key-sample {
  margin: 0;
}

.course-key.empty .key-sample a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  color: var(--accent);
  text-decoration: none;
}

.course-key.empty .key-sample a:hover {
  text-decoration: underline;
}

@media (max-width: 599px) {
  .course-needs a, .course-builds-on a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }
}
.path {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.path h2 {
  font-size: calc(34px * var(--text-scale, 1));
  margin: 0 0 4px;
  font-weight: 600;
}

.path h2:focus {
  outline: none;
}

.path h2:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.path-intro {
  margin: 0 0 12px;
  font: 400 calc(15px * var(--text-scale, 1))/1.5 var(--ui);
  color: var(--dim);
}

ol.units {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

ol.units > li {
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

.bench {
  position: relative;
  padding: 14px 0 10px calc(var(--gutter) + 50px);
  min-height: 44px;
}

.bench::before {
  content: "";
  position: absolute;
  left: calc(var(--gutter) + 36px);
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--line);
}

.bench .num {
  position: absolute;
  left: var(--gutter);
  top: 14px;
  width: 30px;
  font: 600 calc(26px * var(--text-scale, 1))/1 var(--display);
  color: var(--accent);
}

.unit-link {
  display: block;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}

.unit-link h3 {
  margin: 0 0 4px;
  font: 600 calc(20px * var(--text-scale, 1))/1.25 var(--display);
}

.unit-link .sentence {
  display: block;
  font: 400 calc(16px * var(--text-scale, 1))/1.45 var(--display);
  color: var(--dim);
}

.unit-link:hover h3 {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.unit-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.bench.unwritten h3 {
  margin: 0;
  font: 600 calc(20px * var(--text-scale, 1))/1.25 var(--display);
  color: var(--dim);
}

.bench.unwritten .state {
  font: 400 calc(15px * var(--text-scale, 1)) var(--ui);
  color: var(--dim);
  white-space: nowrap;
}

.builds {
  margin: 6px 0 0;
  font: 400 calc(15px * var(--text-scale, 1))/1.5 var(--ui);
  color: var(--dim);
}

.builds a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 599px) {
  .builds a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }
}
details.lessons {
  margin: 8px 0 0;
  max-width: none;
  counter-reset: none;
}

details.lessons li {
  display: block;
  padding: 0;
  border: 0;
  counter-increment: none;
}

details.lessons li:last-child {
  border-bottom: 0;
}

details.lessons li::before {
  content: none;
}

details.lessons li a:hover {
  text-decoration: none;
}

details.lessons > summary {
  display: grid;
  grid-template-columns: auto 24px minmax(0, 1fr);
  grid-template-areas: "blocks tri ." "words words words";
  align-items: center;
  column-gap: 0;
  min-height: 56px;
  box-sizing: border-box;
  padding: 6px 0;
  list-style: none;
  cursor: pointer;
  container-type: inline-size;
}

details.lessons > summary::-webkit-details-marker {
  display: none;
}

details.lessons > summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.lessons .courses {
  grid-area: blocks;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lessons .course {
  display: flex;
  align-items: flex-end;
  height: calc(var(--bh) + 6px);
}

.lessons .tri {
  grid-area: tri;
  justify-self: center;
  width: 0;
  height: 0;
  border-left: 9px solid var(--accent);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

details.lessons[open] > summary .tri {
  transform: rotate(90deg);
}

.lessons .words {
  grid-area: words;
  min-height: 2.8em;
  margin-top: 4px;
  font: 400 calc(15px * var(--text-scale, 1))/1.4 var(--ui);
  color: var(--dim);
}

.block {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: var(--m);
  height: var(--bh);
  border: 1px solid var(--dim);
  border-radius: 2px;
}

.block + .block {
  margin-left: -1px;
}

.block.s1 {
  width: calc(var(--m) * 1.12);
}

.block.s2 {
  width: calc(var(--m) * 0.88);
}

.block.s3 {
  width: calc(var(--m) * 1.06);
}

.block.s4 {
  width: calc(var(--m) * 0.94);
}

.block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
}

.block.marked {
  border-color: var(--accent);
}

.block.marked::after {
  opacity: 1;
}

.block.here {
  height: calc(var(--bh) + 6px);
  border: 2px solid var(--accent);
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .block::after {
    transition: opacity 150ms ease;
  }
  .unit-link h3, .tool-name, .next-title, .course-key .start-key {
    transition: color 150ms ease, background-color 150ms ease;
  }
}
.lesson-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 4px 0 -10px -50px;
  padding: 0 0 16px;
  background: var(--bg);
}

.lesson-list a {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.lesson-list .n {
  flex: none;
  min-width: 26px;
  font: 400 calc(15px * var(--text-scale, 1)) var(--ui);
  color: var(--dim);
}

.lesson-list .t {
  flex: 1 1 12em;
  min-width: 0;
  font: 400 calc(17px * var(--text-scale, 1))/1.35 var(--display);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lesson-list a:hover .t {
  text-decoration-thickness: 2px;
}

.lesson-list .mark {
  flex: none;
  margin-left: auto;
  font: 400 calc(14px * var(--text-scale, 1)) var(--ui);
  color: var(--dim);
}

.lesson-list .mark:empty {
  display: none;
}

.lesson-list .tick-glyph {
  color: var(--accent);
  margin-right: 4px;
}

.lesson-list a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@container (max-width: 400px) {
  .lessons .block {
    --m: min(27px, calc((100cqw - 24px) / 12));
  }
}
.tie {
  display: none;
}

@media (min-width: 600px) {
  .pg-course {
    --gutter: 14px;
  }
  .tie {
    display: block;
    position: absolute;
    z-index: 2;
    left: 5px;
    width: 0;
    border-left: 1px solid var(--dim);
  }
  .tie-start > .tie {
    top: 27px;
    bottom: 0;
  }
  .tie-through > .tie, .tie-at > .tie {
    top: 0;
    bottom: 0;
  }
  .tie-end > .tie {
    top: 0;
    height: 27px;
  }
  .tie-start > .tie::before, .tie-at > .tie::before, .tie-end > .tie::after {
    content: "";
    position: absolute;
    left: -4px;
    width: 8px;
    border-top: 1px solid var(--dim);
  }
  .tie-start > .tie::before {
    top: 0;
  }
  .tie-at > .tie::before {
    top: 27px;
  }
  .tie-end > .tie::after {
    bottom: 0;
  }
}
.course-next {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.course-next h2 {
  margin: 0 0 4px;
  font: 600 calc(13px * var(--text-scale, 1)) var(--ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.course-next ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-next a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  min-height: 56px;
  box-sizing: border-box;
  padding: 6px 0;
  color: var(--accent);
  text-decoration: none;
}

.course-next .next-title {
  grid-column: 1;
  font: 600 calc(20px * var(--text-scale, 1))/1.25 var(--display);
}

.course-next .next-counts {
  grid-column: 1;
  font: 400 calc(15px * var(--text-scale, 1))/1.4 var(--ui);
  color: var(--dim);
}

.course-next .arrow {
  grid-column: 2;
  grid-row: 1/span 2;
  align-self: center;
  font: 400 calc(20px * var(--text-scale, 1)) var(--ui);
}

.course-next a:hover .next-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.course-next a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.study-tools {
  margin: 24px 0 0;
}

.study-tools h2 {
  margin: 0 0 6px;
  font-size: calc(26px * var(--text-scale, 1));
  font-weight: 600;
}

.study-tools ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.study-tools li {
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

.study-tools a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  min-height: 56px;
  box-sizing: border-box;
  padding: 8px 0;
  text-decoration: none;
}

.study-tools .tool-name {
  grid-column: 1;
  font: 600 calc(18px * var(--text-scale, 1))/1.3 var(--display);
  color: var(--accent);
}

.study-tools .tool-line {
  grid-column: 1;
  font: 400 calc(14px * var(--text-scale, 1))/1.4 var(--ui);
  color: var(--dim);
}

.study-tools .arrow {
  grid-column: 2;
  grid-row: 1/span 2;
  align-self: center;
  color: var(--accent);
}

.study-tools a:hover .tool-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.study-tools a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.device-line {
  margin: 18px 0 0;
  font: 400 calc(15px * var(--text-scale, 1))/1.5 var(--ui);
  color: var(--dim);
}

.device-line a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 599px) {
  .device-line a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }
}
.pg-course .foot {
  display: block;
}

@media (max-width: 820px) {
  .pg-course .foot {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.pg-course .foot p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  margin: 0;
}

.pg-course .foot .foot-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pg-course .foot a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

.course-search {
  display: none;
}

.course-search .search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.course-search .search-label {
  margin: 0;
  font: 700 calc(12px * var(--text-scale, 1)) var(--ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.course-search .search-close {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 calc(15px * var(--text-scale, 1)) var(--ui);
  cursor: pointer;
}

.course-search .search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.course-search input[type=search] {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 64px 0 12px;
  border: 1px solid var(--dim);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: 400 calc(17px * var(--text-scale, 1)) var(--ui);
  appearance: none;
}

.course-search input[type=search]::-webkit-search-cancel-button {
  display: none;
}

.course-search input[type=search]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.course-search .search-clear {
  position: absolute;
  right: 2px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--dim);
  font: 500 calc(15px * var(--text-scale, 1)) var(--ui);
  cursor: pointer;
}

.course-search .search-clear:hover {
  color: var(--accent);
}

.course-search .search-line {
  margin: 8px 0 0;
  font: 400 calc(15px * var(--text-scale, 1))/1.45 var(--ui);
  color: var(--ink);
}

.course-search .search-line:empty {
  display: none;
}

.course-search .search-results {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.course-search .search-results a {
  display: block;
  min-height: 56px;
  box-sizing: border-box;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.course-search .r-title {
  font: 500 calc(17px * var(--text-scale, 1))/1.4 var(--ui);
  color: var(--accent);
}

.course-search a:hover .r-title {
  text-decoration: underline;
}

.course-search .r-unit {
  font: 400 calc(15px * var(--text-scale, 1)) var(--ui);
  color: var(--dim);
}

.course-search .r-line {
  display: block;
  margin-top: 2px;
  font: 400 calc(15px * var(--text-scale, 1))/1.5 var(--ui);
  color: var(--dim);
  overflow-wrap: anywhere;
}

.course-search mark {
  padding: 0 2px;
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-soft);
  border-radius: 2px;
}

.course-search .back-units {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  color: var(--accent);
  text-decoration: underline;
}

.course-search .search-more {
  min-height: 44px;
  margin: 8px 0 0;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font: 500 calc(15px * var(--text-scale, 1)) var(--ui);
  cursor: pointer;
}

.course-search .search-more-line {
  margin: 6px 0 0;
  font: 400 calc(14px * var(--text-scale, 1)) var(--ui);
  color: var(--dim);
}

.course-search .search-more-line:empty {
  display: none;
}

.course-search [hidden] {
  display: none !important;
}

.search-dim {
  position: fixed;
  inset: calc(48px + env(safe-area-inset-top)) 0 0 0;
  z-index: 14;
  background: rgba(0, 0, 0, 0.4);
}

html.search-open {
  overflow: hidden;
}

@media (max-width: 1039.98px) {
  .course-search.open {
    display: block;
    position: fixed;
    z-index: 15;
    top: calc(48px + env(safe-area-inset-top));
    left: 0;
    right: 0;
    box-sizing: border-box;
    max-height: calc(100dvh - 48px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: var(--panel);
    border-bottom: 1px solid var(--line);
  }
  .search-panel {
    display: block;
  }
}
@media (min-width: 600px) and (max-width: 1039.98px) {
  .course-search.open {
    left: auto;
    width: 640px;
    max-width: 100%;
    border-left: 1px solid var(--line);
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 1039.98px) {
  .course-search.open {
    animation: sheet-in 150ms ease-out;
  }
  @keyframes sheet-in {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (min-width: 600px) {
  .course-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 33.33%);
    column-gap: 28px;
    align-items: start;
  }
  .head-main {
    grid-column: 1;
    grid-row: 1/span 2;
  }
  .course-key {
    grid-column: 2;
    grid-row: 1;
    margin-top: 4px;
  }
  .head-side {
    grid-column: 2;
    grid-row: 2;
  }
  .course-head h1 {
    font-size: calc(40px * var(--text-scale, 1));
  }
  .pg-course {
    --m: 21px;
    --bh: 24px;
  }
  .bench {
    display: flow-root;
  }
  .bench > .unit-link, .bench > .builds {
    float: left;
    clear: left;
    width: calc(100% - 280px);
  }
  details.lessons {
    margin: 0;
  }
  details.lessons > summary {
    margin-left: auto;
    width: 260px;
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-areas: "blocks blocks" "tri words";
    container-type: normal;
  }
  .lesson-list {
    clear: both;
  }
  .lessons .tri {
    justify-self: start;
  }
  .lessons .words {
    margin-top: 6px;
  }
  .lesson-list {
    margin-top: 8px;
    columns: 2;
    column-gap: 28px;
  }
  .lesson-list li {
    break-inside: avoid;
  }
  .lesson-list a {
    min-height: 40px;
    padding: 8px 0;
  }
  .study-tools ul {
    columns: 2;
    column-gap: 28px;
    border-top: 0;
  }
  .study-tools li {
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }
  .course-next a {
    min-height: 44px;
  }
}
@media (min-width: 1040px) {
  .pg-course .lay {
    max-width: 1180px;
    padding: 0 24px 56px;
  }
  .course-page {
    display: grid;
    grid-template-columns: minmax(260px, 280px) minmax(0, 700px);
    column-gap: 40px;
    align-items: start;
    grid-template-rows: auto auto auto auto 1fr;
    min-height: 46rem;
    padding-top: 24px;
  }
  .course-head {
    display: contents;
  }
  .head-main {
    grid-column: 2;
    grid-row: 1;
  }
  .head-side {
    grid-column: 2;
    grid-row: 2;
  }
  .path {
    grid-column: 2;
    grid-row: 3;
  }
  .course-next {
    grid-column: 2;
    grid-row: 4;
  }
  .course-key {
    grid-column: 1;
    grid-row: 1/-1;
    align-self: start;
    position: sticky;
    top: 72px;
    margin: 0;
    z-index: 3;
  }
  .course-end {
    grid-column: 1;
    grid-row: 1/-1;
    align-self: end;
  }
  .course-head h1 {
    font-size: calc(44px * var(--text-scale, 1));
  }
  .course-summary {
    font-size: calc(20px * var(--text-scale, 1));
    max-width: 62ch;
  }
  .pg-course {
    --m: 23px;
    --bh: 24px;
  }
  .bench > .unit-link, .bench > .builds {
    width: calc(100% - 300px);
  }
  details.lessons > summary {
    width: 280px;
  }
  .course-search {
    display: block;
    position: relative;
    margin-top: 20px;
  }
  .course-search .search-close {
    display: none;
  }
  .course-search .search-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    z-index: 10;
    width: 560px;
    overflow-y: auto;
    box-sizing: border-box;
    max-height: max(220px, min(70vh, 100vh - 272px - 108px * var(--text-scale, 1)));
    padding: 4px 16px 12px;
    background: var(--panel);
    border: 1px solid var(--dim);
    border-radius: 8px;
  }
  .course-search .search-results a {
    min-height: 44px;
  }
  .study-tools {
    margin: 0;
  }
  .study-tools h2 {
    font: 700 calc(12px * var(--text-scale, 1)) var(--ui);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 4px;
  }
  .study-tools ul {
    columns: auto;
    border-top: 1px solid var(--line);
  }
  .study-tools li {
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }
  .study-tools a {
    min-height: 44px;
    padding: 6px 0;
  }
  .study-tools .tool-name {
    font-size: calc(16px * var(--text-scale, 1));
  }
  .study-tools .tool-line {
    font-size: calc(13px * var(--text-scale, 1));
  }
  .device-line {
    font-size: calc(14px * var(--text-scale, 1));
    margin-top: 12px;
  }
  .pg-course .foot {
    max-width: 1180px;
    padding: 0 24px;
    border-top: 0;
  }
  .pg-course .foot p {
    max-width: 1020px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
  }
}
@media (min-width: 1040px) and (min-height: 900px) {
  html:not([data-text-size="2"]):not([data-text-size="3"]) .course-end {
    position: sticky;
    bottom: 16px;
  }
}
@media (min-width: 1440px) {
  .pg-course .lay {
    max-width: 1440px;
  }
  .course-page.split {
    grid-template-columns: 280px minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 40px;
  }
  .split .head-main {
    grid-column: 2;
    grid-row: 1;
  }
  .split .head-side {
    grid-column: 3;
    grid-row: 1;
    padding-top: 14px;
  }
  .split .path {
    grid-column: 2/4;
    grid-row: 2/span 2;
  }
  .split .course-next {
    grid-column: 3;
    grid-row: 4;
  }
  .split ol.units {
    columns: 2;
    column-gap: 40px;
    border-top: 0;
  }
  .split ol.units > li {
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }
  .split ol.units > li.col-two {
    break-before: column;
    -webkit-column-break-before: always;
  }
  .split .bench > .unit-link, .split .bench > .builds {
    float: none;
    width: auto;
  }
  .split details.lessons > summary {
    margin-left: 0;
    width: auto;
    grid-template-columns: auto 24px minmax(0, 1fr);
    grid-template-areas: "blocks tri ." "words words words";
  }
  .split .lesson-list {
    margin-top: 4px;
    columns: auto;
  }
  .split {
    --m: 27px;
    --bh: 20px;
  }
  .course-page:not(.split) {
    grid-template-columns: 280px minmax(0, 720px);
  }
  .pg-course .foot {
    max-width: 1440px;
  }
  .pg-course .foot p {
    max-width: 1040px;
  }
  .pg-course:has(.course-page.split) .foot p {
    max-width: none;
  }
}
@media (forced-colors: active) {
  .block, .course-key .start-key {
    outline: 1px solid ButtonText;
  }
  .block.marked::after {
    background: Highlight;
  }
}
@media print {
  .course-key, .course-search, .search-dim, .course-end .device-line {
    display: none !important;
  }
}
.sheet {
  margin: 0 auto;
}

.cheat-sheet {
  max-width: 960px;
}

.study-sheet {
  max-width: 72ch;
}

.sheet h2 {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  border: 0;
}

.cheat-sheet h2 {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.sheet-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sheet-items > li {
  border-bottom: 1px solid var(--line);
}

.sheet summary {
  display: flex;
  align-items: baseline;
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
}

.sheet summary::-webkit-details-marker {
  display: none;
}

.sheet summary:hover {
  color: var(--accent);
}

.sheet-tri {
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  fill: currentColor;
}

.sheet details[open] .sheet-tri {
  color: var(--accent);
  transform: rotate(90deg);
}

.sheet-line {
  min-width: 0;
}

.sheet-lone {
  margin: 0;
  padding: 8px 0 8px 18px;
}

.sheet-more {
  display: none;
  padding: 0 0 12px 18px;
  font-size: 15.5px;
  color: var(--dim);
}

.sheet-more p {
  margin: 0 0 8px;
}

.sheet-more p:last-child {
  margin-bottom: 0;
}

.sheet .f {
  margin-right: 0;
}

.sheet-none {
  color: var(--dim);
}

.cheat-sheet .sheet-units {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cheat-sheet .sheet-unit {
  padding: 22px 28px 26px 0;
  border-top: 1px solid var(--line);
}

.cheat-sheet .sheet-unit:nth-child(even) {
  padding: 22px 0 26px 28px;
  border-left: 1px solid var(--line);
}

.sheet-lede {
  margin: 0 0 4px;
  padding: 0 0 18px;
  font-size: 17px;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}

.study-sheet .sheet-unit {
  padding: 22px 0 10px;
}

.study-sheet .sheet-unit + .sheet-unit {
  border-top: 1px solid var(--line);
}

.sheet-group {
  margin: 16px 0 2px;
  font: 700 11px var(--ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.crumbs [aria-current=page] {
  color: var(--ink);
}

.crumbs a + [aria-current=page]::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}

@media screen {
  .sheet details[open] + .sheet-more {
    display: block;
  }
}
@media (max-width: 720px) {
  .cheat-sheet .sheet-units {
    grid-template-columns: minmax(0, 1fr);
  }
  .cheat-sheet .sheet-unit, .cheat-sheet .sheet-unit:nth-child(even) {
    padding: 18px 0 20px;
    border-left: 0;
  }
}
@media print {
  :root:has(.sheet) {
    --bg: #fff;
    --panel: #fff;
    --ink: #1a1a1a;
    --dim: #595959;
    --line: #DDD4C4;
    --accent: #176F40;
    --accent-soft: #E6F4EC;
  }
  :root:has(.sheet) .lay {
    padding: 0;
  }
  :root:has(.sheet) main {
    padding-top: 8pt;
  }
  :root:has(.sheet) [data-theme-switch], :root:has(.sheet) .sn-looks, .sheet-tri {
    display: none;
  }
  .sheet summary, .sheet-lone {
    padding: 2pt 0;
  }
  .study-sheet .sheet-more {
    display: block;
    padding: 0 0 6pt 12pt;
  }
  .study-sheet .sheet-items > li, .study-sheet h2, .sheet-group {
    break-inside: avoid;
  }
  .study-sheet h2, .sheet-group {
    break-after: avoid;
  }
  :root:has(.cheat-sheet) .foot {
    display: none;
  }
  .cheat-sheet {
    max-width: none;
    font-size: 9pt;
    line-height: 1.3;
  }
  .cheat-sheet h1 {
    margin: 0 0 8pt;
    font-size: 16pt;
  }
  .cheat-sheet .sheet-units {
    display: block;
    column-count: 2;
    column-gap: 18pt;
    column-rule: 1px solid var(--line);
  }
  .cheat-sheet .sheet-unit, .cheat-sheet .sheet-unit:nth-child(even) {
    padding: 0 0 8pt;
    border: 0;
    break-inside: avoid;
  }
  .cheat-sheet h2 {
    margin: 0 0 2pt;
    padding-bottom: 2pt;
    font-size: 11pt;
  }
}
.top {
  flex-wrap: nowrap;
  box-sizing: border-box;
  min-height: 48px;
}

.top .brand {
  flex: none;
  min-height: 44px;
}

.top-tools {
  flex: none;
  flex-wrap: nowrap;
  gap: 4px;
}

.top-tools button {
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.top-tools .theme {
  margin-left: 0;
}

.top-tools .ico {
  display: none;
  font: 600 19px/1 var(--display);
}

.top-tools svg.ico {
  width: 22px;
  height: 22px;
}

.top-tools .help-btn {
  display: none;
}

@media (min-width: 768px) {
  .top-tools .help-btn {
    display: inline-flex;
  }
}
@media (max-width: 599px) {
  .top {
    padding: 0 8px 0 12px;
    gap: 6px;
  }
  .top .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .top-tools .ico {
    display: block;
  }
  .top-tools .lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .top-tools .theme, .top-tools .reading {
    border-color: transparent;
    padding: 0;
    border-radius: 10px;
  }
}
@media (min-width: 600px) {
  .top-tools {
    gap: 8px;
  }
}
.toc-opener {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 600 17px/1.2 var(--display);
  text-align: left;
  cursor: pointer;
}

.toc-opener .name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc-opener .chev {
  flex: none;
  width: 9px;
  height: 9px;
  margin: -5px 4px 0 2px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.toc-opener:hover {
  color: var(--accent);
}

.pg-lesson .crumbs {
  display: none;
}

@media (min-width: 1040px) {
  .toc-opener {
    display: none;
  }
  .pg-lesson .crumbs {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .pg-lesson .top-tools {
    margin-left: auto;
  }
}
.pg-lesson .lay.with-aside {
  display: block;
}

.pg-lesson aside.contents {
  display: none;
}

.toc-fold {
  margin: 0 0 6px;
  border-bottom: 1px solid var(--line);
}

.toc-fold summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font: 600 17px var(--display);
  cursor: pointer;
}

.js .toc-fold {
  display: none;
}

@media (min-width: 1040px) {
  .pg-lesson .lay.with-aside {
    display: grid;
    grid-template-columns: 220px minmax(0, 72ch);
    gap: 48px;
    align-items: start;
  }
  .pg-lesson aside.contents {
    display: block;
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 96px);
    overflow: auto;
    font-size: 14px;
  }
  .toc-fold {
    display: none;
  }
}
@media (min-width: 1440px) {
  .pg-lesson .lay {
    max-width: 1380px;
  }
}
.toc-title {
  margin: 0 0 8px;
  font: 600 16px var(--display);
}

.toc-list, .toc-ways {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-list {
  border-left: 1px solid var(--line);
}

.toc-list li a, .toc-ways li a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 12px 4px 26px;
  margin-left: -1px;
  border-left: 3px solid transparent;
  color: var(--dim);
  text-decoration: none;
}

.toc-list li.lm a {
  padding-left: 10px;
  color: var(--ink);
  font-weight: 600;
}

.toc-list li.lm .n {
  flex: none;
  min-width: 1.1em;
  font: 500 16px var(--display);
  color: var(--accent);
}

.toc-list li.rung {
  display: none;
}

.toc-list li.rung a {
  padding-left: 40px;
}

@media (min-width: 1440px) {
  aside.contents .toc-list li.rung {
    display: block;
  }
}
.toc-list li a:hover, .toc-ways li a:hover {
  color: var(--accent);
  border-left-color: transparent;
}

.toc-list li a[aria-current] {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

.toc-list li a.reading {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.toc-list li a.reading:not([aria-current]) {
  border-left-color: transparent;
}

.toc-ways {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.toc-ways li a {
  padding-left: 10px;
}

dialog.toc-sheet {
  box-sizing: border-box;
  margin: 0;
  padding: 0 0 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: 16px/1.3 var(--ui);
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: none;
  max-height: 70vh;
  border-radius: 14px 14px 0 0;
  overflow: auto;
}

dialog.toc-sheet::backdrop {
  background: rgba(0, 0, 0, 0.42);
}

dialog.toc-sheet .toc-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 6px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

dialog.toc-sheet .toc-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font: 600 18px var(--display);
}

dialog.toc-sheet .toc-close {
  min-height: 44px;
  min-width: 64px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 14px var(--ui);
  cursor: pointer;
}

dialog.toc-sheet .toc-list {
  margin: 6px 0 0 16px;
}

dialog.toc-sheet .toc-list li a, dialog.toc-sheet .toc-ways li a {
  min-height: 44px;
}

dialog.toc-sheet .toc-ways {
  margin: 10px 16px 0;
}

@media (min-width: 600px) {
  dialog.toc-sheet {
    inset: 0 auto 0 0;
    width: 320px;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border-top: 0;
    border-right: 1px solid var(--line);
  }
}
.lesson-head {
  margin: 0 0 4px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.lesson-head .where {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin: 0 0 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font: 16px/1.3 var(--ui);
}

.lesson-head .where a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  text-decoration: none;
}

.lesson-head .where a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.lesson-head .where-course {
  display: none;
  flex: 0 1 auto;
  color: var(--dim);
}

.lesson-head .where-n {
  flex: none;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 430px) {
  .lesson-head .where-course {
    display: block;
  }
  .lesson-head .where-course::after {
    content: " /";
    color: var(--line);
  }
}
@media (min-width: 1040px) {
  .lesson-head .where a {
    display: none;
  }
  .lesson-head .where-n {
    margin-left: 0;
    color: var(--dim);
  }
}
.lesson-head h1 {
  margin: 0 0 8px;
  font: 600 clamp(34px, 9.4vw, 46px)/1.07 var(--display);
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.lesson-head .head-keys {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
  min-height: 56px;
  margin: 8px -6px 0;
  padding: 4px 6px;
  white-space: nowrap;
  overflow-x: auto;
}

.lesson-head .head-keys:empty {
  display: none;
}

@media (max-width: 359px) {
  .lesson-head .head-keys:has(.to-practice) {
    gap: 12px;
  }
}
.lesson-head .to-ladder, .lesson-head .to-practice {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 600 17px var(--display);
  color: var(--accent);
  text-underline-offset: 4px;
}

@property --row-more {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@keyframes row-more {
  from {
    --row-more: 40px;
  }
  to {
    --row-more: 0px;
  }
}
@supports (animation-timeline: scroll()) {
  .lesson-head .head-keys, .mv-choice, .clip-row, .clip-stop, .unit-page.practice .unit-keys .practice-links {
    animation: row-more linear both;
    animation-timeline: scroll(self inline);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--row-more)), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - var(--row-more)), transparent);
  }
}
.listen {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font: 600 17px var(--display);
  cursor: pointer;
}

.listen svg {
  display: block;
}

.listen[aria-busy=true] {
  opacity: 0.75;
  cursor: progress;
}

.lesson-head .listen-line {
  min-height: 1.45em;
  margin: 0;
  font: 14px/1.45 var(--ui);
  color: var(--dim);
}

.lesson-head .listen-line button {
  min-height: 44px;
  margin: 4px 8px 0 0;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: 500 14px var(--ui);
  cursor: pointer;
}

.lesson-page .th.lesson {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font: calc(18px * var(--text-scale, 1))/1.6 var(--ui);
}

.th.lesson > .blk {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  scroll-margin-top: 76px;
  scroll-margin-bottom: calc(var(--bar-h, 0px) + 16px);
}

@media (min-width: 360px) and (max-width: 1039.98px) {
  .th.lesson > .blk.ladder {
    padding-left: 26px;
  }
}
.th.lesson > .blk.lm {
  margin-top: 40px;
}

.th.lesson > .blk.lm:first-child {
  margin-top: 26px;
}

:where(.th).lesson p {
  margin: 0 0 12px;
}

:where(.th).lesson ul, :where(.th).lesson ol {
  margin: 0 0 12px;
  padding-left: 24px;
}

:where(.th).lesson li {
  margin: 5px 0;
}

.th.lesson .blk > h2 {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  font: 600 calc(clamp(24px, 6.6vw, 30px) * var(--text-scale, 1))/1.15 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.th.lesson .blk > h2 .n {
  flex: none;
  min-width: 0.8em;
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
  font: 500 1.25em/1.1 var(--display);
  color: var(--accent);
}

.th.lesson .blk > h3 {
  display: flex;
  align-items: center;
  margin: 30px 0 8px;
  padding: 0;
  border: 0;
  font: 600 calc(21px * var(--text-scale, 1))/1.25 var(--display);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.th.lesson .blk > h3::after {
  content: none;
}

@media not print {
  .js .lesson-page .th.lesson > section[id] > h2, .js .lesson-page .th.lesson > section[id] > h3 {
    padding-right: 44px;
  }
  .js .lesson-page .th.lesson > section[id]:not(.remind) > h2, .js .lesson-page .th.lesson > section[id]:not(.remind) > h3 {
    min-height: 32px;
  }
  .js .lesson-page .th.lesson > section[id] > h2 > .listen-here, .js .lesson-page .th.lesson > section[id] > h3 > .listen-here {
    margin-right: -44px;
  }
}
.th.lesson .blk h4:not(.ex-title) {
  margin: 20px 0 6px;
  padding: 0;
  font: 600 calc(17px * var(--text-scale, 1))/1.3 var(--ui);
  color: var(--ink);
}

.th.lesson .blk-say {
  margin: -2px 0 10px;
  font: 14px/1.4 var(--ui);
  color: var(--dim);
}

.th.lesson .plain {
  font-size: 1em;
}

.th.lesson .tbl {
  max-width: 100%;
  overflow-x: auto;
}

details.eli5 {
  margin: 14px 0 0;
  border: solid var(--line);
  border-width: 1px 0;
}

details.eli5 > summary, .remind-fold > summary {
  list-style: none;
  cursor: pointer;
}

details.eli5 > summary::-webkit-details-marker, .remind-fold > summary::-webkit-details-marker {
  display: none;
}

details.eli5 > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  font: 600 1em var(--display);
}

details.eli5 > summary::after {
  content: "+";
  flex: none;
  width: 28px;
  text-align: center;
  font: 300 30px/1 var(--ui);
  color: var(--accent);
}

details.eli5[open] > summary::after {
  content: "−";
}

details.eli5 > p:last-child {
  margin-bottom: 14px;
}

.remind-fold > summary {
  display: block;
  min-height: 44px;
  box-sizing: border-box;
  padding: 9px 0;
}

.remind-fold > summary i {
  color: var(--dim);
}

.remind-fold[open] > summary {
  color: var(--dim);
}

.th.lesson .blk.remind {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
}

.th.lesson .blk.remind > h3, .th.lesson .blk.remind > h4 {
  grid-column: 2;
  grid-row: 1;
  min-height: 44px;
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.th.lesson .blk.remind > h3 .listen-here, .th.lesson .blk.remind > h4 .listen-here {
  margin: 0;
}

.th.lesson .blk.remind > details {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

@media (min-width: 600px) {
  @supports selector(::details-content) {
    .th.lesson .blk.remind {
      display: block;
    }
    .th.lesson .blk.remind > h3 {
      min-height: 0;
      margin: 30px 0 8px;
      font-size: calc(21px * var(--text-scale, 1));
      line-height: 1.25;
    }
    .th.lesson .blk.remind > h4 {
      min-height: 0;
      margin: 20px 0 6px;
      font-size: calc(17px * var(--text-scale, 1));
      line-height: 1.3;
    }
    .th.lesson .blk.remind > h3 .listen-here {
      margin: -6px 0 -6px auto;
    }
    .js .lesson-page .th.lesson > section[id].remind > h3 {
      min-height: 32px;
    }
    .remind-fold > summary {
      display: none;
    }
    .remind-fold::details-content {
      content-visibility: visible;
      display: block;
    }
  }
}
.rule-block {
  margin: 0 0 12px;
}

.th.lesson .rule-first {
  margin: 0;
  padding: 16px 18px;
  border-left: 6px solid var(--rule-edge);
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 1.12em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.th.lesson .rule-first + p {
  margin-top: 12px;
}

.plain-first .th.lesson [data-plain]:not(.shown) {
  display: none;
}

.th.lesson .b-why > p {
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}

.th.lesson .b-trap > p {
  padding-left: 14px;
  border-left: 2px solid var(--warn);
}

.th.lesson .fgrid, .th.lesson .wgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 28px;
}

@media (min-width: 600px) {
  .th.lesson .fgrid, .th.lesson .wgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.th.lesson .fm, .th.lesson .way {
  margin: 0;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 2px solid var(--line);
  border-radius: 0;
  background: none;
  font-size: 1em;
}

.th.lesson .fml, .th.lesson .wl {
  display: block;
  margin: 0 0 2px;
  font: 600 13px/1.4 var(--ui);
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
}

.th.lesson .fm p, .th.lesson .way p {
  margin: 0 0 6px;
}

.th.lesson .cx {
  margin: 0 0 14px;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 2px solid var(--line);
  border-radius: 0;
  background: none;
}

.th.lesson .cx > div {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  background: none;
}

.th.lesson .cxw b {
  color: var(--warn);
}

.th.lesson .cxr b {
  color: var(--ok);
}

.th.lesson .flow {
  display: block;
  margin: 0 0 12px;
}

.th.lesson .fq {
  margin: 0;
  padding: 2px 0 2px 14px;
  border: 0;
  border-left: 2px solid var(--line);
  border-radius: 0;
  background: none;
}

.th.lesson .fq .fn {
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  font: 600 13px var(--ui);
  color: var(--dim);
}

.th.lesson .fy, .th.lesson .fno {
  margin: 2px 0;
  padding: 0;
  border: 0;
  background: none;
}

.th.lesson .fy b, .th.lesson .fno b {
  margin-right: 6px;
  font: 600 13px var(--ui);
  color: var(--accent);
}

.th.lesson .fno b {
  color: var(--warn);
}

.th.lesson .fdown {
  margin: 2px 0 2px 14px;
  color: var(--dim);
}

.th.lesson .blk.part {
  margin-top: 30px;
}

.th.lesson .facts {
  font-size: 1em;
}

.th.lesson .note-words p {
  margin: 0 0 6px;
}

.th.lesson .flashcards details {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
}

.th.lesson .flashcards details:last-child {
  border-bottom: 1px solid var(--line);
}

.th.lesson .flashcards summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
  cursor: pointer;
}

.th.lesson .flashcards .qa {
  margin: 0;
  padding: 0 0 12px;
  border: 0;
}

.th.lesson .ans {
  box-shadow: none;
}

.lesson-page .see {
  margin: 30px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.lesson-page .see h3 {
  margin: 0 0 8px;
  font: 600 21px/1.25 var(--display);
}

article.lesson-page {
  --read-x: 10px;
}

@media (min-width: 1040px) {
  article.lesson-page {
    --read-x: 14px;
  }
}
article.lesson-page .now-reading, .th.lesson > .blk.now-reading {
  position: relative;
  isolation: isolate;
  background-color: var(--read-bg);
  outline: 0;
  box-shadow: none;
  border-radius: 0;
}

article.lesson-page .now-reading::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -6px;
  bottom: -6px;
  left: calc(-1 * var(--read-x));
  right: calc(-1 * var(--read-x));
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: var(--read-bg);
  pointer-events: none;
}

article.lesson-page .now-step {
  background-color: var(--read-line);
  outline: 3px solid var(--read-line);
  border-radius: 2px;
}

@media (forced-colors: active) {
  article.lesson-page .now-reading::before {
    border-left-color: Highlight;
  }
  article.lesson-page .now-step {
    outline-color: Highlight;
  }
}
@media print {
  article.lesson-page .now-reading, .th.lesson > .blk.now-reading, article.lesson-page .now-step {
    background: none;
    outline: 0;
  }
  article.lesson-page .now-reading::before {
    content: none;
  }
}
article.lesson-page .now-reading > h2, article.lesson-page .now-reading > h3, article.lesson-page .now-reading > h2 .n,
.th.lesson .blk.now-reading > h2, .th.lesson .blk.now-reading > h3 {
  color: var(--accent);
}

.lesson-page figure.fig, .unit-page figure.fig {
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
  margin: 14px 0;
  padding: 8px 0 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  overflow-x: auto;
  overflow-y: hidden;
}

.lesson-page .figs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 14px 0;
}

.lesson-page .figs figure.fig {
  margin: 0;
}

@media (min-width: 600px) {
  .lesson-page .figs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.lesson-page figure.fig svg.plot {
  display: block;
  margin: 0 auto;
}

.lesson-page figure.fig figcaption:not(.waits) {
  margin: 0;
  padding: 8px 12px 10px;
  text-align: left;
  font: italic calc(15px * var(--text-scale, 1))/1.4 var(--ui);
  color: var(--ink);
}

.lesson-page .figs-again {
  margin: 4px 0 0;
  font: italic calc(15px * var(--text-scale, 1))/1.4 var(--ui);
  color: var(--ink);
}

.lesson-page section.ex figure.fig {
  border: 0;
  background: none;
}

.fig-compact, .fig-full {
  display: block;
}

.fig-full {
  display: none;
}

@media (min-width: 600px) {
  .fig-compact {
    display: none;
  }
  .fig-full {
    display: block;
  }
}
@media (max-width: 599px) {
  .lesson-page figure.fig svg.plot {
    max-height: 56vh;
  }
}
svg .tk, svg .lbdom, svg .lbrng {
  font-size: 12px;
}

svg.plot.pw-260 {
  min-width: 260px;
}

svg.plot.pw-280 {
  min-width: 280px;
}

svg.plot.pw-300 {
  min-width: 300px;
}

svg.plot.pw-320 {
  min-width: 320px;
}

svg.plot.pw-340 {
  min-width: 340px;
}

svg.plot.pw-360 {
  min-width: 360px;
}

svg.plot.pw-380 {
  min-width: 380px;
}

svg.plot.pw-400 {
  min-width: 400px;
}

svg.plot.pw-420 {
  min-width: 420px;
}

svg.plot.pw-440 {
  min-width: 440px;
}

svg.plot.pw-460 {
  min-width: 460px;
}

svg.plot.pw-480 {
  min-width: 480px;
}

svg.plot.pw-500 {
  min-width: 500px;
}

svg.plot.pw-520 {
  min-width: 520px;
}

svg.plot.pw-540 {
  min-width: 540px;
}

svg.plot.pw-560 {
  min-width: 560px;
}

svg.plot.pw-580 {
  min-width: 580px;
}

svg.plot.pw-600 {
  min-width: 600px;
}

svg.plot.pw-620 {
  min-width: 620px;
}

svg.plot.pw-640 {
  min-width: 640px;
}

svg.plot.pw-660 {
  min-width: 660px;
}

svg.plot.pw-680 {
  min-width: 680px;
}

svg.plot.pw-700 {
  min-width: 700px;
}

svg.plot.pw-720 {
  min-width: 720px;
}

svg.plot.pw-740 {
  min-width: 740px;
}

svg.plot.pw-760 {
  min-width: 760px;
}

svg.plot.pw-780 {
  min-width: 780px;
}

svg.plot.pw-800 {
  min-width: 800px;
}

svg.plot.pw-820 {
  min-width: 820px;
}

svg.plot.pw-840 {
  min-width: 840px;
}

svg.plot.pw-860 {
  min-width: 860px;
}

svg.plot.pw-880 {
  min-width: 880px;
}

svg.plot.pw-900 {
  min-width: 900px;
}

@media (prefers-reduced-motion: no-preference) {
  .js .lesson-page figure.fig.moves {
    padding-top: 52px;
  }
}
.figs-keys .lesson-page figure.fig.moves {
  padding-top: 52px;
}

.figs-off .lesson-page figure.fig.moves {
  padding-top: 8px;
}

.fig-play {
  position: absolute;
  top: 4px;
  right: 6px;
  box-sizing: border-box;
  min-width: 76px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--panel);
  color: var(--accent);
  font: 600 15px var(--display);
  cursor: pointer;
}

.fig-play::before {
  content: "▶";
  margin-right: 8px;
  font-size: 11px;
}

.fig-play[data-state=running]::before {
  content: "‖";
  font-size: 14px;
  font-weight: 800;
}

.fig-play[data-state=finished]::before {
  content: "↻";
  font-size: 14px;
}

.fig-play:hover {
  background: var(--accent-soft);
}

.fig-ghost path {
  fill: none;
  stroke: var(--curve);
  stroke-width: 2.4;
  stroke-opacity: 0.42;
  stroke-dasharray: none;
  vector-effect: non-scaling-stroke;
}

.lesson-end {
  margin: 46px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.lesson-end .end-keys {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 0;
}

.lesson-end .tick {
  align-self: flex-start;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  font-size: 15px;
}

.practice-key {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font: 600 17px var(--display);
  text-decoration: none;
}

.practice-key:hover {
  filter: brightness(1.08);
}

.lesson-end .end-cards {
  margin: 6px 0 0;
}

.lesson-end .end-cards a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.lesson-end .next-title {
  margin: 14px 0 0;
  font: 600 18px/1.3 var(--display);
}

.lesson-end .pn {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
}

.lesson-end .pn a {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 48%;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.lesson-end .pn a small {
  display: block;
  font: 600 15px var(--ui);
  color: var(--accent);
  white-space: nowrap;
}

.lesson-end .pn .pn-t {
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-end .pn a[rel=next], .lesson-end .pn .pn-up {
  margin-left: auto;
  text-align: right;
}

.lesson-end .pn .pn-up {
  justify-content: center;
  font: 600 15px var(--ui);
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  line-height: 44px;
}

@media (min-width: 600px) {
  .lesson-end .end-keys {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .lesson-end .next-title {
    display: none;
  }
  .lesson-end .pn {
    margin-top: 22px;
  }
  .lesson-end .pn .pn-t {
    display: block;
  }
}
.credit {
  margin: 24px 0 0;
  font: 13.5px/1.55 var(--ui);
  color: var(--dim);
  overflow-wrap: anywhere;
}

.credit a {
  color: inherit;
}

.ex-src {
  margin: 0 0 6px;
  font: 13px/1.4 var(--ui);
}

.ex-source {
  color: var(--dim);
}

dialog.prefs .pf-size {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px 16px;
}

dialog.prefs .pf-figures label {
  min-height: 44px;
}

dialog.prefs .pf-less {
  margin: 4px 0;
  font-size: 13px;
  color: var(--dim);
}

dialog.prefs .pf-help {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 10px 0 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: 500 15px var(--ui);
  text-align: left;
  cursor: pointer;
}

@media (min-width: 768px) {
  dialog.prefs .pf-help {
    display: none;
  }
}
@media (max-width: 599px) {
  dialog.prefs {
    box-sizing: border-box;
    inset: auto 0 0 0;
    top: auto;
    width: 100%;
    max-width: none;
    max-height: 82vh;
    border-width: 1px 0 0;
    border-radius: 14px 14px 0 0;
    box-shadow: none;
  }
  dialog.prefs label {
    min-height: 44px;
    margin: 0;
  }
}
@media (min-width: 1440px) {
  dialog.prefs {
    right: max(16px, (100vw - 1380px) / 2 + 8px);
    box-shadow: none;
  }
}
.scene-controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.scene-controls button {
  flex: 0 0 auto;
  min-height: 44px;
  white-space: nowrap;
}

.scene-controls .sc-play {
  min-width: 5.6em;
}

.scene-controls .sc-step .mark {
  display: none;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 599px) {
  .scene-controls .sc-step {
    min-width: 44px;
    padding: 0 12px;
  }
  .scene-controls .sc-step .mark {
    display: inline;
  }
  .scene-controls .sc-step .lbl {
    display: none;
  }
}
.did-not-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--ink);
}

.did-not-start button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: 500 14px var(--ui);
  cursor: pointer;
}

.explorer[data-error]:has(> .did-not-start)::after {
  content: none;
}

@media print {
  .top-tools, .toc-opener, .toc-fold, aside.contents, .fig-play, .listen, .listen-here, .head-keys, .listen-line, .lesson-end .end-keys, .lesson-end .pn {
    display: none !important;
  }
  .js .lesson-page figure.fig.moves, .figs-keys .lesson-page figure.fig.moves {
    padding-top: 8px;
  }
  details.eli5::details-content, .remind-fold::details-content, .th.lesson .flashcards details::details-content {
    content-visibility: visible;
    display: block;
  }
  .plain-first .th.lesson [data-plain]:not(.shown) {
    display: block;
  }
  .th.lesson section[hidden] {
    display: block;
  }
  .lesson-page figure.fig {
    overflow: visible;
    break-inside: avoid;
  }
}
@media (forced-colors: active) {
  .top-tools button, .toc-opener, .listen, .fig-play, .practice-key, .tick, .lesson-end .pn a, dialog.prefs .pf-help {
    outline: 1px solid ButtonText;
  }
  .th.lesson .rule-first {
    border: 1px solid CanvasText;
  }
  svg .c1, svg .c2, svg .c3, svg .ax, svg .ln, svg .lna, svg .lnw, svg .arc, svg .dim, svg .hl, svg .asym {
    stroke: CanvasText;
  }
  svg .pt, svg .vx, svg .ah {
    fill: CanvasText;
  }
}
.th.lesson > .blk.note {
  margin: 0 0 28px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--warn);
}

.th.lesson > .blk.note > h3 {
  margin-top: 0;
}

.th.lesson > .blk.note > p {
  margin: 0;
  max-width: 72ch;
}

.th.lesson .practice-line {
  margin: 0 0 10px;
}

.th.lesson .tbl.compare {
  display: none;
  margin: 30px 0 0;
  padding: 0 0 4px;
  background: linear-gradient(to right, var(--bg) 40%, transparent) left/36px 100% no-repeat local, linear-gradient(to left, var(--bg) 40%, transparent) right/36px 100% no-repeat local, linear-gradient(to right, color-mix(in srgb, var(--ink) 22%, transparent), transparent) left/14px 100% no-repeat scroll, linear-gradient(to left, color-mix(in srgb, var(--ink) 22%, transparent), transparent) right/14px 100% no-repeat scroll;
}

.th.lesson .tbl.compare:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.th.lesson .tbl.compare {
  contain: inline-size;
}

.th.lesson .tbl.compare table {
  display: table;
  max-width: none;
  overflow: visible;
  min-width: max(100%, 700px);
  border-collapse: collapse;
}

.th.lesson .tbl.compare caption {
  caption-side: top;
  margin: 0 0 8px;
  text-align: left;
  font: 600 calc(21px * var(--text-scale, 1))/1.25 var(--display);
  color: var(--ink);
}

.th.lesson .tbl.compare th, .th.lesson .tbl.compare td {
  padding: 10px 18px 10px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.th.lesson .tbl.compare th {
  font: 500 14px/1.4 var(--ui);
  color: var(--dim);
}

.th.lesson .tbl.compare td:first-child {
  font-weight: 600;
}

.th.lesson .compare-list > h3 {
  margin: 30px 0 8px;
  font: 600 calc(21px * var(--text-scale, 1))/1.25 var(--display);
  color: var(--ink);
}

.th.lesson .compare-list dl {
  display: grid;
  grid-template-columns: minmax(88px, max-content) minmax(0, 1fr);
  gap: 4px 14px;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.th.lesson .compare-list dl:last-child {
  border-bottom: 1px solid var(--line);
}

.th.lesson .compare-list dt {
  font: 14px/1.5 var(--ui);
  color: var(--dim);
}

.th.lesson .compare-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.th.lesson .compare-list dd:first-of-type {
  font-weight: 600;
}

@media (min-width: 600px) {
  .th.lesson .tbl.compare {
    display: block;
  }
  .th.lesson .compare-list {
    display: none;
  }
}
@media print {
  .th.lesson .tbl.compare {
    display: block;
    background: none;
  }
  .th.lesson .compare-list {
    display: none;
  }
}
.th.lesson .ex-demo {
  margin: 0 0 14px;
}

.th.lesson .src-list {
  margin: 20px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  font: 400 var(--read-small)/1.5 var(--ui);
  color: var(--dim);
}

.th.lesson .src-list .src-k {
  display: block;
  font-weight: 600;
  color: var(--dim);
}

:where(.th).lesson .src-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.th).lesson .src-list li {
  margin: 0;
  padding: 0;
}

.th.lesson .src-list li a {
  display: inline-block;
  box-sizing: border-box;
  min-height: 44px;
  padding: 11px 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.th.lesson .src-list li a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

:where(.th).lesson .blk.sources > ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blk.sources > ol > li {
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  align-items: baseline;
  gap: 0 6px;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.blk.sources > ol > li:last-child {
  border-bottom: 1px solid var(--line);
}

.blk.sources > ol > li::before {
  content: "[" attr(value) "]";
  grid-row: 1/span 2;
  font: 13px/1.6 var(--ui);
  color: var(--dim);
}

.src-name {
  grid-column: 2;
  overflow-wrap: anywhere;
}

.src-name a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.src-name a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.src-read {
  grid-column: 2;
  font: 14px/1.5 var(--ui);
  color: var(--dim);
}

@media (min-width: 600px) {
  .blk.sources > ol > li {
    grid-template-columns: 2.6em minmax(0, 1fr) max-content;
    gap: 0 14px;
  }
  .blk.sources > ol > li::before {
    grid-row: auto;
  }
  .src-read {
    grid-column: 3;
  }
}
@media print {
  .src-name a::after, .th.lesson .src-list li a::after {
    content: " (" attr(href) ")";
    font: 13px var(--ui);
    color: var(--dim);
    overflow-wrap: anywhere;
  }
  .th.lesson .src-list li a {
    min-height: 0;
    padding: 0;
  }
}
html.narrated:has(#transport.tp-bar) {
  --bar-h: calc(56px + env(safe-area-inset-bottom, 0px));
}

#transport[hidden] {
  display: none;
}

#transport.tp-bar {
  display: block;
  min-height: 0;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  gap: 0;
}

#transport.tp-bar[hidden], #transport.tp-bar.tp-away {
  display: none;
}

#transport.tp-bar:focus {
  outline: none;
}

#transport.tp-bar:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.tp-bar .tp-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 0;
  background: none;
  overflow: visible;
}

.tp-bar .tp-fill {
  fill: var(--accent);
}

.tp-bar .tp-row {
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  height: 56px;
  padding: 0 max(6px, (100vw - 1180px) / 2 + 24px);
  white-space: nowrap;
}

.tp-bar .tp-row > * {
  flex: none;
}

#transport.tp-bar button {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
}

#transport.tp-bar .tp-step {
  width: 44px;
  height: 44px;
}

#transport.tp-bar .tp-play {
  width: 48px;
  height: 48px;
  min-height: 48px;
}

.tp-bar .tp-row .tp-now {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
}

.tp-bar .cue-pos {
  flex: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tp-bar .cue-name {
  display: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--dim);
}

@media (min-width: 430px) {
  .tp-bar .cue-name {
    display: block;
  }
}
#transport.tp-bar .cue-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 16px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
}

#transport.tp-bar .cue-status:empty {
  display: none;
}

@media (min-width: 768px) {
  #transport.tp-bar .cue-status {
    position: static;
    padding: 0;
    border: 0;
    background: none;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tp-bar.tp-says .cue-pos, .tp-bar.tp-says .cue-name {
    display: none;
  }
}
.tp-bar .tp-speed, .tp-bar .tp-wide, .tp-bar .tp-close {
  display: none;
}

.tp-bar .tp-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
}

.tp-bar .tp-more::before {
  content: "•••";
  letter-spacing: 1px;
  color: var(--accent);
}

.tp-bar.tp-ended .tp-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 600px) {
  .tp-bar .tp-speed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .tp-bar .tp-row {
    gap: 8px;
  }
}
@media (min-width: 1040px) {
  .tp-bar .tp-wide, .tp-bar .tp-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .tp-bar small.tp-wide {
    margin: 0 8px;
    font-size: 13px;
    color: var(--dim);
  }
  .tp-bar .tp-more {
    display: none;
  }
  .tp-bar .tp-row .tp-now {
    justify-content: flex-start;
    padding-left: 8px;
  }
}
.tp-script {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-height: 60vh;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.tp-script[hidden] {
  display: none;
}

.tp-script-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px 4px 16px;
  border-bottom: 1px solid var(--line);
}

.tp-script-head h2, .tp-sheet-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font: 600 18px var(--display);
}

#transport.tp-bar .transcript {
  flex: 1 1 auto;
  order: 0;
  max-height: none;
  margin: 0;
  padding: 8px 16px 12px 40px;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: auto;
}

@media (min-width: 1040px) {
  .tp-script {
    left: auto;
    right: max(16px, (100vw - 1180px) / 2 + 24px);
    width: 440px;
    max-height: 50vh;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
  }
}
@media (min-width: 1440px) {
  .tp-script {
    position: fixed;
    top: 76px;
    bottom: calc(var(--bar-h, 56px) + 12px);
    right: max(16px, (100vw - 1380px) / 2 + 8px);
    width: 340px;
    max-height: none;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
}
dialog.tp-sheet {
  position: fixed;
  inset: auto 0 0 0;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  max-height: 82vh;
  margin: 0;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: var(--panel);
  color: var(--ink);
  font: 15px/1.4 var(--ui);
  overflow: auto;
}

dialog.tp-sheet::backdrop {
  background: rgba(0, 0, 0, 0.42);
}

.tp-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}

.tp-group h3 {
  margin: 10px 0 6px;
  padding: 0;
  font: 600 14px var(--ui);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.tp-group h3::after {
  content: none;
}

.tp-group p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--dim);
}

.tp-choices {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

#transport .tp-choices button {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 2px;
}

#transport .tp-choices button[aria-pressed=true] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

#transport .tp-sheet-key {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 12px 0 0;
  padding: 0 14px;
  text-align: left;
}

@media (min-width: 600px) {
  .tp-speeds {
    display: none;
  }
  dialog.tp-sheet {
    left: auto;
    right: 16px;
    bottom: calc(var(--bar-h, 56px) + 8px);
    width: 380px;
    border: 1px solid var(--line);
    border-radius: 14px;
  }
}
.listen-here {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -6px 0 -6px auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.listen-here:hover {
  background: var(--accent-soft);
}

.listen-here svg {
  display: block;
}

.tp-marks {
  clear: both;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 16px 0 0;
}

.tp-marks button {
  box-sizing: border-box;
  min-width: 84px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font: 600 15px var(--display);
  white-space: nowrap;
}

.tp-marks-note {
  margin: 12px 0 0;
  text-align: right;
  font: 13px/1.4 var(--ui);
  color: var(--dim);
}

.skip.skip-bar:focus {
  left: 16px;
}

html.narrated .focus-mode .focus-nav {
  display: none;
}

@media print {
  .tp-script, .tp-marks, .tp-marks-note, .listen-here, .skip-bar {
    display: none !important;
  }
}
.tp-recall-failed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink);
}

.tp-recall-failed button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: 500 14px var(--ui);
  cursor: pointer;
}

.pg-subject {
  font-variant-numeric: tabular-nums;
}

.pg-subject h1, .pg-subject h2, .pg-subject h3 {
  text-wrap: balance;
}

.pg-subject .top {
  height: calc(48px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-bottom: 0;
}

.pg-subject .top-tools {
  margin-left: auto;
}

.pg-subject .crumbs {
  display: none;
}

.pg-subject .where {
  font-family: var(--ui);
}

.pg-subject .brand span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  font-size: 18px;
  white-space: nowrap;
}

.pg-subject .lay {
  padding-top: 28px;
}

.subject-page h1 {
  font-size: calc(34px * var(--text-scale, 1));
  margin: 0 0 12px;
}

.subject-page p {
  margin: 0 0 12px;
}

.subject-facts, .subject-start, .row-details, .row-marks, .catalogue-legend, .subject-end {
  font: 400 calc(15px * var(--text-scale, 1))/1.5 var(--ui);
  color: var(--dim);
}

.subject-start a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  color: var(--accent);
  text-decoration: underline;
}

.catalogue-courses {
  margin-top: 24px;
  min-width: 0;
}

.catalogue-courses h2 {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  font-size: calc(24px * var(--text-scale, 1));
}

.catalogue-rows, .other-subjects ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.catalogue-rows > li {
  margin: 0 0 26px;
}

.catalogue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--blocks-width);
  gap: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  min-height: 64px;
}

.catalogue-row h3 {
  margin: 0;
  font: 600 calc(20px * var(--text-scale, 1))/1.25 var(--display);
}

.catalogue-row:hover h3, .catalogue-row:active h3 {
  color: var(--accent);
  text-decoration: underline;
}

.catalogue-row:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.catalogue-summary {
  grid-column: 1/-1;
  font: 400 calc(16px * var(--text-scale, 1))/1.45 Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  max-width: 34em;
  color: var(--dim);
}

.row-details, .row-marks {
  grid-column: 1/-1;
}

.row-builds, .row-home {
  display: block;
}

.row-marks {
  color: var(--accent);
}

.row-marks:empty {
  display: none;
}

.course-blocks {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 4px;
}

.block-line {
  display: flex;
  gap: 2px;
  align-items: end;
  height: 12px;
}

.course-block {
  box-sizing: border-box;
  flex: 0 0 8px;
  height: 12px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  transform: skew(-7deg);
}

.course-block.short {
  height: 3px;
  border-color: var(--dim);
}

.course-block.marked {
  background: var(--accent);
}

.catalogue-legend {
  font-size: calc(15px * var(--text-scale, 1));
}

.subject-end {
  margin-top: 32px;
}

.other-subjects h2 {
  border: 0;
  padding: 0;
  font: 600 calc(13px * var(--text-scale, 1))/1.4 var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.other-subjects a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  color: var(--accent);
  font-size: calc(20px * var(--text-scale, 1));
  text-decoration: underline;
}

.subject-end .device-line {
  margin-top: 20px;
}

.subject-end .device-line a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  color: var(--dim);
  text-decoration: underline;
}

.pg-subject .foot {
  display: block;
}

.pg-subject .foot p {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.pg-subject .foot-links {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%;
}

.pg-subject .foot a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

html:has(> body.pg-subject) {
  scroll-padding-top: 64px;
}

@media (max-width: 359px) {
  .catalogue-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .course-blocks {
    grid-column: 1;
  }
}
@media (min-width: 600px) {
  .subject-head {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 0 24px;
  }
  .subject-head h1 {
    font-size: calc(40px * var(--text-scale, 1));
  }
  .subject-facts {
    grid-column: 1;
  }
  .subject-start {
    grid-column: 2;
    grid-row: 1/3;
  }
  .catalogue-row {
    grid-template-columns: minmax(0, 1fr) var(--blocks-width);
  }
  .block-line {
    height: 16px;
    gap: 3px;
  }
  .course-block {
    flex-basis: 12px;
    height: 16px;
  }
  .course-block.short {
    height: 4px;
  }
  .row-marks:empty {
    display: block;
  }
}
@media (min-width: 1040px) {
  .pg-subject .top {
    height: 56px;
  }
  .pg-subject .crumbs {
    display: flex;
  }
  .pg-subject .where {
    display: none;
  }
  .subject-page {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 0 32px;
  }
  .subject-head {
    display: block;
    grid-column: 1;
    grid-row: 1;
  }
  .subject-head h1 {
    font-size: calc(44px * var(--text-scale, 1));
  }
  .catalogue-courses {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
    border-left: 1px solid var(--line);
    padding-left: 24px;
  }
  .subject-end {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }
  .catalogue-courses h2 {
    font-size: calc(28px * var(--text-scale, 1));
  }
  .catalogue-legend {
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
  .catalogue-rows > li + li {
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .catalogue-row {
    grid-template-columns: minmax(0, 1fr) var(--blocks-width);
  }
}
@media (min-width: 1440px) {
  .pg-subject .lay {
    max-width: 1440px;
  }
  .subject-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
  .catalogue-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) var(--blocks-width);
  }
  .catalogue-row h3 {
    grid-column: 1;
    grid-row: 1;
  }
  .row-details {
    grid-column: 1;
    grid-row: 2;
  }
  .catalogue-summary {
    grid-column: 2;
    grid-row: 1/3;
  }
  .course-blocks {
    grid-column: 3;
    grid-row: 1;
  }
  .row-marks {
    grid-column: 3;
    grid-row: 2;
  }
}
.catalogue-rows.blocks-1 {
  --blocks-width: 8px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-1 {
    --blocks-width: 12px;
  }
}
.catalogue-rows.blocks-2 {
  --blocks-width: 18px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-2 {
    --blocks-width: 27px;
  }
}
.catalogue-rows.blocks-3 {
  --blocks-width: 28px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-3 {
    --blocks-width: 42px;
  }
}
.catalogue-rows.blocks-4 {
  --blocks-width: 38px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-4 {
    --blocks-width: 57px;
  }
}
.catalogue-rows.blocks-5 {
  --blocks-width: 48px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-5 {
    --blocks-width: 72px;
  }
}
.catalogue-rows.blocks-6 {
  --blocks-width: 58px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-6 {
    --blocks-width: 87px;
  }
}
.catalogue-rows.blocks-7 {
  --blocks-width: 68px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-7 {
    --blocks-width: 102px;
  }
}
.catalogue-rows.blocks-8 {
  --blocks-width: 78px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-8 {
    --blocks-width: 117px;
  }
}
.catalogue-rows.blocks-9 {
  --blocks-width: 88px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-9 {
    --blocks-width: 132px;
  }
}
.catalogue-rows.blocks-10 {
  --blocks-width: 98px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-10 {
    --blocks-width: 147px;
  }
}
.catalogue-rows.blocks-11 {
  --blocks-width: 108px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-11 {
    --blocks-width: 162px;
  }
}
.catalogue-rows.blocks-12 {
  --blocks-width: 118px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-12 {
    --blocks-width: 177px;
  }
}
.catalogue-rows.blocks-13 {
  --blocks-width: 128px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-13 {
    --blocks-width: 192px;
  }
}
.catalogue-rows.blocks-14 {
  --blocks-width: 138px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-14 {
    --blocks-width: 207px;
  }
}
.catalogue-rows.blocks-15 {
  --blocks-width: 148px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-15 {
    --blocks-width: 222px;
  }
}
.catalogue-rows.blocks-16 {
  --blocks-width: 158px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-16 {
    --blocks-width: 237px;
  }
}
.catalogue-rows.blocks-17 {
  --blocks-width: 168px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-17 {
    --blocks-width: 252px;
  }
}
.catalogue-rows.blocks-18 {
  --blocks-width: 178px;
}

@media (min-width: 600px) {
  .catalogue-rows.blocks-18 {
    --blocks-width: 267px;
  }
}
@media (min-width: 600px) and (max-width: 1039px) {
  .catalogue-courses {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr);
    gap: 0 24px;
  }
  .catalogue-courses h2 {
    font: 600 14px var(--ui);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .catalogue-rows {
    border-left: 1px solid var(--line);
    padding-left: 20px;
  }
  .catalogue-legend {
    grid-column: 2;
  }
  .subject-end {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr);
    gap: 0 24px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .other-subjects {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr);
    gap: 0 24px;
  }
  .other-subjects h2 {
    grid-column: 1;
    margin: 0;
    line-height: 44px;
  }
  .other-subjects ul {
    grid-column: 2;
    border-left: 1px solid var(--line);
    padding-left: 20px;
  }
  .subject-end .device-line {
    grid-column: 2;
    padding-left: 21px;
  }
}
@media (min-width: 600px) and (max-width: 1439px) {
  .row-details {
    grid-column: 1;
  }
  .row-marks {
    grid-column: 2;
    align-self: end;
    text-align: right;
  }
}
@media (min-width: 1040px) {
  .subject-stick-1 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-1 .subject-end {
    position: sticky;
    top: 128px;
  }
  .subject-stick-2 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-2 .subject-end {
    position: sticky;
    top: 144px;
  }
  .subject-stick-3 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-3 .subject-end {
    position: sticky;
    top: 160px;
  }
  .subject-stick-4 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-4 .subject-end {
    position: sticky;
    top: 176px;
  }
  .subject-stick-5 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-5 .subject-end {
    position: sticky;
    top: 192px;
  }
  .subject-stick-6 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-6 .subject-end {
    position: sticky;
    top: 208px;
  }
  .subject-stick-7 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-7 .subject-end {
    position: sticky;
    top: 224px;
  }
  .subject-stick-8 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-8 .subject-end {
    position: sticky;
    top: 240px;
  }
  .subject-stick-9 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-9 .subject-end {
    position: sticky;
    top: 256px;
  }
  .subject-stick-10 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-10 .subject-end {
    position: sticky;
    top: 272px;
  }
  .subject-stick-11 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-11 .subject-end {
    position: sticky;
    top: 288px;
  }
  .subject-stick-12 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-12 .subject-end {
    position: sticky;
    top: 304px;
  }
  .subject-stick-13 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-13 .subject-end {
    position: sticky;
    top: 320px;
  }
  .subject-stick-14 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-14 .subject-end {
    position: sticky;
    top: 336px;
  }
  .subject-stick-15 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-15 .subject-end {
    position: sticky;
    top: 352px;
  }
  .subject-stick-16 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-16 .subject-end {
    position: sticky;
    top: 368px;
  }
  .subject-stick-17 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-17 .subject-end {
    position: sticky;
    top: 384px;
  }
  .subject-stick-18 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-18 .subject-end {
    position: sticky;
    top: 400px;
  }
  .subject-stick-19 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-19 .subject-end {
    position: sticky;
    top: 416px;
  }
  .subject-stick-20 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-20 .subject-end {
    position: sticky;
    top: 432px;
  }
  .subject-stick-21 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-21 .subject-end {
    position: sticky;
    top: 448px;
  }
  .subject-stick-22 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-22 .subject-end {
    position: sticky;
    top: 464px;
  }
  .subject-stick-23 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-23 .subject-end {
    position: sticky;
    top: 480px;
  }
  .subject-stick-24 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-24 .subject-end {
    position: sticky;
    top: 496px;
  }
  .subject-stick-25 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-25 .subject-end {
    position: sticky;
    top: 512px;
  }
  .subject-stick-26 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-26 .subject-end {
    position: sticky;
    top: 528px;
  }
  .subject-stick-27 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-27 .subject-end {
    position: sticky;
    top: 544px;
  }
  .subject-stick-28 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-28 .subject-end {
    position: sticky;
    top: 560px;
  }
  .subject-stick-29 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-29 .subject-end {
    position: sticky;
    top: 576px;
  }
  .subject-stick-30 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-30 .subject-end {
    position: sticky;
    top: 592px;
  }
  .subject-stick-31 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-31 .subject-end {
    position: sticky;
    top: 608px;
  }
  .subject-stick-32 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-32 .subject-end {
    position: sticky;
    top: 624px;
  }
  .subject-stick-33 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-33 .subject-end {
    position: sticky;
    top: 640px;
  }
  .subject-stick-34 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-34 .subject-end {
    position: sticky;
    top: 656px;
  }
  .subject-stick-35 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-35 .subject-end {
    position: sticky;
    top: 672px;
  }
  .subject-stick-36 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-36 .subject-end {
    position: sticky;
    top: 688px;
  }
  .subject-stick-37 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-37 .subject-end {
    position: sticky;
    top: 704px;
  }
  .subject-stick-38 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-38 .subject-end {
    position: sticky;
    top: 720px;
  }
  .subject-stick-39 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-39 .subject-end {
    position: sticky;
    top: 736px;
  }
  .subject-stick-40 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-40 .subject-end {
    position: sticky;
    top: 752px;
  }
  .subject-stick-41 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-41 .subject-end {
    position: sticky;
    top: 768px;
  }
  .subject-stick-42 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-42 .subject-end {
    position: sticky;
    top: 784px;
  }
  .subject-stick-43 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-43 .subject-end {
    position: sticky;
    top: 800px;
  }
  .subject-stick-44 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-44 .subject-end {
    position: sticky;
    top: 816px;
  }
  .subject-stick-45 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-45 .subject-end {
    position: sticky;
    top: 832px;
  }
  .subject-stick-46 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-46 .subject-end {
    position: sticky;
    top: 848px;
  }
  .subject-stick-47 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-47 .subject-end {
    position: sticky;
    top: 864px;
  }
  .subject-stick-48 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-48 .subject-end {
    position: sticky;
    top: 880px;
  }
  .subject-stick-49 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-49 .subject-end {
    position: sticky;
    top: 896px;
  }
  .subject-stick-50 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-50 .subject-end {
    position: sticky;
    top: 912px;
  }
  .subject-stick-51 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-51 .subject-end {
    position: sticky;
    top: 928px;
  }
  .subject-stick-52 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-52 .subject-end {
    position: sticky;
    top: 944px;
  }
  .subject-stick-53 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-53 .subject-end {
    position: sticky;
    top: 960px;
  }
  .subject-stick-54 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-54 .subject-end {
    position: sticky;
    top: 976px;
  }
  .subject-stick-55 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-55 .subject-end {
    position: sticky;
    top: 992px;
  }
  .subject-stick-56 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-56 .subject-end {
    position: sticky;
    top: 1008px;
  }
  .subject-stick-57 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-57 .subject-end {
    position: sticky;
    top: 1024px;
  }
  .subject-stick-58 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-58 .subject-end {
    position: sticky;
    top: 1040px;
  }
  .subject-stick-59 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-59 .subject-end {
    position: sticky;
    top: 1056px;
  }
  .subject-stick-60 .subject-head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .subject-stick-60 .subject-end {
    position: sticky;
    top: 1072px;
  }
}
.lesson-page section.tool {
  margin: 22px 0;
}

.lesson-page section.tool > h3, .lesson-page section.tool > h4 {
  margin: 0 0 10px;
}

.lesson-page section.tool > h3:focus, .lesson-page section.tool > h4:focus {
  outline: none;
}

.lesson-page section.tool > h3:focus-visible, .lesson-page section.tool > h4:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.tool-plain {
  margin: 0;
}

.tool-plain figure.fig {
  margin: 0 0 12px;
}

.lesson-page .tool-steps {
  margin: 0;
  padding-left: 1.6em;
}

.tool-steps li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.tool-steps li p {
  margin: 0;
}

.tool-steps .tip {
  margin-top: 4px;
  font: 14px/1.45 var(--ui);
  color: var(--dim);
}

.tool-plain .lbl {
  margin-right: 6px;
  font: 600 13px var(--ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.tool-plain > .mv-choice-wrap {
  margin-bottom: 12px;
}

@media (min-width: 600px) {
  .tool-plain:has(> figure.fig + .tool-steps) {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 16px;
    align-items: start;
  }
  .tool-plain:has(> figure.fig + .tool-steps) > figure.fig {
    margin: 0;
  }
  .tool-plain:has(> figure.fig + .tool-steps) > .mv-choice-wrap {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  .tool-plain:has(> figure.fig + .tool-steps) > .mv-choice-wrap ~ figure.fig {
    grid-column: 1;
    grid-row: 2;
  }
  .tool-plain:has(> figure.fig + .tool-steps) > .mv-choice-wrap ~ .tool-steps {
    grid-column: 2;
    grid-row: 1/span 2;
  }
}
.lesson-page section.tool table.tool-plan {
  display: table;
  width: 100%;
  max-width: 520px;
  margin: 0;
  border-collapse: collapse;
  font: 15px/1.4 var(--ui);
}

.lesson-page section.tool table.tool-plan caption {
  caption-side: top;
  padding: 0 0 6px;
  text-align: left;
  font: 15px/1.4 var(--ui);
  color: var(--ink);
}

.lesson-page section.tool table.tool-plan th {
  padding: 6px 8px 6px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font: 500 13px var(--ui);
  color: var(--dim);
}

.lesson-page section.tool table.tool-plan td {
  padding: 8px 8px 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
  color: var(--ink);
}

.lesson-page .tool-level {
  margin: 14px 0 4px;
  font: 600 15px var(--ui);
  color: var(--ink);
}

.lesson-page .tool-calls {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-calls li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font: 15px/1.4 var(--ui);
}

.tool-calls .call {
  margin-right: 10px;
  font: 600 15px var(--mono);
}

.lesson-page .tool-mirror {
  margin: 0 0 6px;
  font: 15px/1.45 var(--ui);
  color: var(--ink);
}

.lesson-page .tool-checks {
  margin: 0;
  padding: 0 0 0 1.2em;
}

.tool-checks li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

section.tool[data-tool=camera] [hidden] {
  display: none !important;
}

.lesson-page section.tool[data-tool=camera] .cam-how .cam-how-head {
  margin: 0 0 6px;
}

.lesson-page section.tool .cam-how p {
  margin: 0 0 8px;
}

.lesson-page section.tool .cam-notice {
  margin: 0 0 12px;
  font: 14px/1.45 var(--ui);
  color: var(--ink);
}

.cam-stage {
  container: cam-stage/inline-size;
  min-width: 0;
}

.cam-view {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 60vh;
  max-height: 60dvh;
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

@media (max-width: 599px) and (orientation: portrait) {
  .cam-view {
    aspect-ratio: 3/4;
  }
}
.cam-view video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.cam-guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cam-guide {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #FAF8F6;
  box-shadow: 0 -2px 0 #0C1017, 0 2px 0 #0C1017;
}

.cam-chin {
  top: 30%;
}

.cam-shoulders {
  top: 42%;
}

.cam-label {
  position: absolute;
  left: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  font: 600 13px/1.3 var(--ui);
  white-space: nowrap;
}

.cam-chin .cam-label {
  bottom: 6px;
}

.cam-shoulders .cam-label {
  top: 6px;
}

.lesson-page section.tool .cam-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: 600 28px/1.2 var(--display);
  font-variant-numeric: lining-nums tabular-nums;
}

.lesson-page section.tool .cam-line {
  margin: 0 0 8px;
  font: 15px/1.45 var(--ui);
  color: var(--ink);
}

.cam-stage > .cam-back {
  margin: 0 0 10px;
}

.cam-keys {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0 -5px;
  padding: 5px;
  overflow-x: auto;
  white-space: nowrap;
}

.cam-keys .tool-key {
  flex: 1 1 auto;
  padding: 0 12px;
}

.cam-keys .tool-key .w-full {
  display: none;
}

.cam-keys .tool-key[aria-disabled=true] {
  border-color: var(--line);
  background: transparent;
  color: var(--dim);
  cursor: default;
}

@container cam-stage (min-width: 26rem) {
  .cam-keys .tool-key {
    font-size: 15px;
    padding: 0 10px;
  }
  .cam-keys .tool-key .w-full {
    display: inline;
  }
  .cam-keys .tool-key .w-short {
    display: none;
  }
}
@media (min-width: 600px) {
  section.tool[data-cam=off] .cam-keys .tool-key, section.tool[data-cam=asking] .cam-keys .tool-key {
    flex: 0 0 auto;
    padding: 0 22px;
  }
}
.lesson-page section.tool .cam-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 8px 0 0;
  font: 15px/1.45 var(--ui);
  color: var(--ink);
}

.cam-status .cam-status-words {
  flex: 1 1 12em;
  min-width: 0;
}

.cam-sign-wrap {
  flex: none;
  display: inline-flex;
  align-self: flex-start;
  margin-top: 1px;
  color: var(--warn);
}

.cam-sign .cam-sign-mark {
  stroke: var(--bg);
}

.cam-sign .cam-sign-dot {
  fill: var(--bg);
}

.cam-status .cam-again {
  flex: none;
}

.lesson-page section.tool .cam-note {
  margin: 8px 0 0;
  font: 14px/1.45 var(--ui);
  color: var(--ink);
}

.cam-settings {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 12px;
  min-width: 0;
  margin: 10px -5px 0;
  padding: 5px;
  overflow-x: auto;
}

.cam-set {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font: 500 13px/1.3 var(--ui);
  color: var(--dim);
}

.cam-set-every {
  flex: 0 0 96px;
}

.cam-set-camera {
  flex: 1 1 0;
}

.cam-set select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 28px 0 12px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background-color: var(--bg);
  color: var(--ink);
  font: 500 15px var(--ui);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.cam-set select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@supports (animation-timeline: scroll()) {
  .cam-keys, .cam-settings {
    animation: row-more linear both;
    animation-timeline: scroll(self inline);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--row-more)), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - var(--row-more)), transparent);
  }
}
.cam-checks {
  margin: 16px 0 0;
}

.lesson-page section.tool .cam-ticked {
  margin: 8px 0 4px;
  font: 600 17px/1.3 var(--display);
  color: var(--ink);
}

.cam-list {
  border-top: 1px solid var(--line);
}

.cam-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 9px 4px 9px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}

.cam-check input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cam-box {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--dim);
  border-radius: 5px;
  background: var(--bg);
  color: var(--accent);
}

.cam-box .cam-tick {
  visibility: hidden;
}

.cam-check input:checked + .cam-box .cam-tick {
  visibility: visible;
}

.cam-check input:focus-visible + .cam-box {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.cam-words {
  min-width: 0;
}

.cam-check.now {
  box-shadow: inset 3px 0 0 var(--accent);
}

.cam-check.now .cam-words {
  font-weight: 600;
}

@media (min-width: 600px) {
  section.tool[data-cam=starting] .cam-body, section.tool[data-cam=on] .cam-body, section.tool[data-cam=replay] .cam-body {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    column-gap: 20px;
    align-items: start;
    grid-template-areas: "how how" "notice notice" "stage checks";
  }
  .cam-how {
    grid-area: how;
  }
  .cam-notice {
    grid-area: notice;
  }
  .cam-stage {
    grid-area: stage;
  }
  .cam-checks {
    grid-area: checks;
  }
  section.tool[data-cam=starting] .cam-checks, section.tool[data-cam=on] .cam-checks, section.tool[data-cam=replay] .cam-checks {
    margin-top: 0;
  }
  section.tool[data-cam=starting] .cam-ticked, section.tool[data-cam=on] .cam-ticked, section.tool[data-cam=replay] .cam-ticked {
    margin-top: 0;
  }
}
@media (min-width: 1040px) {
  section.tool[data-cam=starting] .cam-body, section.tool[data-cam=on] .cam-body, section.tool[data-cam=replay] .cam-body {
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "notice notice" "stage checks" "how checks";
  }
  section.tool[data-cam=starting] .cam-how, section.tool[data-cam=on] .cam-how, section.tool[data-cam=replay] .cam-how {
    margin-top: 14px;
  }
}
@media (min-width: 1440px) {
  section.tool[data-cam=starting] .cam-body, section.tool[data-cam=on] .cam-body, section.tool[data-cam=replay] .cam-body {
    width: calc(100% + 32px + 280px);
    grid-template-columns: minmax(0, 1fr) 280px;
    column-gap: 32px;
  }
  section.tool[data-cam=starting] .cam-notice, section.tool[data-cam=on] .cam-notice, section.tool[data-cam=replay] .cam-notice {
    grid-column: 1;
  }
}
@media (forced-colors: active) {
  .cam-guide {
    background: Canvas;
    box-shadow: 0 -2px 0 CanvasText, 0 2px 0 CanvasText;
  }
  .cam-box, .cam-set select {
    border-color: CanvasText;
  }
  .cam-check.now {
    box-shadow: inset 3px 0 0 Highlight;
  }
}
.lesson-page .tool-note {
  margin: 14px 0 0;
  font: 14px/1.5 var(--ui);
  color: var(--ink);
}

.tool-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: 600 16px var(--display);
  cursor: pointer;
}

.tool-key.filled {
  background: var(--accent);
  color: var(--bg);
}

.tool-key:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.tool-key:disabled, .steps-keys .tool-key[aria-disabled=true] {
  border-color: var(--line);
  color: var(--dim);
  cursor: default;
}

.tool-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 15px var(--ui);
  color: var(--ink);
}

section.tool .did-not-start {
  margin: 10px 0 0;
  font: 14px/1.45 var(--ui);
  color: var(--ink);
}

section.tool .did-not-start button {
  min-height: 44px;
  margin-left: 8px;
}

.steps-ui {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.steps-ui > *, .steps-main > * {
  min-width: 0;
}

.steps-ui [hidden] {
  display: none !important;
}

.steps-main {
  display: contents;
}

.steps-map {
  grid-column: 1/-1;
  grid-row: 1;
}

.lesson-page .steps-map figure.fig {
  margin: 0;
}

.steps-reading {
  grid-column: 1/-1;
  grid-row: 2;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  align-self: start;
}

.steps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.steps-count, .steps-item .lbl {
  font: 600 13px var(--ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.steps-card {
  display: grid;
}

.steps-item {
  grid-area: 1/1;
  visibility: hidden;
}

.steps-item.steps-current {
  visibility: visible;
}

.lesson-page .steps-item p {
  margin: 0;
}

.lesson-page .steps-item .tip {
  margin-top: 12px;
  color: var(--dim);
  font: 14px/1.5 var(--ui);
}

.steps-keys {
  grid-column: 1/-1;
  grid-row: 3;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
}

.steps-keys .tool-key {
  flex: 1 0 auto;
  min-width: 80px;
  padding: 0 10px;
  font-size: 14px;
  white-space: nowrap;
}

.steps-ui > .mv-hand {
  grid-column: 1;
  grid-row: 4;
}

.steps-ui .mv-hand .tile {
  min-height: 44px;
  padding: 0 6px;
  gap: 4px;
  font-size: 13px;
}

.steps-ui .mv-hand input:checked + .tile {
  padding: 0 5px;
}

.steps-ui .mv-hand .mv-tick {
  width: 10px;
  height: 10px;
}

.steps-ui .mv-hand .words {
  white-space: nowrap;
}

.steps-wait {
  grid-column: 2;
  grid-row: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 14px var(--ui);
}

.steps-wait select {
  min-height: 44px;
  border: 1px solid var(--dim);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.steps-line {
  grid-column: 1/-1;
  grid-row: 5;
}

.lesson-page .steps-line, .lesson-page .steps-marked, .lesson-page .steps-map-note {
  margin: 0;
  font: 14px/1.5 var(--ui);
  color: var(--dim);
}

.steps-ui :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.steps-free {
  position: relative;
  padding-right: 38px !important;
}

.steps-free::after {
  content: "";
  position: absolute;
  right: 8px;
  width: 24px;
  height: 14px;
  border: 1px solid var(--accent);
  border-radius: 10px;
}

.steps-free::before {
  content: "";
  position: absolute;
  right: 21px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.steps-free[aria-checked=true]::before {
  right: 11px;
}

@supports (animation-timeline: scroll()) {
  .steps-keys {
    animation: row-more linear both;
    animation-timeline: scroll(self inline);
    mask-image: linear-gradient(to right, #000 calc(100% - var(--row-more)), transparent);
  }
}
@media (max-width: 599px) {
  .steps-read {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
  }
  .steps-read::before {
    content: "▷";
    font: 24px var(--ui);
  }
  .steps-read.is-reading::before {
    content: "■";
  }
}
@media (max-width: 379px) {
  .steps-keys {
    gap: 0;
    padding-inline: 0;
  }
  .steps-keys .tool-key {
    padding: 0 6px;
    font-size: 13px;
  }
  .steps-keys .tool-key:focus-visible {
    outline-offset: -3px;
  }
  .steps-keys .steps-free {
    padding-left: 2px;
    padding-right: 22px !important;
  }
  .steps-free::after {
    right: 2px;
    width: 16px;
    height: 12px;
  }
  .steps-free::before {
    right: 12px;
    width: 7px;
    height: 7px;
  }
  .steps-free[aria-checked=true]::before {
    right: 5px;
  }
}
@media (max-width: 359px) {
  .steps-ui .mv-hand .nm {
    font-size: 0;
  }
  .steps-ui .mv-hand input[value=right] + .tile .nm::after {
    content: "Right";
    font-size: 13px;
  }
  .steps-ui .mv-hand input[value=left] + .tile .nm::after {
    content: "Left";
    font-size: 13px;
  }
}
@media (min-width: 600px) and (max-width: 1039px) {
  .steps-ui {
    grid-template-columns: 240px minmax(0, 1fr) auto;
  }
  .steps-map {
    grid-column: 1;
    grid-row: 1/span 4;
  }
  .steps-reading {
    grid-column: 2/-1;
    grid-row: 1;
  }
  .steps-keys {
    grid-column: 2/-1;
    grid-row: 2;
  }
  .steps-ui > .mv-hand {
    grid-column: 2;
    grid-row: 3;
  }
  .steps-wait {
    grid-column: 3;
    grid-row: 3;
  }
  .steps-line {
    grid-column: 2/-1;
    grid-row: 4;
  }
}
@media (min-width: 1040px) {
  .steps-ui {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 4px;
  }
  .steps-main {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 12px;
    grid-column: 1/-1;
    grid-row: 1;
  }
  .steps-map {
    grid-column: 1;
    grid-row: 1;
  }
  .steps-reading {
    grid-column: 2;
    grid-row: 1;
  }
  .steps-keys {
    grid-column: 1;
    grid-row: 2;
    gap: 4px;
  }
  .steps-keys .tool-key {
    font-size: 13px;
  }
  .steps-keys .steps-free {
    min-width: 140px;
  }
  .steps-ui > .mv-hand {
    grid-column: 2;
    grid-row: 2;
    gap: 4px;
  }
  .steps-wait {
    grid-column: 3;
    grid-row: 2;
    gap: 4px;
  }
  .steps-line {
    grid-column: 1/-1;
    grid-row: 3;
  }
}
@media (min-width: 1440px) {
  .steps-ui:not(.steps-without-map) {
    grid-template-columns: minmax(0, 1fr) auto 280px;
    column-gap: 12px;
    margin-right: -292px;
  }
  .steps-ui:not(.steps-without-map) > .steps-main {
    display: contents;
  }
  .steps-ui:not(.steps-without-map) .steps-map {
    grid-column: 3;
    grid-row: 1/span 4;
    position: sticky;
    top: 96px;
  }
  .steps-ui:not(.steps-without-map) .steps-reading {
    grid-column: 1/3;
    grid-row: 1;
  }
  .steps-ui:not(.steps-without-map) > .steps-keys {
    grid-column: 1/3;
    grid-row: 2;
  }
  .steps-ui:not(.steps-without-map) > .mv-hand {
    grid-column: 1;
    grid-row: 3;
  }
  .steps-ui:not(.steps-without-map) > .steps-wait {
    grid-column: 2;
    grid-row: 3;
  }
  .steps-ui:not(.steps-without-map) > .steps-line {
    grid-column: 1/3;
    grid-row: 4;
  }
}
.steps-ui.steps-without-map {
  display: flex;
  flex-direction: column;
}

.steps-without-map > .steps-main {
  display: contents;
}

.steps-without-map .steps-reading, .steps-without-map > .steps-keys {
  width: 100%;
  box-sizing: border-box;
}

.round-ui {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.round-main {
  min-width: 0;
}

.round-face {
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 8px;
  text-align: center;
  min-height: 230px;
  container-type: inline-size;
}

.round-state {
  color: var(--accent);
  font: 600 22px/1.3 var(--display);
}

.round-clock {
  display: block;
  width: 100%;
  font: 600 64px/1.2 var(--display);
  font-size: min(64px, 35cqw);
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
}

.round-call-line {
  min-height: 56px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
}

.round-call {
  font: 600 40px/1.2 var(--display);
}

.round-call-name {
  font: 18px/1.4 var(--display);
  color: var(--dim);
}

.round-warning {
  font: 600 16px/1.4 var(--ui);
  color: var(--warn);
}

.round-face[data-state=rest] .round-state {
  color: var(--gold);
}

.round-face.round-warn .round-clock {
  color: var(--warn);
}

.round-keys {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  overflow-x: auto;
}

.round-keys .tool-key {
  padding: 0 12px;
  flex: 1 0 auto;
}

.round-keys .filled {
  min-width: 96px;
}

.round-keys .tool-switch {
  border: 0;
  background: transparent;
  padding: 0 2px;
  cursor: pointer;
  flex: 0 0 auto;
  gap: 6px;
}

.round-keys .tool-switch::after {
  content: "";
  width: 30px;
  height: 18px;
  box-sizing: border-box;
  border: 2px solid var(--dim);
  border-radius: 12px;
  background: var(--bg);
}

.round-keys .tool-switch[aria-checked=true]::after {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset -10px 0 var(--bg);
}

.round-keys .tool-switch:focus-visible, .round-setting select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.timer-settings {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.timer-settings-time, .timer-settings-calls {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 4px;
}

.round-setting {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 14px/1.4 var(--ui);
  color: var(--dim);
}

.round-setting select {
  box-sizing: border-box;
  width: 100%;
  min-width: 60px;
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--dim);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.4 var(--ui);
  opacity: 1;
}

.round-setting select:disabled {
  color: var(--dim);
  cursor: default;
}

.timer-settings-calls .round-setting:first-child {
  flex: 2 1 0;
}

.lesson-page .round-list {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.round-list li {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  font: 18px/1.4 var(--display);
}

.round-list li.active {
  border-left: 4px solid var(--accent);
  font-weight: 600;
}

.round-list li span {
  font-variant-numeric: tabular-nums;
}

.lesson-page .round-lock, .lesson-page .round-notice, .lesson-page .round-audio-note, .lesson-page .round-wake-note {
  margin: 0;
  font: 14px/1.5 var(--ui);
  color: var(--dim);
}

.round-notice:empty, .round-audio-note:empty, .round-wake-note:empty {
  display: none;
}

@media (min-width: 600px) and (max-width: 1039px) {
  .round-ui {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  .timer-settings {
    grid-column: 2;
    grid-row: 1;
  }
  .timer-settings-time, .timer-settings-calls {
    flex-direction: column;
  }
  .round-lock, .round-notice, .round-audio-note, .round-wake-note {
    grid-column: 1/-1;
  }
}
@media (min-width: 1040px) {
  .round-ui {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .round-clock {
    font-size: 96px;
  }
  .lesson-page .round-list {
    display: block;
  }
  .timer-settings {
    grid-column: 1/-1;
    display: flex;
  }
  .timer-settings-time {
    flex: 3;
  }
  .timer-settings-calls {
    flex: 3;
  }
  .round-lock, .round-notice, .round-audio-note, .round-wake-note {
    grid-column: 1/-1;
  }
}
@media (min-width: 1440px) {
  .round-main {
    grid-row: 1/span 2;
  }
  .timer-settings {
    grid-column: 2;
    display: grid;
  }
}
.round-clock .round-digit {
  display: inline-block;
  width: 0.62em;
}

.round-clock .round-colon {
  display: inline-block;
  width: 0.28em;
}

.lesson-page section.tool[data-tool=rounds] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

section.tool[data-tool=rounds] > h3, section.tool[data-tool=rounds] > h4 {
  grid-area: 1/1;
}

section.tool[data-tool=rounds] > .tool-plain, section.tool[data-tool=rounds] > .round-ui {
  grid-area: 2/1;
  min-height: 500px;
}

section.tool[data-tool=rounds] > .tool-note {
  grid-area: 3/1;
}

.round-plain-held {
  visibility: hidden;
}

.round-ui {
  align-content: start;
}

@media (min-width: 600px) and (max-width: 1039px) {
  section.tool[data-tool=rounds] > .tool-plain, section.tool[data-tool=rounds] > .round-ui {
    min-height: 450px;
  }
}
@media (min-width: 1040px) {
  section.tool[data-tool=rounds] > .tool-plain, section.tool[data-tool=rounds] > .round-ui {
    min-height: 420px;
  }
}
@media (min-width: 1440px) {
  .round-ui {
    width: calc(100% + 344px);
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 24px;
  }
}
.clip {
  scroll-margin-top: 96px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.lesson-page .video-head {
  margin: 16px 0 8px;
  font: 15px/1.5 var(--ui);
}

.lesson-page .clip-label {
  margin: 0 0 6px;
  font: 600 18px/1.35 var(--display);
}

.lesson-page .clip-row, .lesson-page .clip-stop {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 6px 0;
  font: 14px/1.4 var(--ui);
  white-space: nowrap;
  overflow-x: auto;
}

.clip-row > *, .clip-stop > * {
  flex: 0 0 auto;
}

.clip-times, .clip-span, .mark-at {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.lesson-page .clip-stop {
  justify-content: space-between;
}

.lesson-page .clip-summary, .lesson-page .clip-watch {
  margin: 8px 0;
}

.lesson-page .clip-marks {
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.clip-stop a, .clip-marks a, .video-out a, .video-clips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.clip-marks a {
  gap: 10px;
}

.clip a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.video-fold {
  border-bottom: 1px solid var(--line);
}

.video-fold summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
}

.video-clips {
  list-style: none;
  padding: 0;
}

.video-clips a {
  gap: 12px;
}

section[data-tool=clip] [hidden], .clip-sheet [hidden] {
  display: none !important;
}

.clip-stage {
  container: clip-stage/inline-size;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 12px 0 18px;
}

.clip-frame {
  order: -1;
  width: 100%;
  height: 200px;
  background: var(--panel);
}

@container clip-stage (min-width: 356px) {
  .clip-frame {
    height: auto;
    aspect-ratio: 16/9;
  }
}
.clip-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.clip-controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 5px;
  margin: 5px -5px;
}

.clip-controls .tool-key {
  flex: 0 0 auto;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 14px;
}

.clip-repeat {
  flex: 0 0 auto;
  padding: 0 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.clip-repeat:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.clip-switch-track {
  position: relative;
  box-sizing: border-box;
  width: 32px;
  height: 20px;
  border: 1px solid var(--dim);
  border-radius: 999px;
  background: var(--panel);
}

.clip-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dim);
}

.clip-repeat[aria-checked=true] .clip-switch-track {
  border-color: var(--accent);
  background: var(--accent);
}

.clip-repeat[aria-checked=true] .clip-switch-track::after {
  left: 14px;
  background: var(--bg);
}

.clip-row .clip-play {
  order: 3;
  margin-left: auto;
  padding: 0 14px;
  min-width: 64px;
}

.clip-enhanced {
  min-width: 0;
}

.clip-enhanced .clip-times, .clip-enhanced .clip-span {
  color: var(--dim);
}

.clip-enhanced .clip-stop {
  display: none;
}

.clip-state {
  float: right;
  font: 600 14px/1.5 var(--ui);
  color: var(--accent);
}

.clip-playing {
  box-shadow: inset 3px 0 var(--accent);
  padding-left: 10px;
}

.tool-key.clip-mark {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 15px/1.4 var(--ui);
  text-align: left;
  margin: 0;
}

.clip-mark .mark-at {
  white-space: nowrap;
  color: var(--dim);
}

.tool-key.clip-mark[aria-current], .clip-mark[aria-current] .mark-at {
  color: var(--accent);
  font-weight: 700;
}

.clip-mark[aria-current]::before {
  content: "▶";
  margin-right: 8px;
}

.lesson-page .clip-status {
  margin: 8px 0;
  font: 15px/1.5 var(--ui);
}

.clip-status.clip-failed::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  margin-right: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--warn);
  font-weight: 700;
}

.clip-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clip-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.lesson-page .clip-privacy {
  margin: 14px 0;
  font: 14px/1.5 var(--ui);
  color: var(--dim);
}

.clip-privacy a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-right: 12px;
}

.clip-rates {
  border: 0;
  padding: 0;
  margin: 8px 0;
}

.clip-rates legend {
  font: 500 14px var(--ui);
}

.clip-rate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-right: 12px;
  font: 15px var(--ui);
}

.clip-rate input {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
}

.clip-sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: 600px;
  max-height: 80dvh;
  margin: auto auto 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  background: var(--bg);
  color: var(--ink);
}

.clip-sheet::backdrop {
  background: rgba(0, 0, 0, 0.5333333333);
}

.clip-sheet-options {
  display: grid;
  gap: 12px;
}

.clip-sheet .clip-repeat {
  justify-content: space-between;
}

.clip-sheet-open {
  overflow: hidden;
}

@media (max-width: 599px) {
  .clip-privacy a {
    display: flex;
    min-height: 44px;
  }
  .clip-controls .tool-key {
    flex: 1 0 auto;
    padding: 0 10px;
  }
  .clip-row {
    gap: 8px;
  }
}
@media (min-width: 600px) and (max-width: 1039px) {
  .tool[data-tool=clip] .video {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  .video > .video-head, .video > .clip-stage, .video > .clip-privacy {
    grid-column: 1/-1;
  }
}
@media (min-width: 1040px) and (max-width: 1439px) {
  .clip-enhanced {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: center;
  }
  .clip-enhanced .clip-label {
    margin: 0;
  }
  .clip-enhanced .clip-summary, .clip-enhanced .clip-watch, .clip-enhanced .clip-marks {
    grid-column: 1/-1;
  }
}
@media (min-width: 1440px) {
  .pg-lesson .video:has(> .clip-stage) {
    display: grid;
    width: calc(100% + 312px);
    grid-template-columns: minmax(0, 1fr) 280px;
    column-gap: 32px;
    align-items: start;
  }
  .pg-lesson .video:has(> .clip-stage) > .video-head {
    grid-column: 1/-1;
    grid-row: 1;
    max-width: calc(100% - 312px);
  }
  .pg-lesson .video:has(> .clip-stage) > .clip-stage {
    grid-column: 1;
    grid-row: 2/span 20;
  }
  .pg-lesson .video:has(> .clip-stage) > .clip {
    grid-column: 2;
  }
  .pg-lesson .video:has(> .clip-stage) > .clip-privacy {
    grid-column: 1/-1;
  }
}
@supports (animation-timeline: scroll()) {
  .clip-controls, .clip-row {
    animation: row-more linear both;
    animation-timeline: scroll(self inline);
    mask-image: linear-gradient(to right, #000 calc(100% - var(--row-more)), transparent);
  }
}
.pose-controls {
  margin-top: 16px;
}

.lesson-page section.tool .pose-note, .lesson-page section.tool .pose-limit {
  margin: 8px 0;
  font: 14px/1.5 var(--ui);
  color: var(--dim);
}

.pose-power, .pose-cues, .pose-clear, .pose-again {
  min-height: 44px;
}

.pose-power {
  width: 100%;
  white-space: normal;
}

.pose-cues {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 8px 0;
  color: var(--ink);
  background: transparent;
  font: 16px var(--ui);
}

.pose-cues::after {
  content: "";
  flex: none;
  width: 40px;
  height: 24px;
  box-sizing: border-box;
  border: 1px solid var(--dim);
  border-radius: 999px;
  background: radial-gradient(circle at 11px 11px, var(--dim) 0 8px, transparent 8.5px) var(--bg);
}

.pose-cues[aria-checked=true]::after {
  border-color: var(--accent);
  background: radial-gradient(circle at 28px 11px, var(--bg) 0 8px, transparent 8.5px) var(--accent);
}

.lesson-page section.tool .pose-heading {
  font: 600 13px/1.4 var(--ui);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.lesson-page section.tool .pose-status {
  font: 14px/1.5 var(--ui);
  margin: 8px 0;
  color: var(--ink);
}

.pose-status:empty {
  display: none;
}

.lesson-page section.tool .pose-readings {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.pose-row {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.pose-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.pose-name, .pose-value {
  font: 500 24px/1.25 var(--ui);
  white-space: normal;
  letter-spacing: -0.035em;
}

.pose-name {
  font-family: var(--display);
}

.pose-value {
  color: var(--dim);
}

.pose-row[data-reading=right] .pose-value {
  color: var(--accent);
}

.pose-row[data-reading=adjust] .pose-value {
  color: var(--gold);
}

.lesson-page section.tool .pose-cue {
  margin: 6px 0 0;
  font: 14px/1.5 var(--ui);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.pose-count {
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.pose-count-name {
  font: 500 24px/1.3 var(--display);
}

.pose-count-number {
  font: 600 40px/1.1 var(--display);
  font-variant-numeric: lining-nums tabular-nums;
}

.pose-clear {
  margin-top: 8px;
}

.pose-announcement, .pose-count-announcement, .pose-status-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pose-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
  pointer-events: none;
}

.pose-bone-back {
  stroke: #0C1017;
  stroke-width: 5px;
}

.pose-bone {
  stroke: #FAF8F6;
  stroke-width: 2px;
}

.pose-joint {
  fill: #FAF8F6;
  stroke: #0C1017;
  stroke-width: 1px;
}

@media (min-width: 600px) and (max-width: 1439px) {
  section.tool[data-cam=on]:has(.pose-results) .cam-body {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  }
}
.top-tools .theme .ico.sun {
  display: none;
}

[data-theme=dark] .top-tools .theme .ico.moon {
  display: none;
}

@media (max-width: 599px) {
  [data-theme=dark] .top-tools .theme .ico.sun {
    display: block;
  }
}
.pg-front, .pg-missing {
  font-variant-numeric: tabular-nums;
}

html:has(> body.pg-front), html:has(> body.pg-missing) {
  scroll-padding-top: 64px;
  scroll-behavior: auto;
}

.pg-front .lay, .pg-missing .lay {
  position: relative;
  isolation: isolate;
  max-width: 1180px;
  padding: 0 16px 40px;
}

.pg-front main, .pg-missing main {
  padding-top: 0;
}

.pg-front .lay::before, .pg-missing .lay::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(100%, 900px);
  height: 360px;
  pointer-events: none;
  background: url("contours.svg") right top/1100px auto no-repeat;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent);
  mask-image: linear-gradient(to bottom, #000 20%, transparent);
}

[data-theme=dark] .pg-front .lay::before, [data-theme=dark] .pg-missing .lay::before {
  opacity: 0.06;
}

.pg-front h1, .pg-front h2, .pg-front h3, .pg-front h4, .pg-missing h1 {
  text-wrap: balance;
}

.pg-front h2:focus, .pg-front h3:focus, .pg-front h4:focus {
  outline: none;
}

.pg-front h2:focus-visible, .pg-front h3:focus-visible, .pg-front h4:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.front h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font: 600 calc(32px * var(--text-scale, 1))/1.1 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
  scroll-margin-top: 64px;
}

.pg-front .top, .pg-missing .top {
  height: calc(48px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(8px, env(safe-area-inset-right));
}

.pg-front .top-tools, .pg-missing .top-tools {
  margin-left: auto;
}

@media (min-width: 300px) and (max-width: 599px) {
  .pg-front .top .brand span, .pg-missing .top .brand span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}
.site-nav {
  display: none;
  flex: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--ink);
  font: 500 15px var(--ui);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-nav .site-format {
  display: none;
}

@media (min-width: 768px) {
  .site-nav .site-format {
    display: inline-flex;
  }
}
@media (min-width: 600px) {
  .site-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }
  .pg-front .top, .pg-missing .top {
    padding-left: 24px;
    padding-right: 24px;
  }
  .pg-front .lay, .pg-missing .lay {
    padding: 0 24px 48px;
  }
}
@media (min-width: 1040px) {
  .pg-front .top, .pg-missing .top {
    height: 56px;
    padding: 0 max(24px, (100vw - 1180px) / 2 + 24px);
  }
}
@media (min-width: 1440px) {
  .pg-front .lay, .pg-missing .lay {
    max-width: 1380px;
  }
  .pg-front .top, .pg-missing .top {
    padding: 0 max(24px, (100vw - 1380px) / 2 + 24px);
  }
}
.filled-key {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 200px;
  max-width: 100%;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg);
  font: 600 calc(18px * var(--text-scale, 1))/1.3 var(--ui);
  text-decoration: none;
  white-space: nowrap;
}

.filled-key:hover {
  background: color-mix(in srgb, var(--accent) 86%, var(--ink));
  border-color: color-mix(in srgb, var(--accent) 86%, var(--ink));
}

.filled-key:active {
  background: color-mix(in srgb, var(--accent) 72%, var(--ink));
}

@media (prefers-reduced-motion: no-preference) {
  .filled-key {
    transition: background-color 150ms ease, border-color 150ms ease;
  }
}
.claim {
  padding: 18px 0 0;
}

@media (min-width: 600px) and (max-width: 1039px) {
  .claim {
    padding-top: 28px;
  }
}
.claim h1 {
  margin: 0 0 12px;
  font: 600 calc(clamp(28px, 8.8vw, 44px) * var(--text-scale, 1))/1.06 var(--display);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.claim h1 .nb, .claim .lead .nb {
  white-space: nowrap;
}

.claim .lead {
  margin: 0 0 16px;
  max-width: 34em;
  font: 400 calc(18px * var(--text-scale, 1))/1.45 var(--ui);
  color: var(--ink);
}

.claim .lead .format-link {
  position: relative;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.claim .lead .format-link::after {
  content: "";
  position: absolute;
  inset: -12px -4px;
}

.claim .lead .format-link:hover {
  text-decoration-thickness: 3px;
}

.claim-key {
  margin: 0;
}

.claim-place {
  margin: 8px 0 0;
  font: 400 calc(15px * var(--text-scale, 1))/1.4 var(--ui);
  color: var(--dim);
}

.claim-place:empty {
  display: none;
}

.claim-format {
  display: none;
  margin: 12px 0 0;
}

.outlined-key {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 10px 18px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: 600 calc(18px * var(--text-scale, 1))/1.3 var(--ui);
  text-decoration: none;
  white-space: nowrap;
}

.outlined-key:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.outlined-key:active {
  background: color-mix(in srgb, var(--accent) 22%, var(--bg));
}

@media (prefers-reduced-motion: no-preference) {
  .outlined-key {
    transition: background-color 150ms ease;
  }
}
@media (min-width: 600px) {
  .claim-format {
    display: block;
  }
}
.catalogue {
  padding: 26px 0 0;
  --bw: 8px;
  --bh: 12px;
  --bgap: 2px;
  --bn: 1;
  --bcol: calc(var(--bn) * (var(--bw) + var(--bgap)) - var(--bgap));
}

.catalogue.bw-1 {
  --bn: 1;
}

.catalogue.bw-2 {
  --bn: 2;
}

.catalogue.bw-3 {
  --bn: 3;
}

.catalogue.bw-4 {
  --bn: 4;
}

.catalogue.bw-5 {
  --bn: 5;
}

.catalogue.bw-6 {
  --bn: 6;
}

.catalogue.bw-7 {
  --bn: 7;
}

.catalogue.bw-8 {
  --bn: 8;
}

.catalogue.bw-9 {
  --bn: 9;
}

.catalogue.bw-10 {
  --bn: 10;
}

.catalogue.bw-11 {
  --bn: 11;
}

.catalogue.bw-12 {
  --bn: 12;
}

.catalogue.bw-13 {
  --bn: 13;
}

.catalogue.bw-14 {
  --bn: 14;
}

.catalogue.bw-15 {
  --bn: 15;
}

.catalogue.bw-16 {
  --bn: 16;
}

.catalogue.bw-17 {
  --bn: 17;
}

.catalogue.bw-18 {
  --bn: 18;
}

.catalogue > h2 {
  margin-bottom: 10px;
}

.subject {
  margin: 0;
}

.subject + .subject {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.subject-name {
  margin: 0;
  padding: 6px 0 0;
  font: 600 calc(13px * var(--text-scale, 1))/1.4 var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  scroll-margin-top: 64px;
}

.subject-name a {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
}

.subject-name a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cross {
  margin: 0;
  font: 400 calc(15px * var(--text-scale, 1))/1.5 var(--ui);
  color: var(--dim);
}

.cross a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legend {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font: 400 calc(14px * var(--text-scale, 1))/1.45 var(--ui);
  color: var(--dim);
}

.catalogue-empty {
  margin: 0 0 4px;
  max-width: 34em;
  font: 400 calc(18px * var(--text-scale, 1))/1.5 var(--ui);
  color: var(--ink);
}

.catalogue-way {
  margin: 0;
}

.catalogue-way a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  color: var(--accent);
  font: 600 calc(17px * var(--text-scale, 1))/44px var(--display);
  text-underline-offset: 4px;
}

.subject-index {
  margin: 0 0 8px;
}

.subject-index ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  margin: 0;
  padding: 0 32px 0 0;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}

.subject-index ul::-webkit-scrollbar {
  display: none;
}

.subject-index li {
  flex: none;
}

.subject-index a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  color: var(--accent);
  font: 500 calc(15px * var(--text-scale, 1))/44px var(--ui);
  text-decoration: none;
}

.subject-index a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 599px) {
  .subject-name a {
    min-height: 44px;
    line-height: 44px;
    vertical-align: top;
    margin: -14px 0 -9px;
  }
  .cross a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--bcol);
  grid-template-areas: "title blocks" "meta meta" "learner learner";
  column-gap: 12px;
  align-items: center;
  box-sizing: border-box;
  min-height: 64px;
  padding: 9px 0;
  color: var(--ink);
  text-decoration: none;
}

.row:hover {
  background: var(--panel);
}

.row-title {
  grid-area: title;
  margin: 0;
  padding: 0;
  border: 0;
  font: 600 calc(20px * var(--text-scale, 1))/1.2 var(--display);
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.row:hover .row-title {
  text-decoration-color: currentColor;
}

.row:visited .row-title {
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .row-title {
    transition: text-decoration-color 150ms ease;
  }
}
.row-blocks {
  grid-area: blocks;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: var(--bcol);
}

.ub-row {
  display: flex;
  align-items: flex-end;
  gap: var(--bgap);
  height: var(--bh);
}

.ub {
  flex: none;
  box-sizing: border-box;
  width: var(--bw);
  height: var(--bh);
  border: 1px solid var(--accent);
  border-radius: 2px;
  transform: skew(-7deg);
}

.ub.short {
  height: calc(var(--bh) / 4);
  border-color: var(--dim);
}

.ub.filled {
  background: var(--accent);
}

.row-summary {
  grid-area: summary;
  display: none;
  margin: 0;
  font: 400 calc(16px * var(--text-scale, 1))/1.45 var(--ui);
  color: var(--dim);
}

.row-meta {
  grid-area: meta;
  display: block;
  font: 400 calc(15px * var(--text-scale, 1))/1.4 var(--ui);
  color: var(--dim);
}

.row-facts, .row-builds {
  display: block;
}

.row-learner {
  grid-area: learner;
  font: 500 calc(15px * var(--text-scale, 1))/1.4 var(--ui);
  color: var(--accent);
}

.row-learner:empty {
  display: none;
}

@media (max-width: 359px) {
  .row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "meta" "blocks" "learner";
    row-gap: 2px;
  }
  .row-blocks {
    margin-top: 4px;
  }
}
@media (min-width: 600px) {
  .catalogue {
    padding-top: 32px;
    --bw: 12px;
    --bh: 16px;
    --bgap: 3px;
  }
  .catalogue > h2 {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
  }
  .front h2 {
    font-size: calc(34px * var(--text-scale, 1));
  }
  .subject {
    display: grid;
    grid-template-columns: minmax(140px, 25%) minmax(0, 1fr);
    column-gap: 20px;
    padding-top: 4px;
  }
  .subject + .subject {
    margin-top: 0;
    padding-top: 4px;
  }
  .subject.plain {
    display: block;
  }
  .subject-name {
    padding-top: 22px;
  }
  .subject-name a {
    min-height: 24px;
    line-height: 24px;
  }
  .row {
    grid-template-areas: "title blocks" "summary summary" "meta learner";
    row-gap: 4px;
    min-height: 72px;
    padding: 14px 0;
    align-items: start;
  }
  .row-title {
    font-size: calc(22px * var(--text-scale, 1));
  }
  .row-blocks {
    margin-top: 5px;
  }
  .row-summary {
    display: block;
    max-width: 34em;
  }
  .row-meta {
    display: flex;
    flex-wrap: wrap;
    column-gap: 14px;
  }
  .row-learner {
    justify-self: end;
    text-align: right;
  }
  .rows > li + li {
    border-top: 1px solid var(--line);
  }
  .legend {
    margin-left: calc(max(140px, 25%) + 20px);
  }
  .subject.plain ~ .legend, .catalogue:has(.subject.plain) .legend {
    margin-left: 0;
  }
}
@media (min-width: 1040px) {
  .first {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 48px;
    align-items: start;
    padding-top: 36px;
  }
  .claim {
    padding: 0;
  }
  .claim.holds {
    position: sticky;
    top: 92px;
  }
  .claim h1 {
    font-size: calc(clamp(36px, 3.5vw, 42px) * var(--text-scale, 1));
    margin-top: -4px;
  }
  .claim .lead {
    font-size: calc(19px * var(--text-scale, 1));
  }
  .catalogue {
    padding-top: 0;
  }
  .catalogue > h2 {
    padding-bottom: 0;
    border-bottom: 0;
    margin-bottom: 4px;
  }
  .subject, .subject + .subject {
    display: block;
    padding-top: 0;
    border-top: 0;
  }
  .subject-name {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0 0;
  }
  .subject-name::after {
    content: "";
    flex: 1 1 auto;
    border-top: 1px solid var(--line);
  }
  .legend {
    margin-left: 0;
  }
}
@media (min-width: 1440px) {
  .first {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 56px;
  }
  .claim h1 {
    font-size: calc(40px * var(--text-scale, 1));
  }
  .row {
    grid-template-columns: min(25%, 15.5em) minmax(0, 1fr) var(--bcol);
    grid-template-areas: "title summary blocks" "meta summary learner";
    column-gap: 24px;
  }
  .row-summary {
    max-width: none;
    font-size: calc(15px * var(--text-scale, 1));
  }
  .row-meta {
    display: block;
    font-size: calc(14px * var(--text-scale, 1));
  }
  .row-learner {
    justify-self: start;
    text-align: left;
    font-size: calc(14px * var(--text-scale, 1));
  }
}
.sample {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.sample-lead {
  margin: 6px 0 14px;
  font: 400 calc(16px * var(--text-scale, 1))/1.45 var(--ui);
  color: var(--dim);
}

.sample-rail {
  display: none;
}

.sample-lesson {
  max-width: 100%;
}

.sample-head {
  margin-top: 0;
}

.sample-head h3 {
  margin: 0 0 8px;
  font: 600 calc(clamp(30px, 8.4vw, 38px) * var(--text-scale, 1))/1.1 var(--display);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.sample-head .listen {
  min-height: 48px;
}

.sample-lesson .th.lesson > .blk.lm > h4 {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  font: 600 calc(clamp(24px, 6.6vw, 30px) * var(--text-scale, 1))/1.15 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.sample-lesson .th.lesson > .blk.lm > h4 .n {
  position: static;
  display: inline;
  flex: none;
  min-width: 0.8em;
  height: auto;
  margin-right: 14px;
  padding: 0 14px 0 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: none;
  font: 500 1.25em/1.1 var(--display);
  color: var(--accent);
}

@media not print {
  .js .sample-lesson .th.lesson > section[id] > h4 {
    padding-right: 44px;
    min-height: 32px;
  }
  .js .sample-lesson .th.lesson > section[id] > h4 > .listen-here {
    margin-right: -44px;
  }
}
article.sample-lesson .now-reading > h4, article.sample-lesson .now-reading > h4 .n {
  color: var(--accent);
}

.sample-lesson .ex-fold > summary {
  min-height: 44px;
}

.machine-fig {
  padding: 0;
}

.machines {
  padding: 16px 12px 6px;
}

.machine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.machine[hidden] {
  display: none;
}

.mc-io, .mc-rule {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.mc-label {
  font: 600 calc(15px * var(--text-scale, 1))/1.3 var(--ui);
  letter-spacing: 0.04em;
  color: var(--accent);
}

.mc-label i {
  font-family: var(--display);
}

.mc-num {
  box-sizing: border-box;
  min-width: 3.4em;
  padding: 4px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font: 600 calc(24px * var(--text-scale, 1))/1.3 var(--display);
  text-align: center;
  color: var(--ink);
}

.mc-box {
  box-sizing: border-box;
  max-width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font: 500 calc(15px * var(--text-scale, 1))/1.4 var(--mono);
  text-align: center;
  color: var(--ink);
}

.mc-arrow {
  position: relative;
  flex: none;
  width: 0;
  height: 18px;
  border-left: 1.5px solid var(--ink);
}

.mc-arrow::after {
  content: "";
  position: absolute;
  left: -5.5px;
  bottom: -1px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--ink);
}

.machine-keys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px;
}

.js .machine-keys {
  min-height: 44px;
}

.machine-key {
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  font: 600 calc(16px * var(--text-scale, 1))/1.2 var(--ui);
  white-space: nowrap;
  cursor: pointer;
}

.machine-key:hover {
  background: var(--accent-soft);
}

.machine-key:active {
  background: var(--accent);
  color: var(--bg);
}

.machine-key[aria-disabled=true] {
  border-color: var(--dim);
  color: var(--dim);
  background: transparent;
  cursor: default;
}

.machine-ends {
  margin: 0;
  padding: 6px 12px 10px;
  font: 400 calc(14px * var(--text-scale, 1))/1.4 var(--ui);
  color: var(--dim);
}

.js .machine-ends {
  min-height: calc(1.4em + 16px);
  box-sizing: border-box;
}

.turn {
  margin-top: 40px;
}

.turn h4 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font: 600 calc(clamp(24px, 6.6vw, 30px) * var(--text-scale, 1))/1.15 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.turn-q {
  margin: 0 0 12px;
  font: 400 calc(19px * var(--text-scale, 1))/1.5 var(--ui);
  color: var(--ink);
}

.turn-choices {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.turn-choices li {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 600 calc(18px * var(--text-scale, 1))/1.3 var(--ui);
}

.turn-fold summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--accent);
  font: 600 calc(16px * var(--text-scale, 1)) var(--ui);
  cursor: pointer;
}

.turn-fold p {
  margin: 0 0 8px;
  font: 400 calc(17px * var(--text-scale, 1))/1.5 var(--ui);
}

.turn-keys {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 10px;
}

.turn-key {
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  font: 600 calc(18px * var(--text-scale, 1))/1.3 var(--ui);
  text-align: left;
  cursor: pointer;
}

.turn-key:hover {
  background: var(--accent-soft);
}

.turn-key[aria-pressed=true][data-right=yes] {
  background: var(--okbg);
}

.turn-key[aria-pressed=true][data-right=yes]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 12px;
  margin: 0 14px 2px 4px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.turn-key[aria-pressed=true][data-right=no] {
  border-color: var(--warn);
  color: var(--warn);
  background: var(--warnbg);
}

.turn-said {
  margin: 0;
  font: 400 calc(16px * var(--text-scale, 1))/1.45 var(--ui);
}

.turn-said.right {
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--okbg);
  color: var(--accent);
}

.turn-said.wrong {
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--warnbg);
  color: var(--warn);
}

#transport.tp-bar .tp-step[aria-disabled=true] {
  color: var(--dim);
  opacity: 0.55;
  cursor: default;
}

.way-on {
  margin: 28px 0 0;
  padding: 16px 0 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.way-sentence {
  margin: 0 0 12px;
  font: 600 calc(20px * var(--text-scale, 1))/1.3 var(--display);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.way-key {
  margin: 0 0 10px;
}

.way-key .filled-key {
  width: 100%;
}

.way-place {
  margin: 0;
  font: 600 calc(15px * var(--text-scale, 1))/1.4 var(--ui);
  color: var(--dim);
}

.way-title {
  margin: 2px 0 0;
  font: 400 calc(15px * var(--text-scale, 1))/1.4 var(--ui);
  color: var(--dim);
  overflow-wrap: anywhere;
}

.way-all {
  margin: 0;
}

.way-all a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  color: var(--accent);
  font: 500 calc(16px * var(--text-scale, 1))/44px var(--ui);
  text-underline-offset: 4px;
}

@media (min-width: 600px) {
  .sample {
    margin-top: 56px;
    padding-top: 36px;
  }
  .sample-lesson {
    max-width: 34em;
    font-size: calc(18px * var(--text-scale, 1));
  }
  .machine {
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
  }
  .mc-arrow {
    width: 26px;
    height: 0;
    margin-bottom: 20px;
    border-left: 0;
    border-top: 1.5px solid var(--ink);
  }
  .mc-arrow::after {
    left: auto;
    right: -1px;
    bottom: auto;
    top: -5.5px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid var(--ink);
    border-right: 0;
  }
  .mc-box {
    max-width: 17em;
  }
  .machine-fig {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .machines {
    grid-column: 1/-1;
  }
  .machine-keys {
    grid-template-columns: auto auto;
    padding: 0 12px 0 0;
  }
  .machine-key {
    min-width: 104px;
  }
  .machine-ends {
    grid-column: 1/-1;
  }
  .turn-keys, .turn-choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .way-on {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "sentence key" "place key" "title key" "all key";
    column-gap: 24px;
    align-items: start;
    padding-bottom: 10px;
  }
  .way-sentence {
    grid-area: sentence;
  }
  .way-key {
    grid-area: key;
    align-self: center;
    margin: 0;
  }
  .way-key .filled-key {
    width: auto;
    min-width: 240px;
  }
  .way-place {
    grid-area: place;
  }
  .way-title {
    grid-area: title;
  }
  .way-all {
    grid-area: all;
  }
}
@media (min-width: 1040px) {
  .sample-lay {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr);
    column-gap: 40px;
    align-items: start;
  }
  .sample-rail {
    display: block;
    font-size: 14px;
  }
  .sample-rail.holds {
    position: sticky;
    top: 76px;
  }
  .sample-rail .toc-list li a {
    min-height: 36px;
  }
  .sample-lesson {
    max-width: none;
  }
}
@media (min-width: 1440px) {
  .sample-lay {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  }
  .sample-lesson .th.lesson {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 22rem);
    column-gap: 40px;
    align-items: start;
  }
  .sample-lesson .th.lesson > .blk {
    grid-column: 1;
    min-width: 0;
  }
  .sample-lesson .th.lesson > .blk.b-picture {
    display: contents;
  }
  .sample-lesson .th.lesson > .blk.b-picture > h4 {
    grid-column: 1;
    margin-top: 40px;
  }
  .sample-lesson .th.lesson > .blk.b-picture > .machine-fig {
    grid-column: 2;
    grid-row: 2/span 6;
    align-self: start;
    margin: 40px 0 0;
    display: block;
  }
  .sample-lesson .th.lesson > .blk.b-picture > .machine-fig.holds {
    position: sticky;
    top: 76px;
  }
  .machine-fig .machine {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .machine-fig .mc-arrow {
    width: 0;
    height: 18px;
    margin-bottom: 0;
    border-top: 0;
    border-left: 1.5px solid var(--ink);
  }
  .machine-fig .mc-arrow::after {
    right: auto;
    left: -5.5px;
    top: auto;
    bottom: -1px;
    border: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--ink);
  }
  .machine-fig .machine-keys {
    grid-template-columns: 1fr 1fr;
    padding: 0 12px;
  }
  .way-on {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 22rem);
    column-gap: 40px;
    grid-template-areas: "sentence key" "place all" "title all";
  }
  .way-key {
    align-self: start;
  }
  .way-key .filled-key {
    width: 100%;
  }
  .turn {
    max-width: calc(100% - 22rem - 40px);
  }
}
.pg-front .device-line {
  margin: 28px 0 0;
  padding: 0 0 4px;
}

.pg-front .device-line a {
  color: var(--dim);
}

@media (max-width: 599px) {
  .pg-front .device-line a {
    display: block;
  }
}
.pg-front .foot, .pg-missing .foot {
  display: block;
  box-sizing: border-box;
  max-width: 1180px;
  padding: 0 16px;
  border-top: 0;
}

.pg-front .foot p, .pg-missing .foot p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  margin: 0;
  padding: 12px 0 calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.pg-front .foot .foot-links, .pg-missing .foot .foot-links {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.pg-front .foot a, .pg-missing .foot a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

@media (min-width: 600px) {
  .pg-front .foot, .pg-missing .foot {
    padding: 0 24px;
  }
}
@media (min-width: 1440px) {
  .pg-front .foot, .pg-missing .foot {
    max-width: 1380px;
  }
}
.pg-missing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.pg-missing .lay {
  flex: 1 0 auto;
  box-sizing: border-box;
  width: 100%;
}

.pg-missing .foot {
  width: 100%;
}

.missing {
  max-width: 34em;
  padding: 48px 0 32px;
}

.missing h1 {
  margin: 0 0 12px;
  font: 600 calc(clamp(34px, 9.6vw, 48px) * var(--text-scale, 1))/1.06 var(--display);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.missing .lead {
  margin: 0 0 20px;
  font: 400 calc(19px * var(--text-scale, 1))/1.45 var(--ui);
  color: var(--ink);
}

.missing-ways {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
}

.missing-sample {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  color: var(--accent);
  font: 600 calc(18px * var(--text-scale, 1))/44px var(--display);
  text-underline-offset: 4px;
}

@media (min-width: 600px) {
  .missing-ways {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}
@media (min-width: 1040px) {
  .missing {
    max-width: 41.6666666667%;
    padding-top: 72px;
  }
}
@media (min-width: 1440px) {
  .missing {
    max-width: 33.3333333333%;
  }
}
@media print {
  .site-nav, .machine-keys, .machine-ends, .sample-rail, .subject-index {
    display: none !important;
  }
}
:root {
  --read-small: calc(15px * var(--text-scale, 1));
  --read-body: calc(18px * var(--text-scale, 1));
  --read-subhead: calc(22px * var(--text-scale, 1));
  --read-heading: calc(28px * var(--text-scale, 1));
  --read-title: calc(36px * var(--text-scale, 1));
}

.lesson-page, .th.lesson, section.ex {
  font-family: var(--ui);
  font-size: var(--read-body);
  line-height: 1.6;
}

.lesson-page .th.lesson {
  font-family: var(--ui);
  font-size: var(--read-body);
  line-height: 1.6;
}

.lesson-head h1 {
  font-size: var(--read-title);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.02em;
}

@media (max-width: 359px) {
  .lesson-head h1 {
    font-size: var(--read-heading);
  }
}
.th.lesson .blk > h2 {
  font-size: var(--read-heading);
  line-height: 1.25;
}

.th.lesson .blk > h2 .n {
  font-size: var(--read-subhead);
}

.th.lesson .blk > h3, .lesson-page .see h3 {
  font-size: var(--read-subhead);
  line-height: 1.3;
}

.th.lesson .blk h4:not(.ex-title), section.ex .ex-label {
  font-size: var(--read-body);
}

.lesson-head .where, .lesson-head .to-ladder, .lesson-head .to-practice,
.lesson-head .listen, .lesson-head .listen-line, .lesson-head .listen-line button,
.pg-lesson .toc-title, .pg-lesson .toc-list, .pg-lesson .toc-list li.lm .n,
.pg-lesson .toc-ways, .pg-lesson .top-tools button, .pg-lesson .toc-opener,
.pg-lesson .credit, .lesson-page .ex-src, .lesson-page .blk-say,
.th.lesson .fml, .th.lesson .wl, .th.lesson .fy b, .th.lesson .fno b,
.th.lesson .fq .fn, .th.lesson .src-read,
.th.lesson .compare-list dt, .th.lesson .tbl.compare th,
section.ex .ex-head, section.ex .ex-how, section.ex .ex-hint-n,
section.ex .ex-answer button, section.ex .ex-answer a.ex-button,
section.ex .ex-fold > summary, .lesson-page .practice-key {
  font-size: var(--read-small);
}

.th.lesson .plain, .th.lesson .facts, .th.lesson .rule-first,
section.ex .ex-q .q, section.ex .asks,
section.ex .steps .s, section.ex .steps .r, section.ex .ans,
section.ex .chk, section.ex .ex-typed input {
  font-size: var(--read-body);
  line-height: 1.6;
}

section.ex .steps .r {
  font-family: var(--ui);
}

section.ex .ex-title, .th.lesson .compare-list > h3, .th.lesson .tbl.compare caption {
  font-size: var(--read-subhead);
}

section.ex .ans b.lbl, section.ex .chk > b:first-child {
  font-size: var(--read-small);
}

.th.lesson .blk.remind > h3, .th.lesson .blk.remind > h4 {
  font-size: var(--read-subhead);
  line-height: 1.3;
}

.th.lesson .blk.remind {
  display: block;
}

.th.lesson .remind-fold > summary {
  display: block;
}

.js .lesson-page .remind-fold > summary {
  display: none;
}

.th.lesson p, .th.lesson .steps, .th.lesson .facts, section.ex .ex-q {
  max-width: 68ch;
}

@media (min-width: 1040px) {
  .pg-lesson .lay.with-aside {
    grid-template-columns: 220px minmax(0, 68ch);
  }
  .pg-lesson aside.contents {
    font-size: var(--read-small);
  }
}
.th.lesson .m, section.ex .m {
  font-size: 1em;
}

.th.lesson .s .m, section.ex .s .m {
  margin-block: 0.2em;
}

.pg-lesson .top-tools .ico {
  font-size: var(--read-subhead);
}

.pg-lesson dialog.prefs .pf-less, .pg-lesson dialog.toc-sheet,
.pg-lesson .toc-fold summary, .pg-lesson dialog.toc-sheet .toc-close {
  font-size: var(--read-small);
}

section.ex .ex-typed .ex-lead, section.ex .ex-typed .ex-unit {
  font-size: var(--read-body);
}

section.ex .ex-line, section.ex .ex-ask {
  font-size: var(--read-body);
}

section.ex .ex-kept, section.ex .ex-part-mark, section.ex .ex-part-label {
  font-size: var(--read-small);
}

.th.lesson .remind, .th.lesson .cx, .th.lesson .fy, .th.lesson .fno {
  font-size: var(--read-body);
}

.lesson-page .pn .pn-t {
  font-size: var(--read-small);
}

.th.lesson .tbl th, .lesson-page figure.fig figcaption.waits {
  font-size: var(--read-small);
}

.pg-lesson, .pg-practice, .pg-my {
  --ink: #151916;
  --dim: #424a44;
  --accent: #174d2d;
  --ok: var(--accent);
  --gold: var(--dim);
  --warn: var(--ink);
  --line: #68716a;
  --curve: var(--accent);
  --mid: var(--ink);
  --rule-edge: var(--accent);
  --okbg: var(--accent-soft);
  --accent-soft: #e6f0e8;
  --rulebg: #eef1ec;
  --goldbg: var(--rulebg);
  --warnbg: var(--rulebg);
}

[data-theme=dark] :is(.pg-lesson, .pg-practice, .pg-my) {
  --bg: #101210;
  --panel: #181c19;
  --ink: #fafbf9;
  --dim: #c7ccc8;
  --line: #828a84;
  --accent: #a7d7b7;
  --accent-soft: #1b2b20;
  --rulebg: #1c221e;
  --read-bg: #15261b;
  --read-line: #1b2f22;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]):not([data-theme=sepia]) :is(.pg-lesson, .pg-practice, .pg-my) {
    --bg: #101210;
    --panel: #181c19;
    --ink: #fafbf9;
    --dim: #c7ccc8;
    --line: #828a84;
    --accent: #a7d7b7;
    --accent-soft: #1b2b20;
    --rulebg: #1c221e;
    --read-bg: #15261b;
    --read-line: #1b2f22;
  }
}
.th.lesson .blk > h2, .th.lesson .blk > h3,
article.lesson-page .now-reading > h2, article.lesson-page .now-reading > h3,
article.lesson-page .now-reading > h2 .n,
.th.lesson .blk.now-reading > h2, .th.lesson .blk.now-reading > h3 {
  color: var(--ink);
}

.th.lesson .rule-first {
  color: var(--ink);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}

.th.lesson .blk.lm {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.th.lesson .blk.lm:first-child {
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
}

.th.lesson .blk.part {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.th.lesson p:not(.explorer p, section.tool p) {
  margin-bottom: 18px;
}

.th.lesson .b-why p, .th.lesson .b-trap p {
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.th.lesson .b-trap p {
  border-left-style: double;
  border-left-width: 4px;
}

.reading-tag, section.ex .ans b.lbl, section.ex .chk > b:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: 650 var(--read-small)/1.4 var(--ui);
  letter-spacing: 0;
  text-transform: none;
}

.th.lesson h2 .reading-tag {
  font-size: var(--read-body);
}

.reading-tag[data-reading-label=Rule] {
  border-left-width: 4px;
}

.reading-tag[data-reading-label=Trap] {
  border-style: double;
  border-width: 3px;
}

.reading-tag[data-reading-label=Tip], .reading-tag[data-reading-label=Trick] {
  border-radius: 12px;
}

section.ex .ex-q {
  margin-block: 18px;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--line);
}

section.ex .ex-q .q {
  color: var(--ink);
  font-weight: 550;
}

section.ex ol.steps {
  list-style: none;
  counter-reset: reading-step;
  padding: 0;
  margin: 22px 0;
}

section.ex ol.steps > li {
  counter-increment: reading-step;
  position: relative;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

section.ex ol.steps > li::before {
  content: "Step " counter(reading-step);
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: var(--ink);
  font: 650 var(--read-small)/1.4 var(--ui);
}

section.ex ol.steps .s {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

section.ex ol.steps .s {
  overflow-wrap: anywhere;
}

section.ex .reading-equation {
  display: block;
  margin-top: 8px;
}

section.ex ol.steps .r {
  display: block;
  margin: 10px 0 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--line);
  border-radius: 0;
  color: var(--dim);
  background: transparent;
  font-weight: 400;
}

section.ex ol.steps .r::before {
  content: "Why";
  display: block;
  font: 650 var(--read-small)/1.4 var(--ui);
  margin-bottom: 4px;
}

section.ex .ans {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--accent);
  border-left-width: 4px;
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: none;
  scroll-margin-top: 76px;
}

section.ex .ans b.lbl {
  display: flex;
  padding: 0;
  border: 0;
  border-radius: 0;
}

section.ex .chk {
  color: var(--dim);
}

.th.lesson .tips > ul {
  padding-left: 0;
  list-style: none;
}

.th.lesson .tips > ul > li {
  margin: 14px 0;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.th.lesson .tips > ul > li::before {
  content: attr(data-reading-label);
  display: block;
  margin-bottom: 4px;
  font: 650 var(--read-small)/1.4 var(--ui);
  color: var(--ink);
}

.th.lesson strong, .th.lesson b {
  font-weight: 700;
}

.th.lesson :is(u, .now-step) {
  text-decoration: none;
}

.th.lesson a {
  text-underline-offset: 0.18em;
}

.reading-term {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: underline dotted;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.reading-term-phrase {
  white-space: nowrap;
}

.reading-definition {
  max-width: min(32em, 100vw - 40px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font: var(--read-body)/1.6 var(--ui);
}

.reading-definition::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.reading-definition h2 {
  margin-top: 0;
  font: 650 var(--read-subhead)/1.3 var(--ui);
}

.reading-definition button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: 600 var(--read-small) var(--ui);
}

@media (forced-colors: active) {
  .reading-tag, section.ex .ans, section.ex ol.steps .r, section.ex ol.steps > li::before {
    border-color: CanvasText;
  }
  .reading-term {
    color: LinkText;
  }
}
@media print {
  .reading-term {
    text-decoration: none;
    pointer-events: none;
  }
}
@media screen {
  .js[data-reading-view=short] .lesson-page .th.lesson [data-reading-fold]:not([data-reading-open]) {
    display: none;
  }
}
.reading-view {
  display: inline-flex;
  flex: none;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--accent);
  border-radius: 6px;
}

.reading-view button {
  flex: none;
  box-sizing: border-box;
  min-width: 58px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: 600 var(--read-small)/1 var(--ui);
  cursor: pointer;
}

.reading-view button[aria-pressed=true] {
  color: var(--bg);
  background: var(--accent);
  box-shadow: inset 0 -3px 0 currentColor;
}

.lesson-head .reading-view-row {
  display: flex;
  margin: 12px 0 4px;
}

.lesson-head .reading-view-row:empty {
  display: none;
}

.reading-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 4px 0 10px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: 600 var(--read-small)/1.4 var(--ui);
  cursor: pointer;
}

.reading-more::before {
  content: "+";
  font-size: var(--read-body);
}

.reading-more[aria-expanded=true]::before {
  content: "−";
}

.reading-more[hidden] {
  display: none;
}

.reading-view button:focus-visible, .reading-more:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.lesson-page .ex[data-kind=worked] > .ex-fold > summary,
.lesson-page .ex[data-kind=part] > .ex-fold > summary {
  font-size: var(--read-small);
}

.lesson-page .ex[data-kind=worked] :is(ol.steps > li, .ex-pics, .ex-record),
.lesson-page .ex[data-kind=part] :is(ol.steps > li, .ex-pics, .ex-record) {
  animation: none;
}

.lesson-page .ex-src .ex-source {
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html:has(.lesson-page) {
    scroll-behavior: auto;
  }
  .reading-view, .reading-view button, .reading-more {
    transition: none;
    animation: none;
  }
}
@media (forced-colors: active) {
  .reading-view, .reading-view button, .reading-more {
    border: 1px solid ButtonText;
  }
  .reading-view button[aria-pressed=true] {
    outline: 2px solid Highlight;
    outline-offset: -4px;
  }
}
@media print {
  .reading-view-row, .reading-view, .reading-more {
    display: none !important;
  }
  .lesson-page .th.lesson [data-reading-fold] {
    display: block !important;
  }
}
