.work-main { padding-block: 2.75rem 5rem; }
.work-heading { max-width: 54rem; margin-bottom: 2.8rem; }
.work-main h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1.08; letter-spacing: -.045em; margin: .7rem 0 1.1rem; }
.work-main h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.work-main h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: .8rem; }
.lede { color: var(--muted); font-size: 1.15rem; line-height: 1.65; max-width: 46rem; }
.meta { color: var(--dim); font-size: .875rem; }
.back-link { display: inline-block; margin-bottom: 2.5rem; font-size: .95rem; text-decoration: none; color: var(--muted); }
.note-row { display: grid; grid-template-columns: 1fr 3fr 3rem; gap: 2rem; padding-block: 2.3rem; border-top: 1px solid var(--line); }
.note-row h2 { margin: 0 0 .7rem; }
.note-row h2 a { text-decoration: none; }
.note-row p { color: var(--muted); margin-bottom: .9rem; }
.note-row .eyebrow { color: var(--accent); padding-top: .5rem; }
.note-arrow { font-size: 1.7rem; text-decoration: none; color: var(--accent); }
.format-links { margin-top: 2.5rem; font-size: .95rem; color: var(--muted); }
.entry-layout { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(14rem, 1fr); gap: 5rem; }
.entry-layout article { max-width: 47rem; }
.edition { color: var(--accent); font-size: .9rem; margin-top: 1rem; }
.prose { font-size: 1.125rem; color: var(--muted); line-height: 1.85; }
.prose p + p { margin-top: 1.5rem; }
.sources { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 3rem; }
.sources h2, .margin-notes h2 { font-family: var(--sans); font-size: .95rem; letter-spacing: normal; color: var(--accent); margin: 0 0 1rem; }
.sources ul { padding-left: 1.2rem; font-size: .95rem; }
.sources li { margin-top: .6rem; }
.margin-notes { padding-top: .5rem; }
.margin-notes ol { list-style: none; padding: 0; margin: 0 0 2rem; }
.margin-notes li { padding-block: 1.2rem; border-top: 1px solid var(--line); }
.margin-notes p { margin-top: .7rem; font-size: .9rem; color: var(--muted); }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.comparison-column { min-width: 0; }
.comparison-note { font-size: .9rem; color: var(--muted); padding-block: 1rem 2rem; }
.comparison .prose p { padding-left: 1rem; border-left: 2px solid transparent; }
.comparison .prose .earlier-paragraph { border-color: #a88267; }
.comparison .prose .later-paragraph { border-color: var(--accent); color: var(--ink); }
.room-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-end; margin-bottom: 2.5rem; }
.room-heading h1 { font-size: clamp(3rem, 5vw, 4.5rem); }
.room-heading .text-link { flex-shrink: 0; font-size: .9rem; }
.instrument { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; background: #192129; border: 1px solid var(--line); }
.instrument-score { padding: 2rem; min-width: 0; }
.score-caption { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .875rem; }
#score-map { width: 100%; display: block; margin-block: 1.5rem .75rem; }
.bar-line { stroke: #35434e; stroke-width: 1; }
.bar-label { fill: #909aa3; font-size: 14px; font-family: var(--sans); }
.voice-chair { fill: #e3b47d; }
.voice-glass { fill: #9acbcc; }
.voice-floor { fill: #aaa3d0; }
#playhead { stroke: #f0f0eb; stroke-width: 1.5; opacity: .7; }
.voice-legend { display: flex; gap: 1.4rem; font-size: .875rem; margin-bottom: 2rem; }
.voice-legend span::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .45rem; border-radius: 50%; background: currentColor; }
.legend-chair { color: #e3b47d; }.legend-glass { color: #9acbcc; }.legend-floor { color: #aaa3d0; }
audio { width: 100%; height: 44px; }
.player-note { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.recipe-form { display: flex; flex-direction: column; gap: 1.15rem; padding: 1.75rem; border-left: 1px solid var(--line); background: #161c22; }
.control label { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; margin-bottom: .5rem; color: var(--ink); }
.control output { color: var(--accent); }
button, input, select { font: inherit; }
button, select, input[type=number], input[type=search] { border: 1px solid #54606a; border-radius: 3px; background: #202a33; color: var(--ink); min-height: 44px; padding: .55rem .75rem; font-size: .95rem; }
button { cursor: pointer; }
button:hover { border-color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
select, input[type=range] { width: 100%; }
input[type=range] { accent-color: var(--accent); min-height: 24px; }
.range-ends { display: flex; justify-content: space-between; color: var(--dim); font-size: .875rem; }
.seed-input { display: flex; gap: .5rem; }
.seed-input input { width: 6.5rem; min-width: 0; flex: 1; }
.seed-input button { font-size: .875rem; padding-inline: .55rem; }
.primary-button { color: #171c21; background: var(--accent); border-color: var(--accent); font-weight: 500; }
.primary-button:hover { background: #f0c897; }
.arrangement-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 1.7rem; }
.arrangement-actions a { font-size: .95rem; }
#room-status { min-height: 1.7rem; color: var(--accent); margin-top: 1rem; }
#room-status[data-error=true] { color: #ffadad; }
.saved-note { font-size: .9rem; color: var(--muted); }
#saved-provenance p + p { margin-top: .5rem; }
.room-colophon { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; }
.room-colophon h2 { margin-top: 0; font-size: 2rem; }
.room-colophon p { color: var(--muted); margin-top: 1rem; }
.room-colophon li { margin-bottom: .7rem; font-size: .9rem; }
.agent-docs { max-width: 55rem; }
.agent-docs h2 { margin-block: 2.5rem 1rem; }
.agent-docs p, .agent-docs li { color: var(--muted); }
.agent-docs p + p { margin-top: 1rem; }
pre { padding: 1.3rem; overflow: auto; background: #1b242c; border: 1px solid var(--line); font-size: .9rem; line-height: 1.65; }
code { overflow-wrap: anywhere; }
.table-scroll { overflow: auto; margin-block: 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { font-weight: 500; color: var(--accent); }
.studio-table td:last-child { max-width: 28rem; }
.studio-total { font: 3rem var(--serif); color: var(--accent); }
.studio-filter { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-block: 1.5rem; }
.studio-filter input { min-width: 16rem; }
.workshop-door { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.workshop-door p { color: var(--muted); }.workshop-door a { color: var(--accent); }
[hidden] { display: none !important; }
@media(max-width: 1050px) { .entry-layout { gap: 3rem; }.instrument { grid-template-columns: minmax(0,1fr) 17rem; }.instrument-score { padding: 1.4rem; }.recipe-form { padding: 1.25rem; }.room-heading { flex-direction: column; align-items: flex-start; }.score-caption { flex-direction: column; gap: .5rem; } }
@media(max-width: 750px) { .work-main { padding-top: 2rem; }.entry-layout, .comparison, .room-colophon, .instrument { grid-template-columns: 1fr; }.entry-layout { gap: 3rem; }.note-row { grid-template-columns: 1fr 2rem; gap: .5rem; }.note-row > .eyebrow { grid-column: 1 / -1; }.recipe-form { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }.seed-control { grid-column: 1 / -1; }.recipe-form > .primary-button { grid-column: 1 / -1; }.instrument-score { padding: 1rem; }.room-colophon { gap: 2rem; }.workshop-door { flex-direction: column; gap: 1rem; }.comparison { gap: 3rem; } }
@media(max-width: 420px) { .recipe-form { grid-template-columns: 1fr; }.score-caption { font-size: .875rem; }.arrangement-actions { gap: 1rem; } }
