/* Marketing Phase 2 — production calendar and campaign planning, light/dark themes. */
.mp-view{min-width:0;display:grid;gap:17px;padding-bottom:15px;color:var(--theme-text)}
.mp-view-head,.mp-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-width:0}
.mp-view-head>div{min-width:0}
.mp-view-head h2{font-weight:740;font-size:19px;line-height:1.3;letter-spacing:-.35px;margin:0 0 5px;color:var(--theme-text)}
.mp-view-head p{font-size:12px;line-height:1.65;color:var(--theme-muted);margin:0;max-width:710px}
.mp-view-head>.mp-button{flex-shrink:0}
.mp-overline{font-size:10px;letter-spacing:1px;color:var(--theme-muted);text-transform:uppercase}
.mp-button{border:1px solid var(--theme-border);color:var(--theme-text);background:var(--theme-surface);border-radius:9px;padding:8px 11px;font-size:11px;font-weight:650;line-height:1.4;cursor:pointer;white-space:nowrap}
.mp-button:hover{background:var(--theme-hover)}
.mp-button.mp-primary{background:var(--theme-brand-soft);border-color:var(--theme-brand)}
.mp-button.mp-primary:hover{filter:brightness(.96)}
.mp-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.mp-back{justify-self:start;border:0;background:transparent;padding:4px 0;font-size:11px;font-weight:650;color:var(--theme-brand);cursor:pointer}
.mp-back:hover{text-decoration:underline}
.mp-small,.mp-note,.mp-muted{font-size:11px;line-height:1.7;color:var(--theme-muted);margin:0}
.mp-note{border-left:2px solid var(--theme-brand);background:var(--theme-elevated);padding:10px 13px;border-radius:3px 8px 8px 3px}
.mp-empty{border:1px dashed var(--theme-border);background:var(--theme-surface);border-radius:10px;padding:18px;color:var(--theme-muted);font-size:12px;line-height:1.6}
.mp-empty strong{display:block;color:var(--theme-text);margin-bottom:4px}
.mp-empty p{margin:0 0 12px}
.mp-suggested{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
.mp-tabs{display:flex;gap:5px;flex-wrap:wrap}
.mp-tab{background:transparent;color:var(--theme-muted);border:1px solid var(--theme-border);border-radius:8px;padding:7px 11px;font-size:11px;font-weight:650;cursor:pointer}
.mp-tab:hover{background:var(--theme-hover)}
.mp-tab.active{background:var(--theme-brand-soft);border-color:var(--theme-brand);color:var(--theme-text)}
.mp-cards{display:grid;gap:10px}
.mp-card{border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface);padding:15px;display:grid;gap:11px;min-width:0}
.mp-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;min-width:0}
.mp-card-header>div:first-child{min-width:0}
.mp-card-header strong{font-size:14px;line-height:1.4;font-weight:710;color:var(--theme-text);display:block}
.mp-card-header p{color:var(--theme-muted);font-size:11px;line-height:1.55;margin:5px 0 0}
.mp-card-footer,.mp-placement-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border-top:1px solid var(--theme-border);padding-top:10px}
.mp-card-footer>span{font-size:10px;color:var(--theme-muted)}
.mp-card-footer>div{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.mp-pill{display:inline-flex;align-items:center;border-radius:30px;border:1px solid var(--theme-border);padding:4px 7px;font-weight:640;font-size:9px;line-height:1.3;color:var(--theme-text);background:var(--theme-elevated);white-space:nowrap}
.mp-pill.expedited,.mp-pill.immediate,.mp-pill.blocked{border-color:var(--status-warn-line);background:var(--status-warn-bg);color:var(--status-warn)}
.mp-pill.published,.mp-pill.done{border-color:var(--status-good-line);background:var(--status-good-bg);color:var(--status-good)}
.mp-pill.recurring,.mp-pill.event{background:var(--theme-brand-soft)}
.mp-pill.todo,.mp-pill.planned,.mp-pill.in_progress,.mp-pill.skipped{color:var(--theme-muted)}
.mp-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mp-detail-grid>div{border:1px solid var(--theme-border);background:var(--theme-surface);border-radius:10px;padding:12px 14px;min-width:0}
.mp-detail-grid small{display:block;color:var(--theme-muted);font-size:10px;letter-spacing:.35px;margin-bottom:5px}
.mp-detail-grid p{color:var(--theme-text);font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;margin:0}
.mp-detail-section{display:grid;gap:10px;padding:0;min-width:0}
.mp-detail-section>h3,.mp-detail-head>h3{font-size:13px;color:var(--theme-text);font-weight:710;margin:7px 0 3px}
.mp-detail-section h3 small,.mp-detail-head h3 small{color:var(--theme-muted);font-size:10px;font-weight:500}
.mp-placements,.mp-task-list,.mp-gap-list{display:grid;gap:8px}
.mp-placement{background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:11px;padding:13px 14px;min-width:0;display:grid;gap:8px}
.mp-placement-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.mp-placement-header strong{font-size:12px;color:var(--theme-text);line-height:1.5}
.mp-placement-header small{display:block;color:var(--theme-muted);font-size:10px;line-height:1.55;margin-top:2px}
.mp-placement p{font-size:11px;color:var(--theme-text);white-space:pre-wrap;line-height:1.65;overflow-wrap:anywhere;margin:0}
.mp-placement .mp-muted{color:var(--theme-muted)}
.mp-published{display:inline-block;color:var(--status-good);font-size:10px;max-width:100%;overflow-wrap:anywhere}
.mp-task{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:9px;min-width:0}
.mp-task-icon{color:var(--theme-brand);font-size:15px;text-align:center;width:20px;flex-shrink:0}
.mp-task-body{flex:1;min-width:0}
.mp-task-body strong{display:block;color:var(--theme-text);font-size:11px;font-weight:650;line-height:1.45}
.mp-task-body small{display:block;color:var(--theme-muted);font-size:10px;line-height:1.5;margin-top:3px}
.mp-gap-list{max-height:450px;overflow:auto}
.mp-gap,.mp-compact-gaps>div{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-surface);min-width:0}
.mp-gap>div,.mp-compact-gaps>div>div{flex:1;min-width:0}
.mp-gap strong,.mp-compact-gaps strong{font-size:11px;line-height:1.5;font-weight:660;color:var(--theme-text);display:block}
.mp-gap small,.mp-compact-gaps small{font-size:10px;color:var(--theme-muted);line-height:1.5;display:block;margin-top:2px}
.mp-gap-mark{border-radius:100%;border:1px solid var(--status-warn-line);background:var(--status-warn-bg);color:var(--status-warn);display:flex;align-items:center;justify-content:center;width:19px;height:19px;flex-shrink:0;font-size:11px;font-weight:770}
.mp-gap-mark.critical{background:var(--status-bad-bg);color:var(--status-bad);border-color:var(--status-bad-line)}
.mp-compact-gaps{display:grid;gap:6px}
.mp-calendar .mp-view-head{margin-bottom:2px}
.mp-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.mp-kpis>div{display:grid;gap:5px;background:var(--theme-surface);border:1px solid var(--theme-border);padding:11px 12px;border-radius:9px}
.mp-kpis strong{font-size:20px;color:var(--theme-text);line-height:1.2;font-variant-numeric:tabular-nums}
.mp-kpis small{font-size:10px;color:var(--theme-muted);line-height:1.4}
.mp-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.mp-calendar-month-controls{display:flex;gap:7px;align-items:center;min-width:0}
.mp-calendar-month-controls h3{font-size:15px;line-height:1.4;color:var(--theme-text);margin:0 4px;font-weight:700;min-width:120px;text-align:center}
.mp-month-control{height:32px;width:32px;display:flex;justify-content:center;align-items:center;border:1px solid var(--theme-border);border-radius:7px;background:var(--theme-surface);color:var(--theme-text);font-size:24px;line-height:1;cursor:pointer}
.mp-month-control:hover{background:var(--theme-hover)}
.mp-calendar-view-buttons{display:flex;gap:4px}
.mp-calendar-filter{display:flex;align-items:center;gap:7px}
.mp-calendar-filter label{font-size:10px;color:var(--theme-muted)}
.mp-calendar-filter select{background:var(--theme-surface);border:1px solid var(--theme-border);color:var(--theme-text);border-radius:8px;padding:7px 9px;font-size:11px;max-width:185px}
.mp-cal-scroll{width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain}
.mp-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:var(--theme-border);border:1px solid var(--theme-border);border-radius:11px;overflow:hidden;gap:1px;min-width:0}
.mp-calendar-weekday{background:var(--theme-elevated);padding:8px 4px;text-align:center;font-size:10px;font-weight:650;color:var(--theme-muted)}
.mp-day{background:var(--theme-surface);padding:5px;min-width:0;min-height:106px;display:flex;flex-direction:column;gap:5px}
.mp-day.outside{background:var(--theme-elevated);opacity:.7}
.mp-day.selected{box-shadow:inset 0 0 0 2px var(--theme-brand);z-index:1}
.mp-day.today .mp-date-num{background:var(--theme-brand-soft);font-weight:800;color:var(--theme-text)}
.mp-date-num{border:0;background:transparent;border-radius:6px;text-align:left;padding:4px 5px;color:var(--theme-text);font-size:11px;font-weight:650;min-height:25px;cursor:pointer}
.mp-date-num:hover{background:var(--theme-hover)}
.mp-day-items{display:grid;align-content:start;gap:3px;min-width:0}
.mp-event{width:100%;display:block;text-align:left;cursor:pointer;background:var(--theme-elevated);border:1px solid var(--theme-border);border-radius:5px;color:var(--theme-text);padding:4px 5px;font-size:9px;line-height:1.35;min-width:0}
.mp-event span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:anywhere}
.mp-event:hover{filter:brightness(.93)}
.mp-event-publish{border-left:3px solid var(--status-good)}
.mp-event-plan{border-left:3px solid var(--theme-brand)}
.mp-event-film,.mp-event-event_capture,.mp-event-event,.mp-event-session{border-left:3px solid var(--status-warn)}
.mp-event-edit{border-left:3px solid #8885b3}
.mp-event-approve{border-left:3px solid #728a99}
.mp-event-gaps{border-left:3px solid var(--status-bad)}
.mp-event-save_story,.mp-event-review{border-left:3px solid #8a7b69}
.mp-event-media{border-left:3px solid var(--status-warn)}
.mp-event-creative{border-left:3px solid var(--theme-brand)}
.mp-more{border:0;background:none;padding:1px 2px;text-align:left;color:var(--theme-brand);font-size:9px;font-weight:650;cursor:pointer}
.mp-grid-week .mp-day{min-height:170px}
.mp-grid-day{grid-template-columns:1fr}
.mp-grid-day .mp-day{min-height:130px}
.mp-agenda{display:grid;gap:10px;min-width:0}
.mp-agenda-header{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.mp-agenda-header h3{font-size:13px;color:var(--theme-text);margin:0}
.mp-agenda-header span{color:var(--theme-muted);font-size:10px}
.mp-agenda-list{display:grid;gap:5px}
.mp-agenda-item{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:9px;min-width:0}
.mp-activity-symbol{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:var(--theme-elevated);color:var(--theme-brand);flex-shrink:0;font-size:14px}
.mp-agenda-item>div{min-width:0;flex:1}
.mp-agenda-item strong{font-size:11px;line-height:1.5;color:var(--theme-text);font-weight:650;display:block}
.mp-agenda-item small{font-size:10px;color:var(--theme-muted);line-height:1.55;display:block;margin-top:2px}
.mp-gap-dashboard{display:grid;gap:10px;margin-top:7px}
.mp-gap-dashboard .mp-detail-head{border-top:1px solid var(--theme-border);padding-top:15px}
.mp-sessions-actions{margin:0 0 2px}
.mp-hub .v-tile-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(150px,1fr)}
.mp-hub .v-tile{min-height:150px}
.mp-cover{z-index:31}
.mp-modal{width:min(100%,690px);max-height:91dvh;padding:0;overflow:auto;background:var(--theme-surface);border:1px solid var(--theme-border);color:var(--theme-text)}
.mp-modal form{display:grid}
.mp-modal header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--theme-border);padding:15px 18px;gap:13px}
.mp-modal header h2{font-size:17px;color:var(--theme-text);line-height:1.4;font-weight:740;margin:0}
.mp-modal header button{border:0;background:none;font-size:26px;color:var(--theme-muted);padding:0 5px;cursor:pointer}
.mp-modal-body{padding:17px 18px;display:grid;gap:13px;min-width:0}
.mp-modal footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--theme-border);padding:12px 18px}
.mp-field{display:grid;gap:7px;min-width:0;color:var(--theme-text);font-size:11px;line-height:1.5;font-weight:650}
.mp-field>span{display:block}
.mp-field>strong{color:var(--theme-text);font-weight:650;font-size:12px}
.mp-field>input,.mp-field>select,.mp-field>textarea{width:100%;min-width:0;background:var(--theme-elevated);border:1px solid var(--theme-border);border-radius:8px;padding:9px 10px;font-size:12px;line-height:1.5;color:var(--theme-text);font-weight:400}
.mp-field>textarea{min-height:80px;resize:vertical}
.mp-field>small{font-size:10px;color:var(--theme-muted);font-weight:400}
.mp-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mp-formats{border:1px solid var(--theme-border);border-radius:10px;padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.mp-formats legend{font-size:11px;color:var(--theme-text);font-weight:700;padding:0 5px}
.mp-format-group{display:grid;align-content:start;gap:5px;border:1px solid var(--theme-border);background:var(--theme-elevated);border-radius:8px;padding:10px;min-width:0}
.mp-format-group>strong{font-size:11px;color:var(--theme-text);margin-bottom:2px}
.mp-format-option{display:grid;gap:3px}
.mp-format-main,.mp-story-sub{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.45;color:var(--theme-text);cursor:pointer}
.mp-story-sub{margin-left:19px;color:var(--theme-muted);font-size:10px;display:none}
.mp-format-option:has(.mp-format-main input:checked) .mp-story-sub{display:flex}
.mp-format-main input,.mp-story-sub input{accent-color:var(--theme-brand);flex-shrink:0}
.mp-story-fields{border:1px solid var(--theme-border);background:var(--theme-elevated);border-radius:8px;padding:11px;display:grid;gap:10px}
.mp-story-fields[hidden]{display:none}
.mp-check{display:flex;align-items:center;gap:8px;color:var(--theme-text);font-size:11px;cursor:pointer}
.mp-check input{accent-color:var(--theme-brand)}
.mp-session-tasks{display:grid;gap:9px;padding:12px;border-radius:10px;border:1px solid var(--theme-border)}
.mp-session-tasks legend{font-size:11px;color:var(--theme-text);font-weight:650;padding:0 6px}
.mp-session-tasks label{display:flex;gap:8px;align-items:flex-start;font-size:11px;color:var(--theme-text);line-height:1.5}
.mp-session-tasks small{color:var(--theme-muted)}
.mp-session-tasks input{accent-color:var(--theme-brand)}
.mp-session-tasks p{font-size:11px;color:var(--theme-muted)}
@media(max-width:820px){
 .mp-calendar-toolbar{align-items:flex-start}
 .mp-calendar-month-controls{width:100%}
 .mp-calendar-filter{margin-left:auto}
 .mp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mp-day{min-height:91px;padding:3px}
 .mp-calendar-weekday{font-size:9px;padding:7px 2px}
 .mp-date-num{font-size:10px}
 .mp-event{font-size:8px}
}
@media(max-width:620px){
 .mp-view-head{flex-wrap:wrap}
 .mp-view-head>.mp-button{width:100%}
 .mp-detail-grid{grid-template-columns:1fr}
 .mp-hub .v-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mp-hub .v-tile{min-height:150px}
 .mp-formats{grid-template-columns:1fr}
 .mp-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));min-width:680px}
 .mp-day{min-height:95px}
 .mp-event{padding:3px 2px;font-size:8px;line-height:1.15}
 .mp-calendar-weekday{font-size:8px}
 .mp-date-num{font-size:9px;padding:2px 2px;min-height:19px}
 .mp-day-items{gap:2px}
 .mp-calendar-month-controls h3{font-size:13px}
 .mp-two{grid-template-columns:1fr}
 .mp-placement-actions,.mp-card-footer{align-items:flex-start}
 .mp-task{flex-wrap:wrap}
 .mp-task-body{flex-basis:calc(100% - 45px)}
}
@media(max-width:390px){
 .mp-kpis{gap:5px}
 .mp-kpis>div{padding:9px}
 .mp-calendar .mp-view-head{gap:8px}
 .mp-event{display:block;font-size:8px}
 .mp-day{min-height:95px}
 .mp-hub .v-tile-grid{grid-template-columns:1fr}
}

/* Production workflow: linked actions + persisted completion in dark and light modes */
.mp-workflow-heading{display:grid;gap:8px}
.mp-workflow-heading h3{font-size:13px;font-weight:710;color:var(--theme-text);margin:7px 0 2px}
.mp-workflow-heading h3 small{font-size:10px;font-weight:500;color:var(--theme-muted);margin-left:4px}
.mp-workflow-meter{height:6px;border-radius:999px;background:var(--theme-elevated);border:1px solid var(--theme-border);overflow:hidden}
.mp-workflow-meter>span{display:block;height:100%;background:var(--status-good);transition:width .22s ease}
.mp-task{padding:7px 9px 7px 5px;gap:8px}
.mp-task-open{display:flex;align-items:center;gap:10px;min-width:0;flex:1;min-height:45px;padding:5px 7px;
 border:1px solid transparent;border-radius:8px;background:transparent;color:var(--theme-text);font:inherit;
 text-align:left;cursor:pointer}
.mp-task-open:hover{background:var(--theme-hover)}
.mp-task-open:focus-visible,.mp-task-primary:focus-visible,.mp-task-finish:focus-visible{outline:2px solid var(--theme-brand);outline-offset:2px}
.mp-task-body{display:block;flex:1;min-width:0}
.mp-task-body strong{overflow-wrap:anywhere}
.mp-task-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.mp-task-actions .mp-button{padding:7px 10px;min-height:34px}
.mp-task-primary{border-color:var(--theme-brand);background:var(--theme-brand-soft);color:var(--theme-text)}
.mp-task-finish{font-size:10px}
.mp-task-details{font-size:10px;color:var(--theme-muted)}
.mp-task-state{font-size:10px;color:var(--theme-muted);padding:5px 6px;white-space:nowrap}
.mp-task-state-done{font-weight:750;color:var(--status-good)}
.mp-task-done{border-color:var(--status-good-line);background:var(--theme-surface)}
.mp-task-done .mp-task-icon{display:grid;place-items:center;width:22px;height:22px;font-size:14px;border-radius:50%;
 background:var(--status-good-bg);border:1px solid var(--status-good-line);color:var(--status-good);font-weight:800}
.mp-task-done .mp-task-body strong{color:var(--theme-text)}
@media(max-width:760px){
 .mp-task{display:flex;flex-wrap:wrap;align-items:flex-start;padding:7px}
 .mp-task-open{flex-basis:100%;width:100%}
 .mp-task-actions{width:100%;justify-content:flex-end;border-top:1px solid var(--theme-border);padding-top:7px}
 .mp-task-state{margin-right:auto}
 .mp-task-actions .mp-button{min-height:38px}
}
@media(max-width:420px){.mp-task-actions{gap:5px}.mp-task-actions .mp-button{padding:7px 8px}}
