/* Scoped after the theme: :is() rules in the shared theme carry high specificity. */
body.sio-dark #content .ml-workspace{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px}
body.sio-dark #content .ml-workspace>.ml-toolbar{grid-column:2;grid-row:1;display:flex;align-items:center;gap:6px;width:auto;min-height:0;padding:0;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none}
body.sio-dark #content .ml-workspace>.ml-context-line{grid-column:1;grid-row:1;align-self:center;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px 10px;min-height:0;padding:0;margin:0;background:transparent;border:0;box-shadow:none;color:#c5d5e6;font-size:11px;line-height:1.4}
body.sio-dark #content .ml-workspace .ml-currency-note{display:inline-flex;align-items:center;white-space:nowrap;padding:4px 9px;background:#20313e;border:1px solid #405567;border-radius:999px;color:#dcecf8;font-size:10px;font-weight:600}
body.sio-dark #content .ml-workspace .ml-query-status{color:#b8ccde;font-size:11px;background:none}
body.sio-dark #content .ml-workspace :is(#ml-section-content,.amazon-view-body,.amazon-workspace-footer,.amazon-history){grid-column:1/-1;min-width:0}
body.sio-dark #content .ml-workspace .ml-range-form{width:auto;flex:none;margin:0;gap:6px}
body.sio-dark #content .ml-workspace .sio-date-trigger{min-height:40px;padding:7px 12px;gap:8px;border-radius:999px;background:#223443;border:1px solid #53718b;color:#eaf4ff;box-shadow:none}
body.sio-dark #content .ml-workspace .sio-date-trigger small{font-size:9px;color:#bbcede}
body.sio-dark #content .ml-workspace .sio-date-trigger b{font-size:12px;color:#eff7ff}
body.sio-dark #content .ml-workspace .ml-refresh{min-height:36px;padding:7px 13px;border-radius:999px;background:#263b4d;color:#dcedff;border:1px solid #526e88;font-size:11px}
body.sio-dark #content .ml-workspace .ml-refresh:disabled{opacity:.75}
body.sio-dark #content .ml-workspace .ml-mix-value small{display:inline-flex;align-items:center;justify-content:center;padding:3px 8px;border-radius:999px;background:#304859;border:1px solid #57748b;color:#f1f8ff;line-height:1.25;font-size:11px}
body.sio-dark #content .ml-workspace .ml-tile-metrics>.ml-tile-ad{padding:8px 11px;border-radius:16px;background:#423919;border:1px solid #8b7835;color:#ffe58c}
body.sio-dark #content .ml-workspace .ml-tile-ad :is(b,small){color:#ffe58c}
/* Both marketplace listing cards share this hover and keyboard-focus overlay. */
body.sio-dark #content .ml-workspace .ml-tile-peek{background:#1b2b38;color:#c5d9e9;backdrop-filter:none}
body.sio-dark #content .ml-workspace .ml-tile-peek>b{color:#b6dcff}
body.sio-dark #content .ml-workspace .ml-tile-peek>span{color:#c5d9e9}
body.sio-dark #content .ml-workspace .ml-tile-peek strong{color:#f1f8ff}
body.sio-dark #content .ml-workspace .ml-tile-peek>small{color:#c4d7e7}
body.sio-dark #content .ml-workspace :is(.ml-tile-badge,.ml-ad-state).is-pending{border-radius:999px;background:#463d1e;color:#ffe58c;border:1px solid #a18a3c}
body.sio-dark #content .ml-workspace .ml-options{border:0;background:transparent;min-width:0}
body.sio-dark #content .ml-workspace .ml-options>summary{display:flex;justify-content:center;align-items:center;min-height:38px;border-radius:999px;background:#293e50;border:1px solid #5b7992;color:#eef6ff;padding:8px 15px;font-size:12px;list-style:none}
body.sio-dark #content .ml-workspace .ml-options>summary:after{content:'⌄';margin-left:10px;color:#cbe8ff}
body.sio-dark #content .ml-workspace .ml-options[open]>div{background:#1c2b38;border:1px solid #506a80;border-radius:16px;padding:14px;color:#d7e6f4;box-shadow:0 12px 32px #0005}
body.sio-dark #content .ml-workspace :is(.ml-listing-controls,.ml-options) :is(label,p){color:#bed2e4}
body.sio-dark #content .ml-workspace :is(.ml-listing-controls,.ml-options,.ml-promo-controls) :is(input,select){background:#1d2c39;color:#e6f1fc;border-color:#526c84;border-radius:12px}
body.sio-dark #content .ml-workspace .ml-summary-query-note{display:flex;align-items:flex-start;gap:12px;min-height:0;padding:8px 11px;margin:0 0 10px;background:#24313d;border:1px solid #526777;border-radius:12px;text-align:left;font-size:12px;color:#cedce9}
body.sio-dark #content .ml-workspace .ml-summary-query-note details{flex:1;background:none;border:0;padding:0;min-width:0}
body.sio-dark #content .ml-workspace .ml-summary-query-note summary{display:list-item;padding:0;color:#ffdf68;font-size:12px}
body.sio-dark #content .ml-workspace .ml-summary-query-note p{margin:6px 0 0;color:#cbdcea}
body.sio-dark #content .ml-workspace .ml-summary-query-note button{min-height:20px;padding:0;flex:none;background:none;color:#b6dcff}
.ml-ad-performance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
body.sio-dark #content .ml-workspace .ml-ad-performance-card{padding:14px;border-radius:18px;background:#1b2935;border:1px solid #496175;min-width:0}
.ml-ad-performance-card .ml-ad-tile-head{margin-bottom:12px}
body.sio-dark #content .ml-workspace .ml-ad-performance-card h3{color:#eff6ff;font-size:14px}
.ml-ad-performance-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ml-ad-performance-stats>div{min-width:0;padding:9px 10px;background:#263a4b;border:1px solid #3d566c;border-radius:12px}
body.sio-dark #content .ml-workspace .ml-ad-performance-stats :is(small,b){display:block;background:none;color:#c9dced;font-size:11px}
body.sio-dark #content .ml-workspace .ml-ad-performance-stats b{font-size:19px;color:#eff8ff;letter-spacing:-.2px}
body.sio-dark #content .ml-workspace .ml-ad-performance-stats .is-ratio{background:#243e4b;border-color:#4a7385}
body.sio-dark #content .ml-workspace .ml-ad-performance-stats .is-ratio b{color:#a9e9ff}
body.sio-dark #content .ml-workspace .ml-ad-performance-card details{font-size:11px;color:#c7d8e8;margin-top:10px}
body.sio-dark #content .ml-workspace .ml-ad-performance-card summary{color:#b8dcff}
.ml-ad-analysis-header{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:18px 0 0}
.ml-ad-analysis-header h2{margin:0}
.ml-ad-analysis-header small,.ml-ad-analysis-note{font-size:11px;color:#c3d3e3}
.ml-ad-analysis-note{margin:10px 0;line-height:1.5}
.ml-ad-detail-ratios{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.ml-ad-detail-ratios>div{background:#213746;border:1px solid #506e84;border-radius:14px;padding:12px;color:#cee0ef}
.ml-ad-detail-ratios small{display:block;font-size:12px}.ml-ad-detail-ratios strong{font-size:26px}
body.sio-dark #content .ml-workspace .ml-promo-performance{padding:13px;margin:12px 0 0;border:1px solid #4e6a7e;border-radius:16px;background:#1b2b38;color:#eaf3fc}
body.sio-dark #content .ml-workspace .ml-promo-performance h4{margin:0 0 7px;color:#eaf3fc;font-size:14px}
.ml-promo-performance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.ml-promo-performance-grid>div{background:#263c4c;border:1px solid #435f75;border-radius:12px;padding:9px 11px}
body.sio-dark #content .ml-workspace .ml-promo-performance-grid small{display:block;color:#c5d9e9;font-size:11px}
body.sio-dark #content .ml-workspace .ml-promo-performance-grid strong{display:block;color:#f1f8ff;font-size:19px}
body.sio-dark #content .ml-workspace .ml-promo-performance p{font-size:12px;color:#c6d9e9;margin:6px 0}
body.sio-dark #content .ml-workspace .ml-promo-performance button{background:#2a465c;border:1px solid #6388a3;color:#eaf6ff;border-radius:999px;padding:7px 12px;font-size:12px}
.ml-promo-performance button[aria-busy=true]:before{content:'';display:inline-block;width:10px;height:10px;border:2px solid #749bb7;border-top-color:#eaf6ff;border-radius:50%;margin-right:7px;animation:sio-ad-spin .8s linear infinite}
@keyframes sio-ad-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.ml-promo-performance button[aria-busy=true]:before{animation:none}}
@media(max-width:700px){
 body.sio-dark #content .ml-workspace{grid-template-columns:1fr;gap:8px}
 body.sio-dark #content .ml-workspace>.ml-toolbar{grid-column:1;grid-row:1;justify-content:flex-end;flex-wrap:wrap}
 body.sio-dark #content .ml-workspace>.ml-context-line{grid-column:1;grid-row:2;font-size:10px}
 body.sio-dark #content .ml-workspace .ml-range-form{width:auto;flex:none}
 .ml-ad-performance-grid{grid-template-columns:1fr}.ml-promo-performance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ml-ad-analysis-header{display:block}.ml-ad-analysis-header small{display:block;margin-top:5px}
}

/* Multiples use a baseline x, not a vertically centered multiplication sign. */
.sio-roas{display:inline-flex;align-items:baseline;gap:.08em;white-space:nowrap;font:inherit;color:inherit}
.sio-roas .sio-roas-unit{display:inline;align-self:baseline;vertical-align:baseline;font-size:.72em;line-height:1;color:inherit}
