/* Storyboard & shot list — page styles (screen + print). */

/* ---------- project header ---------- */
.proj { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; padding: 26px var(--g) 22px; }
.ptitle { width: 100%; background: none; border: 0; outline: none; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.2vw, 58px); line-height: 1; letter-spacing: -.02em; color: var(--ink); padding: 2px 0 8px; border-bottom: 1px solid transparent; transition: border-color .3s; }
.ptitle::placeholder { color: var(--faint); font-style: italic; }
.ptitle:hover, .ptitle:focus { border-bottom-color: var(--line); }
.meta { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 16px; align-items: end; }
.meta .m { display: grid; gap: 6px; }
.meta .m > span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.meta .inp { padding: 8px 11px; font-size: 13.5px; width: 172px; }
.meta .m-date .inp { min-width: 0; color-scheme: dark; }
.meta .m-date .inp { width: 150px; }
.meta .m-fps .inp { width: 92px; }
.meta .seg button { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 6px 11px; }
.stats { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats > div { padding: 14px 22px 12px; display: grid; gap: 2px; min-width: 104px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats b { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats > div:last-child b { color: var(--accent); }
.stats span { color: var(--muted); font-size: 10px; }

/* ---------- toolbar ---------- */
.bar { position: sticky; top: var(--hdr); z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px var(--g); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(20, 19, 18,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bar-l, .bar-r { display: flex; align-items: center; gap: 8px; }
.bar-hint { font-size: 12px; }
.bar-hint .kbd { padding: 0 5px; }
.dd { position: relative; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; padding: 6px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .3s var(--ease); z-index: 40; }
.dd.on .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu button { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; transition: background .25s; }
.dd-menu button:hover { background: var(--bg3); }
.dd-menu b { font-weight: 400; font-size: 14px; }
.dd-menu span { color: var(--muted); font-size: 12px; }

/* ---------- board ---------- */
.board { padding: 22px var(--g) 30px; display: grid; gap: 22px; }
.board.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 318px), 1fr)); }
.board.list { grid-template-columns: 1fr; gap: 14px; }
.card { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .35s, box-shadow .35s, opacity .3s; min-width: 0; }
.card.active { border-color: var(--line2); }
.card.flash { box-shadow: 0 0 0 1px var(--accent), 0 0 40px rgba(15,154,150,.15); }
.card.brk::before { content: ""; position: absolute; left: -12px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--accent); opacity: .8; }
.board.list .card.brk::before { left: 14px; right: 14px; top: -8px; bottom: auto; width: auto; height: 2px; }
.ch { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 6px; }
.handle { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--faint); cursor: grab; touch-action: none; transition: color .25s, background .25s; flex: none; }
.handle:hover { color: var(--ink); background: var(--bg3); }
.handle svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.sc { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -.01em; min-width: 38px; }
.tc { color: var(--muted); font-size: 10.5px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; font-variant-numeric: tabular-nums; }
.scn { color: var(--accent); font-size: 10px; white-space: nowrap; }
@media (min-width: 641px) and (max-width: 1500px) { .board.grid .scn { display: none; } }
.acts { margin-left: auto; display: flex; gap: 2px; opacity: .55; transition: opacity .3s; }
.card:hover .acts, .card.active .acts, .card:focus-within .acts { opacity: 1; }
.acts .btn { width: 30px; height: 30px; border-color: transparent; color: var(--muted); }
.acts .btn:hover { border-color: var(--line2); color: var(--ink); }
.acts .btn.on { color: var(--accent); }
.acts .btn svg { width: 15px; height: 15px; }

.frame { position: relative; aspect-ratio: var(--ar, 16 / 9); margin: 0 10px; border-radius: 9px; overflow: hidden; background: #121210; border: 1px solid var(--line); transition: border-color .3s; }
.board[data-ar="9:16"].grid .frame, .board[data-ar="4:5"].grid .frame { max-height: 420px; margin-inline: auto; width: calc(100% - 20px); }
.board[data-ar="9:16"].grid .frame { width: auto; height: 420px; }
.frame img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.frame.over { border-color: var(--accent); }
.frame.over::after { content: "Drop to place"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,154,150,.12); color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.empty { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 40%, #1a1a17, #0f0f0d); }
.empty > span { color: #2b2a26; font-size: 46px; font-family: var(--serif); letter-spacing: -.02em; text-transform: none; }
.crn { position: absolute; width: 14px; height: 14px; border: 1px solid var(--faint); opacity: .7; }
.crn:nth-child(1) { left: 12px; top: 12px; border-right: 0; border-bottom: 0; }
.crn:nth-child(2) { right: 12px; top: 12px; border-left: 0; border-bottom: 0; }
.crn:nth-child(3) { left: 12px; bottom: 12px; border-right: 0; border-top: 0; }
.crn:nth-child(4) { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
.fx { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 6px; padding: 12px; transition: opacity .3s, transform .4s var(--ease); }
.frame:not(.has) .fx { top: 0; align-items: center; }
.frame.has .fx { opacity: 0; transform: translateY(6px); background: linear-gradient(transparent, rgba(0,0,0,.65)); padding-top: 34px; }
.frame.has:hover .fx, .frame.has:focus-within .fx { opacity: 1; transform: none; }
.fx .btn { background: rgba(20, 19, 18,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); border-color: var(--line2); }
.fx .btn:hover { background: var(--ink); color: #141312; }
.fx .btn.icon { width: 30px; height: 30px; }
.drophint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: var(--faint); font-size: 9.5px; pointer-events: none; }
.frame:not(.has) .fx { padding-bottom: 24px; }
@media (hover: none) { .frame.has .fx { opacity: 1; transform: none; } .acts { opacity: 1; } }

.cf { padding: 12px 12px 12px; }
.tri { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 10px; }
.tri > label { display: grid; gap: 5px; min-width: 0; position: relative; grid-column: span 2; }
.tri > label.u { grid-column: span 3; }
.tri .fl { font-size: 9.5px; }
.tri .inp { padding: 7px 9px; font-size: 12.5px; border-radius: 8px; }
.tri select.inp { padding-right: 22px; background-position: calc(100% - 13px) 52%, calc(100% - 8px) 52%; text-overflow: ellipsis; }
.tri .u .inp { padding-right: 34px; -moz-appearance: textfield; }
.tri .u .inp::-webkit-inner-spin-button, .tri .u .inp::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tri .u em { position: absolute; right: 10px; bottom: 8px; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--muted); pointer-events: none; }
.cf .field { margin-bottom: 10px; gap: 5px; }
.cf .field > span { font-size: 9.5px; }
.cf textarea.inp { min-height: 0; font-size: 13px; padding: 8px 10px; border-radius: 8px; resize: vertical; }
.cf .act textarea.inp { min-height: 62px; }
.board textarea.inp { overflow: hidden; resize: none; }
.more { border-top: 1px solid var(--line); margin: 4px -12px -12px; }
.more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; cursor: pointer; color: var(--muted); transition: color .25s; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { color: var(--ink); }
.more summary .mono { font-size: 10px; display: flex; align-items: center; gap: 8px; }
.more summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease); }
.more[open] summary svg { transform: rotate(180deg); }
.more .field { padding: 0 12px; }
.more .field:last-child { padding-bottom: 4px; }
.cnt { font-style: normal; color: #141312; background: var(--accent); border-radius: 99px; padding: 0 6px; font-size: 9.5px; line-height: 16px; }

/* insert-between button sits in the gap before each card */
.ins { position: absolute; z-index: 3; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line2); color: var(--muted); opacity: 0; transform: scale(.7); transition: opacity .25s, transform .3s var(--ease), color .25s, border-color .25s, background .25s; }
.ins svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.board.grid .ins { left: -12px; top: 50%; margin: -12px 0 0 -11px; }
.board.list .ins { left: 50%; top: -7px; margin: -12px 0 0 -12px; }
.card:hover .ins, .ins:focus-visible { opacity: 1; transform: none; }
.ins:hover { color: #141312; background: var(--accent); border-color: var(--accent); }
@media (hover: none) { .ins { opacity: .8; transform: none; } }

.addcard { min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 8px; border: 1px dashed var(--line2); border-radius: var(--r); color: var(--muted); transition: border-color .3s, color .3s, background .3s; }
.addcard:hover { border-color: var(--accent); color: var(--ink); background: rgba(15,154,150,.03); }
.addcard .plus { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; transition: .3s; }
.addcard:hover .plus { background: var(--accent); border-color: var(--accent); color: #141312; }
.addcard .plus svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.addcard b { font-family: var(--serif); font-weight: 400; font-size: 24px; font-style: italic; color: var(--ink); }
.addcard .mono { font-size: 10px; }
.board.list .addcard { min-height: 90px; grid-auto-flow: column; gap: 14px; align-items: center; }

/* list (shot list) view */
.board.list .card .ch { padding-bottom: 6px; }
.lrow { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 16px; padding: 0 12px 12px 10px; align-items: start; }
.board.list .frame { margin: 0; }
.board.list[data-ar="9:16"] .lrow, .board.list[data-ar="4:5"] .lrow { grid-template-columns: minmax(140px, 190px) minmax(0, 1fr); }
.lfields .tri { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lfields .tri > label, .lfields .tri > label.u { grid-column: auto; }
.lfields .field { margin-bottom: 10px; gap: 5px; }
.lfields .field > span { font-size: 9.5px; }
.lfields textarea.inp { min-height: 0; font-size: 13px; padding: 8px 10px; border-radius: 8px; }
.lmore { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 10px; }
.lmore .field { margin-bottom: 0; }

/* drag */
.card.placeholder { opacity: .25; border-style: dashed; border-color: var(--accent); }
.card.ghost { position: fixed; z-index: 120; pointer-events: none; box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px var(--accent); border-color: var(--accent); opacity: .96; margin: 0; overflow: hidden; }
.card.ghost .ins { display: none; }
body.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
body.is-dragging .handle { cursor: grabbing; }

/* undo snackbar */
.snack { position: fixed; left: 50%; bottom: 26px; z-index: 210; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: 99px; background: var(--ink); color: #141312; font-size: 13px; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.snack.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.snack button { padding: 6px 14px; border-radius: 99px; background: #141312; color: var(--ink); font-size: 12.5px; }
.snack button:hover { background: var(--accent); color: #141312; }

/* ---------- PDF options modal ---------- */
.pdf-modal .box { width: min(520px, 100%); }
.pdfopt .seg button { padding: 7px 16px; }
.lay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lay button { display: grid; gap: 10px; justify-items: center; padding: 16px 12px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 12.5px; transition: .3s; }
.lay button:hover { border-color: var(--faint); color: var(--ink); }
.lay button.on { border-color: var(--accent); color: var(--ink); background: rgba(15,154,150,.05); }
.lay i { display: grid; gap: 4px; width: 110px; height: 72px; padding: 6px; background: #f2eee6; border-radius: 4px; }
.lay i b { background: #c9c3b6; border-radius: 2px; }
.lay .l3 { grid-template-rows: repeat(3, 1fr); }
.lay .l3 b { background: linear-gradient(90deg, #6c675e 0 40%, transparent 40% 46%, #d8d2c5 46%); }
.lay .l6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
.lay .l6 b { background: linear-gradient(#6c675e 0 62%, transparent 62% 72%, #d8d2c5 72%); }
.pdfopt .hint b { font-weight: 400; color: var(--soft); }

/* ---------- sketch pad ---------- */
.sk-wrap .box.sk { width: min(1240px, 100%); display: flex; flex-direction: column; max-height: calc(100vh - 32px); overflow: hidden; }
.sk-wrap { padding: 16px; }
.sk header h2 em { color: var(--accent); }
.sk header .btn[disabled] { opacity: .3; }
.sk-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 0; flex: 1; }
.sk-tools { padding: 18px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 18px; overflow: auto; }
.sk-g { display: grid; gap: 8px; }
.sk-g .seg { width: 100%; }
.sk-g .seg button { flex: 1; padding: 6px 8px; }
.sk-row { grid-template-columns: 1fr 1fr; }
.sk-row .btn:first-child { grid-column: 1 / -1; }
.sk-row .btn.on { border-color: var(--accent); color: var(--accent); }
.sk-sizes, .sk-inks { display: flex; gap: 6px; flex-wrap: wrap; }
.sk-sizes button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .25s; }
.sk-sizes button i { background: var(--soft); border-radius: 50%; display: block; }
.sk-sizes button.on { border-color: var(--ink); }
.sk-sizes button.on i { background: var(--ink); }
.sk-inks button { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 1px solid var(--line2); box-shadow: 0 0 0 0 var(--bg2); transition: box-shadow .25s; }
.sk-inks button.on { box-shadow: 0 0 0 3px var(--bg2), 0 0 0 4px var(--ink); }
.sk-stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sk-stamps button { display: grid; justify-items: center; gap: 4px; padding: 9px 4px 7px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 11px; transition: .25s; }
.sk-stamps button:hover { color: var(--ink); border-color: var(--faint); }
.sk-stamps button.on { border-color: var(--accent); color: var(--accent); background: rgba(15,154,150,.06); }
.sk-stamps svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.sk-stamps [data-v^="ar-"] svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sk-stage-wrap { display: grid; place-items: center; padding: 18px; min-height: 0; background: #070706; overflow: hidden; }
.sk-stage { position: relative; max-width: 100%; max-height: calc(100vh - 220px); height: auto; width: 100%; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line2), 0 30px 80px rgba(0,0,0,.5); touch-action: none; cursor: crosshair; }
.sk-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sk-stage .c-guide { pointer-events: none; }
.sk-stage[data-tool="er"] { cursor: cell; }
.sk-stage[data-tool="st"] { cursor: copy; }
.sk-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sk-foot .hint { font-size: 12px; }
.sk-foot .kbd { margin: 0 2px; }

/* ---------- present ---------- */
.pres { position: fixed; inset: 0; z-index: 300; background: #050504; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; opacity: 0; transition: opacity .45s var(--ease); }
.pres.on { opacity: 1; }
.pr-top { display: flex; align-items: center; gap: 18px; padding: 14px 22px; color: var(--muted); }
.pr-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-n { font-variant-numeric: tabular-nums; }
.pr-stage { display: grid; place-items: center; padding: 0 22px; min-height: 0; cursor: pointer; }
.pr-frame { aspect-ratio: var(--ar); max-width: 100%; max-height: 100%; height: 100%; border-radius: 4px; overflow: hidden; background: #121210; box-shadow: 0 40px 120px rgba(0,0,0,.7); position: relative; }
.pr-frame img { width: 100%; height: 100%; object-fit: cover; }
.pr-frame .empty span { font-size: clamp(60px, 10vw, 140px); color: #2a2925; }
.pr-info { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 18px 26px 14px; }
.pr-code { font-family: var(--serif); font-size: clamp(54px, 6vw, 88px); line-height: .9; letter-spacing: -.02em; min-width: 1.6em; }
.pr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pr-tags span { padding: 3px 9px; border: 1px solid var(--line2); border-radius: 99px; color: var(--soft); font-size: 10px; }
.pr-tags span:last-child { color: var(--accent); border-color: rgba(15,154,150,.4); }
.pr-act { font-size: clamp(15px, 1.4vw, 19px); color: var(--ink); max-width: 70ch; }
.pr-dia { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.6vw, 23px); color: var(--soft); margin-top: 4px; max-width: 70ch; }
.pr-dia:empty { display: none; }
.pr-ctl { display: flex; gap: 6px; }
.pr-ctl .btn.icon { width: 44px; height: 44px; }
.pr-bar { display: flex; gap: 3px; padding: 0 22px 18px; }
.pr-bar button { height: 14px; display: flex; align-items: center; min-width: 6px; }
.pr-bar i { display: block; width: 100%; height: 2px; border-radius: 2px; transform-origin: left; }
.pr-bar button { position: relative; }
.pr-bar button::before { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--line2); border-radius: 2px; }
.pr-bar button i { position: relative; z-index: 1; background: var(--ink); transform: scaleX(0); }
.pr-bar button.done i { background: var(--soft); }
.pr-bar button.on i { background: var(--accent); }
.pr-bar button:hover::before { background: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .bar-hint { display: none; } }
@media (max-width: 860px) {
  .proj { grid-template-columns: 1fr; gap: 18px; }
  .stats { width: 100%; }
  .stats > div { flex: 1; min-width: 0; padding: 12px 14px 10px; }
  .stats b { font-size: 32px; }
  .lrow { grid-template-columns: 1fr; }
  .board.list[data-ar="9:16"] .lrow, .board.list[data-ar="4:5"] .lrow { grid-template-columns: 1fr; }
  .board.list[data-ar="9:16"] .frame { max-height: 420px; width: auto; aspect-ratio: 9 / 16; height: 420px; margin: 0 auto; }
  .lfields .tri { grid-template-columns: repeat(6, 1fr); }
  .lfields .tri > label { grid-column: span 2; }
  .lfields .tri > label.u { grid-column: span 3; }
  .sk-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .sk-tools { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; gap: 16px; padding: 12px 14px; scrollbar-width: none; }
  .sk-tools::-webkit-scrollbar { display: none; }
  .sk-g { flex: none; }
  .sk-g .seg { width: auto; }
  .sk-stamps { grid-template-columns: repeat(5, 54px); }
  .sk-row { grid-template-columns: auto auto auto; align-self: end; }
  .sk-row .btn:first-child { grid-column: auto; }
  .sk-stage { max-height: calc(100vh - 290px); }
  .sk-foot .hint { display: none; }
  .sk-foot .row { width: 100%; justify-content: flex-end; }
  .pr-info { grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; padding: 14px 16px 10px; }
  .pr-ctl { grid-column: 1 / -1; justify-content: center; }
  .pr-stage { padding: 0 10px; }
  .pr-frame { height: auto; width: 100%; }
}
@media (max-width: 640px) {
  .meta { display: grid; grid-template-columns: 1fr 1fr; }
  .meta .inp, .meta .m-date .inp, .meta .m-fps .inp { width: 100%; }
  .meta .m-ar { grid-column: 1 / -1; order: 5; }
  .meta .m-ar .seg { display: flex; flex-wrap: nowrap; }
  .meta .m-ar .seg button { flex: 1; padding: 6px 4px; }
  .bar { position: static; display: grid; grid-template-columns: 1fr; padding: 12px 16px; gap: 10px; background: var(--bg); }
  .bar-l .seg { display: flex; flex-wrap: nowrap; width: 100%; }
  .bar-l .seg button { flex: 1; }
  .bar-r { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .bar-r .btn { padding: 9px 8px; width: 100%; }
  .dd .btn { width: 100%; }
  .board { padding: 16px 16px 24px; gap: 18px; }
  .board.grid .ins { left: 50%; top: -9px; margin: -12px 0 0 -12px; }
  .card.brk::before { left: 14px; right: 14px; top: -9px; bottom: auto; width: auto; height: 2px; }
  .board[data-ar="9:16"].grid .frame { height: 380px; }
  .sk-wrap { padding: 0; }
  .sk-wrap .box.sk { max-height: 100vh; height: 100%; border-radius: 0; border: 0; }
  .sk header { padding: 12px 14px; }
  .sk header h2 { font-size: 24px; }
  .sk-stage-wrap { padding: 10px; }
  .pr-top { padding: 12px 14px; }
  .pr-t { display: none; }
  .pr-n { flex: 1; }
  .pr-bar { padding: 0 14px 14px; }
}

/* ---------- print (PDF) ---------- */
#printRoot { display: none; }
@media print {
  html, body { background: #fff !important; color: #141312; }
  body > *:not(#printRoot) { display: none !important; }
  #printRoot { display: block; font-family: var(--sans); font-weight: 300; color: #141312; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pp { width: var(--pw); height: var(--ph); overflow: hidden; position: relative; display: flex; flex-direction: column; page-break-after: always; break-after: page; background: #FAF8F3; }
  .pp:last-child { page-break-after: auto; break-after: auto; }
  .p-hd { height: 13mm; flex: none; display: grid; grid-template-columns: 1fr auto auto; gap: 8mm; align-items: center; border-bottom: .3mm solid #141312; padding: 0 1mm 2mm; margin-bottom: 4mm; }
  .p-hd b { font-family: var(--serif); font-weight: 400; font-size: 20pt; letter-spacing: -.01em; margin-right: 4mm; }
  .p-hd span, .p-lbl, .p-pn, .p-ft, .p-tc, .p-tags span, dt, .cv-lbl, .p-tbl th, .c-tc { font-family: var(--mono); font-size: 6.6pt; letter-spacing: .08em; text-transform: uppercase; color: #6E6A64; }
  .p-lbl { color: #141312; }
  .p-pn { color: #0B2A2C; }
  .p-ft { height: 8mm; flex: none; margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; border-top: .2mm solid #d8d3c8; padding: 0 1mm; }
  .p-img { position: relative; background: #e9e5dc; overflow: hidden; flex: none; border-radius: .8mm; }
  .p-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .p-img span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 22pt; color: #c9c3b6; }
  .p-code { font-family: var(--serif); font-weight: 400; font-size: 24pt; line-height: 1; letter-spacing: -.01em; }
  .p-tags { display: flex; flex-wrap: wrap; gap: 1.2mm; }
  .p-tags span { border: .2mm solid #cfc9bd; border-radius: 9mm; padding: .5mm 2mm; color: #3b3934; font-size: 6pt; }
  .p-tags span:last-child { border-color: #0F9A96; color: #0B2A2C; }
  .p-act { font-size: 9pt; line-height: 1.42; color: #141312; }
  .p-act.faint { color: #a9a49a; font-style: italic; }
  .p-dia { font-family: var(--serif); font-style: italic; font-size: 10.5pt; line-height: 1.25; color: #3b3934; }

  /* 3 per page */
  .p3 { display: flex; flex-direction: column; gap: 4mm; flex: 1; min-height: 0; }
  .p3-row { display: flex; gap: 7mm; align-items: flex-start; border-bottom: .2mm solid #e2ddd2; overflow: hidden; }
  .p3-row:last-child { border-bottom: 0; }
  .p3-row.brk { box-shadow: inset 0 .5mm 0 #0F9A96; padding-top: 1mm; }
  .p3-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2.2mm; height: 100%; overflow: hidden; padding-top: .5mm; }
  .p3-top { display: flex; align-items: baseline; gap: 4mm; }
  .p3-txt .p-act { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; max-width: 150mm; }
  .p-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6mm 6mm; }
  .p-more div { min-width: 0; }
  .p-more dt { font-size: 5.8pt; margin-bottom: .4mm; }
  .p-more dd { font-size: 8pt; line-height: 1.35; color: #2b2a26; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* 6 per page */
  .p6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6mm 6mm; flex: 1; min-height: 0; align-content: start; }
  .p6-cell { display: flex; flex-direction: column; gap: 2mm; overflow: hidden; }
  .p6-cell .p-img { align-self: center; }
  .p6-top { display: flex; align-items: center; gap: 3mm; margin-top: .8mm; }
  .p6-top .p-code { font-size: 17pt; }
  .p6-cell .p-act { font-size: 8pt; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .p6-cell .p-dia { font-size: 9pt; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

  /* shot list table */
  .p-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .p-tbl th { text-align: left; font-weight: 400; padding: 0 2mm 2mm; border-bottom: .2mm solid #141312; font-size: 5.8pt; }
  .p-tbl th:nth-child(1) { width: 13mm; } .p-tbl th:nth-child(2) { width: 34mm; } .p-tbl th:nth-child(3) { width: 30mm; } .p-tbl th:nth-child(4) { width: 13mm; } .p-tbl th:nth-child(5) { width: 11mm; } .p-tbl th:nth-child(6) { width: 22mm; } .p-tbl th:nth-child(9) { width: 40mm; }
  .p-tbl td { vertical-align: top; padding: 1.6mm 2mm; border-bottom: .2mm solid #e2ddd2; font-size: 7.6pt; line-height: 1.35; height: 19.5mm; }
  .p-tbl tr.brk td { border-top: .45mm solid #0F9A96; }
  .p-tbl td span { color: #6E6A64; }
  .p-tbl .c-code { font-family: var(--serif); font-size: 15pt; line-height: 1; letter-spacing: -.01em; color: #141312; text-transform: none; }
  .p-tbl .c-tc { font-size: 6.2pt; }
  .p-tbl .p-img span { font-size: 9pt; }
  .clip { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

  /* cover */
  .cover { flex-direction: row; gap: 10mm; padding: 6mm 4mm 4mm; background: #FAF8F3; }
  .cv-l { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .cv-lbl { color: #0B2A2C; display: flex; align-items: center; gap: 2.4mm; }
  .cv-lbl::before { content: ""; width: 2mm; height: 2mm; border-radius: 50%; background: #0F9A96; }
  .cover h1 { font-family: var(--serif); font-weight: 400; font-size: 60pt; line-height: .92; letter-spacing: -.025em; margin: 8mm 0 4mm; overflow-wrap: anywhere; }
  .cv-cl { font-family: var(--serif); font-size: 20pt; color: #6E6A64; }
  .cv-cl em { color: #141312; }
  .cv-meta { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4mm 8mm; border-top: .3mm solid #141312; padding-top: 5mm; }
  .cv-meta dd { font-size: 10.5pt; margin-top: .8mm; }
  .cv-jio { margin-top: 8mm; display: grid; gap: .8mm; border-top: .2mm solid #d8d3c8; padding-top: 4mm; }
  .cv-jio b { font-family: var(--serif); font-weight: 400; font-size: 14pt; }
  .cv-jio img { display: block; height: 8.6mm; width: auto; margin-bottom: 1.2mm; }   /* update 78: the ArkVerge logo, at least 30 mm wide */
  .cv-jio span { font-family: var(--mono); font-size: 6.4pt; letter-spacing: .08em; text-transform: uppercase; color: #6E6A64; }
  .cv-r { display: flex; flex-direction: column; justify-content: center; gap: 3mm; }
  .cv-hero { overflow: hidden; border-radius: 1mm; background: #e9e5dc; }
  .cv-hero img { width: 100%; height: 100%; object-fit: cover; }
  .cv-strip { display: flex; gap: 2mm; }
  .cv-th { position: relative; overflow: hidden; border-radius: .6mm; background: #e9e5dc; }
  .cv-th img { width: 100%; height: 100%; object-fit: cover; }
  .cv-th span { position: absolute; left: .8mm; bottom: .5mm; font-family: var(--mono); font-size: 5pt; color: #fff; text-shadow: 0 0 1mm rgba(0,0,0,.8); }
}
.bar .seg { flex-wrap: nowrap; }
@media (max-width: 640px) {
  .sk-tools { flex-wrap: wrap; overflow: visible; gap: 10px 14px; padding: 10px 12px; }
  .sk-g > .fl { display: none; }
  .sk-g .seg button { padding: 6px 10px; }
  .sk-sizes button { width: 32px; height: 32px; }
  .sk-inks button { width: 26px; height: 26px; }
  .sk-stamps { grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
  .sk-stamps button { padding: 6px 2px 5px; font-size: 10px; }
  .sk-stamps svg { width: 18px; height: 18px; }
  .sk-g.sk-row { width: 100%; grid-template-columns: 1fr 1fr 1fr; }
  .sk-row .btn { padding: 6px 8px; }
  .sk-stage { max-height: calc(100vh - 360px); }
}
@media (max-width: 640px) { .sk-g:has(.sk-stamps) { width: 100%; } }
