:root{--ink:#241b36;--muted:#81798c;--purple:#7651cf;--teal:#168d83;--blue:#4784d2;--orange:#e48842;--line:#e9e5ed;--bg:#f6f5f8}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'IBM Plex Sans Arabic',system-ui,sans-serif;font-size:14px}button,input,select{font:inherit}button,select{cursor:pointer}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #a689e4;outline-offset:4px}[hidden]{display:none!important}.shell{width:min(1280px,calc(100% - 72px));margin:auto}header{background:#241b36;color:#f7f5fa}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font:bold 22px Arial;letter-spacing:3px;text-decoration:none;direction:ltr;display:inline-flex;align-items:center;color:#f9f7fc}.brand>span{font-weight:600}.brand i{width:6px;height:6px;background:#fa955e;border-radius:50%;margin:14px 0 0 4px}.top-label{color:#c8bfd6;font-size:12px}.top-label span{margin:0 14px;color:#695c7e}.refresh{color:#e8e1f3;border:1px solid #ffffff26;background:transparent;border-radius:9px;min-height:40px;padding:0 14px;font-size:18px}.refresh span{font-size:12px;margin-right:5px}.refresh:disabled{opacity:.5;cursor:wait}.intro{display:flex;justify-content:space-between;align-items:center;padding:38px 0 28px;gap:20px}.eyebrow{direction:ltr;text-align:right;font:10px Arial;letter-spacing:1.8px;color:var(--muted);margin:0 0 10px}.eyebrow span{color:#aaa1b5;letter-spacing:.7px}h1{font-size:34px;line-height:1.5;margin:0;font-weight:600}.title-dot{color:#ef8d56}h2{font-size:19px;line-height:1.6;font-weight:600;margin:0}h3{font-size:14px;font-weight:500;margin:0}.lead{color:var(--muted);margin:5px 0 0;font-size:14px}.sync{display:flex;align-items:center;gap:12px;font-size:12px}.sync strong{font-weight:500}.sync p{margin:5px 0 0;font-size:11px;color:var(--muted)}.sync-dot{width:8px;height:8px;border-radius:50%;background:#199b80;box-shadow:0 0 0 5px #199b800e}.sync.stale .sync-dot{background:#dc9a2d;box-shadow:0 0 0 5px #dc9a2d12}.filters{border:1px solid var(--line);background:#fff;border-radius:14px;display:flex;gap:16px;align-items:center;justify-content:space-between;padding:14px 18px;flex-wrap:wrap}.filter-main{display:flex;align-items:center;gap:12px;min-width:0}.period-label,.campaign-select{font-size:12px;color:var(--muted)}select{max-width:100%;background:#f7f5fa;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:9px 12px;min-height:42px;font-size:12px}.range-caption{font-size:11px;color:var(--muted)}.campaign-select{display:flex;gap:12px;align-items:center}.campaign-select select{max-width:300px}#custom-dates{width:100%;display:flex;gap:12px;padding-top:12px;border-top:1px solid var(--line)}#custom-dates label{display:flex;align-items:center;gap:7px;font-size:12px}input{border:1px solid var(--line);border-radius:7px;padding:8px;min-width:0;min-height:42px;color:var(--ink);background:white}#apply{border:0;border-radius:7px;padding:8px 20px;background:var(--purple);color:white}.section-title{display:flex;align-items:center;justify-content:space-between;margin:27px 0 14px}.section-title>span{color:var(--muted);font-size:11px}.kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.kpi{background:white;border:1px solid var(--line);border-radius:14px;padding:20px 20px 14px;position:relative;overflow:hidden;--accent:var(--purple)}.kpi.teal{--accent:var(--teal)}.kpi.blue{--accent:var(--blue)}.kpi.orange{--accent:var(--orange)}.kpi-head{display:flex;justify-content:space-between;align-items:center;gap:6px}.kpi-icon{width:30px;height:30px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 9%,white);border-radius:8px;color:var(--accent);font-size:19px}.number{display:block;font:600 38px Arial;letter-spacing:-1.5px;margin:18px 0 9px;direction:ltr;text-align:right}.change{font-size:10px;color:var(--muted);min-height:19px}.change.up{color:#17856c}.change.down{color:#a9665a}.spark{height:31px;width:100%;margin-top:14px;color:var(--accent)}.comparison-note{font-size:10px;color:var(--muted);margin:10px 3px 22px}.charts{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);gap:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:24px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head .eyebrow{font-size:9px;letter-spacing:1.4px}.panel-head select{font-size:11px}.chart-total{display:flex;align-items:baseline;gap:10px;margin-top:24px}.chart-total strong{font:600 30px Arial;direction:ltr}.chart-total span{font-size:11px;color:var(--muted)}.plot{position:relative;height:225px;margin-top:16px;direction:ltr}canvas{width:100%;height:100%;touch-action:pan-y}.tooltip{position:absolute;background:#241b36;color:#fff;border-radius:9px;padding:9px 12px;font-size:11px;pointer-events:none;direction:rtl;box-shadow:0 6px 20px #241b3620;white-space:nowrap;z-index:2}.chart-foot{display:flex;justify-content:space-between;gap:5px;direction:ltr;font-size:10px;color:var(--muted);margin-top:10px}.daily-data{margin-top:16px;border-top:1px solid var(--line);padding-top:12px;font-size:11px}.daily-data summary{cursor:pointer;color:#796095}.table-scroll{overflow:auto;max-height:240px}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:right;font-size:11px}th,td{padding:10px;border-bottom:1px solid var(--line)}.ring-wrap{display:grid;place-items:center;margin:25px 0 22px}.ring{width:142px;height:142px;border-radius:50%;background:#ece7f2;display:grid;place-items:center;transform:rotate(-90deg)}.ring>div{width:116px;height:116px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(90deg)}.ring strong{font:600 34px Arial}.ring span{font-size:11px;color:var(--muted);margin-top:7px}.status-legend{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.status-legend span{font-size:10px;display:flex;align-items:center;gap:5px}.status-legend i{width:6px;height:6px;border-radius:50%}.ctr{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:22px;padding-top:17px}.ctr strong{font:600 24px Arial;display:block;text-align:right;direction:ltr}.ctr span{font-size:11px;color:var(--muted);display:block;margin-top:4px}.ctr .ctr-icon{font:28px Arial;color:var(--purple);background:#f3eff9;border-radius:10px;padding:8px}.fine{font-size:10px;line-height:1.8;color:var(--muted);margin:12px 0 0}.compare{margin-top:18px}.pill{border:1px solid var(--line);border-radius:99px;font-size:10px;padding:5px 10px;color:var(--muted)}.campaign-bars{margin-top:20px;display:grid;gap:18px}.bar-label{display:flex;justify-content:space-between;gap:20px;font-size:12px;margin-bottom:8px}.bar-label span{overflow-wrap:anywhere}.bar-label strong{font-family:Arial;flex-shrink:0}.bar-track{height:7px;background:#f2eff7;border-radius:99px;overflow:hidden}.bar-track i{display:block;height:100%;background:linear-gradient(90deg,#b899ed,#7552bd);border-radius:99px}.campaign-title{margin-top:30px}.campaign-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}.campaign-card{border:1px solid var(--line);background:white;border-radius:14px;padding:22px;min-width:0}.campaign-card-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.campaign-card h3{font-size:16px;font-weight:600;line-height:1.9;overflow-wrap:anywhere}.status{border-radius:99px;padding:5px 10px;font-size:10px;background:#f0edf4;color:#776687;flex-shrink:0;white-space:nowrap}.status.active{background:#eaf7f2;color:#167b60}.status.paused{background:#fff5e5;color:#94651c}.campaign-id{font:9px Arial;letter-spacing:1px;color:#aba2b3;margin-top:5px;direction:ltr;text-align:right}.campaign-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:22px 0;padding-bottom:20px;border-bottom:1px solid var(--line);gap:12px}.campaign-metrics strong{font:600 24px Arial;display:block;margin-bottom:7px}.campaign-metrics span{font-size:10px;color:var(--muted)}.campaign-end{display:flex;justify-content:space-between;align-items:center;gap:15px}.campaign-end span{font-size:10px;color:var(--muted);display:block}.campaign-end strong{font-size:13px;font-weight:500;display:block;margin-top:4px}.days{display:flex;align-items:baseline;gap:6px}.days b{font:600 24px Arial;color:var(--purple)}.campaign-progress{height:4px;background:#f0edf4;border-radius:10px;margin-top:16px;overflow:hidden}.campaign-progress i{height:100%;display:block;background:#b09bcc;border-radius:10px}.explain{margin-top:25px;color:var(--muted);font-size:11px;line-height:2}.explain details{border-bottom:1px solid var(--line);padding-bottom:15px}.explain summary{cursor:pointer;color:#655274}.explain p{max-width:930px}.explain>p{font-size:10px}footer{padding:24px 0 30px;margin-top:20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:11px;color:var(--muted)}footer .brand{color:var(--ink);font-size:15px;letter-spacing:2px}footer>a{text-decoration:none}.notice{padding:15px 18px;border:1px solid #eadbbd;background:#fff9ee;color:#866321;border-radius:12px;font-size:12px;line-height:1.8;margin-top:18px}.loading{display:flex;align-items:center;justify-content:center;gap:12px;min-height:380px;color:var(--muted)}.loading span{height:18px;width:18px;border:2px solid #dfd4ee;border-top-color:var(--purple);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty{padding:26px 10px;text-align:center;font-size:13px;color:var(--muted)}.skip{position:absolute;top:-100px}.skip:focus{top:10px;background:#fff;color:var(--ink);z-index:10;padding:10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1400px){.shell{width:min(1280px,calc(100% - 120px))}}@media(max-width:850px){.shell{width:calc(100% - 40px)}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.charts{grid-template-columns:1fr}.health{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.health .panel-head{grid-column:1/-1}.health .ring-wrap{grid-row:2/5}.health .status-legend{margin-top:30px;align-content:center}.health .fine{grid-column:2}.campaign-cards{grid-template-columns:1fr}}@media(max-width:560px){.shell{width:calc(100% - 32px)}.topbar{height:60px}.brand{font-size:17px;letter-spacing:2px}.top-label{display:none}.refresh{min-height:36px;padding:0 11px}.intro{padding:27px 0 21px;display:block}h1{font-size:29px}.eyebrow{font-size:9px}.lead{font-size:12px}.sync{margin-top:18px;gap:9px;font-size:10px}.sync p{font-size:10px;margin-top:3px}.sync-dot{height:6px;width:6px;box-shadow:0 0 0 4px #199b800e}.filters{gap:10px;padding:12px;border-radius:12px}.filter-main{flex-wrap:wrap;width:100%;gap:8px}.period-label{width:35px}.filter-main select{flex:1}.range-caption{width:100%;padding-right:43px;font-size:10px}.campaign-select{width:100%;gap:8px;font-size:11px}.campaign-select select{flex:1;min-width:0;max-width:none}.campaign-select{display:grid;grid-template-columns:35px minmax(0,1fr)}select{font-size:12px;min-height:44px}#custom-dates{display:grid;grid-template-columns:1fr 1fr;gap:10px}#custom-dates label{display:block;font-size:11px}#custom-dates input{width:100%;display:block;margin-top:5px;font-size:12px}#apply{grid-column:1/-1;min-height:42px}.section-title{margin-top:23px}h2{font-size:17px}.section-title>span{font-size:10px}.kpis{gap:10px}.kpi{padding:14px 14px 10px;border-radius:12px}.kpi-head h3{font-size:12px}.kpi-icon{width:25px;height:25px;font-size:16px}.number{font-size:32px;margin-top:16px}.change{font-size:9px;min-height:30px;line-height:1.7}.spark{height:24px;margin-top:8px}.comparison-note{font-size:9px;line-height:1.9;margin-bottom:16px}.panel{padding:18px 15px;border-radius:12px}.panel-head{gap:8px}.panel-head .eyebrow{font-size:8px;letter-spacing:1px}.panel-head select{max-width:120px;font-size:10px;padding:8px}.plot{height:195px}.chart-total{margin-top:22px}.chart-foot{font-size:9px}.chart-foot span:nth-child(2){font-size:8px}.health{gap:0 14px}.ring{width:120px;height:120px}.ring>div{width:98px;height:98px}.ring strong{font-size:29px}.ring span{font-size:9px}.status-legend{gap:8px;justify-content:flex-start}.status-legend span{font-size:9px}.ctr strong{font-size:22px}.ctr span{font-size:9px}.ctr .ctr-icon{display:none}.fine{font-size:9px}.campaign-card{padding:18px 15px}.campaign-card h3{font-size:14px}.campaign-card-head{gap:8px}.status{padding:5px 8px;font-size:9px;white-space:normal;text-align:center;max-width:100px}.campaign-metrics strong{font-size:23px}.campaign-metrics{gap:8px}.campaign-end strong{font-size:12px}.campaign-end .days b{font-size:23px}footer{font-size:9px;gap:8px}footer .brand{font-size:12px}footer>span:nth-child(2){display:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}



.keywords-panel{margin-top:22px}.keywords-panel[hidden]{display:none}.keywords-panel .panel-head{margin-bottom:14px}.keyword-table{white-space:normal}.keyword-table th:first-child,.keyword-table td:first-child{width:58px;text-align:center}.keyword-table th:last-child,.keyword-table td:last-child{width:130px;text-align:center}.keyword-table td:nth-child(2){overflow-wrap:anywhere;font-weight:600}.keyword-note{margin-top:14px}.keyword-empty{text-align:center;color:var(--muted);font-weight:400!important}

.keywords-panel .table-scroll{max-height:none}.keyword-table{font-size:14px}.keyword-table th,.keyword-table td{padding:12px 10px}

/* Shared dashboard design. Only the client accent and logo vary by subdomain. */
:root{--ink:#261d32;--muted:#746d7b;--purple:#7555a2;--blue:#7555a2;--line:#e9e5e7;--bg:#faf9f7}
body[data-client="mahd"]{--client-accent:#aa80ce;--client-soft:#f5eef9}
body[data-client="drauto"]{--client-accent:#b5444c;--client-soft:#fcf1f1}
body[data-client="zad"]{--client-accent:#ed6a24;--client-soft:#fff3ec}
body[data-client="zad"] .client-logo-wrap{width:120px}
header{background:#241b30}
.topbar{height:68px}
.brand{gap:9px;font-size:19px;letter-spacing:2px}
.brand>span{font-weight:700}
.kayzen-mark{width:35px;height:35px;display:block;border-radius:9px}
.top-label{margin-inline-start:auto;font-size:12px;color:#e5deed}
.refresh{font-size:17px;border-color:#594b65;border-radius:8px}
.intro{padding:35px 0 28px;border-bottom:1px solid var(--line);margin-bottom:20px;gap:18px}
.client-heading{display:flex;align-items:center;gap:18px;min-width:0}
.client-logo-wrap{width:80px;height:80px;display:grid;place-items:center;flex:none}
.client-logo{width:100%;height:100%;object-fit:contain;display:block}
.client-caption{font-size:11px;color:#7a618e;margin:0 0 3px;font-weight:600;letter-spacing:.2px}
h1{font-size:31px;line-height:1.35;font-weight:700}
.lead{font-size:12px;margin-top:5px}
.sync{align-self:center}
.filters{border-radius:11px;padding:12px 16px}
select{background:#fff;border-radius:7px}
.section-title{margin:28px 0 12px}
.section-title h2,.panel h2{font-size:18px;font-weight:700}
.kpis{gap:12px}
.kpi,.panel,.campaign-card{box-shadow:none;border-radius:11px}
.kpi{padding:18px 20px 14px;border-top:3px solid var(--client-accent)}
.kpi-head h3{font-size:12px;color:var(--muted);font-weight:500}
.kpi-icon,.ctr-icon{display:none!important}
.number{font-size:36px;margin:8px 0 4px;letter-spacing:-.8px}
.spark{height:25px;margin-top:9px;color:var(--client-accent)}
.change{min-height:0;font-size:10px}
.comparison-note{margin:8px 2px 20px}
.charts{gap:12px}
.panel{padding:21px}
.panel-head .eyebrow{display:none}
.chart-total{margin-top:20px}
.plot{height:195px}
.health{display:flex;flex-direction:column}
.ring-wrap{display:block;margin:27px 0 16px}
.ring{width:auto;height:auto;border-radius:0;background:none!important;display:block;transform:none!important}
.ring>div{width:auto;height:auto;background:none;display:flex;align-items:baseline;justify-content:flex-start;flex-direction:row;gap:9px;transform:none!important}
.ring strong{font-size:36px;color:var(--client-accent)}
.ring span{font-size:12px;color:var(--ink);margin:0}
.status-legend{justify-content:flex-start;gap:10px}
.status-legend span{font-size:11px}
.status-legend i{width:7px;height:7px}
.ctr,.health .fine,.compare{display:none}
.campaign-title{margin-top:25px}
.campaign-card{padding:20px}
.campaign-card h3{font-size:15px}
.campaign-id{letter-spacing:0}
.campaign-progress i{background:var(--client-accent)}
.days b{color:var(--client-accent)}
.explain{margin-top:20px}
footer{margin-top:20px}
.interactions{margin:0 0 12px}
.interaction-heading p{font-size:11px;color:var(--muted);margin:3px 0 0}
.interaction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.interaction-item{border:1px solid var(--line);border-radius:9px;padding:17px;background:#fbfafc;display:flex;flex-direction:column;gap:7px}
.interaction-item span{font-size:12px;color:var(--ink)}
.interaction-item strong{font:600 31px Arial;direction:ltr;text-align:right;color:var(--client-accent)}
.interaction-item small{font-size:10px;color:var(--muted)}
.interactions>.fine{margin-top:14px}
@media(max-width:850px){.health{display:flex;gap:0}.health .ring-wrap{margin:18px 0 14px}.health .status-legend{margin-top:0}}
@media(max-width:560px){.topbar{height:60px}.brand{font-size:15px;gap:6px;letter-spacing:1.4px}.kayzen-mark{width:31px;height:31px}.top-label{display:none}.intro{display:block;padding:23px 0 20px}.client-heading{gap:11px}.client-logo-wrap{width:61px;height:61px}.client-caption{font-size:10px}h1{font-size:23px}.lead{font-size:11px}.sync{margin:18px 0 0 0}.filters{padding:12px}.section-title{margin-top:21px}.section-title h2,.panel h2{font-size:16px}.kpis{gap:9px}.kpi{padding:14px 12px 10px}.kpi-head h3{font-size:11px}.number{font-size:30px;margin-top:10px}.spark{height:21px}.panel{padding:17px}.plot{height:185px}.ring strong{font-size:30px}.campaign-card{padding:17px}}
@media(max-width:560px){body[data-client="zad"] .client-logo-wrap{width:88px}}
@media(max-width:560px){.interaction-grid{gap:8px}.interaction-item{padding:13px 11px}.interaction-item span{font-size:11px}.interaction-item strong{font-size:26px}.interaction-item small{font-size:9px}.interactions>.fine{line-height:1.8}}
