:root { --mono: ui-monospace, SFMono-Regular, Menlo, monospace; --lav: #c9c4ff; --lav-ink: #6b5cf0; }
body { background: var(--paper); }
header { padding: 24px 4.45vw; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
header a { text-decoration: none; color: var(--ink); }
header a span { color: var(--muted); margin-left: 6px; }
main { max-width: 1720px; margin: auto; padding: 12px 4.45vw 24px; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
h1 { font-size: 34px; line-height: 1.2; font-weight: 400; letter-spacing: -0.025em; margin: 0; }
.intro p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
.intro .description { max-width: 46ch; margin-right: 40px; }

.workbench { display: grid; grid-template-columns: 316px minmax(0, 1fr); gap: 28px; align-items: start; }
.panel { max-height: calc(100svh - 190px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #55555c #141416; }
.panel .summon { width: 100%; justify-content: space-between; margin-bottom: 22px; }
.panel .ic-btn-row { font-size: 12px; }
.panel .ic-btn-row[aria-pressed="true"] { color: var(--lav); }
.panel .ic-btn-row[aria-pressed="true"] .ic-btn-value { color: var(--lav); }
.row-actions { display: flex; gap: 8px; margin-top: 16px; }
.row-actions .ic-btn { flex: 1; }
.panel .ic-section > .ic-section-body > .ic-btn:last-child { margin-top: 12px; width: 100%; }

.preview-shell { min-width: 0; }
.preview-top { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); padding: 0 0 12px; }
.preview-top .keys { font: 11px var(--mono); }
.desk { display: block; width: 100%; height: clamp(440px, 64vh, 780px); border-radius: 14px; cursor: none; outline: none;
  background: radial-gradient(120% 90% at 50% 0%, #f0f1ec, #dfe1db); box-shadow: inset 0 0 0 1px #0000000d; }
.desk:focus-visible { box-shadow: inset 0 0 0 2px var(--lav-ink); }

.timeline { position: relative; margin-top: 14px; }
.beats { display: flex; gap: 3px; height: 30px; }
.beat { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; border-radius: 6px; background: #e7e8e2; font: 10px var(--mono); color: var(--muted); min-width: 0; overflow: hidden; white-space: nowrap; }
.beat b { font-weight: 400; color: var(--ink); }
#playhead { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--lav-ink); opacity: 0; pointer-events: none; }

.caption { display: flex; justify-content: space-between; gap: 24px; font-size: 12px; color: var(--muted); line-height: 1.6; padding-top: 12px; }
.caption #blurb { max-width: 62ch; }
.readings { display: flex; flex-direction: column; align-items: end; gap: 2px; font: 11px var(--mono); white-space: nowrap; }
#total.over { color: #c4562e; }
footer { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); margin-top: 30px; line-height: 1.7; }

@media (max-width: 900px) {
  .workbench { grid-template-columns: 280px minmax(0, 1fr); gap: 18px; }
  .intro .description, .preview-top .keys { display: none; }
}
@media (max-width: 680px) {
  header { padding: 20px 16px; } header > span { display: none; }
  main { padding: 8px 16px 24px; }
  .workbench { display: flex; flex-direction: column; }
  .panel-slot { order: 2; width: 100%; } .panel { max-height: none; }
  .preview-shell { order: 1; width: 100%; }
  .desk { height: 52svh; min-height: 320px; }
  .caption { flex-direction: column; } .readings { align-items: start; }
  footer > span:last-child { display: none; }
}
