#studioDialog{width:min(1060px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--ink);border-radius:3px;background:var(--surface);color:var(--ink);box-shadow:8px 8px var(--accent);overflow:auto}
#studioDialog::backdrop{background:rgba(10,15,13,.8)}
.studioToolbar{position:sticky;top:0;z-index:1;background:var(--surface);padding:12px 18px;border-bottom:1px solid var(--line);display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between}.studioTabs,.studioActions{display:flex;gap:6px;flex-wrap:wrap}.studioReport{padding:clamp(20px,4vw,48px)}.studioBrand{font:700 34px 'Space Grotesk',system-ui;letter-spacing:-.06em}.studioBrand>span{color:var(--accent)}.studioBrand small{font:11px 'IBM Plex Mono',monospace;letter-spacing:.05em;margin-left:15px;color:var(--subtle)}.studioReport h1{font:600 clamp(32px,5vw,54px)/1.1 'Space Grotesk',system-ui;letter-spacing:-.05em;margin:28px 0 12px}.studioReport p{overflow-wrap:anywhere}#studioReportFile{font-weight:600}#studioReportDate{color:var(--subtle);font-size:13px}.studioSummary{display:flex;flex-wrap:wrap;gap:18px;padding:18px 0;margin:20px 0;border-block:1px solid var(--ink)}.studioSummary strong:last-child{margin-left:auto}.studioTableWrap{overflow-x:auto}.studioReport table{border-collapse:collapse;width:100%;font-size:15px}.studioReport th{text-align:left;font-size:12px;letter-spacing:.05em;text-transform:uppercase;background:var(--soft)}.studioReport th,.studioReport td{padding:15px 12px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}.studioReport th:first-child,.studioReport td:first-child{width:30%;font-weight:600}.studioReport tfoot{background:var(--lime);color:#202820;font-weight:700}.studioReport footer{border-top:1px solid var(--ink);margin-top:32px;padding-top:16px;font-size:13px;color:var(--subtle)}.studioRules{font-size:13px;color:var(--subtle);margin-top:24px}#studioWarning{padding:12px;border:1px solid var(--accent);background:var(--soft);font-size:14px}.pdfActions #studioHours,.pdfActions #studioMap{font-size:12px;padding:7px 9px}.studioReport[hidden]{display:none}
@media(max-width:600px){.studioSummary strong:last-child{margin-left:0}.studioReport th,.studioReport td{padding:10px 7px}.studioToolbar{position:static}.studioReport table{font-size:13px}}
@page{size:A4;margin:15mm}
@media print{html,body{height:auto!important;overflow:visible!important;background:white!important;color:#202820!important}body>*:not(#studioDialog){display:none!important}#studioDialog[open]{display:block!important;position:static!important;width:100%!important;max-width:none!important;max-height:none!important;height:auto!important;margin:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;background:white!important;color:#202820!important;--surface:white;--ink:#202820;--subtle:#4c554d;--soft:#f2f2ea;--line:#b6beb6}.studioToolbar{display:none!important}.studioReport{padding:0!important}.studioTableWrap{overflow:visible!important}.studioReport thead{display:table-header-group}.studioReport tr{break-inside:avoid}.studioReport th{background:#f2f2ea!important}.studioReport tfoot{display:table-row-group;background:#ecf0e5!important}.studioSummary{break-inside:avoid}.studioReport footer{position:static}#studioDialog::backdrop{background:white}}
/* Mapa de escalação: campos editáveis e uma casinha por loop. */
#studioDialog[data-report="map"]{width:min(1240px,calc(100vw - 32px))}
#studioDialog[data-report="map"] table{table-layout:fixed;min-width:680px;border:1px solid var(--line)}
#studioDialog[data-report="map"] th,#studioDialog[data-report="map"] td{border:1px solid var(--line);vertical-align:middle}
#studioDialog[data-report="map"] th:first-child{width:18%;font-weight:600}
#studioDialog[data-report="map"] thead th:nth-child(2){width:23%}
#studioDialog[data-report="map"] thead th:nth-child(4){width:58px;text-align:center}#studioDialog[data-report="map"] thead th:last-child{width:100px;text-align:center}
#studioDialog[data-report="map"] tbody th{text-transform:none;letter-spacing:0;font-size:15px;background:var(--soft)}
#studioDialog[data-report="map"] td:nth-child(4),#studioDialog[data-report="map"] td:last-child{text-align:center;font:13px 'IBM Plex Mono',monospace}
.studioActor{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 8px;border:1px solid var(--line);border-bottom-color:var(--ink);border-radius:2px;background:var(--bg);color:var(--ink);font:14px 'DM Sans',system-ui}
.studioActor::placeholder{color:var(--subtle)}.studioActorPrint{display:none}
.studioLoopGrid{display:flex;flex-wrap:wrap;gap:5px}
.studioLoopBox{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;height:32px;box-sizing:border-box;border:1px solid var(--ink);background:var(--surface);font:500 12px 'IBM Plex Mono',monospace;font-variant-numeric:tabular-nums;color:var(--ink);border-radius:2px}
@media print{#studioDialog[data-report="map"] table{min-width:0;font-size:10px}#studioDialog[data-report="map"] thead th{font-size:9px}#studioDialog[data-report="map"] th,#studioDialog[data-report="map"] td{padding:8px 6px}#studioDialog[data-report="map"] tbody th{font-size:11px}#studioDialog[data-report="map"] thead th:nth-child(4){width:28px}#studioDialog[data-report="map"] thead th:last-child{width:58px}.studioActor{display:none!important}.studioActorPrint{display:block;overflow-wrap:anywhere;font-size:11px;min-height:20px}.studioLoopGrid{gap:3px}.studioLoopBox{flex-basis:27px;height:24px;font-size:10px;border-radius:0}#studioDialog[data-report="map"] tbody tr{break-inside:auto}.studioLoopBox{break-inside:avoid}}
