.scene-workbench {
  --scene-accent: #1d4ed8;
  --scene-line: #d7e3f3;
}

[data-workbench="full_time"] {
  --scene-accent: #9a3412;
  --scene-line: #f2d9ca;
}

[data-workbench="weekend_burst"] {
  --scene-accent: #0f766e;
  --scene-line: #c9e6de;
}

.scene-burst-scope {
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid var(--scene-line);
  border-radius: 12px;
  background: #f0faf7;
}

.scene-burst-scope > label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-weight: 700;
  color: var(--scene-accent);
}

.scene-burst-scope select {
  flex: 0 1 260px;
  min-width: 0;
  min-height: 42px;
}

.scene-card {
  margin-bottom: 14px;
}

.scene-section-head {
  margin-bottom: 14px;
}

.scene-section-head h2 {
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.3;
}

.scene-section-head p,
.scene-timeline p {
  margin: 5px 0 0;
  color: var(--text-sub);
  line-height: 1.55;
}

.scene-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.scene-inline-actions {
  margin-bottom: 12px;
}

.scene-view-controls {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--border-main, #dbe2eb);
  border-radius: 12px;
  background: var(--bg-soft, #f8fafc);
  width: max-content;
  max-width: 100%;
}

.scene-view-button {
  appearance: none;
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-sub, #475569);
  font: inherit;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.scene-view-button[aria-pressed="true"] {
  background: var(--bg-card, #fff);
  box-shadow: 0 1px 3px rgb(15 23 42 / 13%);
  color: var(--scene-accent, #1d4ed8);
}

.scene-view-button:focus-visible {
  outline: 2px solid var(--scene-accent, #1d4ed8);
  outline-offset: -2px;
}

.scene-subject-rail {
  margin-bottom: 12px;
}

.scene-node-list,
.scene-timeline {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}

.scene-node-list li,
.scene-timeline li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--scene-line);
}

.scene-node-list li span:not(.v2-badge) {
  display: block;
  margin-top: 3px;
  color: var(--text-sub);
  font-size: 13px;
}

.scene-node-list li:last-child,
.scene-timeline li:last-child {
  border-bottom: 0;
}

.scene-node-actions {
  flex-shrink: 0;
}

.scene-timeline li {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
}

.scene-timeline time {
  color: var(--scene-accent);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.scene-timeline h3 {
  margin: 0;
  font-size: 16px;
}

.scene-node-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: 5px 12px;
  border: 1px solid var(--scene-line);
  border-radius: 10px;
  margin: 0 0 14px;
  padding: 10px;
}

.scene-node-options label,
.scene-variant-item label {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px;
}

.scene-variant-item {
  margin: 0 0 12px;
  border: 1px solid var(--scene-line);
  border-radius: 8px;
  padding: 12px;
}

.scene-recitation-item {
  margin-top: 10px;
  border-top: 1px solid var(--scene-line);
  padding: 9px 0 1px;
}

.scene-recitation-item summary {
  cursor: pointer;
  font-weight: 700;
}

.scene-help-list > summary {
  cursor: pointer;
  font-weight: 700;
}

.scene-help-dialog {
  width: min(460px, calc(100% - 28px));
  max-height: min(620px, calc(100% - 28px));
  padding: 20px;
  border: 1px solid var(--border-main, #dbe2eb);
  border-radius: 16px;
  background: var(--bg-card, #fff);
  color: var(--text-main, #172033);
  box-shadow: 0 12px 32px rgb(15 23 42 / 16%);
}

.scene-help-dialog::backdrop {
  background: rgb(15 23 42 / 42%);
}

.scene-help-form,
.scene-help-form label,
.scene-help-topic {
  display: grid;
  gap: 6px;
}

.scene-help-form {
  gap: 14px;
}

.scene-help-form h2,
.scene-help-form p {
  margin: 0;
}

.scene-help-form h2 {
  font-size: 20px;
}

.scene-help-topic {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-soft, #f8fafc);
}

.scene-help-topic span {
  color: var(--text-sub, #475569);
}

.scene-print-refill > button {
  margin-bottom: 10px;
}

.scene-preline {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.v2-rumination-field {
  display: grid;
  gap: 4px;
  margin: 8px 0;
}

@media (max-width: 640px) {
  .scene-timeline li,
  .scene-node-list li {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 5px;
  }

  .scene-view-button {
    padding-inline: 10px;
  }
}

@media print {
  body.scene-printing-report .v2-main {
    display: none !important;
  }

  body.scene-printing-report .v2-battle-poster-foot {
    background: white !important;
    color: black !important;
  }
}
.scene-lights-actions {
  margin-bottom: 12px;
}
.scene-burst-steps {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.scene-early-review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.scene-early-review h2,
.scene-early-review p {
  margin: 0;
}

.scene-early-review p {
  margin-top: 4px;
}
