@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');
:root{--bg:#f6f7f9;--ink:#192936;--muted:#7a8693;--border:#e7ebef;--green:#247c63;--meta:#527ae8;--google:#77c6b3}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,'IBM Plex Sans Thai',sans-serif;font-size:14px}button,select,textarea{font:inherit}button,a,select{touch-action:manipulation}button,a{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #88a9f4;outline-offset:3px}.sidebar{position:fixed;inset:0 auto 0 0;width:236px;background:white;border-right:1px solid var(--border);padding:32px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-size:23px;font-weight:800;letter-spacing:-1px}.brand-icon{width:39px;height:42px;background:var(--green);color:white;text-align:center;border-radius:12px;font-size:32px}.brand small{display:block;font-size:8px;letter-spacing:1.8px;margin-top:6px;color:var(--muted)}.workspace{display:flex;gap:13px;align-items:center;margin:35px 0 30px;padding:13px 10px;border:1px solid var(--border);border-radius:8px;font-weight:600;font-size:12px}.workspace small,.profile small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:4px}.nav-label{font-size:9px;letter-spacing:1.8px;color:var(--muted);padding-left:12px}nav{display:grid;gap:7px}.nav{border:0;background:none;color:#73808d;display:flex;align-items:center;gap:13px;padding:13px;border-radius:7px;text-align:left}.nav span{font-size:19px;width:20px}.nav.active{background:#eaf4ee;color:var(--green);font-weight:600}.nav:hover{background:#f1f5f4}.sidebar-note{margin-top:auto;background:#f6f8f7;padding:15px;border-radius:9px;font-size:11px}.sidebar-note p{color:var(--muted);line-height:1.8;margin-bottom:0}.dot{display:inline-block;width:6px;height:6px;background:#c79e4f;border-radius:50%;margin-right:4px}.profile{display:flex;gap:12px;align-items:center;padding-top:23px;margin-top:20px;border-top:1px solid var(--border);font-size:12px}.avatar{border-radius:50%;background:#e9eeee;padding:11px;font-size:11px}.shell{margin-left:236px}.topbar{height:76px;border-bottom:1px solid var(--border);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px;color:var(--muted);font-size:12px}.topbar strong{font-weight:500;color:var(--ink)}.slash{padding:0 13px;color:#b5bdc5}.demo-badge{font-size:10px;letter-spacing:.4px;background:#fff8e8;border:1px solid #f0e5ca;color:#937b46;padding:6px 10px;border-radius:5px}main{max-width:1560px;margin:auto;padding:36px 38px 20px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.eyebrow{font-size:9px;font-weight:600;letter-spacing:1.8px;color:var(--green);margin:0 0 10px}h1{font-size:29px;letter-spacing:-.7px;margin:0 0 7px;font-weight:600}.page-heading p:not(.eyebrow){color:var(--muted);font-size:12px;margin:0}.primary,.secondary{border:0;border-radius:7px;padding:12px 16px;background:var(--green);color:white;font-size:12px;text-decoration:none;white-space:nowrap}.primary:hover{background:#1b624e}.secondary{display:inline-block;background:#f2f6f5;color:var(--green);border:1px solid #dce8e2}.filters{display:flex;gap:18px;align-items:center;padding:16px 19px;background:white;border:1px solid var(--border);border-radius:10px;margin-bottom:23px}.filters label{font-size:10px;color:var(--muted);flex:1}.filters select{display:block;width:100%;background:white;color:var(--ink);border:0;padding:7px 0 0;font-size:12px;cursor:pointer}.filter-note{margin-left:auto;font-size:10px;color:var(--muted);line-height:1.8;border-left:1px solid var(--border);padding-left:22px}.page{display:none}.active-page{display:block}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.metric{padding:21px;background:white;border:1px solid var(--border);border-radius:10px}.metric-label{color:#798591;font-size:11px}.metric-value{font-size:26px;font-weight:600;letter-spacing:-.8px;margin:13px 0 9px}.metric-caption{color:var(--muted);font-size:10px}.metric-caption span{color:var(--green)}.chart-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);gap:22px;margin-bottom:23px}.panel{border:1px solid var(--border);background:white;border-radius:10px;padding:23px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:25px}h2{font-size:14px;font-weight:600;margin:0 0 6px}.panel-heading p,.connection>p{margin:0;font-size:11px;color:var(--muted)}.legend{display:flex;gap:14px;font-size:10px;color:var(--muted);white-space:nowrap}.legend i{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:5px}.meta-dot{background:var(--meta)}.google-dot{background:var(--google)}#chart{height:210px}#chart svg{width:100%;height:100%;overflow:visible}.chart-foot{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);padding-left:45px;margin-top:9px}.donut{height:160px;width:160px;margin:8px auto 22px;border-radius:50%;display:grid;place-items:center}.donut>div{background:white;width:127px;height:127px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column}.donut small{font-size:9px;color:var(--muted);margin-bottom:8px}.donut strong{font-size:20px}.channel-row{display:flex;justify-content:space-between;font-size:11px;padding:9px 0;border-top:1px solid #f1f3f5}.channel-row span{color:var(--muted)}.campaigns{padding-bottom:10px}.subtle{color:var(--muted);font-size:11px;line-height:1.8}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:10px;font-weight:500;color:var(--muted);padding:12px 10px;background:#f8fafb}td{font-size:11px;padding:18px 10px;border-bottom:1px solid #f0f2f4}td:first-child{font-weight:500}td small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.tag{border-radius:5px;padding:5px 7px;background:#edf2ff;color:#567ce2;font-size:9px}.tag.google{background:#eaf7f2;color:#4f9f87}.data-note{font-size:10px;line-height:1.9;color:var(--muted);margin-top:16px}footer{display:flex;justify-content:space-between;gap:15px;font-size:9px;color:#95a0aa;margin-top:30px;padding:8px 0}footer>span:first-child{letter-spacing:.7px}.connection-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.notice{border:1px solid #e7dcc6;background:#fffaf0;padding:19px;border-radius:9px;margin-bottom:20px;font-size:13px}.notice p{font-size:12px;color:#8c7a57;line-height:1.8;margin-bottom:0}.platform-logo{font-size:40px;font-weight:700;display:inline-block;margin-bottom:24px}.meta-logo{color:#3978dc}.google-logo{color:#4484df}.status{float:right;color:var(--muted);font-size:10px;background:#f3f5f6;padding:7px;border-radius:5px}.connection ul{padding-left:18px;font-size:12px;line-height:2.5;color:#647383;margin:20px 0}.integration-note{margin-top:22px;line-height:2}.integration-note p{font-size:12px}.client-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.client-card h2{margin-top:14px}.client-card p{font-size:12px;color:var(--muted)}.client-card button{margin-top:16px}.report>h2{font-size:25px}.report>p{color:var(--muted)}.report .metrics{margin-top:25px}.report h3{font-size:14px;margin-top:30px}.editor-label{display:block;font-size:14px;margin:30px 0 14px}textarea{width:100%;resize:vertical;border:1px solid var(--border);border-radius:8px;padding:15px;font-size:13px;line-height:1.9;color:var(--ink)}
@media(min-width:1500px){main{padding-top:48px}.metrics{margin-bottom:28px}.metric{padding:26px}.metric-value{font-size:31px}#chart{height:240px}}
@media(max-width:1120px){.sidebar{width:200px;padding:25px 14px}.shell{margin-left:200px}main{padding:28px 22px}.topbar{padding:0 22px}.metrics{gap:10px}.metric{padding:15px}.metric-value{font-size:22px}.chart-layout{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}.panel{padding:18px}.filter-note{display:none}.client-grid{grid-template-columns:1fr}}
@media(max-width:780px){.sidebar{position:static;width:100%;padding:16px 20px;border-right:0}.brand{font-size:20px}.brand-icon{font-size:24px;height:34px;width:34px}.workspace,.nav-label,.sidebar-note,.profile{display:none}nav{display:flex;overflow:auto;margin-top:18px;gap:4px}.nav{white-space:nowrap;font-size:11px;padding:9px}.nav span{display:none}.shell{margin:0}.topbar{height:50px;padding:0 20px;font-size:10px}.demo-badge{font-size:8px}main{padding:25px 18px}.page-heading{align-items:flex-start;flex-direction:column;gap:18px}h1{font-size:25px}.eyebrow{font-size:8px}.metrics{grid-template-columns:1fr 1fr}.chart-layout,.connection-grid{grid-template-columns:1fr}.filters{padding:13px;gap:12px}.filters select{font-size:10px}.panel-heading{gap:10px}.legend{gap:8px}footer{flex-direction:column}.report .metric{padding:10px}.report .metric-value{font-size:21px}}
@media print{@page{size:A4 landscape;margin:12mm}body{background:white;color:#172b35;-webkit-print-color-adjust:exact;print-color-adjust:exact}.sidebar,.topbar,.primary,footer,.filter-note{display:none!important}.shell{margin:0}main{padding:0;max-width:none}.page-heading{margin-bottom:16px}.filters{margin-bottom:16px}.filters select{appearance:none}.page{display:none!important}.page.active-page{display:block!important}.panel,.metric{break-inside:avoid}.chart-layout{grid-template-columns:1.9fr 1fr;gap:14px}.metrics{grid-template-columns:repeat(4,1fr);gap:12px}textarea{border:0;padding:0;resize:none}.data-note{color:#556570}.chart-layout .panel{padding:15px}#chart{height:170px}.campaigns td{padding:10px}.report{border:0}}

[hidden]{display:none!important}
.heading-actions{display:flex;gap:10px;align-items:center}
.present-brand{display:none}
.presentation .shell{margin-left:0}
.presentation main{max-width:1280px}
.presentation .topbar{padding-left:max(38px,calc((100vw - 1204px)/2));padding-right:max(38px,calc((100vw - 1204px)/2))}
.presentation-tabs{display:flex;gap:8px;margin:0 0 27px;border-bottom:1px solid var(--border);padding-bottom:13px}
.presentation-tabs .nav{font-size:12px}
.presentation .present-brand{display:flex;flex:1;flex-direction:column;gap:7px}
.present-brand small{font-size:8px;letter-spacing:1px;color:var(--muted)}
.present-brand strong{font-size:13px;font-weight:600}
#presentation-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:13px}
.team #presentation-note{display:none}
@media(max-width:780px){.presentation .topbar{padding:0 18px}.heading-actions{flex-wrap:wrap}.present-brand strong{font-size:11px}.presentation-tabs{margin-top:0}}
@media print{.presentation-tabs,#present-link{display:none!important}.presentation .topbar{display:flex!important;padding:0;height:40px;border:0}.team .sidebar{display:none!important}}

.platform-switcher{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 23px}
.platform-tab{display:flex;align-items:center;gap:14px;text-align:left;border:1px solid var(--border);border-radius:10px;background:#fff;padding:20px;color:#7a8693;transition:background .15s,border-color .15s}
.platform-tab .platform-mark{font-size:30px;font-weight:700;width:36px;text-align:center}
.platform-tab strong{font-size:16px;font-weight:600;display:block;color:#344657}
.platform-tab small{display:block;margin-top:5px;font-size:10px}
.platform-indicator{width:9px;height:9px;border-radius:50%;margin-left:auto;background:#e0e6ea;flex-shrink:0}
.platform-tab[data-platform=meta][aria-pressed=true]{background:#edf3ff;border-color:#527ae8;color:#527ae8;box-shadow:inset 0 0 0 1px #527ae8}
.platform-tab[data-platform=google][aria-pressed=true]{background:#ebf7f2;border-color:#299e83;color:#299e83;box-shadow:inset 0 0 0 1px #299e83}
.platform-tab[aria-pressed=true] .platform-indicator{background:currentColor}
.platform-tab:hover{border-color:#a2b4c4}
.campaign-share{gap:10px;align-items:flex-start;flex-wrap:wrap;line-height:1.7}
.campaign-share>span{font-size:10px;display:flex;align-items:center;gap:6px}
.campaign-share strong{font-size:10px;margin-left:auto;white-space:nowrap}
.campaign-share i{width:7px;height:7px;border-radius:50%;flex-shrink:0}
@media(max-width:780px){.platform-switcher{gap:10px}.platform-tab{padding:13px;gap:8px}.platform-tab strong{font-size:13px}.platform-tab small{font-size:8px;line-height:1.5}.platform-tab .platform-mark{width:25px;font-size:25px}}
@media print{.platform-switcher{display:none!important}}

body[data-platform=meta] .metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.meta-daily{margin-bottom:23px}
.daily-scroll{max-height:600px}
.daily-table th:not(:first-child),.daily-table td{text-align:right;font-variant-numeric:tabular-nums}
.daily-table tbody th{font-size:11px;font-weight:500;background:white;color:var(--ink);border-bottom:1px solid #f0f2f4}
.daily-table td{padding:13px 10px}
.daily-table .message-count{color:#456bd4;font-weight:600}
.daily-table thead th{position:sticky;top:0;z-index:1}
.daily-table tfoot th,.daily-table tfoot td{background:#edf3ff;color:#294d9f;font-weight:600;border-top:1px solid #d7e3fc;position:sticky;bottom:0}
.report-daily{margin-top:24px}
@media(max-width:580px){body[data-platform=meta] .metrics{grid-template-columns:1fr}.daily-table th,.daily-table td{font-size:10px}.metric-value{font-size:26px}.report .metric-value{font-size:24px}}
@media print{body[data-platform=meta] .metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.daily-scroll{max-height:none;overflow:visible}.meta-daily,.report-daily,.report{break-inside:auto}.daily-table thead{display:table-header-group}.daily-table th,.daily-table td{position:static!important}.daily-table tfoot{display:table-row-group}.daily-table tr{break-inside:avoid}.daily-table td{padding:7px 10px}}

.daily-actions{display:flex;align-items:center;gap:12px}
.column-picker{position:relative;font-size:12px;flex-shrink:0}
.column-picker summary{list-style:none;cursor:pointer;border:1px solid var(--border);border-radius:7px;padding:10px 13px;background:white;color:var(--ink);user-select:none;display:flex;gap:20px;align-items:center}
.column-picker summary::-webkit-details-marker{display:none}
.column-picker summary:focus-visible{outline:3px solid #88a9f4;outline-offset:3px}
.column-picker[open] summary{border-color:#527ae8;background:#f5f8ff}
.column-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:5;width:265px;max-width:calc(100vw - 60px);padding:16px;background:white;border:1px solid var(--border);border-radius:10px;box-shadow:0 14px 40px #23334924}
.column-menu>p{font-size:12px;font-weight:600;margin:0 0 12px;color:var(--ink)}
.column-options{display:grid;gap:3px}
.column-options label{display:flex;align-items:center;gap:10px;padding:8px 5px;cursor:pointer;border-radius:5px;color:var(--ink);font-size:12px}
.column-options label:hover{background:#f4f7fb}
.column-options input{accent-color:#527ae8;width:16px;height:16px;margin:0}
.column-options input:disabled+span{color:var(--muted)}
.column-actions{display:flex;justify-content:space-between;border-top:1px solid var(--border);padding-top:12px;margin-top:12px;gap:8px}
.column-actions button{border:0;background:#edf3ff;color:#456bd4;padding:7px 9px;border-radius:5px;font-size:10px}
.column-menu small{display:block;font-size:9px;color:var(--muted);line-height:1.8;margin-top:10px}
@media(max-width:580px){.meta-daily>.panel-heading,.report-daily>.panel-heading{align-items:flex-start;flex-direction:column}.column-menu{left:0;right:auto}.daily-actions{align-self:flex-end}.daily-actions .column-menu{left:auto;right:0}}
@media print{.column-picker{display:none!important}}

.date-range-form{flex:2;min-width:0}.date-fields{display:flex;align-items:flex-end;gap:12px}.date-fields label{flex:1;min-width:135px}.date-fields input{font:inherit;font-size:12px;color:var(--ink);display:block;width:100%;border:1px solid var(--border);border-radius:6px;background:white;padding:9px;margin-top:6px}.date-separator{color:var(--muted);font-size:11px;padding-bottom:11px}.date-fields .secondary{padding:10px 12px}.date-presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.date-presets button{font:inherit;font-size:10px;background:#f5f7fa;color:#6a7988;border:1px solid transparent;border-radius:5px;padding:5px 9px}.date-presets button[aria-pressed=true]{background:#edf3ff;border-color:#bbcef8;color:#4169d2}.date-presets button:hover{border-color:#bbcef8}#date-error{color:#b94141;font-size:11px;line-height:1.8;margin:10px 0 0}#active-date-range{font-size:10px;color:var(--muted);line-height:1.8;margin:10px 0 0}.filters{flex-wrap:wrap}.filters .present-brand{min-width:150px}.date-fields input[aria-invalid=true]{border-color:#b94141}
@media(max-width:1120px){.filters .filter-note{display:none}.filters .date-range-form{flex-basis:100%}}
@media(max-width:580px){.date-fields{flex-wrap:wrap}.date-fields label{min-width:110px}.date-fields .secondary{width:100%}.date-separator{display:none}}
@media print{.date-fields,.date-presets,#date-error{display:none!important}.date-range-form{flex-basis:auto!important}#active-date-range{font-size:12px;color:var(--ink)}}

body[data-platform=google] .daily-table tfoot th,body[data-platform=google] .daily-table tfoot td{background:#ebf7f2;color:#26745e}.column-menu{max-height:65vh;overflow-y:auto}

.registry-toolbar{display:flex;gap:18px;padding:20px;background:white;border:1px solid var(--border);border-radius:10px}.registry-toolbar label{flex:1;font-size:11px;color:var(--muted)}.registry-toolbar input,.registry-toolbar select{display:block;width:100%;font:inherit;font-size:13px;padding:11px;border:1px solid var(--border);border-radius:6px;margin-top:8px;background:white}.registry-card h2{font-size:16px;line-height:1.5;margin-top:0}.client-grid:has(.registry-card){grid-template-columns:repeat(2,minmax(0,1fr))}.account-record{border:1px solid var(--border);border-radius:8px;margin-top:15px;padding:15px}.account-record>strong{font-size:12px}.account-status{display:block;font-size:10px;color:var(--muted);margin-top:6px}.account-record code{font-size:11px;overflow-wrap:anywhere}.account-record small{color:var(--muted);font-size:10px}.scope-note,.mapping-note{font-size:11px!important;line-height:1.8}.scope-note{color:#9e772e!important}.mapping-note{background:#fff8e9;border-radius:5px;padding:10px;color:#957435!important}.source-links{font-size:10px;margin-top:12px;line-height:1.8}.source-links a{color:#527ae8}.empty-cell{text-align:center!important;color:var(--muted);padding:28px!important}.empty-chart{height:100%;display:grid;place-items:center;color:var(--muted);font-size:12px}#unassigned-registry{margin-top:25px}
@media(max-width:780px){.client-grid:has(.registry-card){grid-template-columns:1fr}.registry-toolbar{flex-direction:column}}

.report-grouping{display:flex;align-items:flex-end;flex-wrap:wrap;gap:18px;padding:20px 24px;background:white;border:1px solid var(--border);border-radius:10px;margin-bottom:22px}.grouping-caption,.grouping-select>span{display:block;font-size:11px;color:var(--muted);margin-bottom:9px}.grouping-tabs{display:flex;padding:4px;border-radius:8px;background:#f2f5f7;gap:4px}.grouping-tabs button{font:inherit;border:0;border-radius:6px;background:transparent;color:#687986;padding:9px 18px;font-size:12px}.grouping-tabs button[aria-pressed=true]{background:#fff;box-shadow:0 1px 5px #23334919;color:#26745e;font-weight:600}.grouping-select{flex:1;min-width:190px}.grouping-select select{font:inherit;font-size:12px;color:var(--ink);width:100%;padding:12px;border:1px solid var(--border);border-radius:7px;background:white}#grouping-note{flex-basis:100%;margin:0;font-size:11px}.service-campaigns{white-space:normal;font-size:11px;color:var(--muted);margin-top:8px}.service-campaigns summary{cursor:pointer}.service-campaigns ul{padding-left:16px;min-width:180px;line-height:1.8}#service-dialog{width:min(880px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid var(--border);border-radius:14px;padding:26px;color:var(--ink);box-shadow:0 20px 70px #1c304933}#service-dialog::backdrop{background:#172b4555}#service-dialog h2{font-size:20px;margin:0}#service-dialog p{font-size:12px;line-height:1.8}.service-assignment{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:20px;padding:13px 0;border-bottom:1px solid var(--border);font-size:12px}.service-assignment>span{overflow-wrap:anywhere}.service-assignment small{display:block;margin-top:4px;font-size:10px;color:var(--muted)}.service-assignment input{width:100%;font:inherit;padding:11px;border:1px solid var(--border);border-radius:6px}.service-dialog-actions{display:flex;justify-content:space-between;gap:12px;position:sticky;bottom:-26px;background:white;padding:18px 0;margin-top:10px}#service-save-error{color:#a26125}.service-dialog-actions .primary{background:#347961;color:white;border:0;border-radius:6px;padding:12px 18px}#report-group-label{font-weight:600;color:#347961;font-size:13px}#report-group-summary{margin:20px 0}#report-group-summary small{display:block;color:var(--muted);margin-top:5px}
@media(max-width:580px){.report-grouping{padding:16px;gap:12px}.grouping-select{flex-basis:100%}.service-assignment{grid-template-columns:1fr;gap:8px}#service-dialog{padding:18px}.service-dialog-actions{bottom:-18px;flex-wrap:wrap}}
@media print{.report-grouping,#service-dialog{display:none!important}.service-campaigns{display:none}#report-group-summary tr{break-inside:avoid}}
.service-assignment{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 140px}.service-assignment select{font:inherit;width:100%;padding:11px;border:1px solid var(--border);border-radius:6px;background:white;color:var(--ink)}
@media(max-width:580px){.service-assignment{grid-template-columns:1fr}}

/* Reporting-first layout: compact controls, persistent scope, readable data. */
:root{--muted:#536372}.metric-label{color:#526170}.metric-caption,.data-note,td small,.subtle{font-size:12px;line-height:1.7}th{font-size:12px;color:#526170}td{font-size:13px}.panel-heading p,.page-heading p:not(.eyebrow){font-size:13px}.metric-value{font-size:28px}.nav{font-size:14px}.topbar{height:58px}.eyebrow{display:none}.page-heading{margin-bottom:18px}main{padding-top:24px}.platform-switcher{margin-bottom:14px;gap:10px}.platform-tab{padding:12px 16px}.platform-tab small{font-size:11px}.filter-panel{border:1px solid var(--border);border-radius:10px;background:white;margin-bottom:16px}.filter-panel>summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;padding:16px 18px;font-weight:600;font-size:14px;list-style:none}.filter-panel>summary::after{content:'⌄'}.filter-panel[open]>summary::after{content:'⌃'}#filter-summary{font-size:12px;font-weight:400;color:var(--muted);margin-left:auto}.filter-panel .filters,.filter-panel .report-grouping{border:0;margin:0;border-radius:0}.filter-panel .report-grouping{border-top:1px solid var(--border)}.report-scope{display:flex;justify-content:space-between;align-items:center;gap:18px;border-left:4px solid var(--green);padding:12px 18px;margin-bottom:18px;background:#edf5f1;border-radius:4px}.report-scope p{margin:3px 0;font-size:13px}.report-scope h2{font-size:21px;margin:6px 0;overflow-wrap:anywhere}#scope-brand{font-weight:600}#scope-updated{color:var(--muted);font-size:12px;text-align:right}.notice{padding:10px 15px;font-size:12px;background:#fffaf0}.metrics{margin-bottom:20px}.campaigns{margin-bottom:20px}.summary-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.summary-controls label,.chart-control{font-size:12px;color:var(--muted)}.summary-controls select,.chart-control select{display:block;border:1px solid var(--border);border-radius:6px;padding:8px;background:white;font:inherit;color:var(--ink);margin-top:5px}.summary-picker{position:relative;font-size:13px}.summary-picker summary{cursor:pointer;padding:10px;border:1px solid var(--border);border-radius:6px}#summary-column-options{position:absolute;right:0;top:100%;z-index:5;background:white;border:1px solid var(--border);border-radius:8px;padding:12px;width:230px;box-shadow:0 8px 25px #23334922}#summary-column-options label{display:flex;align-items:center;gap:9px;padding:8px}.campaigns td:not(:first-child),.campaigns th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}.campaigns td:first-child{white-space:normal;min-width:180px}.chart-layout{grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr)}#donut{display:none}.spend-bar{margin:0 0 16px}.spend-bar>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:12px;line-height:1.5}.spend-bar strong{white-space:nowrap}.bar-track{height:7px;background:#edf0f3;border-radius:4px;margin:7px 0}.bar-track span{display:block;height:100%;background:var(--green);border-radius:4px}body[data-platform=meta] .bar-track span{background:#466bc8}.spend-bar small{font-size:11px;color:var(--muted)}.bulk-toolbar,.bulk-target{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:14px;background:#f6f8fa;border-radius:8px;margin-bottom:12px}.bulk-toolbar label,.bulk-target label{font-size:12px}.bulk-toolbar label:first-child,.bulk-target label:first-child{flex:1}.bulk-toolbar input[type=search],.bulk-target input,.bulk-target select,.note-actions input{display:block;padding:10px;font:inherit;border:1px solid var(--border);border-radius:6px;width:100%;margin-top:6px;background:white}.bulk-assignment{display:flex;align-items:center;gap:14px;padding:14px 5px;border-bottom:1px solid var(--border);font-size:13px;line-height:1.7}.bulk-assignment input{width:18px;height:18px;flex-shrink:0;accent-color:var(--green)}.bulk-assignment small{display:block;font-size:12px;color:var(--muted)}#service-assignments{max-height:40vh;overflow:auto}.note-actions{display:flex;align-items:flex-end;gap:12px;margin-top:14px}.note-actions label{font-size:12px}#note-status{font-size:12px;color:var(--muted)}.presentation #grouping-note,.presentation footer>span:last-child{display:none}.presentation .report-scope{background:white}.date-presets button{min-height:40px;font-size:12px}.grouping-tabs button{min-height:42px;font-size:13px}.filters label{font-size:12px}.filters select{font-size:14px}
@media(max-width:1120px){.chart-layout{grid-template-columns:1fr}.campaigns>.panel-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:580px){.report-scope{align-items:flex-start;flex-direction:column;gap:4px}#scope-updated{text-align:left}.report-scope h2{font-size:19px}.filter-panel>summary{flex-wrap:wrap}#filter-summary{font-size:11px;flex-basis:100%;margin:0}.page-heading{gap:12px}.topbar{height:auto;min-height:48px;flex-wrap:wrap;gap:8px;padding-top:10px;padding-bottom:10px}.platform-tab{padding:10px}.platform-tab small{font-size:10px}.metric-caption{font-size:12px}.note-actions{flex-wrap:wrap}.summary-controls{width:100%}#summary-column-options{right:auto;left:0}.bulk-toolbar,.bulk-target{flex-direction:column;align-items:stretch}.bulk-assignment{font-size:12px}.service-dialog-actions{position:static}.date-presets button{min-height:44px}.chart-control{width:100%}.chart-layout .panel-heading{flex-wrap:wrap}.presentation .page-heading{margin-bottom:14px}}
@media print{.filter-panel,.page-heading,.platform-switcher,.presentation-tabs,#data-status,.summary-controls,.chart-control,.note-actions,#note-status,#report-note,.editor-label{display:none!important}.report-scope{display:flex!important;background:white!important;border-left:3px solid #247c63;padding:8px 12px;margin-bottom:14px;break-inside:avoid}.report-scope h2{font-size:18px}.report-scope p{font-size:11px}#scope-updated{font-size:10px}.topbar{display:none!important}.team #presentation-note{display:block}.table-scroll{overflow:visible}.campaigns td{font-size:10px;white-space:normal}.campaigns th{font-size:10px}.campaigns{break-inside:auto}.campaigns tr{break-inside:avoid}.chart-layout{grid-template-columns:1.4fr 1fr}.service-campaigns{display:block}.service-campaigns ul{display:none}#report-group-summary table{white-space:normal}#report-group-summary td,#report-group-summary th{font-size:10px}.metrics{gap:10px}.metric-value{font-size:23px}.metric-caption{font-size:10px}}
@media print{#note-status{display:block!important;font-size:10px}.service-campaigns summary{list-style:none}.report-scope{width:100%}}
@media print{table{table-layout:fixed;white-space:normal}th,td{overflow-wrap:anywhere}th:first-child,td:first-child{width:23%}.service-campaigns{min-width:0}.service-campaigns summary{font-size:9px}}
@media(max-width:580px){.topbar{display:none}.sidebar{padding:12px 18px}.sidebar nav{margin-top:12px}.page-heading h1{font-size:21px}.page-heading p:not(.eyebrow){display:none}main{padding-top:18px}.filter-panel>summary{display:block;position:relative;padding:12px 32px 12px 14px}.filter-panel>summary::after{position:absolute;right:14px;top:13px}#filter-summary{display:block;margin-top:5px}.platform-tab small{display:none}.platform-tab{min-height:52px}.report-scope{padding:10px 13px;margin-bottom:12px}.report-scope p{font-size:12px}.report-scope h2{font-size:18px}.notice{margin-bottom:12px}.heading-actions .primary,.heading-actions .secondary{padding:10px 12px}.scope-updated{font-size:11px}}

.scope-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px}.scope-actions p{margin:0}#refresh-data:disabled{cursor:wait;opacity:.65}@media(max-width:580px){.scope-actions{align-items:flex-start}}@media print{#refresh-data{display:none!important}}

.chart-layout{grid-template-columns:minmax(0,1fr)}.chart-layout>.panel{min-width:0}#chart{height:auto;position:relative}.chart-scroll{width:100%;overflow-x:auto;overflow-y:hidden}#chart svg{display:block;height:350px;max-width:none;overflow:hidden}.chart-day{cursor:pointer;outline:none}.day-guide{opacity:0}.day-dot{transition:r .15s,stroke-width .15s}.chart-day.highlight .day-guide,.chart-day:focus .day-guide{opacity:.6}.chart-day.highlight .day-dot,.chart-day:focus .day-dot{r:8;stroke-width:3}.chart-day.highlight .day-hit{fill:#527ae80b}.chart-tooltip{position:absolute;top:8px;z-index:4;width:285px;max-width:100%;padding:14px 16px;background:#fff;border:1px solid #dce3e9;border-radius:10px;box-shadow:0 8px 30px #19293625;pointer-events:none;font-size:12px}.chart-tooltip strong{display:block;margin-bottom:10px}.chart-tooltip dl{margin:0}.chart-tooltip dl>div{display:flex;justify-content:space-between;gap:14px;padding:4px 0}.chart-tooltip dt{color:#536372}.chart-tooltip dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}.chart-foot{font-size:12px;padding-left:0;gap:12px;flex-wrap:wrap}@media print{.chart-tooltip{display:none!important}.chart-layout{grid-template-columns:1fr}.chart-scroll{overflow:hidden}#chart svg{width:100%!important;height:auto}}

.compare-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;width:100%;border-top:1px solid var(--border);padding-top:14px}.compare-form label{display:block}.compare-form select,.compare-form input{display:block;padding:9px;border:1px solid var(--border);border-radius:6px;background:white;font:inherit}#compare-custom:not([hidden]){display:flex;gap:12px}#compare-error{color:#a52d2d;width:100%;margin:0}.metric-compare{border-top:1px solid var(--border);margin-top:12px;padding-top:10px;font-size:12px;line-height:1.7}.metric-compare span,.metric-compare strong{display:block}.metric-compare span{color:var(--muted)}#compare-status{font-size:12px}.comparison-legend{color:#aa6b24}.chart-tooltip{width:390px}.chart-tooltip dd{white-space:nowrap}@media(max-width:580px){.chart-tooltip{font-size:10px;padding:10px}.chart-tooltip dl>div{gap:6px}.compare-form,#compare-custom:not([hidden]){flex-direction:column;align-items:stretch}}

/* Numeric hierarchy and semantic comparison colors */
:root{--positive:#167047;--negative:#b2343b;--neutral:#536372}
.metric{display:flex;flex-direction:column;gap:0}.metric-label{font-size:14px;font-weight:500;line-height:1.5;min-height:21px}.metric-value{font-variant-numeric:tabular-nums;line-height:1.3;margin:12px 0 16px;font-size:30px}.metric-compare{margin:0 0 14px;padding-top:12px;min-height:91px;line-height:1.6}.metric-compare .metric-change{font-size:13px;font-weight:600;color:var(--neutral)}.metric-compare .metric-percent{display:inline-block;font-size:12px;font-weight:600;color:var(--neutral);background:#f0f3f5;border-radius:5px;padding:2px 7px;margin:4px 0}.metric-compare.positive .metric-change,.metric-compare.positive .metric-percent{color:var(--positive)}.metric-compare.positive .metric-percent{background:#eaf5ef}.metric-compare.negative .metric-change,.metric-compare.negative .metric-percent{color:var(--negative)}.metric-compare.negative .metric-percent{background:#fbeef0}.metric-compare .metric-baseline{font-size:12px;font-weight:400;color:#536372}.metric-caption{margin-top:auto;font-size:12px;line-height:1.7;min-height:41px}.notice.notice-info{background:#f0f3f5;border-color:#e0e6eb;color:#536372}.legend{font-size:12px;gap:18px}.comparison-legend{font-size:12px;font-weight:500}.chart-tooltip{width:440px;padding:12px;box-shadow:0 6px 22px #19293620}.tooltip-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:auto}.tooltip-table th,.tooltip-table td{padding:7px 5px;border-bottom:1px solid #edf0f3;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.tooltip-table th:first-child{text-align:left;white-space:normal;font-weight:400;color:#536372}.tooltip-table thead th{font-weight:600;padding-bottom:10px}.tooltip-table tbody td{font-weight:600;color:#192936}.tooltip-table small{display:block;font-size:10px;font-weight:400;color:#536372;margin-top:4px}.tooltip-current{color:#466bc8}body[data-platform=google] .tooltip-current{color:#247c63}.tooltip-previous{color:#aa6b24}.tooltip-table tr:last-child>*{border-bottom:0}@media(max-width:580px){.metric-value{font-size:28px}.chart-tooltip{position:static;margin-top:12px;width:100%;max-width:100%}.tooltip-table{font-size:11px}.tooltip-table th,.tooltip-table td{padding:6px 3px}.tooltip-table small{font-size:9px}.metric-caption{min-height:0}}@media print{.metric-change,.metric-percent{-webkit-print-color-adjust:exact;print-color-adjust:exact}.metric-value{font-size:23px}}

.metric-compare .metric-percent.unavailable{color:var(--neutral);background:#f0f3f5;font-weight:400}

/* Keep full numeric values inside their cards at every report width. */
main{container:report-body / inline-size;min-width:0}
.shell,.page,.panel,.metrics,.metric,.report-scope>div{min-width:0}
.metric{container-type:inline-size;overflow-wrap:anywhere}
.metric-value,.report .metric-value{font-size:clamp(18px,10.5cqw,30px);max-width:100%;overflow-wrap:anywhere;letter-spacing:-.5px}
.metric-label,.metric-caption,.metric-compare,.metric-change,.metric-baseline{max-width:100%;overflow-wrap:anywhere}
body[data-platform=google] .metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.table-scroll{max-width:100%;min-width:0}
.spend-bar>div:first-child>span{min-width:0;overflow-wrap:anywhere}
.tooltip-table{table-layout:fixed}
.tooltip-table th,.tooltip-table td{white-space:normal;overflow-wrap:anywhere}
.tooltip-table th:first-child{width:32%}
@container report-body (max-width:1100px){body[data-platform=google] .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container report-body (max-width:740px){body[data-platform=meta] .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container report-body (max-width:520px){body[data-platform] .metrics{grid-template-columns:minmax(0,1fr)}}
@media print{body[data-platform] .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-value,.report .metric-value{font-size:20px}}

/* Gifted One — presentation-focused interface */
@media screen{
:root{--bg:#f3f5f7;--ink:#172b35;--muted:#61717d;--border:#e3e9ed;--green:#176c55;--google:#26816a}
body{background:var(--bg);-webkit-font-smoothing:antialiased}
.sidebar{background:#142e2c;color:#edf5f1;border-right:0;padding:30px 18px;width:220px}
.sidebar .brand{color:#fff;font-size:24px;padding:0 10px}.sidebar .brand-icon{background:#c9e8d9;color:#163e32;border-radius:11px}.sidebar .brand small{color:#a9c3b9;font-size:9px;letter-spacing:1.4px}
.sidebar .workspace{background:#ffffff06;border:1px solid #ffffff15;border-radius:12px;color:#edf5f1;margin:34px 4px 30px;padding:14px}.sidebar .workspace small{color:#aec4bc}
.sidebar .nav-label{color:#93b3a7;font-size:10px;letter-spacing:2px;margin:0 12px 12px}.sidebar nav{gap:6px}.sidebar .nav{color:#c1d1cb;padding:13px 14px;border-radius:9px;font-size:13px;transition:background .15s,color .15s}.sidebar .nav:hover{background:#ffffff0b;color:white}.sidebar .nav.active{background:#d5ecdf;color:#173c30;box-shadow:0 3px 8px #00000012}.sidebar .nav svg{width:19px;height:19px;flex-shrink:0}.sidebar .sidebar-note{background:#ffffff06;border:1px solid #ffffff10;color:#c7d9d1;line-height:1.7;margin:28px 4px 0;margin-top:auto}.sidebar .sidebar-note p{color:#a9c3b9}.sidebar .profile{border-color:#ffffff17;color:#e3eee9;margin:20px 5px 0}.sidebar .profile small{color:#a9c3b9}.sidebar .avatar{background:#ffffff12;color:#d9ece2}
.shell{margin-left:220px}.topbar{height:62px;padding:0 32px;background:#ffffffcf;font-size:12px}.demo-badge{background:#eaf5ee;border-color:#d6eadd;color:#286647;border-radius:20px;font-size:11px;letter-spacing:0}
main{padding:28px 32px;max-width:1540px}.page-heading{margin-bottom:22px;gap:18px}.page-heading h1{font-size:28px;font-weight:600;letter-spacing:-.8px;line-height:1.35}.page-heading p:not(.eyebrow){font-size:13px;line-height:1.7}.heading-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.primary,.secondary{font-size:12px;font-weight:500;border-radius:8px;min-height:40px;padding:10px 14px;transition:background .15s,box-shadow .15s}.primary{background:#176c55;box-shadow:0 3px 8px #176c5517}.secondary{background:#fff;border:1px solid #dbe4e4;color:#36564b}.secondary:hover{background:#edf5f0;border-color:#b5cfc3}button:disabled{box-shadow:none;cursor:default;opacity:.55}
.platform-switcher{display:flex;gap:8px;margin:0 0 16px;padding:5px;background:#e9eef0;border-radius:12px;width:fit-content;max-width:100%}.platform-tab{padding:9px 18px;border:1px solid transparent;background:transparent;border-radius:8px;gap:9px;min-height:44px;box-shadow:none!important}.platform-tab .platform-mark{font-size:22px;width:24px}.platform-tab strong{font-size:13px}.platform-tab small{display:none}.platform-indicator{width:6px;height:6px;margin-left:10px}.platform-tab[data-platform=meta][aria-pressed=true]{background:#fff;border-color:#dce3f0;color:#466bc8}.platform-tab[data-platform=google][aria-pressed=true]{background:#fff;border-color:#d9e7df;color:#176c55}
.filter-panel{border-radius:10px;border-color:#e1e7eb;box-shadow:0 2px 3px #172b3502;margin-bottom:14px}.filter-panel>summary{padding:13px 16px;font-size:13px}.filter-panel[open]>summary{border-bottom:1px solid var(--border)}.filters{flex-wrap:wrap;padding:18px;gap:18px}.filter-note{font-size:11px}.date-fields input,.filters select,.report-grouping select{border:1px solid #dce4e8;border-radius:7px;padding:9px 10px;background:#fff}.date-presets button{border-radius:6px}.report-grouping{padding:16px 18px}.grouping-tabs{border-radius:8px}.grouping-tabs button{font-size:12px}
.report-scope{background:white;border:1px solid var(--border);border-left:3px solid #28785e;border-radius:10px;padding:15px 18px;margin-bottom:12px;gap:20px}.report-scope h2{font-size:19px;letter-spacing:-.3px;margin:4px 0 7px}.report-scope p{font-size:12px;color:#61717d}#scope-brand{font-size:11px;color:#39715e;font-weight:600}.scope-actions{gap:7px;flex-shrink:0}#scope-updated{font-size:11px}#refresh-data{font-size:11px;min-height:32px;padding:7px 10px}.notice.notice-info{background:transparent;border:0;padding:0 3px 5px;font-size:11px;color:#687780;margin-bottom:14px}
.metrics{gap:14px;margin-bottom:22px}.metric{padding:20px 22px;border:1px solid #dfe7e8;border-radius:13px;box-shadow:0 3px 10px #16372e04;position:relative}.metric::before{content:'';display:block;width:24px;height:3px;border-radius:3px;background:#8eb4a4;margin-bottom:14px}.metric:first-child::before{background:#176c55}.metric-label{font-size:13px;line-height:1.5;color:#526773;font-weight:500}.metric-value,.report .metric-value{font-size:clamp(18px,10.5cqw,34px);font-weight:600;letter-spacing:-.8px;margin:9px 0 15px;line-height:1.25;color:#183b34}.metric-caption{font-size:11px;line-height:1.65;min-height:19px;color:#697983}.metric-compare{border-top:1px solid #eaf0ed;padding-top:11px;margin-bottom:12px;min-height:91px}.metric-compare .metric-baseline{font-size:11px}.metric-compare .metric-change{font-size:12px}.metric-compare .metric-percent{border-radius:5px}
.panel{border:1px solid #e1e7eb;border-radius:13px;box-shadow:0 3px 10px #16372e03;padding:22px}.panel-heading{margin-bottom:19px;gap:16px}h2{font-size:15px;letter-spacing:-.2px}.panel-heading p{font-size:12px;line-height:1.7;margin-top:5px}.summary-controls select,.chart-control select{min-height:35px;font-size:12px;padding:7px 10px;margin-top:4px}.summary-picker summary,.column-picker summary{font-size:12px;border-radius:7px;background:#fff;padding:9px 12px}.subtle{font-size:11px}.campaigns{padding-bottom:13px}.campaigns th,.daily-table th{font-size:11px;background:#f2f5f6;color:#526571;padding:13px 12px;font-weight:600}.campaigns td,.daily-table td{font-size:13px;padding:17px 12px;color:#263d47;border-color:#edf1f3}.campaigns td:first-child{font-weight:500}.campaigns td small{font-weight:400}.campaigns tbody tr:hover,.daily-table tbody tr:hover{background:#f6faf8}.service-campaigns summary{font-size:11px;color:#72818a;margin-top:5px}.data-note{font-size:11px;line-height:1.8;color:#71808a}.chart-layout{gap:20px}.chart-foot{font-size:11px;color:#687c85;margin-top:14px}.legend{font-size:11px}.bar-track{height:6px;background:#eef2f3}.bar-track span{background:#367e68}.spend-bar{margin-bottom:20px}.spend-bar>div:first-child{font-size:13px}.spend-bar small{font-size:11px}.channel-panel #channel-breakdown{display:grid;grid-template-columns:1fr 1fr;column-gap:36px}.report h2{font-size:24px}.report h3{font-size:15px;margin-top:28px}.client-card h2{font-size:17px}.account-record{border-color:#e7edef}.registry-toolbar input,.registry-toolbar select{border-radius:8px}.service-dialog{border-radius:16px}footer{font-size:10px;color:#73818a;padding-top:20px}
}
@media screen and (max-width:1120px){.sidebar{width:196px;padding:25px 12px}.sidebar .brand{font-size:21px}.shell{margin-left:196px}main{padding:25px 24px}.topbar{padding:0 24px}.heading-actions{justify-content:flex-end}.page-heading h1{font-size:25px}}
@media screen and (max-width:900px){.sidebar{position:static;width:100%;padding:17px 24px}.sidebar .brand{font-size:23px;padding:0}.sidebar .workspace,.sidebar .nav-label,.sidebar .sidebar-note,.sidebar .profile{display:none}.sidebar nav{display:flex;gap:5px;margin-top:16px;overflow:auto}.sidebar .nav{flex:1;justify-content:center;white-space:nowrap;font-size:12px;padding:10px}.shell{margin-left:0}.page-heading{align-items:flex-start}.channel-panel #channel-breakdown{column-gap:24px}}
@media screen and (max-width:580px){.sidebar{padding:16px 18px}.sidebar .brand-icon{width:33px;height:35px;font-size:27px}.sidebar .brand{font-size:21px}.sidebar .brand small{font-size:8px}.sidebar .nav svg{width:15px;height:15px}.sidebar .nav{font-size:11px;gap:5px;padding:10px 7px}main{padding:22px 16px}.page-heading{flex-direction:column;gap:13px}.page-heading h1{font-size:23px}.heading-actions{justify-content:flex-start;width:100%}.platform-switcher{width:100%}.platform-tab{flex:1;justify-content:center;padding:8px 10px}.report-scope{padding:13px 15px;gap:10px}.scope-actions{flex-direction:row;align-items:center;justify-content:space-between;width:100%}.report-scope h2{font-size:18px}.metric{padding:18px 20px}.metric::before{margin-bottom:12px}.metric-value{font-size:30px}.panel{padding:17px}.channel-panel #channel-breakdown{grid-template-columns:1fr}.filter-panel>summary{padding:12px 15px}.metric-caption{font-size:12px}.summary-controls{gap:10px}.chart-layout .panel-heading{gap:14px}.report h2{font-size:21px}.report-scope p{font-size:11px}}

/* Six distinct data accents; comparison direction colors remain independent. */
:root{--accent-1:#176c55;--accent-2:#365fc2;--accent-3:#7951b0;--accent-4:#9c651b;--accent-5:#087e8b;--accent-6:#b23d69}
.metric:nth-child(6n+1),.spend-bar[data-color="0"]{--card-accent:var(--accent-1);--card-tint:#eaf5ef}
.metric:nth-child(6n+2),.spend-bar[data-color="1"]{--card-accent:var(--accent-2);--card-tint:#eef2fc}
.metric:nth-child(6n+3),.spend-bar[data-color="2"]{--card-accent:var(--accent-3);--card-tint:#f4effa}
.metric:nth-child(6n+4),.spend-bar[data-color="3"]{--card-accent:var(--accent-4);--card-tint:#faf3e8}
.metric:nth-child(6n+5),.spend-bar[data-color="4"]{--card-accent:var(--accent-5);--card-tint:#eaf6f7}
.metric:nth-child(6n+6),.spend-bar[data-color="5"]{--card-accent:var(--accent-6);--card-tint:#fbedf3}
@media screen{.metric{background:linear-gradient(125deg,var(--card-tint) 0%,#fff 68%);border-top:3px solid var(--card-accent)}.metric::before,.metric:first-child::before{background:var(--card-accent);width:26px}.metric-label{color:var(--card-accent)}.metric-value,.report .metric-value{color:#172b35}.spend-bar>div:first-child>span{display:flex;align-items:baseline;gap:8px}.spend-bar>div:first-child>span::before{content:'';width:8px;height:8px;flex-shrink:0;border-radius:3px;background:var(--card-accent)}.spend-bar .bar-track{background:var(--card-tint)}.spend-bar .bar-track span,body[data-platform=meta] .spend-bar .bar-track span{background:var(--card-accent)}}

/* Reference direction: midnight canvas, luminous data, violet/cyan gradients. */
@media screen{
:root{color-scheme:dark;--bg:#101322;--ink:#edf0fa;--muted:#acb3ce;--border:#2b3048;--green:#a577ed;--positive:#67e3a4;--negative:#ff8797;--neutral:#b9c5df;--meta:#b890ff;--google:#43d9e8;--accent-1:#c08aff;--accent-2:#46dce6;--accent-3:#6baaff;--accent-4:#ffc67a;--accent-5:#64e4b2;--accent-6:#fa88d3}
body{background:radial-gradient(ellipse at 0 0,#332947 0,transparent 44%),#101322;color:#edf0fa}.shell{background:#101322;min-height:100vh}.sidebar{background:#191c2f;border-right:1px solid #282b40}.sidebar .brand-icon{background:linear-gradient(135deg,#dc73ee,#9b7cf5);color:#fff}.sidebar .brand small,.sidebar .workspace small,.sidebar .sidebar-note p,.sidebar .profile small{color:#b1b4ce}.sidebar .workspace{border-color:#30334c;background:#202338}.sidebar .nav-label{color:#c597ed}.sidebar .nav{color:#bcc1d7}.sidebar .nav.active{background:linear-gradient(90deg,#603981,#36304e);color:#f5dbff;box-shadow:inset 3px 0 #d27bf2}.sidebar .nav:hover{background:#2c2d46}.sidebar .sidebar-note{background:#202338;border-color:#2c3048;color:#d1d5e6}.sidebar .profile{color:#e4e7f4;border-color:#30334c}.sidebar .avatar{background:#3c3159;color:#e4c5ff}
.topbar{background:#141728;border-color:#24283f;color:#aab2cc}.topbar strong{color:#e9edf8}.slash{color:#707994}.demo-badge{background:#202f35;border-color:#2b4b4c;color:#80e0c7}main{padding-top:30px}.page-heading h1{color:#f2f3ff}.page-heading p:not(.eyebrow){color:#a4aec8}.eyebrow{color:#c499f4}
.primary{background:linear-gradient(110deg,#a747c9,#7458cd);color:#fff;border:1px solid #b178da;box-shadow:0 4px 15px #9d54cf24}.primary:hover{background:linear-gradient(110deg,#b65bd6,#8569dc)}.secondary{background:#20243a;border-color:#393d59;color:#dce1f3}.secondary:hover{background:#30334d;border-color:#84729f}.platform-switcher{background:#1b2034;border:1px solid #2b3048}.platform-tab{color:#9ca7c5}.platform-tab strong{color:#b8c2db}.platform-tab[data-platform=meta][aria-pressed=true]{background:#35264d;border-color:#79519e;color:#d399ff}.platform-tab[data-platform=google][aria-pressed=true]{background:#173847;border-color:#2b7083;color:#58e2ed}.platform-tab[aria-pressed=true] strong{color:#eef5ff}.platform-indicator{background:#47506a}
.filter-panel{background:#191e32;border-color:#2c3149;box-shadow:none}.filter-panel>summary{color:#e4e8f6}.filter-panel[open]>summary{border-color:#30354e}#filter-summary{color:#b2bdd4}.filters,.report-grouping{background:#191e32!important;color:#d7ddef}.filters label,.filter-note,.grouping-caption,.grouping-select{color:#b7c0d9}.filters select,.date-fields input,.report-grouping select,.compare-form select,.compare-form input,.summary-controls select,.chart-control select,.registry-toolbar input,.registry-toolbar select,.bulk-toolbar input,.bulk-target input,.bulk-target select,.note-actions input{background:#13182b;color:#e3e9fa;border:1px solid #3a425e;border-radius:7px}.date-presets button,.grouping-tabs button{background:#242a42;color:#c3cce3;border-color:#39425e}.date-presets button[aria-pressed=true],.grouping-tabs button[aria-pressed=true]{background:#47335f;color:#f4dcff;border-color:#9467ba}.grouping-tabs{background:#171b2d}.filter-note,.compare-form,.report-grouping{border-color:#343b53!important}.data-note,#date-cutoff-note,#active-date-range{color:#a6b1ca}.report-scope{background:linear-gradient(115deg,#242039,#181f33);border:1px solid #36344d;border-left:3px solid #ae7cef;box-shadow:none}.report-scope p,#scope-updated{color:#b2bdd4}.report-scope h2{color:#f0edff}#scope-brand{color:#d0aaf7}.notice.notice-info{color:#aab7cd}.notice:not(.notice-info){background:#392c25;color:#ffdaad;border-color:#654738}
.metric{background:#1b2035;border:1px solid #343651;border-top:2px solid var(--card-accent);box-shadow:0 8px 24px #0509171a;isolation:isolate;overflow:hidden}.metric:nth-child(6n+1){--card-tint:#382645;background:linear-gradient(120deg,#9345bf,#6551bd)}.metric:nth-child(6n+2){--card-tint:#193c53;background:linear-gradient(120deg,#087e91,#3e58a7)}.metric:nth-child(6n+3){--card-tint:#242f50}.metric:nth-child(6n+4){--card-tint:#443429}.metric:nth-child(6n+5){--card-tint:#203c36}.metric:nth-child(6n+6){--card-tint:#422c41}.metric:nth-child(6n+1)::after,.metric:nth-child(6n+2)::after{content:'';position:absolute;right:-30px;bottom:-90px;width:220px;height:220px;border-radius:50%;background:#ffffff07;z-index:-1;pointer-events:none}.metric::before,.metric:first-child::before{background:var(--card-accent)}.metric:nth-child(6n+1)::before,.metric:nth-child(6n+2)::before{background:#ffffff8c}.metric-label{color:var(--card-accent)}.metric:nth-child(6n+1) .metric-label,.metric:nth-child(6n+2) .metric-label{color:#f6edff}.metric-value,.report .metric-value{color:#fff}.metric-caption{color:#bac5df}.metric:nth-child(6n+1) .metric-caption,.metric:nth-child(6n+2) .metric-caption{color:#ebe7ff}.metric-compare{border-color:#ffffff26}.metric-compare .metric-baseline{color:#e0e2f4}.metric-compare .metric-change{color:#dae1f5}.metric-compare.positive .metric-change{color:#90ffc4}.metric-compare.negative .metric-change{color:#ffb3be}.metric-compare .metric-percent{background:#25304b;color:#cddaf5}.metric-compare.positive .metric-percent{background:#153d32;color:#8befb5}.metric-compare.negative .metric-percent{background:#462332;color:#ffacb9}.metric-compare .metric-percent.unavailable{background:#263049;color:#ccd4eb}
.panel{background:#191e32;border-color:#2a3049;box-shadow:0 6px 20px #05081317}h2,h3,.report h2{color:#edf0fb}.panel-heading p,.chart-control,.summary-controls label,.subtle{color:#aab5ce}.summary-picker summary,.column-picker summary{background:#242a43;border:1px solid #3b425e;color:#d8def2}.column-menu,#summary-column-options{background:#252b42;border-color:#454965;color:#edf0fa;box-shadow:0 14px 30px #0005}.column-menu p,.column-menu small{color:#c0c9e0}.column-actions button{background:#343c5c;color:#edf0fa}.campaigns th,.daily-table th,table th{background:#242a43;color:#b5c2df;border-color:#353c57}.campaigns td,.daily-table td,table td{color:#e0e7f6;border-color:#2b334b}.campaigns tbody tr:hover,.daily-table tbody tr:hover{background:#252b43}.service-campaigns summary{color:#a9b6d6}.campaigns td small{color:#bfaae4}.daily-table tfoot th,.daily-table tfoot td{background:#252a44;color:#f0f3ff}.tag{background:#2b3149;color:#c7d3ef}.tag.meta{background:#392b53;color:#d9b4ff}.tag.google{background:#193e48;color:#87e8ec}
.chart-grid-line{stroke:#35405a}.chart-axis-text{fill:#a6b4d1}.chart-primary-line{stroke:#51d9f2}.chart-area{fill:#42cde40b}.chart-value-text{fill:#8bdef2}.chart-compare-line{stroke:#c18af9}.chart-compare-dot{fill:#c18af9}.day-dot{fill:#52dcec;stroke:#182237}.day-guide{stroke:#6de4ee}.chart-day.highlight .day-hit{fill:#5ec6ef0a}.chart-day.highlight .day-dot{stroke:#41657a;stroke-width:5}.meta-dot,.google-dot{background:#51d9f2}.comparison-legend{color:#c18af9}.legend,.chart-foot{color:#adbcd6}.chart-tooltip{background:#242b43;border:1px solid #53607f;box-shadow:0 12px 36px #0006;color:#e7edff}.tooltip-table thead th{background:#2c344e}.tooltip-table th,.tooltip-table td{border-color:#3a425d;background:transparent!important}.tooltip-table th:first-child,.tooltip-table small{color:#b6c2dd}.tooltip-table tbody td{color:#f1f5ff}.tooltip-current,body[data-platform=google] .tooltip-current{color:#71e7f3}.tooltip-previous{color:#d2a6ff}.spend-bar .bar-track{background:#2b314a}.spend-bar small{color:#aab8d1}.spend-bar strong{color:#e6ecff}.channel-row{border-color:#313954}.channel-row span{color:#b2c0dc}.account-record{background:#1e263a;border-color:#343e58;color:#dce6f5}.account-record p{color:#aabbd3}.account-record code{color:#b8dbe9}.client-card h2{color:#e8eafa}.connection,.service-dialog{background:#1b2137;color:#e7ecfa;border-color:#3d4461}.bulk-toolbar,.bulk-target{background:#242b43}.bulk-assignment{border-color:#343c57}.bulk-assignment small{color:#afbdd9}.service-dialog-actions{background:#1b2137}.note-actions label,#note-status{color:#bac6df}textarea{background:#151c30;color:#e9edfb;border:1px solid #45506c}#report-period,#report-group-label{color:#b5c1da}.presentation-tabs{border-color:#2c344e}.presentation-tabs .nav{color:#b9c6df}.presentation-tabs .nav.active{background:#44305d;color:#f0dbff}.presentation .report-scope{background:#1c2237}footer{color:#95a7c8;border-color:#2e354e}input:focus-visible,button:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline-color:#c697ff}input{accent-color:#bd87ee}
}
@media print{:root{color-scheme:light}}

@media screen{body[data-platform=google] .metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container report-body (max-width:740px){body[data-platform=google] .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container report-body (max-width:520px){body[data-platform=google] .metrics{grid-template-columns:minmax(0,1fr)}}

@media screen{body[data-platform=google] .metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container report-body (min-width:1250px){body[data-platform=google] .metrics{grid-template-columns:repeat(5,minmax(0,1fr))}}
@container report-body (max-width:740px){body[data-platform=google] .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container report-body (max-width:520px){body[data-platform=google] .metrics{grid-template-columns:minmax(0,1fr)}}

/* Distinct backgrounds for every KPI, across overview and report views. */
@media screen{
.metric:nth-child(6n+1){background:linear-gradient(125deg,#7435a0,#504095);border-color:#ae7be8}
.metric:nth-child(6n+2){background:linear-gradient(125deg,#08677a,#304b97);border-color:#48cbdf}
.metric:nth-child(6n+3){background:linear-gradient(125deg,#244b92,#353777);border-color:#7caafa}
.metric:nth-child(6n+4){background:linear-gradient(125deg,#80501e,#64402f);border-color:#e1ac68}
.metric:nth-child(6n+5){background:linear-gradient(125deg,#17644f,#234d52);border-color:#60d3a6}
.metric:nth-child(6n+6){background:linear-gradient(125deg,#873b6c,#583766);border-color:#ec92cc}
.metric .metric-label{color:#f4f4ff}.metric .metric-value,.report .metric-value{color:#fff}.metric .metric-caption{color:#e1e7f5}.metric::before,.metric:first-child::before{background:#ffffffa3}
.metric-compare{background:#11182742;border-radius:8px;border-top:0;padding:10px 12px}.metric-compare .metric-baseline{color:#e0e7f3}
}

@media screen{
.registry-toolbar{background:#191e32;border-color:#303951;border-radius:13px;box-shadow:0 6px 20px #05081317}
.registry-toolbar label{color:#bac6df;font-size:12px;min-width:0}
.registry-toolbar input::placeholder{color:#96a4c0;opacity:1}
.registry-toolbar input:focus,.registry-toolbar select:focus{border-color:#b58aef}
}

/* Complete dark surfaces, including sticky table cells and expanded controls. */
@media screen{
:root{--surface:#191e32;--surface-raised:#242b43;--surface-input:#13182b;--surface-hover:#2c3550;--text-primary:#e7edfb;--text-secondary:#b6c3dd}
.daily-table tbody th{background:var(--surface);color:var(--text-primary);border-bottom:1px solid #2b334b;font-size:13px}
.daily-table tbody td{background:var(--surface)}
.daily-table tbody tr:nth-child(even)>*{background:#1d2439}
.daily-table tbody tr:hover>*{background:var(--surface-hover)}
.daily-table thead th{background:#242a43;color:var(--text-secondary)}
.daily-table tfoot th,.daily-table tfoot td{background:#29314b;color:#f0f4ff;border-top:1px solid #46516c}
.column-picker[open] summary{background:#39304f;border-color:#9467ba;color:#eedfff}
.column-options label:hover,#summary-column-options label:hover{background:var(--surface-hover);color:#fff;border-radius:5px}
.bulk-toolbar input[type=search],.service-assignment select{background:var(--surface-input);color:var(--text-primary);border-color:#46516c}
.bulk-toolbar input[type=search]::placeholder{color:#9fadc8;opacity:1}
.service-dialog-actions{background:#1b2137}.service-dialog::backdrop{background:#070b17b8}
.status{background:#2a344b;color:#c5d1e9}
.mapping-note{background:#3b3024;color:#f5ce97!important}.scope-note{color:#f5ce97!important}
.presentation-tabs .nav:hover{background:var(--surface-hover);color:#fff}
.donut>div{background:var(--surface);color:var(--text-primary)}
}
@media screen{
body[data-platform] .daily-table tfoot th,body[data-platform] .daily-table tfoot td{background:#29314b;color:#f0f4ff;border-color:#46516c}
#service-dialog{background:#1b2137;color:#e7ecfa;border:1px solid #3d4461;border-radius:16px}
#service-dialog::backdrop{background:#070b17b8}
}

/* Always-visible compact filter toolbar. */
@media screen{
.filter-panel .filter-heading{display:none}
.filter-panel .filters{display:grid!important;grid-template-columns:minmax(140px,.8fr) minmax(310px,1.9fr) minmax(200px,1.1fr);align-items:start;gap:14px;padding:14px 16px;margin:0;border:0}
.filter-panel .filters>label,.filter-panel .date-range-form,.filter-panel .compare-form{min-width:0;width:100%;margin:0}
.filter-panel .filters label{font-size:11px;font-weight:500}
.filter-panel .filters select,.filter-panel input[type=date]{min-height:36px;font-size:12px;margin-top:5px;padding:8px;width:100%}
.filter-panel .date-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:8px}
.filter-panel .date-separator{display:none}
.filter-panel .secondary{min-height:36px;padding:8px 10px;font-size:11px}
.filter-panel .date-presets{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.filter-panel .date-presets button{min-height:30px;padding:5px 8px;font-size:10px}
.filter-panel #date-cutoff-note{font-size:10px;line-height:1.5;margin:7px 0 0}
.filter-panel #active-date-range,.filter-panel .filter-note{display:none}
.filter-panel .compare-form{border:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
.filter-panel .compare-form>label{min-width:0}
.filter-panel #compare-custom:not([hidden]){grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;grid-row:2}
.filter-panel #compare-error{grid-column:1/-1;font-size:11px}
.filter-panel #compare-error:empty{display:none}
.filter-panel #report-grouping{margin:0;padding:12px 16px;gap:12px;align-items:end;border-top:1px solid #343b53!important;border-radius:0 0 10px 10px}
.filter-panel .grouping-caption,.filter-panel .grouping-select>span{font-size:10px;margin-bottom:5px}
.filter-panel .grouping-tabs{padding:2px;gap:2px}.filter-panel .grouping-tabs button{min-height:32px;padding:6px 12px;font-size:11px}
.filter-panel .grouping-select{min-width:150px;max-width:360px}.filter-panel .grouping-select select{padding:8px;min-height:36px;font-size:12px}
.filter-panel #grouping-note{font-size:10px;line-height:1.5}
.presentation .filter-panel .filters{grid-template-columns:minmax(300px,2fr) minmax(210px,1fr)}
.presentation .filter-panel .present-brand{display:none}
@container report-body (max-width:820px){.filter-panel .filters{grid-template-columns:minmax(130px,1fr) minmax(270px,2fr)}.filter-panel .compare-form{grid-column:1/-1;grid-template-columns:minmax(150px,230px) auto;justify-content:start}.filter-panel #compare-custom:not([hidden]){grid-column:3;grid-row:1}.filter-panel .compare-form:has(#compare-custom:not([hidden])){grid-template-columns:minmax(150px,1fr) auto minmax(220px,1.5fr)}}
@container report-body (max-width:520px){.filter-panel .filters,.presentation .filter-panel .filters{grid-template-columns:minmax(0,1fr);padding:12px;gap:12px}.filter-panel .compare-form,.filter-panel .compare-form:has(#compare-custom:not([hidden])){grid-template-columns:minmax(0,1fr) auto;width:100%;justify-content:stretch}.filter-panel #compare-custom:not([hidden]){grid-column:1/-1;grid-row:2}.filter-panel #report-grouping{padding:12px}.filter-panel .grouping-select{flex:1;min-width:140px}.filter-panel .date-fields{gap:6px}.filter-panel .date-fields .secondary{padding:8px}.filter-panel #grouping-note{margin-top:0}}
}

@media screen{.filter-panel .filters{border-radius:10px 10px 0 0}.report-scope{padding:11px 16px}.report-scope h2{font-size:17px;margin:3px 0 5px}.report-scope p{margin:2px 0}.filter-panel #grouping-note[hidden]{display:none}}

@media screen{#reset-filters{margin-left:auto;background:transparent;color:#c8d0e6;border-color:#4a526d}#reset-filters:hover{background:#303650;color:#fff}}

@media screen {
.settings-panel{max-width:1000px}
.settings-scope{display:flex;flex-wrap:wrap;align-items:end;gap:16px;margin:22px 0}
.settings-scope label{flex:1;min-width:180px;color:#b6c3dd;font-size:12px}
.settings-scope select,.settings-scope input{display:block;width:100%;margin-top:8px;min-height:42px;background:#13182b;color:#e7edfb;border:1px solid #444e6c;border-radius:8px;padding:10px;color-scheme:dark}
.settings-action{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #343b53;padding-top:24px}
.settings-action strong{color:#e7edfb}.settings-action .primary{flex-shrink:0}
#settings-error:empty{display:none}#settings-error{color:#ff9fae}
@media(max-width:900px){.sidebar nav{overflow-x:auto}.sidebar .nav{flex-shrink:0}}
@container report-body (max-width:520px){.settings-action{align-items:stretch;flex-direction:column}.settings-scope{gap:12px}.settings-scope label{min-width:140px}}
}

/* Supplied agency artwork: preserve the complete square image. */
.agency-logo{display:block;object-fit:contain;flex-shrink:0;border-radius:20px}
.sidebar .brand{flex-direction:row;align-items:center;gap:12px;padding:0 10px}
.sidebar .agency-logo{width:39px;height:42px;object-fit:cover;border-radius:11px}
.agency-logo-caption{font-size:9px;font-weight:500;letter-spacing:1.6px;color:#b1b4ce}
.presentation-identity{display:flex;align-items:center;gap:14px;min-width:0}
.presentation-identity .agency-logo{width:48px;height:48px;border-radius:11px}
@media screen and (max-width:900px){.sidebar .brand{flex-direction:row;align-items:center;padding:0}.sidebar .agency-logo{width:39px;height:42px;border-radius:11px}}
@media screen and (max-width:580px){.presentation-identity{gap:9px}.presentation-identity .agency-logo{width:40px;height:40px;border-radius:9px}}

@media screen and (max-width:580px){.sidebar .agency-logo{width:33px;height:35px;border-radius:10px}}

/* Keep the chart metric selector anchored to the right of its heading. */
.chart-layout .panel-heading:has(.chart-control){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px 20px}
.chart-layout .panel-heading:has(.chart-control)>div:first-child{grid-column:1;grid-row:1}
.chart-layout .panel-heading .chart-control{grid-column:2;grid-row:1 / span 2;justify-self:end;margin:0;max-width:100%}
.chart-layout .panel-heading #chart-legend{grid-column:1;grid-row:2;justify-content:flex-start;margin:0;flex-wrap:wrap}
@media(max-width:580px){.chart-layout .panel-heading:has(.chart-control){gap:10px}.chart-layout .panel-heading .chart-control select{max-width:160px;width:100%}}

.chart-layout .panel-heading .chart-controls{grid-column:2;grid-row:1 / span 2;display:flex;gap:12px;justify-self:end;flex-wrap:wrap;justify-content:flex-end}
.chart-controls .chart-control{min-width:140px}
.chart-controls select{width:100%}
.chart-day.highlight .dual-dot{r:7;stroke:#fff;stroke-width:3}
@media(max-width:580px){.chart-layout .panel-heading:has(.chart-controls){grid-template-columns:minmax(0,1fr)}.chart-layout .panel-heading .chart-controls{grid-column:1;grid-row:2}.chart-layout .panel-heading #chart-legend{grid-row:3}.chart-controls .chart-control{min-width:120px}}

@media screen{
.chart-tooltip{background:rgba(19,24,43,.68);border-color:rgba(160,179,221,.3);box-shadow:0 6px 20px #0002;backdrop-filter:none;-webkit-backdrop-filter:none}
.chart-tooltip .tooltip-table th,.chart-tooltip .tooltip-table td{border-color:rgba(170,187,222,.17);text-shadow:0 1px 3px #080d1f}
.chart-tooltip .tooltip-table th:first-child,.chart-tooltip .tooltip-table small{color:#d0daef}
}

.footer-meta{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.app-version{display:inline-block;border:1px solid #424963;border-radius:6px;padding:3px 8px;color:#c8d3ea;font-size:11px;font-weight:500;letter-spacing:.2px;white-space:nowrap}
@media print{.app-version{color:#334155;border-color:#cbd5e1}}

.auth-page{min-height:100vh;display:grid;place-items:center;padding:28px 16px;background:radial-gradient(ellipse at top,#302146,#101322 65%)}
.auth-page .auth-card{width:min(100%,420px);margin:auto;padding:32px;background:#191e32;border:1px solid #3a3b56;border-radius:20px;box-shadow:0 20px 70px #0003}
.auth-card .agency-logo{border-radius:14px}.auth-kicker{font-size:10px;letter-spacing:2px;color:#c9a0ee;margin-top:22px}
.auth-card h1{font-size:26px}.auth-card p,.auth-card small{color:#b6c3dd;line-height:1.7}.auth-card form{display:grid;gap:16px;margin:24px 0 12px}
.auth-card label{font-size:13px;color:#d2d9ed}.auth-card input{display:block;width:100%;padding:12px;margin-top:7px;border:1px solid #4a526e;border-radius:8px;background:#101629;color:#fff;font:inherit}
.auth-card .primary{width:100%;min-height:44px;background:linear-gradient(110deg,#984dbf,#7458ba)}.auth-card #auth-message{margin:0;font-size:12px;color:#efbad3}
.auth-card small{font-size:11px}.auth-card button:disabled{opacity:.6;cursor:wait}

.session-controls{display:flex;align-items:center;gap:12px}.session-controls .secondary{padding:6px 10px;font-size:11px}@media print{.session-controls{display:none}}

@media screen{
.presentation .page-heading{padding:22px 0 24px;border-bottom:1px solid #343b53;margin-bottom:22px}
.presentation .page-heading>div:first-child{min-width:0}
.presentation .page-heading #page-title{font-size:clamp(28px,4vw,44px);font-weight:700;line-height:1.25;letter-spacing:-.8px;color:#f5f2ff;overflow-wrap:anywhere;margin-bottom:12px}
.presentation .page-heading #page-description{font-size:15px;color:#c0b1dc;line-height:1.6}
.presentation #active-brand-name{font-size:16px;font-weight:600;color:#edf0fb}
@media(max-width:580px){.presentation .page-heading{padding-top:10px}.presentation #active-brand-name{font-size:13px}}
}

/* Responsive controls: let each field fit its track before wrapping rows. */
@media screen {
  .date-fields > label, #compare-custom > label,
  .registry-toolbar > label, .settings-scope > label { min-width:0; }
  input[type=date] { min-width:0; max-width:100%; }
  .chart-layout .panel-heading .chart-controls .chart-control { width:auto; }
  .chart-controls { min-width:0; max-width:100%; }
  .panel-heading > div, .summary-controls { min-width:0; }
  .bulk-assignment > span { min-width:0; overflow-wrap:anywhere; }

  @container report-body (max-width:620px) {
    .filter-panel .date-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .filter-panel .date-fields > button { grid-column:1/-1; }
    .filter-panel .compare-form:has(#compare-custom:not([hidden])) {
      grid-template-columns:minmax(0,1fr) auto;
    }
    .filter-panel #compare-custom:not([hidden]) {
      grid-column:1/-1; grid-row:2; grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .chart-layout .panel-heading:has(.chart-controls) {
      display:grid; grid-template-columns:minmax(0,1fr); gap:12px;
    }
    .chart-layout .panel-heading .chart-controls {
      grid-column:1; grid-row:2; display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; max-width:360px;
      gap:10px; justify-self:end;
    }
    .chart-layout .panel-heading .chart-controls .chart-control {
      grid-column:auto; grid-row:auto; min-width:0; width:100%;
    }
    .chart-layout .panel-heading .chart-controls select { max-width:100%; min-width:0; }
    .chart-layout .panel-heading #chart-legend { grid-column:1; grid-row:3; }
    .scope-actions { flex-wrap:wrap; gap:8px; }
    .summary-controls { flex-wrap:wrap; }
    .spend-bar > div:first-child { flex-wrap:wrap; gap:4px 10px; }
  }
  @container report-body (max-width:340px) {
    .filter-panel .date-fields, .filter-panel #compare-custom:not([hidden]) {
      grid-template-columns:minmax(0,1fr);
    }
    .filter-panel .compare-form,
    .filter-panel .compare-form:has(#compare-custom:not([hidden])) {
      grid-template-columns:minmax(0,1fr);
    }
    .filter-panel .compare-form > button { grid-column:1; }
    .filter-panel .grouping-select { min-width:0; flex-basis:100%; max-width:100%; }
    .platform-tab { min-width:0; gap:6px; padding-inline:6px; }
    .platform-indicator { margin-left:2px; }
    .daily-actions { flex-wrap:wrap; }
  }
  @media(max-width:580px) {
    .presentation-identity { flex-wrap:wrap; }
    .presentation-identity #active-brand-name { overflow-wrap:anywhere; min-width:0; }
    .registry-toolbar input,.registry-toolbar select,
    .bulk-toolbar input[type=search],.bulk-target input,.bulk-target select { min-width:0; max-width:100%; }
    .bulk-assignment { overflow-wrap:anywhere; }
    .service-dialog-actions,.note-actions,footer { flex-wrap:wrap; gap:12px; }
  }
}

/* Phone date pickers need a full row, including native iOS date controls. */
@media screen and (max-width:580px) {
  .filter-panel .date-fields,
  .filter-panel #compare-custom:not([hidden]) {
    grid-template-columns:minmax(0,1fr);
    gap:12px;
  }
  .date-fields > label, #compare-custom > label {
    display:block;
    width:100%;
    min-width:0;
    max-width:100%;
  }
  .filter-panel input[type=date], .settings-scope input[type=date] {
    display:block;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    max-width:100%;
    min-height:44px;
    font-size:16px;
    -webkit-appearance:none;
    appearance:none;
  }
  input[type=date]::-webkit-date-and-time-value {
    min-width:0;
    text-align:left;
  }
  .settings-scope label:has(input[type=date]) { flex-basis:100%; }
}

/* Compact mobile header with an accessible disclosure navigation. */
.mobile-menu-toggle{display:none}
@media screen and (max-width:900px){
  .sidebar{position:relative;min-height:78px;padding-right:78px}
  .sidebar .brand{min-height:44px;min-width:0}
  .mobile-menu-toggle{display:flex;align-items:center;justify-content:center;position:absolute;right:18px;top:16px;width:44px;height:44px;padding:10px;background:#242a43;color:#e9e4fa;border:1px solid #45415f;border-radius:10px}
  .mobile-menu-toggle svg{width:24px;height:24px}
  .mobile-menu-toggle[aria-expanded=true]{background:#47335f;border-color:#aa7cd8}
  .sidebar #main-navigation{display:none;margin:14px -60px 0 0;padding-top:12px;border-top:1px solid #35384e;overflow:visible}
  .sidebar.menu-open #main-navigation{display:flex;flex-direction:column;gap:5px}
  .sidebar #main-navigation .nav{flex:none;width:100%;justify-content:flex-start;min-height:44px;padding:12px;font-size:13px;gap:12px}
  .sidebar #main-navigation .nav svg{width:19px;height:19px}
}

/* KPI explanations are available on hover, keyboard focus and touch. */
.metric-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.metric-heading .metric-label{min-width:0}
.metric-info{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;margin:-4px -4px 0 0;padding:4px;border:0;border-radius:50%;background:transparent;color:#f2edff;cursor:help}
.metric-info span{display:flex;align-items:center;justify-content:center;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;font:600 11px/1 Georgia,serif}
.metric-info:hover,.metric-info:focus-visible{background:#ffffff20}
.metric-info-tooltip{position:fixed;z-index:1000;width:max-content;max-width:min(280px,calc(100vw - 24px));padding:12px 14px;border:1px solid #656080;border-radius:10px;background:#252b43;color:#f1f3ff;box-shadow:0 8px 24px #0005;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.metric-info-tooltip[hidden]{display:none}
@media(pointer:coarse){.metric-info{flex-basis:44px;width:44px;height:44px;margin:-10px -10px -6px 0}}
@media print{.metric-info,.metric-info-tooltip{display:none!important}}

/* Data entrance motion never changes layout or the underlying report values. */
.bar-track span{transform-origin:left center}
@media(prefers-reduced-motion:reduce){.metric,.bar-track span,.chart-day circle{animation:none!important;transition:none!important}}
@media print{.metric,.bar-track span{transform:none!important;opacity:1!important}.metric-series{clip-path:none!important}}

/* Align the summary count, sort field and column selector as one toolbar. */
@media screen {
  .campaigns .panel-heading{align-items:flex-end;flex-wrap:wrap}
  .summary-controls{display:flex;align-items:flex-end;gap:12px;width:auto;margin-left:auto}
  .summary-controls #campaign-count{display:flex;align-items:center;min-height:42px;margin:0;white-space:nowrap;color:#b8c4df}
  .summary-controls > label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11px;line-height:1.4}
  .summary-controls #summary-sort{height:42px;min-height:42px;width:210px;max-width:100%;margin:0;padding:0 12px;font-size:12px}
  .summary-controls .summary-picker{flex-shrink:0}
  .summary-controls .summary-picker > summary{display:flex;align-items:center;justify-content:center;gap:8px;height:42px;min-height:42px;padding:0 14px;white-space:nowrap;list-style:none}
  .summary-controls .summary-picker > summary::-webkit-details-marker{display:none}
  .summary-controls .summary-picker > summary::before{content:'☷';font-size:17px;line-height:1}
  .summary-controls .summary-picker[open] > summary{background:#39314e;border-color:#a47acf}
  @container report-body (max-width:740px){
    .summary-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;margin-left:0;gap:10px 12px}
    .summary-controls #campaign-count{grid-column:1/-1;min-height:0}
    .summary-controls #summary-sort{width:100%}
  }
  @container report-body (max-width:340px){
    .summary-controls{grid-template-columns:minmax(0,1fr)}
    .summary-controls .summary-picker{width:100%}
    .summary-controls #summary-column-options{left:0;right:auto;max-width:100%}
  }
}
@media screen{.summary-controls #summary-column-options{left:auto;right:0;max-width:min(265px,calc(100vw - 64px))}}
