/* My Practice (Studio V2, Daniel 17 Oct 2026 09:35; js/studio-practice.js). Tokens only (css/tokens.css), so the light theme
   follows. Guitar in hands: every action 44 px tall, phone reading text 16 px, one column on phones, nothing moves on its
   own (the demo plays only on a tap and never loops). Purple = the primary action, amber = saved. */

#studio-view-practice .sp-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 24px; }
.sp-how { margin-top: 6px; font-size: var(--text-sm, .875rem); color: var(--text-secondary); max-width: 30em; }
.sp-how summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--purple-text); font-weight: 600; list-style: none; }
.sp-how summary::-webkit-details-marker { display: none; }
.sp-how summary::after { content: ''; width: 7px; height: 7px; margin-left: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sp-how[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.sp-how ul { margin: 4px 0 0; padding: 12px 16px 12px 30px; border-radius: 14px; border: 1px solid var(--border-subtle); background: var(--bg-card); line-height: 1.55; }
.sp-how li + li { margin-top: 6px; }
.sp-how summary:focus-visible, .sp-link:focus-visible, .sp-remove:focus-visible, .sp-open:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; border-radius: 8px; }

/* shared art + text */
.sp-art { flex: none; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--bg-elevated); border: 1px solid var(--border-subtle); }
.sp-art-blank { display: block; background: linear-gradient(135deg, rgba(96, 54, 232, .35), rgba(96, 54, 232, .08)); }
.sp-card-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.sp-card-t { color: var(--text-primary); font-weight: 600; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.sp-card-c { color: var(--text-secondary); font-size: var(--text-sm, .875rem); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sp-k { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-text); }
.sp-done { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--text-secondary); border: 1px solid var(--border-subtle); background: var(--bg-glass, transparent); }

/* Today's practice, compact; opened = the real card below it */
.sp-today { margin: 0 0 12px; padding: 14px 16px; border-radius: var(--studio-radius, 20px); border: 1px solid rgba(96, 54, 232, .35); background: linear-gradient(135deg, rgba(96, 54, 232, .16), rgba(96, 54, 232, .04)), var(--bg-card); }
.sp-today[hidden] { display: none !important; }
.sp-today-row { display: flex; align-items: center; gap: 14px; }
.sp-today-btn { flex: none; min-height: 44px; }
.sp-today-slot { margin-bottom: 8px; }
#studio-view-practice #today-practice { margin: 0 0 8px; }

/* Saved for practice */
.sp-saved { margin-top: 8px; }
.sp-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sp-sec-head .studio-subhead { margin-top: 24px; }
.sp-count { font-size: var(--text-sm, .875rem); color: var(--text-muted); font-weight: 600; }
.sp-count-full { color: var(--amber-text, var(--amber)); }
.sp-cap { margin: 0 0 10px; font-size: var(--text-sm, .875rem); color: var(--text-secondary); }
.sp-cap[hidden], .sp-status[hidden], .sp-list[hidden], #studio-practice-empty[hidden] { display: none !important; }
.sp-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 6px 0 12px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border-subtle); background: var(--bg-card); color: var(--text-primary); font-size: .95rem; }
.sp-status-alert { border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .08); }
.sp-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sp-card { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; border: 1px solid var(--glass-border); background: var(--bg-card); min-width: 0; }
.sp-card-acts { display: flex; flex-direction: column; align-items: stretch; gap: 2px; flex: none; }
.sp-open { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.sp-remove { min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: var(--text-sm, .875rem); font-weight: 600; cursor: pointer; border-radius: 8px; }
.sp-remove:hover { color: var(--text-primary); background: var(--bg-hover); }
.sp-gone { font-size: var(--text-sm, .875rem); color: var(--text-muted); max-width: 12em; }
.sp-err { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .08); color: var(--text-primary); }
.sp-err div { display: flex; flex-direction: column; gap: 3px; }
.sp-err span { color: var(--text-secondary); }
.sp-skel i { display: block; width: 64px; height: 64px; border-radius: 12px; background: var(--bg-elevated); }
.sp-skel b { display: block; height: 14px; width: 60%; border-radius: 6px; background: var(--bg-elevated); }
.sp-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--purple-text); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Empty: what to do + an example of the real interface (three stills; optional step-through) */
.sp-empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 28px; align-items: center; border-style: solid; }
.sp-empty-copy h3 { margin: 0 0 8px; font-size: var(--text-lg, 1.15rem); color: var(--text-primary); }
.sp-empty-copy p { margin: 0 0 16px; }
.sp-empty-copy .sx-btn { min-height: 44px; display: inline-flex; align-items: center; }
.sp-demo-frames { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sp-demo figure { margin: 0; transition: opacity .3s; }
.sp-demo img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border-subtle); }
.sp-demo figcaption { margin-top: 6px; font-size: var(--text-sm, .875rem); color: var(--text-secondary); }
.sp-demo figcaption b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px; border-radius: 50%; background: rgba(96, 54, 232, .25); color: var(--text-primary); font-size: .75rem; }
.sp-demo-playing figure { opacity: .35; }
.sp-demo-playing figure.sp-demo-on { opacity: 1; }
.sp-demo-mini { display: flex; align-items: center; gap: 8px; aspect-ratio: 780 / 400; padding: 8px; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--bg-elevated); font-size: .75rem; line-height: 1.3; }
.sp-demo-mini img { width: 36px; height: 36px; border: 0; border-radius: 8px; object-fit: cover; }
.sp-demo-mini span { display: flex; flex-direction: column; min-width: 0; color: var(--text-primary); }
.sp-demo-mini small { color: var(--text-secondary); }
.sp-demo-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 8px 0 0; font-size: var(--text-sm, .875rem); color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .sp-demo figure { transition: none; } }

/* Practice notes + the quiet links */
.sp-notes { display: flex; align-items: center; gap: 14px; margin: 28px 0 10px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--glass-border); background: var(--bg-card); }
.sp-notes-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--purple-text); background: rgba(96, 54, 232, .14); }
.sp-notes-txt { flex: 1; min-width: 0; }
.sp-notes-txt h2 { margin: 0; font-size: 1rem; color: var(--text-primary); }
.sp-notes-txt p { margin: 2px 0 0; color: var(--text-secondary); font-size: var(--text-sm, .875rem); }
.sp-notes .sx-btn-quiet { min-height: 44px; flex: none; }
.sp-train { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 4px 0 24px; font-size: var(--text-sm, .875rem); }
.sp-train .sp-link { color: var(--text-secondary); }

@media (max-width: 900px) {
  .sp-list { grid-template-columns: minmax(0, 1fr); }
  .sp-empty { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  #studio-view-practice { font-size: 16px; }
  .sp-card-t { font-size: 1rem; }
  .sp-card-c, .sp-cap, .sp-status, .sp-how, .sp-demo-tag, .sp-notes-txt p, .sp-train, .sp-remove { font-size: 1rem; }
  .sp-art { width: 56px; height: 56px; }
  .sp-card { align-items: flex-start; flex-wrap: wrap; }
  .sp-card-acts { flex-direction: row; width: 100%; justify-content: space-between; }
  .sp-card-acts .sp-open { flex: 1; }
  .sp-today-row { flex-wrap: wrap; }
  .sp-today-btn { width: 100%; }
  .sp-notes { flex-direction: column; align-items: stretch; }
  .sp-notes .sx-btn-quiet { width: 100%; justify-content: center; }
  .sp-demo-frames { grid-template-columns: minmax(0, 1fr); }
  .sp-demo figcaption, .sp-demo figcaption b { font-size: 1rem; }
}
