/* ===========================================================================
   ZALLIXOR ADS — base
   Dark professional advertising console. Same brand identity as Mart, but a
   dark surface and a data-dense layout, because this is an operator tool and
   not a shopping feed.
   =========================================================================== */

:root{
  /* Zallixor Ads — light, calm, and built for someone promoting their own
     shop from a phone. Green is the action colour: it means "grow". The
     Zallixor violet stays in the logo so the family resemblance holds.
     (The variable names are shared with the other consoles' components,
     which is why the primary is still called --zx-violet.) */
  --zx-violet:#0E9F5B;
  --zx-violet-soft:#0A7A45;
  --zx-violet-glow:rgba(14,159,91,.10);
  --zx-cyan:#6D3BF5;
  --zx-cyan-glow:rgba(109,59,245,.08);
  --brand:#6D3BF5;

  --ok:#0B8A4E;      --ok-bg:#E3F5EB;
  --warn:#A86200;    --warn-bg:#FFF1D6;
  --bad:#C9362A;     --bad-bg:#FDE8E5;
  --idle:#5F6F69;    --idle-bg:#EEF2F0;

  --bg:#F2F5F3;
  --panel:#FFFFFF;
  --panel-2:#F6F8F7;
  --line:#DDE5E1;
  --line-soft:#EAF0ED;

  --text:#10201A;
  --text-2:#44554E;
  --text-3:#76857F;

  --r-sm:8px; --r-md:14px; --r-lg:20px; --r-pill:999px;
  --shadow:0 1px 2px rgba(16,32,26,.05),0 4px 14px rgba(16,32,26,.05);
  --topbar:62px;
}

*,*::before,*::after{box-sizing:border-box}
html,body,h1,h2,h3,h4,p,ul,ol,li,dl,dd,figure{margin:0;padding:0}
ul,ol{list-style:none}

body{
  background:var(--bg);
  color:var(--text);
  font-family:Manrope,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-size:14px;line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:none;padding:0;cursor:pointer}
:focus-visible{outline:2px solid var(--zx-violet-soft);outline-offset:2px;border-radius:4px}

h1{font-size:26px;font-weight:800;letter-spacing:-.035em;line-height:1.15}
h2{font-size:17px;font-weight:800;letter-spacing:-.02em}
h3{font-size:14.5px;font-weight:600}

.mute{color:var(--text-2)}
.faint{color:var(--text-3)}
.small{font-size:12.5px}
.tnum{font-variant-numeric:tabular-nums}
.row{display:flex;align-items:center}
.stack{display:flex;flex-direction:column}
.gap-6{gap:6px}.gap-8{gap:8px}.gap-12{gap:12px}.gap-16{gap:16px}
.push{margin-left:auto}
.wrap{flex-wrap:wrap}
.hide{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- app frame ----------
   A top bar and a row of tabs instead of a sidebar. People running one or
   two small campaigns don't need a control panel; they need the three things
   they came for within one tap. */
.app{min-height:100vh}

.top{background:var(--panel);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.top-in{
  max-width:1120px;margin:0 auto;padding:0 16px;height:var(--topbar);
  display:flex;align-items:center;gap:12px;
}
.brand{display:flex;align-items:center;gap:9px;font-weight:800;font-size:16.5px;letter-spacing:-.03em;flex:none}
.brand img{border-radius:8px;display:block}
.brand b{color:var(--zx-violet);font-weight:800}
.top-acct{
  font-size:13px;color:var(--text-2);font-weight:600;padding:5px 11px;
  background:var(--panel-2);border-radius:var(--r-pill);max-width:30vw;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:none;
}
@media(min-width:700px){ .top-acct{display:block} }
.top-out{font-size:13px;color:var(--text-3);font-weight:600;padding:6px 8px;border-radius:var(--r-sm)}
.top-out:hover{color:var(--text);background:var(--panel-2)}

.tabs{max-width:1120px;margin:0 auto;padding:0 10px;display:flex;gap:2px;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs a{
  display:flex;align-items:center;gap:7px;padding:10px 10px 11px;white-space:nowrap;
  font-size:13.5px;font-weight:600;color:var(--text-3);border-bottom:2.5px solid transparent;
}
.tabs a svg{width:16px;height:16px}
.tabs a:hover{color:var(--text)}
.tabs a[aria-current="page"]{color:var(--text);border-bottom-color:var(--zx-violet)}
.tabs .sep{width:1px;background:var(--line);margin:10px 6px;flex:none}

.page{max-width:1120px;margin:0 auto;padding:22px 16px 70px}
@media(min-width:760px){ .page{padding:28px 20px 80px} }

/* ---------- page header ---------- */
.ph{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.ph p{color:var(--text-2);font-size:13.5px;margin-top:3px;max-width:62ch}

.crumbs{display:flex;gap:6px;align-items:center;font-size:12.5px;color:var(--text-3);margin-bottom:10px}
.crumbs a:hover{color:var(--zx-violet)}

@media(prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}
