/* The course view of a deep dive (js/course.js): the dashboard of lessons,
   a lesson with its rail of pieces and one piece on the screen, the switch
   in the top bar and the marks in the page's Start-here list. Colors and
   type are the page's own variables, so the two views read as one page. */

/* ---- the switch in the top bar, and a song course's link to the whole song ---- */
.top .views{ margin-left:auto; display:inline-flex; gap:2px; padding:2px; border:1px solid var(--line2); border-radius:999px; align-self:center; }
.top .song-link{ margin-left:auto; display:inline-flex; align-items:center; gap:7px; align-self:center; font:600 12px/1 Inter,system-ui,sans-serif; letter-spacing:.02em; padding:7px 14px; border-radius:999px; background:var(--a); color:#0c0b0a; text-decoration:none; white-space:nowrap; }
.top .song-link:hover{ filter:brightness(1.08); }
.top .song-link + .views{ margin-left:0; }
.top .song-play{ font-size:10px; }
.top .views a{ font:600 12px/1 Inter,system-ui,sans-serif; letter-spacing:.04em; padding:6px 12px; border-radius:999px; color:var(--muted); text-decoration:none; }
.top .views a:hover{ color:var(--ink); }
.top .views a.active{ background:var(--a); color:#0c0b0a; }

/* ---- the Start-here list, marked ---- */
.course-callout{ margin:0 0 10px; padding:8px 12px; border-radius:8px; background:var(--panel2); border:1px solid var(--line2); }
.course-callout b{ color:var(--ink); }
.lesson-mark{ display:inline-block; min-width:22px; margin:0 6px 0 0; padding:0 6px; border-radius:999px; border:1px solid var(--line2); font:600 11px/18px Inter,system-ui,sans-serif; text-align:center; color:var(--muted2); text-decoration:none; vertical-align:1px; }
.lesson-mark:hover{ border-color:var(--a); color:var(--ink); }
.lesson-mark.started{ color:var(--a); border-color:var(--a); }
.lesson-mark.done{ background:var(--a); color:#0c0b0a; border-color:var(--a); }

/* ---- the course's own page ---- */
#course{ max-width:1560px; margin:0 auto; padding:0 22px 80px; }
#course .kicker{ font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted2); margin:0 0 4px; }
#course h1{ font:600 2rem/1.15 Inter,system-ui,sans-serif; margin:0 0 10px; text-wrap:balance; }
#course h2{ font:600 1.35rem/1.2 Inter,system-ui,sans-serif; margin:0; text-wrap:balance; }
#course h3{ font:600 1.45rem/1.2 Inter,system-ui,sans-serif; margin:2px 0 12px; text-wrap:balance; }
.btn{ display:inline-block; font:600 13px/1 Inter,system-ui,sans-serif; padding:9px 16px; border-radius:999px; border:1px solid var(--line2); background:var(--panel2); color:var(--ink); text-decoration:none; cursor:pointer; white-space:nowrap; }
.btn:hover{ border-color:var(--a); }
.btn.primary{ background:var(--a); color:#0c0b0a; border-color:var(--a); }
.btn.primary:hover{ filter:brightness(1.08); }
.btn.quiet{ background:transparent; color:var(--muted); }
.btn.small{ padding:7px 12px; font-size:12px; }
.btn:focus-visible, .linklike:focus-visible{ outline:2px solid var(--a); outline-offset:2px; }
.linklike{ background:none; border:0; padding:0; font:inherit; color:var(--a); cursor:pointer; text-decoration:underline; }
.icon{ display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; border:1px solid var(--line2); font:600 11px/1 Inter,system-ui,sans-serif; color:var(--muted); vertical-align:-5px; }
.icon.k-card{ color:var(--a); border-color:var(--a); }
.icon.k-check{ color:#8ec93f; border-color:#3f5a26; }

/* ---- the dashboard ---- */
.course-home{ max-width:980px; margin:0 auto; padding-top:26px; }
.course-head .blurb{ max-width:72ch; color:var(--muted); font-size:1.02rem; margin:0 0 14px; }
.overall{ max-width:72ch; margin:0 0 22px; }
.overall .bar{ height:8px; border-radius:999px; background:var(--line); overflow:hidden; }
.overall .bar span{ display:block; height:100%; background:var(--a); border-radius:999px; transition:width .3s ease; }
.overall-text{ margin:6px 0 0; color:var(--muted); font-size:.9rem; font-variant-numeric:tabular-nums; }
.hero{ margin:0 0 26px; padding:18px 22px 16px; border:1px solid var(--a); border-radius:14px; background:var(--panel); }
.hero.complete{ border-color:#8ec93f; }
.hero h2{ font-size:1.5rem; margin:2px 0 8px; }
.hero p{ margin:0 0 8px; color:var(--muted); max-width:80ch; }
.hero-piece{ color:var(--ink) !important; }
.hero-btns{ display:flex; flex-wrap:wrap; gap:10px; margin-top:12px !important; }
.lesson-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.lesson-row{ display:grid; grid-template-columns:44px minmax(0, 1fr) auto; gap:14px; align-items:start; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.lesson-row.started{ border-color:var(--line2); }
.lesson-row.done{ border-color:#3f5a26; }
.ring{ width:44px; height:44px; }
.ring .track{ fill:none; stroke:var(--line); stroke-width:3.5; }
.ring .fill{ fill:none; stroke:var(--a); stroke-width:3.5; stroke-linecap:round; transform:rotate(-90deg); transform-origin:50% 50%; transition:stroke-dashoffset .3s ease; }
.ring.done .fill{ stroke:#8ec93f; }
.ring text{ fill:var(--ink); font:600 13px Inter,system-ui,sans-serif; }
.ring.done text{ fill:#8ec93f; }
.lesson-main{ min-width:0; }
.lesson-link{ display:block; color:var(--ink); text-decoration:none; }
.lesson-link:hover .lesson-name{ color:var(--a); }
.lesson-kicker{ display:block; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted2); }
.lesson-name{ display:block; font:600 1.15rem/1.25 Inter,system-ui,sans-serif; margin:2px 0 4px; }
.lesson-tagline{ margin:0 0 8px; color:var(--muted); max-width:70ch; }
.lesson-goal{ margin:8px 0 0; color:var(--muted2); font-size:.88rem; max-width:70ch; }
.lesson-goal i{ color:var(--muted); }
.lesson-goal.big{ font-size:1rem; color:var(--muted); margin:0 0 12px; }
.strip{ margin:0; font-size:.86rem; color:var(--muted2); }
.lesson-side{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.status{ font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted2); white-space:nowrap; }
.status.in-progress{ color:var(--a); }
.status.done{ color:#8ec93f; }
/* the appendix: after the lessons, plainer — no ring, no status, a list of what is there to read */
.course-home .appendix{ margin-top:30px; padding-top:18px; border-top:1px solid var(--line); }
.course-home .appendix h2{ margin:0 0 6px; }
.appendix-note{ margin:0 0 12px; color:var(--muted); max-width:72ch; font-size:.95rem; }
.appendix-list{ list-style:none; margin:0; padding:0; display:grid; gap:6px; max-width:72ch; }
.appendix-list a{ display:grid; grid-template-columns:20px minmax(0, 1fr) auto; gap:10px; align-items:center; padding:8px 10px; border:1px solid var(--line); border-radius:10px; background:var(--panel); color:var(--ink); text-decoration:none; }
.appendix-list a:hover{ border-color:var(--a); }
.appendix-list .appendix-title{ display:flex; flex-direction:column; gap:1px; }
.appendix-list .rail-kicker{ font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted2); }
.appendix-list .rail-min{ color:var(--muted2); font-size:12px; font-variant-numeric:tabular-nums; }
.course-lesson.appendix .lesson-progress .count{ color:var(--muted2); }
.course-foot{ margin-top:26px; color:var(--muted2); font-size:.88rem; max-width:80ch; }
.course-foot p{ margin:0 0 8px; }

/* ---- a lesson ---- */
.course-lesson{ position:relative; padding-top:14px; }
.lesson-bar{ display:flex; align-items:center; gap:10px 18px; min-height:66px; padding:8px 0 12px; border-bottom:1px solid var(--line); margin-bottom:18px; }
.course-pickers{ display:grid; grid-template-columns:minmax(260px,1.15fr) minmax(220px,1fr); gap:0; flex:1; min-width:0; }
.course-picker{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 10px; min-width:0; margin:0; padding:5px 18px 5px 0; border:0; border-radius:6px; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.piece-picker{ margin-left:18px; padding-left:18px; border-left:1px solid var(--line2); border-radius:0; }
.course-picker:hover,.course-picker[aria-expanded="true"]{ background:transparent; }
.course-picker:focus-visible{ outline:1px solid var(--a); outline-offset:5px; }
.course-picker span{ grid-column:1; overflow:hidden; color:var(--muted); font:650 10px/1.2 Inter,system-ui,sans-serif; letter-spacing:.08em; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.course-picker strong{ grid-column:1; overflow:hidden; color:var(--ink); font:600 17px/1.2 Inter,system-ui,sans-serif; text-overflow:ellipsis; white-space:nowrap; }
.lesson-picker strong{ font-size:20px; }
.course-picker i{ grid-column:2; grid-row:1/3; display:grid; align-self:center; place-items:center; width:22px; height:22px; border-radius:50%; color:var(--a); font:700 15px/1 Inter,system-ui,sans-serif; font-style:normal; transition:transform .15s,background-color .15s; }
.course-picker:hover strong,.course-picker[aria-expanded="true"] strong{ color:var(--a); }
.course-picker:hover i,.course-picker[aria-expanded="true"] i{ background:var(--panel); }
.course-picker[aria-expanded="true"] i{ transform:rotate(180deg); }
.lesson-utilities{ display:none; }
.lesson-tools-mobile{ position:relative; display:block; }
.lesson-tools-mobile summary{ display:flex; align-items:center; justify-content:center; width:38px; height:34px; padding:0; list-style:none; }
.lesson-tools-mobile summary::-webkit-details-marker{ display:none; }
.lesson-tools-menu{ position:absolute; z-index:42; top:calc(100% + 7px); right:0; display:grid; gap:10px; min-width:205px; padding:12px; border:1px solid var(--line2); border-radius:10px; background:var(--panel2); box-shadow:0 12px 30px rgba(0,0,0,.36); }
.lesson-tools-menu .linklike{ text-align:left; }
.lesson-progress{ display:none; align-items:center; gap:10px; margin-left:auto; }
.lesson-progress .count{ font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.segments{ display:flex; gap:3px; }
.segments i{ display:block; width:14px; height:6px; border-radius:3px; background:var(--line2); }
.segments i.done{ background:var(--a); }
.segments i.current{ outline:1px solid var(--ink); outline-offset:1px; }
.course-countin{ display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); white-space:nowrap; }
.course-countin input{ accent-color:var(--a); }
.lesson-body{ display:block; }
.piece-pane{ width:100%; max-width:1180px; min-width:0; margin:0 auto; }
.rail-scrim{ display:none; position:fixed; z-index:34; inset:0; width:100%; height:100%; padding:0; border:0; background:rgba(0,0,0,.18); cursor:default; }
.rail-scrim.open{ display:block; }
.rail{ display:none; position:fixed; z-index:35; top:96px; right:max(22px,calc((100vw - 1560px)/2 + 22px)); bottom:84px; width:min(350px,calc(100vw - 24px)); padding:12px; overflow-y:auto; border:1px solid var(--line2); border-radius:14px; background:var(--panel2); box-shadow:0 20px 60px rgba(0,0,0,.52); scrollbar-width:thin; }
.rail.open{ display:block; }
.rail-head{ position:sticky; z-index:1; top:-12px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 12px; align-items:center; margin:-12px -12px 8px; padding:13px 12px 11px; border-bottom:1px solid var(--line); background:var(--panel2); }
.rail-head strong{ color:var(--ink); font:600 14px/1.2 Inter,system-ui,sans-serif; }
.rail-head span{ grid-column:1; color:var(--muted2); font:500 11px/1.2 Inter,system-ui,sans-serif; }
.rail-head span a{ color:var(--a); text-decoration:none; }
.rail-close{ grid-column:2; grid-row:1/3; display:grid; place-items:center; width:32px; height:32px; padding:0; border:1px solid var(--line); border-radius:50%; background:transparent; color:var(--muted); font:400 20px/1 Inter,system-ui,sans-serif; cursor:pointer; }
.rail-close:hover{ border-color:var(--line2); color:var(--ink); }
.rail ol{ list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.rail li a{ display:grid; grid-template-columns:22px minmax(0, 1fr) auto; gap:8px; align-items:start; padding:7px 10px; border-radius:8px; border:1px solid transparent; color:var(--muted); text-decoration:none; font-size:13px; line-height:1.3; }
.rail li a:hover{ color:var(--ink); background:var(--panel); }
.rail li.current a{ color:var(--ink); border-color:var(--a); background:var(--panel); }
.rail li.done .icon{ background:var(--a); color:#0c0b0a; border-color:var(--a); }
.rail li.done .rail-title{ color:var(--muted2); }
.rail li.current.done .rail-title{ color:var(--ink); }
.rail .icon{ margin-top:1px; }
.lesson-menu .lesson-choice .icon{ display:grid; place-items:center; min-width:22px; height:22px; border:1px solid var(--line2); border-radius:50%; font:650 10px/1 Inter,system-ui,sans-serif; }
.rail-kicker{ display:block; font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted2); }
.rail-min{ font-size:11px; color:var(--muted2); font-variant-numeric:tabular-nums; margin-top:2px; }
.piece{ padding:0 0 96px; }
.piece .kicker .icon{ margin-right:4px; }
.piece-body{ min-width:0; }
.piece.k-read .piece-body, .piece.k-text .piece-body, .piece.k-check .piece-body{ max-width:72ch; }
.piece.k-read .piece-body:has(.course-catalog){ max-width:none; }   /* the catalog's table takes the canvas; its paragraph keeps the reading's measure */
.course-read{ font-size:16px; line-height:1.62; color:var(--ink); max-width:72ch; }
.course-read p{ margin:0 0 12px; }
p.course-read, .course-read + .course-read{ margin:0 0 14px; }   /* several paragraphs read as one piece */
.course-read ul{ margin:0 0 12px; padding-left:22px; }
.course-read li{ margin:0 0 5px; }
.course-read.note{ padding:10px 14px; border-left:3px solid var(--line2); background:var(--panel); border-radius:0 8px 8px 0; }
.piece.k-figure .neck-fig{ max-width:900px; }
.piece.k-grips .grip-group{ margin:0; }
.piece.k-grips .grip-group:not(.has-vars){ max-width:560px; }
/* (the kinds are prefixed k- because the page styles .grips, .faults, .players and .sources of its own) */
.course-songs{ display:grid; gap:12px; max-width:90ch; }
.course-songs .song{ margin:0; }
.course-faults{ max-width:none; }
.course-check-lead{ margin:0 0 10px; color:var(--muted); }
.course-check{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.course-check label{ display:grid; grid-template-columns:20px minmax(0, 1fr); gap:10px; align-items:start; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--panel); cursor:pointer; line-height:1.45; }
.course-check label:hover{ border-color:var(--line2); }
.course-check input{ accent-color:var(--a); width:18px; height:18px; margin-top:2px; }
.course-check input:checked + span{ color:var(--muted2); text-decoration:line-through; text-decoration-color:var(--line2); }
.course-sources{ max-width:90ch; }
.piece-note{ margin:14px 0 0; padding:10px 14px; border-left:3px solid var(--a); background:var(--panel); color:var(--muted); border-radius:0 8px 8px 0; max-width:80ch; font-size:15px; line-height:1.55; }
.piece-note b{ color:var(--ink); }
.piece-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:22px; padding-top:16px; border-top:1px solid var(--line); }
.course-completion{ position:fixed; z-index:20; right:0; bottom:0; left:0; min-height:70px; margin:0; padding:10px max(22px,calc((100vw - 1180px)/2)) calc(10px + env(safe-area-inset-bottom,0px)); border-top:1px solid var(--line2); background:rgba(10,11,9,.9); box-shadow:0 -14px 34px rgba(0,0,0,.24); backdrop-filter:blur(16px); }
.completion-nav{ display:flex; min-width:0; align-items:center; gap:10px; }
.completion-forward{ margin-left:auto; }
.completion-destination{ overflow:hidden; max-width:min(25vw,34ch); color:var(--muted); font-size:12px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.course-completion #pieceNext:disabled{ cursor:default; filter:none; opacity:.48; }
.piece-more{ position:relative; }
.piece-more summary{ display:flex; align-items:center; justify-content:center; width:38px; height:34px; padding:0; list-style:none; }
.piece-more summary::-webkit-details-marker{ display:none; }
.piece-menu{ position:absolute; right:0; bottom:calc(100% + 8px); display:grid; min-width:220px; padding:6px; border:1px solid var(--line2); border-radius:10px; background:var(--panel2); box-shadow:0 12px 30px rgba(0,0,0,.32); }
.piece-menu a,.piece-menu button{ width:100%; padding:9px 10px; border:0; border-radius:7px; background:transparent; color:var(--ink); font:500 12px/1.3 Inter,system-ui,sans-serif; text-align:left; text-decoration:none; cursor:pointer; }
.piece-menu a:hover,.piece-menu button:hover{ background:var(--panel); }
.course-undo{ position:fixed; z-index:40; left:50%; bottom:88px; display:flex; align-items:center; gap:14px; max-width:min(520px,calc(100vw - 24px)); padding:10px 12px 10px 15px; transform:translateX(-50%); border:1px solid var(--line2); border-radius:10px; background:var(--panel2); color:var(--ink); box-shadow:0 12px 30px rgba(0,0,0,.32); font:500 12px/1.35 Inter,system-ui,sans-serif; }
.course-undo button{ border:0; background:transparent; color:var(--a); font:700 12px Inter,system-ui,sans-serif; cursor:pointer; }
.course-sr-only{ position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
.lesson-done .covered, .lesson-done .left{ color:var(--muted); max-width:80ch; }
.lesson-done h3{ font-size:1.7rem; }
.lesson-done .piece-actions{ border-top:0; padding-top:0; }
.piece .missing{ margin:10px 0; padding:8px 12px; border-radius:8px; background:#3a2020; color:#f0b0b0; }
/* the page's card, at home in the course */
.piece article.ex{ margin:0; }

/* ---- narrow screens ---- */
@media (max-width:1000px){
  .rail{ top:76px; right:12px; bottom:80px; left:12px; width:auto; }
  .rail ol{ display:grid; gap:2px; min-width:0; }
  .rail li a{ max-width:none; }
  .rail-min{ display:block; }
  .lesson-row{ grid-template-columns:36px minmax(0, 1fr); }
  .ring{ width:36px; height:36px; }
  .lesson-side{ grid-column:2; flex-direction:row; align-items:center; justify-content:space-between; }
  .lesson-progress{ margin-left:0; }
  #course{ padding:0 12px 60px; }
  .course-completion{ padding-right:12px; padding-left:12px; }
}
@media (max-width:640px){
  body.in-course{ overflow-x:hidden; }
  body.in-course .top{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; overflow:hidden; }
  body.in-course .top .site{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  body.in-course .top .crumb,body.in-course .top .favs-link,body.in-course .top .sign-wrap{ display:none !important; }
  .top .views{ margin-left:0; }
  .lesson-bar{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding-top:6px; }
  .course-pickers{ grid-column:1; grid-row:1; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0; }
  .course-picker{ padding:5px 10px 5px 0; }
  .piece-picker{ margin-left:9px; padding-left:10px; }
  .course-picker strong{ font-size:14px; }
  .lesson-picker strong{ font-size:15px; }
  .lesson-tools-mobile{ position:relative; display:block; grid-column:2; grid-row:1; }
  .lesson-tools-mobile summary{ display:flex; align-items:center; justify-content:center; width:42px; height:38px; padding:0; list-style:none; }
  .lesson-tools-mobile summary::-webkit-details-marker{ display:none; }
  .lesson-tools-menu{ top:calc(100% + 6px); min-width:190px; }
  .piece{ padding-bottom:104px; }
  .piece-actions:not(.course-completion) .btn{ flex:1 1 auto; text-align:center; }
  .course-completion{ min-height:68px; padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px)); gap:8px; }
  .completion-nav{ gap:6px; }
  .completion-destination{ max-width:112px; font-size:11px; }
  .completion-back .completion-destination{ max-width:82px; }
  .course-completion .completion-previous{ width:42px; min-width:42px; padding:9px 0; overflow:hidden; font-size:0; text-align:center; }
  .course-completion .completion-previous::before{ content:'←'; font-size:15px; }
  .completion-forward{ flex:1 1 auto; justify-content:flex-end; margin-left:0; }
  .course-completion #pieceNext{ flex:0 1 auto; overflow:hidden; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
  .piece-more summary{ width:42px; height:38px; }
  .course-undo{ bottom:82px; }
}

/* Course progress inside the full-window practice player: one small action
   beside Close, while the playback transport owns the bottom edge. */
.course-practice-progress{ position:fixed; z-index:5; top:14px; right:62px; padding:8px 13px; border:1px solid var(--a); border-radius:999px; background:rgba(20,23,18,.94); color:var(--a); font:600 12px Inter,system-ui,sans-serif; cursor:pointer; box-shadow:0 5px 18px rgba(0,0,0,.18); }
.course-practice-progress:hover{ background:var(--panel2); color:var(--ink); }
@media(max-width:640px){ .course-practice-progress{ top:9px; right:54px; max-width:calc(100vw - 112px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } }

/* ---- the course's own kinds: the improvising piece, the videos ---- */
.rail li.rail-phase{ font:600 10px/1 Inter,system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; color:var(--muted2); padding:10px 10px 4px; }
.rail li.rail-phase:first-child{ padding-top:2px; }
.improvise-prompt{ margin:0 0 12px; padding:10px 14px; border-left:3px solid var(--a); background:var(--panel); border-radius:0 8px 8px 0; max-width:80ch; }
.improvise-prompt .improvise-kicker{ font-size:.86rem; color:var(--muted2); }
.improvise-prompt i{ color:var(--ink); font-style:normal; font-weight:600; }
.course-catalog{ margin-top:14px; max-width:none; }
.course-catalog table{ min-width:760px; }   /* the page's table, scrolling sideways rather than squeezed into the reading's measure */
.course-links{ list-style:none; margin:0; padding:0; display:grid; gap:10px; max-width:80ch; }
.course-links li{ padding:10px 14px; border:1px solid var(--line); border-radius:10px; background:var(--panel); }
.course-links a{ font-weight:600; }
.course-links .who{ margin-left:6px; font-size:.86rem; color:var(--muted2); }
.course-links p{ margin:4px 0 0; color:var(--muted); font-size:.9rem; }

/* ---- the practice row on every card: tempo, loop, the fills left to you, a new roll ---- */
.practice{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; margin:4px 0 8px; font:500 12px Inter,system-ui,sans-serif; color:var(--muted); }
.practice .lbl{ font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted2); margin-right:4px; }
.practice label{ display:inline-flex; align-items:center; gap:6px; }
.practice input[type=range]{ width:150px; accent-color:var(--a); }
.practice output{ min-width:5.5ch; color:var(--ink); font-variant-numeric:tabular-nums; }
.practice select{ font:500 12px Inter,system-ui,sans-serif; padding:4px 6px; border-radius:6px; border:1px solid var(--line2); background:var(--panel2); color:var(--ink); }
.practice input[type=checkbox]{ accent-color:var(--a); }
.practice .roll{ font:600 12px Inter,system-ui,sans-serif; padding:4px 10px; border-radius:999px; border:1px solid var(--line2); background:transparent; color:var(--muted); cursor:pointer; }
.practice .roll:hover{ border-color:var(--a); color:var(--ink); }
.practice .yours-on{ color:var(--a); }
/* the tempo with its steps and its one-tap tempos, and the looper as the Jam tab has it */
.practice .tempo-ctl{ display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; }
.practice .tempo-steps{ display:inline-flex; gap:2px; }
.practice .tempo-steps .step, .practice .tempo-taps .tap{ font:600 11px Inter,system-ui,sans-serif; padding:4px 8px; border:1px solid var(--line2); background:transparent; color:var(--muted); cursor:pointer; }
.practice .tempo-steps .step:first-child{ border-radius:6px 0 0 6px; }
.practice .tempo-steps .step:last-child{ border-radius:0 6px 6px 0; margin-left:-1px; }
.practice .tempo-steps .step:hover, .practice .tempo-taps .tap:hover{ border-color:var(--a); color:var(--ink); }
.practice .tempo-taps{ display:inline-flex; gap:2px; }
.practice .tempo-taps .tap{ border-radius:6px; }
.practice .tempo-taps .tap.active{ color:var(--a); border-color:var(--a); }
.practice .loop{ display:inline-flex; align-items:center; gap:4px; }
.practice .loop .ib{ width:30px; height:30px; border:1px solid var(--line2); border-radius:7px; background:transparent; color:var(--muted); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; flex:none; padding:0; }
.practice .loop .ib svg{ width:18px; height:18px; }
.practice .loop .ib:hover{ border-color:var(--a); }
.practice .loop.on .ib{ color:var(--a); border-color:var(--a); }
.practice .loop select{ min-width:0; padding:4px 4px; }
.practice .loop-dash{ color:var(--muted2); }
.practice .loop:not(.on) select, .practice .loop:not(.on) .loop-dash{ opacity:.5; }
/* the sound row on the card: the count-in and the band's and the guitar's volume */
.practice.sound{ margin-top:-2px; gap:6px 18px; }
.practice.sound .levels{ display:inline-flex; align-items:center; gap:14px; flex-wrap:wrap; }
.practice.sound .levels .level{ display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.levels .mute{ font:500 11px Inter,system-ui,sans-serif; letter-spacing:.08em; text-transform:uppercase; color:var(--muted2); background:transparent; border:1px solid transparent; border-radius:5px; padding:2px 6px; cursor:pointer; }
.levels .mute:hover{ color:var(--ink); border-color:var(--line2); }
.levels .mute.muted{ color:var(--muted2); text-decoration:line-through; border-color:var(--line2); }
.levels .mute.muted + input[type=range]{ opacity:.45; }
.practice.sound .levels input[type=range]{ width:90px; }
.practice.sound .card-countin{ color:var(--muted); }
/* Make it yours: the assignment, the three steps, the way further */
.yours-steps{ margin:10px 0 4px; padding-left:22px; }
.yours-steps li{ margin:0 0 6px; }
.improvise-prompt .tip{ margin-top:8px; border:1px solid var(--line2); border-radius:8px; background:transparent; }
.improvise-prompt .tip summary{ cursor:pointer; padding:6px 10px; font:600 12px Inter,system-ui,sans-serif; letter-spacing:.04em; color:var(--muted); }
.improvise-prompt .tip .tip-body{ padding:0 12px 10px; }
.improvise-prompt .further-text{ margin:4px 0 8px; }
/* a bullet that names an exact change carries the card that plays it */
.play-change{ margin:2px 0 2px 8px; vertical-align:baseline; white-space:nowrap; }
.improvise-prompt li{ margin:0 0 6px; }
/* an assignment's steps, each with its own tab (the UI kind) above the
   card: a strip of them, the chosen one filled, and the step's line in the
   prompt marked; a click on a line picks its tab (2026-09-19) */
.step-tabs{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
/* every tab's card together: a line of two links over the strip — print them on one page, or one Guitar Pro file (2026-09-19) */
.step-tools{ display:flex; flex-wrap:wrap; gap:4px 18px; margin:0 0 8px; font-size:.86rem; }
.step-tools .linklike{ color:var(--muted); text-decoration:none; }
.step-tools .linklike:hover{ color:var(--a); text-decoration:underline; }
.step-tab{ font:500 13px Inter,system-ui,sans-serif; padding:6px 12px; border-radius:999px; border:1px solid var(--line2); background:transparent; color:var(--muted); cursor:pointer; }
.step-tab b{ font-weight:700; color:var(--a); margin-right:5px; }
.step-tab:hover{ color:var(--ink); }
.step-tab.active{ color:var(--ink); background:var(--panel2); border-color:var(--a); }
.improvise-prompt.has-steps > ol > li{ cursor:pointer; margin-left:-8px; padding:2px 8px; border-radius:6px; }
.improvise-prompt.has-steps > ol > li:hover{ background:var(--panel2); }
.improvise-prompt.has-steps > ol > li.step-now{ background:var(--panel2); box-shadow:inset 3px 0 0 var(--a); }
.improvise-prompt.has-steps > ol > li.step-now::marker{ color:var(--a); font-weight:700; }
/* the units on the home: a heading where a few lessons belong together */
.lesson-list .unit-head{ list-style:none; margin:18px 0 2px; padding:0 2px; border-bottom:1px solid var(--line); }
.lesson-list .unit-head:first-child{ margin-top:0; }
.unit-name{ display:inline-block; padding:0 0 6px; font:600 11px Inter,system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; color:var(--muted2); }
.ex .chip.hybrid{ color:#7fc4d8; border-color:#2e5560; }
.ex .chip.fingers{ color:#7fc4d8; border-color:#2e5560; }
.ex .yours-bars{ font-size:.86rem; color:var(--muted2); margin:0 0 6px; }
.ex .chip.clip{ color:#e0a84a; border-color:#5a4520; }
.ex.from-clip .play{ box-shadow:0 0 0 2px rgba(224,168,74,.25); }

/* the "Also" piece: the lesson's records, videos, players and faults, one after another */
.also-part{ margin:0 0 22px; }
.also-part h4{ margin:0 0 8px; font-size:1rem; color:var(--muted); }
