/* V8 — delivery controls and client reports, using the current Todo shell. */
.npc-app [hidden]{display:none!important}
.npc-app .v8-scope-note{color:#626267;font-size:13px;line-height:1.65;margin:10px 0 18px;max-width:900px}
.npc-app .v8-config-page{max-width:1160px;margin:0 auto}
.npc-app .v8-config-page h1,.npc-app .v8-report-header h1{font-size:28px;font-weight:650;line-height:1.35;letter-spacing:-.6px;margin:0 0 8px}
.npc-app .v8-config-tabs,.npc-app .v8-execution-tabs{display:flex;gap:6px;align-items:center;overflow-x:auto;scrollbar-width:thin;border-bottom:1px solid #e8e8ed;padding:6px 0 14px;margin:18px 0 22px}
.npc-app :is(.v8-config-tabs,.v8-execution-tabs) button{flex:0 0 auto;min-height:44px;padding:10px 17px;border:0;border-radius:999px;background:transparent;color:#626267;font-size:14px;font-weight:500;white-space:nowrap}
.npc-app :is(.v8-config-tabs,.v8-execution-tabs) button:hover{background:#f5f5f7;color:#1d1d1f}
.npc-app :is(.v8-config-tabs,.v8-execution-tabs) button:is(.active,[aria-selected=true]){color:#b52b0e;background:#fff0eb}
.npc-app .v8-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.npc-app .v8-config-card{padding:22px;border:1px solid #e0e0e5;border-radius:18px;background:#fff;min-width:0;margin-bottom:18px}
.npc-app .v8-config-card h2,.npc-app .v8-execution-pane h2{font-size:18px;font-weight:650;line-height:1.4;margin:0 0 6px}
.npc-app .v8-config-card h3,.npc-app .v8-execution-pane h3{font-size:16px;line-height:1.5;font-weight:600;margin:0 0 8px}
.npc-app .v8-config-card>p,.npc-app .v8-config-card>small{font-size:13px;color:#626267;line-height:1.6;margin:4px 0 16px}
.npc-app .v8-config-card>label:not(.v8-permission-row){display:grid;gap:8px;font-size:14px;margin:14px 0}
.npc-app .v8-permission-list{display:grid;gap:0}
.npc-app .v8-permission-row{display:flex!important;align-items:center;gap:12px;min-height:56px;margin:0!important;padding:12px 0;border-bottom:1px solid #efeff2;font-size:14px;line-height:1.5;cursor:pointer}
.npc-app .v8-permission-row:last-child{border-bottom:0}
.npc-app .v8-permission-row>span{flex:1;min-width:0}
.npc-app .v8-permission-row strong{display:block;font-size:14px;font-weight:550}
.npc-app .v8-permission-row small{display:block;color:#626267;font-size:12px;line-height:1.6;margin-top:3px}
.npc-app .v8-permission-row input[type=checkbox]{width:19px;min-width:19px;height:19px;min-height:19px;margin:0;accent-color:#e64521;border-radius:5px;box-shadow:none}
.npc-app .v8-rule-grid,.npc-app .v8-metric-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;margin:18px 0}
.npc-app :is(.v8-rule-grid,.v8-metric-inputs)>label{display:grid;align-content:start;gap:7px;color:#424247;font-size:14px;min-width:0;margin:0}
.npc-app :is(.v8-rule-grid,.v8-metric-inputs) input{width:100%;font-variant-numeric:tabular-nums}
.npc-app :is(.v8-rule-grid,.v8-metric-inputs) small{color:#626267;font-size:12px;line-height:1.6}
.npc-app .v8-config-footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:16px 0;margin-top:12px;background:rgba(255,255,255,.97);border-top:1px solid #e8e8ed;z-index:3}
.npc-app .v8-config-footer .btn-primary{min-height:46px;font-size:16px;padding:11px 24px}
.npc-app .v8-config-footer>span{margin-right:auto;color:#626267;font-size:13px}
.npc-app .v8-form-error{color:#bf273c;font-size:14px;line-height:1.65;margin:10px 0;overflow-wrap:anywhere}
.npc-app .v8-delivery-badge{display:inline-flex;align-items:center;width:fit-content;gap:5px;max-width:100%;padding:4px 9px;border-radius:6px;background:#f1f1f4;color:#55555b;font-size:12px;line-height:1.5;font-weight:550;white-space:normal}
.npc-app .v8-delivery-badge:is(.monitoring,.published,.retaining){background:#eaf2ff;color:#2454ad}
.npc-app .v8-delivery-badge:is(.completed,.retained,.verified,.complete,.retention_verified){background:#e7f6ee;color:#147047}
.npc-app .v8-delivery-badge.completed_deleted{background:#fff4df;color:#8b5309}
.npc-app .v8-delivery-badge:is(.deleted,.exhausted,.exception,.failed,.overdue){background:#fff0f2;color:#b9263c}
.npc-app .v8-delivery-badge:is(.check_due,.needs_check,.needs_repost,.repost_pending,.reposting,.pending_verification){background:#fff4df;color:#8b5309}
.npc-app .v8-delivery-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:10px 0 16px;font-size:13px;line-height:1.65;color:#626267}
.npc-app .v8-delivery-summary strong{font-size:14px;color:#1d1d1f;font-weight:600}
.npc-app .v8-revision-exception{padding:13px 16px;border-radius:12px;background:#fff4df;color:#8b5309;font-size:14px;line-height:1.65;margin:14px 0}
.npc-app .v8-inline-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}
.npc-app .v8-inline-actions .btn{font-size:13px;min-height:42px;padding:9px 16px}
.npc-app .modal.v8-execution-modal{width:min(920px,calc(100vw - 48px));max-width:920px;padding:26px 30px 28px;background:#fff}
.npc-app .v8-execution-modal .modal-head{gap:16px}
.npc-app .v8-execution-modal .modal-head h2{font-size:21px;line-height:1.4}
.npc-app .v8-execution-modal .modal-description{font-size:14px;line-height:1.6;max-width:760px;margin:6px 0 0;color:#626267}
.npc-app .v8-execution-tabs{margin:14px 0 20px;padding-bottom:12px;position:sticky;top:-26px;background:#fff;z-index:3}
.npc-app .v8-execution-pane{min-height:220px;font-size:14px;line-height:1.65}
.npc-app .v8-execution-pane>form>label{display:block;font-size:14px;font-weight:500;margin:14px 0 7px}
.npc-app .v8-execution-pane :is(input[type=url],input[type=datetime-local],textarea,select){width:100%}
.npc-app .v8-execution-pane textarea{resize:vertical;min-height:92px}
.npc-app .v8-execution-pane .modal-actions{padding-top:18px;margin-top:22px;border-top:1px solid #ececf0}
.npc-app .v8-execution-pane .modal-actions .btn-primary{min-height:46px;font-size:16px}
.npc-app .v8-attempt-list{display:grid;gap:14px;margin-top:18px}
.npc-app .v8-attempt-card{border:1px solid #e2e2e7;border-radius:14px;padding:16px 18px;background:#fff;min-width:0}
.npc-app .v8-attempt-card>header{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}
.npc-app .v8-attempt-card :is(h3,h4){font-size:15px;font-weight:600;line-height:1.5;margin:0}
.npc-app .v8-attempt-card p,.npc-app .v8-attempt-meta{font-size:13px;line-height:1.7;color:#626267;margin:6px 0;overflow-wrap:anywhere}
.npc-app .v8-attempt-card a,.npc-app .v8-table-link{color:#2454ad;text-decoration:none;overflow-wrap:anywhere;line-height:1.5;font-size:13px}
.npc-app .v8-attempt-card a:hover,.npc-app .v8-table-link:hover{text-decoration:underline}
.npc-app .v8-table-link{display:block;width:fit-content;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.npc-app .v8-row-metrics{font-size:12px;line-height:1.7;color:#424247;font-variant-numeric:tabular-nums;min-width:150px}
.npc-app .v8-row-metrics small{display:block;color:#76767c;font-size:11px}
.npc-app .workspace-table.v8-plan-table,.npc-app .v8-plan-table .workspace-table{min-width:1580px;table-layout:fixed}
.npc-app .v8-plan-table .title-cell{min-width:270px;max-width:340px}
.npc-app .v8-plan-table td{padding-top:17px;padding-bottom:17px;vertical-align:middle}
.npc-app .v8-plan-table :is(th,td):first-child{width:300px}
.npc-app .v8-plan-table :is(th,td):nth-child(2){width:90px}
.npc-app .v8-plan-table :is(th,td):nth-child(3){width:100px}
.npc-app .v8-plan-table :is(th,td):nth-child(4){width:170px}
.npc-app .v8-plan-table :is(th,td):nth-child(5){width:190px}
.npc-app .v8-plan-table :is(th,td):nth-child(6){width:125px}
.npc-app .v8-plan-table :is(th,td):nth-child(7){width:170px}
.npc-app .v8-plan-table :is(th,td):nth-child(8){width:155px}
.npc-app .v8-plan-table :is(th,td):last-child{width:180px}
.npc-app .v8-plan-table .publication-cell .v8-delivery-badge{display:flex;margin:6px 0}
.npc-app .v8-plan-table td>small,.npc-app .v8-plan-table .publication-cell>small{display:block;color:#626267;font-size:11px;line-height:1.65;margin-top:5px;white-space:normal}
.npc-app .v8-row-metrics>span{display:inline-block;min-width:75px;margin-right:7px}
.npc-app .v8-plan-table .row-title{font-weight:550;font-size:14px;line-height:1.55}
.npc-app .v8-plan-table .schedule-cell{min-width:175px;font-size:13px;line-height:1.65}
.npc-app .v8-plan-table .schedule-cell small{font-size:11px;color:#76767c}
.npc-app .v8-plan-table .action-cell,.npc-app .v8-plan-table .row-actions-cell{min-width:145px}
.npc-app .v8-plan-table .btn{font-size:13px;min-height:40px;padding:9px 15px}
.npc-app .v8-metric-strip{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;padding:13px 0;color:#626267;font-variant-numeric:tabular-nums}
.npc-app .v8-metric{display:inline-flex;align-items:center;gap:6px;font-size:13px;line-height:1.5}
.npc-app .v8-metric svg{width:17px;height:17px;flex-shrink:0}
.npc-app .v8-metric strong{color:#1d1d1f;font-size:15px;line-height:1.5;font-weight:600}
.npc-app .v8-metric-strip>small{color:#76767c;font-size:11px;line-height:1.6;flex-basis:100%}
.npc-app .v8-report-header{display:flex;flex-direction:column;gap:6px;align-items:flex-start;margin-bottom:24px}
.npc-app .v8-report-header>span{font-size:12px;color:#76767c;line-height:1.65}
.npc-app .v8-report-header p{font-size:14px;color:#626267;margin:5px 0;line-height:1.6}
.npc-app .v8-report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:22px 0;margin:14px 0 26px;border-top:1px solid #e2e2e7;border-bottom:1px solid #e2e2e7;gap:22px 28px}
.npc-app .v8-report-summary>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.npc-app .v8-report-summary strong{font-size:30px;line-height:1.35;font-weight:650;color:#1d1d1f;letter-spacing:-.8px;font-variant-numeric:tabular-nums}
.npc-app .v8-report-summary :is(span,label){font-size:13px;color:#626267;line-height:1.6}
.npc-app .v8-report-summary small{font-size:11px;color:#76767c;line-height:1.6}
.npc-app .v8-report-card{border:1px solid #e2e2e7;border-radius:18px;padding:22px;margin:18px 0;background:#fff}
.npc-app .v8-report-card h2{font-size:19px;font-weight:600;line-height:1.45;margin:0 0 10px}
.npc-app .v8-report-card .v8-metric-strip{border-top:1px solid #efeff2;margin-top:14px}
.npc-app .result-card:has(.reddit-preview-frame)>.result-top h2{display:none}
.npc-app .result-card:has(.reddit-preview-frame .v8-metric-strip)>.v8-metric-strip{display:none}
.npc-app section.v8-report-card>.v8-metric-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px;padding-top:20px}
.npc-app section.v8-report-card>.v8-metric-strip>.v8-metric{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.npc-app section.v8-report-card>.v8-metric-strip>.v8-metric strong{font-size:25px;line-height:1.4;letter-spacing:-.4px;overflow-wrap:anywhere}
.npc-app section.v8-report-card>.v8-metric-strip>.v8-metric small{font-size:11px;color:#76767c}
.npc-app .v8-metrics-table{width:100%;border-collapse:collapse;line-height:1.6;font-size:13px;font-variant-numeric:tabular-nums}
.npc-app .v8-metrics-table th{padding:10px 12px;color:#626267;font-size:12px;font-weight:500;text-align:left;background:#f8f8fa;border-bottom:1px solid #e2e2e7;white-space:nowrap}
.npc-app .v8-metrics-table td{padding:13px 12px;color:#424247;border-bottom:1px solid #efeff2;white-space:nowrap}
.npc-app .v8-metric-history{max-width:100%;overflow-x:auto;margin-top:16px}
.npc-app .v8-empty-state{padding:32px 22px;border:1px dashed #d6d6dc;border-radius:16px;text-align:center;color:#626267;font-size:14px;line-height:1.7;background:#fcfcfd}
.npc-app .v8-empty-state strong{display:block;color:#1d1d1f;font-size:16px;font-weight:600;margin-bottom:6px}
.npc-app .v8-evidence-checkpoints{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0 22px;align-items:start}
.npc-app .v8-checkpoint-card{border:1px solid #e0e0e5;border-radius:16px;padding:18px;background:#fff;min-width:0}
.npc-app .v8-checkpoint-card>header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.npc-app .v8-checkpoint-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.npc-app .v8-checkpoint-card :is(h3,h4){font-size:16px;font-weight:600;line-height:1.5;margin:0}
.npc-app .v8-checkpoint-card>p{font-size:13px;line-height:1.65;color:#626267;margin:6px 0}
.npc-app .v8-checkpoint-card time{color:#2454ad;font-size:14px;font-weight:550;font-variant-numeric:tabular-nums}
.npc-app .v8-checkpoint-card .v8-delivery-badge:is(.due,.missing){color:#b52b0e;background:#fff0eb}
.npc-app .v8-checkpoint-card .v8-delivery-badge.shown{color:#147047;background:#e7f6ee}
.npc-app .v8-checkpoint-card .v8-delivery-badge.pending{color:#8b5309;background:#fff4df}
.npc-app .v8-checkpoint-card .v8-delivery-badge.unavailable{color:#b9263c;background:#fff0f2}
.npc-app .v8-checkpoint-card .evidence-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.npc-app .v8-checkpoint-card .evidence-item{margin-top:14px;border-radius:12px;overflow:hidden}
.npc-app .v8-checkpoint-card .evidence-img{max-height:320px;width:100%;object-fit:contain;background:#f8f8fa;cursor:zoom-in}
.npc-app .v8-checkpoint-card .evidence-info{padding:12px}
.npc-app .v8-checkpoint-card .evidence-info p{font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.npc-app .v8-checkpoint-card .btn{font-size:14px;min-height:44px;padding:10px 16px}
.npc-app .v8-checkpoint-card .evidence-actions{display:flex;gap:7px;flex-wrap:wrap}
.npc-app .v8-checkpoint-card .evidence-actions .btn{font-size:12px;min-height:40px;padding:8px 12px}
.npc-app .v8-execution-modal details{border-top:1px solid #ececf0;margin-top:18px;padding-top:14px}
.npc-app .v8-execution-modal details>summary{cursor:pointer;font-size:14px;font-weight:500;padding:7px 0;min-height:40px}
.npc-app .mobile-app-nav{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}
@media(max-width:1100px){
 .npc-app .v8-config-grid{grid-template-columns:minmax(0,1fr)}
 .npc-app .v8-report-summary{gap:20px}
}
@media(max-width:760px){
 .npc-app .v8-config-page h1,.npc-app .v8-report-header h1{font-size:25px;line-height:1.4}
 .npc-app .v8-config-card,.npc-app .v8-report-card{padding:18px 16px;border-radius:16px}
 .npc-app .v8-config-tabs{margin:14px 0 18px}
 .npc-app :is(.v8-config-tabs,.v8-execution-tabs) button{font-size:14px;padding:10px 15px}
 .npc-app .v8-rule-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .npc-app .v8-metric-inputs{gap:14px}
 .npc-app .v8-permission-row{min-height:60px;padding:12px 0;font-size:15px}
 .npc-app .v8-permission-row strong{font-size:15px}
 .npc-app .v8-permission-row small{font-size:12px}
 .npc-app .v8-config-footer{flex-wrap:wrap;bottom:0;padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px))}
 .npc-app .modal.v8-execution-modal{width:100%;max-width:100%;padding:20px 18px calc(20px + env(safe-area-inset-bottom,0px));border-radius:22px 22px 0 0;max-height:calc(var(--app-viewport-height,100dvh) - 16px)}
 .npc-app .v8-execution-tabs{top:-20px;gap:2px;margin-top:12px}
 .npc-app .v8-execution-modal .modal-head h2{font-size:20px}
 .npc-app .v8-execution-modal .modal-description{font-size:13px}
 .npc-app .v8-execution-pane{min-height:180px}
 .npc-app .v8-metric-strip{gap:9px 17px;padding:12px 0}
 .npc-app .v8-metric{font-size:12px;gap:5px}
 .npc-app .v8-metric strong{font-size:15px}
 .npc-app .v8-report-header{display:block;margin-bottom:18px}
 .npc-app .v8-report-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:18px 0;gap:20px 24px;margin-bottom:20px}
 .npc-app .v8-report-summary strong{font-size:29px}
 .npc-app .v8-report-card h2{font-size:18px}
 .npc-app .result-card>.result-top{flex-direction:column;align-items:flex-start;gap:10px}
 .npc-app .result-card>.result-top>.v8-delivery-badge{white-space:normal;max-width:100%}
 .npc-app section.v8-report-card>.v8-metric-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 14px}
 .npc-app section.v8-report-card>.v8-metric-strip>.v8-metric strong{font-size:23px}
 .npc-app .v8-attempt-card{padding:14px}
 .npc-app .v8-attempt-card a{word-break:break-all}
 .npc-app .v8-delivery-summary{gap:7px 10px;font-size:12px;line-height:1.6}
 .npc-app .v8-scope-note{font-size:12px;margin-bottom:14px}
 .npc-app .v8-evidence-checkpoints{grid-template-columns:minmax(0,1fr);gap:14px}
 .npc-app .v8-checkpoint-card{padding:16px}
}
@media(prefers-reduced-motion:reduce){.npc-app :is(.v8-config-tabs,.v8-execution-tabs) button{transition:none}}
