:root{--navy:#172c48;--blue:#c8102e;--muted:#7d8ba0;--line:#e7edf4;--bg:#fbf5f6;--green:#208c75;--red:#c96157;--radius:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--navy);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--navy);padding:9px 15px}button:hover{border-color:#ffbcc7}button:disabled{opacity:.5;cursor:wait}input,select{border:1px solid #dce4ef;background:#fff;border-radius:8px;padding:9px 10px;color:var(--navy);min-width:0;width:100%}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid #ffbcc7;outline-offset:2px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted)}h1,h2,p{margin:0}h1{font-size:29px;letter-spacing:-.7px;margin:6px 0}h2{font-size:19px;line-height:1.5;margin:5px 0 12px}a{color:var(--blue)}[hidden]{display:none!important}.primary{background:var(--blue);border-color:var(--blue);color:#fff}.quiet{background:transparent}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;color:var(--muted)}.topbar{height:81px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 4vw}.brand{display:flex;align-items:center;gap:13px;font-size:17px;font-weight:700}.brand small{display:block;color:#9aa6b7;font-size:9px;letter-spacing:2px}.brand-icon{display:grid;place-items:center;width:36px;height:38px;border-radius:12px;background:var(--navy);color:white;font-size:22px}.user-tools{display:flex;align-items:center;gap:12px}.user-tools span{font-size:12px;color:var(--muted)}.tabs{display:flex;gap:27px;padding:0 4vw;background:white;border-bottom:1px solid var(--line);overflow-x:auto}.tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;white-space:nowrap;padding:16px 4px;color:var(--muted);font-weight:600}.tabs button.active{border-bottom-color:var(--blue);color:var(--blue)}.container{max-width:1580px;margin:auto;padding:30px 4vw}.page-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:25px}.pill{font-size:11px;padding:7px 12px;background:#fbeaed;color:#526887;border-radius:100px;white-space:nowrap}.filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;background:#fff;padding:18px;border:1px solid var(--line);border-radius:var(--radius)}.filters label{flex:1 1 120px}.filters label:first-child{flex-basis:185px}.filters button{min-height:41px}.status{min-height:23px;font-size:12px;margin:9px 0}.error{color:var(--red);margin-top:12px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.kpi{padding:22px;text-align:left;background:white;border:1px solid var(--line);border-radius:var(--radius);min-width:0}.kpi.selected{box-shadow:inset 0 3px var(--blue);border-color:#ffc8d1;background:#fffafb}.kpi-name{color:#6c7d96;font-size:13px}.kpi-value{font-size:29px;font-weight:700;letter-spacing:-.5px;margin:9px 0 11px;white-space:nowrap}.unit{font-size:12px;font-weight:400;margin-left:6px;color:var(--muted)}.kpi-baseline{font-size:11px;color:var(--muted);display:flex;gap:6px;flex-wrap:wrap;align-items:center}.kpi-sub{font-size:11px;color:var(--muted);margin-top:8px}.badge{display:inline-block;white-space:nowrap;border-radius:5px;padding:2px 7px;font-size:11px;background:#f1f4f8;color:var(--muted)}.up{color:var(--green);background:#eaf6f1}.down{color:var(--red);background:#fff0ed}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:22px;min-width:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}.section-heading.wrap{flex-wrap:wrap}.section-heading h2{margin-bottom:2px}.customer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.customer-card{border-right:1px solid var(--line);padding:10px 20px 10px 0}.customer-card:last-child{border:0}.customer-card strong{font-size:26px;display:block;margin:8px 0}.chart-controls{display:flex;gap:9px}.chart-controls select{width:auto}.legend{display:flex;gap:20px;justify-content:flex-end;font-size:11px;color:var(--muted)}.dot{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%}.current{background:var(--blue)}.prior{background:#bbc6df}.chart{height:295px;margin-top:12px}.chart svg{width:100%;height:100%;overflow:visible}.chart .grid{stroke:#eef1f7;stroke-width:1}.chart text{font-family:inherit;font-size:10px;fill:#8a96aa}.chart .line-current{stroke:var(--blue);fill:none;stroke-width:2.7}.chart .line-prior{stroke:#bcc8e0;fill:none;stroke-width:2;stroke-dasharray:5 4}.chart .point{fill:white;stroke:var(--blue);stroke-width:2}.table-scroll{overflow:auto;max-width:100%;border-top:1px solid var(--line)}table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px;white-space:nowrap}th,td{padding:14px 16px;text-align:right;border-bottom:1px solid var(--line)}th{font-weight:500;color:var(--muted);background:#fff8f9}td:first-child,th:first-child{text-align:left}tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fff8f9}.sticky-table th:first-child,.sticky-table td:first-child{position:sticky;left:0;z-index:2;background:white;box-shadow:3px 0 5px -5px #526887;min-width:130px}.sticky-table th:first-child{background:#fff8f9;z-index:3}.sticky-table tr:hover td:first-child{background:#fff8f9}.category-link{padding:0;border:0;border-radius:0;color:var(--blue);background:none;white-space:nowrap}.selected-row td{background:#ffeef1!important}.empty{text-align:center;color:var(--muted);padding:40px 15px}details{margin-top:15px}summary{cursor:pointer;color:var(--muted);font-size:12px;padding:6px 0}.data-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.data-grid .panel{margin-bottom:22px}.file-area{border:1px dashed #edbdc5;background:#fff7f8;border-radius:10px;padding:17px;margin:20px 0}.file-area input{padding:0;border:0;background:none;font-size:12px}#sheetLabel{margin-bottom:15px}.download{font-size:12px;margin-left:14px}#importPreview{border-top:1px solid var(--line);margin-top:20px;padding-top:15px}#importPreview p{margin:8px 0}.source-row{display:flex;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.source-state{background:#fbf5f6;border-radius:9px;padding:13px;margin-top:17px;font-size:12px}.source-state p{margin-top:5px}footer{text-align:center;color:#9aa6b7;font-size:10px;margin:35px 0 5px}dialog{border:1px solid var(--line);border-radius:20px;padding:26px;width:430px;max-width:calc(100% - 30px);color:var(--navy)}dialog::backdrop{background:#172c4855}dialog label{margin:12px 0}dialog hr{border:0;border-top:1px solid var(--line);margin:23px 0}.login-screen{min-height:100vh;display:grid;grid-template-columns:1.15fr 1fr}.login-story{background:var(--navy);color:white;padding:8vh 7vw;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.wordmark{font-size:13px;letter-spacing:3px;color:#dbaab2;margin-bottom:9vh}.login-story h1{font-size:clamp(28px,3.1vw,49px);line-height:1.5;font-weight:500;letter-spacing:0}.login-story p{font-size:14px;color:#dbaab2;line-height:2;margin-top:25px}.login-story small{color:#8396b7;font-size:10px;letter-spacing:2px;margin-top:55px}.login-bars{height:140px;display:flex;gap:16px;align-items:end;margin-top:25px;opacity:.7}.login-bars i{width:28px;background:#b45464;border-radius:6px 6px 0 0;height:25%}.login-bars i:nth-child(2){height:37%}.login-bars i:nth-child(3){height:32%}.login-bars i:nth-child(4){height:60%}.login-bars i:nth-child(5){height:55%}.login-bars i:nth-child(6){height:75%}.login-bars i:nth-child(7){height:94%;background:#fa7a8f}.login-panel{display:flex;align-items:center;justify-content:center;padding:50px 30px}.login-panel form{width:340px;max-width:100%}.login-panel h2{font-size:27px;margin:10px 0}.login-panel label{margin:22px 0}.login-panel button{width:100%;margin-top:10px}.login-panel input{padding:12px}.login-panel .muted{font-size:13px}.viewer .admin-only{display:none!important}
@media(min-width:1600px){.container{padding-left:40px;padding-right:40px}}@media(max-width:1050px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-card:nth-child(2){border:0}.data-grid{grid-template-columns:1fr}}@media(max-width:620px){.topbar{height:67px;padding:0 16px}.brand{font-size:13px;gap:8px}.brand-icon{width:29px;height:32px;font-size:18px}.brand small{font-size:7px}.user-tools{gap:4px}.user-tools span{display:none}.user-tools button{font-size:11px;padding:7px}.tabs{padding:0 16px;gap:24px}.tabs button{font-size:12px;padding:13px 0}.container{padding:22px 14px}.page-heading{align-items:start;margin-bottom:18px;flex-direction:column;gap:7px}h1{font-size:24px}.filters{gap:10px;padding:13px}.filters label{flex:1 1 calc(50% - 10px);max-width:calc(50% - 5px)}.filters label:first-child{flex-basis:100%;max-width:100%}.filters input,.filters select{font-size:12px;padding:9px 6px}.filters button{flex:1}.kpi-grid{gap:10px}.kpi{padding:15px 11px;min-height:137px}.kpi-value{font-size:23px;margin:8px 0}.kpi-name{font-size:11px}.unit{font-size:10px}.kpi-baseline,.kpi-sub{font-size:10px}.badge{font-size:10px}.panel{padding:16px;margin-bottom:15px;border-radius:12px}.section-heading{align-items:start;flex-wrap:wrap}.section-heading h2{font-size:17px}.customer-grid{gap:12px}.customer-card{padding:4px 10px 7px 0}.customer-card strong{font-size:24px}.customer-card .muted{font-size:11px}.chart{height:235px}.chart-controls{width:100%}.chart-controls select{flex:1}.legend{margin-top:10px}.sticky-table th:first-child,.sticky-table td:first-child{min-width:112px;max-width:150px}th,td{padding:12px 10px;font-size:11px}.login-screen{grid-template-columns:1fr}.login-story{padding:30px 26px}.wordmark{margin-bottom:25px;font-size:10px}.login-story h1{font-size:25px}.login-story p,.login-bars,.login-story small{display:none}.login-panel{padding:35px 26px}.login-panel h2{font-size:24px}.source-row{flex-wrap:wrap}footer{font-size:9px}}

.category-link{white-space:normal;text-align:left;overflow-wrap:anywhere;max-width:155px}

/* Restore the morning review shell; keep authentication and import pages intact. */
html{scroll-behavior:smooth;scroll-padding-top:95px}.app-side{width:196px;position:fixed;inset:0 auto 0 0;background:#142442;color:#e7c5cb;padding:30px 18px;display:flex;flex-direction:column;z-index:20;overflow-y:auto}.side-brand{display:flex;gap:10px;align-items:center;padding:0 7px 29px}.side-brand>span{width:35px;height:35px;display:grid;place-items:center;background:#c8102e;border-radius:10px;font-size:16px;font-weight:800;color:#fff}.side-brand strong{display:block;color:white;font-size:16px;letter-spacing:1px}.side-brand small{font-size:9px;letter-spacing:1.2px;color:#91a2bf}.side-label{font-size:10px;letter-spacing:2px;color:#7e90ae;margin:12px 10px}.app-side .tabs{padding:0;display:flex;flex-direction:column;gap:6px;background:transparent;border:0;overflow:visible}.app-side .tabs button{border:0;border-radius:8px;margin:0;padding:12px;text-align:left;background:transparent;color:#acbdd7;font-size:13px;font-weight:400;white-space:nowrap}.app-side .tabs button:hover,.app-side .tabs button.active{background:#2b4168;color:white}.side-note{margin-top:auto;border-top:1px solid #304260;padding:20px 8px 0;font-size:11px;color:#91a2bf;line-height:1.8}#workspace .topbar{margin-left:196px;height:65px;position:sticky;top:0;z-index:10;padding:0 32px}#workspace .topbar .brand{font-size:14px}#workspace .topbar .brand-icon{display:none}#workspace .topbar .brand small{font-size:8px}#workspace .container{margin-left:196px;max-width:1800px;padding:28px 32px 35px}#workspace .page-heading{margin-bottom:22px}#workspace .page-heading h1{font-size:27px;letter-spacing:1px;font-weight:650}#workspace .page-heading .eyebrow{color:#c8102e;font-size:10px;letter-spacing:2px}#workspace .filters{border-radius:10px;padding:13px 16px;gap:12px}#workspace .filters label{font-size:11px}#workspace .filters select,#workspace .filters input{background:#fff8f9;border-radius:6px;min-height:40px;font-size:12px}#workspace .filters label:first-child{flex-basis:168px}#workspace .page-heading .pill{background:#ffeaed;border:1px solid #fedce2;color:#cf4159;border-radius:7px;font-size:12px}.period-shortcuts{display:flex;gap:3px;align-items:center;width:100%;border-top:1px solid #edf1f6;padding-top:10px}.period-shortcuts button{border:0;background:transparent;border-radius:5px;padding:7px 12px;font-size:11px}.period-shortcuts button.on,.period-shortcuts button:hover{background:#ffedf0;color:#c8102e}.status{margin:7px 0;min-height:16px}#overviewPage{min-width:0}.filters:has(#mode:focus){outline:none}
@media(max-width:1100px) and (min-width:701px){.app-side{width:160px;padding:25px 10px}#workspace .topbar,#workspace .container{margin-left:160px}#workspace .container{padding:23px 20px}#workspace .topbar{padding:0 20px}.app-side .tabs button{font-size:12px;padding:11px}}
@media(max-width:700px){.app-side{position:sticky;top:58px;display:block;inset:auto;width:100%;height:auto;max-height:none;padding:0 14px;background:#fff;border-bottom:1px solid #e7ecf3;z-index:10;overflow:visible}.side-brand,.side-label,.side-note{display:none}.app-side .tabs{flex-direction:row;gap:17px;overflow:auto}.app-side .tabs button{border-radius:0;border-bottom:3px solid transparent;font-size:12px;padding:11px 0;color:#758197;white-space:nowrap}.app-side .tabs button[data-home-section]{display:none}.app-side .tabs button.active{background:transparent;color:#c8102e;border-bottom-color:#c8102e}.app-side .tabs button:hover{background:transparent;color:#c8102e}#workspace .topbar{margin-left:0;height:58px;padding:0 14px}#workspace .topbar .brand{font-size:13px}#workspace .container{margin-left:0;padding:20px 14px}#workspace .page-heading h1{font-size:24px}#workspace .filters{gap:10px;padding:12px}#workspace .filters label{flex:1 1 calc(50% - 10px);max-width:calc(50% - 5px)}#workspace .filters label:first-child{flex-basis:100%;max-width:100%}#workspace .filters button#apply{flex:1 1 calc(50% - 10px)}.period-shortcuts{flex-wrap:wrap}.period-shortcuts button{flex:0 0 auto!important}.status{font-size:11px}html{scroll-padding-top:115px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(max-width:700px){.app-side{top:58px}}

.drop-zone{min-height:150px;justify-content:center;align-items:center;gap:9px;text-align:center;cursor:pointer;border:2px dashed #edbdc5;transition:background .15s,border-color .15s}.drop-zone strong{font-size:16px;color:#7a333f}.drop-zone input{width:auto;max-width:100%}.drop-zone:hover,.drop-zone:focus-within{border-color:#c8102e;background:#fff0f2}.drop-zone.drag-over{border-color:#c8102e;background:#ffe8ec;box-shadow:0 0 0 3px #c8102e22}.drop-zone.drag-over strong{color:#c8102e}.drop-zone.busy{opacity:.65;cursor:wait}.import-file-message{overflow-wrap:anywhere;margin:-10px 0 16px}@media(max-width:620px){.drop-zone{min-height:140px;padding:15px}.drop-zone strong{font-size:14px}}

.danger-button{color:#bd5149;border-color:#efd4d0;background:#fff8f6}.danger-button:hover{border-color:#cd6563;background:#fff0ed}

.selected-import-file{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-10px 0 16px}.selected-import-file p{overflow-wrap:anywhere;min-width:0;flex:1}.selected-import-file button{flex-shrink:0;padding:5px 12px;font-size:12px}.selected-import-file:has(p:empty):has(button[hidden]){display:none}

.import-queue-item{border:1px solid #f2e2e5;border-radius:9px;padding:14px;margin:12px 0}.queue-file{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.queue-file strong{flex:1 1 100%;overflow-wrap:anywhere}.queue-file button{margin-left:auto}.import-queue-item label,.import-queue-item p{margin-top:10px}

.ad-import-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.viewer .admin-only{display:none}@media(max-width:650px){#adsPage .section-heading{flex-wrap:wrap}}

.batch-controls{display:flex;gap:16px;flex-wrap:wrap;margin:20px 0 12px}.batch-controls label{flex:1;min-width:160px}.batch-pager{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:18px}#batchRows td:nth-child(2){white-space:normal;overflow-wrap:anywhere;min-width:180px;max-width:400px}@media(max-width:600px){.batch-controls label{min-width:100%}.batch-pager{justify-content:center}}

.chart .point-prior{fill:white;stroke:#bcc8e0;stroke-width:1.6}.chart .data-label{font-size:9px;font-weight:650;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}.chart .data-label-current{fill:var(--blue)}.chart .data-label-prior{fill:#9aa9c7}@media(max-width:620px){.chart{overflow-x:auto}.chart svg{min-width:720px}}

.developer-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.developer-card{border:1px solid var(--line);border-radius:10px;padding:16px;background:#fff8f9}.developer-card span{display:block;color:var(--muted);font-size:12px}.developer-card strong{display:block;font-size:22px;margin-top:6px}.developer-metric strong{display:block}.developer-metric small,.developer-id{display:block;color:var(--muted);font-size:10px;margin-top:3px}.developer-note{margin-top:14px}@media(max-width:850px){.developer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:430px){.developer-grid{grid-template-columns:1fr 1fr}.developer-card{padding:12px}.developer-card strong{font-size:18px}}
