.mar-root{--mar-line:#2b3e50;--mar-muted:#9babbc;display:grid;gap:22px;max-width:1800px;margin:0 auto;min-width:0}.mar-root *{box-sizing:border-box}.mar-heading,.mar-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.mar-heading h1{margin:10px 0;font-size:clamp(28px,3vw,42px)}.mar-heading p,.mar-section-heading p{color:var(--mar-muted);margin:8px 0 0;line-height:1.5}.mar-badge{display:inline-flex;align-items:center;white-space:normal;font-size:12px;line-height:1.35;padding:7px 10px;border:1px solid var(--mar-line);border-radius:20px;color:#c4d0dd;background:#14202d}.mar-badge.green{background:#133629;border-color:#357252;color:#a6e4bb}.mar-badge.gold{background:#352f20;border-color:#89703d;color:#efce80}.mar-heading>.mar-badge{margin-top:14px}.mar-root .panel{margin:0;min-width:0;padding:24px}.mar-root label{display:grid;gap:8px;min-width:0;margin:0}.mar-root input,.mar-root select,.mar-root textarea{width:100%;max-width:100%;min-width:0;margin:0}.mar-root input,.mar-root select{min-height:48px}.mar-root input[type=number]{font-variant-numeric:tabular-nums}.mar-filters{display:grid;grid-template-columns:1.25fr minmax(150px,1fr) minmax(150px,1fr) minmax(180px,1.2fr) auto;gap:16px;align-items:end}.mar-presets{display:flex;flex-wrap:wrap;gap:8px;align-self:center}.mar-filter-help{grid-column:1/-1;margin:0;color:var(--mar-muted);font-size:12px}.mar-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.mar-summary article{border:1px solid var(--mar-line);border-radius:16px;background:linear-gradient(135deg,#172535,#101822);padding:20px;display:grid;gap:10px;min-width:0}.mar-summary article>span{font-size:13px;color:#cbd5df}.mar-summary strong{font-size:clamp(24px,2.3vw,34px);line-height:1.2;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.mar-summary small{color:var(--mar-muted)}.mar-complete{border-left:3px solid #72ad83;padding:12px 16px;background:#12281e;border-radius:8px;color:#b4dbc0;font-size:14px}.mar-missing summary,.mar-guide summary,.mar-definitions summary,.mar-copy-preview summary{cursor:pointer;font-weight:650;line-height:1.5;list-style-position:inside;color:#e2c175}.mar-missing summary span{font-weight:400;color:var(--mar-muted);margin-left:12px;font-size:13px}.mar-missing-days{display:flex;flex-wrap:wrap;gap:10px;padding-top:16px;max-height:280px;overflow:auto}.mar-missing-days button{display:grid;text-align:left;gap:6px;background:#15202d;border:1px solid #735b33;border-radius:10px;color:#e8e3d4;padding:11px 15px;min-height:52px;cursor:pointer}.mar-missing-days button span{color:#c7b48e;font-size:12px}.mar-main-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(340px,.9fr);gap:22px;align-items:start}.mar-section-heading h2{margin:7px 0;font-size:23px}.mar-editor{scroll-margin-top:90px}.mar-editor-selectors{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:24px 0 16px}.mar-editor-selectors label{flex:1 1 180px}.mar-editor-selectors .button{min-height:48px}.mar-instructions{font-size:13px;color:#b2c1cf;line-height:1.6;background:#0b1823;padding:13px 15px;border:1px solid var(--mar-line);border-radius:10px}.mar-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px}.mar-editor fieldset{border:0;margin:0;padding:0;min-width:0}.mar-field>span,.mar-notes>span{font-size:14px;font-weight:600;color:#e2e9f0}.mar-field small,.mar-notes small{font-size:12px;line-height:1.5;color:var(--mar-muted);font-weight:400}.mar-notes{grid-column:1/-1}.mar-calculated{display:flex;gap:24px;flex-wrap:wrap;align-items:center;margin-top:22px;padding:18px;background:#132a24;border:1px solid #31574a;border-radius:12px}.mar-calculated>div{display:grid;gap:6px}.mar-calculated small{color:#acc9bc}.mar-calculated strong{font-size:24px;font-variant-numeric:tabular-nums}.mar-calculated p{margin:0;font-size:12px;color:#aac1b6;flex:1 1 130px}.mar-savebar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:12px}.mar-savebar>span{font-size:13px;color:#d2bb7e}.mar-savebar>div{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.mar-savebar .button{min-height:48px}.mar-savebar .text-button{padding:10px 0;text-align:left;font-size:12px}.mar-footnote{font-size:12px;line-height:1.6;color:var(--mar-muted);margin:18px 0 0}.mar-copy-preview{margin-top:18px}.mar-copy-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;background:#0d1821;border:1px solid var(--mar-line);border-radius:10px;padding:16px;font-family:inherit;font-size:13px;line-height:1.7}.mar-coverage{font-size:13px;line-height:1.65;padding:14px;border:1px solid #555037;border-radius:10px;background:#25271d;color:#c8ccaa}.mar-table-wrap{overflow:auto;max-width:100%;border:1px solid var(--mar-line);border-radius:10px;margin-top:20px}.mar-root table{width:100%;border-collapse:collapse;margin:0}.mar-root th,.mar-root td{padding:13px 12px;vertical-align:middle;text-align:left;border-bottom:1px solid #253445;font-size:13px;font-variant-numeric:tabular-nums}.mar-root thead th{background:#162433;color:#b6c6d4;line-height:1.55;font-weight:600}.mar-root tbody th{font-weight:500}.mar-root tbody tr:last-child th,.mar-root tbody tr:last-child td{border-bottom:0}.mar-comparison th:first-child{min-width:145px;max-width:220px}.mar-comparison td{text-align:right;white-space:nowrap}.mar-definitions{border-top:1px solid var(--mar-line);margin-top:20px;padding-top:16px}.mar-definitions p,.mar-guide li{font-size:13px;line-height:1.75;color:#aebece}.mar-history table{min-width:760px}.mar-history th>span,.mar-history th>strong,.mar-history th>small{display:block}.mar-history th>strong{margin:5px 0;font-weight:650}.mar-history th>small{color:var(--mar-muted)}.mar-history td:nth-child(6){white-space:nowrap}.mar-selected{background:#203027}.mar-root button:focus-visible,.mar-root summary:focus-visible{outline:3px solid #dec16a;outline-offset:3px}.mar-root button:disabled{cursor:default;opacity:.5}.mar-root input:disabled,.mar-root textarea:disabled{opacity:1;color:#b9c5d2}.mar-guide ol{padding-left:22px;margin-bottom:0}.mar-empty p{color:var(--mar-muted)}.workspace-report-shortcut{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;margin:0 0 22px;border:1px solid #826a3d;background:linear-gradient(110deg,#302c20,#132433);border-radius:16px}.workspace-report-shortcut strong{display:block;font-size:20px;margin:7px 0}.workspace-report-shortcut p{margin:0;color:#b8c4d0;font-size:14px;line-height:1.5}.workspace-report-shortcut .button{flex-shrink:0}
@media(min-width:1700px){.mar-main-grid{grid-template-columns:minmax(0,1.55fr) minmax(400px,.85fr)}.mar-root .panel{padding:30px}}
@media(max-width:1250px){.mar-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.mar-presets{grid-column:1/-1}.mar-filters>.button{justify-self:start}.mar-main-grid{grid-template-columns:minmax(0,1fr)}.mar-comparison th:first-child{max-width:none}.mar-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.mar-root{gap:16px}.mar-root .panel{padding:18px 14px}.mar-heading{gap:8px}.mar-heading h1{font-size:29px}.mar-heading p{font-size:14px}.mar-heading>.mar-badge{max-width:105px;font-size:11px}.mar-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.mar-filters>label:has(select){grid-column:1/-1}.mar-filters>.button{grid-column:1/-1;width:100%}.mar-presets{gap:6px}.mar-presets .button{padding:10px;flex:1;font-size:12px}.mar-summary{gap:10px}.mar-summary article{padding:15px 12px;border-radius:12px}.mar-summary article>span{font-size:12px}.mar-summary strong{font-size:25px}.mar-summary small{font-size:11px}.mar-field-grid{grid-template-columns:minmax(0,1fr);gap:20px}.mar-notes{grid-column:auto}.mar-section-heading h2{font-size:22px}.mar-editor-selectors{gap:10px}.mar-editor-selectors label{flex-basis:100%}.mar-editor-selectors>.button{flex:1}.mar-calculated{gap:18px;padding:16px 12px}.mar-calculated strong{font-size:22px}.mar-savebar>div{width:100%;display:grid;grid-template-columns:1fr}.mar-savebar .button{width:100%}.mar-missing summary span{display:block;margin:6px 0 0}.mar-missing-days button{flex:1 1 130px}.mar-root th,.mar-root td{font-size:12px;padding:12px 9px}.mar-comparison table{min-width:0}.mar-history .mar-section-heading{flex-wrap:wrap}.workspace-report-shortcut{align-items:stretch;flex-direction:column;padding:18px}.workspace-report-shortcut .button{width:100%}.mar-main-grid{gap:16px}}

.mar-heading-actions{display:flex;align-items:flex-end;flex-direction:column;gap:12px;padding-top:10px}.mar-heading-actions .text-button{font-size:12px;white-space:nowrap}.mar-heading-actions .mar-badge{max-width:190px}
@media(max-width:600px){.mar-heading-actions .mar-badge{max-width:110px}.mar-heading-actions .text-button{font-size:11px;white-space:normal;text-align:right}.mar-heading-actions{min-width:95px;max-width:115px}}

/* Keep the two sources visible even inside the narrow desktop inspector. */
.mar-root .mar-comparison table{table-layout:fixed;width:100%;min-width:0}.mar-root .mar-comparison th,.mar-root .mar-comparison td{white-space:normal;overflow-wrap:anywhere;word-break:normal;text-transform:none;letter-spacing:normal;line-height:1.5;min-width:0;max-width:none}.mar-root .mar-comparison th:first-child{width:42%;min-width:0;max-width:none}.mar-root .mar-comparison th:nth-child(2),.mar-root .mar-comparison th:nth-child(3){width:29%;text-align:right}.mar-root .mar-comparison .mar-table-wrap{overflow:visible}.mar-root .mar-comparison td{font-size:12px;padding-left:8px;padding-right:8px}
.mar-root .mar-date-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;width:100%;margin:0;padding:12px 14px;border:1px solid var(--mar-line);border-radius:10px;background:#0c1721;color:#e0e8ef;font:inherit;font-size:13px;text-align:left;cursor:pointer}.mar-date-trigger span{min-width:0;line-height:1.5}.mar-date-trigger b{color:#d9b866}.mar-calendar{max-width:440px;margin:auto}.mar-calendar h2{margin:8px 0 12px}.mar-calendar>p{color:#9babbc;line-height:1.6}.mar-calendar-nav{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:22px 0 18px}.mar-calendar-nav strong{text-transform:capitalize;text-align:center}.mar-calendar-nav button{min-width:44px;min-height:44px}.mar-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:18px}.mar-calendar-grid>span{text-align:center;color:#98aabd;font-size:12px;padding:8px 0}.mar-calendar-grid button{min-width:0;min-height:42px;border:1px solid #2e4153;border-radius:8px;background:#101e2b;color:#e7eef5;font:inherit;font-size:14px;padding:6px;cursor:pointer}.mar-calendar-grid button.selected{background:#d7b663;color:#14191d;border-color:#efcf86;font-weight:700}.mar-calendar-grid button[aria-current]{box-shadow:inset 0 0 0 1px #d7b663}.mar-calendar-grid button:disabled{opacity:.28;cursor:default}.mar-calendar-grid button:focus-visible{outline:3px solid #efd181;outline-offset:2px}
.mar-field-help{margin-top:2px}.mar-field-help summary{cursor:pointer;color:#d9b866;font-size:12px;font-weight:650}.mar-field-help small{display:block;margin-top:7px;padding:9px 11px;border-left:2px solid #705b32;background:#111c27;border-radius:0 8px 8px 0}.mar-month{overflow:hidden}.mar-month-nav{display:flex;gap:8px}.mar-month-weekdays,.mar-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.mar-month-weekdays{margin-top:20px}.mar-month-weekdays span{text-align:center;color:#8fa0b1;font-size:11px;padding:6px}.mar-month-grid button{display:flex;justify-content:space-between;align-items:center;min-height:48px;border:1px solid #2d4051;border-radius:10px;background:#111d29;color:#e7eef4;padding:9px 11px;cursor:pointer;font:inherit}.mar-month-grid button b{font-size:15px}.mar-month-grid button small{font-size:14px}.mar-month-grid button.saved{background:#153426;border-color:#3c815c;color:#b9e8ca}.mar-month-grid button.pending{background:#381d22;border-color:#8a424b;color:#ffc0c4}.mar-month-grid button.today-open{background:#3a301d;border-color:#9b793a;color:#f3d58b}.mar-month-grid button.selected{box-shadow:0 0 0 2px #e2bf6b}.mar-month-grid button.future,.mar-month-grid button.not-required{opacity:.38}.mar-month-grid button:disabled{cursor:default}.mar-month-grid>span{min-height:48px}
@media(max-width:600px){.mar-month-weekdays,.mar-month-grid{gap:4px}.mar-month-grid button{min-height:42px;padding:6px;justify-content:center;gap:3px}.mar-month-grid button small{font-size:11px}.mar-month-grid>span{min-height:42px}}

.mar-source-choice{margin:20px 0 24px!important;padding:18px!important;border:1px solid #6f5a30!important;border-radius:14px;background:#111d28}.mar-source-choice legend{padding:0 8px;color:#f3dfa8;font-size:17px;font-weight:750}.mar-source-choice>p{margin:0 0 14px;color:#b8c5d1;font-size:13px}.mar-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mar-source-card{position:relative!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-areas:"mark copy" "status status"!important;gap:10px 12px!important;align-items:center;min-height:142px;padding:16px!important;border:2px solid #34495a;border-radius:14px;background:#0c1721;cursor:pointer}.mar-source-card:hover{border-color:#9e8348}.mar-source-card:focus-within{outline:3px solid #efd181;outline-offset:3px}.mar-source-card.selected{border-color:#45c981;background:#123025;box-shadow:0 0 0 1px #45c981 inset}.mar-source-card input{position:absolute;opacity:0;pointer-events:none}.mar-source-mark{grid-area:mark;display:grid;place-items:center;width:42px;height:42px;border:1px solid #6f8496;border-radius:50%;color:#f1cf7a;background:#182737;font-size:20px;font-weight:800}.mar-source-card.selected .mar-source-mark{color:#0d261a;background:#71dda4;border-color:#71dda4}.mar-source-copy{grid-area:copy;display:grid;gap:5px;min-width:0}.mar-source-copy strong{font-size:18px;color:#f1f5f8}.mar-source-copy small{color:#aebdca;font-size:12px;line-height:1.45}.mar-source-status{grid-area:status;display:block;padding:8px 10px;border-radius:8px;background:#182533;color:#aab9c7;font-size:12px;text-align:center}.mar-source-card.selected .mar-source-status{background:#1c5b3c;color:#bdf1d1}.mar-source-legacy{display:block;margin-top:12px;color:#efc977;line-height:1.5}.mar-history-source{display:block;margin-top:7px;color:#cbbd98}.mar-source-choice:disabled .mar-source-card{cursor:default;opacity:.78}
@media(max-width:600px){.mar-source-choice{padding:14px!important}.mar-source-grid{grid-template-columns:1fr}.mar-source-card{min-height:124px}}

.mar-filters-review{grid-template-columns:1.25fr minmax(150px,1fr) minmax(150px,1fr) auto}
.mar-performance{overflow:hidden;scroll-margin-top:84px}
.mar-performance-heading{gap:24px}
.mar-performance-heading>div:first-child{max-width:760px}
.mar-performance-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;max-width:360px}
.mar-performance-legend span{padding:7px 9px;border:1px solid;border-radius:8px;font-size:11px;font-weight:700;white-space:nowrap}
.mar-performance .is-high{--mar-rate-bg:#14382a;--mar-rate-line:#3b8d61;--mar-rate-text:#b9ebca}
.mar-performance .is-mid{--mar-rate-bg:#3a301e;--mar-rate-line:#9e7836;--mar-rate-text:#f1d28c}
.mar-performance .is-low{--mar-rate-bg:#3a2026;--mar-rate-line:#98505b;--mar-rate-text:#ffc1c7}
.mar-performance .is-empty{--mar-rate-bg:#111a25;--mar-rate-line:#334252;--mar-rate-text:#8393a4}
.mar-performance-legend .is-high,.mar-performance-overview .is-high,.mar-performance-matrix .is-high,.mar-performance-daily .is-high{background:var(--mar-rate-bg);border-color:var(--mar-rate-line);color:var(--mar-rate-text)}
.mar-performance-legend .is-mid,.mar-performance-overview .is-mid,.mar-performance-matrix .is-mid,.mar-performance-daily .is-mid{background:var(--mar-rate-bg);border-color:var(--mar-rate-line);color:var(--mar-rate-text)}
.mar-performance-legend .is-low,.mar-performance-overview .is-low,.mar-performance-matrix .is-low,.mar-performance-daily .is-low{background:var(--mar-rate-bg);border-color:var(--mar-rate-line);color:var(--mar-rate-text)}
.mar-performance-legend .is-empty,.mar-performance-overview .is-empty,.mar-performance-matrix .is-empty,.mar-performance-daily .is-empty{background:var(--mar-rate-bg);border-color:var(--mar-rate-line);color:var(--mar-rate-text)}
.mar-agent-picker{margin:22px 0 16px;border:1px solid var(--mar-line);border-radius:14px;background:#0c1721}
.mar-agent-picker>summary{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:10px;padding:16px 18px;cursor:pointer;list-style-position:inside;color:#e4ebf2}
.mar-agent-picker>summary span{font-weight:750}
.mar-agent-picker>summary strong{color:#e3c370}
.mar-agent-picker>summary small{color:var(--mar-muted);font-weight:400}
.mar-agent-picker-actions{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px 14px}
.mar-agent-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;padding:0 18px 18px;max-height:260px;overflow:auto}
.mar-agent-checks label{display:flex;grid-template:none;align-items:center;gap:10px;padding:10px 11px;border:1px solid #2b3e50;border-radius:10px;background:#111d29;cursor:pointer}
.mar-agent-checks label.selected{border-color:#806a39;background:#28271e}
.mar-agent-checks input{width:18px;min-width:18px;height:18px;min-height:0;accent-color:#d9b866}
.mar-agent-checks span{display:grid;gap:3px;min-width:0}
.mar-agent-checks strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#e7edf3}
.mar-agent-checks small{color:var(--mar-muted);font-size:11px}
.mar-performance-overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:16px}
.mar-performance-overview article{display:grid;align-content:center;gap:6px;min-height:82px;padding:13px;border:1px solid var(--mar-line);border-radius:11px;background:#101b27;min-width:0}
.mar-performance-overview span{font-size:11px;color:#aebbc8}
.mar-performance-overview strong{font-size:19px;line-height:1.2;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.mar-performance-overview article.is-high,.mar-performance-overview article.is-mid,.mar-performance-overview article.is-low,.mar-performance-overview article.is-empty{border-color:var(--mar-rate-line)}
.mar-performance-overview article.is-high span,.mar-performance-overview article.is-mid span,.mar-performance-overview article.is-low span,.mar-performance-overview article.is-empty span{color:inherit;opacity:.82}
.mar-performance-tabs{display:flex;gap:6px;width:max-content;max-width:100%;padding:5px;margin:0 0 12px;border:1px solid var(--mar-line);border-radius:12px;background:#0b151f}
.mar-performance-tabs button{min-height:42px;padding:9px 16px;border:0;border-radius:8px;background:transparent;color:#9eafbf;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.mar-performance-tabs button[aria-pressed=true]{background:#d7b663;color:#111820}
.mar-scroll-hint,.mar-view-note{margin:0 0 9px;color:#a9b7c5;font-size:12px;line-height:1.5}
.mar-performance-scroll{max-width:100%;overflow:auto;border:1px solid var(--mar-line);border-radius:12px;background:#0d1721;scrollbar-color:#72613d #111b26;scrollbar-width:thin}
.mar-performance-scroll:focus-visible{outline:3px solid #dec16a;outline-offset:3px}
.mar-root .mar-performance-matrix{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}
.mar-performance-matrix thead th{position:sticky;top:0;z-index:3;min-width:168px;text-align:center;border-right:1px solid #2c4052;background:#172635}
.mar-performance-matrix thead th:first-child{left:0;z-index:5;min-width:190px;text-align:left}
.mar-performance-matrix thead th:last-child{right:0;z-index:5;min-width:195px;border-left:2px solid #9b7d3f;background:#28271f;color:#ecd28f}
.mar-performance-matrix thead small{display:block;margin-top:3px;color:#91a2b3;font-size:10px;font-weight:500}
.mar-performance-matrix tbody>tr>th{position:sticky;left:0;z-index:2;min-width:190px;border-right:1px solid #405265;background:#111e2a;color:#edf2f6}
.mar-performance-matrix tbody>tr>th strong,.mar-performance-matrix tbody>tr>th small{display:block}
.mar-performance-matrix tbody>tr>th small{margin-top:5px;color:#93a5b5;font-size:11px}
.mar-performance-matrix td{min-width:168px;padding:0!important;border-right:1px solid #2b3b4b!important;border-bottom:1px solid #2b3b4b!important;text-align:center!important;background:var(--mar-rate-bg);color:var(--mar-rate-text)}
.mar-performance-matrix td button{display:grid;gap:6px;width:100%;min-height:106px;padding:13px 10px;border:0;background:transparent;color:inherit;font:inherit;text-align:center;cursor:pointer}
.mar-performance-matrix td button:hover{box-shadow:inset 0 0 0 2px var(--mar-rate-line)}
.mar-performance-matrix td strong,.mar-general-cell>strong{font-size:20px;line-height:1.1}
.mar-performance-matrix td span,.mar-general-cell>span{font-size:11px;line-height:1.4}
.mar-performance-matrix td small,.mar-general-cell>small{font-size:11px;color:inherit;opacity:.82}
.mar-performance-matrix td em,.mar-no-report em{font-size:10px;font-style:normal;color:inherit;opacity:.78}
.mar-no-report{display:grid;place-content:center;gap:5px;min-height:106px;color:#7e8e9e}
.mar-no-report small{display:block}
.mar-performance-matrix td.mar-general-cell{position:sticky;right:0;z-index:2;display:table-cell;min-width:195px;padding:13px 11px!important;border-left:2px solid #9b7d3f!important;background:var(--mar-rate-bg)}
.mar-general-cell>*{display:block;margin:5px auto}
.mar-general-cell em{font-size:10px;font-style:normal;color:inherit;opacity:.72}
.mar-root .mar-performance-daily{min-width:880px}
.mar-performance-daily th>strong,.mar-performance-daily th>small{display:block}
.mar-performance-daily th>small{margin-top:4px;color:var(--mar-muted)}
.mar-performance-daily td:nth-child(3),.mar-performance-daily td:nth-child(4),.mar-performance-daily td:nth-child(5){text-align:right;white-space:nowrap}
.mar-performance-daily .mar-rate{border-left:3px solid var(--mar-rate-line);white-space:nowrap}
.mar-performance-empty{display:grid;gap:7px;padding:28px;border:1px dashed #46586a;border-radius:12px;text-align:center;color:#aab8c5}
.mar-performance-empty strong{color:#e6edf3}
.mar-export-bar{display:flex;align-items:center;gap:9px;margin:18px 0;padding:13px 14px;border:1px solid #6b5830;border-radius:12px;background:linear-gradient(105deg,#2b281e,#111d29)}
.mar-export-bar>div{display:grid;gap:3px;margin-right:auto}.mar-export-bar>div strong{color:#f1d58e}.mar-export-bar>div small{color:#b8c4cf}
.mar-campaign-ok{margin:0 0 14px;padding:11px 13px;border:1px solid #386c53;border-radius:10px;background:#143024;color:#bde6ce;font-size:12px}
.mar-campaign-alerts{display:grid;grid-template-columns:minmax(220px,.65fr) minmax(300px,1.35fr);gap:14px;margin:0 0 16px;padding:14px;border:1px solid #a47a33;border-radius:12px;background:#352b1d;color:#f2d99a}
.mar-campaign-alerts>div{display:grid;align-content:start;gap:5px}.mar-campaign-alerts>div span{color:#d4c4a0;font-size:12px;line-height:1.45}.mar-campaign-alerts ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}.mar-campaign-alerts li{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:9px 10px;border:1px solid #675532;border-radius:9px;background:#161d24}.mar-campaign-alerts li span{display:grid;gap:3px}.mar-campaign-alerts li b{color:#f3e5bd}.mar-campaign-alerts li small{color:#b9c2ca}
.mar-campaign-link{display:inline-flex;align-items:center;width:max-content;max-width:180px;color:#e6c66f;text-decoration:none;font-size:11px;font-weight:800;white-space:nowrap}.mar-campaign-link:hover{text-decoration:underline}.mar-no-campaign{color:#8191a0;font-size:11px;white-space:nowrap}
.mar-performance-overview article.is-positive{border-color:#3b8d61;background:#14382a;color:#b9ebca}.mar-performance-overview article.is-negative{border-color:#98505b;background:#3a2026;color:#ffc1c7}.mar-performance-overview article>small{color:inherit;opacity:.72;font-size:10px;line-height:1.35}
.mar-ranking{margin:18px 0 20px}.mar-ranking-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:10px}.mar-ranking-heading h3{margin:4px 0;font-size:20px}.mar-ranking-heading p{margin:0;color:var(--mar-muted);font-size:12px}.mar-ranking-heading>span{padding:7px 10px;border:1px solid #665631;border-radius:8px;color:#dec273;white-space:nowrap}
.mar-ranking-list{display:grid;gap:7px}.mar-ranking-list article{display:grid;grid-template-columns:42px minmax(190px,1.5fr) repeat(6,minmax(92px,.72fr)) minmax(120px,.85fr);align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--mar-rate-line);border-left:5px solid var(--mar-rate-line);border-radius:10px;background:linear-gradient(90deg,var(--mar-rate-bg),#101b26);color:var(--mar-rate-text)}
.mar-rank-place{display:grid;place-items:center;width:34px;height:34px;border:1px solid currentColor;border-radius:50%;font-size:17px;font-weight:900}.mar-ranking-list article:first-child .mar-rank-place{background:#d9b65c;color:#171b20;border-color:#efd580}.mar-rank-agent{display:grid;gap:4px}.mar-rank-agent strong{color:#edf2f6;font-size:14px}.mar-rank-agent small{color:#9fb0bf}.mar-ranking-list article>div:not(.mar-rank-agent){display:grid;gap:4px}.mar-ranking-list article>div>small{font-size:10px;color:inherit;opacity:.72}.mar-ranking-list article>div>strong{font-size:14px;color:inherit}.mar-rank-campaigns{justify-items:start}
.mar-root .mar-performance-daily{min-width:1500px}.mar-performance-daily td:nth-child(4),.mar-performance-daily td:nth-child(5),.mar-performance-daily td:nth-child(6),.mar-performance-daily td:nth-child(7),.mar-performance-daily td:nth-child(8){text-align:right;white-space:nowrap}.mar-performance-daily .mar-origin{display:inline-block;padding:5px 7px;border-radius:7px;background:#1b2a38;color:#c9d4de;font-size:11px}.mar-performance-daily .mar-pending{color:#e4bd66;font-weight:750}.mar-performance-daily .mar-difference{font-weight:800;border-left:3px solid}.mar-performance-daily .mar-difference.is-positive{color:#aee9c5;border-color:#3b8d61;background:#14382a}.mar-performance-daily .mar-difference.is-negative{color:#ffc1c7;border-color:#98505b;background:#3a2026}.mar-performance-daily .mar-difference.is-empty{color:#d9b866;border-color:#806a39;background:#2b271d}.mar-performance-daily .mar-missing-report{background:#2a2118}

@media(max-width:1250px){.mar-filters-review{grid-template-columns:repeat(3,minmax(0,1fr))}.mar-performance-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.mar-ranking-list article{grid-template-columns:38px minmax(180px,1.5fr) repeat(5,minmax(92px,.75fr))}.mar-rank-campaigns{display:none!important}}
@media(max-width:760px){.mar-performance-heading{display:grid}.mar-performance-legend{justify-content:flex-start}.mar-export-bar{display:grid;grid-template-columns:1fr 1fr}.mar-export-bar>div{grid-column:1/-1}.mar-export-bar .button{padding:10px 7px;font-size:12px}.mar-export-bar .button:last-child{grid-column:1/-1}.mar-campaign-alerts{grid-template-columns:1fr}.mar-campaign-alerts li{align-items:flex-start}.mar-performance-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.mar-performance-overview article:last-child{grid-column:1/-1}.mar-ranking-heading{align-items:flex-start}.mar-ranking-list article{grid-template-columns:34px repeat(2,minmax(0,1fr));align-items:start}.mar-rank-agent{grid-column:2/-1;min-width:0}.mar-rank-agent strong,.mar-rank-agent small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mar-ranking-list article>div:not(.mar-rank-agent){display:grid!important}.mar-rank-campaigns{grid-column:2/-1}.mar-agent-picker>summary{grid-template-columns:1fr auto}.mar-agent-picker>summary small{grid-column:1/-1}.mar-agent-checks{grid-template-columns:1fr;max-height:300px}.mar-performance-matrix thead th:first-child,.mar-performance-matrix tbody>tr>th{min-width:145px;max-width:145px}.mar-performance-matrix thead th,.mar-performance-matrix td{min-width:156px}.mar-performance-matrix thead th:last-child,.mar-performance-matrix td.mar-general-cell{min-width:178px}.mar-performance-tabs{width:100%}.mar-performance-tabs button{flex:1;padding:9px 10px}.mar-scroll-hint{color:#d5ba78}}

/* Bound the matrix viewport so its date row follows vertical scrolling. */
.mar-performance-scroll:has(.mar-performance-matrix){max-height:72vh;max-height:72dvh;overflow:auto}

.mar-root .mar-summary{grid-template-columns:repeat(5,minmax(0,1fr))}.mar-root .mar-filters{grid-template-columns:auto minmax(250px,1fr) auto}.mar-range-control{min-width:0}.mar-range-control .mar-date-trigger{width:100%}
#modal:has(.mar-range-dialog){width:min(1040px,calc(100vw - 24px));max-width:1040px}.mar-range-dialog{color:#e8eef4}.mar-range-dialog h2{margin:0 0 6px}.mar-range-dialog>p{color:#a9bac9;font-size:14px}.mar-range-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:22px;margin-top:22px}.mar-range-presets{display:flex;flex-direction:column;gap:4px;border-right:1px solid #344657;padding-right:16px}.mar-range-presets button{font:inherit;font-size:13px;text-align:left;padding:10px;border:0;border-radius:6px;background:transparent;color:#d9e5ed;cursor:pointer}.mar-range-presets button[aria-pressed=true]{background:#193e60;color:#bce3ff}.mar-range-dialog button:disabled{opacity:.3;cursor:default}.mar-range-nav{display:flex;align-items:center;justify-content:space-between;gap:12px}.mar-range-nav button{border:1px solid #3d5263;border-radius:6px;background:#142333;color:#e1edf6;width:38px;height:38px;font-size:26px;cursor:pointer}.mar-range-nav strong{font-size:13px}.mar-range-months{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.mar-range-month h3{text-align:center;font-size:17px;margin:18px 0}.mar-range-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));row-gap:5px}.mar-range-grid>span{text-align:center;font-size:11px;color:#9aacbb;padding:8px 0}.mar-range-grid button{width:100%;height:38px;border:0;border-radius:0;background:transparent;color:#e4edf5;font:inherit;font-size:14px;cursor:pointer}.mar-range-grid button.in-range{background:#bdddf5;color:#16374d}.mar-range-grid button.range-edge{background:#087bbb;color:white;border-radius:6px;font-weight:750}.mar-range-grid button[aria-current=date]{box-shadow:inset 0 -2px #69caff}.mar-range-dialog button:focus-visible{outline:2px solid #80ceff;outline-offset:2px}.mar-range-values{display:flex;gap:14px;margin-top:22px}.mar-range-values>span{flex:1;border:1px solid #395064;border-radius:8px;padding:10px;color:#9eafbd;font-size:12px}.mar-range-values b{display:block;color:#e2edf5;margin-top:6px;font-size:13px}.mar-range-hint{font-size:12px;color:#b1c5d4;min-height:34px;line-height:1.5}.mar-range-main [role=alert]{color:#ffb7bd;font-size:13px}.mar-range-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:18px}.mar-range-dialog footer small{color:#a3b4c3}.mar-range-dialog footer>div{display:flex;gap:10px}
@media(max-width:1100px){.mar-root .mar-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.mar-root .mar-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.mar-root .mar-summary article:last-child{grid-column:1/-1}.mar-root .mar-filters{grid-template-columns:1fr}.mar-range-layout{grid-template-columns:1fr;gap:12px}.mar-range-presets{flex-direction:row;overflow:auto;border:0;padding:0 0 8px;max-width:100%}.mar-range-presets button{white-space:nowrap}.mar-range-months{grid-template-columns:1fr;gap:8px}.mar-range-grid button{height:40px}.mar-range-values{flex-direction:column;gap:6px}.mar-range-dialog footer{align-items:stretch;flex-direction:column}.mar-range-dialog footer>div{justify-content:flex-end}}

/* Two explicit origins, one saved daily report. */
.mar-root [hidden]{display:none!important}
.mar-source-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.mar-source-card[data-source=mixed] .mar-source-mark{font-size:17px;white-space:nowrap}
.mar-origin-fields{min-width:0;margin:20px 0;padding:18px;border:1px solid #56616c;border-radius:14px}
.mar-origin-fields[data-mar-source-fields=wasapi]{border-color:#9c8044}
.mar-origin-fields[data-mar-source-fields=yrupe]{border-color:#3c9974}
.mar-origin-fields legend{padding:0 10px;font-size:22px;font-weight:750}
.mar-origin-fields[data-mar-source-fields=wasapi] legend{color:#e5c574}
.mar-origin-fields[data-mar-source-fields=yrupe] legend{color:#9edbbb}
.mar-source-comparison{margin:24px 0;min-width:0}
.mar-source-comparison>p{font-size:13px;color:var(--mar-muted)}
.mar-source-comparison table{min-width:850px}
.mar-source-comparison .is-high{background:#153c2c;color:#bbebcd}
.mar-source-comparison .is-mid{background:#44371c;color:#f5d586}
.mar-source-comparison .is-low{background:#46242c;color:#ffc7cf}
[data-mar-draft-totals]{margin-top:22px}
[data-mar-draft-totals] table{min-width:480px}
[data-mar-draft-totals] td:last-child{color:#e9ce87;font-weight:750}
@media(max-width:760px){.mar-source-grid{grid-template-columns:1fr}.mar-origin-fields{padding:12px}.mar-origin-fields .mar-field-grid{grid-template-columns:1fr}}
.mar-editor fieldset.mar-origin-fields{margin:22px 0;padding:16px;border:1px solid #536474;border-radius:14px}
.mar-editor fieldset.mar-origin-fields[data-mar-source-fields=wasapi]{border-color:#9c8044}
.mar-editor fieldset.mar-origin-fields[data-mar-source-fields=yrupe]{border-color:#3c9974}
@media(max-width:760px){
 .mar-source-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .mar-source-card{grid-template-columns:1fr!important;grid-template-areas:"copy" "status"!important;gap:8px!important;min-height:90px;padding:9px 5px!important;text-align:center}
 .mar-source-mark,.mar-source-copy small{display:none}
 .mar-source-copy strong{font-size:13px}
 .mar-source-status{font-size:10px;padding:5px 2px}
 .mar-source-choice{padding:10px!important}
 .mar-editor fieldset.mar-origin-fields{padding:12px}
 .mar-root [data-mar-draft-totals] table{min-width:0;table-layout:fixed}
 .mar-root [data-mar-draft-totals] th,.mar-root [data-mar-draft-totals] td{font-size:11px;padding:9px 4px;overflow-wrap:anywhere;white-space:normal;line-height:1.5;text-transform:none;letter-spacing:normal}
 .mar-root [data-mar-draft-totals] th:first-child{width:34%}
}
@media(min-width:360px) and (max-width:760px){
 .mar-origin-fields .mar-field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}
 .mar-origin-fields .mar-field>span{font-size:12px;min-height:34px}
 .mar-origin-fields .mar-field:last-child{grid-column:1/-1}
}

/* Daily result stays next to save/copy, with text as well as semantic color. */
.mar-effectiveness-summary{margin:18px 0;padding:18px;border:1px solid currentColor;border-radius:14px;background:#162633;color:#c8d8e2;scroll-margin:90px}
.mar-effectiveness-summary[data-tone=green],.mar-effectiveness-badge[data-tone=green]{background:#153d2d;color:#b4e6c4}
.mar-effectiveness-summary[data-tone=orange],.mar-effectiveness-badge[data-tone=orange]{background:#442b16;color:#ffd2a0}
.mar-effectiveness-summary[data-tone=red],.mar-effectiveness-badge[data-tone=red]{background:#482129;color:#ffc2c8}
.mar-effectiveness-summary header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.mar-effectiveness-summary header div{min-width:0}.mar-effectiveness-summary header small{display:block;margin-top:5px;overflow-wrap:anywhere}.mar-effectiveness-summary header b{font-size:30px;line-height:1.2;font-variant-numeric:tabular-nums}.mar-effectiveness-summary p,.mar-effectiveness-summary small,.mar-effectiveness-summary dt{color:inherit}.mar-effectiveness-summary p{margin:14px 0}.mar-effectiveness-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}.mar-effectiveness-summary dt{font-size:12px}.mar-effectiveness-summary dd{font-size:16px;font-weight:700;margin:4px 0 0;overflow-wrap:anywhere}.mar-effectiveness-summary>small{display:block;line-height:1.6;font-size:12px}.mar-effectiveness-summary:focus-visible{outline:2px solid #e6c777;outline-offset:4px}.mar-effectiveness-badge{display:inline-block;padding:5px 8px;border-radius:6px;background:#162633;color:#c8d8e2;white-space:nowrap;font-weight:700}
/* Daily budget controls reuse the report matrix and its reading direction. */
.budget-heading,.budget-controls,.budget-actions{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap}
.budget-heading h3{font-size:1.5rem;margin:0}.budget-heading p{margin:.4rem 0 1rem;color:var(--muted,#9aabb8)}
.budget-controls{justify-content:flex-start;margin:1rem 0}.budget-controls select{min-width:240px;max-width:100%}
.budget-check{display:flex!important;gap:.6rem;align-items:center}.budget-check input{width:1.2rem!important;height:1.2rem!important;flex-shrink:0}
.budget-summary{display:flex;flex-wrap:wrap;gap:1.25rem;background:#101d27;border-block:1px solid #3c5260;padding:1rem;margin:1rem 0}
.budget-summary>div{flex:1;min-width:165px}.budget-summary strong,.budget-total strong{display:block;font-size:1.25rem;font-variant-numeric:tabular-nums}
.budget-summary small,.budget-total small{display:block;color:#a7b8c3}.budget-total>div{margin-bottom:1rem}
.budget-explanation{max-width:90ch;line-height:1.55;color:#b7c6cf}.budget-warning{color:#efb963!important}
.budget-matrix td{min-width:220px!important;padding:1rem!important;vertical-align:top!important;background:#101b24!important}
.budget-matrix th:first-child{min-width:210px!important}.budget-matrix th button{margin-top:1rem;white-space:normal}
.budget-matrix th small{display:block}.budget-matrix .budget-cell{display:flex;flex-direction:column;gap:.6rem;align-items:stretch!important;text-align:left!important}
.budget-cell>span{display:flex;justify-content:space-between;gap:1rem;font-size:.82rem;color:#afbfca}.budget-cell b{white-space:nowrap;color:#e2eaf0;font-variant-numeric:tabular-nums}
.budget-cell .budget-cost{color:#74dbb9;font-size:1.35rem;padding:.4rem 0}.budget-cost small{display:block;font-size:.72rem;font-weight:400;color:#afbfca}
.budget-matrix .budget-edit{min-height:36px!important;padding:.35rem!important;margin-top:.25rem;border:1px solid #516776!important;border-radius:6px;color:#edd497!important;background:transparent!important;display:block!important;text-align:center!important}
.budget-meta{margin-top:1.5rem;border-top:1px solid #3c5260;padding:1rem 0}.budget-meta summary{font-weight:600;cursor:pointer}
.budget-meta article{display:flex;gap:1.5rem;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:1rem 0;border-bottom:1px solid #2e414f}.budget-meta article>div:first-child{flex:1;min-width:220px}.budget-meta small{display:block;color:#a7b8c3;line-height:1.6}
.budget-editor{max-width:680px}.budget-editor fieldset{max-height:220px;overflow:auto;margin:1rem 0}.budget-editor label{margin:.6rem 0}.budget-editor [role=alert]{color:#ffaaa8}
.budget-scroll{max-height:72vh!important}.budget-scroll thead th{position:sticky;top:0;z-index:3}.budget-scroll thead th:first-child{z-index:4}
@media(max-width:650px){.budget-heading{align-items:flex-start}.budget-controls>label{width:100%}.budget-controls select{width:100%}.budget-summary{gap:1rem}.budget-summary>div{min-width:130px}.budget-matrix th:first-child{min-width:155px!important;max-width:155px!important}.budget-actions button{flex:1}.budget-meta article{gap:.75rem}}

/* Reconciliation retains the dense, horizontally scrollable daily report grid. */
.reconcile-dashboard {min-width:0;max-width:100%}
.reconcile-dashboard .budget-controls {align-items:end}
.reconcile-dashboard .budget-controls label {min-width:0;max-width:100%;flex:1}
.reconcile-dashboard select {max-width:100%;width:100%}
.reconcile-alerts {margin:1.2rem 0;display:grid;gap:.65rem}
.reconcile-alerts article,.reconcile-unassigned article {display:flex;flex-direction:column;gap:.35rem;padding:.85rem;border:1px solid #8c642e;border-left:4px solid #e3af52;border-radius:10px;background:#2a241b;overflow-wrap:anywhere}
.reconcile-alerts article strong {color:#ffce80}
.reconcile-alerts article small,.reconcile-unassigned article small {color:#bdc6cc}
.reconcile-unassigned {margin:1rem 0}
.reconcile-unassigned article {margin-top:.5rem;background:#172332;border-color:#475c71}
.reconcile-matrix td.reconcile-review {background:#36242a}
.reconcile-matrix td.reconcile-ok {background:#142c25}
.reconcile-matrix td.reconcile-unknown {background:#1b2533}
.reconcile-matrix .budget-cell details {white-space:normal}
.reconcile-matrix .budget-cell details small {display:block;margin:.4rem 0;overflow-wrap:anywhere}
.reconcile-matrix .budget-total span,.reconcile-matrix .budget-total small {display:block;margin:.4rem 0}
.reconcile-readings {margin-top:1rem;color:#b5c2cf;font-size:.85rem}
.reconcile-campaigns article {align-items:start}
.reconcile-campaigns article>div {min-width:0;overflow-wrap:anywhere}
.reconcile-campaigns article>div>b {display:block;margin:.45rem 0;color:#dfbd70}
@media(max-width:700px){.reconcile-dashboard .budget-controls {display:flex;flex-direction:column;align-items:stretch}.reconcile-dashboard .budget-controls button {white-space:normal}.reconcile-campaigns article {flex-direction:column}}
