/* Defog Analytics — admin dashboard styles (scoped to #defog-app). */
/* Bundled fonts (Inter, Space Grotesk — SIL OFL 1.1). Served locally from the
   plugin: no external font requests, consistent with the privacy-first promise. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url('../fonts/inter-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url('../fonts/inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url('../fonts/space-grotesk-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

#defog-app{
	--surface:#FFFFFF; --surface-2:#F7FAFD;
	--ink:#0F1B2D; --ink-soft:#27384C; --muted:#566576; --faint:#8A98A8;
	--line:#E3EAF2; --line-soft:#EDF1F7;
	--accent:#0C7FF2; --accent-ink:#0A63BD; --accent-wash:rgba(12,127,242,.10);
	--teal:#08B4A6; --teal-wash:rgba(8,180,166,.08);
	--up:#13A06B; --down:#E0604C;
	--shadow:0 1px 2px rgba(15,27,45,.04), 0 6px 20px rgba(15,27,45,.05);
	--shadow-hover:0 2px 4px rgba(15,27,45,.06), 0 14px 34px rgba(15,27,45,.10);
	--r:16px;
	font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
	color:var(--ink);
	max-width:1240px;
	margin-right:20px;
	padding-top:6px;
	-webkit-font-smoothing:antialiased;
}
#defog-app *{box-sizing:border-box}
/* Our own display rules (e.g. .dnav button{display:inline-flex}) outrank the
   browser default for [hidden], so elements toggled via the attribute would
   still paint. Enforce it once for everything inside the dashboard. */
#defog-app [hidden]{display:none !important}

/* top bar (sticky command bar with section nav) */
#defog-app .defog-topbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:6px 0 18px;position:sticky;top:38px;z-index:60;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:9px 14px;box-shadow:var(--shadow)}
@media(max-width:782px){#defog-app .defog-topbar{top:52px}}
#defog-app .dnav{display:inline-flex;gap:3px;flex-wrap:wrap;margin-left:4px}
#defog-app .dnav button{font-family:inherit;font-size:12.5px;font-weight:600;color:var(--muted);background:transparent;border:0;border-radius:999px;padding:6px 12px;cursor:pointer;min-height:auto;line-height:1.2;display:inline-flex;align-items:center;gap:6px;transition:color .15s,background .15s}
#defog-app .dnav button:hover{color:var(--accent-ink);background:var(--surface-2)}
#defog-app .dnav button[aria-current="true"]{color:var(--accent-ink);background:var(--accent-wash)}
#defog-app .defog-events,#defog-app .defog-journey,#defog-app .defog-insights,#defog-app .defog-ecom{scroll-margin-top:112px}
#defog-app .brand{display:flex;align-items:center;gap:11px}
#defog-app .mark{width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,#0C7FF2,#0A63BD);display:grid;place-items:center;box-shadow:0 6px 16px rgba(12,127,242,.34);position:relative;overflow:hidden}
#defog-app .mark svg{position:relative;z-index:2}
#defog-app .mark .fog{position:absolute;inset:0;z-index:1;opacity:.55;filter:blur(3px)}
#defog-app .wordmark{font-family:"Space Grotesk",sans-serif;font-weight:700;font-size:23px;letter-spacing:-.02em;line-height:1}
#defog-app .wordmark b{color:var(--accent)}
#defog-app .divi-badge{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:var(--accent-ink);background:var(--accent-wash);border:1px solid rgba(12,127,242,.22);padding:4px 9px;border-radius:999px}
#defog-app .divi-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent)}
#defog-app .spacer{flex:1}
#defog-app .gdpr{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);background:var(--surface);border:1px solid var(--line);padding:7px 12px;border-radius:999px;box-shadow:var(--shadow)}
#defog-app .gdpr .lock{width:13px;height:13px;color:var(--up)}
#defog-app .seg{display:inline-flex;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:3px;box-shadow:var(--shadow)}
#defog-app .seg button{font-family:inherit;font-size:13px;font-weight:600;color:var(--muted);background:transparent;border:0;padding:7px 14px;border-radius:8px;cursor:pointer;transition:color .15s;min-height:auto;line-height:1.2}
#defog-app .seg button[aria-pressed="true"]{color:#fff;background:var(--accent);box-shadow:0 4px 12px rgba(12,127,242,.30)}
#defog-app .scope-hint{font-size:11.5px;color:var(--faint);margin:14px 0 14px 2px;display:flex;align-items:center;gap:7px}
#defog-app .scope-hint .arrow{color:var(--accent)}
#defog-app .scope-hint strong{color:var(--ink-soft)}

/* dashboard guide (beside live, collapsible) */
#defog-app .guide-btn{display:inline-flex;align-items:center;gap:6px;font-family:inherit;font-size:12px;font-weight:600;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:7px 12px;cursor:pointer;box-shadow:var(--shadow);min-height:auto;line-height:1.2}
#defog-app .guide-btn svg{width:14px;height:14px}
#defog-app .guide-btn[aria-pressed="true"]{color:var(--accent-ink);background:var(--accent-wash);border-color:rgba(12,127,242,.28)}
#defog-app .guide-card{display:none;flex-direction:column;background:linear-gradient(180deg,var(--accent-wash),#fff 72px);border-color:rgba(12,127,242,.28)}
#defog-app.guide-on .guide-card{display:flex;grid-column:span 4}
#defog-app.guide-on .live{grid-column:span 8}
#defog-app .guide-card .g-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}
#defog-app .guide-card .g-title{font-family:"Space Grotesk",sans-serif;font-weight:700;font-size:14px;color:var(--ink)}
#defog-app .guide-card .g-hide{font-family:inherit;font-size:11.5px;font-weight:600;color:var(--muted);background:transparent;border:0;cursor:pointer;padding:0;min-height:auto}
#defog-app .guide-card .g-hide:hover{color:var(--accent-ink)}
#defog-app .guide-card .g-list{display:flex;flex-direction:column;gap:11px}
#defog-app .guide-card .g-row{display:flex;gap:10px;align-items:flex-start}
#defog-app .guide-card .g-ic{color:var(--accent);flex:none;display:grid;place-items:center;margin-top:1px}
#defog-app .guide-card .g-ic svg{width:16px;height:16px}
#defog-app .guide-card .g-tx{font-size:12.5px;color:var(--ink-soft);line-height:1.45}
@media(max-width:782px){#defog-app.guide-on .live{grid-column:span 12}#defog-app.guide-on .guide-card{grid-column:span 12}}

/* grid + cards */
#defog-app .defog-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
/* max-width/min-width: undo WP admin core `.card` component styles (common.css
   caps .card at 520px), which would otherwise shrink every dashboard card. */
#defog-app .card{grid-column:span 12;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px 18px 16px;box-shadow:var(--shadow);position:relative;margin:0;max-width:none;min-width:0;transition:box-shadow .18s ease,transform .18s ease}
#defog-app .card:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover)}
#defog-app .card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
#defog-app .card-title{font-size:13px;font-weight:600;color:var(--muted);display:flex;align-items:center;gap:8px}
#defog-app .eyebrow{font-family:"Space Grotesk",sans-serif;font-size:10.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}
#defog-app .defog-empty{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--faint);padding:14px 0}
#defog-app .defog-empty svg{width:18px;height:18px;flex:none;opacity:.55}
#defog-app .defog-grid.mt{margin-top:16px}

/* live */
#defog-app .live{background:linear-gradient(180deg,var(--teal-wash),#fff 64px);border-color:rgba(8,180,166,.28)}
#defog-app .live-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
#defog-app .live-head .eyebrow{color:var(--teal);display:flex;align-items:center;gap:8px}
#defog-app .live-note{font-size:11.5px;color:var(--muted);background:var(--surface);border:1px solid rgba(8,180,166,.25);padding:4px 10px;border-radius:999px}
#defog-app .live-cols{display:flex;flex-wrap:wrap;gap:22px}
#defog-app .now{display:flex;flex-direction:column;justify-content:center;flex:0 0 230px;min-width:0}
#defog-app .now .big{font-family:"Space Grotesk",sans-serif;font-weight:700;font-size:62px;line-height:.95;letter-spacing:-.03em;font-variant-numeric:tabular-nums;transition:color .2s}
#defog-app .now .big.bump{color:var(--teal)}
#defog-app .now .sub{font-size:13px;color:var(--muted);margin-top:4px}
#defog-app .pulse{width:9px;height:9px;border-radius:50%;background:var(--teal);position:relative;flex:none;display:inline-block}
#defog-app .pulse::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid var(--teal);opacity:.6;animation:defog-ring 1.8s ease-out infinite}
@keyframes defog-ring{0%{transform:scale(.5);opacity:.7}100%{transform:scale(1.7);opacity:0}}
#defog-app .rt{display:flex;flex-direction:column;justify-content:flex-end;margin-top:14px}
#defog-app .rt .rt-label{font-size:11.5px;color:var(--faint);margin-bottom:6px;display:flex;justify-content:space-between}
#defog-app .live-list{flex:1 1 240px;min-width:200px;border-left:1px solid rgba(8,180,166,.20);padding-left:22px}
#defog-app .live-list .row{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--line-soft)}
#defog-app .live-list .row:last-child{border-bottom:0}
#defog-app .lbl{flex:1 1 auto;min-width:0;font-size:13px;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#defog-app .lbl .src{display:inline-flex;align-items:center;gap:7px}
#defog-app .dot{width:7px;height:7px;border-radius:50%;flex:none}
#defog-app .cnt{flex:none;margin-left:auto;font-family:"Space Grotesk",sans-serif;font-weight:600;font-size:14px;color:var(--ink);font-variant-numeric:tabular-nums}
#defog-app .sep-title{font-size:12px;font-weight:600;color:var(--muted);margin-bottom:4px}

/* kpi */
#defog-app .kpi{grid-column:span 3}
#defog-app .kpi .val{font-family:"Space Grotesk",sans-serif;font-weight:700;font-size:30px;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1;margin:2px 0 8px}
#defog-app .delta{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:600}
#defog-app .delta svg{width:13px;height:13px}
#defog-app .delta.good{color:var(--up)} #defog-app .delta.bad{color:var(--down)}
#defog-app .delta .vs{color:var(--faint);font-weight:500;margin-left:4px}
#defog-app .kpi .spark{position:absolute;right:14px;bottom:12px;width:78px;height:34px;opacity:.9}

/* chart */
#defog-app .chart-card{grid-column:span 8}
#defog-app .metric-toggle{display:inline-flex;gap:4px}
#defog-app .metric-toggle button{font-family:inherit;font-size:12px;font-weight:600;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);padding:5px 11px;border-radius:8px;cursor:pointer;min-height:auto;line-height:1.2}
#defog-app .metric-toggle button[aria-pressed="true"]{color:var(--accent-ink);background:var(--accent-wash);border-color:rgba(12,127,242,.3)}
#defog-app .chart-host{position:relative}
#defog-app .chart-host svg{display:block;width:100%;height:240px;overflow:visible}
#defog-app .legend{display:flex;gap:16px;font-size:12px;color:var(--muted);margin-top:6px}
#defog-app .legend i{display:inline-block;width:14px;height:3px;border-radius:2px;vertical-align:middle;margin-right:6px}
#defog-app .tooltip{position:absolute;pointer-events:none;background:var(--ink);color:#fff;border-radius:9px;padding:8px 11px;font-size:12px;line-height:1.5;opacity:0;transform:translate(-50%,-10px);transition:opacity .12s;white-space:nowrap;z-index:5;box-shadow:0 8px 24px rgba(15,27,45,.28)}
#defog-app .tooltip b{font-family:"Space Grotesk",sans-serif}
#defog-app .crosshair{stroke:var(--line);stroke-width:1;stroke-dasharray:3 3}
#defog-app .cursor-dot{fill:var(--accent);stroke:#fff;stroke-width:2}

/* channels */
#defog-app .chan-card{grid-column:span 4}
#defog-app .chan{display:flex;flex-direction:column;gap:13px;margin-top:2px}
#defog-app .chan .c-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:5px}
#defog-app .c-name{font-size:13px;color:var(--ink-soft);font-weight:500}
#defog-app .c-val{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
#defog-app .c-val b{font-family:"Space Grotesk",sans-serif;color:var(--ink);font-weight:600}
#defog-app .bar{height:8px;border-radius:6px;background:var(--line-soft);overflow:hidden}
#defog-app .bar > i{display:block;height:100%;border-radius:6px;transition:width .6s cubic-bezier(.2,.7,.2,1)}

/* trio */
#defog-app .third{grid-column:span 4}
#defog-app .plist .row{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line-soft)}
#defog-app .plist .row:last-child{border-bottom:0}
#defog-app .path{flex:1;min-width:0;font-size:13px;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#defog-app .minibar{flex:1;max-width:90px;height:6px;border-radius:5px;background:var(--line-soft);overflow:hidden}
#defog-app .minibar > i{display:block;height:100%;background:linear-gradient(90deg,#7FBFFB,#0C7FF2);border-radius:5px;transition:width .6s cubic-bezier(.2,.7,.2,1)}
#defog-app .num{font-family:"Space Grotesk",sans-serif;font-weight:600;font-size:13px;font-variant-numeric:tabular-nums;min-width:46px;text-align:right}
#defog-app .flag{width:18px;text-align:center;font-size:14px;flex:none}
#defog-app .donut-wrap{display:flex;align-items:center;gap:18px}
#defog-app .donut-legend{display:flex;flex-direction:column;gap:9px;flex:1}
#defog-app .dl{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--ink-soft)}
#defog-app .dl .left{display:flex;align-items:center;gap:8px}
#defog-app .dl b{font-family:"Space Grotesk",sans-serif;color:var(--ink);font-variant-numeric:tabular-nums}

#defog-app .defog-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:22px;color:var(--faint);font-size:12px}
#defog-app .defog-foot .fresh{display:inline-flex;align-items:center;gap:7px}
#defog-app .defog-foot .pulse{width:7px;height:7px}

/* contextual help (? tooltips) */
#defog-app .dg-help{position:relative;display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;background:var(--line-soft);color:var(--faint);cursor:help;flex:none;vertical-align:middle}
#defog-app .dg-help .qm{font-family:"Space Grotesk",sans-serif;font-size:10px;font-weight:700;line-height:1}
#defog-app .dg-help:hover,#defog-app .dg-help:focus{background:var(--accent-wash);color:var(--accent-ink);outline:none}
#defog-app .dg-help .dg-tip{position:absolute;bottom:calc(100% + 9px);left:50%;transform:translateX(-50%) translateY(4px);width:212px;background:var(--ink);color:#fff;padding:9px 12px;border-radius:10px;font-family:Inter,system-ui,sans-serif;font-size:11.5px;font-weight:500;line-height:1.5;letter-spacing:normal;text-transform:none;text-align:left;white-space:normal;opacity:0;pointer-events:none;transition:opacity .14s,transform .14s;z-index:30;box-shadow:0 8px 24px rgba(15,27,45,.28)}
#defog-app .dg-help:hover .dg-tip,#defog-app .dg-help:focus .dg-tip{opacity:1;transform:translateX(-50%) translateY(0)}
#defog-app .dg-help .dg-tip::after{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);border:6px solid transparent;border-top-color:var(--ink)}

/* feedback modal */
#defog-app .dg-modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-46%) scale(.98);width:440px;max-width:92vw;background:var(--surface);border-radius:16px;box-shadow:0 30px 80px rgba(15,27,45,.28);z-index:100001;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
#defog-app .dg-modal.open{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}
#defog-app .fb-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 14px;border-bottom:1px solid var(--line)}
#defog-app .fb-t{font-family:"Space Grotesk",sans-serif;font-weight:700;font-size:16px;color:var(--ink)}
#defog-app .fb-body{padding:16px 20px 20px}
#defog-app .fb-lead{font-size:13px;color:var(--muted);margin:0 0 12px;line-height:1.5}
#defog-app .fb-textarea{width:100%;border:1px solid var(--line);border-radius:11px;padding:11px 12px;font-family:inherit;font-size:13.5px;color:var(--ink);resize:vertical;background:var(--surface-2);line-height:1.5}
#defog-app .fb-textarea:focus{outline:none;border-color:var(--accent);background:var(--surface);box-shadow:0 0 0 3px var(--accent-wash)}
#defog-app .fb-actions{display:flex;justify-content:flex-end;margin-top:14px}
#defog-app .fb-send{font-family:inherit;font-size:13px;font-weight:600;color:#fff;background:var(--accent);border:0;border-radius:9px;padding:9px 18px;cursor:pointer;box-shadow:0 4px 12px rgba(12,127,242,.3);min-height:auto}
#defog-app .fb-send:hover{background:var(--accent-ink)}
#defog-app .fb-note{font-size:11px;color:var(--faint);margin:12px 0 0;line-height:1.5}

@keyframes defog-sharpen{from{filter:blur(9px);opacity:0;transform:translateY(8px)}to{filter:blur(0);opacity:1;transform:none}}
#defog-app .refresh{animation:defog-sharpen .45s ease both}

@media(max-width:1100px){
	#defog-app .kpi{grid-column:span 6}
	#defog-app .chart-card{grid-column:span 12}
	#defog-app .chan-card{grid-column:span 12}
	#defog-app .third{grid-column:span 6}
}
@media(max-width:782px){
	#defog-app .live-list{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:12px;flex-basis:100%}
	#defog-app .third{grid-column:span 12}
}
@media(prefers-reduced-motion:reduce){
	#defog-app .refresh{animation:none}
	#defog-app .pulse::after{animation:none}
	#defog-app .card:hover{transform:none}
}

/* ---------- customer journey (Sankey flow) ---------- */
#defog-app .defog-journey{margin-top:8px}
#defog-app .journey-card{grid-column:span 12}
#defog-app .journey-card .card-head{align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:6px}
#defog-app .journey-host{margin-top:6px;overflow-x:auto}
#defog-app .journey-svg{display:block;width:100%;min-width:640px;height:340px}
#defog-app .journey-svg .jlabel{font-family:Inter,system-ui,sans-serif;font-size:10px;fill:var(--ink-soft);paint-order:stroke;stroke:var(--surface);stroke-width:3px;stroke-linejoin:round}
#defog-app .journey-svg .jhead{font-family:"Space Grotesk",sans-serif;font-size:10px;font-weight:600;letter-spacing:.06em;fill:var(--faint)}
#defog-app .journey-svg rect{transition:opacity .15s}

/* ---------- insights / recommendations ---------- */
#defog-app .defog-insights{margin-top:16px}
#defog-app .ins-card{grid-column:span 12}
#defog-app .ins-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin-top:4px}
#defog-app .ins-row{display:flex;gap:12px;align-items:flex-start;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:13px 14px}
#defog-app .ins-ic{width:34px;height:34px;border-radius:10px;flex:none;display:grid;place-items:center}
#defog-app .ins-ic svg{width:18px;height:18px}
#defog-app .ins-good .ins-ic{background:rgba(19,160,107,.10);color:var(--up)}
#defog-app .ins-warn .ins-ic{background:rgba(224,96,76,.10);color:var(--down)}
#defog-app .ins-info .ins-ic{background:var(--accent-wash);color:var(--accent-ink)}
#defog-app .ins-t{font-size:13.5px;font-weight:600;color:var(--ink);margin-bottom:3px}
#defog-app .ins-b{font-size:12px;color:var(--muted);line-height:1.5}

/* ---------- events / actions ---------- */
#defog-app .defog-events{margin-top:8px}
#defog-app .ev-card{grid-column:span 12}
#defog-app .ev-card.w6{grid-column:span 6}
#defog-app .ev-card.w4{grid-column:span 4}
@media(max-width:900px){#defog-app .ev-card.w6,#defog-app .ev-card.w4{grid-column:span 12}}
#defog-app .ev-card .card-head{align-items:flex-start}
#defog-app .ev-sum{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
#defog-app .ev-sum b{font-family:"Space Grotesk",sans-serif;color:var(--ink);font-weight:700}

/* ---------- e-commerce (WooCommerce) ---------- */
#defog-app .defog-ecom{margin-top:8px}
#defog-app .ecom-eyebrow{font-family:"Space Grotesk",sans-serif;font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);margin:18px 0 12px 2px;display:flex;align-items:center;gap:12px}
#defog-app .ecom-eyebrow .ln{flex:1;height:1px;background:var(--line)}
#defog-app .kpi .ic{position:absolute;top:16px;right:16px;width:30px;height:30px;border-radius:9px;display:grid;place-items:center}
#defog-app .kpi .ic svg{width:16px;height:16px}
#defog-app .ads-tag{font-size:10px;font-weight:700;color:var(--paid);background:var(--paid-wash);padding:1px 6px;border-radius:6px;letter-spacing:.02em;margin-left:7px}
#defog-app .attrib-note{font-size:11px;color:var(--faint);margin-top:12px;line-height:1.5}
#defog-app .prod-card{grid-column:span 12}
#defog-app .eprod .row{display:flex;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid var(--line-soft)}
#defog-app .eprod .row:last-child{border-bottom:0}
#defog-app .eprod .rank{font-family:"Space Grotesk",sans-serif;font-weight:700;font-size:13px;color:var(--faint);width:18px;text-align:center;flex:none}
#defog-app .eprod .thumb{width:38px;height:38px;border-radius:9px;background:linear-gradient(135deg,#E8EEF6,#DCE6F2);flex:none;display:grid;place-items:center;color:#9DB0C5}
#defog-app .eprod .pname{flex:1;min-width:0}
#defog-app .eprod .pname .t{font-size:13.5px;color:var(--ink-soft);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#defog-app .eprod .pname .u{font-size:11.5px;color:var(--faint);margin-top:2px}
#defog-app .eprod .pbar{flex:1;max-width:160px;height:6px;border-radius:5px;background:var(--line-soft);overflow:hidden}
#defog-app .eprod .pbar > i{display:block;height:100%;background:linear-gradient(90deg,#34D399,#08B4A6);border-radius:5px;transition:width .6s cubic-bezier(.2,.7,.2,1)}
#defog-app .eprod .prev{font-family:"Space Grotesk",sans-serif;font-weight:600;font-size:14px;font-variant-numeric:tabular-nums;min-width:96px;text-align:right;color:var(--ink)}
@media(max-width:782px){#defog-app .eprod .pbar{display:none}}

/* ---------- conversion funnel ---------- */
#defog-app .funnel-card{grid-column:span 12}
#defog-app .funnel-card .card-head{align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:18px}
#defog-app .card-title-wrap .ct{font-size:15px;font-weight:600;color:var(--ink)}
#defog-app .card-title-wrap .cs{font-size:12.5px;color:var(--muted);margin-top:3px}
#defog-app .funnel-card .overall{text-align:right;margin-left:auto}
#defog-app .funnel-card .overall .big{font-family:"Space Grotesk",sans-serif;font-weight:700;font-size:26px;letter-spacing:-.02em;color:var(--teal);line-height:1}
#defog-app .funnel-card .overall .lbl{font-size:11px;color:var(--faint);margin-top:4px}
#defog-app .funnel{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:14px;align-items:end}
#defog-app .fstage{display:flex;flex-direction:column;gap:10px;min-width:0}
#defog-app .fcol{height:150px;background:var(--surface-2);border:1px solid var(--line-soft);border-radius:10px;display:flex;align-items:flex-end;overflow:hidden}
#defog-app .fcol > i{display:block;width:100%;border-radius:8px 8px 0 0;transition:height .7s cubic-bezier(.2,.7,.2,1);background:linear-gradient(180deg,#0C7FF2,#22A6C3)}
#defog-app .fstage.s2 .fcol > i{background:linear-gradient(180deg,#22A6C3,#08B4A6)}
#defog-app .fstage.s3 .fcol > i{background:linear-gradient(180deg,#19B39A,#15C39A)}
#defog-app .fstage.s4 .fcol > i{background:linear-gradient(180deg,#13B488,#15C39A)}
#defog-app .fstage.s5 .fcol > i{background:linear-gradient(180deg,#13A06B,#19C37D)}
#defog-app .fmeta{display:flex;flex-direction:column;gap:2px}
#defog-app .fmeta .st-ic{width:26px;height:26px;border-radius:8px;background:var(--teal-wash);color:var(--teal);display:grid;place-items:center;flex:none;margin-bottom:4px}
#defog-app .fmeta .st-ic svg{width:15px;height:15px}
#defog-app .fname{font-size:12.5px;font-weight:600;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#defog-app .fnum{font-family:"Space Grotesk",sans-serif;font-weight:700;font-size:18px;color:var(--ink);font-variant-numeric:tabular-nums}
#defog-app .fpct{font-size:11.5px;color:var(--muted)}
#defog-app .fkeep{font-size:11.5px;color:var(--teal);font-weight:600;margin-top:2px}
#defog-app .fkeep-blank{visibility:hidden}

/* ---------- page detail drawer ---------- */
#defog-app .plist .prow{cursor:pointer;border-radius:10px;padding-left:8px;padding-right:8px;transition:background .15s}
#defog-app .plist .prow:hover{background:var(--surface-2)}
#defog-app .plist .prow .chev{color:var(--faint);flex:none;display:grid;place-items:center}
#defog-app .dg-backdrop{position:fixed;inset:0;background:rgba(15,27,45,.28);opacity:0;pointer-events:none;transition:opacity .25s;z-index:100000}
#defog-app .dg-backdrop.open{opacity:1;pointer-events:auto}
#defog-app .dg-drawer{position:fixed;top:0;right:0;height:100%;width:440px;max-width:92vw;background:var(--surface);box-shadow:-16px 0 50px rgba(15,27,45,.18);transform:translateX(100%);transition:transform .3s cubic-bezier(.2,.7,.2,1);z-index:100001;display:flex;flex-direction:column}
#defog-app .dg-drawer.open{transform:none}
#defog-app .dr-head{padding:20px 22px 16px;border-bottom:1px solid var(--line)}
#defog-app .dr-eyebrow{font-family:"Space Grotesk",sans-serif;font-size:10.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);display:flex;align-items:center;justify-content:space-between}
#defog-app .dr-close{background:var(--surface-2);border:1px solid var(--line);border-radius:8px;width:28px;height:28px;display:grid;place-items:center;cursor:pointer;color:var(--muted);min-height:auto}
#defog-app .dr-path{margin-top:10px}
#defog-app .dr-path .p{font-family:"Space Grotesk",sans-serif;font-weight:600;font-size:16px;color:var(--ink);word-break:break-all;line-height:1.3}
#defog-app .dr-body{padding:18px 22px 28px;overflow:auto}
#defog-app .dr-body .tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}
#defog-app .dr-body .tile{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:12px 13px}
#defog-app .dr-body .tile .l{font-size:11.5px;color:var(--muted);display:flex;align-items:center;gap:6px}
#defog-app .dr-body .tile .tic{display:inline-grid;place-items:center;color:var(--accent)}
#defog-app .dr-body .tile .tic svg{width:15px;height:15px}
#defog-app .dr-body .tile .v{font-family:"Space Grotesk",sans-serif;font-weight:700;font-size:22px;letter-spacing:-.02em;margin-top:5px;font-variant-numeric:tabular-nums}
#defog-app .dr-body .tile.good .v{color:var(--up)}
#defog-app .dr-body .tile.warn .v{color:var(--down)}
#defog-app .dr-body .sec-t{font-size:12px;font-weight:600;color:var(--muted);margin:6px 0 11px}
#defog-app .dr-body .pd-spark{width:100%;height:52px;margin-bottom:18px}
#defog-app .dr-body .chan{display:flex;flex-direction:column;gap:11px;margin-bottom:20px}
#defog-app .dr-body .dev{display:flex;gap:8px}
#defog-app .dr-body .dev .d{flex:1;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:9px 10px;text-align:center}
#defog-app .dr-body .dev .d .dv{font-family:"Space Grotesk",sans-serif;font-weight:700;font-size:16px}
#defog-app .dr-body .dev .d .dl{font-size:10.5px;color:var(--muted);margin-top:2px}
