/* Roteiros de vídeo */
.vd-list { display: flex; flex-direction: column; gap: 6px; }
.vd-item { display: grid; grid-template-columns: 150px 1fr auto auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; color: var(--fg); text-decoration: none !important; }
.vd-item:hover { border-color: #3a3a3a; }
.vd-item .vd-kind { grid-row: span 2; }
.vd-item b { font-size: 15px; }
.vd-item small { grid-column: 2; }
.vd-item .vd-st, .vd-item .tag { grid-row: span 2; }
.vd-kind { font-size: 12px; color: var(--muted); font-weight: 600; }
.vd-st { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #262626; color: var(--muted); white-space: nowrap; }
.vd-st.s-enviado { background: color-mix(in srgb, #60A5FA 18%, transparent); color: #93C5FD; }
.vd-st.s-aprovado { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.vd-st.s-ajustar { background: color-mix(in srgb, var(--err) 18%, transparent); color: #FCA5A5; }
.vd-mode { margin: 4px 0 14px; }
.vd-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; }
.vd-tpl { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; color: var(--fg); font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.vd-tpl span { font-size: 12px; color: var(--muted); }
.vd-tpl small { font-size: 11px; }
.vd-tpl.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel2)); }

.vd-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; padding-right: 56px; }
.vd-title { flex: 1; min-width: 220px; font-size: 22px; font-weight: 800; background: none; border-color: transparent; margin: 0; padding: 6px 8px; }
.vd-title:hover { border-color: var(--line); }
.vd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.vd-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 0; max-height: calc(100vh - 24px); overflow-y: auto; }
.vd-side h3 { margin-top: 0; }
.vd-time { position: sticky; top: 0; z-index: 4; }
.vd-total { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.vd-total b { font-size: 26px; font-weight: 800; }
.vd-bar { display: flex; gap: 3px; height: 30px; }
.vd-bar button { min-width: 18px; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--accent) 30%, var(--panel2)); color: var(--fg); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; overflow: hidden; padding: 0; }
.vd-bar button:nth-child(even) { background: color-mix(in srgb, var(--accent) 18%, var(--panel2)); }
.vd-bar button.on { outline: 2px solid var(--accent); }
.vd-bar button.w { background: color-mix(in srgb, var(--warn) 40%, var(--panel2)); }
.vd-warn { margin: 8px 0 0; font-size: 13px; color: var(--warn); }
.vd-warn::before { content: '! '; font-weight: 800; }
.vd-views { margin-top: 12px; }
.vd-scenes { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.vd-scene { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 6px; }
.vd-scene.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.vd-sh { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.vd-n { width: 28px; height: 28px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.vd-st-t { flex: 1; min-width: 160px; margin: 0; font-weight: 700; background: none; border-color: transparent; padding: 6px 8px; }
.vd-st-t:hover, .vd-st-t:focus { border-color: var(--line); }
.vd-clock { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vd-sec { font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--panel2); }
.vd-sec.man { outline: 1px dashed var(--muted); }
.vd-sa { display: flex; gap: 8px; }
.vd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.vd-fields label { margin-bottom: 10px; }
.vd-fields textarea, .vd-fields input, .vd-fields select { margin-top: 4px; }
.vd-row3 { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; }
.vd-cnote { background: color-mix(in srgb, var(--err) 12%, transparent); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 6px 0; }
.vd-add { display: block; width: 100%; background: none; border: 1px dashed transparent; color: var(--muted); font: inherit; font-size: 12px; padding: 6px; margin-top: 4px; border-radius: 8px; cursor: pointer; }
.vd-add:hover { border-color: var(--line); color: var(--accent); }
.vd-table { overflow-x: auto; }
.vd-table table { border-collapse: collapse; width: 100%; font-size: 13px; }
.vd-table th, .vd-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; white-space: pre-wrap; }
.vd-table th { background: var(--panel2); white-space: nowrap; }
.vd-phones { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.vd-phone { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #2a2a2a, #121212); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 26px 14px 30px; text-align: center; }
.vd-phone.r1-1 { aspect-ratio: 1; } .vd-phone.r4-5 { aspect-ratio: 4 / 5; } .vd-phone.r16-9 { aspect-ratio: 16 / 9; padding: 14px; }
.vd-pbar { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; gap: 3px; }
.vd-pbar i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); }
.vd-pbar i.done, .vd-pbar i.cur { background: #fff; }
.vd-pvis { position: absolute; inset: 30px 12px auto; font-size: 11px; color: #8a8a8a; font-style: italic; }
.vd-ptxt { font-weight: 800; font-size: 17px; line-height: 1.2; text-transform: uppercase; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.vd-pst { margin-top: 14px; background: #fff; color: #111; border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 70%; }
.vd-pst small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #888; }
.vd-pfoot { position: absolute; bottom: 8px; left: 0; right: 0; font-size: 11px; color: #aaa; }
.vd-link { display: flex; gap: 6px; }
.vd-link input { margin: 0; font-size: 12px; }
.vd-h { border-left: 3px solid var(--muted); padding: 6px 10px; margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.vd-h.aprovado { border-color: var(--ok); } .vd-h.ajustar { border-color: var(--err); }
.vd-h p { margin: 4px 0 0; font-size: 13px; }
.vd-tools .btn { margin: 0 0 8px; }
/* card do quadro */
.vd-incard { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.vd-inrow { display: flex; gap: 8px; align-items: center; color: var(--fg); font-size: 14px; }
.vd-inrow span:first-child { flex: 1; }
@media (max-width: 1100px) { .vd-layout { grid-template-columns: 1fr; } .vd-side { position: static; max-height: none; } }
@media (max-width: 700px) { .vd-fields { grid-template-columns: 1fr; } .vd-row3 { grid-template-columns: 1fr 1fr; } .vd-item { grid-template-columns: 1fr auto; } .vd-item .vd-kind { grid-row: auto; grid-column: 1; } .vd-item small { grid-column: 1; } .vd-item .tag { display: none; } .vd-sa { width: 100%; justify-content: flex-end; } }

/* PDF (A4 em pé, 1240 x 1754) */
.vp-print { position: fixed; left: -20000px; top: 0; }
.vp-page { width: 1240px; height: 1754px; background: #fff; color: #161616; font-family: Arial, Helvetica, sans-serif; padding: 80px 80px 70px; box-sizing: border-box; position: relative; overflow: hidden; }
.vp-head { display: flex; justify-content: space-between; gap: 30px; border-bottom: 4px solid #F97316; padding-bottom: 24px; margin-bottom: 28px; }
.vp-cli { font-size: 20px; font-weight: 700; color: #F97316; text-transform: uppercase; letter-spacing: .06em; }
.vp-head h1 { font-size: 40px; margin: 8px 0; text-transform: none; color: #161616; letter-spacing: 0; }
.vp-meta { font-size: 18px; color: #666; }
.vp-brand { font-weight: 800; font-size: 22px; color: #999; }
.vp-cont { font-size: 18px; color: #888; margin-bottom: 20px; }
.vp-scene { display: grid; grid-template-columns: 70px 1fr; gap: 18px; border: 1px solid #E4E4E4; border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; break-inside: avoid; }
.vp-n { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vp-n b { width: 46px; height: 46px; border-radius: 99px; background: #F97316; color: #fff; display: grid; place-items: center; font-size: 20px; }
.vp-n span { font-size: 16px; font-weight: 700; color: #555; }
.vp-st-t { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.vp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.vp-grid label, .vp-cap label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #999; font-weight: 700; }
.vp-grid p, .vp-cap p { margin: 4px 0 0; font-size: 18px; line-height: 1.4; white-space: pre-wrap; }
.vp-grid i { color: #bbb; }
.vp-tt { font-weight: 800; }
.vp-st, .vp-obs { font-size: 16px; margin-top: 10px; color: #444; }
.vp-cap { border-top: 2px solid #eee; padding-top: 16px; margin-top: 8px; }
.vp-foot { position: absolute; bottom: 30px; right: 80px; font-size: 14px; color: #aaa; }
.vd-pfala { position: absolute; left: 10px; right: 10px; bottom: 26px; font-size: 11px; line-height: 1.35; color: #ddd; background: rgba(0,0,0,.45); border-radius: 8px; padding: 6px 8px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* referências do roteiro */
.vd-ref { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.vd-ref-a { display: flex; gap: 12px; justify-content: flex-end; }
.vd-tpl-del { align-self: flex-start; padding: 0; margin-top: 2px; }
