/* Behavioral Forecasting Engine — viewer. Scope .gs-bfc (unique). */
.gs-bfc{--good:#1FA463;--bad:#DC2626;--warn:#D97706;--blue:#2A6FE8;color:var(--ink,#1A1D24)}
.gs-bfc .page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.gs-bfc .crumb{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted,#8C95A1);display:flex;align-items:center;gap:6px}
.gs-bfc .crumb i{color:var(--blue)}
.gs-bfc h1{font-size:22px;font-weight:800;margin:4px 0 0}
.gs-bfc .head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gs-bfc .fc-date{height:30px;border:1px solid var(--line-2,#DFE4EB);border-radius:6px;padding:0 8px;font-size:12px;font-family:inherit;color:var(--ink,#1A1D24)}
.gs-bfc .fc-dash{color:var(--muted,#8C95A1)}
.gs-bfc .btn.text{background:transparent;border:1px solid var(--line-2,#DFE4EB);border-radius:6px;height:30px;padding:0 12px;font-size:12px;font-weight:600;color:var(--ink-2,#3C4350);cursor:pointer;display:inline-flex;align-items:center;gap:5px}
.gs-bfc .btn.text:hover{border-color:var(--blue);color:var(--blue)}
.gs-bfc .btn.text.sm{height:26px;padding:0 9px;font-size:11.5px}

.gs-bfc .fc-kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:16px}
@media(min-width:720px){.gs-bfc .fc-kpis{grid-template-columns:repeat(4,1fr)}}
.gs-bfc .fc-kpi{background:#fff;border:1px solid var(--line,#E9EDF3);border-radius:10px;padding:12px 14px;box-shadow:var(--sh-1,0 1px 2px rgba(16,24,40,.04))}
.gs-bfc .fc-kpi .l{font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#8C95A1)}
.gs-bfc .fc-kpi .v{font-size:24px;font-weight:800;margin-top:3px;font-variant-numeric:tabular-nums}
.gs-bfc .fc-kpi .s{font-size:10px;color:var(--muted,#8C95A1);margin-top:1px}
.gs-bfc .fc-kpi.accent{border-color:#BFD6FB;background:linear-gradient(180deg,#F5F9FF,#fff)}
.gs-bfc .fc-kpi.accent .v{color:var(--blue)}
.gs-bfc .fc-kpi.good .v{color:var(--good)} .gs-bfc .fc-kpi.bad .v{color:var(--bad)}

.gs-bfc .fc-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:960px){.gs-bfc .fc-grid{grid-template-columns:1fr 1fr}}
.gs-bfc .fc-panel{background:#fff;border:1px solid var(--line,#E9EDF3);border-radius:12px;box-shadow:var(--sh-1,0 1px 2px rgba(16,24,40,.04));padding:16px 18px;min-width:0}
.gs-bfc .fc-panel-h{font-size:13px;font-weight:700;display:flex;align-items:center;gap:8px;margin-bottom:12px}
.gs-bfc .fc-panel-h.mt-3{margin-top:18px}
.gs-bfc .fc-empty{color:var(--muted,#8C95A1);font-size:12.5px;padding:14px 0}
.gs-bfc .fc-vid{margin-left:auto;height:26px;border:1px solid var(--line-2,#DFE4EB);border-radius:6px;padding:0 8px;font-size:11.5px;font-family:ui-monospace,monospace;width:150px;max-width:40%}

/* avg forecast bars */
.gs-bfc .fc-abar{display:flex;align-items:center;gap:10px;margin:7px 0}
.gs-bfc .fc-abar .cap{font-size:11.5px;color:var(--ink-2,#3C4350);width:96px;flex:none}
.gs-bfc .fc-abar .track{flex:1;height:9px;background:#EEF1F5;border-radius:5px;overflow:hidden}
.gs-bfc .fc-abar .fill{height:9px;border-radius:5px;transition:width .5s cubic-bezier(.2,.7,.3,1)}
.gs-bfc .fc-abar .val{font-size:11.5px;font-weight:700;width:36px;text-align:right;font-variant-numeric:tabular-nums}

/* distribution */
.gs-bfc .fc-dist{display:flex;gap:8px}
.gs-bfc .fc-dcell{flex:1;border:1px solid var(--line,#E9EDF3);border-radius:8px;padding:10px;text-align:center}
.gs-bfc .fc-dcell .n{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums}
.gs-bfc .fc-dcell .k{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#8C95A1);margin-top:2px}
.gs-bfc .fc-dcell.high{background:#F0FAF4} .gs-bfc .fc-dcell.high .n{color:var(--good)}
.gs-bfc .fc-dcell.medium .n{color:var(--warn)}
.gs-bfc .fc-dcell.low{background:#FCF6F6} .gs-bfc .fc-dcell.low .n{color:var(--bad)}

/* visitor forecast */
.gs-bfc .fc-outcome{font-size:16px;font-weight:800;margin-bottom:2px}
.gs-bfc .fc-outcome.good{color:var(--good)} .gs-bfc .fc-outcome.bad{color:var(--bad)} .gs-bfc .fc-outcome.mid{color:var(--ink,#1A1D24)}
.gs-bfc .fc-sub{font-size:11px;color:var(--muted,#8C95A1);margin-bottom:14px}
.gs-bfc .fc-gauges{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.gs-bfc .fc-g{border:1px solid var(--line,#E9EDF3);border-radius:10px;padding:11px 12px}
.gs-bfc .fc-g .gl{font-size:11px;font-weight:600;color:var(--ink-2,#3C4350);display:flex;justify-content:space-between;margin-bottom:6px}
.gs-bfc .fc-g .gl b{font-size:14px;font-variant-numeric:tabular-nums}
.gs-bfc .fc-g .gtrack{height:8px;background:#EEF1F5;border-radius:4px;overflow:hidden}
.gs-bfc .fc-g .gfill{height:8px;border-radius:4px;transition:width .5s cubic-bezier(.2,.7,.3,1)}
.gs-bfc .fc-g.high .gfill{background:var(--good)} .gs-bfc .fc-g.medium .gfill{background:var(--warn)} .gs-bfc .fc-g.low .gfill{background:#9AA6B2}
.gs-bfc .fc-g.bounce.high .gfill{background:var(--bad)} .gs-bfc .fc-g.bounce.high b{color:var(--bad)}
.gs-bfc .fc-drivers-h{font-size:11px;font-weight:700;color:var(--ink-2,#3C4350);text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px}
.gs-bfc .fc-drivers{display:flex;flex-direction:column;gap:5px}
.gs-bfc .fc-drv{display:flex;align-items:center;gap:8px;font-size:12px}
.gs-bfc .fc-drv .s{width:16px;height:16px;border-radius:4px;flex:none;display:grid;place-items:center;font-weight:800;font-size:11px;color:#fff}
.gs-bfc .fc-drv.pos .s{background:var(--good)} .gs-bfc .fc-drv.neg .s{background:var(--bad)}


/* Shared date-range picker (normalised to /devicedetector) */
.mb-pill{position:relative;display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;border:1px solid var(--line-2,#D0D4DA);border-radius:6px;background:#fff;font-size:12.5px;font-weight:600;color:var(--ink-2,#3C4350);cursor:pointer;white-space:nowrap}
.mb-pill .car{font-size:11px;color:var(--muted-2,#AAB2BD)}
.rangepick{background:#fff;border:1px solid var(--line,#E9EDF3);border-radius:10px;box-shadow:0 12px 30px rgba(16,24,40,.16);min-width:236px;padding:6px}
.rangepick .rp-presets{display:flex;flex-direction:column}
.rangepick .rm{display:block;width:100%;text-align:left;padding:8px 10px;border-radius:6px;font-weight:600;font-size:13px;color:var(--ink-2,#3C4350);border:0;background:none;cursor:pointer}
.rangepick .rm:hover{background:#F5F7FA}
.rangepick .rm.on{background:var(--accent-soft,#E7F5EC);color:var(--accent-2,#178A52)}
.rangepick .rp-custom{border-top:1px solid #EEF1F6;margin-top:6px;padding:10px 10px 8px}
.rangepick .rp-lbl{font-size:11px;text-transform:uppercase;letter-spacing:.05em;font-weight:700;color:var(--muted,#8C95A1);margin-bottom:8px}
.rangepick .rp-dates{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.rangepick .rp-dates input[type=date]{flex:1;min-width:0;height:32px;border:1px solid var(--line-2,#D0D4DA);border-radius:6px;padding:0 8px;font-size:12.5px;color:var(--ink-2,#3C4350);background:#fff}
.rangepick .rp-dates input[type=date]:focus{outline:none;border-color:var(--accent,#1FA463);box-shadow:0 0 0 3px rgba(31,164,99,.14)}
.rangepick .rp-arrow{color:var(--muted-2,#AAB2BD);font-weight:700}
.rangepick .rp-apply{width:100%;height:34px;border:0;border-radius:6px;background:var(--accent,#1FA463);color:#fff;font-weight:700;font-size:13px;cursor:pointer}
.rangepick .rp-apply:hover{background:var(--accent-2,#178A52)}
