.gf-view {
    --brand-orange: #F0532D;
    --brand-orange-soft: #FCE9E1;
    --brand-orange-deep: #C13E1D;
    --ink: #191919;
    --ink-2: #2D2D2D;
    --subhead: #616161;
    --grey: #808080;
    --grey-light: #EEEEEE;
    --grey-semi: #E3E3E3;
    --surface: #ffffff;
    --bg: #FAFAF7;
    --ok: #14B86A;
    --warn: #E08A00;
    --danger: #D93B3B;
    --info: #2D6BD6;
    --r: 12px;
    --r-lg: 18px;

    padding: 18px 22px 32px;
    background: var(--bg);
    color: var(--ink);
}

.gf-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 10px; }
.gf-header h1 { margin: 4px 0 0; font-family: 'Rift Soft','Nexa',sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.gf-header .gf-sub { color: var(--subhead); font-size: 13px; margin-top: 4px; }
.gf-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: 0.1em; color: var(--subhead); font-weight: 800;
    display: inline-flex; align-items: center; gap: 8px;
}
.gf-eyebrow .live-dot {
    width: 8px; height: 8px; border-radius: 999px; background: var(--ok);
    box-shadow: 0 0 8px var(--ok); animation: gf-pulse 1.6s ease-in-out infinite;
}
@keyframes gf-pulse { 0%,100% { opacity: 1;} 50% { opacity: 0.5;} }
.gf-header-right { display: flex; gap: 8px; align-items: center; }

.gf-subnav { display: flex; gap: 4px; padding: 4px 0; border-bottom: 1px solid var(--grey-semi); margin-bottom: 18px; }
.gf-subnav a {
    padding: 10px 14px; font-size: 13px; font-weight: 700;
    color: var(--subhead); text-decoration: none;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.gf-subnav a:hover { color: var(--ink); text-decoration: none; }
.gf-subnav a.active { color: var(--brand-orange-deep); border-bottom-color: var(--brand-orange); }

.gf-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.gf-kpi { background: var(--surface); border: 1px solid var(--grey-semi); border-radius: var(--r); padding: 14px 16px; }
.gf-kpi.accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.gf-kpi.accent .lbl { color: rgba(255,255,255,0.6); }
.gf-kpi.accent .val { color: #fff; }
.gf-kpi .lbl { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subhead); font-weight: 800; }
.gf-kpi .val { font-family: 'Rift Soft','Nexa',sans-serif; font-size: 32px; line-height: 1; margin-top: 6px; }
.gf-kpi .val small { font-family: 'Nexa',sans-serif; font-size: 14px; color: var(--subhead); margin-left: 2px; }
.gf-kpi .delta { margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--ok); }
.gf-kpi .delta.down { color: var(--danger); }

.gf-hero {
    background: linear-gradient(135deg, #1F1614 0%, #0F0F0F 100%);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 18px 22px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.gf-hero-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.gf-hero-head h3 {
    margin: 4px 0 0;
    font-family: 'Nexa', sans-serif; font-weight: 900;
    font-size: 18px; letter-spacing: -0.01em;
    display: inline-flex; align-items: center; gap: 8px;
}
.gf-hero-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45); font-weight: 800; text-transform: uppercase;
}
.gf-hero .pulse {
    width: 8px; height: 8px; border-radius: 999px; background: var(--brand-orange);
    box-shadow: 0 0 8px var(--brand-orange); animation: gf-pulse 1.4s ease-in-out infinite;
}
.gf-hero-legend { display: flex; gap: 16px; font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 700; }
.gf-hero-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

.gf-hero-body { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; height: 140px; align-items: end; }
.gf-hero-col { display: flex; gap: 1px; align-items: end; height: 100%; }
.gf-hero-col .bar { flex: 1; border-radius: 1px 1px 0 0; min-height: 2px; transition: opacity 0.2s; }
.gf-hero-col .bar.enter { background: var(--brand-orange); }
.gf-hero-col .bar.exit  { background: rgba(255,255,255,0.65); }
.gf-hero-col:hover .bar { opacity: 0.7; }
.gf-hero-axis {
    display: flex; justify-content: space-between;
    margin-top: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; letter-spacing: 0.05em; color: rgba(255,255,255,0.45);
}

.gf-filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.gf-seg {
    display: inline-flex; gap: 2px;
    background: var(--surface); border: 1px solid var(--grey-semi);
    border-radius: 999px; padding: 3px;
}
.gf-seg button {
    padding: 6px 12px; border-radius: 999px; background: transparent; border: none;
    cursor: pointer; font-size: 12px; font-weight: 700; color: var(--subhead);
}
.gf-seg button.active { background: var(--ink); color: #fff; }

.gf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.gf-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--grey-semi);
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.gf-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(0,0,0,0.18); border-color: var(--ink); }
.gf-card.selected { border-color: var(--brand-orange); box-shadow: 0 0 0 2px var(--brand-orange-soft); }
.gf-card.inactive { opacity: 0.55; }
.gf-card-stripe { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.gf-card-preview { position: relative; height: 120px; overflow: hidden; }
.gf-card-preview svg { width: 100%; height: 100%; display: block; }
.gf-card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.gf-kind-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--surface); color: var(--ink);
    padding: 3px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.gf-card-body { padding: 14px 16px; }
.gf-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.gf-card-head h5 { margin: 0; font-family: 'Nexa', sans-serif; font-weight: 900; font-size: 14px; letter-spacing: -0.005em; }
.gf-rules { display: flex; gap: 4px; }
.gf-rule {
    display: inline-grid; place-items: center;
    width: 22px; height: 22px;
    border-radius: 6px; font-size: 12px; font-weight: 900;
    color: #fff;
}
.gf-rule.enter { background: var(--ok); }
.gf-rule.exit  { background: var(--info); }
.gf-card-sub { font-size: 11px; color: var(--subhead); margin-top: 4px; line-height: 1.4; }
.gf-card-stats { display: flex; gap: 12px; margin-top: 10px; font-size: 11px; color: var(--subhead); }
.gf-card-stats .x { flex: 1; }
.gf-card-stats b { display: block; font-family: 'Rift Soft','Nexa',sans-serif; font-size: 16px; color: var(--ink); font-weight: 700; margin-top: 2px; }
.gf-card-stats b.dark { color: var(--ink); }

.gf-empty {
    background: var(--surface);
    border: 1px solid var(--grey-semi);
    border-radius: var(--r-lg);
    padding: 56px 32px; text-align: center;
    color: var(--subhead); font-size: 14px;
}
.gf-empty-icon { font-size: 42px; margin-bottom: 12px; opacity: 0.4; }

.gf-status-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.gf-status-pill.enter { background: rgba(20,184,106,0.18); color: #0f8a4f; }
.gf-status-pill.exit  { background: rgba(45,107,214,0.16); color: var(--info); }

.gf-map-card {
    background: var(--surface);
    border: 1px solid var(--grey-semi);
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 540px;
    position: relative;
}

.gf-card-actions {
    display: flex; gap: 6px; margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--grey-light);
}
.gf-card-actions .k-button { font-size: 11px; }
.gf-card-actions .k-button:first-child { flex: 1; }