/* A mobile-first lesson, demonstration and sweeping practice. */
.sweep-module {
  --sweep-cream: #fbfaf3;
  --sweep-soft: #edf2e6;
  --sweep-olive: #647c42;
  --sweep-orange: #b76543;
  --sweep-text: #43594c;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  color: var(--ink);
}
.sweep-module *, .sweep-entry * { box-sizing: border-box; }
:where(.sweep-module) button, :where(.sweep-module) select { min-height: 48px; }
.sweep-module button { touch-action: manipulation; }
.sweep-module button:focus-visible, .sweep-module a:focus-visible,
.sweep-module select:focus-visible, .sweep-help summary:focus-visible,
.sweep-entry:focus-visible, .sweep-entry a:focus-visible {
  outline: 3px solid #b66b2e;
  outline-offset: 3px;
}
.sweep-module button:disabled { opacity: .5; cursor: default; }
.sweep-module .btn { gap: 10px; }
.sweep-top { margin-bottom: 19px; }
.sweep-top .eyebrow, .sweep-top .sweep-kicker {
  margin-bottom: 11px;
  color: var(--sweep-olive);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.sweep-top h1 { margin: 0 0 11px; font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -1.4px; }
.sweep-top p { max-width: 700px; margin-bottom: 0; font-size: 14px; line-height: 1.7; color: var(--sweep-text); }
.sweep-top > a { display: inline-flex; align-items: center; min-height: 48px; color: #576e49; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.sweep-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  margin: 0 0 20px;
  border: 1px solid #dce3d3;
  border-radius: 13px;
  background: #e9eee1;
  overflow: visible;
}
.sweep-nav button {
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #516549;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.sweep-nav button[aria-current]:not([aria-current="false"]),
.sweep-nav button[aria-selected="true"], .sweep-nav button.selected {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 5px #183f3012;
}
.sweep-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sweep-layout > * { min-width: 0; }
.sweep-stage {
  padding: 14px;
  border: 1px solid #d8e1d2;
  border-radius: 20px;
  background: linear-gradient(160deg, #f5f7ed, #e7eee2);
  overflow: hidden;
}
.sweep-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; margin-bottom: 6px; }
.sweep-stage-head > span, .sweep-stage-head .sweep-badge {
  color: #526849;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .4px;
}
.sweep-stage-head .sweep-badge { padding: 5px 9px; border: 1px solid #d8e2cd; border-radius: 20px; background: #f9fbf4; }
.sweep-stage-head button {
  padding: 6px 10px;
  border: 1px solid #cbd6bf;
  border-radius: 8px;
  background: #ffffffb3;
  color: var(--green);
  font-size: 11px;
  line-height: 1.3;
}
.sweep-ice { display: block; width: 100%; height: auto; max-height: 460px; margin: 0 auto; overflow: visible; }
.sweep-ice text { font-family: 'Golos Text', sans-serif; }
.sweep-label { fill: #344e41; font-size: 11px; font-weight: 600; paint-order: stroke; stroke: #f9fbf7; stroke-width: 3px; stroke-linejoin: round; }
.sweep-ice .sweep-small-label { font-size: 9px; font-weight: 500; fill: #52664c; }
.sweep-person { transform-box: fill-box; }
.sweep-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 12px 0 1px; padding-top: 12px; border-top: 1px solid #d8e2d1; }
.sweep-roster > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sweep-roster b { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 50%; background: #285d50; color: #fff; font-size: 12px; font-weight: 700; }
.sweep-roster > div:last-child b { background: #e1b957; color: #263f31; }
.sweep-roster span { color: #4b6250; font-size: 11px; line-height: 1.5; overflow-wrap: break-word; }
.sweep-source { display: inline-flex; align-items: center; min-height: 48px; color: #526d40; font-size: 11px; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; }
.sweep-speed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 15px 0; color: #4e6546; font-size: 12px; }
.sweep-speed select { width: auto; max-width: 100%; padding: 8px 10px; border: 1px solid #d5dfcb; border-radius: 8px; background: #fff; color: var(--green); font-size: 13px; }
.sweep-comparison-key { display: grid; gap: 8px; margin: 12px 2px 2px; color: #52664e; font-size: 11px; line-height: 1.5; }
.sweep-comparison-key span { position: relative; padding-left: 30px; }
.sweep-comparison-key span::before { content: ''; position: absolute; top: .7em; left: 0; width: 22px; border-top: 3px dashed #307d65; }
.sweep-comparison-key span + span::before { border-top-style: dotted; border-top-color: #a17869; }
.sweep-live-note { min-height: 43px; margin: 6px 0 0; padding: 10px 11px; border: 1px solid #dce5d4; border-radius: 9px; background: #ffffffbf; color: #375241; font-size: 12px; line-height: 1.55; }
.sweep-live-note strong { color: var(--green); }
.sweep-transport { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.sweep-transport button, .sweep-transport select {
  flex: 1 1 auto;
  padding: 9px 11px;
  border: 1px solid #d3ddcb;
  border-radius: 8px;
  background: #fdfef9;
  color: var(--green);
  font-size: 12px;
  line-height: 1.3;
}
.sweep-transport label { display: flex; align-items: center; gap: 6px; color: #54694b; font-size: 11px; }
.sweep-transport button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.sweep-side { padding: 8px 0; }
.sweep-lesson-title { margin: 12px 0 15px; font-size: 26px; line-height: 1.25; letter-spacing: -.7px; }
.sweep-progress { display: block; margin: 0 0 8px; color: var(--sweep-olive); font-size: 11px; font-weight: 600; line-height: 1.5; }
.sweep-copy, .sweep-copy p { color: var(--sweep-text); font-size: 14px; line-height: 1.85; }
.sweep-copy p { margin-bottom: 13px; }
.sweep-copy strong, .sweep-copy b { color: var(--green); font-weight: 650; }
.sweep-copy ul, .sweep-copy ol { margin: 10px 0 16px; padding-left: 20px; }
.sweep-copy li + li { margin-top: 6px; }
.sweep-cue { margin: 17px 0; padding: 15px 16px; border-left: 3px solid #c48a59; border-radius: 0 11px 11px 0; background: #f6efe1; color: #66523b; font-size: 13px; line-height: 1.7; }
.sweep-cue p { color: inherit; margin: 0; }
.sweep-cue strong { color: #815333; }
.sweep-cue small { display: block; margin-top: 5px; color: #79664f; font-size: 11px; }
.sweep-page-dots { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 17px 0 10px; }
.sweep-page-dots > span, .sweep-page-dots > i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #d7dfce; }
.sweep-page-dots > .active, .sweep-page-dots > [aria-current="step"] { background: var(--green); }
.sweep-page-dots button { width: 48px; padding: 8px; border: 1px solid #d8e1cd; border-radius: 50%; background: #fff; color: var(--green); font-size: 12px; }
.sweep-page-dots button[aria-current="step"] { color: #fff; }
.sweep-lesson-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.sweep-lesson-actions button, .sweep-lesson-actions a { flex: 1 1 auto; }
.sweep-goal { margin: 0 0 12px; padding: 13px 15px; border: 1px solid #dce4d2; border-radius: 11px; background: #f8faf2; color: #395340; font-size: 13px; line-height: 1.6; }
.sweep-goal h2, .sweep-goal h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.3; letter-spacing: -.3px; }
.sweep-goal p { color: inherit; margin: 0; font-size: inherit; }
.sweep-goal small { display: block; margin-top: 6px; color: #607551; font-size: 11px; }
.sweep-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.sweep-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-height: 98px;
  padding: 13px 12px;
  border: 1.5px solid #b7c9a2;
  border-radius: 12px;
  background: #fcfef7;
  color: var(--green);
  text-align: left;
  line-height: 1.35;
  transition: background-color .15s, border-color .15s;
}
.sweep-action strong { font-size: 14px; font-weight: 700; }
.sweep-action small { color: #5b7251; font-size: 11px; line-height: 1.5; }
.sweep-action.selected, .sweep-action[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; box-shadow: inset 0 0 0 1px var(--green); }
.sweep-action.selected small, .sweep-action[aria-pressed="true"] small { color: #e0edcf; }
.sweep-feedback { margin-top: 17px; padding: 19px; border: 1px solid #d4e0c8; border-radius: 14px; background: #eef5e5; color: #3e5940; }
.sweep-feedback h3, .sweep-feedback h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.35; letter-spacing: -.4px; }
.sweep-feedback p { margin: 0 0 12px; color: inherit; font-size: 13px; line-height: 1.75; }
.sweep-feedback p:last-child { margin-bottom: 0; }
.sweep-feedback .row { margin-top: 15px; }
.sweep-feedback .btn { min-width: 0; font-size: 12px; padding: 11px 14px; }
.sweep-feedback.is-wrong, .sweep-feedback.error { border-color: #e5cbb8; background: #faf0e7; color: #70533f; }
.sweep-reasons { display: grid; gap: 8px; margin: 15px 0; }
.sweep-reasons button { padding: 12px 14px; border: 1px solid #d7dfcf; border-radius: 9px; background: #fff; color: #3f5847; text-align: left; font-size: 13px; line-height: 1.55; }
.sweep-reasons button.selected, .sweep-reasons button[aria-pressed="true"] { border-color: #789359; background: #edf4e2; }
.sweep-scenarios { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.sweep-scenarios button { flex: 1 1 110px; padding: 8px 11px; border: 1px solid #d8dfcf; border-radius: 10px; background: #fff; color: #4e6546; text-align: left; font-size: 12px; line-height: 1.4; }
.sweep-scenarios button.selected, .sweep-scenarios button[aria-pressed="true"], .sweep-scenarios button[aria-current="true"] { border-color: #6b874a; background: #eaf2dd; color: #355630; }
.sweep-mode { display: flex; gap: 4px; padding: 4px; margin: 10px 0 16px; border: 1px solid #dce2d3; border-radius: 10px; background: #eaf0e3; }
.sweep-mode button { flex: 1 1 0; min-width: 0; padding: 8px 9px; border: 0; border-radius: 7px; background: transparent; color: #596c4e; font-size: 12px; line-height: 1.4; }
.sweep-mode button.selected, .sweep-mode button[aria-pressed="true"] { background: #fff; color: var(--green); box-shadow: 0 1px 4px #2c452b12; }
.sweep-bottom-note { margin: 18px 0 0; color: #68755f; font-size: 11px; line-height: 1.65; }
.sweep-bottom-note a, .sweep-help a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.sweep-help { margin-top: 20px; padding: 15px 0; border-top: 1px solid #dce2d4; color: var(--sweep-text); font-size: 13px; line-height: 1.8; }
.sweep-help summary { min-height: 48px; padding: 12px 0; color: var(--green); font-weight: 600; cursor: pointer; }
.sweep-help p { margin: 9px 0; color: inherit; }
.sweep-help ul { padding-left: 19px; }
.sweep-help li + li { margin-top: 7px; }
.sweep-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px; margin: 24px 0; padding: 24px; border: 1px solid #cdddb8; border-radius: 17px; background: linear-gradient(120deg, #eaf2dd, #f7f8ef); color: var(--green); }
.sweep-entry > div { flex: 1 1 240px; min-width: 0; }
.sweep-entry > span { grid-column: 1 / -1; color: #607b43; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.sweep-entry .eyebrow { margin-bottom: 10px; }
.sweep-entry h2, .sweep-entry h3 { grid-column: 1; margin: 0; font-size: 24px; letter-spacing: -.6px; }
.sweep-entry p { grid-column: 1; max-width: 580px; margin: 0; color: #556f48; font-size: 13px; line-height: 1.75; }
.sweep-entry > b { grid-column: 2; grid-row: 2 / 4; display: inline-flex; align-items: center; max-width: 210px; min-height: 48px; padding: 12px 16px; border-radius: 9px; background: var(--green); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.6; }
.sweep-entry .btn { min-height: 48px; flex-shrink: 0; font-size: 13px; }
@media (hover: hover) {
  .sweep-entry:hover { border-color: #88a765; }
  .sweep-nav button:not([aria-current="page"]):not(.selected):hover { background: #dde7d1; color: var(--green); }
  .sweep-action:not(.selected):not([aria-pressed="true"]):not(:disabled):hover { background: #edf4e1; border-color: #72924b; }
  .sweep-reasons button:not(:disabled):hover, .sweep-scenarios button:not(:disabled):hover { border-color: #8a9f72; }
  .sweep-transport button:not(:disabled):hover, .sweep-stage-head button:hover { border-color: #8ca674; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .sweep-layout { gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sweep-stage { padding: 10px; }
  .sweep-lesson-title { font-size: 23px; }
  .sweep-actions { grid-template-columns: 1fr; }
  .sweep-action { min-height: 76px; }
}
@media (max-width: 760px) {
  body.sweep-open .sidebar nav, body.sweep-open .sidebar-note,
  body.sweep-open .source-link, body.sweep-open .shell > header { display: none; }
  body.sweep-open main { padding-top: 12px; }
  .sweep-top { margin-bottom: 12px; }
  .sweep-top h1 { font-size: 28px; letter-spacing: -.9px; margin-bottom: 8px; }
  .sweep-top p { font-size: 13px; line-height: 1.6; }
  .sweep-top .eyebrow, .sweep-top .sweep-kicker { margin-bottom: 7px; font-size: 9px; }
  .sweep-nav { gap: 3px; padding: 4px; margin-bottom: 14px; border-radius: 11px; }
  .sweep-nav button { padding: 8px 4px; font-size: 12px; }
  .sweep-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .sweep-stage { padding: 10px; border-radius: 15px; }
  .sweep-stage-head { margin-bottom: 0; }
  .sweep-stage-head > span { font-size: 9px; }
  .sweep-stage-head button { font-size: 11px; padding: 6px 8px; }
  .sweep-ice { height: 310px; max-height: none; }
  .sweep-live-note { min-height: 0; margin-top: 4px; padding: 8px 10px; font-size: 12px; line-height: 1.45; }
  .sweep-transport { gap: 5px; margin-top: 7px; }
  .sweep-transport button, .sweep-transport select { padding: 8px; font-size: 11px; }
  .sweep-side { padding: 0; }
  .sweep-lesson-title { margin: 7px 0 10px; font-size: 23px; }
  .sweep-copy, .sweep-copy p { font-size: 14px; line-height: 1.8; }
  .sweep-cue { margin: 13px 0; padding: 12px 13px; }
  .sweep-goal { margin-bottom: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.5; }
  .sweep-goal h2, .sweep-goal h3 { font-size: 16px; margin-bottom: 5px; }
  .sweep-actions { gap: 7px; margin: 8px 0; }
  .sweep-action { min-height: 88px; padding: 11px 10px; border-radius: 10px; }
  .sweep-action strong { font-size: 13px; line-height: 1.35; }
  .sweep-action small { font-size: 10px; line-height: 1.4; }
  .sweep-feedback { padding: 15px; }
  .sweep-feedback h3, .sweep-feedback h2 { font-size: 19px; }
  .sweep-feedback .row > * { flex: 1 1 auto; }
  .sweep-scenarios { margin: 12px 0; gap: 5px; }
  .sweep-scenarios button { flex: 1 1 80px; padding: 8px; font-size: 11px; }
  .sweep-mode { margin: 9px 0; }
  .sweep-mode button { font-size: 11px; }
  .sweep-bottom-note { margin-top: 12px; font-size: 10px; }
  .sweep-entry { display: flex; flex-direction: column; align-items: stretch; padding: 20px; gap: 10px; }
  .sweep-entry h2, .sweep-entry h3 { font-size: 22px; }
  .sweep-entry > b { max-width: none; margin-top: 5px; justify-content: center; text-align: center; }
  .sweep-entry .btn { width: 100%; }
  .sweep-roster { gap: 8px; }
  .sweep-roster > div { gap: 6px; }
  .sweep-roster span { font-size: 10px; }
  .sweep-speed select { font-size: 16px; }
  .sweep-module.is-practice .sweep-top, .sweep-module.is-playing .sweep-top { margin-bottom: 8px; }
  .sweep-module.is-practice .sweep-top h1, .sweep-module.is-playing .sweep-top h1 { margin-bottom: 0; font-size: 23px; }
  .sweep-module.is-practice .sweep-top, .sweep-module.is-playing .sweep-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .sweep-module.is-practice .sweep-top > a, .sweep-module.is-playing .sweep-top > a { flex: 0 0 auto; order: 2; max-width: 84px; font-size: 11px; line-height: 1.5; }
  .sweep-module.is-practice .sweep-top p, .sweep-module.is-playing .sweep-top p,
  .sweep-module.is-practice .sweep-top .pill, .sweep-module.is-playing .sweep-top .pill,
  .sweep-module.is-practice .sweep-top .eyebrow, .sweep-module.is-playing .sweep-top .eyebrow,
  .sweep-module.is-practice .sweep-top .sweep-kicker, .sweep-module.is-playing .sweep-top .sweep-kicker { display: none; }
  .sweep-module.is-practice .sweep-nav, .sweep-module.is-playing .sweep-nav { margin-bottom: 8px; }
  .sweep-module.is-practice .sweep-layout, .sweep-module.is-playing .sweep-layout { gap: 8px; }
  .sweep-module.is-practice .sweep-ice, .sweep-module.is-playing .sweep-ice { height: 246px; }
  .sweep-module.is-practice .sweep-stage, .sweep-module.is-playing .sweep-stage { padding: 8px; }
}
@media (max-width: 760px) and (max-height: 740px) {
  .sweep-module.is-practice .sweep-ice, .sweep-module.is-playing .sweep-ice { height: 220px; }
}
@media (max-width: 760px) and (max-height: 660px) {
  .sweep-module.is-practice .sweep-ice, .sweep-module.is-playing .sweep-ice { height: 190px; }
  .sweep-module.is-practice .sweep-live-note, .sweep-module.is-playing .sweep-live-note { font-size: 11px; }
}
@media (max-width: 360px) {
  .sweep-top h1 { font-size: 25px; }
  .sweep-nav button { font-size: 11px; }
  .sweep-stage-head > span { letter-spacing: 0; }
  .sweep-stage-head button { max-width: 155px; font-size: 10px; }
  .sweep-action { padding: 10px 8px; }
  .sweep-action strong { font-size: 12px; }
  .sweep-goal h2, .sweep-goal h3 { font-size: 15px; }
  .sweep-lesson-actions { gap: 6px; }
  .sweep-lesson-actions .btn { padding: 11px; font-size: 12px; }
  .sweep-page-dots { display: grid; grid-template-columns: repeat(3, 48px); }
}
@media (prefers-reduced-motion: reduce) {
  .sweep-module *, .sweep-entry * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
