@font-face { font-family: 'Heebo'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/heebo-hebrew.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/heebo-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* MBZ Optimize: white / black / sparse galactic purple */
  --brand: #7B4DFF;
  --brand-ink: #5B35C7;
  --brand-soft: #f3eeff;
  --brand-ring: rgba(123, 77, 255, .22);
  --brand-glow: rgba(123, 77, 255, .12);
  --tq: #1ED6D0; --tq-ink: #087370; --tq-soft: #e6fbfa;
  --ink: #0b0b0d; --ink-2: #17181c; --ink-3: #2a2c33;
  --bg: #f5f5f7; --paper: #fff; --line: #e5e5ea; --line-2: #d2d2d7;
  --muted: #6e6e73; --text: #1d1d1f; --text-2: #424245;
  --ok: #0f8a52; --ok-soft: #e3f6ed;
  --warn: #8a5a00; --warn-soft: #fff3d6;
  --bad: #c62d3b; --bad-soft: #fde8eb;
  --r: 14px; --r-lg: 22px; --pad: 16px; --appbar: 52px; --col: 1280px;
  --meta: #1877F2; --google: #EA4335;
  --shadow-xs: 0 1px 0 rgba(0,0,0,.04);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.03);
  --shadow-md: 0 2px 8px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.03);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: only light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Heebo', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 15px; line-height: 1.55; color: var(--text);
  background: var(--bg); direction: rtl; -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; top: -60px; right: 8px; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 200; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.brand-opt { color: var(--brand); }

/* ---------- app bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.78); color: var(--ink);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.appbar-in {
  max-width: var(--col); margin: 0 auto; min-height: var(--appbar);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 8px; padding: 0 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink);
  text-decoration: none; min-height: 40px; padding: 0 2px; justify-self: start;
}
.brand-t { font-weight: 800; font-size: 16px; letter-spacing: -.01em; color: var(--ink); }
.brand img { height: 26px; width: auto; display: block; }
.topnav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.topnav::-webkit-scrollbar { display: none; }
.topnav .tn {
  color: #515154; text-decoration: none; font-size: 13.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; border: 0;
  background: transparent; font: inherit; cursor: pointer; min-height: 36px;
  display: inline-flex; align-items: center; transition: background .15s var(--ease), color .15s;
}
.topnav .tn:hover { color: var(--ink); background: rgba(0,0,0,.05); }
.topnav .tn.active { color: #fff; background: var(--brand); box-shadow: 0 1px 2px rgba(123,77,255,.35); }
.appbar-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.iconbtn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink); border: 0; border-radius: 10px; transition: background .15s;
}
.iconbtn:hover { background: rgba(0,0,0,.05); }
.iconbtn.dark { color: var(--text); }
.iconbtn.dark:hover { background: rgba(0,0,0,.05); }
@media (max-width: 859px) {
  .appbar-in { grid-template-columns: 1fr auto; padding: 4px 12px 0; }
  .topnav { grid-column: 1 / -1; order: 3; padding: 0 0 8px; }
}

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 80; backdrop-filter: blur(2px); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 340px);
  background: #fff; color: var(--text); z-index: 90;
  transform: translateX(100%); transition: transform .24s var(--ease);
  display: flex; flex-direction: column; visibility: hidden;
  box-shadow: -8px 0 32px rgba(0,0,0,.08);
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 8px; border-bottom: 1px solid var(--line); }
.drawer-head img { height: 26px; width: auto; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 0 16px; }
.dsec { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 16px 20px 6px; }
.dl {
  display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 20px;
  color: var(--text); text-decoration: none; font-size: 15px; border: 0; background: none;
  width: 100%; text-align: start; border-inline-start: 3px solid transparent;
  font: inherit; cursor: pointer; transition: background .12s;
}
.dl:hover { background: var(--bg); }
.dl.active { background: var(--brand-soft); border-inline-start-color: var(--brand); font-weight: 650; color: var(--brand-ink); }
.dl.dl-logout { margin-top: 12px; border-top: 1px solid var(--line); color: #515154; }
.drawer-foot { padding: 14px 20px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); line-height: 1.5; }

/* ---------- badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.badge.draft { background: var(--bad-soft); color: var(--bad); }
.badge.paused { background: var(--warn-soft); color: var(--warn); }
.badge.live { background: var(--ok-soft); color: var(--ok); }
.badge.pending { background: var(--brand-soft); color: var(--brand-ink); }
.badge.blocked { background: var(--bad-soft); color: var(--bad); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px;
  background: #eef0f2; color: #30343b; text-decoration: none; white-space: nowrap;
}
.chip.tq { background: var(--brand-soft); color: var(--brand-ink); }
.chip.meta { background: #e7f0ff; color: #1877F2; }
.chip.google { background: #fde8eb; color: #EA4335; }
.chip.spine { background: var(--brand-soft); color: var(--brand-ink); }
.chip.spine-dim { background: #eef0f2; color: #5d636d; }

/* ---------- home ---------- */
body[data-view="home"] { background: #fff; }
.home { background: #fff; color: var(--text); min-height: calc(100vh - var(--appbar)); padding: 0 var(--pad) 48px; }
.home-hero { max-width: 680px; margin: 0 auto; text-align: center; padding: 48px 0 20px; }
.home h1.home-h { font-size: 36px; font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 12px; color: var(--ink); }
@media (min-width: 720px) { .home h1.home-h { font-size: 52px; } }
.home-blurb { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 auto 8px; max-width: 28em; text-wrap: balance; }
.home-banner {
  max-width: 720px; margin: 20px auto 8px; padding: 12px 16px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; text-align: right;
}
.home-banner strong { color: var(--brand-ink); }
.home-section { max-width: 920px; margin: 32px auto 0; }
.home-section .sh { margin-top: 0; }
.home-plat { display: grid; gap: 14px; }
@media (min-width: 700px) { .home-plat { grid-template-columns: 1fr 1fr; } }
.plat-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.plat-panel .plat-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.plat-panel .plat-t { font-size: 15px; font-weight: 700; flex: 1; }
.plat-empty { color: var(--muted); font-size: 13.5px; margin: 0; }
.home-cards { max-width: 920px; margin: 24px auto 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .home-cards { grid-template-columns: 1fr 1fr; } }
.bigcard {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px;
  align-items: center; padding: 18px 16px; border-radius: var(--r-lg); background: #fff; color: var(--ink);
  text-decoration: none; min-height: 92px; border: 1px solid var(--line); width: 100%; text-align: right;
  cursor: pointer; font: inherit; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .2s var(--ease), transform .15s;
}
.bigcard.primary { border-color: rgba(123,77,255,.35); background: linear-gradient(180deg, #fff 0%, #faf8ff 100%); }
.bigcard:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.bigcard.primary:hover { border-color: var(--brand); box-shadow: 0 4px 16px var(--brand-glow); }
.bc-ic {
  grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.bigcard.primary .bc-ic { background: var(--brand); color: #fff; }
.bc-t { font-size: 16px; font-weight: 700; align-self: end; letter-spacing: -.01em; }
.bc-s { font-size: 13px; line-height: 1.4; color: var(--muted); align-self: start; margin-top: 2px; }
.bigcard.primary .bc-s { color: #5d636d; }
.foot { text-align: center; color: #86868b; font-size: 12.5px; padding-top: 36px; max-width: 920px; margin: 0 auto; }

/* ---------- pages ---------- */
.page { max-width: 1000px; margin: 0 auto; padding: 20px var(--pad) 56px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.crumbs a, .crumbs button.linkish { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; text-decoration: none; cursor: pointer; }
.crumbs a:hover, .crumbs button.linkish:hover { color: var(--brand-ink); }
.eyebrow {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-ink); margin: 0 0 6px;
}
.ptitle { font-size: 24px; font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
@media (min-width: 700px) { .ptitle { font-size: 28px; } }
.plead { color: var(--text-2); margin: 6px 0 16px; font-size: 14.5px; max-width: 42em; line-height: 1.5; }
.sh {
  font-size: 15px; font-weight: 700; margin: 28px 0 12px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  letter-spacing: -.01em;
}
.sh-s { font-size: 13px; font-weight: 500; color: var(--muted); }
.lbl { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 3px; letter-spacing: .02em; text-transform: uppercase; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .2s;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.card-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.card-t { font-size: 15px; font-weight: 700; flex: 1; min-width: 140px; letter-spacing: -.01em; }
.card-grid { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: 1fr 1fr; } .card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.stat { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.stat .lbl { margin-bottom: 2px; }
.stat .val { font-size: 15px; font-weight: 600; color: var(--text); }
.stat .val.muted { font-weight: 500; color: var(--muted); }

.notice { padding: 12px 14px; border-radius: 12px; margin: 10px 0; font-size: 13.5px; line-height: 1.45; }
.notice.warn { background: var(--warn-soft); color: #6b4600; }
.notice.ok { background: var(--ok-soft); color: #0b5e39; }
.notice.info { background: var(--brand-soft); color: var(--brand-ink); border: 1px solid rgba(123,77,255,.12); }
.empty { text-align: center; padding: 56px 20px; }
.empty-ic { font-size: 36px; margin-bottom: 10px; opacity: .65; }
.empty h3 { font-size: 17px; margin-bottom: 6px; font-weight: 700; }
.empty p { color: var(--muted); max-width: 400px; margin: 0 auto 16px; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 0 16px; border-radius: 11px; border: 0;
  font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #24262c; }
.btn.tq { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(123,77,255,.3); }
.btn.tq:hover { background: var(--brand-ink); }
.btn.ghost { background: transparent; color: var(--text-2); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.btn.approve { background: var(--ok); color: #fff; }
.btn.approve:hover { filter: brightness(1.05); }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.ghost.sm { color: var(--ink-3); }

/* campaign / ops */
.ops-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.ops-bar .spacer { flex: 1; }
.kpi-row { display: grid; gap: 10px; margin-bottom: 18px; }
@media (min-width: 640px) { .kpi-row { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .2s;
}
.kpi:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.kpi .k {
  font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
}
.kpi .n {
  font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px;
  color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums;
}
.kpi .h { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; }

.camp-list { display: grid; gap: 10px; }
.camp {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; position: relative; overflow: hidden; box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .2s;
}
.camp:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.camp::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--line); }
.camp.status-paused::before { background: #e6a800; }
.camp.status-draft::before { background: var(--bad); }
.camp.status-live::before { background: var(--ok); }
.camp-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
.camp-name { font-size: 16px; font-weight: 700; flex: 1; min-width: 160px; letter-spacing: -.015em; }
.camp-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.camp-body { display: grid; gap: 10px; margin-top: 6px; }
@media (min-width: 700px) { .camp-body { grid-template-columns: 1.2fr 1fr 1fr; } }
.camp-field .lbl { margin-bottom: 2px; }
.camp-field .val { font-size: 14px; font-weight: 500; color: var(--text-2); }
.camp-opt { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f1f3; }
.camp-opt .lbl { color: var(--brand-ink); }
.camp.compact { padding: 11px 13px; }
.camp.compact .camp-name { font-size: 14.5px; }
.camp.compact .camp-body { display: none; }

/* proposals */
.prop {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .2s;
}
.prop:hover { border-color: var(--line-2); }
.prop-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.prop-t { font-weight: 700; font-size: 14.5px; flex: 1; letter-spacing: -.01em; }
.prop-why { color: var(--text-2); font-size: 13.5px; margin: 6px 0 12px; line-height: 1.45; }
.prop-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prop-lock { font-size: 12px; color: var(--muted); font-weight: 600; }
.prop-auto-done { border-color: #cfe9dc; background: #f7fcf9; }
.prop-auto { font-size: 12.5px; font-weight: 700; color: var(--ok); }

/* readiness */
.ready-list { display: grid; gap: 8px; }
.ready {
  display: flex; align-items: center; gap: 12px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-xs);
}
.ready-t { flex: 1; font-weight: 650; font-size: 14.5px; }
.ready-s { font-size: 13px; color: var(--muted); }

/* research form */
.form-sec {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-xs);
}
.form-sec h3 { font-size: 14.5px; margin-bottom: 8px; font-weight: 700; }
.field { padding: 9px 0; border-bottom: 1px solid #f0f1f3; }
.field:last-child { border-bottom: 0; }
.field .val { font-size: 14px; color: var(--muted); font-style: italic; }
.field .val.filled { color: var(--text); font-style: normal; font-weight: 500; }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; }
.toggle input { width: 42px; height: 24px; accent-color: var(--brand); }

.spine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 14px; }
.spine .arr { color: var(--muted); font-size: 13px; }

.creative-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .creative-grid { grid-template-columns: 1fr 1fr; } }
.cre {
  border: 1px dashed var(--line-2); border-radius: 14px; padding: 14px;
  background: var(--paper); text-align: center; transition: border-color .15s;
}
.cre:hover { border-color: var(--brand); }
.cre.on { border-style: solid; border-color: var(--brand); }
.cre-ph {
  height: 110px; border-radius: 10px;
  background: repeating-linear-gradient(-45deg, #f6f7f8, #f6f7f8 10px, #eef0f2 10px, #eef0f2 20px);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  font-weight: 600; margin-bottom: 10px; font-size: 13px;
}

#main:focus { outline: none; }
#main { min-height: calc(100vh - var(--appbar)); }

/* ---------- clients ---------- */
.client-list { display: grid; gap: 10px; }
.client-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; box-shadow: var(--shadow-xs);
}
.client-notes { color: var(--text-2); font-size: 14px; margin: 0 0 12px; }
.client-conn { display: grid; gap: 10px; margin: 8px 0 10px; }
@media (min-width: 700px) { .client-conn { grid-template-columns: 1fr 1fr; } }
.client-plat { background: var(--bg); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.client-plat-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.client-plat-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.client-note { font-size: 12.5px; margin: 4px 0 8px; }
.client-updated { margin-top: 4px; }
.client-updated .val { font-size: 13px; font-weight: 500; }
.client-add .field-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 0 4px; letter-spacing: .02em; }
.client-add .req { color: var(--bad); }
.inp {
  width: 100%; min-height: 40px; padding: 9px 13px; border: 1px solid var(--line-2);
  border-radius: 10px; background: #fff; font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.client-add-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.err { color: var(--bad); font-size: 13px; font-weight: 600; margin: 8px 0 0; }
.btn.dangerish { color: var(--bad); border-color: #f0c4c9; }
.btn.dangerish:hover { border-color: var(--bad); background: var(--bad-soft); }

.demo {
  display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--brand-ink);
  background: var(--brand-soft); border-radius: 999px; padding: 1px 7px; vertical-align: middle;
  letter-spacing: .02em;
}
.pfilter { display: flex; gap: 6px; margin: 16px 0 12px; }
.pfb {
  min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; transition: all .15s;
}
.pfb:hover { border-color: var(--line-2); }
.pfb.on { border-color: var(--brand); color: var(--brand-ink); font-weight: 700; background: var(--brand-soft); }

/* ---------- table (ads-console density) ---------- */
.tblwrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; box-shadow: var(--shadow-xs);
}
.ctable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ctable th, .ctable td {
  text-align: right; padding: 10px 14px; border-bottom: 1px solid #f0f1f3; white-space: nowrap;
}
.ctable th {
  color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .04em;
  text-transform: uppercase; background: #fafafa; border-bottom-color: var(--line);
  position: sticky; top: 0;
}
.ctable tbody tr { transition: background .12s; }
.ctable tbody tr:hover td { background: #f8f7fc; }
.ctable tr:last-child td { border-bottom: 0; }
.ctable td { color: var(--text-2); font-weight: 500; }
.ctable td:first-child { color: var(--ink); font-weight: 650; }
.pf { font-weight: 700; font-size: 12.5px; }
.pf-meta { color: var(--meta); }
.pf-google { color: var(--google); }
.dash-row { cursor: pointer; }
.dash-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* ---------- dash layout ---------- */
.page.dash-layout {
  max-width: var(--col);
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px var(--pad) 48px;
}
@media (max-width: 900px) {
  .page.dash-layout { grid-template-columns: 1fr; }
  .dash-side {
    position: static !important; max-height: none;
    display: flex; flex-wrap: wrap; gap: 4px; padding: 10px;
  }
  .dash-side .ds-sec { width: 100%; padding: 8px 6px 2px; }
  .dash-side .ds-item { flex: 1 1 auto; min-width: 140px; }
}
.dash-side {
  position: sticky;
  top: calc(var(--appbar) + 12px);
  max-height: calc(100vh - var(--appbar) - 24px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 6px 12px;
  box-shadow: var(--shadow-sm);
}
.dash-side::-webkit-scrollbar { width: 6px; }
.dash-side::-webkit-scrollbar-thumb { background: #d2d2d7; border-radius: 99px; }
.ds-sec {
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  letter-spacing: .05em; text-transform: uppercase;
  padding: 14px 10px 5px; display: flex; align-items: center; gap: 6px;
}
.ds-sec:first-child { padding-top: 6px; }
.ds-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  width: 100%; text-align: start; padding: 8px 11px;
  border: 0; border-radius: 10px; background: transparent; color: var(--text);
  font: inherit; cursor: pointer; min-height: 40px;
  transition: background .12s, box-shadow .12s;
}
.ds-item:hover { background: var(--bg); }
.ds-item.on {
  background: var(--brand-soft);
  box-shadow: inset 3px 0 0 var(--brand);
}
.ds-item.on .ds-name { color: var(--brand-ink); }
.ds-name { font-size: 13px; font-weight: 650; line-height: 1.3; }
.ds-sub { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.ds-camp .ds-name { font-weight: 600; font-size: 12.5px; }
.dash-main { min-width: 0; }

/* dash header strip */
.dash-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 10px 16px; margin-bottom: 4px;
}
.dash-head .ptitle { margin: 0; }
.dash-meta-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 14px;
}
.dash-note {
  font-size: 12.5px; color: var(--muted); margin: 10px 0 0;
  display: flex; align-items: center; gap: 6px;
}
.dash-note::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); opacity: .7; flex: 0 0 auto;
}

/* AI / optimization panel */
.ai-panel {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ai-panel::before {
  content: ''; display: block; height: 3px;
  background: linear-gradient(90deg, var(--brand), #C13DFF 60%, transparent);
}
.ai-inner { padding: 16px 18px 10px; }
.ai-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 4px;
}
.ai-title {
  font-size: 16px; font-weight: 800; letter-spacing: -.015em;
  flex: 1; min-width: 160px; color: var(--ink);
}
.ai-blurb { color: var(--text-2); font-size: 13px; margin: 0 0 14px; line-height: 1.45; }
.ai-panel .prop { box-shadow: none; }

/* status cell with soft pill look in table */
.st-cell {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
}
.st-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: var(--muted);
}
.st-dot.live { background: var(--ok); box-shadow: 0 0 0 3px rgba(15,138,82,.15); }
.st-dot.paused { background: #e6a800; box-shadow: 0 0 0 3px rgba(230,168,0,.15); }
.st-dot.draft { background: var(--bad); box-shadow: 0 0 0 3px rgba(198,45,59,.12); }

/* single-campaign detail polish */
.camp-detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.kpi .n.sm { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.kpi .n.xs { font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }

/* keep surfaces honest white where needed — page chrome is grey */
body[data-view="dashboard"] #main,
body[data-view="campaigns"] #main,
body[data-view="clients"] #main,
body[data-view="optimize"] #main,
body[data-view="creatives"] #main,
body[data-view="research"] #main,
body[data-view="readiness"] #main {
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ---------- Apple-like framed sectors (MBZ Optimize dashboard) ---------- */
.ap-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 4px 0 8px;
}
.ap-sector {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
  transition: box-shadow .18s var(--ease), border-color .15s;
}
.ap-sector:hover {
  border-color: var(--line-2);
  box-shadow: 0 8px 28px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.03);
}
.ap-sector-h {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.ap-sector-t {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}
.ap-sector-s {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 36em;
}
@media (min-width: 720px) {
  .ap-stack { gap: 18px; }
  .ap-sector { padding: 26px 28px 24px; border-radius: 24px; }
  .ap-sector-t { font-size: 20px; }
}

/* הצגה panel */
.viz-panel { background: #fafafa; }
.viz-panel .ap-sector-h { margin-bottom: 10px; }
.viz-group { margin-top: 10px; }
.viz-group + .viz-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eeeef0; }
.viz-glabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.viz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.viz-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.viz-chip:hover { border-color: var(--line-2); color: var(--ink); }
.viz-chip.on {
  border-color: rgba(123,77,255,.4);
  background: var(--brand-soft);
  color: var(--brand-ink);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.viz-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d2d2d7; flex: 0 0 auto;
}
.viz-chip.on .viz-dot { background: var(--brand); box-shadow: 0 0 0 3px rgba(123,77,255,.18); }

/* Charts — demo visuals */
.chart-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .chart-grid { grid-template-columns: 1.3fr 1fr; }
  .chart-grid-2 { grid-template-columns: 1fr 1fr; }
}
.chart-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 12px;
}
.chart-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 140px;
}
.chart-donut { max-height: 160px; max-width: 160px; margin: 0 auto; }
.chart-donut-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.chart-cap {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.chart-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}
.lg-sw {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  margin-inline-end: 8px;
  vertical-align: middle;
}
.lg-a { background: #7B4DFF; }
.lg-b { background: #1d1d1f; }
.lg-c { background: #d2d2d7; }

.ph-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  background: #fcfcfd;
  margin-top: 12px;
}
.ph-empty .ph-ic {
  display: block;
  font-size: 22px;
  opacity: .45;
  margin-bottom: 6px;
}
.ph-empty p { margin: 0; font-size: 13.5px; }

.health-grid {
  display: grid;
  gap: 10px;
}
@media (min-width: 640px) {
  .health-grid { grid-template-columns: repeat(3, 1fr); }
}
.health-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
}
.health-item strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.health-item p { margin: 2px 0 0; font-size: 12.5px; }
.health-dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: 5px; flex: 0 0 auto;
}
.health-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(15,138,82,.14); }
.health-dot.warn { background: #e6a800; box-shadow: 0 0 0 3px rgba(230,168,0,.16); }

/* Calmer dashboard density — Apple spacing */
body[data-view="dashboard"] .plead { max-width: 40em; }
body[data-view="dashboard"] .kpi {
  border-radius: 16px;
  padding: 16px 16px;
  border-color: transparent;
  background: var(--bg);
  box-shadow: none;
}
body[data-view="dashboard"] .kpi:hover {
  border-color: transparent;
  box-shadow: none;
  background: #eef0f2;
}
body[data-view="dashboard"] .tblwrap {
  border-radius: 16px;
  border-color: var(--line);
  box-shadow: none;
}
body[data-view="dashboard"] .ai-panel {
  border-radius: 22px;
  margin-top: 18px;
}
body[data-view="dashboard"] .dash-side {
  border-radius: 22px;
  padding: 12px 8px 14px;
}
body[data-view="dashboard"] .page.dash-layout {
  gap: 20px;
}

.sector-visual .chart-card { background: #fff; }

