/* Ad platform: restrained, accessible admin and advertiser design */
.ads-inventory-shell{max-width:1400px;margin:auto;direction:rtl}
.ads-inventory-shell *{box-sizing:border-box}
.ads-inventory-heading,.ads-network-header,.ads-inventory-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.ads-inventory-heading h1{font-size:24px;font-weight:900;line-height:1.7;color:#1e3049}
.ads-inventory-heading p:not(.ads-overline){font-size:12px;line-height:1.9;color:#7b8da4}
.ads-overline{font-size:10px;font-weight:900;color:#3375d4}
.ads-secondary-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#eef4ff;border:1px solid #dbe7fc;border-radius:11px;padding:11px 15px;color:#2465c6;font-size:12px;font-weight:900;white-space:nowrap}
.ads-secondary-link:hover{background:#e2eeff}
.ads-info-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ads-info-row>div{background:white;border:1px solid #e4e9f2;border-radius:16px;padding:17px;display:flex;flex-direction:column;gap:8px;box-shadow:0 3px 14px rgba(15,33,65,.03)}
.ads-info-row i{font-size:19px;color:#3478d8}
.ads-info-row strong{font-size:13px;color:#1b2c43}
.ads-info-row span{font-size:11px;color:#7890a8;line-height:1.9}
.ads-network-settings{background:white;border:1px solid #e3e9f2;border-radius:18px;padding:21px;box-shadow:0 3px 17px rgba(21,38,65,.03)}
.ads-network-settings h2{font-size:17px;font-weight:900;color:#1c304c}
.ads-network-settings p{font-size:11px;line-height:1.9;color:#7789a0}
.ads-network-header{margin-bottom:15px}
.ads-status{border-radius:99px;padding:7px 12px;font-size:10px;font-weight:900;white-space:nowrap}
.ads-status.is-ready{background:#e8f8ef;color:#14845e}
.ads-status.is-off{background:#f1f3f7;color:#79889e}
.ads-publisher-form{display:grid;grid-template-columns:1fr;gap:14px}
.ads-publisher-form>label:first-child{max-width:580px}
.ads-publisher-form label>span,.ads-form-field>span{display:block;font-size:11px;font-weight:900;color:#354a64;margin-bottom:7px}
.ads-publisher-form input:not([type=checkbox]),.ads-form-field input,.ads-form-field select{width:100%;background:#f9fbfe;border:1px solid #dce4ee;border-radius:11px;padding:12px 13px;color:#243650;font-family:inherit;font-size:12px;outline:none}
.ads-publisher-form input:focus,.ads-form-field input:focus,.ads-form-field select:focus{border-color:#83b2fc;box-shadow:0 0 0 3px rgba(38,106,220,.07)}
.ads-publisher-form small,.ads-form-field small{display:block;color:#8999ae;font-size:10px;line-height:1.8;margin-top:5px}
.ads-checkbox-line{display:flex;align-items:flex-start;gap:9px;font-size:11px;color:#6e7e94;line-height:1.8}
.ads-checkbox-line input{width:17px;height:17px;margin-top:3px;accent-color:#256bdc;flex-shrink:0}
.ads-publisher-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ads-save{display:inline-flex;justify-content:center;align-items:center;gap:9px;background:#276cdb;color:white;border-radius:11px;padding:12px 17px;font-size:12px;font-weight:900}
.ads-save:hover{background:#1859c1}
.ads-policy-note{border-radius:11px;padding:12px;background:#f3f7ff;margin-top:15px;color:#657c9f!important}
.ads-policy-note i{margin-left:4px;color:#3774cf}
.ads-inventory-intro{margin:20px 1px 14px}
.ads-inventory-intro h2{font-size:18px;font-weight:900;color:#1c304b}
.ads-inventory-intro>span{font-size:11px;color:#8b9cb1}
.ads-inventory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.ads-slot-card{background:white;border:1px solid #e2e8f1;border-radius:17px;padding:18px;display:flex;flex-direction:column;gap:14px;box-shadow:0 3px 13px rgba(20,39,72,.04)}
.ads-slot-head{display:flex;justify-content:space-between;align-items:start;gap:9px}
.ads-slot-head h3{font-size:14px;color:#19324f;font-weight:900;margin-top:3px}
.ads-slot-id{font:800 10px ui-monospace,Consolas,monospace;color:#6396d5}
.ads-slot-card .ads-save{margin-top:auto}
.ads-safety-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:13px}
.ads-safety-list p{border-radius:10px;padding:10px;background:#f6f9fd}
.ads-safety-list i{color:#16a783;margin-left:5px}
.ads-form-errors,.ads-form-success{border-radius:12px;padding:14px 16px;font-size:11px;font-weight:800}
.ads-form-errors{border:1px solid #e7b3bc;background:#fff1f3;color:#b23b50}
.ads-form-success{border:1px solid #a8e1c3;background:#edf9f2;color:#197a52}
.inventory-network-slot{background:#f6f8fc;border:1px solid #e0e7f0;border-radius:12px;padding:9px;text-align:center;overflow:hidden;max-width:100%;min-width:0;margin:12px auto}
.inventory-network-slot iframe{display:block;width:100%;max-width:100%;border:0;background:transparent}
.inventory-ad-disclosure{font-size:9px;color:#8896a8;text-align:left;margin-bottom:5px}
.social-detail-ad,.social-feed-ad{max-width:100%;min-width:0;margin:12px 0}
.ads-user-scope{display:flex;align-items:start;gap:8px;border:1px solid #d9e5f8;background:#f1f6ff;border-radius:11px;padding:10px 13px;color:#506c95!important;max-width:800px;font-size:11px;line-height:1.9;margin-top:10px}
.ads-user-scope i{color:#236bd5;margin-top:3px}
.ads-creation-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.ads-creation-steps a{padding:12px 8px;display:flex;align-items:center;gap:7px;justify-content:center;border-radius:10px;background:#fff;border:1px solid #e3eaf3;color:#637c99;font-size:11px;font-weight:900;text-align:center}
.ads-creation-steps a:hover{border-color:#a6c9f5;background:#f3f7ff;color:#1f6cd3}
.ads-creation-form>section{scroll-margin-top:25px}
html.dark .ads-inventory-heading h1,html.dark .ads-inventory-intro h2,html.dark .ads-network-settings h2,html.dark .ads-slot-head h3,html.dark .ads-info-row strong{color:#f1f5fd}
html.dark .ads-info-row>div,html.dark .ads-network-settings,html.dark .ads-slot-card,html.dark .ads-creation-steps a{background:#1b293d;border-color:#354860;color:#d8e5f5}
html.dark .ads-publisher-form input:not([type=checkbox]),html.dark .ads-form-field input,html.dark .ads-form-field select{background:#23344c;color:#f3f6fb;border-color:#3b4e68}
html.dark .ads-publisher-form label>span,html.dark .ads-form-field>span{color:#deebfb}
html.dark .ads-policy-note,html.dark .ads-safety-list p,html.dark .ads-user-scope{background:#20344f;color:#c3d7f3!important;border-color:#365376}
html.dark .ads-secondary-link{background:#223a5b;color:#bcd8ff;border-color:#3c5478}
html.dark .inventory-network-slot{background:#1b2a40;border-color:#344961}
@media(max-width:1100px){.ads-inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ads-info-row{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.ads-inventory-heading h1{font-size:20px}.ads-network-settings{padding:15px}.ads-inventory-grid,.ads-info-row,.ads-safety-list{grid-template-columns:1fr}.ads-creation-steps{grid-template-columns:1fr 1fr}.ads-slot-card{padding:14px}}
@media(max-width:360px){.ads-creation-steps a{font-size:10px;padding:9px 3px}}


/* Delivery intelligence panel: clear diagnostics, no opaque AI claims */
.ad-delivery-panel{border:1px solid #dfe6f1;border-radius:17px;padding:19px;background:#fff;box-shadow:0 3px 16px rgba(20,40,68,.035)}
.ad-delivery-head{display:flex;justify-content:space-between;gap:15px;align-items:start;flex-wrap:wrap}
.ad-overline{font-size:10px;font-weight:800;color:#3474d3}
.ad-delivery-head h2{font-size:17px;font-weight:900;line-height:1.6;color:#20334b;margin-top:3px}
.ad-delivery-head p{font-size:11px;color:#8293a9;margin-top:3px}
.ad-delivery-state{border-radius:99px;font-size:10px;font-weight:900;padding:7px 11px}
.ad-delivery-state.eligible{background:#e8f8ee;color:#137c58}
.ad-delivery-state.limited{background:#fff5e4;color:#a66b13}
.ad-delivery-state.blocked{background:#fff0f1;color:#bd455c}
.ad-delivery-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:16px}
.ad-delivery-metrics>div{background:#f6f8fc;border:1px solid #edf0f6;border-radius:11px;padding:12px;min-width:0}
.ad-delivery-metrics span{display:block;color:#8191a6;font-size:10px}
.ad-delivery-metrics strong{display:block;color:#26394f;font-size:14px;font-weight:900;margin-top:5px;overflow-wrap:anywhere}
.ad-delivery-list{border:1px solid #e3e9f2;background:#f8fafd;border-radius:12px;padding:13px 16px;margin-top:11px}
.ad-delivery-list strong{display:block;font-size:11px;color:#2b425e;font-weight:900}
.ad-delivery-list p{font-size:11px;color:#687d96;line-height:1.9;margin-top:5px}
.ad-delivery-list.critical{border-color:#f0cdd5;background:#fff7f8}
.ad-delivery-list.warning{border-color:#f3dfb6;background:#fffcf3}
.ad-delivery-list.positive{border-color:#cde9d9;background:#f4fcf7}
.dark .ad-delivery-panel{background:#182639;border-color:#34455d}
.dark .ad-delivery-head h2,.dark .ad-delivery-metrics strong{color:#edf4fe}
.dark .ad-delivery-metrics>div{background:#233349;border-color:#364a66}
.dark .ad-delivery-list{background:#203048;border-color:#39516b}
.dark .ad-delivery-list.critical{background:#36232c;border-color:#734151}
.dark .ad-delivery-list.warning{background:#382f23;border-color:#6f5734}
.dark .ad-delivery-list.positive{background:#1d3a31;border-color:#386650}
.dark .ad-delivery-list strong{color:#eff4ff}
.dark .ad-delivery-list p{color:#cfdaeb}
@media(max-width:640px){.ad-delivery-panel{padding:13px}.ad-delivery-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-delivery-head h2{font-size:15px}}
