:root {
    --nx-tool-gdfm-loss: #ef4444;
    --nx-tool-gdfm-forest: #22c55e;
    --nx-tool-gdfm-fire: #f59e0b;
}

.gdfm-hero-stripes-panel {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--surface-elevated, rgba(0, 0, 0, 0.12));
}

.gdfm-session-counter {
    margin: 1rem 0 0;
    line-height: 1;
    max-width: 44rem;
}

.gdfm-session-counter span,
.gdfm-session-counter em {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: normal;
    line-height: 1.35;
}

.gdfm-session-counter strong {
    display: block;
    margin: 0.15rem 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: clamp(4rem, 13vw, 7rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.08em;
    color: var(--nx-tool-gdfm-loss);
    font-variant-numeric: tabular-nums;
}

.gdfm-spike-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem 0.75rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--nx-tool-gdfm-fire);
    background: rgba(245, 158, 11, 0.08);
    border-radius: 0 8px 8px 0;
}

.gdfm-spike-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nx-tool-gdfm-fire);
}

.gdfm-spike-text {
    flex: 1 1 12rem;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.gdfm-scatter-wrap {
    min-height: 320px;
}

.gdfm-scatter-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gdfm-leg-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.gdfm-leg-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
}

.gdfm-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.75rem;
}

.gdfm-country-tile {
    padding: 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--surface-elevated, rgba(0, 0, 0, 0.12));
}

.gdfm-tile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
}

.gdfm-country-name {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.25;
}

.gdfm-accel-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    white-space: nowrap;
}

.gdfm-tile-ha {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0.5rem;
}

.gdfm-tile-stripes {
    height: 1.75rem;
    margin: 0;
}

.gdfm-drivers-bar {
    display: flex;
    width: 100%;
    height: 2.25rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    margin-top: 0.5rem;
}

.gdfm-driver-names {
    margin: 0.75rem 0 0;
    padding: 0.75rem 0.9rem;
    border-left: 3px solid var(--nx-tool-gdfm-loss);
    border-radius: 0 8px 8px 0;
    background: rgba(239, 68, 68, 0.08);
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.gdfm-driver-seg {
    min-width: 2px;
    transition: opacity 0.15s;
}

.gdfm-drivers-keys {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.gdfm-driver-key {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.gdfm-driver-swatch {
    width: 0.5rem;
    min-height: 2.5rem;
    border-radius: 3px;
    flex-shrink: 0;
}

.gdfm-driver-pct {
    color: var(--text-muted);
    font-weight: 600;
}

.gdfm-driver-regions {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.gdfm-commitments-wrap {
    min-height: 280px;
}

.gdfm-commitment-events {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.gdfm-commitment-events li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.gdfm-localized-card {
    line-height: 1.5;
    font-size: 0.95rem;
}

.gdfm-localized-place {
    margin: 0 0 0.5rem;
}

.map-wrap {
    height: 360px;
    border-radius: 8px;
    overflow: hidden;
}

.num-col { text-align: right; }
.empty-row, .empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 1.25rem 0;
}

.num-col.neg { color: #ef4444; }
.num-col.pos { color: #14b8a6; }

.chart-wrap {
    position: relative;
    width: 100%;
}
