:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#182734;background:#f3f6fa;font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}button:focus,a:focus,input:focus,select:focus,textarea:focus,summary:focus,[tabindex]:focus{outline:none}a{color:inherit;text-decoration:none}h1,h2,p{margin:0}.brand{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:750;letter-spacing:1px}.brand-logo{display:block;width:44px;height:44px;object-fit:contain;flex-shrink:0}.brand-sub{display:block;font-size:8px;letter-spacing:2.1px;color:#8192a5;margin-top:5px}.auth-layout{min-height:100vh;display:grid;grid-template-columns:46% 54%}.auth-aside{background:#0d2033;color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:48px 11%;min-height:100vh}.auth-aside .eyebrow{color:#77a9f8;margin:0 0 20px}.auth-aside h1{font-size:clamp(34px,3.6vw,56px);line-height:1.35;font-weight:600;letter-spacing:-1px}.auth-intro{color:#a3b4c5;line-height:1.9;margin-top:24px}.aside-foot{font-size:11px;color:#7b93a8;letter-spacing:1.5px}.line-art{display:flex;align-items:end;gap:12px;height:130px;margin-top:40px;border-bottom:1px solid #274359}.line-art i{background:#284c70;border-radius:4px 4px 0 0;width:25px;height:30%}.line-art i:nth-child(2){height:50%}.line-art i:nth-child(3){height:42%}.line-art i:nth-child(4){height:64%}.line-art i:nth-child(5){height:57%}.line-art i:nth-child(6){height:80%;background:#3878bc}.line-art i:nth-child(7){height:68%;background:#408be0}.line-art i:nth-child(8){height:98%;background:#4c98f4}.auth-main{display:grid;place-items:center;padding:40px;background:#fff}.auth-card{width:100%;max-width:360px}.small-label{font-size:11px;font-weight:600;letter-spacing:.5px;color:#788795}.auth-card h2{font-size:28px;margin:12px 0;color:#162d43;letter-spacing:-.5px}.auth-card>p{color:#7b8b99;font-size:13px;line-height:1.7}.auth-card form{margin-top:32px}label{display:block;font-size:12px;font-weight:600;color:#425667;margin-bottom:9px}.auth-card input{width:100%;border:1px solid #d9e1e9;background:#fbfcfe;border-radius:8px;padding:13px 14px;margin-bottom:21px;outline-offset:1px}.primary{background:#286de0;border:1px solid #286de0;color:white;font-weight:600;padding:13px 20px;border-radius:8px}.primary:hover{background:#1b5dc8}.auth-card .primary{width:100%;margin-top:8px}.auth-foot{margin-top:26px!important;font-size:11px!important;color:#9aa6b1!important}.error{color:#ae352d;font-size:13px;line-height:1.7;white-space:pre-line}.error:not(:empty){margin:12px 0;padding:12px;background:#fff0ed;border-radius:6px}.app{display:flex;min-height:100vh}.sidebar{width:228px;flex-shrink:0;background:#102236;color:#e8eef5;position:fixed;inset:0 auto 0 0;padding:29px 18px;display:flex;flex-direction:column}.sidebar .brand{padding:0 10px}.nav-caption{color:#7590ab;font-size:10px;letter-spacing:1.2px;margin:48px 14px 15px}.report-navigation{margin-top:40px}.nav-group-toggle{width:100%;display:flex;align-items:center;gap:10px;padding:13px 12px;border:0;border-radius:7px;background:#183653;color:#9bc5ff;font-size:13px;font-weight:600;text-align:left}.nav-group-toggle:hover{background:#204367}.nav-group-icon{width:18px;height:18px;flex-shrink:0}.nav-group-chevron{width:14px;height:14px;margin-left:auto;flex-shrink:0}.nav-group-toggle[aria-expanded="true"] .nav-group-chevron{transform:rotate(180deg)}.report-nav{display:flex;flex-direction:column;gap:4px;padding:6px 0 0 8px;margin-left:8px;border-left:1px solid #294057}.report-nav .nav-number{display:none}.nav-button{width:100%;display:flex;align-items:center;text-align:left;gap:10px;border:0;border-radius:7px;background:transparent;color:#a0b3c6;padding:13px 12px;font-size:12px;white-space:nowrap}.nav-button:hover{background:#1a324c}.nav-button.selected{background:#1d3b60;color:#fff}.nav-number{font-size:10px;font-variant-numeric:tabular-nums;color:#698fb8;letter-spacing:1px}.nav-button.selected .nav-number{color:#8ab7fa}.sidebar-bottom{margin-top:auto;padding:26px 13px 0}.sidebar-bottom strong{display:block;font-size:19px;letter-spacing:1px;font-variant-numeric:tabular-nums;margin:9px 0}.sidebar-bottom p{font-size:10px;color:#718da8}.data-rule{border-top:1px solid #294057;margin-top:23px;padding-top:17px;font-size:10px;line-height:1.9;color:#738fa9}.workspace{margin-left:228px;width:calc(100% - 228px);min-width:0}.topbar{height:72px;background:#fff;border-bottom:1px solid #e5ebf2;padding:0 32px;display:flex;align-items:center;justify-content:space-between;font-size:12px}.breadcrumb{color:#94a0ad}.slash{color:#c5ced7;margin:0 12px}.top-actions{display:flex;align-items:center;gap:16px}.secondary,.quiet{border-radius:6px;padding:8px 12px;font-size:11px;background:white;color:#47627a;border:1px solid #dce5ee}.quiet{border:0;color:#8898a7}.secondary:hover{background:#eff5fd}.report-main{padding:31px 32px;max-width:1800px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:#71879a;font-weight:600;margin-bottom:8px}.page-heading h1{font-size:27px;letter-spacing:-.6px;margin-bottom:9px}.muted{font-size:11px;color:#8795a2;line-height:1.8}.date-pill{padding:11px 17px;background:#fff;border:1px solid #e2e9f1;border-radius:8px;min-width:146px}.date-pill span{display:block;font-size:9px;color:#94a0ab;margin-bottom:5px}.date-pill strong{font-size:16px;font-variant-numeric:tabular-nums;letter-spacing:.5px}.job-banner{font-size:11px;color:#59718a;line-height:1.7;margin-bottom:18px;display:flex;align-items:center;gap:10px}.job-banner::before{content:'✓';display:grid;place-items:center;background:#e1f3ea;color:#418966;width:19px;height:19px;border-radius:50%;flex-shrink:0}.job-banner.partial::before{content:'!';background:#fff0d2;color:#996d25}.metric-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:25px}.metric-card{background:#fff;border:1px solid #e1e8f0;border-radius:9px;padding:17px 17px 15px;min-width:0}.metric-label{font-size:10px;color:#8292a3;margin-bottom:11px}.metric-value{font-size:clamp(16px,1.4vw,20px);font-variant-numeric:tabular-nums;font-weight:650;letter-spacing:-.5px;white-space:nowrap;line-height:1.3}.metric-source{margin-top:11px;font-size:9px;color:#9aa7b4}.data-panel{border:1px solid #e0e7f0;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 2px 3px #10223602}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:21px 22px 16px;gap:16px}.panel-head h2{font-size:14px;margin-bottom:5px;display:flex;align-items:center;gap:9px}.count-badge{padding:3px 6px;border-radius:4px;background:#eef3f9;color:#667e9a;font-size:10px;font-weight:500}.search{display:flex;align-items:center;gap:8px;border:1px solid #dfe6ee;border-radius:7px;padding:7px 10px;margin:0;min-width:220px;color:#94a2af}.search span{font-size:21px;line-height:1}.search input{width:100%;border:0;outline:0;font-size:11px;background:transparent;color:#40566b}.data-tabs{display:flex;border-bottom:1px solid #e5eaf0;padding:0 22px;gap:23px}.data-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:13px 0;color:#8a98a7;font-size:11px;white-space:nowrap}.data-tabs button.selected{color:#246bd8;border-bottom-color:#246bd8;font-weight:600}.data-tabs button span{font-size:9px;margin-left:4px}.table-scroll{overflow:auto;max-height:560px;scrollbar-color:#c2d0df #f4f7fa;scrollbar-width:thin}.report-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}.report-table th{background:#f7f9fc;position:sticky;top:0;z-index:2;text-align:right;color:#6f8499;font-weight:500;border-bottom:1px solid #e1e7ef;padding:0}.report-table th button{padding:14px 16px;display:block;width:100%;border:0;color:inherit;background:transparent;font:inherit;text-align:inherit}.report-table td{padding:14px 16px;border-bottom:1px solid #edf1f6;color:#455c72;text-align:right;background:#fff}.report-table th:first-child,.report-table td:first-child{position:sticky;left:0;text-align:left;box-shadow:1px 0 #e7edf4;z-index:1}.report-table th:first-child{z-index:3}.report-table tr:nth-child(even) td{background:#fbfcfe}.report-table tr:hover td{background:#edf4ff}.report-table .origin-cell{font-size:10px;color:#98a6b3}.report-table .summary-row td{background:#f3f7fc!important;font-weight:600;color:#395d85}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 22px;border-top:1px solid #e8edf3;color:#8c9cab;font-size:10px}.empty{padding:52px 24px;text-align:center;color:#91a1b0;font-size:12px}.note{padding:12px 22px;font-size:11px;line-height:1.8;background:#f5f8fc;color:#7289a1}.extra-section{padding:22px;border-bottom:1px solid #edf1f5}.extra-section h3{font-size:13px;margin:0 0 12px;color:#39526d}.extra-section .metric-grid{margin:0;grid-template-columns:repeat(3,minmax(0,1fr))}.chart-text{white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.9;color:#587088;margin:0;font-family:inherit}.source-grid{display:grid;grid-template-columns:140px 1fr;gap:11px;font-size:11px;color:#607991}.source-grid dt{color:#91a0b0}.source-grid dd{margin:0;overflow-wrap:anywhere}.source-grid a{color:#347add}.report-foot{display:flex;justify-content:space-between;font-size:10px;color:#9ba8b5;margin-top:18px;gap:18px}.attempt-wrap{display:flex;align-items:center;gap:12px;padding:12px 22px;background:#f8fafc}.attempt-wrap label{margin:0}.attempt-wrap select{font-size:11px;padding:5px;border:1px solid #d8e3ee;border-radius:4px;background:#fff}#toast{font-size:11px;color:#347b67;min-height:18px;margin-top:12px}.schema-title{font-size:11px;color:#6e859a;padding:12px 22px;background:#f1f5fa}@media(min-width:1600px){.report-main{padding:40px 48px}.metric-value{font-size:24px}}@media(max-width:1180px){.sidebar{width:205px;padding-left:12px;padding-right:12px}.workspace{margin-left:205px;width:calc(100% - 205px)}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-main{padding:26px 24px}.topbar{padding:0 24px}.metric-value{font-size:23px}}@media(max-width:760px){.auth-layout{display:block}.auth-aside{min-height:auto;padding:26px}.auth-aside>div,.aside-foot{display:none}.auth-main{padding:40px 26px;min-height:calc(100vh - 96px)}.sidebar{position:static;width:100%;padding:17px 16px}.app{display:block}.sidebar .brand{font-size:18px;padding:0}.sidebar .brand-logo{width:34px;height:34px}.report-navigation{margin-top:20px}.nav-group-toggle{padding:12px;font-size:13px}.report-nav{gap:3px}.nav-button{width:100%;padding:12px;font-size:12px}.nav-number,.nav-badge,.nav-caption,.sidebar-bottom{display:none}.workspace{margin:0;width:100%}.topbar{height:54px;padding:0 16px;font-size:10px}.top-actions{gap:2px}.secondary,.quiet{font-size:10px;padding:7px}.report-main{padding:22px 14px}.page-heading{gap:12px}.page-heading h1{font-size:22px}.date-pill{min-width:116px;padding:9px}.date-pill strong{font-size:12px}.metric-grid{gap:7px;grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{padding:12px 10px}.metric-value{font-size:17px}.metric-source{font-size:8px}.panel-head{padding:16px;align-items:flex-start;flex-direction:column}.search{width:100%}.data-tabs{gap:20px;overflow-x:auto;padding:0 16px}.table-footer{align-items:flex-start;flex-direction:column;gap:5px;padding:12px 16px}.report-foot{flex-direction:column;gap:4px}.extra-section{padding:16px}.extra-section .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.source-grid{grid-template-columns:90px 1fr}.report-table td{padding:12px}.job-banner{align-items:flex-start}}
.sidebar{overflow-y:auto}.extra-navigation{margin-top:16px}.report-nav .nav-button{white-space:normal;line-height:1.6;min-height:42px}.nav-group-toggle{font-size:12px;line-height:1.5}.nav-group-toggle>span{min-width:0}.sidebar-bottom{flex-shrink:0}.analysis-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.analysis-date-label{display:flex;align-items:center;gap:8px;margin:0;font-size:11px;white-space:nowrap}.analysis-date-label select{border:1px solid #dfe6ee;background:#fff;padding:8px;border-radius:6px;color:#47627a}.analysis-coverage{font-size:11px;line-height:1.8;color:#73879a;margin-bottom:20px}.analysis-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.analysis-table th button{max-width:200px;white-space:pre-line;min-width:100px;line-height:1.6}.analysis-table th:first-child button{min-width:175px}.source-caution{color:#866025!important;background:#fff8e9!important}.method-item{border-bottom:1px solid #e5ebf2}.method-item>summary{display:flex;gap:12px;align-items:flex-start;padding:17px 22px;font-size:12px;cursor:pointer;line-height:1.8}.method-item>summary::before{content:'+';color:#6482a0}.method-item[open]>summary::before{content:'−'}.method-column{min-width:24px;color:#8295a8;font-size:11px}.method-item strong{min-width:130px;max-width:150px;white-space:pre-line}.method-rule{color:#6a8096;flex:1}.method-content{padding:0 22px 20px 70px;font-size:12px;line-height:1.8;color:#536d86}.method-content h4{font-size:11px;margin:12px 0 6px}.formula-code{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;margin:0;background:#f5f8fc;border:1px solid #e3eaf2;padding:12px;border-radius:6px;font-size:11px}.method-content p+p{margin-top:8px}@media(max-width:1180px){.report-nav .nav-button{font-size:11px;padding-left:9px;padding-right:9px}.analysis-controls{gap:8px}}@media(max-width:760px){.extra-navigation{margin-top:12px}.report-nav .nav-button{font-size:12px}.analysis-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-controls{width:100%}.analysis-controls .search{min-width:0}.method-item>summary{padding:14px;flex-wrap:wrap;gap:7px}.method-item strong{max-width:calc(100% - 60px)}.method-rule{flex-basis:100%;padding-left:30px}.method-content{padding:0 14px 16px 44px}#analysis-main .page-heading{align-items:flex-start}#analysis-main .page-heading h1{font-size:20px;line-height:1.6}#analysis-main .page-heading .secondary{flex-shrink:0}}

.collection-date-label{display:flex;align-items:center;gap:12px;color:var(--muted,#6d7688);font-size:14px;white-space:nowrap}.collection-date-label select{font:inherit;color:#263b5c;background:#fff;border:1px solid #d8e1eb;border-radius:8px;padding:10px 34px 10px 12px;min-width:160px}.history-coverage{font-size:14px;line-height:1.6;color:#62728a;margin:0 0 16px}@media(max-width:600px){.collection-date-label{width:100%;justify-content:space-between}.collection-date-label select{flex:1;min-width:0}}

.analysis-foot{justify-content:flex-end}







/* Expanded reports keep the navigation available and use the remaining viewport. */
:root{--analysis-sidebar-width:228px}
body.analysis-expanded{overflow:hidden}
body.analysis-expanded .topbar{visibility:hidden}
.report-expand-toggle{white-space:nowrap;min-height:36px;font-size:12px}
#analysis-main.report-expanded{position:fixed;inset:0 0 0 var(--analysis-sidebar-width);z-index:10;max-width:none;margin:0;padding:0;display:flex;flex-direction:column;min-height:0;overflow:hidden;background:#fff}
#analysis-main.report-expanded>.page-heading,#analysis-main.report-expanded>.analysis-metrics,#analysis-main.report-expanded>.analysis-foot{display:none}
#analysis-main.report-expanded>.data-panel{display:flex;flex-direction:column;flex:1;min-height:0;border:0;border-radius:0}
#analysis-main.report-expanded .panel-head{flex-shrink:0;flex-wrap:wrap;padding:12px 16px;gap:12px}
#analysis-main.report-expanded .panel-head h2{margin:0;font-size:16px}
#analysis-main.report-expanded .data-tabs{flex-shrink:0;padding:0 16px}
#analysis-main.report-expanded #analysis-content{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
#analysis-main.report-expanded .sheet-total-note{display:none}
#analysis-main.report-expanded .table-scroll{flex:1;min-height:0;max-height:none;overscroll-behavior:contain}
#analysis-main.report-expanded .methodology{flex:1;min-height:0;overflow:auto}
.analysis-loading-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid #e5ebf2}
#analysis-main:not(.report-expanded)>.analysis-loading-head{display:none}
@media(max-width:1180px){:root{--analysis-sidebar-width:205px}}
@media(max-width:760px){:root{--analysis-sidebar-width:0px}#analysis-main.report-expanded .panel-head{flex-direction:row;align-items:center;padding:10px 12px}#analysis-main.report-expanded .analysis-controls{gap:8px}#analysis-main.report-expanded .analysis-controls .search{flex:1;min-width:140px;width:auto}}

.brand-name{color:#ffdb36;background:linear-gradient(180deg,#fff58a 0%,#ffe43a 42%,#ffc400 72%,#ffad00 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}

/* Keyboard focus uses a subtle surface change, never an outline. */
button:focus-visible,a:focus-visible,summary:focus-visible{filter:brightness(.94)}
.sidebar .nav-button:focus-visible,.sidebar .nav-group-toggle:focus-visible{filter:none;background:#294964}
input:focus-visible,select:focus-visible,textarea:focus-visible{background-color:#f1f5fa}

.collection-filters{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}.collection-channel-label{display:flex;align-items:center;gap:8px;margin:0;color:#7890a8;font-size:12px}.collection-channel-label select{min-height:36px;max-width:230px;padding:7px 28px 7px 10px;border:1px solid #dce5ef;border-radius:6px;background:#fff;color:#405c79;font-size:12px}.collection-channel-label select:disabled{color:#8795a2;background:#f5f7fa;cursor:default}.collection-filter-hint{flex-basis:100%;font-size:12px;color:#8795a2;text-align:right}@media(max-width:760px){#collection-main .panel-head{align-items:flex-start;flex-direction:column}.collection-filters{width:100%;justify-content:flex-start}.collection-filter-hint{text-align:left}}

/* Navigation order is maintained in the DOM for matching keyboard order. */
.sidebar>.report-navigation{margin-top:16px;flex-shrink:0}
.sidebar>.report-navigation:first-of-type{margin-top:40px}
@media(max-width:760px){.sidebar>.report-navigation{margin-top:12px}.sidebar>.report-navigation:first-of-type{margin-top:20px}}

.analysis-metrics .metric-card-wide{grid-column:span 2}
.metric-dual{display:flex;flex-wrap:wrap;gap:12px 28px}.metric-dual>div{flex:1 1 180px;min-width:0}
.metric-value-caption{font-size:12px;line-height:1.5;color:#74899f;margin-bottom:6px}
.analysis-metrics .metric-value{white-space:normal;overflow-wrap:anywhere}
.metric-negative{color:#c83f45}

.sheet-spend-controls{flex-direction:column;gap:5px;padding-bottom:6px}#analysis-main .analysis-table .sheet-heading-controls.sheet-spend-controls>button:first-child{flex:none;width:100%;min-width:0;padding:6px 2px 0}.sheet-spend-controls select{max-width:112px;font:inherit;font-size:11px;padding:3px 4px;border:1px solid #b76872;border-radius:4px;background:#fff8f8;color:#22374c;cursor:pointer}
.analysis-range-status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;font-size:12px;line-height:1.6;color:#476a9a;background:#eef5ff;border-bottom:1px solid #dae5f4}.analysis-range-status.error{margin:0;border-radius:0}.analysis-range-status button{flex-shrink:0}:root[data-theme=dark] .analysis-range-status{background:#20344b;color:#c4daf5;border-color:#3b506c}:root[data-theme=dark] .analysis-range-status.error{color:#ffadb7}

.sheet-roas-controls select{border-color:#70b5c3;background:#f4fdff}

.collection-channel-label[hidden]{display:none}
