/* Marketing v3 — Signalry-style light dashboard + Brand-Index dark editorial panel, Orzax green identity */
.mx { --bg: #f2f4f0; --ln: #e4e8e1; --sh: 0 1px 2px rgba(15,29,20,.04); --sh-h: 0 10px 30px rgba(15,29,20,.08); --r: 18px; gap: 16px; }
.mx-card, .mx-tile, .mx-v, .mx-q, .mx-idea, .mx-seg-c, .mx-acc-c, .mx-doc { box-shadow: var(--sh); }

/* ---------- compact header ---------- */
.mx-head { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center; padding: 18px 20px; border-radius: 22px; background: #fff; border: 1px solid var(--ln); }
.mx-head-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.mx-head-id > img, .mx-head-id .mx-ph { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; background: radial-gradient(circle at 50% 40%, #fff, #eaf4dd); padding: 5px; flex: none; border: 1px solid var(--ln); }
.mx-head .mx-eyebrow { color: var(--pri2); font-size: 11.5px; font-weight: 700; }
.mx-head h2 { font-size: 26px; line-height: 1.15; margin: 2px 0 6px; color: var(--ink); letter-spacing: -.01em; }
.mx-head .mx-ings { margin: 0; } .mx-head .mx-ings span { background: var(--pri-ll); color: var(--pri); border: 1px solid #dcebc9; }
.mx-head-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mx-head .mx-eng { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--ln); background: var(--sf2); font: inherit; color: var(--tx2); cursor: pointer; }
.mx-head .mx-eng:hover { border-color: var(--pri2); color: var(--pri); }
.mx-head .mx-eng span { display: flex; flex-direction: column; text-align: start; line-height: 1.2; } .mx-head .mx-eng b { font-size: 12.5px; color: var(--ink); } .mx-head .mx-eng small { font-size: 10.5px; color: var(--tx3); }
.mx-head .mx-btn.pri { height: 42px; }
.mx-head .mx-seeds { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--ln); }
.mx-head .mx-seeds small { color: var(--tx3); display: inline-flex; gap: 4px; align-items: center; margin-inline-end: 4px; }
.mx-head .mx-seed { height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--ln); background: #fff; color: var(--tx2); font-size: 12px; }
.mx-head .mx-seed:hover { border-color: var(--pri2); color: var(--pri); } .mx-head .mx-seed.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- page nav (Signalry pill bar) ---------- */
.mx-pages { position: sticky; top: var(--mx-top, 8px); z-index: 20; display: flex; gap: 4px; padding: 5px; border-radius: 16px; background: rgba(230,234,226,.9); backdrop-filter: blur(12px); align-self: center; max-width: 100%; overflow-x: auto; scrollbar-width: none; box-shadow: 0 6px 20px rgba(15,29,20,.06); }
.mx-pages button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 12px; border: 0; background: transparent; color: var(--tx2); font-weight: 700; font-size: 14px; white-space: nowrap; transition: .15s; }
.mx-pages button:hover { color: var(--ink); } .mx-pages button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(15,29,20,.1); } .mx-pages button.on .ic { color: var(--pri2); }
.mx-subnav { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 4px 2px 0; }
.mx-subnav-t b { display: block; font-size: 26px; color: var(--ink); letter-spacing: -.01em; line-height: 1.2; } .mx-subnav-t small { color: var(--tx3); font-size: 13px; }
.mx-subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mx-subtabs button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--ln); background: #fff; color: var(--tx2); font-weight: 600; font-size: 13px; }
.mx-subtabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); } .mx-subtabs button.on .ic { color: #b8de7a; }
.mx-subtabs em { font-style: normal; font-size: 10.5px; padding: 0 7px; border-radius: 99px; background: var(--pri-l); color: var(--pri); } .mx-subtabs button.on em { background: #75b72a; color: #0f1d14; }

/* ---------- overview: KPI strip ---------- */
.ov-kpis { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border: 1px solid var(--ln); border-radius: 20px; overflow: hidden; }
.ov-kpi { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 0; border-inline-end: 1px solid var(--ln); background: #fff; text-align: start; transition: .15s; }
.ov-kpi:last-child { border: 0; } .ov-kpi:hover { background: var(--pri-ll); }
.ov-kpi small { color: var(--tx2); font-size: 13px; } .ov-kpi b { font-size: 34px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.ov-kpi span { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--pri); background: var(--pri-l); padding: 2px 8px; border-radius: 6px; }

/* ---------- overview: brand-index dark panel ---------- */
.ov-index { border-radius: 22px; background: #121714; color: #e8efe4; border: 1px solid #222a24; overflow: hidden; }
.ov-ix-h { padding: 22px 24px; border-bottom: 1px solid #232b25; } .ov-ix-h small, .ov-index small { font-size: 11px; color: #8a978d; letter-spacing: .02em; }
.ov-ix-h h3 { color: #fff; font-size: 30px; font-weight: 500; margin: 6px 0; letter-spacing: -.01em; } .ov-ix-h p { color: #a9b5ab; font-size: 13.5px; margin: 0; max-width: 560px; }
.ov-ix-g { display: grid; grid-template-columns: 260px 1fr 300px; }
.ov-ix-g > div { padding: 20px 22px; border-inline-end: 1px solid #232b25; } .ov-ix-g > div:last-child { border: 0; }
.ov-ring { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ov-ring-c { --p: 0; width: 180px; height: 180px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative;
  background: conic-gradient(#9fd05a calc(var(--p) * 1%), rgba(255,255,255,.06) 0); }
.ov-ring-c::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #121714; border: 1px dashed rgba(159,208,90,.35); }
.ov-ring-c b, .ov-ring-c span { position: relative; } .ov-ring-c b { font-size: 44px; font-weight: 400; color: #fff; } .ov-ring-c span { font-size: 11.5px; color: #8a978d; }
.ov-ring .mx-link { color: #b8de7a; }
.ov-dims { display: flex; flex-direction: column; gap: 4px; }
.ov-dims-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .ov-dims-h span { font-size: 11px; color: #a9b5ab; display: inline-flex; gap: 6px; align-items: center; }
.ov-dims-h i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; } .ov-dims-h i.me { background: #9fd05a; } .ov-dims-h i.avg { background: #fff; width: 2px; height: 11px; }
.ov-dim { display: grid; grid-template-columns: 150px 1fr 52px 48px; gap: 12px; align-items: center; padding: 11px 0; border: 0; border-bottom: 1px solid #1e2520; background: none; color: #dfe8db; font: inherit; font-size: 13px; text-align: start; }
.ov-dim:hover span { color: #b8de7a; } .ov-dim b { font-weight: 600; color: #fff; text-align: end; } .ov-dim small { font-size: 12px; text-align: end; } .ov-dim small.up { color: #7fd6c2; } .ov-dim small.dn { color: #e9a36b; }
.ov-bar { position: relative; height: 12px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 6px); border-radius: 2px; }
.ov-bar i { position: absolute; top: 2px; bottom: 2px; inset-inline-start: 0; width: var(--w); border-radius: 2px; background: linear-gradient(90deg, rgba(159,208,90,.15), #9fd05a); }
[dir=rtl] .ov-bar i { background: linear-gradient(270deg, rgba(159,208,90,.15), #9fd05a); }
.ov-bar em { position: absolute; top: -3px; bottom: -3px; inset-inline-start: var(--a); width: 2px; background: #fff; }
.ov-sigs { display: flex; flex-direction: column; gap: 10px; }
.ov-sig { position: relative; text-align: start; padding: 14px 16px; border: 0; background: #1c231e; color: #e8efe4; font: inherit; display: flex; flex-direction: column; gap: 3px; transition: .15s; }
.ov-sig::before, .ov-sig::after, .ov-sig i::before, .ov-sig i::after { content: ''; position: absolute; width: 7px; height: 7px; border-color: #e8efe4; border-style: solid; }
.ov-sig::before { top: 0; left: 0; border-width: 1px 0 0 1px; } .ov-sig::after { top: 0; right: 0; border-width: 1px 1px 0 0; } .ov-sig i::before { bottom: 0; left: 0; border-width: 0 0 1px 1px; } .ov-sig i::after { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.ov-sig:hover { background: #232c25; } .ov-sig.w { background: linear-gradient(120deg, #1c231e, #3a2a1a); }
.ov-sig span { font-size: 11px; color: #9fd05a; font-weight: 700; } .ov-sig.w span { color: #e9a36b; } .ov-sig b { font-size: 16px; font-weight: 500; color: #fff; } .ov-sig p { margin: 0; font-size: 12px; color: #9aa69d; line-height: 1.6; }

/* ---------- overview: funnel / types / ideas / goals ---------- */
.ov-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; } .ov-row.b { grid-template-columns: 1.6fr 1fr; }
.ov-funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ov-funnel > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ov-fb { position: relative; width: 100%; height: 190px; border-radius: 12px; background: repeating-linear-gradient(135deg, #eef1ec 0 2px, transparent 2px 8px); display: flex; align-items: flex-end; overflow: hidden; }
.ov-fb i { position: relative; display: block; width: 100%; height: var(--h); border-radius: 12px; background: linear-gradient(180deg, #8cc63f, #4e8a17); }
.ov-funnel > div:first-child .ov-fb i { background: linear-gradient(180deg, #e9f4dc, #d6ebbd); }
.ov-fb em { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 700; background: #fff; color: var(--pri); padding: 2px 8px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.08); white-space: nowrap; }
.ov-fb:has(em) { overflow: visible; }
.ov-funnel b { font-size: 15px; color: var(--ink); } .ov-funnel small { font-size: 11.5px; color: var(--tx3); }
.ov-types { display: flex; flex-direction: column; gap: 14px; }
.ov-types > div { display: grid; grid-template-columns: 120px 1fr 52px; gap: 10px; align-items: center; font-size: 13px; } .ov-types b { text-align: end; color: var(--ink); }
.ov-tb { position: relative; height: 16px; border-radius: 5px; background: #f1f4ee; }
.ov-tb i { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); border-radius: 5px; background: #d8ebc1; }
.ov-tb i.top { background: repeating-linear-gradient(135deg, #5a9a1f 0 4px, #75b72a 4px 8px); }
.ov-tb em { position: absolute; top: -22px; inset-inline-start: calc(var(--w, 50%) - 10px); font-style: normal; font-size: 10.5px; font-weight: 700; background: var(--ink); color: #fff; padding: 1px 7px; border-radius: 6px; }
.ov-tbl { display: flex; flex-direction: column; }
.ov-tr { border-bottom: 1px solid var(--ln); } .ov-tr:last-child { border: 0; }
.ov-tr > summary, .ov-tr.h { display: grid; grid-template-columns: 2.2fr 1fr 1.3fr 70px 40px; gap: 10px; align-items: center; padding: 11px 4px; font-size: 13px; list-style: none; cursor: pointer; }
.ov-tr > summary::-webkit-details-marker { display: none; }
.ov-tr.h { color: var(--tx3); font-size: 11.5px; font-weight: 700; cursor: default; padding-top: 0; }
.ov-tr summary > span:first-child { font-weight: 600; color: var(--ink); display: flex; gap: 6px; align-items: center; } .ov-tr summary .ic.flip { transition: .2s; color: var(--tx3); } .ov-tr[open] summary .ic.flip { transform: rotate(-90deg); }
.ov-tr summary > span:nth-child(3) { color: var(--tx2); font-size: 12px; }
.ov-tr .pr { font-size: 11.5px; font-weight: 700; color: var(--amber); } .ov-tr .pr.hi { color: var(--red); }
.ov-tr[open] { background: var(--sf2); border-radius: 12px; }
.ov-ins { margin: 0 8px 10px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--ln); font-size: 12.5px; color: var(--tx2); display: flex; gap: 6px; align-items: flex-start; } .ov-ins b { color: var(--blue); }
.ov-folders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ov-folder { position: relative; text-align: start; border: 0; padding: 26px 14px 14px; border-radius: 6px 16px 16px 16px; display: flex; flex-direction: column; gap: 2px; font: inherit; }
.ov-folder::before { content: ''; position: absolute; top: -8px; inset-inline-start: 0; width: 55%; height: 14px; border-radius: 8px 8px 0 0; background: inherit; }
.ov-folder small { font-size: 11.5px; font-weight: 700; } .ov-folder b { font-size: 28px; font-weight: 500; } .ov-folder span { font-size: 11px; opacity: .75; }
.ov-folder.s0 { background: #e8efff; color: #1d4ed8; } .ov-folder.s1 { background: #fdf0d9; color: #a16207; } .ov-folder.s2 { background: #4e8a17; color: #fff; }
.ov-goals { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.ov-goals > div > div { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; } .ov-goals b { color: var(--ink); } .ov-goals span { color: var(--tx3); }
.ov-goals i { display: block; height: 6px; border-radius: 9px; background: #eef1ec; position: relative; } .ov-goals i::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); border-radius: 9px; background: var(--pri2); }

@media (max-width: 1100px) { .ov-ix-g { grid-template-columns: 1fr 1fr; } .ov-sigs { grid-column: 1 / -1; flex-direction: row; } .ov-sig { flex: 1; } .ov-kpis { grid-template-columns: repeat(3, 1fr); } .ov-kpi { border-bottom: 1px solid var(--ln); } }
@media (max-width: 860px) { .mx-head { grid-template-columns: 1fr; } .ov-row, .ov-row.b { grid-template-columns: 1fr; } .ov-ix-g { grid-template-columns: 1fr; } .ov-ix-g > div { border: 0; border-bottom: 1px solid #232b25; } .ov-sigs { flex-direction: column; } .ov-dim { grid-template-columns: 110px 1fr 44px 40px; } }
@media (max-width: 640px) { .ov-kpis { grid-template-columns: 1fr 1fr; } .ov-kpi b { font-size: 26px; } .mx-pages button { padding: 0 12px; } .mx-pages button span { display: none; } .mx-pages button.on span { display: inline; }
  .ov-tr > summary, .ov-tr.h { grid-template-columns: 1fr 70px 36px; } .ov-tr > summary > span:nth-child(2), .ov-tr > summary > span:nth-child(3), .ov-tr.h > span:nth-child(2), .ov-tr.h > span:nth-child(3) { display: none; } .ov-fb { height: 140px; } }
.ov-tb em { inset-inline-start: 6px; top: -21px; }
