.scene-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 36px 14px;
  font-size: 11px;
}
.scene-bar label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.scene-bar select {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 7px 22px 7px 0;
  color: var(--ink);
  font-size: 11px;
}
.scene-bar p {
  margin: 0;
  font: italic 19px var(--serif);
  color: var(--wine);
}
.sentence-panel {
  padding: 15px 36px 0;
  text-align: center;
  flex-shrink: 0;
}
.sentence {
  font: 400 clamp(24px, 3vw, 38px) / 1.65 var(--serif);
  white-space: nowrap;
}
.sentence-word {
  font: italic 1em var(--serif);
  color: var(--wine);
  border: 0;
  border-bottom: 1px solid #b9a29f;
  border-radius: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
  padding: 0 5px;
  max-width: 24vw;
}
.sentence-word:hover {
  background: #762d4309;
}
.sentence-word option {
  font: 16px var(--sans);
  color: var(--ink);
}
.swap-words {
  font: 22px var(--serif);
  border: 0;
  background: transparent;
  color: #928379;
  padding: 3px 10px;
  vertical-align: middle;
}
.swap-words:hover {
  color: var(--wine);
}
.sentence-panel p {
  font-size: 10px;
  color: var(--muted);
  margin: 9px 0 0;
  min-height: 14px;
}
.temporal-rule {
  font: italic clamp(21px, 2.5vw, 31px) var(--serif);
  margin: 8px 0;
}
.temporal-rule select {
  font: inherit;
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--wine);
  background: none;
  color: var(--wine);
  padding: 0 5px;
}
.scene-complete {
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 13px 17px;
  background: #f3f0e7ec;
  border: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: center;
}
.scene-complete[hidden] {
  display: none;
}
.scene-complete span {
  font: italic 18px var(--serif);
}
.phrase .experience-foot {
  min-height: 49px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.phrase .canvas-wrap {
  min-height: 170px;
}
.workbench-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  flex: 1;
  min-height: 0;
  margin: 0 36px;
  border: 1px solid var(--line);
}
.workbench-layout .canvas-wrap {
  margin: 0;
  min-height: 260px;
}
.bench-controls {
  padding: 25px;
  border-left: 1px solid var(--line);
  overflow-y: auto;
}
.bench-controls h2 {
  font: 400 30px/1.05 var(--serif);
  margin: 7px 0 15px;
  letter-spacing: -0.025em;
}
.bench-controls p {
  font: 400 17px/1.45 var(--serif);
  color: var(--muted);
}
.bench-controls .small-button {
  width: 100%;
  margin-top: 10px;
}
.bench-controls .range-label {
  display: block;
  margin: 18px 0 8px;
  line-height: 1.8;
}
.bench-controls .range-label input {
  display: block;
  width: 100%;
  margin: 8px 0;
}
.choice-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 13px 0;
}
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  outline: 1px solid transparent;
  background: var(--swatch);
}
.swatch.active {
  outline-color: var(--wine);
}
.step-progress {
  display: flex;
  gap: 7px;
  margin: 0 0 23px;
}
.step-progress span {
  height: 2px;
  flex: 1;
  background: var(--line);
}
.step-progress span.done {
  background: var(--wine);
}
.stage-verse {
  position: absolute;
  left: 26px;
  bottom: 25px;
  max-width: 440px;
  padding: 13px 18px 14px;
  border-left: 2px solid #8d4558;
  background: linear-gradient(90deg, #eee8dded 76%, transparent);
  font: italic clamp(17px, 1.8vw, 23px) / 1.18 var(--serif);
  color: #67554e;
  pointer-events: none;
}
.stage-verse small {
  display: block;
  margin-bottom: 6px;
  font: 600 9px/1.2 var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--wine);
}
.stage-verse span {
  display: block;
}
.stage-verse span.made {
  animation: line-made 450ms ease-out both;
}
.stage-verse span.waiting {
  color: #806e642e;
  letter-spacing: 0.25em;
}
@keyframes line-made {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.rose-requirements {
  margin: 15px 0 7px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rose-requirements .eyebrow {
  margin-bottom: 7px;
}
.rose-requirements [data-requirement] {
  padding: 3px 0;
  color: #756b64;
  font-size: 14px;
}
.rose-requirements [data-requirement].done {
  color: #59634f;
}
.petal-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin: 15px 0;
}
.petal-button {
  border: 1px solid var(--line);
  background: none;
  border-radius: 50%;
  font-size: 10px;
  width: 27px;
  height: 27px;
}
.petal-button.active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--paper);
}
.status-copy {
  font-size: 10px !important;
  line-height: 1.6 !important;
  min-height: 32px;
  color: var(--wine) !important;
}
.poem-sheet {
  max-width: 1120px;
  margin: auto;
  padding: 40px 36px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 55px;
}
.poem-sheet[hidden] {
  display: none;
}
.poem-sheet h2 {
  font: 400 38px/1.05 var(--serif);
  letter-spacing: -0.03em;
  margin: 0 0 30px;
}
.poem-lines {
  font: 400 clamp(20px, 2.2vw, 27px) / 1.4 var(--serif);
}
.poem-line {
  margin: 0;
  min-height: 1.4em;
}
.poem-stanza {
  margin-bottom: 24px;
}
.poem-word {
  font: inherit;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  display: inline;
  border-bottom: 1px solid transparent;
  cursor: help;
}
.poem-word:hover {
  color: var(--wine);
  border-color: #bc8d92;
}
.poem-word.selected {
  color: var(--wine);
  background: #762d430b;
  border-color: var(--wine);
}
.word-aside {
  align-self: start;
  position: sticky;
  top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  min-height: 240px;
}
.word-aside h3 {
  font: italic 42px var(--serif);
  margin: 15px 0 16px;
  color: var(--wine);
}
.word-aside p {
  font: 400 20px/1.45 var(--serif);
  color: #625752;
  margin: 12px 0;
}
.word-aside .word-controls {
  display: flex;
  gap: 15px;
  margin-top: 22px;
}
.word-aside small {
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
}
.reading-mode {
  height: auto;
  min-height: 100svh;
  overflow: visible;
}
.reading-mode .workbench-layout {
  display: none;
}
.reading-mode .piece-head {
  border-bottom: 1px solid var(--line);
}
.reading-mode .experience-foot {
  max-width: 1120px;
  width: 100%;
  margin: auto;
}
.reading-mode .piece-head h1 {
  font-size: 38px;
}
.machine-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.machine-options .small-button {
  margin-top: 0;
  padding: 9px 5px;
}
.machine-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 13px 0 20px;
}
.machine-progress span {
  border-top: 2px solid var(--line);
  padding-top: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.machine-progress span.current {
  border-color: var(--wine);
  color: var(--wine);
}
.machine-progress span.done {
  border-color: #708065;
  color: #58634f;
}
.machine-readout {
  font: italic 29px var(--serif);
  color: var(--wine);
  margin: 22px 0 5px;
}
.machine-steps {
  font-size: 10px;
  line-height: 1.9;
  padding-left: 18px;
  color: var(--muted);
}
.machine-instruction {
  position: absolute;
  left: 24px;
  bottom: 22px;
  right: 24px;
  font: italic 22px var(--serif);
  color: var(--muted);
  pointer-events: none;
}
@media (max-width: 760px) {
  .scene-bar {
    padding: 0 20px 12px;
    flex-wrap: wrap;
    gap: 5px;
  }
  .scene-bar p {
    font-size: 17px;
  }
  .sentence-panel {
    padding: 10px 14px 0;
  }
  .sentence {
    font-size: 27px;
    line-height: 1.6;
  }
  .sentence-word {
    padding: 0 3px;
  }
  .swap-words {
    padding: 2px 5px;
    font-size: 18px;
  }
  .scene-complete {
    top: 10px;
    right: 10px;
    padding: 8px 10px;
    gap: 8px;
  }
  .scene-complete span {
    font-size: 15px;
  }
  .workbench-layout {
    margin: 0 20px;
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .bench-controls {
    padding: 18px;
  }
  .bench-controls h2 {
    font-size: 27px;
  }
  .stage-verse {
    left: 17px;
    bottom: 18px;
    font-size: 21px;
    max-width: 230px;
  }
  .poem-sheet {
    padding: 30px 22px;
    gap: 25px;
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .poem-lines {
    font-size: 22px;
  }
  .word-aside p {
    font-size: 18px;
  }
}
@media (max-width: 580px) {
  .workbench-layout {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .workbench-layout .canvas-wrap {
    min-height: 310px;
    flex: 0 0 310px;
  }
  .bench-controls {
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow-y: visible;
  }
  .bench-controls h2 {
    font-size: 30px;
  }
  .bench-controls p {
    font-size: 17px;
  }
  .choice-row {
    margin: 9px 0;
  }
  .bench-controls .range-label {
    margin: 10px 0;
  }
  .step-progress {
    margin-bottom: 13px;
  }
  .poem-sheet {
    display: flex;
    flex-direction: column-reverse;
    gap: 25px;
  }
  .word-aside {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--paper);
    min-height: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    box-shadow: 0 6px 10px #f3f0e7;
  }
  .word-aside h3 {
    font-size: 27px;
    display: inline;
    margin: 0 13px 0 0;
  }
  .word-aside p {
    font-size: 17px;
    display: inline;
  }
  .word-aside .eyebrow {
    margin-bottom: 7px;
    font-size: 8px;
  }
  .word-aside small {
    display: none;
  }
  .word-aside .word-controls {
    margin: 8px 0 0;
  }
  .poem-lines {
    font-size: 21px;
  }
  .poem-sheet h2 {
    font-size: 31px;
  }
  .rose .piece-head h1 {
    font-size: 34px;
  }
  .phrase .piece-head h1 {
    font-size: 37px;
  }
  .phrase .piece-head {
    gap: 10px;
  }
  .phrase .piece-head .piece-tools {
    max-width: 130px;
    flex-wrap: wrap;
    justify-content: end;
    gap: 3px 10px;
  }
  .phrase .plain-button {
    font-size: 9px;
    min-height: 25px;
  }
  .machine .piece-head h1 {
    font-size: 35px;
  }
}
