@font-face { font-family: 'Courier Prime'; src: url('vendor/fonts/courier-prime-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('vendor/fonts/courier-prime-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('vendor/fonts/courier-prime-latin-400-italic.woff2') format('woff2'); font-style: italic; font-display: swap; }

:root {
  --desk: #2a2c30;
  --bg: #0e0f11; --bg2: #15171a; --bg3: #1d2024; --bg4: #272b30; --line: #2a2d32; --line2: #3a3e45;
  --tx: #eceded; --tx2: #a3a7ad; --tx3: #8b9097; --amber: #ffb224; --amber2: #e59a10; --red: #ff6369; --green: #4cc38a;
  --r: 6px; --ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--tx); font: 13px/1.45 var(--ui); overflow: hidden; -webkit-font-smoothing: antialiased; }
#app { display: flex; height: 100vh; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.muted { color: var(--tx2); } .small { font-size: 12px; } .grow { flex: 1; }
.row { display: flex; gap: 8px; align-items: flex-end; } .row > .field { flex: 1; min-width: 0; } .row.gap { gap: 16px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; } .row.between { justify-content: space-between; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.side { width: 208px; flex: none; background: var(--bg2); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 10px 10px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; padding: 2px 8px 12px; letter-spacing: -.01em; }
.mark { width: 24px; height: 24px; flex: none; background: url('icons/icon.svg') center / contain no-repeat; }
.film-switch { display: block; width: 100%; text-align: start; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r); padding: 7px 10px; margin-bottom: 10px; cursor: pointer; }
.film-switch:hover { border-color: var(--line2); } .film-switch small { display: block; color: var(--tx3); font-size: 11px; } .film-switch b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-group { margin-bottom: 8px; } .nav-group h4 { font-size: 11px; font-weight: 600; color: var(--tx3); padding: 6px 10px 3px; }
.nav-group a { display: block; padding: 5px 10px; border-radius: 5px; color: var(--tx2); }
.nav-group a:hover { background: var(--bg3); color: var(--tx); } .nav-group a.on { background: var(--bg4); color: #fff; box-shadow: inset 2px 0 var(--amber); }
.plan-slot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); } .plan-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 4px; color: var(--tx2); font-size: 12px; }
.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 38px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.saved { color: var(--tx3); font-size: 12px; margin-inline-end: 8px; } .saved.bad { color: var(--red); font-weight: 600; }
main { flex: 1; min-height: 0; overflow: auto; position: relative; }
main[data-view=script], main[data-view=lighting] { overflow: hidden; }

.view { padding: 20px 26px 60px; max-width: 1280px; margin: 0 auto; width: 100%; min-width: 0; } .view.wide { max-width: none; } .view.narrow { max-width: 860px; }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.view-head h1 { font-size: 22px; font-weight: 680; letter-spacing: -.015em; } .view-head p { color: var(--tx2); margin-top: 1px; }
.actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.btn { background: var(--bg3); border: 1px solid var(--line2); border-radius: var(--r); padding: 6px 12px; cursor: pointer; white-space: nowrap; font-weight: 520; }
.btn:hover { background: var(--bg4); } .btn.small { padding: 3px 9px; font-size: 12px; } .btn.primary { background: var(--amber); border-color: var(--amber); color: #1a1204; font-weight: 650; } .btn.primary:hover { background: #ffc34f; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--tx2); } .btn.quiet:hover { background: var(--bg3); color: var(--tx); } .btn.danger { background: #c9343a; border-color: #c9343a; color: #fff; } .btn.danger-quiet { background: transparent; border-color: var(--line2); color: var(--red); } .btn.on { background: var(--tx); color: #111; border-color: var(--tx); }
.seg { display: inline-flex; gap: 0; } .seg .btn { border-radius: 0; margin-inline-start: -1px; padding: 4px 11px; font-size: 12px; } .seg .btn:first-child { border-start-start-radius: var(--r); border-end-start-radius: var(--r); margin-inline-start: 0; } .seg .btn:last-child { border-start-end-radius: var(--r); border-end-end-radius: var(--r); }
.x { background: none; border: 0; color: var(--tx3); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 4px; } .x:hover { color: var(--red); background: var(--bg4); }
.link { background: none; border: 0; padding: 0; color: var(--amber); cursor: pointer; text-decoration: underline; }
.field { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .field > span { color: var(--tx2); font-size: 12px; } .field.inline { flex-direction: row; align-items: center; gap: 7px; } .field.inline input { width: 96px; } .field.inline span { white-space: nowrap; }
input:not([type=checkbox]):not([type=range]):not([type=color]), select, textarea { background: var(--bg); border: 1px solid var(--line2); border-radius: 5px; padding: 5px 8px; width: 100%; min-width: 0; }
textarea { resize: vertical; line-height: 1.45; } input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--amber); } input::placeholder, textarea::placeholder { color: #6f747b; }
input[type=checkbox] { accent-color: var(--amber); width: 15px; height: 15px; margin: 0; cursor: pointer; } input[type=range] { accent-color: var(--amber); width: 100%; margin: 0; }
input[type=color] { width: 100%; height: 28px; padding: 1px; background: var(--bg); border: 1px solid var(--line2); border-radius: 5px; }
.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; } .panel > h2 { font-size: 14px; font-weight: 650; margin-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; } .form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .form-grid .wide { grid-column: 1 / -1; }
.blank { text-align: center; color: var(--tx2); padding: 56px 20px; border: 1px dashed var(--line2); border-radius: 8px; display: flex; flex-direction: column; gap: 8px; align-items: center; } .blank h2 { color: var(--tx); font-size: 16px; }
.notice { background: #2a2110; border: 1px solid #5a4518; color: #ffdf9f; padding: 9px 12px; border-radius: 6px; margin-bottom: 14px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--amber); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--bg2); margin-bottom: 8px; }
table.grid { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; } .grid th { text-align: start; font-size: 11px; font-weight: 600; color: var(--tx2); padding: 6px 7px; border-bottom: 1px solid var(--line); background: var(--bg3); white-space: nowrap; overflow: hidden; }
.grid td { border-bottom: 1px solid var(--line); padding: 1px; height: 30px; } .grid tr:last-child td { border-bottom: 0; } .grid tbody tr:hover { background: rgba(255,255,255,.025); }
.grid td input:not([type=checkbox]), .grid td select { background: transparent; border-color: transparent; padding: 4px 6px; } .grid td input:hover, .grid td select:hover { border-color: var(--line2); } .grid td input:focus, .grid td select:focus { border-color: var(--amber); background: var(--bg); }
.grid .grip { color: var(--tx3); cursor: grab; text-align: center; user-select: none; } .grid .mono { font-variant-numeric: tabular-nums; padding-inline-start: 8px; font-weight: 600; } .grid .num { text-align: end; padding-inline-end: 8px; font-variant-numeric: tabular-nums; } .grid .center { text-align: center; } .grid .center input { vertical-align: middle; } .grid .rowact { text-align: center; } .grid .empty { text-align: center; color: var(--tx2); padding: 14px; }
.grid tr.is-done input:not([type=checkbox]) { color: var(--tx3); text-decoration: line-through; } tr.dragging { opacity: .4; }
table.plain { width: 100%; border-collapse: collapse; } .plain th { text-align: start; font-size: 11px; color: var(--tx2); font-weight: 600; padding: 4px 7px; border-bottom: 1px solid var(--line2); } .plain td { padding: 4px 7px; border-bottom: 1px solid var(--line); vertical-align: top; }
.money th:not(:first-child), .money td:not(:first-child) { text-align: end; font-variant-numeric: tabular-nums; } .money tfoot td { font-weight: 600; } .money .grand td { font-size: 15px; color: var(--amber); border-top: 2px solid var(--line2); border-bottom: 0; } .over { color: var(--red) !important; }
.scene-block { margin-bottom: 18px; } .scene-title { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-weight: 620; } .scene-title b { background: var(--amber); color: #1a1204; border-radius: 3px; padding: 0 7px; } .scene-title small { color: var(--tx2); font-weight: 400; } .scene-title .btn { margin-inline-start: auto; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 16px; }
.dash-card { text-align: start; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; } .dash-card:hover { border-color: var(--amber); } .dash-card span { color: var(--tx2); font-size: 12px; } .dash-card b { font-size: 20px; font-weight: 660; letter-spacing: -.01em; font-variant-numeric: tabular-nums; } .dash-card small { color: var(--tx3); font-size: 12px; }
.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px; } .film-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } .film-card.current { border-color: var(--amber); } .film-card > .row { padding: 6px 8px; border-top: 1px solid var(--line); justify-content: space-between; }
.film-open { display: block; width: 100%; text-align: start; background: none; border: 0; cursor: pointer; padding: 14px; min-height: 112px; } .film-open:hover { background: var(--bg3); } .film-open h3 { font-size: 17px; margin: 9px 0 2px; } .film-open small { color: var(--tx2); } .slate { font-size: 10px; font-weight: 700; color: #111; background: repeating-linear-gradient(115deg, var(--amber) 0 7px, #fff0cc 7px 14px); padding: 2px 8px; border-radius: 2px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; } .plan { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 10px; } .plan.pro { border-color: var(--amber); } .plan h2 { font-size: 16px; } .price b { font-size: 30px; letter-spacing: -.02em; } .price span { color: var(--tx2); } .plan ul { margin: 0 0 auto; padding: 0 0 8px 18px; display: grid; gap: 5px; } .plan .btn { margin-top: 6px; }

.sp-view { height: 100%; display: flex; flex-direction: column; } .sp-bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--bg2); border-bottom: 1px solid var(--line); flex-wrap: wrap; } .sp-type { width: 140px !important; display: none; }
.tb-group { display: flex; background: var(--bg); border: 1px solid var(--line2); border-radius: 6px; padding: 2px; } .tb { background: none; border: 0; padding: 3px 9px; border-radius: 4px; font-size: 12px; color: var(--tx2); cursor: pointer; white-space: nowrap; } .tb:hover { color: var(--tx); background: var(--bg3); } .tb.on { background: var(--amber); color: #1a1204; font-weight: 650; }
.sp-body { flex: 1; min-height: 0; display: flex; } .sp-nav { width: 240px; flex: none; overflow-y: auto; background: var(--bg2); border-inline-end: 1px solid var(--line); padding: 10px 6px; } .sp-nav h3, .list-side h3 { font-size: 11px; font-weight: 600; color: var(--tx3); padding: 3px 8px 6px; }
.sp-nav-item, .list-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 3px; width: 100%; text-align: start; background: none; border: 0; padding: 5px 8px; border-radius: 5px; cursor: pointer; font-size: 12px; color: var(--tx2); } .sp-nav-item:hover, .list-item:hover { background: var(--bg3); color: var(--tx); } .list-item.on { background: var(--bg4); color: #fff; } .sp-nav-item b, .list-item b { color: var(--amber); } .sp-nav-item small { color: var(--tx3); }
.sp-scroll { flex: 1; overflow: auto; background: var(--desk); padding: 24px; }
.sp-sheet { position: relative; width: 816px; margin: 0 auto; color: #111; background: repeating-linear-gradient(to bottom, #fff 0, #fff 1056px, var(--desk) 1056px, var(--desk) 1080px); filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
.sp-editor { padding-block: 96px; padding-inline: 144px 96px; outline: 0; caret-color: #c26a00; min-height: 100%; }
.sp, .bd-text .sp { font: 400 16px/16px 'Courier Prime', 'Courier New', Courier, monospace; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 16px; }
.sp-scene { font-weight: 700; text-transform: uppercase; } .sp-action { width: 576px; } .sp-character { margin-inline-start: 211px; width: 300px; text-transform: uppercase; } .sp-paren { margin-inline-start: 154px; width: 200px; } .sp-dialogue { margin-inline-start: 96px; width: 336px; } .sp-transition { text-align: end; text-transform: uppercase; }
.sp-nums span { position: absolute; inset-inline-end: 96px; font: 16px/16px 'Courier Prime', 'Courier New', monospace; color: #111; user-select: none; }
.sp-suggest { position: absolute; inset-inline-start: 355px; z-index: 5; background: #fff; border: 1px solid #bbb; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.25); min-width: 180px; } .sp-suggest button { display: block; width: 100%; text-align: start; background: none; border: 0; padding: 4px 8px; font: 14px 'Courier Prime', monospace; color: #111; cursor: pointer; } .sp-suggest button:hover, .sp-suggest button:first-child { background: #ffe9bd; }

.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; } .char-card { text-align: start; background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; padding: 0; cursor: pointer; display: flex; flex-direction: column; } .char-card:hover { border-color: var(--amber); }
.char-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: flex; } .no-photo { background: linear-gradient(150deg, #2b2f35, #17191c); color: #7d838b; align-items: center; justify-content: center; font-size: 42px; font-weight: 700; display: flex; }
.char-meta { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 3px; } .char-meta h3 { font-size: 16px; } .clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--tx); }
.crumb { background: none; border: 0; color: var(--tx2); padding: 0; cursor: pointer; margin-bottom: 3px; } .crumb:hover { color: var(--amber); } .char-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; } .char-layout aside { position: sticky; top: 0; display: flex; flex-direction: column; gap: 9px; } .char-layout aside h3 { font-size: 12px; color: var(--tx2); margin-top: 8px; } .char-large { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; display: flex; } .scene-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12px; } .scene-links b { color: var(--amber); }

.split { display: flex; min-height: 100%; } .list-side { width: 230px; flex: none; background: var(--bg2); border-inline-end: 1px solid var(--line); padding: 10px 6px; position: sticky; top: 0; height: calc(100vh - 38px); overflow-y: auto; } .wide-side { width: 260px; padding: 12px; display: flex; flex-direction: column; gap: 8px; } .list-item { grid-template-columns: 24px 1fr; } .split > .view { flex: 1; }
.facts { display: flex; gap: 26px; margin-bottom: 12px; } .facts span { display: block; color: var(--tx2); font-size: 12px; } .facts b { font-size: 15px; } .bd-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 14px; align-items: start; }
.tagbar { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; } .tagbtn { background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-radius: 4px; padding: 2px 7px; font-size: 11px; cursor: pointer; } .tagbtn:hover { background: var(--c); color: #111; }
.bd-text { background: #fff; color: #111; padding: 16px 18px; border-radius: 4px; margin-bottom: 10px; max-height: 480px; overflow: auto; } .bd-text .sp { font-size: 13px; line-height: 15px; margin-top: 8px; width: auto; } .bd-text .sp-character { margin-inline-start: 34%; } .bd-text .sp-dialogue { margin-inline-start: 16%; width: 60%; margin-top: 0; } .bd-text .sp-paren { margin-inline-start: 26%; width: 40%; margin-top: 0; } .bd-text mark { background: color-mix(in srgb, var(--c) 45%, #fff); color: #111; border-radius: 2px; }
.bd-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .bd-cat { background: var(--bg2); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 6px; padding: 7px 9px; display: flex; flex-direction: column; gap: 5px; min-height: 92px; } .bd-cat h3 { font-size: 12px; } .bd-cat input { margin-top: auto; padding: 2px 6px !important; font-size: 12px; } .chips { display: flex; flex-wrap: wrap; gap: 3px; } .chip { background: var(--bg4); border-radius: 3px; padding: 1px 6px; font-size: 12px; display: inline-flex; gap: 3px; align-items: center; } .chip button { background: none; border: 0; padding: 0; color: var(--tx3); cursor: pointer; } .chip button:hover { color: var(--red); }

.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; } .board-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 7px; padding: 7px; display: flex; flex-direction: column; gap: 5px; } .board-frame { display: flex; align-items: center; justify-content: center; width: 100%; background: #f4f4f2; color: #666; border: 0; padding: 0; cursor: crosshair; border-radius: 3px; overflow: hidden; } .board-frame:hover { outline: 2px solid var(--amber); } .board-frame img { width: 100%; height: 100%; object-fit: cover; display: block; } .board-meta { display: flex; justify-content: space-between; gap: 6px; } .board-meta b { color: var(--amber); } .board-meta span { color: var(--tx2); font-size: 12px; } .board-card textarea { font-size: 12px; }
.modal-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.62); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; } .modal { background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; width: min(460px, 100%); max-height: 94vh; display: flex; flex-direction: column; box-shadow: 0 16px 50px rgba(0,0,0,.55); } .modal:has(.draw) { width: min(1040px, 100%); } .modal-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 4px; } .modal-head h2 { font-size: 15px; } .modal-body { padding: 8px 16px; overflow: auto; } .modal-foot { display: flex; justify-content: flex-end; gap: 7px; padding: 10px 16px 14px; }
.draw-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; } .draw-tools label { display: flex; align-items: center; gap: 5px; width: 130px; } .swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); cursor: pointer; } .draw-canvas { width: 100%; display: block; background: #fff; cursor: crosshair; touch-action: none; border-radius: 3px; }

.legend { display: flex; align-items: center; gap: 5px; color: var(--tx2); font-size: 12px; margin-inline-end: 8px; } .legend i { width: 13px; height: 13px; border-radius: 2px; margin-inline-start: 6px; }
.board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; align-items: stretch; min-height: calc(100vh - 170px); } .day-col { width: 268px; flex: none; background: var(--bg2); border: 1px solid var(--line); border-radius: 7px; display: flex; flex-direction: column; } .day-col.pool { background: #121316; border-style: dashed; } .day-head { padding: 9px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; } .day-head h3 { font-size: 14px; } .day-head small { color: var(--tx2); } .strips { flex: 1; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-height: 80px; border-radius: 0 0 7px 7px; } .strips.over { background: rgba(255,178,36,.1); }
.strip { display: grid; grid-template-columns: 24px 1fr auto; gap: 5px; padding: 5px 7px; border-radius: 3px; color: #111; cursor: grab; font-size: 11px; line-height: 1.25; align-items: center; } .strip b { font-size: 14px; } .strip span { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .strip > div { min-width: 0; } .strip small { font-size: 10.5px; opacity: .78; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .strip em { font-style: normal; font-weight: 600; }
.int.day { background: #f5f3ea; } .ext.day { background: #f7dd72; } .int.night { background: #8fb6ec; } .ext.night { background: #80d2a2; }
.callsheet { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; } .callsheet h3 { font-size: 13px; color: var(--amber); margin-top: 6px; } .cs-top { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 16px; border: 1px solid var(--line2); border-radius: 6px; padding: 12px; } .cs-top h2 { font-size: 20px; } .cs-top small { color: var(--tx2); } .cs-call { text-align: center; border-inline-start: 1px solid var(--line); border-inline-end: 1px solid var(--line); padding: 0 12px; } .cs-call input { font-size: 25px; font-weight: 700; color: var(--amber); text-align: center; border-color: transparent !important; background: transparent !important; } .cs-info { display: flex; flex-direction: column; gap: 5px; } .callsheet td input { padding: 2px 5px !important; }
.check-list { display: flex; flex-direction: column; gap: 1px; } .check { display: flex; align-items: center; gap: 8px; padding: 3px 4px; border-radius: 4px; cursor: pointer; } .check:hover { background: var(--bg3); } .check.off { color: var(--tx3); cursor: not-allowed; } .booklet .view { display: flex; flex-direction: column; max-width: none; padding-bottom: 16px; height: calc(100vh - 38px); } .pdf-holder { flex: 1; min-height: 0; } .pdf-frame { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 6px; background: #333; }

.stage-view { height: 100%; display: flex; flex-direction: column; } .stage-bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--bg2); border-bottom: 1px solid var(--line); flex-wrap: wrap; } .plan-select { width: 230px !important; padding: 3px 7px !important; } .stage-body { flex: 1; min-height: 0; display: flex; } .palette { width: 158px; flex: none; overflow-y: auto; background: var(--bg2); border-inline-end: 1px solid var(--line); padding: 8px; } .palette h3 { font-size: 11px; color: var(--tx3); font-weight: 600; margin: 6px 2px 4px; } .pal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; } .pal { background: var(--bg3); border: 1px solid var(--line); border-radius: 4px; padding: 5px 2px; font-size: 11px; cursor: pointer; line-height: 1.15; min-height: 34px; } .pal:hover { border-color: var(--amber); } .pal.is-light { color: #ffe2a8; }
.stage-panes { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); } .stage-panes[data-mode=plan] { grid-template-columns: 1fr; } .stage-panes[data-mode=plan] .gl-pane { display: none; } .stage-panes[data-mode='3d'], .stage-panes[data-mode=lens] { grid-template-columns: 1fr; } .stage-panes[data-mode='3d'] .plan-pane, .stage-panes[data-mode=lens] .plan-pane { display: none; } .stage-pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #07080a; } .plan-canvas { position: absolute; inset: 0; outline: 0; touch-action: none; } .gl-host { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; } .gl-host canvas { display: block; } .lens-tag { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.66); padding: 2px 8px; border-radius: 3px; font-size: 12px; color: var(--amber); font-variant-numeric: tabular-nums; }
.inspector { width: 236px; flex: none; overflow-y: auto; background: var(--bg2); border-inline-start: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 10px; } .inspector h2 { font-size: 14px; } .slider { display: flex; flex-direction: column; gap: 3px; } .slider > span { display: flex; justify-content: space-between; color: var(--tx2); font-size: 12px; } .slider output { color: var(--tx); font-variant-numeric: tabular-nums; } .k-row { display: flex; flex-wrap: wrap; gap: 3px; } .small-chip { background: var(--bg3); border: 1px solid var(--line); border-radius: 3px; font-size: 11px; padding: 2px 5px; cursor: pointer; } .small-chip:hover { border-color: var(--amber); } .tip { line-height: 1.5; }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-direction: column; gap: 6px; } .toast { background: var(--tx); color: #111; padding: 8px 13px; border-radius: 6px; box-shadow: 0 6px 22px rgba(0,0,0,.45); max-width: 380px; font-weight: 520; } .toast.err { background: #c9343a; color: #fff; }

@font-face { font-family: 'Cairo'; src: url('vendor/fonts/cairo-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Cairo'; src: url('vendor/fonts/cairo-arabic-700-normal.woff2') format('woff2'); font-weight: 500 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Amiri'; src: url('vendor/fonts/amiri-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Amiri'; src: url('vendor/fonts/amiri-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
body, button, input, select, textarea { font-family: Cairo, var(--ui); }
@font-face { font-family: 'Amiri Typewriter'; src: url('vendor/fonts/amiri-typewriter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Amiri Typewriter'; src: url('vendor/fonts/amiri-typewriter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
.sp, .bd-text .sp, .sp-nums span, .sp-suggest button { font-family: 'Courier Prime', 'Amiri Typewriter', 'Courier New', Courier, monospace !important; }
.sp-sheet[dir=rtl] .sp { font-size: 21px; line-height: 32px; min-height: 32px; }
.sp-editor .sp-scene { background: #efeee8; box-shadow: 0 0 0 5px #efeee8; border-radius: 1px; } .sp-editor .sp-scene[data-tone=int-day] { background: #f6f0d8; box-shadow: 0 0 0 5px #f6f0d8; } .sp-editor .sp-scene[data-tone=ext-day] { background: #fbe88f; box-shadow: 0 0 0 5px #fbe88f; } .sp-editor .sp-scene[data-tone=int-night] { background: #bcd5f6; box-shadow: 0 0 0 5px #bcd5f6; } .sp-editor .sp-scene[data-tone=ext-night] { background: #b3e6c8; box-shadow: 0 0 0 5px #b3e6c8; }
.script-lang { display: inline-flex; align-items: center; gap: 6px; color: var(--tx2); font-size: 12px; white-space: nowrap; } .sp-transition { text-align: end; }
[dir=rtl] .nav-group a.on, [dir=rtl] .nav-top.on { box-shadow: inset -2px 0 var(--amber); } [dir=rtl] .crumb { direction: rtl; }
.plan-canvas, .draw-canvas, input[type=time], input[type=date] { direction: ltr; } [dir=rtl] input[type=number] { text-align: start; }
.nav-sec { margin-bottom: 3px; } .nav-sec > summary { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 5px; cursor: pointer; font-weight: 650; color: var(--tx); list-style: none; user-select: none; } .nav-sec > summary::-webkit-details-marker { display: none; } .nav-sec > summary:hover { background: var(--bg3); } .nav-sec > summary::after { content: ''; width: 6px; height: 6px; border-inline-end: 1.5px solid var(--tx2); border-bottom: 1.5px solid var(--tx2); transform: rotate(45deg); transition: transform .12s; } [dir=rtl] .nav-sec > summary::after { transform: rotate(-45deg); } .nav-sec:not([open]) > summary::after { transform: rotate(-45deg); } [dir=rtl] .nav-sec:not([open]) > summary::after { transform: rotate(45deg); } .nav-sec .nav-group { margin-bottom: 3px; padding-inline-start: 6px; }
.nav-top { display: block; padding: 6px 10px; border-radius: 5px; font-weight: 650; color: var(--tx); margin-bottom: 3px; } .nav-top:hover { background: var(--bg3); } .nav-top.on { background: var(--bg4); color: #fff; box-shadow: inset 2px 0 var(--amber); } .nav-top.export { margin-top: 5px; border-top: 1px solid var(--line); border-radius: 0 0 5px 5px; padding-top: 9px; }
.doc textarea { font-size: 15px; line-height: 1.65; } .counted { display: flex; flex-direction: column; gap: 3px; } .count { align-self: flex-end; font-size: 12px; } .doc > .row { margin-bottom: 8px; } .actions.nowrap { flex-wrap: nowrap; } .btn.hide { visibility: hidden; } .scene-title .btn + .btn { margin-inline-start: 0; } .board-meta { align-items: baseline; flex-wrap: wrap; } .board-meta .link { font-size: 12px; }
.auth-wrap { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto; }
.auth-card { width: min(390px, 100%); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 12px; } .auth-card h1 { font-size: 22px; letter-spacing: -.015em; } .auth-card .brand { padding: 0 0 6px; } .auth-card .btn { padding: 8px 12px; } .auth-card [hidden] { display: none; } .auth-error { color: var(--red); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 40px; background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 6px; padding: 8px 12px; font-weight: 600; cursor: pointer; } .btn-google:hover { background: #f2f2f2; } .btn-google:disabled { opacity: .55; cursor: not-allowed; } .g-mark { display: inline-flex; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--tx3); font-size: 12px; } .auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.acct { display: block; color: var(--tx3); font-size: 12px; padding: 2px 4px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .acct:hover { color: var(--tx); }
.account-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; } .btn:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 1050px) { .bd-layout, .char-layout, .plans { grid-template-columns: 1fr; } .char-layout aside { position: static; max-width: 280px; } .inspector { width: 200px; } .palette { width: 128px; } .sp-nav { display: none; } .form-grid.three { grid-template-columns: 1fr 1fr; } .cs-top { grid-template-columns: 1fr; } .cs-call { border: 0; } }
@media (max-width: 720px) { .side { width: 150px; } .view { padding: 14px 16px 40px; } .form-grid, .form-grid.three, .bd-cats { grid-template-columns: 1fr; } .tb-group { display: none; } .sp-type { display: block; } .sp-scroll { padding: 0; } .stage-body { flex-direction: column; } .palette, .inspector { width: auto; max-height: 150px; } .split { flex-direction: column; } .list-side { width: auto; height: auto; max-height: 150px; position: static; } }
.auth-notice { color: var(--green); } .film-loading { position: fixed; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center; background: rgba(14,15,17,.72); font-weight: 600; } .film-loading[hidden] { display: none; }

.admin-body { overflow: auto; } .admin { min-height: 100vh; } .admin-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 18px; background: var(--bg2); border-bottom: 1px solid var(--line); } .admin-top .brand { padding: 0; }
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 8px; margin-bottom: 12px; } .dash-card.selected { border-color: var(--amber); } .admin-search { margin-bottom: 10px; } .admin-list { display: flex; flex-direction: column; gap: 7px; }
.admin-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(0, auto); gap: 12px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; } .admin-who { display: flex; flex-direction: column; min-width: 0; } .admin-who small { color: var(--tx2); overflow-wrap: anywhere; } .admin-note { color: var(--amber) !important; } .admin-row .actions { justify-content: flex-end; }
.status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--bg4); } .s-active, .s-stripe { color: var(--green); } .s-trial { color: #7cb7ff; } .s-ended, .s-off { color: var(--red); }
.pay-window { align-items: stretch; text-align: center; } .pay-window .seg { justify-content: center; } .pay-amount { font-size: 26px; } .pay-qr { display: flex; align-items: center; justify-content: center; width: 210px; min-height: 210px; margin: 0 auto; padding: 8px; background: #fff; border-radius: 8px; } .pay-qr img { width: 100%; display: block; } .pay-text { white-space: pre-wrap; text-align: start; } .pay-setup { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; } .pay-setup .pay-qr { margin: 0; }
@media (max-width: 820px) { .admin-row { grid-template-columns: 1fr auto; } .admin-row .actions { grid-column: 1 / -1; justify-content: flex-start; } }

.ai-paste { font-family: ui-monospace, Menlo, monospace !important; font-size: 12px; } .ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 3px 16px; } .ai-grid .check b { margin-inline-start: auto; color: var(--amber); } .notice ul { margin: 5px 0 0; padding-inline-start: 18px; }

.sp-editor .sp-scene::before { content: attr(data-label); display: block; font-weight: 700; user-select: none; pointer-events: none; }

.side { width: 224px; } .find-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: 6px; color: var(--tx2); padding: 6px 9px; margin-bottom: 10px; cursor: pointer; } .find-btn:hover { color: var(--tx); border-color: var(--amber); } kbd { font: 11px var(--ui); color: var(--tx3); }
.nav-sec > summary small { margin-inline-start: auto; margin-inline-end: 8px; color: var(--tx3); font-weight: 500; font-size: 11px; } .nav-group a { display: flex; align-items: center; gap: 7px; padding: 4px 8px; } .nav-group a i { width: 12px; height: 12px; flex: none; border: 1px solid var(--line2); border-radius: 50%; } .nav-group a.done i { background: var(--green); border-color: var(--green); } .nav-tools { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; } .nav-top.export { border: 0; margin: 0; padding-top: 6px; }
.topbar { min-width: 0; gap: 8px; } .crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; color: var(--tx3); font-size: 12px; } .crumbs a { color: var(--tx2); overflow: hidden; text-overflow: ellipsis; max-width: 170px; } .crumbs a:hover { color: var(--amber); } .crumbs b { color: var(--tx); } .step-nav { display: flex; gap: 4px; flex: none; }
.tip-bar { display: flex; align-items: center; gap: 9px; flex: none; padding: 4px 14px; background: #241d10; border-bottom: 1px solid #4a3a18; color: #ffe2a8; font-size: 12px; } .tip-bar[hidden] { display: none; } .tip-bar span { flex: 1; min-width: 0; } .tip-bar b { color: var(--amber); }
.continue-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(150px, .8fr) auto; align-items: center; gap: 20px; background: linear-gradient(120deg, #2a2112, var(--bg2) 62%); border: 1px solid #5a4518; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; } .continue-card small { color: var(--amber); font-weight: 600; } .continue-card h2 { font-size: 21px; letter-spacing: -.01em; } .continue-card p { color: var(--tx2); } .continue-progress { display: flex; flex-direction: column; gap: 5px; color: var(--tx2); font-size: 12px; }
.meter { height: 6px; width: 100%; background: var(--bg4); border-radius: 4px; overflow: hidden; } .meter span { display: block; height: 100%; background: var(--amber); border-radius: 4px; } .section-title { font-size: 15px; margin: 16px 0 8px; }
.tip-list { margin-bottom: 8px; } .tip-list > h2, .over-side h2 { font-size: 14px; margin-bottom: 8px; } .tip-list > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; } .tip-card { display: flex; flex-direction: column; gap: 2px; text-align: start; background: var(--bg2); border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; cursor: pointer; } .tip-card:hover { border-color: var(--amber); } .tip-card span { color: var(--tx2); font-size: 12px; } .over-side .tip-card { background: var(--bg3); }
.home .film-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } .film-open { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; } .film-open h3 { margin: 4px 0; } .film-open .next { color: var(--amber); } .film-actions { align-items: center !important; gap: 3px; }
.over-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; } .journey-stage { margin-bottom: 10px; } .stage-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; } .stage-head h2 { font-size: 14px; } .stage-head small { color: var(--tx3); } .step-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 5px; } .step-row { display: grid; grid-template-columns: 19px 1fr; column-gap: 7px; text-align: start; background: var(--bg3); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; cursor: pointer; } .step-row:hover { border-color: var(--amber); } .step-row i { grid-row: span 2; width: 17px; height: 17px; border: 1px solid var(--line2); border-radius: 50%; font-style: normal; font-size: 11px; line-height: 15px; text-align: center; color: #06140d; } .step-row.done i { background: var(--green); border-color: var(--green); } .step-row small { color: var(--tx2); }
.recent-list { display: flex; flex-direction: column; } .recent-list button { display: flex; justify-content: space-between; gap: 8px; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 6px 0; cursor: pointer; text-align: start; } .recent-list button:hover b { color: var(--amber); } .recent-list small { color: var(--tx3); } .film-details > summary { cursor: pointer; font-weight: 650; } .film-details[open] > summary { margin-bottom: 10px; }
.finder { align-items: flex-start; padding-top: 12vh; } .finder .modal { width: min(520px, 100%); padding: 10px; gap: 8px; } .finder-list { display: flex; flex-direction: column; max-height: 52vh; overflow: auto; margin-top: 7px; } .finder-list button { display: flex; justify-content: space-between; background: none; border: 0; border-radius: 5px; padding: 7px 9px; cursor: pointer; } .finder-list button.on, .finder-list button:hover { background: var(--bg4); } .finder-list small { color: var(--tx3); }
@media (max-width: 1050px) { .over-grid, .continue-card { grid-template-columns: 1fr; } .step-nav .quiet { display: none; } }
@media (max-width: 720px) { #app { flex-direction: column; height: auto; min-height: 100vh; } body { overflow: auto; } .side { width: 100%; max-height: 42vh; border-inline-end: 0; border-bottom: 1px solid var(--line); } .shell { min-height: 58vh; } .crumbs { display: none; } .home .film-grid { grid-template-columns: 1fr; } }

.menu-btn, .bottom-nav, .scrim, .strip-move { display: none; } .theme-btn { display: inline-flex; gap: 5px; align-items: center; }
:root[data-theme=light] { color-scheme: light; --bg: #f4f4f1; --bg2: #ffffff; --bg3: #f0f0ec; --bg4: #e5e5df; --line: #deded8; --line2: #c5c5bd; --tx: #1b1c1f; --tx2: #55585f; --tx3: #6d7078; --amber: #a85f00; --amber2: #8f5100; --red: #c5262c; --green: #1d8a57; --desk: #d9d9d3; }
[data-theme=light] .btn.primary, [data-theme=light] .tb.on { background: #f5a524; border-color: #e0920f; color: #1a1204; } [data-theme=light] .btn.primary:hover { background: #ffb53d; } [data-theme=light] .scene-title b { color: #fff; } [data-theme=light] .btn.on { color: #fff; }
[data-theme=light] .nav-group a.on, [data-theme=light] .nav-top.on, [data-theme=light] .list-item.on { color: var(--tx); } [data-theme=light] .notice { background: #fff4dc; border-color: #ecc978; color: #5f4100; } [data-theme=light] .tip-bar { background: #fff6e2; border-color: #efd594; color: #5f4100; } [data-theme=light] .continue-card { background: linear-gradient(120deg, #fff1d2, #fff 62%); border-color: #ecc978; } [data-theme=light] .day-col.pool { background: #ececE7; } [data-theme=light] .no-photo { background: linear-gradient(150deg, #e8e8e3, #d3d3cc); color: #70737a; } [data-theme=light] .toast { background: #1b1c1f; color: #fff; } [data-theme=light] .toast.err { background: #c9343a; } [data-theme=light] .modal-wrap { background: rgba(20,20,20,.42); } [data-theme=light] .film-loading { background: rgba(255,255,255,.72); } [data-theme=light] .step-row.done i { color: #fff; } [data-theme=light] .sp-sheet { filter: drop-shadow(0 2px 7px rgba(0,0,0,.18)); } [data-theme=light] .sp-suggest button { color: #111; }
@media (max-width: 820px) {
  html, body { height: 100%; overflow: hidden; } #app { display: block; height: 100dvh; min-height: 0; } input:not([type=checkbox]):not([type=range]):not([type=color]), select, textarea { font-size: 16px; }
  .side { position: fixed; z-index: 35; inset-block: 0; inset-inline-start: 0; width: min(84vw, 320px); max-height: none; padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: calc(12px + env(safe-area-inset-bottom)); border-bottom: 0; border-inline-end: 1px solid var(--line); transform: translateX(-104%); transition: transform .18s ease; } [dir=rtl] .side { transform: translateX(104%); } .menu-open .side { transform: none !important; box-shadow: 0 0 34px rgba(0,0,0,.42); }
  .scrim { position: fixed; inset: 0; z-index: 34; border: 0; background: rgba(0,0,0,.48); } .menu-open .scrim { display: block; } .nav-group a, .nav-top, .nav-sec > summary { min-height: 42px; display: flex; align-items: center; }
  .shell { height: 100dvh; min-height: 0; padding-bottom: calc(58px + env(safe-area-inset-bottom)); } .topbar { height: auto; min-height: 48px; flex-wrap: wrap; padding: calc(4px + env(safe-area-inset-top)) 8px 4px; } .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; border: 0; font-size: 20px; cursor: pointer; }
  .crumbs { display: flex; flex: 1; font-size: 14px; } .crumbs > :not(:last-child) { display: none; } .crumbs b { overflow: hidden; text-overflow: ellipsis; } .topbar > .grow { display: none; } .saved { margin: 0; font-size: 11px; } .theme-word { display: none; } .theme-btn, .undo-btn, .redo-btn { width: 36px; height: 36px; justify-content: center; padding: 0 !important; } .undo-btn, .redo-btn { font-size: 0 !important; } .undo-btn::before { content: '↶'; font-size: 18px; } .redo-btn::before { content: '↷'; font-size: 18px; }
  .step-nav { order: 9; flex: 0 0 100%; justify-content: space-between; } .step-nav:empty { display: none; } .step-nav .quiet { display: inline-block; } .tip-bar { padding: 5px 10px; } .tip-bar span { font-size: 12px; }
  .bottom-nav { position: fixed; z-index: 30; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--bg2); border-top: 1px solid var(--line); } .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: none; border: 0; color: var(--tx2); font-size: 11px; cursor: pointer; } .bottom-nav span { font-size: 19px; line-height: 22px; } .bottom-nav a.on { color: var(--amber); font-weight: 650; }
  .view { padding: 14px 14px 30px; } .view-head { align-items: stretch; flex-direction: column; gap: 10px; } .actions { width: 100%; } .actions .btn { flex: 1 1 auto; min-height: 38px; } .btn { min-height: 36px; } .btn.small { min-height: 34px; } .form-grid, .form-grid.three, .bd-cats, .bd-layout, .char-layout, .plans, .over-grid, .continue-card { grid-template-columns: minmax(0, 1fr); } .home .film-grid, .film-grid, .char-grid, .board-grid { grid-template-columns: minmax(0, 1fr); } .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .continue-card .btn { width: 100%; } .step-list { grid-template-columns: minmax(0, 1fr); } .step-row { padding: 9px; } .film-actions { flex-wrap: wrap; } .film-actions > .primary { flex: 1 0 100%; } .char-layout aside { position: static; max-width: none; } .char-large { max-height: 360px; }
  .split { display: block; min-height: 0; } .list-side, .wide-side { position: static; width: auto; height: auto; max-height: none; display: flex; gap: 4px; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--line); } .list-side > h3 { display: none; } .list-item { display: flex; flex: 0 0 auto; width: auto; max-width: 220px; white-space: nowrap; } .list-item span { overflow: hidden; text-overflow: ellipsis; } .booklet .wide-side { display: block; } .booklet .view { height: auto; } .pdf-holder { min-height: 420px; }
  .admin-row { grid-template-columns: minmax(0, 1fr) auto; } .admin-row .actions { grid-column: 1 / -1; } .admin-top { padding: 8px 10px; } .admin-top .seg { order: 5; width: 100%; overflow-x: auto; } .callsheet { padding: 10px; overflow-x: auto; } .cs-top { grid-template-columns: 1fr; } .cs-call { border: 0; } table.plain { min-width: 620px; } .modal-wrap { padding: 0; align-items: stretch; } .modal, .modal:has(.draw) { width: 100%; max-height: 100dvh; border: 0; border-radius: 0; } .finder { padding-top: 0; } .draw-tools label { width: 110px; } .pdf-frame { min-height: 420px; }
  .board { display: flex; flex-direction: column; min-height: 0; overflow: visible; } .day-col { width: 100%; } .strip { grid-template-columns: 24px minmax(0, 1fr) auto; cursor: default; } .strip-move { display: block; grid-column: 1 / -1; color: #111; background: rgba(255,255,255,.72) !important; border-color: rgba(0,0,0,.25) !important; } .legend { flex-wrap: wrap; width: 100%; } .strips { min-height: 44px; }
  .sp-bar { padding: 6px 8px; } .sp-type { display: block; width: 100% !important; } .tb-group { display: none; } .sp-bar .grow { display: none; } .script-lang { width: 100%; justify-content: space-between; } .sp-scroll { padding: 0; background: #fff; } .sp-sheet { width: 100%; min-height: 100%; background: #fff; filter: none !important; } .sp-editor { padding: 18px 16px 90px !important; } .sp, .sp-action, .sp-dialogue, .sp-character, .sp-paren { width: auto; max-width: 100%; } .sp-editor .sp { font-size: 15px; line-height: 21px; min-height: 21px; } .sp-sheet[dir=rtl] .sp { font-size: 19px; line-height: 29px; min-height: 29px; } .sp-editor .sp-character { margin-inline-start: 32%; } .sp-editor .sp-paren { margin-inline-start: 20%; } .sp-editor .sp-dialogue { margin-inline: 10%; } .sp-suggest { inset-inline-start: 16px; }
  main[data-view=lighting] { overflow: auto; } .stage-view { height: auto; min-height: 100%; } .stage-bar .plan-select { width: 100% !important; } .stage-bar .seg { width: 100%; } .stage-bar .seg .btn { flex: 1; } .stage-body { display: flex; flex-direction: column; } .stage-panes { order: 1; flex: none; height: 58dvh; grid-template-columns: 1fr; grid-template-rows: 1fr; } .stage-panes[data-mode=split] { height: 86dvh; grid-template-rows: 1fr 1fr; } .palette { order: 2; width: auto; max-height: none; border: 0; border-top: 1px solid var(--line); } .pal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pal { min-height: 42px; } .inspector { order: 3; width: auto; max-height: none; border: 0; border-top: 1px solid var(--line); } input[type=range] { height: 28px; }
}
@media (max-width: 820px) {
  .panel { overflow-x: auto; } html:has(.admin-body), body.admin-body { height: auto; min-height: 100%; overflow: auto; }
  .sp-bar { flex-wrap: nowrap; overflow-x: auto; } .sp-bar > * { flex: none; } .sp-type { width: 150px !important; } .script-lang { width: auto; } .sp-bar > .muted { display: none; }
}
[data-theme=light] .pal.is-light { color: #8a5200; }
.gl-pane { position: relative; } .shoot-btn { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; min-width: 92px; height: 42px; padding: 0 18px; border: 2px solid #fff; border-radius: 999px; background: #d92d20; color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.45); } .shoot-btn:hover { background: #f04438; } .shoot-btn[hidden] { display: none; } .shot-preview { display: block; width: 100%; object-fit: cover; border-radius: 6px; background: #000; }
.light-mode { width: 100%; } .light-mode .btn { flex: 1; } .rgb-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; } .rgb-chip { aspect-ratio: 1; min-width: 0; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; cursor: pointer; } .rgb-chip.on { outline: 2px solid var(--tx); outline-offset: 1px; }

.stage-more { display: none; }
@media (max-width: 820px) {
  .shell:has(main[data-view=lighting]) .tip-bar, .shell:has(main[data-view=lighting]) .step-nav { display: none !important; } main[data-view=lighting] { overflow: hidden; }
  .stage-view { height: 100%; min-height: 0; display: flex; flex-direction: column; }
  .stage-bar { flex: none; flex-wrap: nowrap; gap: 6px; padding: 5px 8px; } .stage-bar > :not(.seg):not(.stage-more) { display: none !important; } .stage-bar .seg { flex: 1 1 auto; width: auto; } .stage-bar .seg .btn { flex: 1; min-height: 36px; padding-inline: 4px; } .stage-bar .seg .btn:nth-child(2) { display: none; }
  .stage-more { display: block; flex: none; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg3); color: var(--tx); font-weight: 650; font-size: 14px; }
  .stage-body { flex: 1; min-height: 0; display: flex; flex-direction: column; } .stage-view .palette { display: none; }
  .stage-panes, .stage-panes[data-mode=split] { order: 1; flex: 1 1 auto; height: auto; min-height: 0; grid-template-rows: minmax(0, 1fr); } .stage-pane { min-height: 0; }
  .lens-tag { max-width: calc(100% - 16px); font-size: 10.5px; white-space: normal; } .shoot-btn { bottom: 10px; height: 40px; }
  .stage-view .inspector { order: 2; flex: none; width: auto; height: 246px; max-height: 42dvh; padding: 8px 10px 10px; gap: 7px; overflow: hidden; border: 0; border-top: 1px solid var(--line); background: var(--bg2); }
  .phone-head { display: flex; flex: none; align-items: center; gap: 6px; min-height: 32px; } .phone-head b { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; } .phone-head button { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg3); color: var(--tx); font-size: 13px; font-weight: 600; } .phone-head .phone-done { background: var(--amber); border-color: var(--amber); color: #1a1204; } .phone-head .danger { color: var(--red); }
  .phone-tabs { display: flex; flex: none; gap: 4px; overflow-x: auto; scrollbar-width: none; } .phone-tabs::-webkit-scrollbar, .phone-items::-webkit-scrollbar { display: none; } .phone-tabs button { flex: 1 0 auto; height: 32px; padding: 0 11px; border: 0; border-radius: 16px; background: var(--bg3); color: var(--tx2); font-size: 13px; font-weight: 600; white-space: nowrap; } .phone-tabs button.on { background: var(--tx); color: var(--bg); }
  .phone-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; } .phone-body .row { flex: none; } .phone-body .slider { flex: none; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr); align-items: center; gap: 8px; min-height: 32px; } .phone-body .slider > span { display: flex; justify-content: space-between; gap: 4px; font-size: 12px; white-space: nowrap; } .phone-body .slider output { font-size: 12px; } .phone-body .slider input { width: 100%; margin: 0; } .phone-body input:not([type=range]):not([type=color]), .phone-body select { height: 36px; }
  .phone-items { flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, minmax(0, 1fr)); grid-auto-columns: 106px; gap: 6px; overflow-x: auto; overscroll-behavior: contain; } .phone-item { min-width: 0; padding: 2px 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg3); color: var(--tx); font-size: 13px; font-weight: 600; line-height: 1.15; }
}
.pro-link::after { content: 'PRO'; margin-inline-start: auto; padding: 1px 5px; border-radius: 4px; background: var(--amber); color: #1a1204; font-size: 9px; font-weight: 800; letter-spacing: .04em; } a.pro-link { display: flex; align-items: center; gap: 6px; } .pro-mode { color: var(--tx2); } .pro-locked { max-width: 520px; margin: 8vh auto 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; } .pro-tag { padding: 2px 7px; border-radius: 5px; background: var(--amber); color: #1a1204; font-size: 11px; font-weight: 800; }
button.saved { padding: 0; border: 0; background: none; font: inherit; font-size: 12px; cursor: default; } button.saved.bad { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
