/* Instruct samples viewer (forked from the ToolTalk viewer). Palette roles: series 1 blue = instructor,
   series 2 orange = student, series g1 / g2 = the instructor's / the student's guitar DI, series 3 green = the current transcript lines. */
:root {
  color-scheme: light;
  --surface-1: #fcfcfb; --page: #f9f9f7;
  --text-primary: #0b0b0b; --text-secondary: #52514e; --text-muted: #898781;
  --gridline: #e1e0d9; --baseline: #c3c2b7; --border: rgba(11,11,11,0.10);
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-g1: #6a5acd; --series-g2: #c2559a;
  --status-critical: #d03b3b;
  --wash-1: rgba(42,120,214,0.10);
  --wash-3: rgba(27,175,122,0.14);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --surface-1: #1a1a19; --page: #0d0d0d;
    --text-primary: #ffffff; --text-secondary: #c3c2b7; --text-muted: #898781;
    --gridline: #2c2c2a; --baseline: #383835; --border: rgba(255,255,255,0.10);
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-g1: #8f82e6; --series-g2: #d97ab8;
    --status-critical: #d03b3b;
    --wash-1: rgba(57,135,229,0.14);
    --wash-3: rgba(25,158,112,0.22);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* author display rules must not defeat the hidden attribute */
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text-primary); background: var(--page); }
.muted { color: var(--text-muted); }
.error { color: var(--status-critical); }
a { color: inherit; }
pre { white-space: pre-wrap; word-break: break-word; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0; }

/* header: the set's title, links to the sibling sets and the dataset */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px 20px; border-bottom: 1px solid var(--gridline); background: var(--surface-1); }
.brand { min-width: 0; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.brand .title { font-size: 16px; font-weight: 600; margin: 1px 0 0; line-height: 1.3; }
.links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; font-size: 13px; color: var(--text-secondary); white-space: nowrap; padding-top: 2px; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }
.siblings a.sibling { padding: 4px 12px; border: 1px solid var(--series-1); color: var(--series-1); border-radius: 14px; font-weight: 600; margin-left: 6px; }
.siblings a.sibling:hover { background: var(--wash-1); text-decoration: none; }
.siblings a.sibling.related { border-color: var(--gridline); color: var(--text-secondary); }   /* sister datasets, quieter than this dataset's own sets */
.set-switch select { font: inherit; font-size: 13px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); }
.account { display: inline-flex; align-items: center; gap: 8px; }
button.signin { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--series-1); background: var(--series-1); color: #fff; cursor: pointer; }
button.signin:hover { filter: brightness(1.08); }
button.signout { font: inherit; font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); cursor: pointer; }
#access-note { max-width: 70ch; font-size: 15px; line-height: 1.5; }
#access-note button.signin { vertical-align: baseline; }
.landing-link { color: var(--series-1); }

/* the list of interactions, grouped by lesson or project */
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100% - 46px); }
.takes { border-right: 1px solid var(--gridline); background: var(--surface-1); overflow: auto; max-height: calc(100vh - 46px); position: sticky; top: 0; }
.panel-head { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); padding: 12px 16px 6px; }
#take-list { list-style: none; margin: 0; padding: 0 8px 12px; }
#take-list li { padding: 6px 10px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
#take-list li[role="option"] { margin-left: 18px; }      /* the parts sit under their lesson's block */
#take-list.flat li[role="option"] { margin-left: 0; display: flex; align-items: center; gap: 10px; padding: 7px 10px; }   /* one row per project */
#take-list .thumb { width: 84px; height: 56px; flex: none; object-fit: contain; background: #fff; border: 1px solid var(--gridline); border-radius: 4px; }
#take-list .tcol { min-width: 0; }
.cta { display: flex; align-items: center; gap: 10px; margin: 6px 8px 16px; padding: 8px 10px; border: 1px dashed var(--series-1); border-radius: 8px; color: inherit; text-decoration: none; background: var(--wash-1); }   /* "Request more samples" */
.cta:hover { border-style: solid; }
.cta-top { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--series-1); color: #fff; font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }   /* header "Discuss the full collection" */
.cta-top:hover { filter: brightness(1.08); }
.cta-tile { width: 84px; height: 56px; flex: none; display: grid; place-items: center; font-size: 30px; line-height: 1; color: var(--series-1); border: 1px dashed var(--gridline); border-radius: 4px; background: #fff; }
.cta-col { min-width: 0; display: grid; gap: 2px; }
.cta .t1 { font-weight: 600; } .cta .t2 { color: var(--text-secondary); font-size: 12px; line-height: 1.35; } .cta .cta-action { color: var(--series-1); font-weight: 600; font-size: 12px; }
#take-list li:hover { background: var(--wash-1); }
#take-list li[aria-selected="true"] { border-color: var(--series-1); background: var(--wash-1); }
#take-list .t1 { font-weight: 600; }
#take-list .t2 { color: var(--text-secondary); font-size: 12px; }
#take-list li.group { cursor: default; margin-top: 8px; padding: 12px 10px 4px; border-top: 1px solid var(--gridline); border-radius: 0; }   /* one block per lesson or project */
#take-list li.group:first-child { margin-top: 0; padding-top: 4px; border-top: 0; }
#take-list li.group:hover { background: none; }
#take-list li.group .g1 { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); font-weight: 600; }
#take-list li.group .g2 { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.3; margin-top: 1px; }
@media (max-width: 1100px) { .layout { grid-template-columns: 240px minmax(0, 1fr); } }

/* the player column: title, transport, video beside the waveforms, then the transcript and the collapsible panels */
.player { padding: 16px 20px 32px; min-width: 0; }
.empty { padding: 40px 20px; }
.empty p { max-width: 70ch; font-size: 15px; line-height: 1.5; }
.call-head h2 { font-size: 18px; margin: 0 0 6px; font-weight: 600; }
.call-head p { margin: 4px 0 4px; }
/* the parts of the lesson: pre-lesson check, lesson, post-lesson check */
.phase-nav { display: inline-flex; margin: 0 0 2px; }
.phase { font: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 14px 4px; line-height: 1.2; cursor: pointer;
         border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); }
.phase + .phase { margin-left: -1px; }
.phase:first-child { border-radius: 8px 0 0 8px; } .phase:last-child { border-radius: 0 8px 8px 0; }
.phase:hover:not(:disabled) { background: var(--wash-1); }
.phase .ph-name { font-weight: 600; font-size: 13px; } .phase .ph-dur { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.phase[aria-pressed="true"] { background: var(--wash-1); border-color: var(--series-1); color: var(--series-1); position: relative; z-index: 1; }
.phase[aria-pressed="true"] .ph-dur { color: var(--series-1); opacity: .8; }
.phase:disabled { cursor: default; color: var(--text-muted); background: var(--page); }
.about { margin: 2px 0 0; max-width: 1160px; }
.about summary { cursor: pointer; color: var(--text-secondary); }
.about summary span { margin-left: 2px; }
.about[open] summary span { color: var(--text-muted); font-size: 12px; }
.about p { margin: 8px 0 4px; }
#call-desc { color: var(--text-primary); }
.about h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); margin: 12px 0 6px; }
.about pre { color: var(--text-secondary); }
.about-block { padding: 8px 12px 10px; border: 1px solid var(--gridline); border-radius: 8px; background: var(--surface-1); margin-top: 8px; }
.about-block h3 { margin-top: 0; }
.tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 20px; }
.tasks h4 { font-size: 12px; margin: 0 0 3px; font-weight: 600; }
.tasks div:first-child h4 { color: var(--series-1); } .tasks div:last-child h4 { color: var(--series-2); }
.about .plan-body { padding: 0; }
.transport { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0 8px; }
.btn { font: inherit; border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.btn:hover { border-color: var(--baseline); }
.btn.play { width: 44px; height: 34px; font-size: 15px; }
.clock { font-variant-numeric: tabular-nums; color: var(--text-secondary); min-width: 96px; }

/* video (muted; the microphones carry the sound), waveforms and transcript: one grid, laid out by `body[data-layout]`.
   --media-h is the video's height; the other areas follow it. Default (Ben's pick "B", 2026-09-16): the video is the
   whole left side and fills the window's height (never under 520 px); the waveforms and the transcript stack to its
   right, the transcript scrolling in the space left under the waveforms. */
.media { display: grid; gap: 12px; align-items: start; --media-h: max(520px, calc(100vh - 225px));
         grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "video stage" "video transcript"; height: var(--media-h); }
.videos { grid-area: video; display: flex; flex-direction: column; gap: 8px; }
.stage { grid-area: stage; }
.transcript { grid-area: transcript; align-self: stretch; display: flex; flex-direction: column; min-height: 0; }
.transcript .turns { flex: 1; min-height: 0; max-height: none; }
.cam { margin: 0; background: #000; border-radius: 8px; overflow: hidden; border: 1px solid var(--gridline); position: relative; }
.cam video { display: block; width: 360px; max-width: 100%; height: auto; object-fit: contain; background: #000; }
.cam.portrait video { width: auto; height: calc(var(--media-h) - 2px); }
/* landscape cameras (Peer: front over overhead) share the column's height; the media block is capped so the two
   16:9 frames leave room for the waveforms */
.media[data-orient="landscape"] { --media-h: max(520px, min(calc(100vh - 225px), 640px)); }
.videos[data-cams="2"] .cam:not(.portrait) video { height: calc((var(--media-h) - 12px) / 2); width: auto; max-width: 42vw; }
.videos[data-cams="1"] .cam:not(.portrait) video { height: min(calc(var(--media-h) - 2px), 24vw); width: auto; }
.cam figcaption { position: absolute; left: 8px; top: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 8px; }
/* a: a fixed 680 px video, whatever the window */
body[data-layout="a"] .media { --media-h: 680px; }
/* c: video and transcript side by side, the waveforms full width under both */
body[data-layout="c"] .media { --media-h: 640px; height: auto; grid-template-rows: auto auto; grid-template-areas: "video transcript" "stage stage"; }
body[data-layout="c"] .transcript { max-height: var(--media-h); }
/* d: the earlier layout — a small video beside the waveforms, the transcript under both */
body[data-layout="d"] .media { --media-h: 330px; height: auto; grid-template-rows: auto auto; grid-template-areas: "video stage" "transcript transcript"; }
body[data-layout="d"] .transcript .turns { max-height: 340px; }
/* e: theater — the video centered on top, waveforms and transcript full width below */
body[data-layout="e"] .media { --media-h: 560px; height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "video" "stage" "transcript"; }
body[data-layout="e"] .videos { justify-self: center; flex-direction: row; }
body[data-layout="e"] .transcript .turns { max-height: 340px; }
@media (max-width: 900px) { .media { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "video" "stage" "transcript"; height: auto; --media-h: 360px; } .videos { flex-direction: row; } }

.stage { position: relative; background: var(--surface-1); border: 1px solid var(--gridline); border-radius: 8px; padding: 6px 12px 6px 0; min-width: 0; }
.row { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; }
.row + .row { margin-top: 2px; }
.row-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); padding-left: 12px; align-self: start; padding-top: 4px; line-height: 1.25; }
.row-label.lab-1 { color: var(--series-1); } .row-label.lab-2 { color: var(--series-2); } .row-label.lab-g1 { color: var(--series-g1); } .row-label.lab-g2 { color: var(--series-g2); }
.row-mute { display: block; margin-top: 4px; font: inherit; font-weight: 400; font-size: 11px; line-height: 1.3; padding: 0 7px; border-radius: 10px; border: 1px solid var(--baseline); background: var(--surface-1); color: var(--text-primary); cursor: pointer; }
.row-mute:hover { background: var(--wash-1); }
.row-label .nosignal { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: var(--text-muted); font-style: italic; }
.row-mute[aria-pressed="true"] { color: var(--text-muted); border-style: dashed; }
.wave { display: block; width: 100%; height: 78px; cursor: pointer; }
.axis { display: block; width: 100%; height: 22px; overflow: visible; cursor: pointer; }
.axis text { font: 11px system-ui, sans-serif; fill: var(--text-muted); font-variant-numeric: tabular-nums; }
.axis line { stroke: var(--baseline); stroke-width: 1; }
.playhead { position: absolute; top: 0; bottom: 0; width: 0; pointer-events: none; }
.playhead .ph { position: absolute; left: -1px; width: 2px; background: var(--text-primary); opacity: .5; }

/* transcript: both speakers merged by time; the current lines are highlighted during playback */
.transcript { background: var(--surface-1); border: 1px solid var(--gridline); border-radius: 8px; padding: 0 0 8px; min-width: 0; }
.transcript .note { font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 8px; }
.turns { list-style: none; margin: 0; padding: 0 8px; max-height: 340px; overflow: auto; font-size: 13px; }
.turn { display: grid; grid-template-columns: 44px 72px minmax(0, 1fr); gap: 0 10px; padding: 3px 8px; border-radius: 6px; cursor: pointer; line-height: 1.4; }
.turn:hover { background: var(--wash-1); }
.turn .t { font-variant-numeric: tabular-nums; color: var(--text-muted); font-size: 12px; padding-top: 1px; }
.turn .who { font-weight: 600; font-size: 12px; padding-top: 1px; }
.turn.instructor .who { color: var(--series-1); } .turn.student .who { color: var(--series-2); }
.turn .words { color: var(--text-secondary); }
.turn.current { background: var(--wash-3); } .turn.current .words { color: var(--text-primary); }

/* collapsible panels under the transcript: ratings, lesson plan or project instructions, diagram, recording specs */
.panel { margin-top: 10px; background: var(--surface-1); border: 1px solid var(--gridline); border-radius: 8px; }
.panel summary { cursor: pointer; padding: 10px 48px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); }
.specs dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0; padding: 4px 48px 18px; font-size: 12px; }
.specs dt { color: var(--text-primary); font-weight: 600; }
.specs dd { margin: 0; color: var(--text-secondary); max-width: 130ch; }
/* post-lesson ratings: one column per side, bars on the answer's own scale */
.ratings-body { padding: 4px 48px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 4px 32px; font-size: 13px; }
.ratings-body h4, .people h4, .trait-bars h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); margin: 6px 0 6px; }
.ratings-body h4.instructor, .people h4.instructor { color: var(--series-1); } .ratings-body h4.student, .people h4.student { color: var(--series-2); }
.rating { margin: 0 0 10px; }
.rating-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rating-label { font-weight: 600; } .rating-value { font-variant-numeric: tabular-nums; color: var(--text-secondary); white-space: nowrap; }
.rating-answer { font-size: 12px; margin-top: 2px; }
.bar-track { position: relative; height: 8px; border-radius: 4px; background: var(--gridline); margin: 4px 0 0; overflow: hidden; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
/* participants: who they are, then personality and values on shared scales */
/* Ben's pick "B" (2026-09-16): who they are on the left, personality above values on the right; one column on narrow windows */
.participants-body { padding: 4px 48px 18px; font-size: 13px; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); gap: 6px 36px; align-items: start; }
.people { display: grid; grid-template-columns: 1fr; gap: 14px; grid-row: 1 / span 2; }
.people dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 14px; margin: 0; }
@media (max-width: 900px) { .participants-body { grid-template-columns: minmax(0, 1fr); } .people { grid-row: auto; grid-template-columns: 1fr 1fr; gap: 4px 24px; } }
.people dt { color: var(--text-secondary); } .people dd { margin: 0; font-weight: 600; }
.trait-bars { margin-top: 0; }
.trait-bars + .trait-bars { margin-top: 14px; }
.trait-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.trait-legend { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.legend-chip { display: inline-flex; align-items: center; gap: 5px; color: var(--text-secondary); }
.legend-chip::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--chip); }
.trait-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 84px; gap: 0 12px; align-items: center; padding: 3px 0; }
.trait-label { color: var(--text-primary); } .trait-value { font-variant-numeric: tabular-nums; color: var(--text-secondary); text-align: right; white-space: nowrap; }
.trait-tracks .bar-track { margin: 2px 0; height: 7px; }
.diagram-body { padding: 0; } .diagram-body img + img { margin-top: 8px; }
.credit { font-size: 11px; color: var(--text-muted); margin: 6px 0 0; } .credit a { color: inherit; }
.plan-body .plan-link { display: inline-block; margin: 4px 12px 4px 0; color: var(--series-1); font-weight: 600; }
.plan-body .plan-text { max-height: 480px; overflow: auto; padding: 4px 12px; border-radius: 6px; background: var(--page); font-size: 13px; }
.plan-body pre.plan-text { font-size: 12.5px; padding: 8px; }
.plan-body h4 { font-size: 14px; margin: 8px 0 4px; } .plan-body h5, .plan-body h6 { font-size: 13px; margin: 8px 0 2px; color: var(--text-secondary); }
.plan-body p { margin: 6px 0; } .plan-body ul, .plan-body ol { margin: 2px 0 6px; padding-left: 22px; } .plan-body li { margin: 2px 0; }
.plan-body + .plan-body { margin-top: 10px; }
.plan-body img, .diagram-body img { display: block; max-width: 100%; border-radius: 6px; border: 1px solid var(--gridline); background: #fff; margin-top: 4px; }

/* the sister-collection note under the contact card */
.related-note { margin: 10px 12px 14px; font-size: .84rem; line-height: 1.4; }
.related-note .related-link { white-space: nowrap; }
