/* AT-01..AT-10 — centrais operacionais. Usa apenas tokens dos temas existentes. */
:root{
  /* Esta folha nasceu com os nomes semânticos do protótipo das centrais. O tema v7 usa os tokens curtos
     abaixo; manter a ponte aqui faz as centrais acompanharem claro/escuro sem duplicar uma terceira paleta. */
  --panel:var(--sur);--panel2:var(--sur2);--line:var(--ln);--text:var(--ink);--muted:var(--mut);
  --primary:var(--ac);--green:var(--free);--amber:var(--paid);--red:var(--bad)
}
.feature-page{display:flex;flex-direction:column;gap:18px;max-width:1500px;margin:0 auto}
.feature-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:4px 2px}
.feature-header h1{font-size:30px;line-height:1.1;margin:5px 0 6px;letter-spacing:-.035em}
.feature-header p{color:var(--muted);margin:0;max-width:720px}
.feature-actions,.feature-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.feature-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px}
.feature-toolbar label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
.feature-toolbar input,.feature-toolbar select,.feature-modal input,.feature-modal select,.feature-modal textarea{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:10px;padding:10px 12px;outline:none}
.feature-toolbar input:focus,.feature-toolbar select:focus,.feature-modal input:focus,.feature-modal select:focus,.feature-modal textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 16%,transparent)}
.feature-search{flex:1;min-width:260px}
.feature-loading,.feature-empty{display:grid;place-items:center;min-height:120px;color:var(--muted);text-align:center;padding:24px}
.feature-loading{grid-template-columns:minmax(0,1fr)!important}
.feature-empty{width:100%;grid-column:1/-1}
.feature-error{color:var(--red)}
.feature-results{display:flex;flex-direction:column;gap:12px}
.feature-segmented{display:flex;align-items:center;gap:3px;padding:3px!important;border:1px solid var(--line);background:var(--panel);border-radius:11px}
.feature-segmented button{border:0;background:transparent;color:var(--muted);padding:8px 12px;border-radius:8px;cursor:pointer}
.feature-segmented button.active{background:var(--primary);color:#fff;box-shadow:0 5px 16px color-mix(in srgb,var(--primary) 28%,transparent)}
.feature-badge{display:inline-flex;align-items:center;width:max-content;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;background:var(--panel2);color:var(--muted)}
.feature-badge.ok,.feature-badge.success,.feature-badge.approved,.feature-badge.recoverable,.feature-badge.done{background:color-mix(in srgb,var(--green) 14%,transparent);color:var(--green)}
.feature-badge.warning,.feature-badge.ready,.feature-badge.planned,.feature-badge.info{background:color-mix(in srgb,var(--amber) 15%,transparent);color:var(--amber)}
.feature-badge.error,.feature-badge.rejected,.feature-badge.unavailable,.feature-badge.cancelled{background:color-mix(in srgb,var(--red) 14%,transparent);color:var(--red)}
.feature-badge.disabled,.feature-badge.pending,.feature-badge.running{background:color-mix(in srgb,var(--primary) 14%,transparent);color:var(--primary)}
.feature-table-wrap{overflow:auto}
.feature-table{width:100%;border-collapse:collapse;font-size:12px}
.feature-table th{padding:11px 12px;color:var(--muted);font-size:10px;letter-spacing:.07em;text-transform:uppercase;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
.feature-table td{padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}
.feature-table td small{display:block;color:var(--muted);margin-top:3px}
.feature-table tr:last-child td{border-bottom:0}
.feature-stat{padding:18px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,var(--panel),var(--panel2));min-width:0}
.feature-stat span,.feature-stat small{display:block;color:var(--muted);font-size:11px}
.feature-stat b{display:block;font-size:24px;margin:7px 0 4px;letter-spacing:-.025em}

/* Dashboard complementar */
.dashboard-complement{margin-top:16px;padding:18px}
.dashboard-complement-body{display:flex;flex-direction:column;gap:20px;margin-top:14px}
.dashboard-origin{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.recent-projects h3{font-size:13px;margin:0 0 10px}
.recent-projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.recent-projects-grid button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:12px;padding:13px;cursor:pointer}
.recent-projects-grid button:hover{border-color:var(--primary);transform:translateY(-1px)}
.recent-projects-grid button span{font-weight:700}.recent-projects-grid button small{color:var(--muted)}

/* Busca */
.search-result{display:grid;grid-template-columns:90px minmax(0,1fr) 16px;align-items:center;gap:14px;text-align:left;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:13px;padding:14px;cursor:pointer}
.search-result:hover{border-color:var(--primary);background:var(--panel2)}
.search-result-type{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--primary);font-weight:800}
.search-result b,.search-result small{display:block}.search-result small{margin-top:4px;color:var(--muted)}

/* Lixeira */
.trash-structures{display:flex;flex-direction:column;gap:10px}.trash-structures h2{font-size:15px;margin:0}
.trash-structures>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.trash-structures article{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:12px}
.trash-structures small,.trash-prompt+small{display:block;color:var(--muted);margin-top:4px}.trash-prompt{display:block;max-width:420px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trash-summary{font-size:11px;color:var(--muted);white-space:nowrap}.trash-empty-warning{padding:14px;border:1px solid color-mix(in srgb,var(--red) 35%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--red) 8%,var(--panel));color:var(--text)}
.trash-empty-warning b{color:var(--red)}.trash-empty-warning p{margin:8px 0;line-height:1.5}.trash-empty-warning small{color:var(--muted);line-height:1.45}.trash-empty-modal input{text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.feature-toast{position:fixed;z-index:10050;right:22px;bottom:22px;max-width:min(430px,calc(100vw - 32px));padding:12px 15px;border:1px solid color-mix(in srgb,var(--green) 38%,var(--line));border-radius:12px;background:var(--panel);color:var(--text);box-shadow:0 16px 46px rgba(0,0,0,.28);font-size:12px}.feature-toast.error{border-color:color-mix(in srgb,var(--red) 45%,var(--line));color:var(--red)}
.feature-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.feature-pagination>div{display:flex;align-items:center;gap:10px}.feature-pagination b{color:var(--text);font-size:11px}

/* Relatórios */
.report-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.report-layout{display:grid;grid-template-columns:1.35fr 1fr;gap:14px;margin-top:14px}.report-layout>.card{padding:16px}.report-layout h2{font-size:15px;margin:0 0 14px}
.report-bars{display:flex;flex-direction:column;gap:10px}.report-bars>div{display:grid;grid-template-columns:95px 1fr 38px;align-items:center;gap:10px;font-size:11px}.report-bars i{height:8px;border-radius:99px;background:linear-gradient(90deg,var(--primary),var(--accent,var(--primary)));width:var(--report-size)}
.report-evidence{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.report-evidence article{display:flex;flex-direction:column;gap:5px;padding:15px}.report-evidence span,.report-evidence small,.report-note{color:var(--muted)}.report-evidence b{font-size:18px}.report-stage-card{margin-top:14px;padding:16px}.report-stage-card h2{margin:0 0 5px;font-size:15px}.report-note{margin:0 0 13px;font-size:11px;line-height:1.45}.feature-table-wrap{max-width:100%;overflow:auto}.report-stage-card td small{display:block;margin-top:3px;color:var(--muted)}

/* Biblioteca */
.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.library-card{display:flex;flex-direction:column;gap:8px;min-height:190px;border:1px solid var(--line);border-radius:15px;background:var(--panel);padding:16px}
.library-card>span{font-size:10px;text-transform:uppercase;color:var(--primary);font-weight:800}.library-card h3{margin:0;font-size:17px}.library-card p{margin:0;color:var(--muted);line-height:1.55;flex:1;white-space:pre-wrap}.library-card>small{color:var(--muted)}.library-card footer{display:flex;gap:8px;padding-top:8px;border-top:1px solid var(--line)}
.editorial-learning{display:flex;flex-direction:column;gap:13px;padding:18px;border-color:color-mix(in srgb,var(--primary) 32%,var(--line));background:linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--primary) 6%,var(--panel2)))}
.editorial-learning-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.editorial-learning-header h2{margin:3px 0 0;font-size:19px}.editorial-learning-state{padding:5px 9px;border-radius:999px;font-size:10px;font-weight:850;text-transform:uppercase}.editorial-learning-state.on{color:var(--green);background:color-mix(in srgb,var(--green) 12%,transparent)}.editorial-learning-state.off{color:var(--muted);background:var(--panel2)}
.editorial-learning>p{margin:0;color:var(--muted);line-height:1.5}.editorial-learning-privacy{color:var(--muted);line-height:1.45}.editorial-learning-actions{display:flex;gap:9px;flex-wrap:wrap}.editorial-learning-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.editorial-learning-counts article{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}.editorial-learning-counts b{font-size:18px}.editorial-learning-counts span{color:var(--muted);font-size:10px}
.editorial-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.editorial-suggestion{display:flex;flex-direction:column;gap:7px;padding:11px;border:1px solid var(--line);border-radius:11px;background:var(--panel2)}.editorial-suggestion>div{display:flex;justify-content:space-between;gap:10px}.editorial-suggestion>div span{color:var(--primary);font-size:9px;font-weight:800;text-transform:uppercase}.editorial-suggestion p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.editorial-suggestion small{color:var(--muted)}

/* Saúde e notificações */
.health-status{display:flex;flex-direction:column;gap:14px}.health-overview{display:flex;align-items:center;gap:13px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,var(--panel),var(--panel2));padding:18px}.health-overview.all-active{border-color:color-mix(in srgb,var(--green) 38%,var(--line))}.health-overview.has-inactive{border-color:color-mix(in srgb,var(--red) 35%,var(--line))}.health-overview-dot{width:13px;height:13px;flex:0 0 13px;border-radius:50%;background:var(--red);box-shadow:0 0 0 6px color-mix(in srgb,var(--red) 12%,transparent)}.health-overview.all-active .health-overview-dot{background:var(--green);box-shadow:0 0 0 6px color-mix(in srgb,var(--green) 12%,transparent)}.health-overview b,.health-overview small{display:block}.health-overview small{margin-top:4px;color:var(--muted)}
.health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.health-card{border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:17px}.health-card.active{border-color:color-mix(in srgb,var(--green) 38%,var(--line))}.health-card.error{border-color:color-mix(in srgb,var(--red) 38%,var(--line))}.health-card.warning{border-color:color-mix(in srgb,var(--amber) 38%,var(--line))}.health-card.disabled{opacity:.72}.health-card header{display:flex;align-items:center;justify-content:space-between;gap:8px}.health-card header>div{display:flex;flex-direction:column;gap:3px}.health-card header small{text-transform:uppercase;letter-spacing:.07em}.health-card p{margin:14px 0 8px;color:var(--muted);line-height:1.45}.health-card>small{display:block;margin-top:7px;color:var(--muted);line-height:1.4}.health-card>small b{color:var(--text)}
.notification-list{display:flex;flex-direction:column;gap:9px}.notification-item{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:13px;border:1px solid var(--line);background:var(--panel);border-radius:13px;padding:14px}.notification-item.read{opacity:.66}.notification-item.unread{box-shadow:inset 3px 0 var(--primary)}.notification-dot{width:8px;height:8px;border-radius:50%;background:var(--primary)}.notification-item header{display:flex;align-items:center;gap:8px}.notification-item time{margin-left:auto;color:var(--muted);font-size:10px}.notification-item p{margin:6px 0 0;color:var(--muted)}
.backup-summary{display:grid;grid-template-columns:12px minmax(0,1fr);align-items:center;gap:14px;margin-bottom:16px;border:1px solid var(--line);background:var(--panel);border-radius:15px;padding:16px 18px}.backup-summary header{display:flex;align-items:center;gap:9px}.backup-summary p{margin:6px 0 3px;color:var(--muted)}.backup-summary small{color:var(--muted)}.backup-summary-dot{width:10px;height:10px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 5px color-mix(in srgb,var(--primary) 14%,transparent)}.backup-summary.ok{border-color:color-mix(in srgb,#25b77b 42%,var(--line))}.backup-summary.ok .backup-summary-dot{background:#25b77b}.backup-summary.running .backup-summary-dot{animation:pulse-backup 1.5s infinite}.backup-summary.late,.backup-summary.never{border-color:color-mix(in srgb,#e3a928 48%,var(--line))}.backup-summary.late .backup-summary-dot,.backup-summary.never .backup-summary-dot{background:#e3a928}.backup-summary.error,.backup-summary.unknown{border-color:color-mix(in srgb,#e05757 48%,var(--line))}.backup-summary.error .backup-summary-dot,.backup-summary.unknown .backup-summary-dot{background:#e05757}@keyframes pulse-backup{50%{opacity:.35;transform:scale(.75)}}

/* Modal das centrais */
.feature-modal-overlay{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;background:rgba(4,8,18,.72);backdrop-filter:blur(8px)}
.feature-modal{width:min(620px,100%);max-height:min(760px,90vh);overflow:auto;border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:0 24px 80px rgba(0,0,0,.38)}
.feature-modal header,.feature-modal footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}.feature-modal footer{justify-content:flex-end;border-bottom:0;border-top:1px solid var(--line)}.feature-modal h2{margin:0;font-size:18px}.feature-modal-x{border:0;background:transparent;color:var(--muted);font-size:24px;cursor:pointer}
.feature-modal-fields{display:flex;flex-direction:column;gap:13px;padding:18px}.feature-modal-fields label{display:flex;flex-direction:column;gap:6px}.feature-modal-fields label>span{font-size:11px;color:var(--muted);font-weight:700}.feature-modal textarea{resize:vertical;min-height:110px}
.feature-modal-cancel{color:var(--muted)}
.provider-caption{font-size:10px!important}.provider-transcription{grid-column:1/-1}
.audio-capability>.feature-badge{flex:0 0 auto}

/* Estudio de audio */
.audio-studio-page{padding-bottom:30px}.audio-capabilities{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.audio-capability{display:flex;align-items:center;gap:11px;min-height:72px;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.audio-capability>span{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:var(--red);box-shadow:0 0 0 5px color-mix(in srgb,var(--red) 12%,transparent)}.audio-capability.ready>span{background:var(--green);box-shadow:0 0 0 5px color-mix(in srgb,var(--green) 12%,transparent)}.audio-capability>div{min-width:0;flex:1}.audio-capability b,.audio-capability small{display:block}.audio-capability small{margin-top:4px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.audio-tabs{width:max-content;max-width:100%}.audio-tabs button{min-width:110px}.audio-work-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr);gap:14px;align-items:start}.audio-form,.audio-guide{display:flex;flex-direction:column;gap:15px;padding:20px}.audio-form h2,.audio-guide h2,.audio-jobs-card h2{margin:3px 0 5px;font-size:20px}.audio-form p,.audio-guide p{margin:0;color:var(--muted);line-height:1.5}.audio-form>label,.audio-inline>label,.audio-mix-controls label{display:flex;flex-direction:column;gap:6px}.audio-form label>span,.audio-inline label>span,.audio-mix-controls label>span{font-size:11px;color:var(--muted);font-weight:700}.audio-form input:not([type=checkbox]):not([type=range]),.audio-form textarea,.audio-form select{width:100%;border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:10px;padding:10px 12px;outline:none}.audio-form textarea{resize:vertical}.audio-form input:focus,.audio-form textarea:focus,.audio-form select:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 14%,transparent)}.audio-inline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}.audio-form footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:5px}.audio-form-message{color:var(--muted);font-size:12px}.audio-check,.audio-consent{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;color:var(--muted);font-size:12px}.audio-guide ol{display:flex;flex-direction:column;gap:13px;margin:5px 0 0;padding-left:20px;color:var(--muted);line-height:1.45}.audio-jobs-card{padding:18px}.audio-jobs-card>header{display:flex;justify-content:space-between;margin-bottom:12px}.audio-job-list{display:flex;flex-direction:column}.audio-job{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,380px);align-items:center;gap:15px;padding:13px 2px;border-top:1px solid var(--line)}.audio-job:first-child{border-top:0}.audio-job>div:first-child>span{display:block;color:var(--primary);font-size:10px;font-weight:800;text-transform:uppercase}.audio-job b,.audio-job small{display:block}.audio-job small{margin-top:4px;color:var(--muted)}.audio-job p{margin:6px 0 0;color:var(--red);font-size:11px}.audio-job-output{display:flex;justify-content:flex-end;align-items:center;gap:8px}.audio-job audio{width:min(270px,100%);height:34px}.voice-list{display:flex;flex-direction:column;gap:8px;padding-top:12px;border-top:1px solid var(--line)}.voice-list>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0}.voice-list b,.voice-list small{display:block}.voice-list small{color:var(--muted);margin-top:3px}.audio-media-list{display:flex;flex-direction:column;gap:8px}.audio-media-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--panel2)}.audio-media-list b,.audio-media-list small{display:block}.audio-media-list small{margin-top:4px;color:var(--muted)}.audio-mix-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.audio-mix-controls input{width:100%}.audio-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.audio-settings-grid>.settings-actions{grid-column:1/-1}

@media(max-width:1180px){.dashboard-origin,.report-stats,.health-grid,.audio-capabilities{grid-template-columns:repeat(2,minmax(0,1fr))}.library-grid,.audio-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.feature-header{align-items:flex-start;flex-direction:column}.dashboard-origin,.report-stats,.report-evidence,.health-grid,.recent-projects-grid,.library-grid,.trash-structures>div,.editorial-suggestions{grid-template-columns:1fr}.report-layout{grid-template-columns:1fr}}
@media(max-width:540px){.editorial-learning-counts{grid-template-columns:1fr}}
@media(max-width:540px){.feature-toolbar{align-items:stretch;flex-direction:column}.feature-toolbar>*{width:100%}.feature-pagination{align-items:flex-start;flex-direction:column}.notification-item{grid-template-columns:8px minmax(0,1fr)}.notification-item>.btn{grid-column:2}}
@media(max-width:800px){.audio-work-grid,.audio-settings-grid{grid-template-columns:1fr}.audio-capabilities{grid-template-columns:1fr}.audio-job{grid-template-columns:1fr}.audio-job-output{justify-content:flex-start}.audio-tabs{width:100%;overflow:auto}.audio-tabs button{min-width:95px}.audio-mix-controls{grid-template-columns:1fr}}
.audio-capability>[data-audio-configure]{flex:0 0 auto}

@media print{.sidebar,.gencol,.topbar,.feature-toolbar,.feature-actions,.menu,.btn{display:none!important}.main,.view,.scroll{position:static!important;overflow:visible!important;height:auto!important}.layout{display:block!important}.view{display:none!important}#view-reports{display:block!important}.card,.feature-stat{break-inside:avoid;box-shadow:none!important;border-color:#bbb!important;color:#111!important;background:#fff!important}body{background:#fff!important;color:#111!important}}
.trash-toolbar {
  align-items: center;
  flex-wrap: wrap;
}

/* Fábrica editorial: receita, thumbnails, storyboard e qualidade */
.production-profile-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;padding:13px;border:1px solid var(--line);border-radius:13px;background:var(--panel2)}
.production-profile-row>label{margin:0}.production-profile-row>.btn{margin-bottom:1px}
.production-destination-preview{display:flex;flex-direction:column;gap:4px;padding:11px 13px;border:1px solid color-mix(in srgb,var(--primary) 35%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--primary) 6%,var(--panel));margin:-2px 0 10px}.production-destination-preview span,.production-destination-preview small{color:var(--muted)}
.production-final-actions{display:flex;gap:9px;flex-wrap:wrap;margin:10px 0 16px}
.production-quality.ready{border-color:color-mix(in srgb,var(--green) 45%,var(--line));background:color-mix(in srgb,var(--green) 6%,var(--panel))}
.production-quality.pass,.production-quality.warning{border-color:color-mix(in srgb,var(--green) 45%,var(--line));background:color-mix(in srgb,var(--green) 6%,var(--panel))}.production-quality.fail{border-color:color-mix(in srgb,var(--red) 48%,var(--line));background:color-mix(in srgb,var(--red) 7%,var(--panel))}.production-quality>small{display:block;margin:7px 0;color:var(--muted)}.production-quality-rules{display:flex;flex-direction:column;gap:7px;margin:12px 0;padding:0;list-style:none}.production-quality-rules li{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px;padding:8px 10px;border-radius:9px;background:var(--panel2);font-size:11px}.production-quality-rules li.blocking{color:var(--red)}.production-quality-rules li.warning{color:var(--amber)}.production-quality-rules code{font-weight:800}.production-quality-clean{color:var(--green)!important}
.production-lineage>small{display:block;margin-top:8px;color:var(--muted)}.production-lineage-flow{display:grid;gap:9px;margin:14px 0}.production-lineage-node{position:relative;display:flex;flex-direction:column;gap:6px;padding:11px 12px 11px 20px;border:1px solid var(--line);border-radius:11px;background:var(--panel2)}.production-lineage-node:before{content:"";position:absolute;left:8px;top:15px;bottom:15px;width:3px;border-radius:3px;background:var(--accent)}.production-lineage-node.final{border-color:color-mix(in srgb,var(--green) 48%,var(--line))}.production-lineage-node.final:before{background:var(--green)}.production-lineage-node header{display:flex;align-items:center;justify-content:space-between;gap:8px}.production-lineage-node small{color:var(--muted)}.production-lineage-node details{margin-top:3px}.production-lineage-node details p,.production-lineage-node pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px}.production-lineage-text{display:flex;flex-direction:column;gap:5px;padding:10px;margin:10px 0;border:1px solid var(--line);border-radius:10px}.production-lineage-text small{color:var(--muted)}
.production-thumbnail-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.production-thumbnail-choices button{display:flex;flex-direction:column;gap:7px;border:1px solid var(--line);border-radius:12px;padding:7px;background:var(--panel2);color:var(--muted);cursor:pointer}
.production-thumbnail-choices button.selected{border:2px solid var(--primary);color:var(--primary);font-weight:800}
.production-thumbnail-choices img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px}
.thumbnail-composition-preview{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:13px;background:#101522;box-shadow:inset 0 0 0 1px var(--line)}
.thumbnail-composition-preview>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.thumbnail-safe-guide{position:absolute;left:var(--safe-left);top:var(--safe-top);width:var(--safe-width);height:var(--safe-height);border:1px dashed color-mix(in srgb,var(--thumbnail-accent) 75%,#fff);box-sizing:border-box}
.thumbnail-composition-copy{position:relative;isolation:isolate;display:flex;height:100%;box-sizing:border-box;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;padding:4%;overflow:hidden;color:var(--thumbnail-text);text-align:left;text-shadow:0 2px 5px #000}
.thumbnail-composition-copy::before{content:"";position:absolute;z-index:-1;inset:0;background:#000;opacity:var(--thumbnail-overlay-opacity)}
.thumbnail-composition-copy i{width:7px;height:54%;position:absolute;left:0;top:23%;border-radius:4px;background:var(--thumbnail-accent)}
.thumbnail-composition-copy b{max-width:100%;font-size:calc(28px * var(--thumbnail-font-scale));font-weight:950;line-height:.98;overflow-wrap:anywhere}.thumbnail-composition-copy b em{color:var(--thumbnail-accent);font:inherit}.thumbnail-composition-copy span{max-width:100%;font-size:calc(13px * var(--thumbnail-font-scale));font-weight:750;line-height:1.12;overflow-wrap:anywhere}
.thumbnail-composition-preview[data-position="top"] .thumbnail-composition-copy{justify-content:flex-start}.thumbnail-composition-preview[data-position="bottom"] .thumbnail-composition-copy{justify-content:flex-end}
.thumbnail-composition-preview[data-align="center"] .thumbnail-composition-copy{align-items:center;text-align:center}.thumbnail-composition-preview[data-align="right"] .thumbnail-composition-copy{align-items:flex-end;text-align:right}.thumbnail-composition-preview[data-align="right"] .thumbnail-composition-copy i{left:auto;right:0}
#production-thumbnail-editor input[type="color"]{height:42px;padding:4px}
.production-editor>summary{cursor:pointer;font-weight:800}.production-editor[open]>summary{margin-bottom:14px}
.production-editor label{display:flex;flex-direction:column;gap:6px;margin:10px 0}.production-editor label>span{font-size:11px;color:var(--muted);font-weight:700}
.production-editor input,.production-editor textarea,.production-editor select{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--panel2);color:var(--text)}
.production-editor>small{margin-left:9px;color:var(--muted)}
.subtitle-preview{display:grid;place-items:end center;min-height:140px;padding:22px;border-radius:12px;background:linear-gradient(135deg,#111827,#334155);color:#fff;font-weight:900;text-align:center;text-shadow:0 2px 4px #000}
.subtitle-preview.amarelo{color:#ffe14a}.subtitle-preview.reels{color:#fff;text-shadow:2px 2px 0 #000,-2px -2px 0 #000}.subtitle-preview.pequeno{font-size:16px}.subtitle-preview.medio{font-size:22px}.subtitle-preview.grande{font-size:30px}
.subtitle-preview.top{place-items:start center}.subtitle-preview.middle{place-items:center}.subtitle-preview.bottom{place-items:end center}
.subtitle-diagnostics{display:flex;flex-direction:column;gap:6px;margin:10px 0}.subtitle-diagnostic,.subtitle-diagnostic-ok{padding:8px 10px;border-radius:9px;font-size:11px;font-weight:700}.subtitle-diagnostic-ok{color:var(--green);background:color-mix(in srgb,var(--green) 9%,transparent)}.subtitle-diagnostic.info{color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,transparent)}.subtitle-diagnostic.warning{color:#a75c00;background:color-mix(in srgb,#f59e0b 13%,transparent)}.subtitle-diagnostic.error{color:var(--red);background:color-mix(in srgb,var(--red) 10%,transparent)}
.subtitle-readability{display:flex;flex-direction:column;gap:9px;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--panel2)}.subtitle-readability.ready{border-color:color-mix(in srgb,var(--green) 45%,var(--line))}.subtitle-readability.exception{border-color:color-mix(in srgb,#f59e0b 45%,var(--line))}.subtitle-readability.attention{border-color:color-mix(in srgb,var(--red) 48%,var(--line))}.subtitle-readability header{display:flex;justify-content:space-between;gap:10px}.subtitle-readability header span,.subtitle-readability small{color:var(--muted);font-size:10px}.subtitle-readability-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.subtitle-readability-metrics span{font-size:10px;line-height:1.45}.subtitle-readability-diagnostics .subtitle-diagnostics{margin:0}.subtitle-exception-audit{padding:8px;border-radius:8px;background:color-mix(in srgb,#f59e0b 10%,transparent)}.production-editor .subtitle-exception-control{padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}.production-editor .subtitle-exception-control>span{display:flex;align-items:center;gap:8px;color:var(--text)}.production-editor .subtitle-exception-control input{width:auto}.production-editor .subtitle-exception-control small{color:var(--muted)}
.subtitle-readability.not-required{border-style:dashed;opacity:.82}.subtitle-exception-reason{display:grid;gap:6px;color:var(--muted);font-size:10px}.subtitle-exception-reason textarea{width:100%;resize:vertical}
.subtitle-cues{display:flex;flex-direction:column;gap:9px;max-height:480px;overflow:auto;margin:10px 0;padding-right:5px}.subtitle-cue{padding:11px;border:1px solid var(--line);border-radius:11px;background:var(--panel2)}.subtitle-cue header{display:flex;align-items:center;justify-content:space-between;gap:10px}.subtitle-cue-time{display:grid;grid-template-columns:1fr 1fr;gap:9px}.subtitle-timeline-empty{color:var(--muted)}
.production-storyboard{display:flex;flex-direction:column;gap:10px;max-height:560px;overflow:auto;padding-right:5px}
.production-storyboard article{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}
.production-storyboard article header{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px}.production-storyboard article header span{color:var(--muted);font-size:10px;text-transform:uppercase}
.production-storyboard article>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.production-cut-guide{display:block;margin:-2px 0 8px;color:var(--primary);font-weight:700}
.production-storyboard article .production-scene-grid{display:grid;grid-template-columns:minmax(90px,.5fr) minmax(120px,1fr);gap:10px;margin:0}.production-storyboard article label{margin:8px 0}
.production-storyboard-versions{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.production-storyboard-history{display:flex;flex-direction:column;gap:8px;margin-top:10px}.production-storyboard-history>article{padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}.production-storyboard-history header{display:flex;justify-content:space-between;gap:8px}.production-storyboard-history small,.production-storyboard-empty-history{color:var(--muted)}.production-storyboard-compare{display:grid;grid-template-columns:1fr 1fr;gap:8px}.production-storyboard-compare p{display:flex;flex-direction:column;gap:2px}.production-storyboard-compare span{font-size:9px;font-weight:800;text-transform:uppercase;color:var(--muted)}
.production-script-actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}.production-script-history{display:flex;flex-direction:column;gap:8px;margin-top:10px;max-height:360px;overflow:auto}.production-script-history article{padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}.production-script-history header{display:flex;justify-content:space-between;gap:8px}.production-script-history p{margin:7px 0;color:var(--muted);white-space:pre-wrap}.production-script-history article>small{display:block;margin:0 0 8px;color:var(--muted)}
.production-metadata-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}.production-metadata-field>label{margin-bottom:0}.production-metadata-field>.btn{margin-bottom:1px;white-space:nowrap}.production-metadata-versions{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.production-metadata-history{display:flex;flex-direction:column;gap:8px;margin-top:10px;max-height:440px;overflow:auto}.production-metadata-history article{display:flex;flex-direction:column;gap:5px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}.production-metadata-history header{display:flex;justify-content:space-between;gap:8px}.production-metadata-history p{margin:0;color:var(--muted);white-space:pre-wrap}.production-metadata-history small{color:var(--muted)}.production-metadata-history .btn{align-self:flex-start}
.production-pexels>p a,.production-pexels>small a,.production-pexels-card a{color:var(--primary)}.production-pexels>#production-pexels-message{display:block;margin:10px 0}.production-pexels-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.production-pexels-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}.production-pexels-card>a{display:block}.production-pexels-card img,.production-pexels-placeholder{display:grid;width:100%;height:96px;place-items:center;object-fit:cover;border-radius:8px;background:var(--panel);color:var(--muted);font-size:10px}.production-pexels-card>div{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:5px}.production-pexels-card b{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.production-pexels-card small{color:var(--muted)}.production-pexels-card .btn{margin-top:auto}
@media(max-width:800px){.production-profile-row{grid-template-columns:1fr}.production-thumbnail-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.subtitle-cue-time{grid-template-columns:1fr}.thumbnail-composition-copy b{font-size:calc(20px * var(--thumbnail-font-scale))}.thumbnail-composition-copy span{font-size:calc(11px * var(--thumbnail-font-scale))}.production-metadata-field{grid-template-columns:1fr}.production-metadata-field>.btn{justify-self:start}}
@media(max-width:800px){.production-pexels-results{grid-template-columns:1fr}.production-pexels-card{grid-template-columns:100px minmax(0,1fr)}}
