.weekly-schedule{display:flex;align-items:center;gap:22px;padding:28px 30px;margin:0 0 28px;border-radius:13px;background:var(--sd-inverse);color:var(--sd-on-inverse)}.weekly-schedule>div:nth-child(2){flex:1}.weekly-schedule h2{font-size:23px;margin:7px 0}.weekly-schedule p{color:var(--sd-inverse-muted);max-width:760px}.weekly-schedule small{display:block;color:var(--sd-muted);margin-top:14px}.weekly-schedule .section-kicker{color:var(--sd-accent)}.weekly-schedule-icon{display:grid;place-items:center;width:54px;height:54px;border:1px solid var(--sd-border);border-radius:14px;color:var(--sd-accent);flex:none}.weekly-list .panel-heading{padding:25px 28px}.weekly-count{padding:4px 10px;border-radius:6px;background:var(--sd-soft);color:var(--sd-text)}.weekly-list table,.weekly-section table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.weekly-list th,.weekly-section th{font-size:11px;color:var(--sd-muted);font-weight:500;padding:15px 20px;background:var(--sd-soft);white-space:nowrap}.weekly-list td,.weekly-section td{padding:20px;border-top:1px solid var(--sd-border);white-space:nowrap}.weekly-list td small,.weekly-section td small{display:block;font-size:11px;color:var(--sd-muted);margin-top:5px;white-space:normal;max-width:350px}.weekly-row-title{padding:0;font-weight:600;color:var(--sd-text);text-align:left}.weekly-row-title:hover{text-decoration:underline}.weekly-sources{display:flex;gap:5px}.weekly-empty{padding:64px 24px;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;color:var(--sd-muted)}.weekly-empty p{max-width:570px;line-height:1.8}.weekly-empty h2{color:var(--sd-text);font-size:20px}.weekly-badge{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;padding:5px 9px;border-radius:6px;font-size:11px;background:var(--sd-soft);color:var(--sd-muted)}.weekly-badge.ready{background:var(--sd-tint);color:var(--sd-text)}.weekly-badge.partial,.weekly-badge.failed{background:var(--sd-tint);color:var(--sd-text)}.weekly-badge.pending{background:var(--sd-tint);color:var(--sd-muted)}.weekly-footnote,.weekly-method{font-size:11px;color:var(--sd-muted);line-height:1.8;margin:20px 0}.weekly-detail-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 20px}.weekly-detail-actions>div{display:flex;align-items:center;gap:10px}.weekly-cover{background:var(--sd-inverse);border-radius:13px;padding:38px;color:var(--sd-on-inverse)}.weekly-cover .section-kicker{color:var(--sd-accent)}.weekly-cover h1{font-size:35px;margin:14px 0}.weekly-cover p{color:var(--sd-inverse-muted)}.weekly-cover h2{font-size:20px;font-weight:500;max-width:950px;line-height:1.6;margin:28px 0}.weekly-cover-meta{display:flex;gap:8px;align-items:center;color:var(--sd-muted);font-size:11px}.weekly-cover-meta span:last-child{margin-left:8px}.weekly-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}.weekly-kpis>div{padding:23px;background:var(--sd-surface);border:1px solid var(--sd-border);border-radius:10px;display:flex;flex-direction:column;align-items:flex-start;gap:11px}.weekly-kpis strong{font-size:27px;letter-spacing:-.7px}.weekly-kpis span,.weekly-kpis small{font-size:12px;color:var(--sd-muted)}.weekly-section{margin:24px 0;padding:28px}.weekly-section>p{margin:9px 0 20px;font-size:12px;line-height:1.8}.weekly-section .table-scroll{margin:20px -28px -10px}.weekly-section .section-heading{margin:0 0 18px}.weekly-evolution{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:22px}.weekly-evolution>div{border-bottom:1px solid var(--sd-border);padding:0 0 16px;display:flex;flex-direction:column;gap:7px}.weekly-evolution span,.weekly-evolution small{font-size:12px;color:var(--sd-muted)}.weekly-evolution b{font-size:17px}.weekly-creative-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}.weekly-creative{border-radius:12px;border:1px solid var(--sd-border);background:var(--sd-surface);overflow:hidden}.weekly-creative-media{position:relative;height:240px;background:var(--sd-soft);display:flex;align-items:center;justify-content:center}.weekly-creative-media img{width:100%;height:100%;object-fit:contain}.weekly-rank{position:absolute;top:12px;left:12px;background:#20392deb;color:var(--sd-on-inverse);padding:4px 10px;border-radius:6px;font-size:11px}.weekly-no-image{display:grid;place-items:center;gap:15px;font-size:12px;color:var(--sd-muted)}.weekly-creative-body{padding:19px}.weekly-creative-body h3{line-height:1.5;overflow-wrap:anywhere}.weekly-creative-body>p{font-size:12px;margin:6px 0;overflow-wrap:anywhere}.weekly-creative-body>small{font-size:10px;color:var(--sd-muted);overflow-wrap:anywhere}.weekly-creative-body dl{font-size:12px;margin:20px 0}.weekly-creative-body dl>div{display:flex;justify-content:space-between;margin:7px 0}.weekly-creative-body dt{color:var(--sd-muted)}.weekly-creative-body dd{margin:0;font-weight:600}.weekly-creative-body .weekly-creative-reading{font-size:11px;line-height:1.8;padding-top:12px;border-top:1px solid var(--sd-border);margin:16px 0}.weekly-creative .btn{width:100%;margin-top:7px}.weekly-patterns{display:grid;gap:22px;margin-top:25px}.weekly-patterns p{margin-top:8px;font-size:13px;line-height:1.9}.weekly-recommendations{padding-left:24px;margin:24px 0 0}.weekly-recommendations li{padding:0 0 18px 10px;font-size:14px;line-height:1.9}.weekly-recommendations li::marker{color:var(--sd-muted);font-weight:600}.weekly-image-fallback{display:none;color:var(--sd-muted);font-size:13px}.weekly-image-error img{display:none}.weekly-image-error .weekly-image-fallback{display:block}.weekly-enable{display:flex!important;gap:10px;align-items:center;font-size:13px!important}.weekly-enable input{width:auto!important}@media(max-width:1050px){.weekly-creative-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.weekly-schedule{flex-wrap:wrap}.weekly-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.weekly-cover{padding:25px}.weekly-cover h1{font-size:27px}.weekly-section{padding:20px}.weekly-section .table-scroll{margin:18px -20px 0}.weekly-detail-actions{flex-wrap:wrap}.weekly-detail-actions>div{flex-wrap:wrap}.weekly-evolution,.weekly-creative-grid{grid-template-columns:1fr}.weekly-schedule{padding:23px}.weekly-kpis strong{font-size:23px}}@media print{.sidebar,.topbar,.page-footer,.page-heading,.weekly-detail-actions,#toast,.weekly-creative .btn{display:none!important}.main-shell{margin:0!important}#main{padding:0!important}.weekly-cover{-webkit-print-color-adjust:exact;print-color-adjust:exact}.weekly-document{font-size:11pt}.weekly-section,.weekly-creative,.weekly-kpis>div{break-inside:avoid}.weekly-creative-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.weekly-creative-media{height:190px}.weekly-cover h1{font-size:24pt}}
/* Report writing workspace */
.weekly-analysis-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.weekly-analysis-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.weekly-analysis-tools small{font-size:11px;color:var(--sd-muted);max-width:270px;line-height:1.6}.weekly-edit-button{font-size:12px;padding:7px 12px;white-space:nowrap}.weekly-cover .weekly-analysis-tools{margin:-12px 0 24px}.weekly-cover .weekly-analysis-tools small{color:var(--sd-inverse-muted)}.weekly-cover .weekly-edit-button{background:#ffffff0d;color:var(--sd-on-inverse);border-color:var(--sd-border)}.weekly-document strong{font-weight:650}.weekly-document p,.weekly-document li,.weekly-cover h2{overflow-wrap:anywhere}
#modal:has(.weekly-editor){width:min(880px,calc(100vw - 30px));max-width:880px;padding:36px 40px}.weekly-editor>h2{font-size:27px;line-height:1.3;margin:12px 25px 12px 0}.weekly-editor>p{max-width:670px}.weekly-editor-fields{border:0;padding:0;margin:0;min-width:0}.weekly-editor-toolbar{display:flex;gap:5px;align-items:center;border-top:1px solid var(--sd-border);border-bottom:1px solid var(--sd-border);margin:23px 0;padding:9px 0;color:var(--sd-muted);font-size:12px}.weekly-editor-toolbar>span{padding:0 13px}.weekly-editor-toolbar button{width:31px;height:30px;border-radius:5px;color:var(--sd-text)}.weekly-editor-toolbar button:hover{background:var(--sd-soft)}.weekly-editor-toolbar small{margin-left:12px}.weekly-editor-block{display:flex;gap:13px;border:1px solid transparent;border-radius:8px;margin:10px 0;padding:9px 10px 9px 0}.weekly-editor-block:focus-within{border-color:var(--sd-border);background:var(--sd-tint)}.weekly-block-rail{display:flex;flex-direction:column;align-items:center;width:32px;flex-shrink:0;gap:2px;color:var(--sd-muted)}.weekly-block-rail>span{font-size:11px;padding:3px 0 6px}.weekly-block-rail button{font-size:16px;width:25px;height:23px;border-radius:4px;color:var(--sd-muted)}.weekly-block-rail button:hover{background:var(--sd-soft)}.weekly-block-rail button:disabled{opacity:.22;cursor:default}.weekly-block-fields{flex:1;min-width:0}.weekly-block-fields input,.weekly-block-fields textarea{display:block;width:100%;border:0!important;box-shadow:none!important;outline:0;background:transparent!important;padding:7px 8px;line-height:1.8;font-family:inherit;color:var(--sd-text);border-radius:4px}.weekly-block-fields input{font-weight:650;font-size:16px}.weekly-block-fields textarea{resize:vertical;font-size:14px;min-height:90px;max-height:650px}.weekly-block-fields textarea:focus{background:var(--sd-surface)!important}.weekly-add-block{margin:7px 0 22px 45px;font-size:13px}.weekly-editor-footer{position:sticky;bottom:-36px;padding:20px 0;margin-top:15px;display:flex;align-items:center;justify-content:flex-end;gap:9px;background:var(--sd-surface);border-top:1px solid var(--sd-border)}.weekly-editor-footer>span{margin-right:auto;font-size:11px;color:var(--sd-muted)}.weekly-conflict{border:1px solid var(--sd-border);border-radius:8px;background:var(--sd-tint);padding:18px;margin:18px 0}.weekly-conflict-text{max-height:240px;overflow:auto;font-size:13px;line-height:1.8;padding:15px 0}.weekly-conflict p{font-size:12px;margin:10px 0}.weekly-editor-fields:disabled{opacity:.7}
@media(max-width:700px){.weekly-analysis-heading{display:block}.weekly-analysis-tools{margin-top:12px}#modal:has(.weekly-editor){padding:25px 17px}.weekly-editor>h2{font-size:23px}.weekly-editor-toolbar small{display:none}.weekly-editor-footer{bottom:-25px;flex-wrap:wrap}.weekly-editor-footer>span{flex-basis:100%}.weekly-block-rail{width:25px}.weekly-editor-block{gap:4px}.weekly-cover .weekly-analysis-tools{margin-top:0}}
@media print{.weekly-edit-button{display:none!important}.weekly-analysis-heading{display:block}.weekly-analysis-tools small{color:var(--sd-muted)}}

/* Explicit contrast on the dark scheduling banner, including pause and activation. */
.weekly-schedule>.btn{color:var(--sd-text);background:var(--sd-accent);border-color:var(--sd-accent);font-weight:600}.weekly-schedule>.btn:hover:not(:disabled){color:var(--sd-text);background:var(--sd-accent);border-color:var(--sd-accent)}.weekly-schedule>.btn:focus-visible{outline:2px solid var(--sd-surface);outline-offset:4px}.weekly-schedule>.btn:disabled{color:var(--sd-text);background:var(--sd-accent);opacity:.7}

/* Creative reports: preserve media proportions, play on demand, explain unavailable assets. */
.weekly-media-slot{width:100%;height:100%;min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:12px;text-align:center;overflow:hidden}.weekly-media-slot img{width:auto!important;height:auto!important;max-width:100%;max-height:260px;object-fit:contain}.weekly-media-slot video{width:100%;height:260px;object-fit:contain;background:var(--sd-inverse);border-radius:8px}.weekly-media-slot iframe{width:100%;height:400px;border:0;background:var(--sd-surface)}.weekly-creative-media:has(iframe){height:420px}.weekly-media-note{font-size:12px;max-width:300px}.weekly-media-loading{position:absolute;bottom:10px;left:10px;right:10px;padding:5px 8px;background:#ffffffed;color:var(--sd-text);border-radius:5px;font-size:11px;text-align:center}.weekly-media-fallback{display:none;font-size:12px;padding:18px}.weekly-media-failed>img,.weekly-media-failed>video{display:none}.weekly-media-failed .weekly-media-fallback{display:grid;gap:16px}.weekly-media-slot .weekly-no-image{display:flex;flex-direction:column;gap:14px;align-items:center}.weekly-media-slot .btn{white-space:normal}.weekly-target{display:block;margin-top:4px;font-size:10px;font-weight:500;padding:3px 5px;border-radius:4px}.weekly-target.good{background:var(--sd-tint);color:var(--sd-text)}.weekly-target.bad{background:var(--sd-tint);color:var(--sd-muted)}.weekly-creative-reading.off_target{background:var(--sd-tint);color:var(--sd-text);padding:12px;border-radius:7px}.weekly-creative-reading.on_target{color:var(--sd-text)}.weekly-creative-reading.learning{color:var(--sd-text)}.weekly-creative-body dd{margin:0;text-align:right}.weekly-creative-media{min-height:260px;height:auto!important}.weekly-creative-media .weekly-rank{z-index:1}@media print{.weekly-media-loading,.weekly-embed-open{display:none}.weekly-media-slot video{height:160px}.weekly-creative-media:has(iframe){height:auto}.weekly-media-slot iframe{display:none}}

/* Compact catalogues; video thumbnails become players only after a click. */
.weekly-creative-grid{align-items:start}.weekly-catalog-header{display:flex;align-items:center;gap:12px;padding:17px 19px;background:var(--sd-soft);color:var(--sd-muted);font-size:12px}.weekly-catalog-header .weekly-rank{position:static;flex-shrink:0}.weekly-video-poster{position:relative;display:grid;place-items:center;width:100%;height:260px;padding:0;border:0;border-radius:8px;overflow:hidden;background:var(--sd-inverse);cursor:pointer}.weekly-video-poster img{display:block;max-width:100%;max-height:260px;object-fit:contain}.weekly-video-poster img[hidden],.weekly-poster-missing[hidden]{display:none}.weekly-play-disc{position:absolute;inset:0;margin:auto;width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:#172b24cf;color:var(--sd-on-inverse);border:2px solid #ffffffde;box-shadow:0 3px 22px #0004;transition:transform .18s,background .18s}.weekly-play-disc svg{fill:currentColor;margin-left:3px}.weekly-video-poster:hover .weekly-play-disc{transform:scale(1.08);background:var(--sd-inverse)}.weekly-video-poster:focus-visible{outline:3px solid var(--sd-focus);outline-offset:3px}.weekly-poster-missing{color:var(--sd-inverse-muted);font-size:12px;align-self:end;margin-bottom:30px}.weekly-media-slot:has(.weekly-video-poster){padding:0}.weekly-media-slot:has(iframe){padding:0}.weekly-media-loading{pointer-events:none}@media(prefers-reduced-motion:reduce){.weekly-play-disc{transition:none}}@media print{.weekly-play-disc{display:none}.weekly-video-poster{background:var(--sd-soft)}}

/* Story-sized previews: one stable portrait frame before and during playback. */
.weekly-creative-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}.weekly-creative-media{aspect-ratio:9/16;min-height:0;height:auto!important;display:block;overflow:hidden}.weekly-creative-media .weekly-media-slot{position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;gap:0}.weekly-media-slot .weekly-video-poster{width:100%;height:100%;border-radius:0}.weekly-media-slot img{width:100%!important;height:100%!important;max-width:100%;max-height:none;object-fit:contain}.weekly-media-slot video,.weekly-media-slot iframe{width:100%;height:100%;max-height:none;border-radius:0;object-fit:contain}.weekly-media-slot .weekly-no-image{padding:20px}.weekly-creative-media .weekly-rank{max-width:calc(100% - 24px)}@media print{.weekly-creative-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.weekly-creative-media{aspect-ratio:9/16;min-height:0}.weekly-video-poster{height:100%}}

/* Default catalogue artwork keeps all creative titles aligned below a Story frame. */
.weekly-catalog-placeholder{background:linear-gradient(150deg,var(--sd-soft),var(--sd-soft))}.weekly-catalog-placeholder .weekly-media-slot{gap:15px;padding:24px;color:var(--sd-text)}.weekly-catalog-art{width:min(160px,80%);height:auto;flex-shrink:0;margin-bottom:8px}.weekly-catalog-placeholder strong{font-size:16px;font-weight:600;line-height:1.4}.weekly-catalog-placeholder .weekly-media-slot>span{font-size:12px;line-height:1.7;color:var(--sd-muted)}.weekly-catalog-placeholder .weekly-rank{background:#20392deb;color:var(--sd-on-inverse)}@media print{.weekly-catalog-placeholder{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

.weekly-date-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.weekly-campaign-list{max-height:260px;overflow:auto;border:1px solid var(--border,var(--sd-border));border-radius:10px;padding:8px}.weekly-campaign-option{display:flex;align-items:flex-start;gap:10px;padding:10px;margin:0;font-weight:400}.weekly-campaign-option[hidden]{display:none}.weekly-campaign-option input{width:auto;flex:0 0 auto;margin-top:5px}.weekly-campaign-option small{display:block;opacity:.7;font-size:12px}.weekly-campaign-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:10px 0}.weekly-campaign-actions span{font-size:12px}.weekly-scope{overflow-wrap:anywhere}.weekly-generator [hidden]{display:none!important}@media(max-width:540px){.weekly-date-fields{grid-template-columns:1fr}}

#modal .weekly-generator select{width:100%;padding:12px;border:1px solid var(--sd-border);border-radius:7px;background:var(--sd-surface);color:var(--sd-text);font:inherit}#modal .weekly-generator .weekly-campaign-option{display:flex;flex-direction:row;align-items:flex-start;gap:10px;margin:0;padding:10px;cursor:pointer}#modal .weekly-generator .weekly-campaign-option[hidden]{display:none}#modal .weekly-campaign-option input{width:17px;height:17px;margin:2px 0 0;accent-color:var(--sd-focus)}#modal .weekly-campaign-option:has(:checked){background:var(--sd-tint);border-radius:6px}#modal .weekly-generator .form-hint{margin:10px 0 18px;font-size:12px;line-height:1.7}#modal:has(.weekly-generator){width:min(680px,95vw);max-width:680px}

.weekly-chart .panel-heading{padding:0;margin-bottom:24px}.weekly-chart .panel-heading p{margin-top:10px;line-height:1.7}.weekly-chart-data{margin-top:16px;font-size:12px;color:var(--sd-muted)}.weekly-chart-data summary{cursor:pointer}.weekly-chart .chart-legend{flex-wrap:wrap}.weekly-chart .chart-wrap svg{display:block;width:100%;height:auto}@media print{.weekly-chart{break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}.weekly-chart .chart-controls,.weekly-chart-data{display:none!important}.weekly-chart .chart-legend{display:flex!important}.weekly-chart .chart-axis{font-size:12px}}
