.sc-handling { margin: 0; color: var(--sc-color-text); background: var(--sc-color-canvas); font-family: var(--sc-font-family); font-size: var(--sc-text-body); line-height: var(--sc-leading-reading); }
.sc-handling *, .sc-handling-lesson * { box-sizing: border-box; }
.sc-handling [hidden] { display: none; }
.sc-handling__shell { max-width: var(--sc-layout-content); margin: 0 auto; padding: var(--sc-space-6) var(--sc-page-gutter) var(--sc-space-8); }
.sc-handling a, .sc-handling-lesson a { color: var(--sc-color-brand); }
.sc-handling__header { padding: var(--sc-space-4) 0 var(--sc-space-6); }
.sc-handling__header h1 { font-size: var(--sc-text-display); font-weight: var(--sc-weight-strong); line-height: var(--sc-leading-heading); letter-spacing: var(--sc-tracking-heading); margin: var(--sc-space-3) 0 var(--sc-space-4); max-width: var(--sc-title-measure); }
.sc-handling__lead { max-width: var(--sc-reading-measure); font-size: var(--sc-text-lead); color: var(--sc-color-muted); margin: 0; }
.sc-handling__eyebrow { color: var(--sc-color-brand); font-size: var(--sc-text-xs); letter-spacing: var(--sc-tracking-label); font-weight: var(--sc-weight-strong); margin: var(--sc-space-3) 0 var(--sc-space-2); }
.sc-handling h2, .sc-handling-lesson h2 { font-size: var(--sc-text-h2); line-height: var(--sc-leading-heading); margin: 0 0 var(--sc-space-3); }
.sc-handling h3 { font-size: var(--sc-text-h3); line-height: var(--sc-leading-heading); margin: var(--sc-space-2) 0 var(--sc-space-4); }
.sc-handling button, .sc-handling-lesson .sc-handling-lesson__link { color: var(--sc-color-text); background: var(--sc-color-surface); border: var(--sc-border-thin) solid var(--sc-color-border-strong); border-radius: var(--sc-radius-sm); padding: var(--sc-space-3) var(--sc-space-4); min-height: var(--sc-size-control); font: inherit; font-weight: var(--sc-weight-medium); line-height: var(--sc-leading-compact); cursor: pointer; text-align: left; }
.sc-handling button:hover { background: var(--sc-color-tint); }
.sc-handling button[aria-pressed="true"], .sc-handling #play, .sc-handling #start-drill, .sc-handling #try-movement, .sc-handling-lesson .sc-handling-lesson__link { background: var(--sc-color-brand); color: var(--sc-color-surface); border-color: var(--sc-color-brand); }
.sc-handling button:disabled { cursor: default; color: var(--sc-color-muted); background: var(--sc-color-subtle); }
.sc-handling button:focus-visible, .sc-handling input:focus-visible, .sc-handling a:focus-visible, .sc-handling summary:focus-visible, .sc-handling-lesson a:focus-visible { outline: var(--sc-border-accent) solid var(--sc-color-focus); outline-offset: var(--sc-space-1); }
.sc-handling__tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--sc-space-3); margin-bottom: var(--sc-space-5); }
.sc-handling__tabs button { font-size: var(--sc-text-lead); padding: var(--sc-space-4) var(--sc-space-5); }
.sc-handling__workspace { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: var(--sc-space-5); align-items: start; }
.sc-handling__canvas-card, .sc-handling__controls, .sc-handling__readout, .sc-handling__practice, .sc-handling__comparison, .sc-handling-lesson { border: var(--sc-border-thin) solid var(--sc-color-border); border-radius: var(--sc-radius-lg); background: var(--sc-color-surface); box-shadow: var(--sc-shadow-card); min-width: 0; padding: var(--sc-space-5); }
.sc-handling__canvas-title { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: var(--sc-space-3); }
.sc-handling__canvas-title h2 { font-size: var(--sc-text-h3); }
.sc-handling__badge { display: inline-block; font-size: var(--sc-text-xs); color: var(--sc-color-muted); background: var(--sc-color-subtle); border-radius: var(--sc-radius-pill); padding: var(--sc-space-1) var(--sc-space-3); }
.sc-handling #diagram svg { width: 100%; height: auto; display: block; }
.sc-handling__legend { display: flex; flex-wrap: wrap; gap: var(--sc-space-2) var(--sc-space-4); font-size: var(--sc-text-sm); margin: var(--sc-space-4) 0; }
.sc-handling__legend span { display: inline-flex; align-items: center; gap: var(--sc-space-2); }
.sc-handling__legend svg { width: var(--sc-size-icon); height: var(--sc-size-step); }
.sc-handling__quiet { color: var(--sc-color-muted); font-size: var(--sc-text-sm); line-height: var(--sc-leading-compact); }
.sc-handling label { display: block; font-weight: var(--sc-weight-medium); }
.sc-handling output { display: block; color: var(--sc-color-brand); font-variant-numeric: tabular-nums; font-size: var(--sc-text-sm); }
.sc-handling input[type="range"] { display: block; width: 100%; margin: var(--sc-space-3) 0; min-height: var(--sc-size-control); accent-color: var(--sc-color-brand); cursor: pointer; }
.sc-handling__ends { display: flex; justify-content: space-between; align-items: center; gap: var(--sc-space-2); font-size: var(--sc-text-sm); }
.sc-handling__row { display: flex; flex-wrap: wrap; gap: var(--sc-space-3); align-items: center; }
.sc-handling__row > * { min-width: 0; }
.sc-handling fieldset { border: 0; padding: 0; margin: 0 0 var(--sc-space-5); min-width: 0; }
.sc-handling legend { font-weight: var(--sc-weight-strong); margin-bottom: var(--sc-space-3); }
.sc-handling__choices { display: flex; flex-wrap: wrap; gap: var(--sc-space-2); }
.sc-handling__choices button { flex: 1 1 auto; font-size: var(--sc-text-sm); }
.sc-handling__choices--stack { display: grid; grid-template-columns: minmax(0,1fr); }
.sc-handling details { border-top: var(--sc-border-thin) solid var(--sc-color-border); padding: var(--sc-space-4) 0; margin-top: var(--sc-space-5); }
.sc-handling summary { cursor: pointer; font-weight: var(--sc-weight-medium); min-height: var(--sc-size-control); }
.sc-handling .sc-handling__check { display: flex; gap: var(--sc-space-3); align-items: center; font-weight: var(--sc-weight-regular); margin: var(--sc-space-3) 0; }
.sc-handling__check input { min-width: var(--sc-size-step); min-height: var(--sc-size-step); accent-color: var(--sc-color-brand); }
.sc-handling__readout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: var(--sc-space-6); margin-top: var(--sc-space-5); }
.sc-handling__metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--sc-space-4); }
.sc-handling__metric { min-width: 0; }
.sc-handling__metric span { color: var(--sc-color-muted); display: block; font-size: var(--sc-text-sm); }
.sc-handling__metric strong { display: block; font-size: var(--sc-text-h3); line-height: var(--sc-leading-heading); font-variant-numeric: tabular-nums; }
.sc-handling__insight h2 { font-size: var(--sc-text-h3); }
.sc-handling__insight p { margin-bottom: 0; }
.sc-handling__comparison { margin-top: var(--sc-space-5); }
.sc-handling__comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--sc-space-5); }
.sc-handling__comparison-grid > div { min-width: 0; padding: var(--sc-space-4); background: var(--sc-color-tint); border-radius: var(--sc-radius-md); }
.sc-handling__comparison-grid p { margin: var(--sc-space-2) 0; }
.sc-handling__practice { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: var(--sc-space-6); margin-top: var(--sc-space-7); }
.sc-handling #drill-feedback:not(:empty), .sc-handling__callout { padding: var(--sc-space-4); border-left: var(--sc-border-accent) solid var(--sc-color-brand); background: var(--sc-color-tint); margin: var(--sc-space-4) 0; }
.sc-handling #drill-feedback[data-correct="true"] { border-color: var(--sc-color-success); background: var(--sc-color-success-surface); }
.sc-handling__callout p { margin-bottom: 0; }
.sc-handling__limits { margin: var(--sc-space-7) 0 0; max-width: var(--sc-reading-wide); color: var(--sc-color-muted); }
.sc-handling__limits h2 { color: var(--sc-color-text); }
.sc-handling-lesson { margin: var(--sc-space-5) 0; }
.sc-handling-lesson p { line-height: var(--sc-leading-reading); }
.sc-handling-lesson__link { display: inline-block; text-decoration: none; }
.sc-handling-lesson__steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--sc-space-3); padding: 0; list-style: none; }
.sc-handling-lesson__steps li { padding: var(--sc-space-4); background: var(--sc-color-tint); border-radius: var(--sc-radius-md); }
.sc-handling-lesson__steps strong { display: block; color: var(--sc-color-brand); }
.sc-handling-lesson iframe { width: 100%; height: var(--sc-depth-card); border: var(--sc-border-thin) solid var(--sc-color-border); border-radius: var(--sc-radius-md); }
@media(max-width: 800px) {
 .sc-handling__workspace, .sc-handling__readout, .sc-handling__practice { grid-template-columns: minmax(0,1fr); }
 .sc-handling__canvas-card, .sc-handling__controls, .sc-handling__readout, .sc-handling__practice, .sc-handling__comparison, .sc-handling-lesson { padding: var(--sc-space-4); }
 .sc-handling__tabs button { padding: var(--sc-space-3); font-size: var(--sc-text-body); }
 .sc-handling__comparison-grid, .sc-handling-lesson__steps { grid-template-columns: minmax(0,1fr); }
}
