:root{
  --bg:#07101c;
  --panel:#0c1828;
  --panel-2:#101f33;
  --panel-3:#0a1422;
  --text:#f3f7fc;
  --muted:#8fa0b8;
  --muted-2:#687b96;
  --line:rgba(255,255,255,.09);
  --line-strong:rgba(255,255,255,.15);
  --blue:#8ba5ff;
  --mint:#64dfbd;
  --red:#ff7b87;
  --amber:#f7bd62;
  --shadow:0 22px 70px rgba(0,0,0,.27);
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{color-scheme:dark}
body{
  margin:0;
  min-width:320px;
  color:var(--text);
  background:
    radial-gradient(circle at 12% -5%,rgba(94,124,255,.14),transparent 31rem),
    radial-gradient(circle at 100% 8%,rgba(53,190,156,.08),transparent 28rem),
    var(--bg);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
}

button,input,select{font:inherit}
button,select{cursor:pointer}
a{color:inherit;text-decoration:none}
.skip-link{position:absolute;left:16px;top:-80px;z-index:100;padding:10px 14px;border-radius:10px;background:#fff;color:#06101d;font-weight:800}
.skip-link:focus{top:12px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.topbar{
  position:sticky;
  top:0;
  z-index:30;
  height:72px;
  padding:0 clamp(20px,4vw,54px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-bottom:1px solid var(--line);
  background:rgba(7,16,28,.83);
  backdrop-filter:blur(18px);
}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,var(--blue),var(--mint));box-shadow:0 8px 24px rgba(99,149,255,.2);color:#07101c;font-weight:950;font-size:18px}
.brand-copy{display:grid;line-height:1.08}
.brand-copy strong{font-size:16px;letter-spacing:.01em}
.brand-copy small{margin-top:4px;color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.topbar-meta{display:flex;align-items:center;gap:10px;color:#c6d0df;font-size:12px}
.live-indicator,.readonly-pill,.back-link{height:32px;display:inline-flex;align-items:center;padding:0 11px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.025)}
.live-indicator span{width:7px;height:7px;margin-right:7px;border-radius:50%;background:var(--mint);box-shadow:0 0 0 4px rgba(100,223,189,.09)}
.readonly-pill{border-color:rgba(139,165,255,.19);color:#cbd5ff;background:rgba(139,165,255,.07)}
.back-link:hover{border-color:var(--line-strong);background:rgba(255,255,255,.05)}

.shell{width:min(1480px,calc(100% - 48px));margin:0 auto;padding:46px 0 64px}
.page-heading{display:flex;justify-content:space-between;gap:32px;align-items:flex-end;margin-bottom:28px}
.eyebrow{color:#92a6c5;font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}
.page-heading h1{margin:7px 0 8px;font-size:clamp(32px,4vw,48px);line-height:1;letter-spacing:-.04em}
.page-heading p{margin:0;color:var(--muted);font-size:14px}
.read-only-note{max-width:440px;display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid rgba(100,223,189,.18);border-radius:15px;background:rgba(100,223,189,.045)}
.note-icon{width:22px;height:22px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:rgba(100,223,189,.13);color:var(--mint);font-weight:900;font-size:12px}
.read-only-note div{display:grid;gap:3px}
.read-only-note strong{font-size:13px;color:#daf9f0}
.read-only-note span{font-size:11px;line-height:1.5;color:#91aeaa}

.control-panel{display:grid;grid-template-columns:minmax(270px,1.7fr) minmax(190px,.7fr) auto;gap:12px;align-items:end;padding:18px;border:1px solid var(--line);border-radius:19px;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018));box-shadow:var(--shadow)}
.field{display:grid;gap:7px}
.field>span:first-child{font-size:11px;color:#b9c5d6;font-weight:750}
.field small{color:var(--muted-2);font-size:10px}
.field select,.field input,.sort-box select,.search-box{
  width:100%;height:44px;border:1px solid var(--line);border-radius:12px;outline:none;background:#091522;color:var(--text);transition:border-color .2s,box-shadow .2s,background .2s;
}
.field select,.sort-box select{padding:0 42px 0 13px;appearance:none}
.field input{padding:0 13px;color-scheme:dark}
.select-wrap{position:relative}
.select-wrap::after,.sort-box::after{content:"⌄";position:absolute;right:14px;top:50%;transform:translateY(-56%);color:var(--muted);pointer-events:none;font-size:16px}
.field select:focus,.field input:focus,.sort-box select:focus,.search-box:focus-within{border-color:rgba(139,165,255,.58);box-shadow:0 0 0 3px rgba(139,165,255,.1)}
select:disabled,input:disabled,button:disabled{cursor:not-allowed;opacity:.55}
.refresh-button{height:44px;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;background:linear-gradient(135deg,#f4f7ff,#cfd9ff);color:#0c1728;font-weight:850;box-shadow:0 8px 24px rgba(139,165,255,.15)}
.refresh-button:not(:disabled):hover{transform:translateY(-1px)}
.refresh-button.is-loading .refresh-icon{animation:spin .8s linear infinite}
.secondary-button{height:40px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(139,165,255,.24);border-radius:11px;background:rgba(139,165,255,.07);color:#d5ddff;font-size:11px;font-weight:800;white-space:nowrap;text-decoration:none}
.secondary-button:not(:disabled):hover{border-color:rgba(139,165,255,.48);background:rgba(139,165,255,.14)}
.executive-action-row{display:flex;align-items:flex-end;gap:9px}

.status-message{min-height:22px;padding:10px 2px 0;color:var(--muted);font-size:11px}
.status-message.is-error{color:#ffadb5}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:12px 0}
.metric-card{min-height:126px;padding:19px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.043),rgba(255,255,255,.016));position:relative;overflow:hidden}
.metric-card::after{content:"";position:absolute;width:120px;height:120px;right:-56px;bottom:-70px;border-radius:50%;background:rgba(139,165,255,.06)}
.metric-label{display:flex;align-items:center;gap:9px;color:#aebcd0;font-size:11px;font-weight:700}
.metric-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:9px;background:rgba(139,165,255,.1);color:#b8c7ff;font-size:12px;font-weight:900}
.roas-icon{background:rgba(100,223,189,.09);color:#86ebd0}.ads-icon{background:rgba(247,189,98,.09);color:#ffd08a}.active-icon{background:rgba(100,223,189,.09);color:var(--mint);font-size:8px}
.metric-card strong{display:block;margin-top:15px;font-size:29px;line-height:1;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.metric-card small{display:block;margin-top:9px;color:var(--muted-2);font-size:10px}

.recommendation-strip{display:grid;grid-template-columns:1.2fr repeat(4,1fr);gap:0;margin:12px 0;border:1px solid var(--line);border-radius:18px;background:var(--panel-3);overflow:hidden}
.recommendation-intro,.recommendation-count{min-height:96px;padding:17px 19px;display:flex;justify-content:center;flex-direction:column;border-right:1px solid var(--line)}
.recommendation-count:last-child{border-right:0}
.recommendation-intro strong{margin-top:5px;font-size:15px}.recommendation-intro small{margin-top:3px;color:var(--muted-2);font-size:10px}
.recommendation-count{flex-direction:row;align-items:center;justify-content:flex-start;gap:13px}
.recommendation-count>span{min-width:34px;font-size:26px;font-weight:850;font-variant-numeric:tabular-nums}
.recommendation-count small{color:var(--muted);font-size:10px;line-height:1.45}
.recommendation-count.danger>span{color:var(--red)}.recommendation-count.warning>span{color:var(--amber)}.recommendation-count.stable>span{color:#b6c2d3}.recommendation-count.growth>span{color:var(--mint)}

.data-card{margin-top:12px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.013));box-shadow:var(--shadow);overflow:hidden}
.table-toolbar{min-height:102px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}
.table-toolbar h2{margin:5px 0 3px;font-size:20px;letter-spacing:-.02em}.table-toolbar p{margin:0;color:var(--muted-2);font-size:10px}
.toolbar-controls{display:flex;gap:9px;align-items:center}
.search-box{width:min(330px,34vw);display:flex;align-items:center;gap:8px;padding:0 12px;color:var(--muted)}
.search-box input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:12px}
.search-box input::placeholder{color:#62738c}
.sort-box{width:180px;position:relative}.sort-box select{font-size:11px}
.table-wrap{width:100%;overflow:auto}
table{width:100%;min-width:1110px;border-collapse:collapse;font-size:11px}
th{height:44px;padding:0 17px;text-align:left;color:#74869f;font-size:9px;letter-spacing:.08em;text-transform:uppercase;background:#091421;border-bottom:1px solid var(--line);white-space:nowrap}
td{height:68px;padding:10px 17px;border-bottom:1px solid rgba(255,255,255,.055);vertical-align:middle;color:#bdc8d8}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:rgba(139,165,255,.025)}
.numeric{text-align:right;font-variant-numeric:tabular-nums}.cell-primary{display:block;max-width:260px;color:#eef3fa;font-size:11px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cell-secondary{display:block;margin-top:4px;color:#64758d;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metric-number{color:#f3f6fb;font-weight:800}.roas-number{display:inline-flex;min-width:52px;justify-content:flex-end;font-weight:850}
.status-badge,.suggestion-badge{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;font-size:9px;font-weight:800;white-space:nowrap;border:1px solid var(--line)}
.status-badge::before{content:"";width:6px;height:6px;margin-right:6px;border-radius:50%;background:#708199}
.status-badge.active{color:#9cebd6;background:rgba(100,223,189,.065);border-color:rgba(100,223,189,.14)}.status-badge.active::before{background:var(--mint)}
.status-badge.paused{color:#ffd18d;background:rgba(247,189,98,.065);border-color:rgba(247,189,98,.14)}.status-badge.paused::before{background:var(--amber)}
.status-badge.disabled{color:#ffadb5;background:rgba(255,123,135,.065);border-color:rgba(255,123,135,.14)}.status-badge.disabled::before{background:var(--red)}
.suggestion-badge.pause{color:#ffb0b7;background:rgba(255,123,135,.08);border-color:rgba(255,123,135,.16)}
.suggestion-badge.lower{color:#ffd28f;background:rgba(247,189,98,.08);border-color:rgba(247,189,98,.16)}
.suggestion-badge.hold{color:#c1ccdc;background:rgba(166,181,203,.06)}
.suggestion-badge.raise{color:#9cebd6;background:rgba(100,223,189,.075);border-color:rgba(100,223,189,.16)}
.suggestion-badge.unknown{color:#8495ad;background:rgba(255,255,255,.025)}

.loading-state,.error-state,.empty-state{min-height:260px;padding:40px;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:var(--muted)}
.loading-state:not([hidden]),.error-state:not([hidden]),.empty-state:not([hidden]){display:flex}
.loading-state span,.empty-state p,.error-state p{margin:12px 0 0;font-size:11px;color:var(--muted-2)}
.loading-line{width:min(520px,80%);height:12px;margin:5px;border-radius:999px;background:linear-gradient(90deg,#132238 25%,#1d304d 50%,#132238 75%);background-size:220% 100%;animation:shimmer 1.5s infinite}.loading-line:nth-child(2){width:min(440px,68%)}.loading-line:nth-child(3){width:min(360px,56%)}
.error-state{flex-direction:row;gap:15px;text-align:left}.error-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:rgba(255,123,135,.1);color:var(--red);font-weight:900}.error-state strong,.empty-state strong{color:#dce4ef}.error-state button{margin-left:14px;padding:9px 13px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.04);color:var(--text)}
.empty-state>span{font-size:30px;color:#50637e}

.rule-card{margin-top:12px;padding:22px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.018);display:flex;align-items:center;justify-content:space-between;gap:30px}
.rule-card h2{margin:5px 0 7px;font-size:18px}.rule-card p{max-width:780px;margin:0;color:var(--muted);font-size:11px;line-height:1.65}
.rule-list{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.rule-list span{display:inline-flex;align-items:center;min-height:30px;padding:0 9px;border:1px solid var(--line);border-radius:9px;color:#aebbd0;font-size:9px;white-space:nowrap}.rule-list i{width:6px;height:6px;margin-right:7px;border-radius:50%}.danger-dot{background:var(--red)}.warning-dot{background:var(--amber)}.stable-dot{background:#9cabbe}.growth-dot{background:var(--mint)}
.dashboard-footer{min-height:70px;padding:20px clamp(24px,4vw,54px);display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);color:#65768f;font-size:10px}.dashboard-footer a:hover{color:#aab8cb}
.noscript{position:fixed;bottom:20px;left:20px;right:20px;padding:14px;border-radius:12px;background:#4c2025;color:#fff;text-align:center}

@keyframes spin{to{transform:rotate(360deg)}}
@keyframes shimmer{to{background-position:-220% 0}}
@media (max-width:1050px){.metric-grid{grid-template-columns:repeat(2,1fr)}.recommendation-strip{grid-template-columns:1fr 1fr}.recommendation-intro{grid-column:1/-1;border-bottom:1px solid var(--line)}.recommendation-count:nth-child(3){border-right:0}.page-heading{align-items:flex-start;flex-direction:column}.read-only-note{max-width:none;width:100%}.rule-card{align-items:flex-start;flex-direction:column}.rule-list{justify-content:flex-start}}
@media (max-width:760px){.topbar{padding:0 18px}.live-indicator,.back-link{display:none}.shell{width:min(100% - 28px,1480px);padding-top:30px}.control-panel{grid-template-columns:1fr}.refresh-button{width:100%}.table-toolbar{align-items:flex-start;flex-direction:column}.toolbar-controls{width:100%;flex-direction:column}.search-box,.sort-box{width:100%}.recommendation-strip{grid-template-columns:1fr}.recommendation-intro,.recommendation-count{grid-column:auto;border-right:0;border-bottom:1px solid var(--line)}.recommendation-count:last-child{border-bottom:0}.dashboard-footer{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:34px}}
@media (max-width:500px){.metric-grid{grid-template-columns:1fr}.topbar-meta{gap:6px}.readonly-pill{font-size:10px}.brand-copy small{display:none}.page-heading{margin-bottom:20px}.control-panel{padding:14px}.metric-card{min-height:112px}.recommendation-count{min-height:74px}.error-state{align-items:flex-start;flex-direction:column}.error-state button{margin-left:0}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

.hourly-section{margin:14px 0 18px;padding:20px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(160deg,rgba(100,223,189,.035),rgba(255,255,255,.012));box-shadow:var(--shadow)}
.hourly-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.hourly-heading h2{margin:6px 0 5px;font-size:22px;letter-spacing:-.025em}
.hourly-heading p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.hourly-target{display:grid;gap:7px;min-width:190px;color:#c5d1e0;font-size:11px;font-weight:750}
.hourly-target small{color:var(--muted-2);font-size:9px;font-weight:500}
.hourly-target input{height:40px;padding:0 12px;border:1px solid var(--line);border-radius:11px;outline:0;background:#091522;color:var(--text);font-variant-numeric:tabular-nums}
.hourly-target input:focus{border-color:rgba(100,223,189,.45);box-shadow:0 0 0 3px rgba(100,223,189,.08)}
.hourly-note{display:flex;gap:9px;align-items:flex-start;margin:16px 0;padding:10px 12px;border:1px solid rgba(139,165,255,.12);border-radius:11px;background:rgba(139,165,255,.035);color:#9baec8}
.hourly-note>span{width:17px;height:17px;display:grid;place-items:center;flex:none;border-radius:50%;background:rgba(139,165,255,.12);color:#b8c7ff;font-size:10px;font-weight:800}
.hourly-note p{margin:0;font-size:10px;line-height:1.6}
.hourly-state,.hourly-empty,.hourly-error{min-height:170px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:26px;text-align:center;color:var(--muted)}
.hourly-state span,.hourly-empty,.hourly-error p{font-size:11px;color:var(--muted-2)}
.hourly-error{border:1px solid rgba(255,123,135,.16);border-radius:13px;background:rgba(255,123,135,.035)}
.hourly-error strong{color:#ffc0c6;font-size:13px}.hourly-error p{max-width:760px;margin:0;line-height:1.6}
.hourly-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}
.hourly-metric{min-height:102px;padding:15px;border:1px solid var(--line);border-radius:14px;background:rgba(8,19,33,.68)}
.hourly-metric>span{display:block;color:#aab9cd;font-size:10px;font-weight:700}
.hourly-metric strong{display:block;margin-top:12px;color:#f3f7fc;font-size:23px;line-height:1;font-variant-numeric:tabular-nums}
.hourly-metric small{display:block;margin-top:7px;color:var(--muted-2);font-size:9px}
.hourly-metric.target-metric strong{color:var(--mint)}
.hourly-chart-card,.hourly-table-card{margin-top:11px;border:1px solid var(--line);border-radius:15px;background:rgba(8,19,33,.58);overflow:hidden}
.hourly-chart-heading,.hourly-table-heading{min-height:58px;padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}
.hourly-chart-heading>div:first-child,.hourly-table-heading>div:first-child{display:grid;gap:4px}
.hourly-chart-heading strong,.hourly-table-heading strong{font-size:12px;color:#e8eef8}
.hourly-chart-heading small,.hourly-table-heading small{font-size:9px;color:var(--muted-2)}
.hourly-legend{display:flex;gap:15px;color:#9cacc2;font-size:9px}
.hourly-legend span{display:flex;align-items:center;gap:6px}
.hourly-legend i{width:9px;height:9px;border-radius:3px;display:inline-block}
.legend-spend{background:#748bff}.legend-roas{background:#f7bd62;border-radius:50%!important}
.hourly-chart-scroll{width:100%;overflow-x:auto}
#hourly-chart{display:block;width:100%;min-width:680px;height:auto;max-height:300px}
.chart-grid{stroke:rgba(255,255,255,.085);stroke-width:1}
.chart-label{fill:#7789a3;font-size:10px;font-family:inherit}
.chart-spend-bar{fill:url(#hourlySpendGradient);opacity:.82}
.chart-roas-line{fill:none;stroke:#f7bd62;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.chart-roas-dot{fill:#f7bd62;stroke:#0c1828;stroke-width:2}
.hourly-chart-footnote{padding:0 16px 12px;color:var(--muted-2);font-size:9px}
.hourly-table-heading>span{color:var(--muted-2);font-size:9px;text-align:right}
.hourly-table-wrap{max-height:500px;overflow:auto}
.hourly-table{width:100%;min-width:760px;border-collapse:collapse;font-size:10px}
.hourly-table th{position:sticky;top:0;z-index:1;height:38px;padding:0 14px;background:#091421;color:#74869f;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.hourly-table td{height:42px;padding:7px 14px;border-bottom:1px solid rgba(255,255,255,.045);color:#bcc8d9}
.hourly-table tr:last-child td{border-bottom:0}
.hourly-table tr:hover{background:rgba(139,165,255,.035)}
.hourly-table .hour-label{color:#e1e9f5;font-weight:800;font-variant-numeric:tabular-nums}
.hourly-table .hour-spend{color:#f0f4fb;font-weight:750;font-variant-numeric:tabular-nums}
.hourly-table .coverage-note{display:block;margin-top:3px;color:#788aa3;font-size:8px}
.hourly-table .hour-share{color:#aab9cd;font-variant-numeric:tabular-nums}
.hourly-table .hourly-advice{font-size:9px;font-weight:750;white-space:nowrap}
.hourly-advice.pause{color:var(--red)}.hourly-advice.lower{color:var(--amber)}.hourly-advice.hold{color:#bcc8d9}.hourly-advice.raise{color:var(--mint)}.hourly-advice.unknown{color:#7789a3}
@media (max-width:1050px){.hourly-metrics{grid-template-columns:repeat(2,1fr)}}
@media (max-width:760px){.hourly-section{padding:14px}.hourly-heading{align-items:flex-start;flex-direction:column}.hourly-target{width:100%}.hourly-chart-heading,.hourly-table-heading{align-items:flex-start;flex-direction:column}.hourly-table-heading>span{text-align:left}}
@media (max-width:500px){.hourly-metrics{grid-template-columns:1fr}.hourly-metric{min-height:88px}.hourly-chart-heading{gap:9px}}

.executive-section{display:grid;gap:14px;margin:0 0 20px}
.executive-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:20px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(150deg,rgba(100,223,189,.055),rgba(139,165,255,.035));box-shadow:var(--shadow)}
.executive-toolbar h2{margin:6px 0 0;font-size:23px;letter-spacing:-.025em}
.executive-controls{display:flex;align-items:flex-end;gap:10px}
.executive-date{display:grid;gap:7px;min-width:190px;color:#c5d1e0;font-size:10px;font-weight:750}
.executive-date input{height:44px;padding:0 12px;border:1px solid var(--line);border-radius:11px;outline:0;background:#091522;color:var(--text);color-scheme:dark}
.executive-date input:focus{border-color:rgba(100,223,189,.45);box-shadow:0 0 0 3px rgba(100,223,189,.08)}
.executive-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin:0}
.executive-metrics .metric-card{min-width:0}
.executive-hourly{padding:20px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(160deg,rgba(100,223,189,.035),rgba(255,255,255,.012));box-shadow:var(--shadow)}
.executive-subheading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px}
.executive-subheading h3{margin:6px 0 5px;font-size:21px;letter-spacing:-.025em}
.executive-subheading p{margin:0;color:var(--muted);font-size:10px;line-height:1.55}
.executive-currency{min-width:210px}
.executive-currency select{height:40px;padding:0 12px;border:1px solid var(--line);border-radius:11px;outline:0;background:#091522;color:var(--text)}
.overview-hourly-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.overview-hourly-metrics>div{min-height:86px;padding:14px;border:1px solid var(--line);border-radius:13px;background:rgba(8,19,33,.68)}
.overview-hourly-metrics span{display:block;color:#aab9cd;font-size:10px;font-weight:700}
.overview-hourly-metrics strong{display:block;margin-top:12px;color:#f3f7fc;font-size:21px;line-height:1;font-variant-numeric:tabular-nums}
.overview-chart-spend-bar{fill:url(#overviewSpendGradient);opacity:.84}
#overview-hourly-chart{display:block;width:100%;min-width:680px;height:auto;max-height:300px}
.overview-hourly-table{min-width:650px}
.account-overview-card{margin-top:0}
.account-overview-card .table-toolbar{min-height:84px}
.account-overview-card table{min-width:850px}
.account-overview-card td{height:60px}
.account-overview-card .cell-primary{max-width:340px}
.overview-account-open{min-height:32px;padding:0 12px;border:1px solid rgba(139,165,255,.24);border-radius:10px;background:rgba(139,165,255,.08);color:#d5ddff;font-size:10px;font-weight:800;white-space:nowrap}
.overview-account-open:hover{border-color:rgba(139,165,255,.48);background:rgba(139,165,255,.14)}
.table-pagination{display:flex;align-items:center;justify-content:center;gap:14px;padding:14px 18px;border-top:1px solid var(--line);color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}
.pagination-button{min-height:32px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:rgba(255,255,255,.035);color:#cbd5e4;font-size:10px;font-weight:750}
.pagination-button:not(:disabled):hover{border-color:var(--line-strong);background:rgba(255,255,255,.08)}
.account-permission-dialog{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(1,7,14,.74);backdrop-filter:blur(10px)}
.account-permission-card{width:min(760px,100%);max-height:min(760px,calc(100vh - 48px));display:flex;flex-direction:column;border:1px solid var(--line-strong);border-radius:20px;background:#0b1726;box-shadow:0 28px 100px rgba(0,0,0,.48);overflow:hidden}
.account-permission-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 18px;border-bottom:1px solid var(--line)}
.account-permission-heading h2{margin:6px 0 6px;font-size:20px}.account-permission-heading p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}
.modal-close-button{width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:rgba(255,255,255,.035);color:#c8d2e2;font-size:20px;line-height:1}
.modal-close-button:hover{background:rgba(255,255,255,.09)}
.account-permission-toolbar{display:flex;align-items:center;gap:10px;padding:14px 24px;border-bottom:1px solid var(--line)}
.account-permission-search{width:auto;flex:1;height:40px}.account-permission-actions{display:flex;gap:8px}
.account-permission-auth{display:grid;gap:10px;padding:14px 24px;border-bottom:1px solid var(--line);background:rgba(77,223,190,.035)}
.account-permission-auth>div:first-child{display:grid;gap:4px}.account-permission-auth strong{color:#e5f7f2;font-size:12px}.account-permission-auth p,.account-permission-auth small{margin:0;color:var(--muted);font-size:10px;line-height:1.55}.account-permission-auth-actions{display:flex;flex-wrap:wrap;gap:8px}.account-permission-auth-actions .secondary-button{height:36px}
.account-permission-list{min-height:160px;overflow:auto;padding:8px 24px}
.account-permission-item{display:flex;align-items:center;gap:11px;padding:11px 4px;border-bottom:1px solid rgba(255,255,255,.05);cursor:pointer}
.account-permission-item:last-child{border-bottom:0}.account-permission-item input{width:16px;height:16px;accent-color:var(--mint)}
.account-permission-copy{min-width:0;display:grid;gap:4px}.account-permission-copy strong{color:#edf3fb;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-permission-copy small{color:var(--muted-2);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-permission-empty{padding:32px 0;text-align:center;color:var(--muted-2);font-size:11px}
.account-permission-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}.account-permission-footer>div{display:flex;gap:8px}
.live-hourly-section{padding:20px;border:1px solid rgba(100,223,189,.22);border-radius:20px;background:linear-gradient(160deg,rgba(100,223,189,.065),rgba(255,255,255,.012));box-shadow:var(--shadow)}
.live-hourly-status{padding:8px 11px;border:1px solid rgba(100,223,189,.18);border-radius:999px;color:#9be9d1;background:rgba(100,223,189,.06);font-size:10px;font-weight:750;white-space:nowrap}
.live-hourly-metrics{margin-top:14px}
.live-hourly-metrics>div:first-child strong{color:#c3ccff}
.live-hourly-metrics>div:nth-child(2) strong{color:#8bf0cf}
.live-hourly-metrics>div:nth-child(3) strong{color:#f7bd62}
.live-hourly-metrics>div:nth-child(4) strong{color:#d9e3f0;font-size:18px}
.live-chart-spend-bar{fill:url(#liveSpendGradient);opacity:.78}
.live-chart-spend-bar.is-live{fill:#8bf0cf;opacity:1;filter:drop-shadow(0 0 5px rgba(139,240,207,.28))}
.live-chart-roas-line{fill:none;stroke:#f7bd62;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.live-chart-roas-dot{fill:#f7bd62;stroke:#0c1828;stroke-width:2}
.live-chart-roas-dot.is-live{r:4.5;fill:#ffd895;stroke:#f7bd62}
.live-hour-row{background:rgba(100,223,189,.055)}
.live-status{font-size:9px;font-weight:800;white-space:nowrap}
.live-status.live{color:var(--mint)}
.live-status.final{color:#cbd5ff}
.live-status.no_data{color:var(--muted-2)}
.live-hourly-table{min-width:820px}
.live-hourly-table td:last-child{color:var(--muted-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.project-signal-section{margin:14px 0 18px;padding:20px;border:1px solid rgba(139,165,255,.22);border-radius:20px;background:linear-gradient(160deg,rgba(139,165,255,.055),rgba(255,255,255,.012));box-shadow:var(--shadow)}
.project-signal-status{padding:8px 11px;border:1px solid rgba(139,165,255,.2);border-radius:999px;color:#c4d0ff;background:rgba(139,165,255,.07);font-size:10px;font-weight:750;white-space:nowrap}
.project-signal-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.project-signal-metrics>div{min-height:86px;padding:14px;border:1px solid var(--line);border-radius:13px;background:rgba(8,19,33,.68)}
.project-signal-metrics span{display:block;color:#aab9cd;font-size:10px;font-weight:700}
.project-signal-metrics strong{display:block;margin-top:12px;color:#f3f7fc;font-size:21px;line-height:1;font-variant-numeric:tabular-nums}
.project-signal-metrics small{display:block;margin-top:7px;color:var(--muted-2);font-size:9px}
.project-signal-table{min-width:930px}
.project-signal-table td{height:58px}
.project-signal-good-row{background:rgba(100,223,189,.045)}
.project-trend,.project-signal-badge{display:inline-flex;align-items:center;min-height:25px;padding:0 8px;border:1px solid var(--line);border-radius:999px;font-size:9px;font-weight:800;white-space:nowrap}
.project-trend.rising{color:var(--mint);border-color:rgba(100,223,189,.18);background:rgba(100,223,189,.07)}
.project-trend.stable{color:#cbd5ff;background:rgba(139,165,255,.06)}
.project-trend.falling{color:var(--red);border-color:rgba(255,123,135,.18);background:rgba(255,123,135,.06)}
.project-trend.not_ready{color:var(--muted-2)}
.project-signal-badge.good_scale{color:#9cebd6;border-color:rgba(100,223,189,.2);background:rgba(100,223,189,.08)}
.project-signal-badge.stable{color:#cbd5ff;border-color:rgba(139,165,255,.18);background:rgba(139,165,255,.07)}
.project-signal-badge.watch,.project-signal-badge.revenue_pending{color:#ffd28f;border-color:rgba(247,189,98,.18);background:rgba(247,189,98,.07)}
.project-signal-badge.decaying{color:#ffb0b7;border-color:rgba(255,123,135,.18);background:rgba(255,123,135,.07)}
.project-signal-badge.insufficient,.project-signal-badge.no_data{color:#8798af;background:rgba(255,255,255,.025)}
.project-sample{color:#aebbd0;font-variant-numeric:tabular-nums}
.account-row-error{display:block;margin-top:4px;color:#ffadb5;font-size:9px;white-space:normal}
.account-detail{margin-top:25px;padding-top:2px;scroll-margin-top:88px}
.detail-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 14px;padding:18px 20px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.025)}
.detail-heading h2{margin:6px 0 4px;font-size:22px}
.detail-heading p{margin:0;color:var(--muted);font-size:10px}
.back-overview-button{height:38px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.04);color:#d0daea;font-size:10px;font-weight:750;white-space:nowrap}
.back-overview-button:hover{border-color:var(--line-strong);background:rgba(255,255,255,.07)}
.metric-icon.recovery-icon{background:rgba(100,223,189,.09);color:#86ebd0}
.overview-partial-warning{color:#f8d89f}
@media (max-width:1050px){.executive-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-hourly-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.executive-toolbar,.executive-subheading,.detail-heading{align-items:flex-start;flex-direction:column}.executive-controls{width:100%;align-items:stretch;flex-direction:column}.executive-action-row{width:100%;flex-direction:column}.executive-action-row .secondary-button,.executive-action-row .refresh-button{width:100%}.executive-date{min-width:0}.executive-controls .refresh-button{width:100%}.executive-hourly,.live-hourly-section{padding:14px}.executive-currency{width:100%}.live-hourly-status{white-space:normal}.account-overview-card .table-toolbar{align-items:flex-start}.detail-heading{padding:16px}.back-overview-button{width:100%}.account-permission-dialog{padding:12px}.account-permission-heading,.account-permission-toolbar,.account-permission-auth,.account-permission-footer{padding-left:16px;padding-right:16px}.account-permission-toolbar{align-items:stretch;flex-direction:column}.account-permission-search{width:100%}.account-permission-actions{width:100%}.account-permission-actions .secondary-button{flex:1}.account-permission-auth-actions{width:100%;flex-direction:column}.account-permission-auth-actions .secondary-button{width:100%}.account-permission-list{padding-left:16px;padding-right:16px}.account-permission-footer{align-items:stretch;flex-direction:column}.account-permission-footer>div{width:100%}.account-permission-footer .secondary-button,.account-permission-footer .refresh-button{flex:1}}
@media (max-width:1050px){.project-signal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.executive-toolbar,.executive-subheading,.detail-heading{align-items:flex-start;flex-direction:column}.executive-controls{width:100%;align-items:stretch;flex-direction:column}.executive-date{min-width:0}.executive-controls .refresh-button{width:100%}.executive-hourly,.live-hourly-section,.project-signal-section{padding:14px}.executive-currency{width:100%}.live-hourly-status,.project-signal-status{white-space:normal}.account-overview-card .table-toolbar{align-items:flex-start}.detail-heading{padding:16px}.back-overview-button{width:100%}}
@media (max-width:500px){.executive-metrics,.overview-hourly-metrics,.project-signal-metrics{grid-template-columns:1fr}.executive-toolbar{padding:16px}.executive-toolbar h2{font-size:20px}.executive-hourly,.live-hourly-section,.project-signal-section{padding:12px}.overview-hourly-metrics>div{min-height:76px}.overview-hourly-metrics strong{font-size:20px}}
