/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue-dark:   hsl(214, 84%, 20%);
    --blue-mid:    hsl(214, 84%, 30%);
    --blue-light:  hsl(214, 84%, 95%);
    --green:       hsl(142, 76%, 36%);
    --green-light: hsl(142, 25%, 90%);
    --green-pale:  hsl(142, 25%, 95%);
    --border:      hsl(214, 32%, 91%);
    --text:        hsl(210, 15%, 15%);
    --muted:       hsl(215, 15%, 55%);
    --bg:          hsl(0, 0%, 100%);
    --bg-subtle:   hsl(210, 20%, 98%);
    --amber:       hsl(38, 92%, 50%);
    --amber-light: hsl(38, 92%, 94%);
    --radius:      0.5rem;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    --shadow:      0 4px 12px rgba(0,0,0,.08);
    --shadow-lg:   0 8px 25px -8px rgba(0,0,0,.15);
    /* Aliases used by some pages */
    --surface:     hsl(0, 0%, 100%);
    --text-muted:  hsl(215, 15%, 55%);
    --accent:      hsl(214, 84%, 20%);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

/* ── Shared with main site ────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--blue-dark), var(--green));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* ── Header ──────────────────────────────────────────────────── */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: hsla(0,0%,100%,.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-content {
    display: flex; align-items: center;
    justify-content: space-between; height: 4.5rem;
}
.logo-container { display: flex; align-items: center; text-decoration: none; }
.logo { height: 6rem; width: auto; }
.logo-fallback { display: none; align-items: center; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--blue-dark); }
.logo-accent { color: var(--green); }

/* ── Mobile nav (default) ────────────────────────────────────── */
.nav {
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 4.5rem; right: 1rem; width: 240px;
    background: white; border: 1px solid var(--border);
    padding: .75rem 0; box-shadow: var(--shadow-lg); z-index: 999;
    border-radius: var(--radius);
}
.nav.open { display: flex; }

.nav-link {
    color: var(--muted); text-decoration: none;
    transition: color .2s; font-size: .9rem;
    padding: .5rem 1.25rem; display: block;
}
.nav-link:hover, .nav-link.active { color: var(--blue-dark); background: var(--bg-subtle); }
.nav-link.active { font-weight: 600; }

/* Dropdown: hidden on mobile, shown flat */
.nav-dropdown { display: none; }
.nav-mobile-only { display: block; padding-left: 2rem; font-size: .85rem; }

.mobile-nav-toggle {
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; padding: .25rem;
    cursor: pointer; color: var(--blue-dark);
}

.cta-button {
    display: none; align-items: center; gap: .4rem;
    background: linear-gradient(135deg, var(--blue-dark), hsl(214,84%,16%));
    color: white; padding: .5rem 1rem; border: none;
    border-radius: var(--radius); font-weight: 600; cursor: pointer;
    transition: transform .2s, box-shadow .2s; font-size: .875rem;
    white-space: nowrap;
}
.cta-button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* ── Desktop nav (768px+) ────────────────────────────────────── */
@media (min-width: 768px) {
    .nav {
        display: flex; position: static; flex-direction: row;
        align-items: center; background: transparent; border: none;
        box-shadow: none; padding: 0; width: auto; gap: 0;
    }
    .nav-link {
        padding: .5rem .75rem; font-size: .875rem; white-space: nowrap;
    }
    .nav-link:hover, .nav-link.active { background: transparent; }
    .nav-mobile-only { display: none; }

    /* Dropdown */
    .nav-dropdown { display: block; position: relative; }
    .nav-dropdown-trigger {
        display: inline-flex; align-items: center; gap: 4px;
        background: none; border: none; font-family: inherit;
        color: var(--muted); font-size: .875rem; cursor: pointer;
        padding: .5rem .75rem; transition: color .2s;
    }
    .nav-dropdown-trigger:hover, .nav-dropdown-trigger.active { color: var(--blue-dark); }
    .nav-dropdown-trigger.active { font-weight: 600; }
    .nav-dropdown-trigger svg { transition: transform .2s; }
    .nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }

    .nav-dropdown-menu {
        display: none; position: absolute; top: calc(100% + 4px); left: 50%;
        transform: translateX(-50%); min-width: 200px;
        background: white; border: 1px solid var(--border);
        border-radius: var(--radius); box-shadow: var(--shadow-lg);
        padding: .5rem 0; z-index: 1001;
    }
    .nav-dropdown:hover .nav-dropdown-menu { display: block; }

    .nav-dropdown-item {
        display: flex; align-items: center; gap: .6rem;
        padding: .6rem 1rem; color: var(--muted); text-decoration: none;
        font-size: .85rem; transition: all .15s;
    }
    .nav-dropdown-item:hover { background: var(--bg-subtle); color: var(--blue-dark); }
    .nav-dropdown-item.active { color: var(--blue-dark); font-weight: 600; }

    .mobile-nav-toggle { display: none; }
    .cta-button { display: inline-flex; }
}

/* ── Dashboard Hero ───────────────────────────────────────────── */
.dash-hero {
    padding-top: calc(4.5rem + 3rem);
    padding-bottom: 2rem;
    background: linear-gradient(135deg,
        hsla(214,84%,20%,.04) 0%,
        hsl(0,0%,100%) 50%,
        hsla(142,76%,36%,.04) 100%);
    border-bottom: 1px solid var(--border);
}
.dash-hero-content { text-align: center; margin-bottom: 2.5rem; }

.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--green-light); color: var(--text);
    padding: .4rem .9rem; border-radius: 9999px;
    font-size: .875rem; margin-bottom: 1.25rem;
}
.dash-title { font-size: 2.5rem; font-weight: 700; line-height: 1.1; margin-bottom: .75rem; }
.dash-subtitle { color: var(--muted); max-width: 40rem; margin: 0 auto; }

@media (min-width: 768px) { .dash-title { font-size: 3.5rem; } }

/* ── Stat grid ────────────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
    display: flex; align-items: center; gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.stat-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: var(--blue-light); color: var(--blue-dark); flex-shrink: 0;
}
.stat-icon.green  { background: var(--green-light); color: var(--green); }
.stat-icon.blue   { background: hsl(200,80%,93%); color: hsl(200,80%,35%); }
.stat-icon.amber  { background: var(--amber-light); color: var(--amber); }

.stat-value { font-size: 1.4rem; font-weight: 700; line-height: 1; color: var(--text); }
.stat-label { font-size: .78rem; color: var(--muted); margin-top: .2rem; }

/* ── Main layout ──────────────────────────────────────────────── */
.dash-main { padding: 2rem 0 4rem; }

.dash-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 900px) {
    .dash-layout { grid-template-columns: 260px 1fr; align-items: start; }
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.sidebar-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
    margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.sidebar-title { font-size: .875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .05em; color: var(--muted); margin-bottom: .75rem; }

.search-wrap { position: relative; }
.search-icon { position: absolute; left: .75rem; top: 50%;
    transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input {
    width: 100%; padding: .6rem .75rem .6rem 2.25rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: .9rem; font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    background: var(--bg-subtle);
}
.search-input:focus {
    outline: none; border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px hsla(214,84%,20%,.1);
}

.filter-list { display: flex; flex-direction: column; gap: .35rem; max-height: 280px; overflow-y: auto; }
.filter-btn {
    display: flex; align-items: center; justify-content: space-between;
    padding: .4rem .6rem; border: none; border-radius: .375rem;
    background: transparent; cursor: pointer; font-size: .875rem;
    font-family: inherit; color: var(--text); text-align: left;
    transition: background .15s;
}
.filter-btn:hover { background: var(--bg-subtle); }
.filter-btn.active { background: var(--blue-light); color: var(--blue-dark); font-weight: 600; }
.filter-count {
    font-size: .75rem; background: var(--border); color: var(--muted);
    padding: .1rem .45rem; border-radius: 9999px; margin-left: .5rem;
}
.filter-btn.active .filter-count { background: var(--blue-dark); color: white; }

.filter-skeleton {
    height: 1.75rem; border-radius: .375rem;
    background: linear-gradient(90deg, var(--border) 25%, var(--bg-subtle) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.info-card { background: var(--green-pale); border-color: var(--green-light);
    display: flex; gap: .75rem; align-items: flex-start; }
.info-icon { color: var(--green); flex-shrink: 0; margin-top: .1rem; }
.info-card p { font-size: .85rem; color: var(--text); }

/* ── Content cards ────────────────────────────────────────────── */
.content-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.content-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}
.content-title { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; }

.badge {
    font-size: .75rem; background: var(--blue-light); color: var(--blue-dark);
    padding: .15rem .55rem; border-radius: 9999px; font-weight: 600;
}

.sort-select {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: .35rem .6rem; font-size: .85rem; font-family: inherit;
    background: var(--bg); color: var(--text); cursor: pointer;
}

/* ── Dataset list ─────────────────────────────────────────────── */
.dataset-list { }

.ds-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s;
}
.ds-row:last-child { border-bottom: none; }
.ds-row:hover { background: var(--bg-subtle); }

.ds-title { font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.ds-meta  { font-size: .8rem; color: var(--muted); display: flex; gap: .75rem; flex-wrap: wrap; }
.ds-tag {
    display: inline-flex; align-items: center; gap: .25rem;
    background: var(--green-light); color: var(--green);
    font-size: .72rem; font-weight: 600; padding: .1rem .5rem;
    border-radius: 9999px;
}
.ds-records {
    font-size: .8rem; font-weight: 700; color: var(--blue-dark);
    background: var(--blue-light); padding: .2rem .6rem;
    border-radius: 9999px; white-space: nowrap;
}
.ds-no-data { color: var(--muted); font-size: .8rem; }

.ds-skeleton {
    height: 4.5rem; margin: 0; border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, var(--border) 25%, var(--bg-subtle) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Pagination ───────────────────────────────────────────────── */
.pagination {
    display: flex; gap: .4rem; padding: 1rem 1.5rem;
    align-items: center; flex-wrap: wrap;
    border-top: 1px solid var(--border); background: var(--bg-subtle);
}
.page-btn {
    padding: .35rem .7rem; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg);
    font-size: .85rem; cursor: pointer; font-family: inherit;
    transition: background .15s, border-color .15s;
}
.page-btn:hover { background: var(--blue-light); border-color: var(--blue-dark); }
.page-btn.active { background: var(--blue-dark); color: white; border-color: var(--blue-dark); font-weight: 600; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Detail panel ─────────────────────────────────────────────── */
.detail-card { margin-top: 1rem; }
.hidden { display: none !important; }

.back-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: none; border: 1px solid var(--border);
    border-radius: var(--radius); padding: .35rem .75rem;
    font-size: .875rem; cursor: pointer; font-family: inherit;
    color: var(--text); transition: background .15s;
}
.back-btn:hover { background: var(--bg-subtle); }

.detail-id { font-size: .875rem; font-family: 'DM Mono', monospace;
    color: var(--muted); background: var(--bg-subtle);
    padding: .2rem .6rem; border-radius: .375rem; }

.detail-content { padding: 1.5rem; }

.detail-loading {
    display: flex; align-items: center; gap: 1rem;
    color: var(--muted); padding: 2rem 0;
}
.spinner {
    width: 1.25rem; height: 1.25rem; border: 2px solid var(--border);
    border-top-color: var(--blue-dark); border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.detail-title { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.detail-desc  { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

.detail-meta-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: .75rem; margin-bottom: 1.75rem;
}
@media (min-width: 640px) { .detail-meta-grid { grid-template-columns: repeat(4, 1fr); } }

.meta-item { background: var(--bg-subtle); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .75rem; }
.meta-label { font-size: .75rem; color: var(--muted); text-transform: uppercase;
    letter-spacing: .04em; margin-bottom: .2rem; }
.meta-value { font-weight: 600; font-size: .95rem; }

.section-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem;
    padding-bottom: .5rem; border-bottom: 1px solid var(--border); }

/* Variabelen tabel */
.var-table { width: 100%; border-collapse: collapse; font-size: .875rem; margin-bottom: 1.75rem; }
.var-table th { background: var(--bg-subtle); padding: .6rem .75rem;
    text-align: left; font-weight: 600; border-bottom: 1px solid var(--border);
    color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.var-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); }
.var-table tr:last-child td { border-bottom: none; }
.var-table tr:hover td { background: var(--bg-subtle); }
.num-cell { font-family: 'DM Mono', monospace; font-size: .82rem; }

/* Chart wrapper */
.chart-controls { display: flex; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; }
.var-select {
    flex: 1; min-width: 200px; border: 1px solid var(--border);
    border-radius: var(--radius); padding: .5rem .75rem;
    font-size: .875rem; font-family: inherit; background: var(--bg);
}
.chart-wrap { position: relative; height: 280px; margin-bottom: 1.75rem; }

/* ── Footer (replica main site) ──────────────────────────────── */
.footer { background: hsl(210,20%,95%); padding: 3rem 0; color: var(--text); }
.footer-content { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-logo img { height: 6rem; margin-bottom: 1rem; }
.footer-links { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-section h4 { font-size: 1.125rem; font-weight: 600;
    margin-bottom: 1rem; padding-top: 2rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: .5rem; }
.footer-section ul li a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-section ul li a:hover { color: var(--blue-dark); }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; text-align: center;
    margin-top: 2rem; padding-top: 2rem; border-top: 1px solid hsl(210,20%,90%); }
.footer-legal a { color: var(--muted); text-decoration: none; margin: 0 .5rem; }
.footer-legal a:hover { color: var(--blue-dark); }

@media (min-width: 640px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-links { grid-template-columns: repeat(2,1fr); }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ── Scrollbar ────────────────────────────────────────────────── */
.filter-list::-webkit-scrollbar { width: 4px; }
.filter-list::-webkit-scrollbar-track { background: transparent; }
.filter-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════
   EXPLORER TOEVOEGINGEN
   ═══════════════════════════════════════════════════════════════ */

/* Periode filter */
.period-row { display: flex; align-items: center; gap: .5rem; }
.year-input {
    flex: 1;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .4rem .6rem;
    font-size: .85rem;
    font-family: 'DM Mono', monospace;
    color: var(--text);
    outline: none;
    transition: border-color .2s;
    -moz-appearance: textfield;
}
.year-input::-webkit-inner-spin-button { display: none; }
.year-input:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px hsla(214,84%,20%,.08); }
.year-input::placeholder { color: var(--muted); }
.period-dash { color: var(--muted); font-size: .85rem; }

/* Grafiek card */
.chart-card {
    margin-bottom: 1rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}
.chart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 2.5rem;
    color: var(--muted);
    text-align: center;
}
.chart-empty-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
}
.chart-empty p { font-size: .875rem; max-width: 280px; }

.chart-header { padding: 1.25rem 1.5rem .75rem; border-bottom: 1px solid var(--border); }
.chart-title-row {
    display: flex; align-items: center;
    justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.chart-controls { display: flex; align-items: center; gap: .6rem; }
.chart-type-btns { display: flex; gap: .25rem; }
.type-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .3rem .4rem;
    cursor: pointer; color: var(--muted);
    transition: all .15s;
    display: flex; align-items: center;
}
.type-btn:hover { border-color: var(--blue-dark); color: var(--blue-dark); }
.type-btn.active {
    background: var(--blue-dark); border-color: var(--blue-dark); color: white;
}

.chart-legend {
    display: flex; flex-wrap: wrap; gap: .5rem;
    padding: .5rem 1.5rem .25rem;
}
.legend-item {
    display: flex; align-items: center; gap: .35rem;
    font-size: .75rem; color: var(--muted);
}
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.chart-canvas-wrap {
    flex: 1; padding: .75rem 1.5rem;
    position: relative; min-height: 220px;
}
.chart-canvas-wrap canvas { width: 100% !important; height: 100% !important; }

.chart-stats {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    padding: .75rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
}
.stat-pill { display: flex; flex-direction: column; gap: .1rem; }
.stat-pill-label {
    font-size: .65rem; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted);
}
.stat-pill-value {
    font-family: 'DM Mono', monospace;
    font-size: .85rem; color: var(--text); font-weight: 500;
}

/* Dataset rows */
.ds-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem;
    align-items: center;
    padding: .875rem 1.5rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s;
    border-left: 3px solid transparent;
}
.ds-row:last-child { border-bottom: none; }
.ds-row:hover { background: var(--bg-subtle); }
.ds-row.selected {
    border-left-color: var(--blue-dark);
    background: var(--blue-light);
}
.ds-id {
    font-family: 'DM Mono', monospace;
    font-size: .65rem; color: var(--muted); margin-bottom: .2rem;
}
.ds-title { font-weight: 600; font-size: .9rem; color: var(--text); margin-bottom: .25rem; }
.ds-tags { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.ds-tag {
    font-size: .68rem; padding: .12rem .45rem;
    border-radius: 999px; font-weight: 600;
}
.ds-tag-thema {
    background: var(--blue-light); color: var(--blue-dark);
    border: 1px solid hsl(214,84%,85%);
}
.ds-tag-period {
    background: var(--bg-subtle); color: var(--muted);
    border: 1px solid var(--border);
    font-family: 'DM Mono', monospace;
}
.ds-tag-count {
    background: var(--green-light); color: var(--green);
    border: 1px solid hsl(142,40%,80%);
}

/* Active chips */
.active-chips {
    display: flex; flex-direction: column;
    gap: .3rem; margin-bottom: .75rem;
}
.active-chip {
    display: flex; align-items: center; gap: .4rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .3rem .5rem;
    font-size: .78rem;
}
.chip-color { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.chip-label {
    flex: 1; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; color: var(--text);
}
.chip-unit { font-size: .68rem; color: var(--muted); font-family: 'DM Mono', monospace; }
.chip-remove {
    background: none; border: none; color: var(--muted);
    cursor: pointer; font-size: .9rem; padding: 0; line-height: 1;
}
.chip-remove:hover { color: hsl(0,70%,50%); }

.active-actions { display: flex; gap: .4rem; align-items: center; }
.btn-clear {
    background: none; border: 1px solid var(--border);
    border-radius: var(--radius); padding: .3rem .5rem;
    font-size: .75rem; font-family: 'DM Sans', sans-serif;
    color: var(--muted); cursor: pointer; transition: all .15s;
    white-space: nowrap;
}
.btn-clear:hover { border-color: hsl(0,70%,50%); color: hsl(0,70%,50%); }
.btn-export {
    display: inline-flex; align-items: center; gap: .25rem;
    background: none; border: 1px solid var(--green);
    border-radius: var(--radius); padding: .3rem .55rem;
    font-size: .75rem; font-family: 'DM Sans', sans-serif;
    color: var(--green); cursor: pointer; transition: all .15s;
    white-space: nowrap;
}
.btn-export:hover { background: var(--green); color: white; }

/* Variabelen panel */
.var-panel { margin-top: 1rem; }
.var-panel-label {
    font-size: .65rem; text-transform: uppercase;
    letter-spacing: .1em; color: var(--blue-dark);
    margin-bottom: .2rem; font-weight: 600;
}
.var-panel-meta {
    display: flex; flex-wrap: wrap; gap: 1rem;
    padding: .75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}
.var-meta-item { display: flex; flex-direction: column; gap: .1rem; }
.var-meta-label {
    font-size: .62rem; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted);
}
.var-meta-value {
    font-family: 'DM Mono', monospace;
    font-size: .8rem; color: var(--text);
}

.var-list {
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .5rem;
}
.var-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .6rem .75rem;
    cursor: pointer;
    transition: all .15s;
    position: relative;
}
.var-item:hover { border-color: var(--blue-mid); background: var(--blue-light); }
.var-item.active {
    border-color: var(--blue-dark);
    background: var(--blue-light);
}
.var-item.active::after {
    content: '✓';
    position: absolute; top: .4rem; right: .5rem;
    font-size: .75rem; color: var(--blue-dark); font-weight: 700;
}
.var-item-title {
    font-size: .82rem; font-weight: 600;
    color: var(--text); line-height: 1.3;
    margin-bottom: .25rem; padding-right: 1rem;
}
.var-item-meta {
    display: flex; gap: .5rem; font-size: .7rem;
    color: var(--muted); font-family: 'DM Mono', monospace;
}
.var-item-points { color: var(--green); }

/* Thema filter knoppen (override filter-btn) */
.filter-btn {
    display: block; width: 100%;
    text-align: left;
    padding: .35rem .6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-subtle);
    cursor: pointer;
    font-size: .82rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    transition: all .15s;
}
.filter-btn:hover { border-color: var(--blue-mid); color: var(--blue-dark); }
.filter-btn.active {
    background: var(--blue-dark); border-color: var(--blue-dark);
    color: white; font-weight: 600;
}
