/* Preview page: three columns around a 16:9 output */
.pv { max-width: 1500px; }
.pv-head { padding-top: 32px; }
.pv-head h1 { margin-bottom: .2em; }
.pv-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 290px; gap: 20px; align-items: start; margin-top: 16px; }
.pv-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.pv-side { display: flex; flex-direction: column; gap: 10px; }
.pv-label { margin: 10px 0 0; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; }
.pv-label:first-child { margin-top: 0; }
.pv-field { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.pv-inline { flex-direction: row; align-items: center; gap: 8px; }
.pv select, .pv textarea {
  background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 9px; font: inherit; font-size: .9rem;
}
.pv textarea { width: 100%; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .78rem; resize: vertical; }
.pv .button { padding: 8px 14px; font-size: .9rem; }
.pv-note { margin: 0; color: var(--faint); font-size: .82rem; line-height: 1.45; }
.pv-note.is-error { color: #ff8c7a; }
.pv-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: .85rem; cursor: pointer; text-align: left; }
.pv-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pv-check { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }

.pv-drop { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px; border: 1px dashed var(--border); border-radius: 10px; color: var(--faint); font-size: .82rem; }
.pv-drop.is-over { border-color: var(--accent); background: rgba(255, 101, 15, .08); }

.pv-list { display: flex; flex-direction: column; gap: 2px; max-height: 520px; overflow-y: auto; }
.pv-list button { text-align: left; background: none; border: 0; border-radius: 8px; padding: 7px 10px; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; }
.pv-list button:hover { background: var(--raised); color: var(--text); }
.pv-list button[aria-selected="true"] { background: var(--raised); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }

.pv-stage-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.pv-stage { position: absolute; inset: 0; }
#host { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
#host > * { position: absolute; inset: 0; }
.bg-photo { background: linear-gradient(160deg, #5b6e52, #2f3d2a 55%, #8a9a86); }
.bg-dark { background: #111; }
.bg-light { background: #e9ece8; }
.bg-checker { background: repeating-conic-gradient(#2a2f35 0% 25%, #1f2328 0% 50%) 50% / 28px 28px; }
.pv-onair { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 99px; background: rgb(0 0 0 / .55); color: #ddd; font-size: .75rem; font-weight: 700; letter-spacing: .04em; z-index: 2; }
.pv-onair.is-on { background: #d6202e; color: #fff; }
.pv-transport { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 6px; }

.pv-clock { display: flex; align-items: baseline; gap: 10px; font: 700 2rem/1 "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.pv-clock small { font: 600 .8rem Inter, system-ui, sans-serif; color: var(--faint); }
.pv-log { list-style: none; margin: 0; padding: 0; max-height: 150px; overflow-y: auto; font-size: .8rem; color: var(--muted); }
.pv-log li { padding: 3px 0; border-bottom: 1px solid var(--border); }
.pv-log time { color: var(--faint); font-family: "IBM Plex Mono", ui-monospace, monospace; margin-right: 6px; }
.pv-colors { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pv-colors input { width: 38px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: none; cursor: pointer; }
.pv-more summary { cursor: pointer; color: var(--muted); font-size: .85rem; font-weight: 600; }
.pv-more textarea { margin-top: 6px; }
.pv-foot { color: var(--faint); font-size: .85rem; margin-top: 18px; }

@media (max-width: 1100px) {
  .pv-grid { grid-template-columns: 1fr; }
  .pv-centre { order: -1; }
}
