/* GhostStat — Multi-Touch Attribution. Scoped .gs-mta. */
.gs-mta{--a:var(--gs-accent,#1FA463);--a2:#178A52;--line:var(--gs-line,#EAEEF3);--sh:var(--gs-shadow,0 1px 2px rgba(16,24,40,.04));font-family:'Open Sans',system-ui,sans-serif;color:#1b2434}
.gs-mta .head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.gs-mta .crumb{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#8C95A1;display:flex;align-items:center;gap:6px}
.gs-mta h1{font-size:22px;font-weight:800;margin:2px 0 0;letter-spacing:-.02em}
.gs-mta .head-actions{display:flex;align-items:center;gap:8px}
.gs-mta .mb-pill{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:7px 13px;font-size:13px;font-weight:600;cursor:pointer}
.gs-mta .btn{border:0;border-radius:8px;padding:9px 15px;font-weight:700;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.gs-mta .btn.primary{background:var(--a);color:#fff}.gs-mta .btn.text{background:none;color:#5b6472}
.gs-mta .rangepick{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 30px rgba(16,24,40,.12);padding:8px;min-width:170px}
.gs-mta .rp-presets{display:flex;flex-direction:column}.gs-mta .rm{background:none;border:0;text-align:left;padding:8px 10px;border-radius:7px;font-size:13px;cursor:pointer;color:#243247}
.gs-mta .rm:hover{background:#F4F7FA}
.gs-mta .mb-3{margin-bottom:14px}.gs-mta .small{font-size:12px}.gs-mta .gs-muted{color:#8C95A1}
.gs-mta .chartcard{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh);overflow:hidden}
.gs-mta .cc-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line);gap:10px}
.gs-mta .cc-head h5{margin:0;font-size:13px}
.gs-mta .empty{padding:20px 16px;text-align:center;color:#9AA3AE;font-size:13px}
.gs-mta .mta-dot{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:6px;vertical-align:middle}
.gs-mta .mta-sel,.gs-mta .mta-in{border:1px solid var(--line);border-radius:8px;padding:7px 10px;font-size:13px;font-family:inherit;background:#fff}

.gs-mta .mta-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:14px}
.gs-mta .kpi{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh);padding:14px 16px}
.gs-mta .kpi .l{font-size:11px;text-transform:uppercase;letter-spacing:.05em;font-weight:700;color:#8C95A1}
.gs-mta .kpi .v{font-size:24px;font-weight:800;margin-top:4px}
.gs-mta .mta-note{background:#EFF6FF;border:1px solid #BFDBFE;color:#1E40AF;border-radius:10px;padding:9px 12px;font-size:12.5px;margin-bottom:14px;display:flex;align-items:center;gap:8px}

.gs-mta .mta-bars{padding:14px 16px;display:flex;flex-direction:column;gap:11px}
.gs-mta .mta-brow{display:grid;grid-template-columns:minmax(120px,1.2fr) 2fr auto;align-items:center;gap:12px}
.gs-mta .mta-bk{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gs-mta .mta-bt{height:10px;background:#EEF2F7;border-radius:6px;overflow:hidden}.gs-mta .mta-bt>i{display:block;height:100%;border-radius:6px}
.gs-mta .mta-bv{font-size:13px;font-weight:800;white-space:nowrap;text-align:right}

.gs-mta .mta-tblwrap{overflow-x:auto}
.gs-mta .mta-tbl{width:100%;border-collapse:collapse;font-size:13px}
.gs-mta .mta-tbl th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#8C95A1;font-weight:700;padding:10px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
.gs-mta .mta-tbl th.r,.gs-mta .mta-tbl td.r{text-align:right}
.gs-mta .mta-tbl td{padding:10px 14px;border-bottom:1px solid #F2F5F8;white-space:nowrap}
.gs-mta .mta-tbl .ch{font-weight:600}.gs-mta .mta-tbl .hl{color:var(--a2);font-weight:800}

.gs-mta .mta-paths{padding:8px 8px;display:flex;flex-direction:column}
.gs-mta .mta-path{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border-radius:8px}
.gs-mta .mta-path:hover{background:#F8FAFC}
.gs-mta .mta-seq{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.gs-mta .mta-chip{font-size:12px;font-weight:700;border:1px solid;border-radius:20px;padding:3px 10px}
.gs-mta .mta-arrow{color:#B6BEC9;font-weight:700}
.gs-mta .mta-pmeta{white-space:nowrap}.gs-mta .mta-cnt{font-weight:800;font-size:13px}.gs-mta .mta-rev{color:#0f2a1c;font-weight:800;margin-left:6px}

.gs-mta-widget .mw-top{margin-bottom:8px}.gs-mta-widget .mw-conv{font-size:22px;font-weight:800}.gs-mta-widget .mw-l{font-size:12px;color:#8C95A1;margin-left:6px}
.gs-mta-widget .mw-row{display:flex;justify-content:space-between;font-size:13px;padding:3px 0}.gs-mta-widget .mw-v{font-weight:700}
.gs-mta-widget .mw-empty{color:#9AA3AE;font-size:12px}
.gs-mta-settings .mta-row{margin-bottom:14px;display:flex;flex-direction:column;gap:5px}.gs-mta-settings label{font-size:13px;font-weight:600}
.gs-mta-settings code{background:#F1F5F9;border-radius:4px;padding:1px 5px;font-size:12px}

@media(max-width:900px){.gs-mta .mta-kpis{grid-template-columns:1fr 1fr}.gs-mta .mta-brow{grid-template-columns:1fr}.gs-mta .mta-bt{order:3}}


/* Range picker. The markup is identical to AI Crawlers' — only part of the styling was ever
   written here, so the menu rendered half-designed. Ported and re-scoped rather than
   re-invented, so the pickers cannot drift apart. */
.gs-mta .rangepick .rm{display:block;width:100%;text-align:left;padding:8px 10px;border-radius:6px;font-weight:600;font-size:13px;color:#3C4350;border:0;background:none;cursor:pointer}
.gs-mta .rangepick .rm:hover{background:#F5F7FA}
.gs-mta .rangepick .rm.on{background:var(--a-soft);color:var(--a2)}
.gs-mta .rp-custom{border-top:1px solid #EEF1F6;margin-top:6px;padding:10px 10px 8px}
.gs-mta .rp-lbl{font-size:11px;text-transform:uppercase;letter-spacing:.05em;font-weight:700;color:#8C95A1;margin-bottom:8px}
.gs-mta .rp-dates{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.gs-mta .rp-dates input[type=date]{flex:1;min-width:0;height:32px;border:1px solid #D0D4DA;border-radius:6px;padding:0 8px;font-size:12.5px;color:#3C4350;background:#fff}
.gs-mta .rp-dates input[type=date]:focus{outline:none;border-color:var(--a);box-shadow:0 0 0 3px rgba(31,164,99,.14)}
.gs-mta .rp-arrow{color:#AAB2BD;font-weight:700}
.gs-mta .rp-apply{width:100%;height:34px;border:0;border-radius:6px;background:var(--a);color:#fff;font-weight:700;font-size:13px;cursor:pointer}
.gs-mta .rp-apply:hover{background:var(--a2)}

/* Denominator line under the contribution bars, and a quiet emphasis on the leading channel. */
.mta-btot{font-size:12px;margin-top:10px;padding-top:8px;border-top:1px solid var(--gs-line,#E6E9EF)}
.mta-brow[data-top="1"] .mta-bk{font-weight:700}

/* ---- channel contribution: vertical columns with a comparison ----
   Two bars per channel at a shared baseline, so "does this model credit organic more than last-touch
   does?" is answered by looking rather than by arithmetic. The ghost outline is the comparison model;
   the delta above is the difference in SHARE (percentage points), which stays comparable even when the
   two models distribute different totals. */
.gs-mta .mta-cols{display:flex;align-items:flex-end;gap:14px;padding:16px 16px 4px;
  overflow-x:auto;min-height:210px}
.gs-mta .mta-col{flex:1 1 0;min-width:58px;display:flex;flex-direction:column;align-items:center;gap:6px}
.gs-mta .mta-cbars{position:relative;width:100%;max-width:52px;height:140px;display:flex;
  align-items:flex-end;justify-content:center}
.gs-mta .mta-cb{position:absolute;bottom:0;border-radius:5px 5px 0 0;transition:height .35s cubic-bezier(.22,.7,.25,1)}
.gs-mta .mta-cb.main{width:60%;left:20%;z-index:2}
/* Outline, not a second fill: a comparison should be legible as a reference, not compete with the value. */
.gs-mta .mta-cb.ghost{width:100%;left:0;background:transparent;
  border:1.5px dashed var(--gs-line-2,#C7CDD6);border-bottom:0;z-index:1}
.gs-mta .mta-cdelta{font-size:11.5px;font-weight:700;min-height:15px;color:var(--gs-muted,#8C95A1)}
.gs-mta .mta-cdelta.up{color:#178A52}
.gs-mta .mta-cdelta.down{color:#C0392B}
.gs-mta .mta-cdelta.flat{color:var(--gs-muted,#8C95A1)}
.gs-mta .mta-cval{font-size:13px;font-weight:800;color:var(--gs-ink,#1A1D24)}
.gs-mta .mta-clab{font-size:11.5px;color:var(--gs-muted,#8C95A1);text-align:center;line-height:1.3;
  max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gs-mta .mta-col.is-top .mta-clab{font-weight:700;color:var(--gs-ink-2,#3C4552)}
.gs-mta .mta-cmp-lbl{font-size:12px;color:var(--gs-muted,#8C95A1);display:inline-flex;align-items:center;gap:6px}
/* Columns get cramped before the card does, so the bars scroll inside their own container, never the page. */
@media(max-width:640px){.gs-mta .mta-cols{gap:10px}.gs-mta .mta-col{min-width:52px}}
