/* Scoped to The Escape reader. The underlying artwork stays unchanged. */
.comic-lighting-stage, #page-expand { position: relative; line-height: 0; }
#comic-page, #dialog-image { display: block; }
.comic-lighting-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.comic-lighting-original .comic-lighting-overlay { display: none; }
.comic-lighting-controls { width: min(100%, 1055px); margin: 0 auto 1rem; padding: .85rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; border: 1px solid var(--cool-line); border-radius: 14px; background: #0a1014; line-height: 1.4; }
.comic-lighting-modes { display: flex; gap: .45rem; }
.comic-lighting-controls button { min-height: 44px; padding: .55rem .85rem; border: 1px solid #47535b; border-radius: 8px; background: #101a23; color: #e5edf1; font: inherit; cursor: pointer; }
.comic-lighting-controls button[aria-pressed="true"] { color: #ffe5af; border-color: #d5ae67; background: #302819; }
.comic-lighting-controls button:focus-visible, .comic-lighting-controls input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.comic-lighting-intensity { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 190px; max-width: 350px; color: #c3ced5; font-size: .85rem; }
.comic-lighting-intensity input { width: 100%; min-width: 70px; min-height: 32px; margin: 0; accent-color: #d5ae67; }
.comic-lighting-intensity output { min-width: 3ch; font-variant-numeric: tabular-nums; }
.comic-lighting-motion { display: flex; align-items: center; gap: .5rem; min-height: 44px; color: #c3ced5; font-size: .85rem; white-space: nowrap; }
.comic-lighting-motion input { width: 19px; height: 19px; accent-color: #d5ae67; }
.comic-dialog-toolbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: .6rem; padding: .6rem; background: rgba(4, 8, 10, .96); line-height: 1.4; }
.comic-dialog-toolbar .comic-lighting-controls { border: 0; padding: 0; margin: 0; background: transparent; }
.comic-dialog-toolbar .dialog-close { position: static; float: none; margin: 0; flex-shrink: 0; }
@media (max-width: 620px) {
  .comic-lighting-controls { gap: .4rem .7rem; padding: .6rem; }
  .comic-lighting-intensity { min-width: 170px; max-width: none; }
  .comic-dialog-toolbar { align-items: start; }
  .comic-dialog-toolbar .comic-lighting-intensity { min-width: 100%; }
  .comic-dialog-toolbar .comic-lighting-motion { min-height: 32px; }
}

.comic-lighting-controls[hidden] { display: none; }
