.active-commandbar{border:1px solid #29392d;background:#101812;border-radius:12px;padding:14px;margin-bottom:16px}
.commandbar-main{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.commandbar-date{display:flex;align-items:center;gap:8px;color:#91a095;font-size:12px}.commandbar-main>#active-search{flex:1;min-width:160px;max-width:320px}
.command-menu{position:relative}.command-menu>summary{list-style:none;cursor:pointer}.command-menu>summary::-webkit-details-marker{display:none}.command-menu[open]{z-index:40}
.command-menu-content{position:absolute;right:0;top:calc(100% + 8px);min-width:270px;max-width:calc(100vw - 32px);background:#152019;border:1px solid #344b3b;border-radius:10px;box-shadow:0 12px 35px #0006;padding:14px;display:grid;gap:10px}.command-menu-content label{display:grid;gap:8px;font-size:12px;color:#a9b5ad}.command-menu-content input{width:100%}
.active-filter-details{margin-top:12px;border-top:1px solid #29392d;padding-top:10px}.active-filter-details>summary{cursor:pointer;color:#a6b5ab;font-size:12px}.active-filter-details>.filter-bar{margin:12px 0 0;padding:0;background:none;border:0}.active-filter-details #filter-state-label{margin-left:12px;color:#83c994}
.workspace-muted{color:#89968d;font-size:11px}.bulk-metrics{font-size:12px;color:#bdcbbf}.bulk-metrics b{color:#eef4ef}.bulk-actions{flex-wrap:wrap;gap:12px}.active-commandbar .grouping-dropdown{z-index:50}
.team-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.team-toolbar #team-search{max-width:250px}.team-toolbar #team-metrics{max-width:210px}
#team-summary{display:flex;gap:12px;flex-wrap:wrap;padding:16px;border:1px solid #29392d;background:#101812;border-radius:12px;margin-bottom:16px}
#team-summary>.stat-box{flex:1;min-width:125px}.team-source-totals{display:flex;gap:16px;flex-wrap:wrap;flex-basis:100%;padding-top:12px;border-top:1px solid #29392d;font-size:12px;color:#9aaa9e}.team-source-totals small{flex-basis:100%}
.team-buyer-card{border-radius:10px;background:#101812;border-color:#29392d;padding:15px;cursor:default}.team-buyer-link{padding:0;border:0;background:none;color:#e2ece5;font-size:15px;font-weight:650;cursor:pointer}.team-buyer-link:hover{color:#62cf85}.team-buyer-numbers{flex-wrap:wrap;gap:10px}.team-buyer-numbers span{font-size:12px}
.team-source-details{margin-top:10px;border-top:1px solid #29392d;padding-top:8px;font-size:11px;color:#91a095}.team-source-details summary{cursor:pointer}.source-state{display:block;margin-top:7px}.source-error{color:#f4bc75}.source-unknown{color:#9aa49d}
#team-table th,#team-table td{font-size:12px;padding:10px 12px}#team-table .campaign-name-main{font-size:13px;font-weight:600;line-height:1.4}#team-table .campaign-subtitle{font-size:10px}#team-table .campaign-alert-bar{font-size:10px;padding:5px 7px;white-space:normal}#team-table .team-sticky-status{font-size:16px;text-align:center}
#team-table .team-col-total{border-left:0}#team-table .team-total-start{border-left:1px solid #38523d}#team-table .team-sticky-budget,#team-table .team-sticky-date{font-size:11px}
.team-mobile-metrics .mobile-metric-strip{display:flex;overflow-x:auto;gap:8px;max-width:100%;padding:3px 0}.team-mobile-metrics .mobile-metric-chip{flex:0 0 100px;background:#15231a;border:1px solid #2d4935;border-radius:8px;padding:10px}.team-mobile-metrics .mobile-metric-chip span{display:block;font-size:10px;color:#97aa9d}.team-mobile-metrics .mobile-metric-chip strong{display:block;margin-top:5px;font-size:14px}
html[data-theme=light] .active-commandbar,html[data-theme=light] #team-summary,html[data-theme=light] .team-buyer-card{background:#fff;border-color:#d5e1d8}
html[data-theme=light] .command-menu-content{background:#fff;border-color:#ceded1;box-shadow:0 12px 35px #16392120}html[data-theme=light] .command-menu-content label,html[data-theme=light] .commandbar-date,html[data-theme=light] .active-filter-details>summary,html[data-theme=light] .team-source-totals{color:#52675a}
html[data-theme=light] .team-buyer-link,html[data-theme=light] .bulk-metrics b{color:#1c3925}html[data-theme=light] .bulk-metrics{color:#405c48}html[data-theme=light] .source-error{color:#995e12}html[data-theme=light] .source-state{color:#617569}
html[data-theme=light] .team-mobile-metrics .mobile-metric-chip{background:#f1f7f2;border-color:#d2e3d6}
@media(max-width:700px){.active-commandbar{padding:12px}.commandbar-main{gap:8px}.commandbar-date{width:100%;justify-content:space-between}.commandbar-main>#active-search{max-width:none;width:100%;flex-basis:100%}.command-menu-content{position:fixed;left:12px;right:12px;top:auto;min-width:0;max-width:none}.command-menu-content input{font-size:16px}.commandbar-main .btn{min-height:40px}.team-toolbar #team-search,.team-toolbar #team-metrics{max-width:none;width:100%}#team-summary>.stat-box{min-width:calc(50% - 12px)}#team-table .team-mobile-metrics{display:block!important;padding:10px!important}#team-table .team-desktop-metric{display:none!important}.team-source-totals{gap:8px}.bulk-metrics{flex-basis:100%;line-height:1.8}.team-buyer-card{padding:12px}.team-buyer-numbers{line-height:1.7}}

/* Team readability: neutral rows, distinct periods, color reserved for results. */
#team-tab{--team-row:#15191f;--team-row-alt:#1b2028;--team-total:#192330;--team-total-alt:#202c3b;--team-line:#36404d;--team-text:#edf1f6;--team-muted:#a4afbd;--team-header:#242c37;--team-hover:#2a3442;--team-positive:#6ee7a0;--team-negative:#ff9299}
html[data-theme=light] #team-tab{--team-row:#fff;--team-row-alt:#f2f5f9;--team-total:#edf3fc;--team-total-alt:#e3ecf8;--team-line:#cbd5e1;--team-text:#172436;--team-muted:#536277;--team-header:#e6ecf3;--team-hover:#dce8f6;--team-positive:#147442;--team-negative:#bb2941}
#team-tab #team-table{border:1px solid var(--team-line);border-radius:12px;background:var(--team-row);scrollbar-color:#63728a var(--team-row)}
#team-tab #team-table table{border-collapse:separate;border-spacing:0}
#team-tab #team-table tbody tr.team-campaign-row td{background:var(--team-row);background-image:none;color:var(--team-text);border-bottom:1px solid var(--team-line);font-variant-numeric:tabular-nums;font-weight:500;padding-top:16px;padding-bottom:16px}
#team-tab #team-table tbody tr:nth-child(even) td{background:var(--team-row-alt)}
#team-tab #team-table tbody tr td.team-col-total{background:var(--team-total)}
#team-tab #team-table tbody tr:nth-child(even) td.team-col-total{background:var(--team-total-alt)}
#team-tab #team-table tbody tr:hover td{background:var(--team-hover);background-image:none}
#team-tab #team-table th{background:var(--team-header);color:var(--team-muted);border-bottom:1px solid var(--team-line);font-weight:650}
#team-tab #team-table th.team-period-today{background:var(--team-header);border-left:0;border-top:3px solid #6ad5ac}
#team-tab #team-table th.team-period-total{background:var(--team-total-alt);border-left:3px solid #708bab;border-top:3px solid #8eb6f0}
#team-tab #team-table .team-period-head span{color:var(--team-text);font-size:12px;letter-spacing:.06em}
#team-tab #team-table .team-period-head small{color:var(--team-muted);font-size:10px;font-weight:400;margin-top:5px}
#team-tab #team-table .team-col-total{border-left:0}
#team-tab #team-table .team-total-start{border-left:3px solid #708bab!important;padding-left:18px}
#team-tab #team-table .team-group-start{border-left:0}
#team-tab #team-table .team-desktop-metric{text-align:right;min-width:80px;border-right:1px solid #8798ae14}
#team-tab #team-table .team-key-metric{font-weight:750;min-width:105px}
#team-tab #team-table .metric-positive,#team-tab .mobile-metric-chip .metric-positive{color:var(--team-positive)}
#team-tab #team-table .metric-negative,#team-tab .mobile-metric-chip .metric-negative{color:var(--team-negative)}
#team-tab #team-table .campaign-name-main{color:var(--team-text);font-size:13px;font-weight:650;white-space:normal;overflow-wrap:anywhere}
#team-tab #team-table .campaign-subtitle{color:var(--team-muted);margin-top:5px;letter-spacing:.03em}
#team-tab #team-table .campaign-alert-bar{margin-top:8px;font-weight:500}
#team-tab #team-table .team-sticky-date{border-right:2px solid #708090;box-shadow:8px 0 12px -10px #000}
#team-tab #team-summary,#team-tab .team-buyer-card,#team-tab .team-table-guide{background:var(--team-row);border-color:var(--team-line)}
#team-tab #team-summary .stat-box{background:var(--team-row-alt);border:1px solid var(--team-line);border-radius:10px;padding:18px}
#team-tab #team-summary .stat-label,#team-tab .team-buyer-meta,#team-tab .team-source-totals,#team-tab .team-source-details{color:var(--team-muted)}
#team-tab .team-buyer-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 14px}
#team-tab .team-buyer-numbers span{display:flex;flex-direction:column;gap:7px;color:var(--team-muted);font-size:11px;font-weight:400}
#team-tab .team-buyer-numbers b{font-size:14px;color:var(--team-text);font-variant-numeric:tabular-nums;white-space:nowrap}
#team-tab .team-buyer-numbers b.num-green{color:var(--team-positive)}
#team-tab .team-buyer-numbers b.num-red{color:var(--team-negative)}
#team-tab .team-source-details,#team-tab .team-source-totals{border-color:var(--team-line)}
#team-tab .team-buyer-card.active{border-color:#8eb6f0}
@media(min-width:821px){
#team-tab #team-table .team-sticky-buyer{left:0;width:112px;min-width:112px;max-width:112px}
#team-tab #team-table .team-sticky-name{left:112px;width:264px;min-width:264px;max-width:264px}
#team-tab #team-table .team-sticky-status{left:376px;width:56px;min-width:56px;max-width:56px}
#team-tab #team-table .team-sticky-budget{left:432px;width:80px;min-width:80px;max-width:80px}
#team-tab #team-table .team-sticky-date{left:512px;width:112px;min-width:112px;max-width:112px}
}
@media(max-width:820px){
#team-tab #team-table tr.team-campaign-row{background:var(--team-row);border:1px solid var(--team-line);box-shadow:0 4px 14px #0002;margin-bottom:12px}
#team-tab #team-table tbody tr.team-campaign-row td{background:transparent;border-bottom:0;padding-top:10px;padding-bottom:10px}
#team-tab #team-table .team-sticky-date{border-right:0;box-shadow:none}
#team-tab .team-mobile-metrics .mobile-metric-chip{background:var(--team-row-alt);border-color:var(--team-line)}
#team-tab .team-mobile-metrics .mobile-metric-chip span{color:var(--team-muted)}
#team-tab .team-mobile-metrics .mobile-metric-chip strong{color:var(--team-text)}
#team-tab .team-buyer-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}
}
html[data-theme=light] #team-tab .team-toolbar input,html[data-theme=light] #team-tab .team-toolbar select,html[data-theme=light] #team-tab .team-toolbar label{background:#f7f9fc!important;color:#243348!important;border-color:#cbd5e1!important;color-scheme:light}
html[data-theme=light] #team-tab #team-table .campaign-alert-bar.critical{background:#fff0f1;color:#a52236;border-color:#ecabb5}
html[data-theme=light] #team-tab #team-table .campaign-alert-bar.high{background:#fff6e6;color:#85520b;border-color:#e5c48e}
html[data-theme=light] #team-tab #team-table .campaign-alert-bar.good{background:#eaf8ef;color:#226d3e;border-color:#a7d7b7}
html[data-theme=light] #team-tab .team-buyer-card,html[data-theme=light] #team-tab #team-summary .stat-box{border-color:#cbd5e1!important}
/* Personal views, connection checks and the team day overview. */
.operator-connections,#team-day-digest{padding:16px;border:1px solid #36404d;border-radius:12px;background:#15191f;margin-bottom:16px;color:#edf1f6}
.operator-connections>summary{cursor:pointer;font-size:13px}.operator-connections>summary span{color:#b1bfd0}.connection-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.connection-row{display:flex;gap:10px;align-items:flex-start;padding:10px 0;line-height:1.5}.connection-row b,.connection-row span,.connection-row small{display:block}.connection-row b{font-size:12px;color:#e5edf6}.connection-row div>span{font-size:12px;color:#bdc8d7}.connection-row small{font-size:10px;color:#99a7b9}.connection-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#94a3b8;margin-top:5px}.state-ok .connection-dot{background:#64db94}.state-error .connection-dot{background:#fb8693}.state-partial .connection-dot,.state-stale .connection-dot{background:#f4c16b}.connection-actions{display:flex;align-items:center;gap:15px;margin-top:10px}.connection-actions small{color:#99a7b9;max-width:600px}.digest-heading{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.digest-heading span{font-size:11px;color:#a4afbd}.digest-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.digest-grid>div{border-left:2px solid #526982;padding-left:12px}.digest-grid strong{font-size:23px;display:block}.digest-grid span{display:block;font-size:12px;color:#b8c4d4;margin-top:6px}#team-day-digest details summary{cursor:pointer;font-size:12px;color:#efc478}#team-day-digest ul{list-style:none;padding:0;margin-bottom:0}#team-day-digest li{display:flex;gap:12px;border-top:1px solid #36404d;padding:12px 0;font-size:12px;color:#b8c4d4}.digest-buyer{background:none;border:0;color:#a8cfff;font-weight:650;cursor:pointer;min-width:90px;text-align:left}.digest-good{font-size:12px;color:#80d6a0}.metric-positive{color:#6ee7a0}.metric-negative{color:#ff9299}
.saved-view-controls{display:flex;gap:8px;flex-wrap:wrap}.saved-view-controls select{max-width:210px}#view-editor{width:min(780px,calc(100vw - 24px));max-height:90vh;overflow:auto;background:#19202a;color:#edf1f6;border:1px solid #58677a;border-radius:14px;padding:22px;margin:auto}#view-editor::backdrop{background:#0009}.view-editor-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.view-editor-head h2{margin:0;font-size:20px}#view-editor>label{display:flex;gap:12px;align-items:center;font-size:13px;margin-bottom:14px}#view-name{flex:1}#view-editor p{font-size:12px;line-height:1.6;color:#aebdd0}#view-field-list{display:grid;gap:6px;max-height:45vh;overflow:auto}.view-field-row{display:flex;align-items:center;gap:8px;background:#242e3b;border:1px solid #3b4859;padding:9px;border-radius:7px}.view-field-row>label:first-of-type{flex:1;display:flex;gap:8px;font-size:12px}.view-field-row button{border:1px solid #516176;border-radius:4px;background:#19222e;color:#d7e2f0;width:25px;height:28px;cursor:pointer}.view-field-row input[type=number]{width:65px;background:#17202b;color:#edf1f6;border:1px solid #516176;padding:5px;border-radius:4px}.view-pin{font-size:11px;display:flex;align-items:center;gap:5px}.view-drag{cursor:grab;color:#a8bad0}.view-editor-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}#view-editor-error{color:#ff9da7;font-size:12px;margin-top:10px}.column-resize{position:absolute;right:0;top:0;bottom:0;width:7px;cursor:col-resize;z-index:5}.column-resize:hover{background:#8abaf066}th[data-col-field]{position:sticky}#active-table .view-pinned{background:#202a35!important}#team-tab #team-table .view-pinned{box-shadow:2px 0 0 #708bab}
html[data-theme=light] .operator-connections,html[data-theme=light] #team-day-digest,html[data-theme=light] #view-editor{background:#fff;color:#233247;border-color:#cad5e2}html[data-theme=light] .connection-row b{color:#233247}html[data-theme=light] .connection-row div>span,html[data-theme=light] .connection-row small,html[data-theme=light] .digest-grid span,html[data-theme=light] #team-day-digest li,html[data-theme=light] #view-editor p{color:#52677f}html[data-theme=light] .view-field-row{background:#eef3fa;border-color:#c8d5e5}html[data-theme=light] .view-field-row button,html[data-theme=light] .view-field-row input[type=number]{background:#fff;color:#243448}html[data-theme=light] .digest-buyer{color:#245d9b}html[data-theme=light] #active-table .view-pinned{background:#eff5fc!important}
@media(max-width:820px){.connection-list,.digest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.connection-actions{align-items:flex-start;flex-direction:column}.saved-view-controls{width:100%}.saved-view-controls select{flex:1;max-width:none}.view-field-row{flex-wrap:wrap}.view-field-row>label:first-of-type{min-width:130px}.view-pin{margin-left:auto}.connection-list{grid-template-columns:1fr}.digest-grid strong{font-size:20px}#team-day-digest li{flex-direction:column;gap:5px}}
