body { display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: #0a0807; }
.work { flex: 1; display: flex; min-height: 0; }
.strip { width: 196px; flex: none; overflow-y: auto; padding: 14px 12px 40px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.thumbrow { display: flex; gap: 8px; align-items: flex-start; }
.thumbrow .no { width: 16px; font-size: 11px; color: var(--faint); text-align: right; padding-top: 2px; }
.thumb { position: relative; width: 150px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; border: 2px solid transparent; outline: 1px solid var(--line2); cursor: pointer; background: #000; }
.thumb.on { border-color: #ff6a2a; outline-color: transparent; }
.thumb.drop { box-shadow: 0 -4px 0 #ff6a2a; }
.thumb .slide { transform-origin: 0 0; pointer-events: none; }
.stagewrap { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 22px 22px 12px; gap: 12px; overflow: hidden; }
.stage { position: relative; flex: none; box-shadow: 0 16px 50px rgba(0,0,0,.55); border-radius: 4px; overflow: hidden; }
.stage > .slide { transform-origin: 0 0; }
.notes { width: 100%; max-width: 960px; height: 84px; flex: none; resize: vertical; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line2); background: rgba(0,0,0,.3); outline: none; }
.notes:focus { border-color: rgba(226,54,31,.6); }
.props { width: 236px; flex: none; overflow-y: auto; padding: 16px 14px; border-left: 1px solid var(--line); font-size: 13px; }
.props h3 { font: 500 11px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 4px 0 10px; }
.props .row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.props .row label { width: 70px; color: var(--muted); }
.props .row input[type=number] { width: 70px; }
.props .row input[type=color] { width: 40px; height: 30px; padding: 0; border: 1px solid var(--line2); border-radius: 6px; background: none; }
.props .field { height: 32px; }
.props .btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.props .btns .btn { height: 30px; padding: 0 10px; }
.props .swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.props .swatches button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line2); cursor: pointer; }

/* a slide is always laid out at 960×540 and scaled */
.slide { position: absolute; left: 0; top: 0; width: 960px; height: 540px; overflow: hidden; background-size: cover !important; background-position: center !important; font-family: "Mercury Sans", system-ui, sans-serif; }
.el { position: absolute; box-sizing: border-box; }
.el .txt { width: 100%; height: 100%; outline: none; overflow: hidden; word-wrap: break-word; line-height: 1.2; display: flex; flex-direction: column; }
.el .txt ul, .el .txt ol { margin: .2em 0; padding-left: 1.2em; }
.el .txt li { margin: .15em 0; }
.el .txt p { margin: 0; }
.el.shape .txt { padding: 10px; }
.el img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.el svg.sh { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage .el { cursor: move; }
.stage .el.sel { outline: 1.5px solid #ff6a2a; outline-offset: 1px; }
.stage .el.editing { cursor: text; outline-style: dashed; }
.stage .el .h { position: absolute; width: 10px; height: 10px; background: #fff; border: 1.5px solid #ff6a2a; border-radius: 2px; z-index: 5; }
.h.nw { left: -6px; top: -6px; cursor: nwse-resize; } .h.ne { right: -6px; top: -6px; cursor: nesw-resize; }
.h.sw { left: -6px; bottom: -6px; cursor: nesw-resize; } .h.se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.h.n { left: calc(50% - 5px); top: -6px; cursor: ns-resize; } .h.s { left: calc(50% - 5px); bottom: -6px; cursor: ns-resize; }
.h.w { top: calc(50% - 5px); left: -6px; cursor: ew-resize; } .h.e { top: calc(50% - 5px); right: -6px; cursor: ew-resize; }
.empty-hint { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.25); font-size: 22px; pointer-events: none; }

.toolbar .tbtn { height: 30px; padding: 0 9px; border: 0; border-radius: 6px; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.toolbar .tbtn:hover { background: rgba(255,236,228,.08); }
.toolbar .tbtn svg { width: 17px; height: 17px; }
.toolbar .tbtn.on { background: rgba(226,54,31,.2); color: #ffc0b2; }
.toolbar .grow { flex: 1; }

.present { position: fixed; inset: 0; z-index: 3000; background: #000; display: grid; place-items: center; cursor: none; }
.present.cursor { cursor: default; }
.pstage { position: relative; overflow: hidden; }
.pstage .slide { transform-origin: 0 0; animation: cbfade .25s; }
.pbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 12px; background: rgba(20,14,12,.85); border: 1px solid var(--line2); opacity: 0; transition: opacity .2s; font-size: 13px; color: var(--muted); }
.present.cursor .pbar { opacity: 1; }
@media print {
  body { height: auto; overflow: visible; display: block; }
  .strip, .props, .notes, .stagewrap { display: none !important; }
  .print-deck { display: block !important; }
  .print-deck .pg { position: relative; width: 960px; height: 540px; break-after: page; overflow: hidden; }
}
.print-deck { display: none; }
