/* =========================================================
   HB DenkTank / Liber Veda — Centraal CSS-systeem
   Donkere, sfeervolle huisstijl. Alle opmaak komt hiervandaan.
   ========================================================= */

:root {
    /* Canvas vs. panels: grotere helderheidsstap voor leesbaarheid */
    --bg-deep: #070d18;
    --bg-card: #182338;
    --bg-soft: #1e2c44;
    --bg-elevated: #243552;
    --border-color: #3d5478;
    --border-soft: #334766;
    --border-focus: #6eb0e0;
    --accent: #6eb0e0;
    --accent-hover: #8fc4ea;
    --accent-soft: rgba(110, 176, 224, 0.18);
    --text-main: #f1f5fb;
    --text-muted: #b4c4db;
    --input-bg: #101928;
    --success: #4ade80;
    --success-bg: rgba(74, 222, 128, 0.12);
    --error: #f87171;
    --error-bg: rgba(248, 113, 113, 0.14);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.14);
    --shadow: 0 14px 36px -12px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(110, 176, 224, 0.06);
    --shadow-lift: 0 20px 48px -16px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(110, 176, 224, 0.12);
    --radius: 14px;
    --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --tile-purple: #a78bfa;
    --tile-yellow: #fbbf24;
    --tile-green: #34d399;
    --tile-blue: #60a5fa;
    --tile-deepblue: #3b82f6;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
body.hb-denktank-body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(110, 176, 224, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 0%, rgba(167, 139, 250, 0.09), transparent 50%),
        var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font);
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-hover);
}

/* --- Menubalk --- */
/*
 * Header: [logo] [primaire links] …… [Meer] [envelop]
 */
.hb-main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(24, 35, 56, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    overflow: visible;
}

.hb-nav-container,
.hb-nav-container--shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    overflow: visible;
}

.hb-nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.4px;
    white-space: nowrap;
    flex: 0 0 auto;
    text-align: left;
}

.hb-nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

.hb-nav-links > li {
    flex: 0 0 auto;
    white-space: nowrap;
}

.hb-nav-links > li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.hb-nav-links > li a:hover,
.hb-nav-links > li a.active {
    color: var(--accent);
}

.hb-nav-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex: 0 0 auto;
    position: relative;
    overflow: visible;
}

/* --- Platform drop-downs (Expertisecentrum: Denk Tank, later Junior/Community/Werk) --- */
.hb-nav-dd {
    position: relative;
    flex: 0 0 auto;
}

.hb-nav-dd__btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1;
    padding: 6px 4px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.hb-nav-dd__btn:hover,
.hb-nav-dd__btn.is-active,
.hb-nav-dd.is-open .hb-nav-dd__btn {
    color: var(--accent);
}

.hb-nav-dd__chev {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.75;
    transition: transform 0.15s ease;
}

.hb-nav-dd.is-open .hb-nav-dd__chev {
    transform: rotate(180deg);
}

.hb-nav-dd__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1250;
    min-width: 240px;
    margin: 0;
    padding: 8px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-elevated, var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lift, 0 18px 48px rgba(0, 0, 0, 0.45));
}

.hb-nav-dd__panel[hidden] {
    display: none !important;
}

.hb-nav-dd__panel a {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
}

.hb-nav-dd__panel a:hover,
.hb-nav-dd__panel a:focus-visible,
.hb-nav-dd__panel a.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.hb-nav-dd__ext {
    opacity: 0.65;
    font-size: 0.85em;
}

.hb-dashboard-nav .hb-nav-links {
    gap: 8px 14px;
}

@media (max-width: 900px) {
    .hb-nav-dd {
        width: 100%;
    }

    .hb-nav-dd__btn {
        width: 100%;
        justify-content: space-between;
        padding: 12px 4px;
    }

    .hb-nav-dd__panel {
        position: static;
        top: auto;
        left: auto;
        min-width: 0;
        width: 100%;
        margin: 0 0 8px;
        box-shadow: none;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.25);
    }

    .hb-nav-dd:not(.is-open) .hb-nav-dd__panel[hidden] {
        display: none !important;
    }
}

/* --- Meer-dropdown (rechts, naast envelop) --- */
.hb-nav-more {
    position: relative;
    flex: 0 0 auto;
}

.hb-nav-more__btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hb-nav-more__btn:hover,
.hb-nav-more.is-open .hb-nav-more__btn {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

.hb-nav-more__chev {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.8;
    transition: transform 0.15s ease;
}

.hb-nav-more.is-open .hb-nav-more__chev {
    transform: rotate(180deg);
}

.hb-nav-more__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 1200;
    min-width: 230px;
    width: max-content;
    max-width: 280px;
    margin: 0;
    padding: 8px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-elevated, var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lift, 0 18px 48px rgba(0, 0, 0, 0.45));
    overflow: visible;
}

.hb-nav-more__panel[hidden] {
    display: none !important;
}

.hb-nav-more__panel > li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    white-space: normal;
    flex: none;
}

.hb-nav-more__panel > li a,
.hb-nav-more__panel > li .hb-nav-invite {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hb-nav-more__panel > li a:hover,
.hb-nav-more__panel > li a:focus-visible,
.hb-nav-more__panel > li a.active {
    background: rgba(255, 255, 255, 0.07);
    color: var(--accent);
}

.hb-nav-more__panel > li .hb-nav-invite {
    margin-top: 4px;
    text-align: center;
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.hb-nav-more__panel > li .hb-nav-invite:hover {
    background: var(--accent);
    color: #fff;
}

.hb-nav-invite {
    appearance: none;
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hb-nav-invite:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

@media (min-width: 901px) {
    .hb-nav-container,
    .hb-nav-container--shell {
        flex-wrap: nowrap;
        overflow: visible;
    }

    .hb-nav-links {
        overflow: visible;
    }

    .hb-nav-toggle {
        display: none !important;
    }

    /* Geen dubbele Postvak-in in Meer; envelop volstaat */
    .hb-nav-more__panel .hb-nav-inbox-li {
        display: none !important;
    }
}

.hb-nav-toggle {
    display: none;
    appearance: none;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.hb-nav-toggle__bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 18px;
}

.hb-nav-toggle__bars span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hb-main-nav.is-nav-open .hb-nav-toggle__bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hb-main-nav.is-nav-open .hb-nav-toggle__bars span:nth-child(2) {
    opacity: 0;
}
.hb-main-nav.is-nav-open .hb-nav-toggle__bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hb-nav-inbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hb-nav-inbox:hover,
.hb-nav-inbox.has-unread {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
}

.hb-nav-inbox__icon {
    display: flex;
    line-height: 0;
}

.hb-nav-inbox__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--bg-deep, #0b1220);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15rem;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(18, 26, 43, 0.95);
}

.hb-nav-inbox-li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hb-nav-inbox-li .hb-nav-inbox__badge {
    position: static;
    box-shadow: none;
}

.hb-nav-inbox.is-guest,
.hb-nav-inbox-li.is-guest {
    opacity: 0.55;
}

@media (max-width: 900px) {
    .hb-main-nav {
        padding: 10px 0;
    }

    .hb-nav-container,
    .hb-nav-container--shell {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    .hb-nav-logo {
        order: 1;
        flex: 1 1 auto;
        font-size: 1.05rem;
        white-space: nowrap;
        text-align: left;
        min-width: 0;
    }

    .hb-nav-tools {
        order: 3;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .hb-nav-toggle {
        display: inline-flex;
    }

    .hb-nav-links {
        display: none;
        order: 4;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 10px);
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 10px 16px 16px;
        background: rgba(14, 20, 34, 0.98);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
        max-height: min(75vh, 560px);
        overflow-x: hidden;
        overflow-y: auto;
        animation: hb-nav-slide 0.22s ease;
        z-index: 1001;
        flex: none;
        min-width: 0;
    }

    .hb-main-nav.is-nav-open .hb-nav-links {
        display: flex;
    }

    .hb-nav-links li {
        border-bottom: 1px solid rgba(154, 171, 196, 0.12);
        white-space: normal;
    }

    .hb-nav-links li:last-child {
        border-bottom: 0;
    }

    .hb-nav-links li a,
    .hb-nav-links li .hb-nav-invite {
        display: block;
        width: 100%;
        padding: 12px 4px;
        font-size: 1rem;
        white-space: normal;
    }

    .hb-nav-links li .hb-nav-invite {
        margin-top: 6px;
        text-align: center;
    }

    .hb-nav-inbox-li {
        display: list-item;
    }

    /* Op mobiel: hamburger toont alles; Meer-dropdown niet nodig */
    .hb-nav-more {
        display: none !important;
    }

    html.hb-nav-lock,
    html.hb-nav-lock body {
        overflow: hidden;
    }
}

@keyframes hb-nav-slide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb-nav-links,
    .hb-nav-toggle__bars span {
        animation: none !important;
        transition: none !important;
    }
}

/* --- Website inbox tabs --- */
.hb-inbox-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.hb-inbox-tabs .hb-tab-btn {
    position: relative;
}

.hb-inbox-melding {
    display: block;
    width: 100%;
    text-align: left;
    appearance: none;
    border: 1px solid var(--border-soft, var(--border-color));
    background: var(--bg-soft, rgba(255, 255, 255, 0.03));
    color: inherit;
    border-radius: var(--radius, 10px);
    padding: 12px 14px;
    margin: 0 0 8px;
    cursor: pointer;
}

.hb-inbox-melding.is-unread {
    border-color: rgba(var(--accent-rgb, 120, 180, 255), 0.45);
}

.hb-inbox-melding__title {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.hb-inbox-melding__meta {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* --- Layout --- */
.hb-page {
    padding: 40px 20px 60px;
}

.hb-container {
    max-width: 850px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lift);
}

.hb-container-wide {
    max-width: 1000px;
}

.hb-header {
    margin-bottom: 28px;
}

.hb-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--text-main);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 14px;
    line-height: 1.25;
}

.hb-intro,
.hb-header p {
    font-size: 1.05rem;
    color: var(--text-main);
    margin: 0 0 12px;
}

.hb-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.hb-notice,
.hb-info-box {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin: 0 0 28px;
    color: var(--accent-hover);
    font-size: 0.95rem;
}

.hb-section {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
}

.hb-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.hb-section h2 {
    font-size: 1.35rem;
    color: var(--accent);
    margin: 0 0 10px;
}

.hb-section h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0 0 10px;
}

.hb-section p {
    color: var(--text-muted);
    margin: 0 0 16px;
}

.hb-detail-fields {
    display: grid;
    gap: 28px;
}

.hb-detail-field__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 10px;
}

.hb-detail-field__body {
    color: var(--text-muted);
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.65;
}

.hb-detail-field__body.hb-rich-content {
    white-space: normal;
}

/* Rich-text editor (vraagstuk indienen) */
.hb-rte {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hb-rte:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(91, 159, 212, 0.22);
}

.hb-rte__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.04);
}

.hb-rte__btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-main);
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 0.85rem;
    line-height: 1.2;
    cursor: pointer;
    font-family: inherit;
}

.hb-rte__btn:hover,
.hb-rte__btn:focus-visible {
    background: rgba(91, 159, 212, 0.14);
    border-color: rgba(91, 159, 212, 0.35);
    outline: none;
}

.hb-rte__sep {
    width: 1px;
    height: 1.1rem;
    margin: 0 4px;
    background: var(--border-color);
}

.hb-rte__editor.hb-textarea {
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-height: 120px;
    max-height: 420px;
    overflow-y: auto;
    resize: vertical;
}

.hb-rte__editor.hb-textarea:focus {
    border: none;
    box-shadow: none;
}

.hb-rte__editor.is-empty:before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    opacity: 0.75;
    pointer-events: none;
}

.hb-rte__source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hb-rich-content {
    color: var(--text-muted);
    line-height: 1.65;
}

.hb-rich-content > :first-child {
    margin-top: 0;
}

.hb-rich-content > :last-child {
    margin-bottom: 0;
}

.hb-rich-content p {
    margin: 0 0 0.75em;
}

.hb-rich-content ul,
.hb-rich-content ol {
    margin: 0 0 0.75em;
    padding-left: 1.35rem;
}

.hb-rich-content li {
    margin-bottom: 0.35em;
}

.hb-rich-content strong,
.hb-rich-content b {
    font-weight: 700;
    color: var(--text-main);
}

.hb-rich-content em,
.hb-rich-content i {
    font-style: italic;
}

.hb-list {
    margin: 0 0 16px;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.hb-list li {
    margin-bottom: 8px;
}

/* --- Forms --- */
.hb-form {
    display: block;
}

.hb-form-group,
.hb-field-group {
    margin-bottom: 20px;
}

.hb-label,
.hb-form-group label,
.hb-field-group > label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.hb-input,
.hb-select,
select.hb-input,
textarea.hb-textarea,
.hb-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hb-input:focus,
.hb-select:focus,
select.hb-input:focus,
textarea.hb-textarea:focus,
.hb-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(91, 159, 212, 0.22);
}

.hb-textarea {
    resize: vertical;
    min-height: 100px;
}

.hb-file-input,
input[type="file"].hb-input {
    padding: 10px 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.hb-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.hb-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hb-col {
    flex: 1;
    min-width: 220px;
}

.hb-radio-group,
.hb-checkbox-group {
    display: grid;
    gap: 12px;
}

.hb-radio-card,
.hb-check-card {
    display: block;
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
}

.hb-radio-card:hover,
.hb-check-card:hover {
    border-color: var(--accent);
}

.hb-radio-card input,
.hb-check-card input,
.hb-inline-option input {
    margin-right: 8px;
}

.hb-radio-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
}

.hb-radio-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.hb-inline-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.hb-inline-option {
    display: inline-flex;
    align-items: center;
    color: var(--text-main);
    font-weight: 500;
}

.hb-checkbox-highlight {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
}

.hb-checkbox-list {
    display: grid;
    gap: 10px;
}

.hb-checkbox-list label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    color: var(--text-main);
    margin: 0;
}

.hb-checkbox-list input {
    margin-top: 4px;
}

.hb-optional-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-hover);
    background: var(--accent-soft);
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
}

.hb-submit-wrapper,
.hb-submit-container {
    margin-top: 36px;
}

.hb-button,
.hb-btn-primary,
.hb-button-primary {
    display: inline-block;
    background: var(--accent);
    color: #0b1220;
    font-weight: 700;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease, transform 0.1s ease;
}

/* App-nav: actielinks zonder href → geen URL-preview linksonder */
a.hb-app-nav,
[data-nav].hb-app-nav {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

a.hb-app-nav:focus-visible,
[data-nav].hb-app-nav:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button.hb-button {
    appearance: none;
}

.hb-button:hover,
.hb-btn-primary:hover,
.hb-button-primary:hover {
    background: var(--accent-hover);
    color: #0b1220;
}

.hb-button-block {
    width: 100%;
}

.hb-button-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.hb-button-secondary:hover {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.hb-button-danger {
    background: transparent;
    color: var(--error);
    border: 1px solid var(--error);
}

.hb-button-danger:hover {
    background: var(--error-bg);
}

.hb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hb-actions-top {
    margin-top: 0;
    margin-bottom: 20px;
}

.hb-form-status {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    display: none;
}

.hb-form-status.is-visible {
    display: block;
}

.hb-form-status.is-success {
    background: var(--success-bg);
    color: var(--success);
}

.hb-form-status.is-error {
    background: var(--error-bg);
    color: var(--error);
}

/* --- Team / content blocks --- */
.hb-steps {
    display: grid;
    gap: 16px;
}

.hb-step {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.hb-step h3 {
    margin: 0 0 8px;
    color: var(--text-main);
}

.hb-step p {
    margin: 0;
}

.hb-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.hb-team-member {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.hb-team-member h3 {
    margin: 0 0 4px;
    color: var(--text-main);
}

.hb-team-role {
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 12px;
    font-size: 0.95rem;
}

.hb-team-member p {
    margin: 0;
    color: var(--text-muted);
}

.hb-team-photo-wrap {
    margin: 0 0 16px;
    width: min(168px, 100%);
    aspect-ratio: 1 / 1;
}

/* img.selector: overschrijft globale img { height: auto } zodat portretten niet uitrekken */
img.hb-team-photo {
    display: block;
    width: 168px;
    height: 168px;
    max-width: 168px;
    max-height: 168px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    border: 2px solid rgba(91, 159, 212, 0.35);
    background: rgba(0, 0, 0, 0.25);
    image-rendering: auto;
}

.hb-team-photo-placeholder {
    width: 168px;
    max-width: 100%;
    height: 168px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px dashed var(--border-soft);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 520px) {
    img.hb-team-photo,
    .hb-team-photo-placeholder {
        width: 140px;
        height: 140px;
        max-width: 140px;
        max-height: 140px;
    }

    .hb-team-photo-wrap {
        width: min(140px, 100%);
    }
}

.hb-team-bio {
    margin: 0;
    line-height: 1.55;
    color: var(--text-muted);
}

/* Team & Profiel dashboard */
.hb-tp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.22);
}

.hb-tp-tab {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hb-tp-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.hb-tp-tab.is-active {
    color: var(--text-main);
    background: rgba(91, 159, 212, 0.14);
    border-color: rgba(91, 159, 212, 0.4);
}

.hb-tp-panel {
    display: none !important;
}

.hb-tp-panel.is-active {
    display: block !important;
}

.hb-tp-panel[hidden] {
    display: none !important;
}

.hb-team-admin-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 18px 0;
}

.hb-team-admin-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: linear-gradient(165deg, rgba(30, 38, 50, 0.9), rgba(14, 18, 24, 0.95));
}

.hb-team-admin-card__photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

img.hb-team-admin-card__img {
    width: 140px;
    height: 140px;
    max-width: 140px;
    max-height: 140px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    border: 2px solid rgba(91, 159, 212, 0.35);
    image-rendering: auto;
}

.hb-team-admin-card__placeholder {
    width: 140px;
    height: 140px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px dashed var(--border-soft);
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.25);
}

.hb-team-photo-btn {
    font-size: 0.8rem;
    padding: 6px 10px;
}

.hb-team-sites {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.hb-team-site-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
}

.hb-team-active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hb-tp-account-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: start;
}

.hb-tp-2fa-ok {
    color: #9ee0d4 !important;
}

.hb-tp-2fa-warn {
    color: #f0d9a0 !important;
}

.hb-tp-account-photo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.hb-tp-password {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.18);
}

.hb-tp-password legend {
    padding: 0 6px;
    color: var(--text-main);
    font-weight: 600;
}

@media (max-width: 900px) {
    .hb-team-admin-card {
        grid-template-columns: 1fr;
    }

    .hb-tp-account-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ — publiek + beheer */
.hb-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.hb-faq-item {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.hb-faq-question {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.hb-faq-question::-webkit-details-marker {
    display: none;
}

.hb-faq-question::after {
    content: '+';
    float: right;
    color: var(--text-muted);
    font-weight: 700;
}

.hb-faq-item[open] .hb-faq-question::after {
    content: '−';
}

.hb-faq-answer {
    padding: 0 18px 18px;
    color: var(--text-muted);
    line-height: 1.6;
    border-top: 1px solid transparent;
}

.hb-faq-item[open] .hb-faq-answer {
    border-top-color: var(--border-soft);
    padding-top: 14px;
}

.hb-faq-admin-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 18px 0;
}

.hb-faq-admin-card {
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: linear-gradient(165deg, rgba(30, 38, 50, 0.9), rgba(14, 18, 24, 0.95));
}

.hb-faq-admin-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hb-faq-admin-card__nr {
    font-weight: 700;
    color: var(--accent);
}

.hb-faq-admin-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hb-footer-note {
    margin-top: 28px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hb-is-hidden {
    display: none !important;
}

.hb-aanhef-spec {
    margin-top: 10px;
}

/* --- Dashboard tegels --- */
.hb-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.hb-tile {
    position: relative;
    display: block;
    background: linear-gradient(160deg, var(--bg-soft), var(--bg-card));
    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 24px 22px 24px 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hb-tile::after {
    content: "→";
    position: absolute;
    right: 18px;
    top: 22px;
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 700;
    transition: color 0.18s ease, transform 0.18s ease;
}

.hb-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: inherit;
}

.hb-tile:hover::after {
    color: var(--accent);
    transform: translateX(3px);
}

.hb-tile-accent-purple { border-left-color: var(--tile-purple); }
.hb-tile-accent-yellow { border-left-color: var(--tile-yellow); }
.hb-tile-accent-green { border-left-color: var(--tile-green); }
.hb-tile-accent-blue { border-left-color: var(--tile-blue); }
.hb-tile-accent-deepblue { border-left-color: var(--tile-deepblue); }

.hb-tile h3 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 1.15rem;
    padding-right: 28px;
}

.hb-tile p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Discrete uitlog-plek binnen Mijn DenkTank (niet in de hoofdmenubalk) */
.hb-denktank-session {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: flex-end;
}

.hb-link-quiet {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.hb-link-quiet:hover,
.hb-link-quiet:focus-visible {
    color: var(--text-main);
    outline: none;
}

/* Verberg Inloggen-item zolang auth-check nog loopt of gebruiker is ingelogd */
html.hb-is-authenticated .hb-nav-links li[data-nav-auth="guest-only"],
.hb-nav-links li[data-nav-auth="guest-only"].hb-is-hidden {
    display: none !important;
}

.hb-tile-number {
    display: none;
}

/* --- Account / overzicht --- */
.hb-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0 0 14px;
    list-style: none;
    border-bottom: 1px solid var(--border-soft);
}

.hb-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.hb-stat-card {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 18px;
}

.hb-stat-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.hb-stat-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hb-milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.hb-milestone {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.hb-milestone.is-earned {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.hb-milestone h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.hb-milestone p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hb-warning-box {
    background: var(--warning-bg);
    color: var(--warning);
    border-left: 4px solid var(--warning);
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.hb-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    background: var(--bg-soft);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
}

.hb-password-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hb-password-row .hb-input {
    flex: 1;
}

.hb-password-row .hb-button {
    padding: 12px 16px;
    white-space: nowrap;
    font-size: 0.9rem;
}

.hb-tab-btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0b1220;
}

/* --- Cases / tijdlijn --- */
.hb-case-list {
    display: grid;
    gap: 16px;
}

.hb-case-card {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 20px;
}

.hb-case-card h3 {
    margin: 0 0 6px;
    color: var(--text-main);
}

.hb-case-meta {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hb-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 0 16px;
    list-style: none;
    padding: 0;
}

.hb-timeline-step {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hb-timeline-step.is-done,
.hb-timeline-step.is-active {
    border-color: var(--accent);
    color: var(--accent-hover);
    background: var(--accent-soft);
}

.hb-timeline-step.is-active {
    box-shadow: 0 0 0 2px rgba(91, 159, 212, 0.25);
}

/* --- Werkruimte tabs --- */
.hb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 12px;
}

.hb-tab-btn {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hb-tab-btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0b1220;
}

.hb-tab-panel {
    display: none;
}

.hb-tab-panel.is-active {
    display: block;
}

/* --- Werkruimte: hiërarchie, icon-tabs, CTA's --- */
.hb-werkruimte-page .hb-container.hb-werkruimte {
    padding-top: 32px;
}

.hb-werkruimte__hero {
    margin-bottom: 18px;
}

.hb-werkruimte__eyebrow {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.hb-werkruimte__hero h1 {
    margin-bottom: 8px;
    border-bottom: none;
    padding-bottom: 0;
}

.hb-werkruimte__hero .hb-lead {
    margin-bottom: 16px;
}

.hb-werkruimte__toolbar {
    gap: 10px;
}

.hb-werkruimte__next {
    display: grid;
    gap: 6px;
    margin: 0 0 20px;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(91, 159, 212, 0.45);
    background:
        linear-gradient(120deg, rgba(91, 159, 212, 0.18), rgba(91, 159, 212, 0.04) 55%),
        var(--bg-soft);
    box-shadow: 0 10px 28px -18px rgba(91, 159, 212, 0.55);
}

.hb-werkruimte__next-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-hover);
}

.hb-werkruimte__next-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.hb-werkruimte__next-text {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.hb-werkruimte__next .hb-button {
    justify-self: start;
}

.hb-activity-feed__title-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hb-section-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(91, 159, 212, 0.16);
    color: var(--accent-hover);
    flex-shrink: 0;
}

.hb-werkruimte__tabs-wrap {
    margin: 0 0 22px;
}

.hb-werkruimte__tabs-hint {
    margin: 0 0 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.hb-tabs--icons {
    gap: 10px;
    border-bottom: none;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border-soft);
}

.hb-tabs--icons .hb-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.hb-tabs--icons .hb-tab-btn:hover {
    border-color: rgba(91, 159, 212, 0.55);
    transform: translateY(-1px);
}

.hb-tabs--icons .hb-tab-btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0b1220;
    box-shadow: 0 8px 20px -10px rgba(91, 159, 212, 0.9);
}

.hb-tab-ico {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    background: rgba(91, 159, 212, 0.14);
    color: var(--accent-hover);
    flex-shrink: 0;
}

.hb-tabs--icons .hb-tab-btn.is-active .hb-tab-ico {
    background: rgba(11, 18, 32, 0.18);
    color: #0b1220;
}

.hb-tab-copy {
    display: flex;
    align-items: center;
    line-height: 1.15;
}

.hb-tab-label {
    font-size: 0.92rem;
    font-weight: 700;
}

.hb-tab-btn--alert {
    border-color: rgba(248, 113, 113, 0.35);
}

.hb-tab-btn--alert .hb-tab-ico {
    background: rgba(248, 113, 113, 0.14);
    color: var(--error);
}

.hb-tab-btn--alert.is-active {
    background: var(--error);
    border-color: var(--error);
    color: #fff;
}

.hb-tab-btn--alert.is-active .hb-tab-ico {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.hb-panel-intro {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-soft);
}

.hb-panel-intro h2 {
    margin: 0 0 6px;
}

.hb-panel-intro p {
    margin: 0;
    color: var(--text-muted);
    max-width: 52ch;
}

.hb-panel-intro--alert {
    border-color: rgba(248, 113, 113, 0.35);
}

.hb-panel-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 18px 0 8px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(91, 159, 212, 0.1);
    border: 1px dashed rgba(91, 159, 212, 0.4);
}

.hb-panel-cta__label {
    margin: 0;
    font-weight: 600;
    color: var(--text-main);
}

.hb-form--emphasis {
    margin-top: 18px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(91, 159, 212, 0.28);
    background: linear-gradient(180deg, rgba(91, 159, 212, 0.07), transparent 40%), var(--bg-soft);
}

.hb-form-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.hb-chat-compose {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

.hb-chat-compose .hb-form-group {
    margin: 0;
}

.hb-btn-ico {
    display: inline-flex;
    vertical-align: -3px;
    margin-right: 6px;
}

.hb-werkruimte .hb-button,
.hb-werkruimte .hb-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 46px;
    padding: 12px 22px;
    border: 2px solid transparent;
    box-shadow: 0 10px 24px -12px rgba(91, 159, 212, 0.85);
}

.hb-werkruimte .hb-button-primary {
    background: linear-gradient(180deg, #7eb6e0, var(--accent));
    color: #061018;
    font-weight: 800;
}

.hb-werkruimte .hb-button-primary:hover {
    background: linear-gradient(180deg, #9ec9ea, var(--accent-hover));
    transform: translateY(-1px);
}

.hb-werkruimte .hb-button-secondary {
    background: rgba(91, 159, 212, 0.12);
    border: 2px solid rgba(91, 159, 212, 0.65);
    color: var(--accent-hover);
    box-shadow: none;
    font-weight: 700;
}

.hb-werkruimte .hb-button-secondary:hover {
    background: rgba(91, 159, 212, 0.22);
    border-color: var(--accent-hover);
    color: #fff;
}

.hb-werkruimte .hb-button-danger--solid {
    background: linear-gradient(180deg, #fb8a8a, var(--error));
    border: 2px solid transparent;
    color: #1a0606;
    font-weight: 800;
    box-shadow: 0 10px 24px -12px rgba(248, 113, 113, 0.85);
}

.hb-werkruimte .hb-button-danger--solid:hover {
    background: linear-gradient(180deg, #fda4a4, #ef4444);
    color: #1a0606;
}

.hb-actions--sticky {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(42, 58, 85, 0.55);
}

@media (max-width: 720px) {
    .hb-tabs--icons .hb-tab-btn {
        width: 100%;
    }

    .hb-chat-compose {
        grid-template-columns: 1fr;
    }

    .hb-werkruimte__next .hb-button,
    .hb-panel-cta .hb-button {
        width: 100%;
    }
}

/* --- AI-check indien-formulier --- */
.hb-ai-check {
    margin: 8px 0 22px;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(91, 159, 212, 0.35);
    background: linear-gradient(165deg, rgba(91, 159, 212, 0.1), rgba(11, 18, 32, 0.2));
}

.hb-ai-check__head {
    margin-bottom: 12px;
}

.hb-ai-check__head strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
}

.hb-ai-check__controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 8px;
}

.hb-ai-check__controls .hb-button {
    width: 100%;
    max-width: 280px;
    flex-shrink: 0;
}

.hb-ai-check__auto {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    max-width: 100%;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    line-height: 1.4;
}

.hb-ai-check__auto input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.hb-ai-check__auto span {
    flex: 1;
    min-width: 0;
    white-space: normal;
}

/* AI tank laad-overlay */
.hb-ai-tank-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 12, 22, 0.72);
    backdrop-filter: blur(4px);
}

.hb-ai-tank-overlay[hidden] {
    display: none !important;
}

.hb-ai-tank-dialog {
    width: min(420px, 100%);
    padding: 28px 24px 22px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border-color));
    background: linear-gradient(165deg, var(--bg-elevated, var(--bg-soft)), var(--bg-card));
    box-shadow: var(--shadow-lift);
    text-align: center;
}

.hb-ai-tank-title {
    margin: 0 0 18px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.hb-ai-tank-sub {
    margin: 16px 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.hb-ai-tank-track {
    position: relative;
    height: 78px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(91, 159, 212, 0.08), transparent 55%),
        repeating-linear-gradient(
            90deg,
            rgba(42, 58, 85, 0.35) 0 12px,
            rgba(24, 35, 56, 0.5) 12px 24px
        );
}

.hb-ai-tank-ground {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(91, 159, 212, 0.55), transparent);
}

.hb-ai-tank-sprite {
    position: absolute;
    bottom: 14px;
    left: 8px;
    width: 96px;
    height: auto;
    image-rendering: auto;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
    animation: hb-tank-drive 2.8s ease-in-out infinite;
    will-change: left, transform;
}

@keyframes hb-tank-drive {
    0% {
        left: 8px;
        transform: scaleX(1);
    }
    45% {
        left: calc(100% - 104px);
        transform: scaleX(1);
    }
    50% {
        left: calc(100% - 104px);
        transform: scaleX(-1);
    }
    95% {
        left: 8px;
        transform: scaleX(-1);
    }
    100% {
        left: 8px;
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb-ai-tank-sprite {
        animation: none;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* --- Delen & media op open vraagstuk --- */
.hb-share-panel {
    margin: 24px 0;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    background: var(--bg-soft);
}

.hb-share-panel__head h2 {
    margin: 0 0 4px;
}

.hb-share-panel__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 16px;
}

.hb-share-chip {
    appearance: none;
    border: 1px solid rgba(91, 159, 212, 0.45);
    background: rgba(91, 159, 212, 0.12);
    color: var(--accent-hover);
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.hb-share-chip:hover {
    background: rgba(91, 159, 212, 0.22);
    border-color: var(--accent);
    color: #fff;
}

.hb-share-panel__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

@media (max-width: 640px) {
    .hb-share-panel__row {
        grid-template-columns: 1fr;
    }
}

.hb-chat-log,
.hb-contrib-list,
.hb-task-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    max-height: 320px;
    overflow-y: auto;
}

.hb-chat-item,
.hb-contrib-item,
.hb-task-item {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 12px 14px;
}

.hb-chat-item strong,
.hb-contrib-item strong,
.hb-task-item strong {
    color: var(--text-main);
}

.hb-frozen-banner {
    background: var(--error-bg);
    color: var(--error);
    border-left: 4px solid var(--error);
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    font-weight: 600;
}

/* --- Activiteitenfeed werkruimte --- */
.hb-activity-feed {
    margin: 0 0 22px;
    padding: 18px 18px 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(91, 159, 212, 0.08), transparent 48%),
        var(--bg-card);
}

.hb-activity-feed__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.hb-activity-feed__head h2 {
    margin: 0 0 2px;
    font-size: 1.15rem;
}

.hb-activity-feed__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    max-height: 340px;
    overflow-y: auto;
    border-top: 1px solid rgba(42, 58, 85, 0.55);
}

.hb-activity-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px 12px;
    align-items: start;
    padding: 12px 4px 12px 0;
    border-bottom: 1px solid rgba(42, 58, 85, 0.4);
    cursor: pointer;
    transition: background 0.15s ease;
}

.hb-activity-item:hover,
.hb-activity-item:focus-visible {
    background: rgba(91, 159, 212, 0.08);
    outline: none;
}

.hb-activity-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--bg-deep);
    background: var(--accent);
}

.hb-activity-item[data-type="chat"] .hb-activity-item__icon {
    background: var(--tile-green);
}

.hb-activity-item[data-type="meeting"] .hb-activity-item__icon {
    background: var(--tile-yellow);
}

.hb-activity-item[data-type="bijdrage"] .hb-activity-item__icon {
    background: var(--accent);
}

.hb-activity-item__body {
    min-width: 0;
}

.hb-activity-item__title {
    margin: 0 0 2px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
}

.hb-activity-item__summary {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.hb-activity-item__meta {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hb-activity-item__time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    padding-top: 2px;
}

.hb-activity-feed__empty {
    margin: 8px 0 4px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .hb-activity-item {
        grid-template-columns: 32px 1fr;
    }

    .hb-activity-item__time {
        grid-column: 2;
        padding-top: 0;
    }
}

.hb-module-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.hb-module-status.is-online {
    color: var(--success);
}

.hb-module-status.is-offline {
    color: var(--error);
}

.hb-date-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 12px 0 4px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.hb-date-row-large {
    margin-bottom: 8px;
    font-size: 1rem;
}

.hb-date-row strong {
    color: var(--text-main);
    font-weight: 600;
}

.hb-case-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.hb-case-card-link:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: inherit;
}

.hb-topic-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.hb-topic-chip {
    background: var(--accent-soft);
    border: 1px solid var(--border-color);
    color: var(--accent-hover);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.92rem;
}

.hb-account-gate {
    background: var(--warning-bg);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-left: 4px solid var(--warning);
    border-radius: 0 12px 12px 0;
    padding: 18px 20px;
    margin: 20px 0;
    color: var(--warning);
}

/* --- Groepen --- */
.hb-muted {
    color: var(--text-muted);
    margin-top: -8px;
    margin-bottom: 18px;
}

.hb-form-intro {
    margin-bottom: 22px;
}

.hb-groep-card-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.hb-groep-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
}

.hb-groep-logo-fallback {
    background:
        radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 55%),
        var(--bg-card);
}

.hb-groep-intro {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.hb-groep-actions {
    margin-top: 4px;
}

.hb-status-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    vertical-align: middle;
}

.hb-status-pill.is-active {
    color: var(--success);
    border-color: rgba(52, 211, 153, 0.35);
    background: var(--success-bg, rgba(52, 211, 153, 0.12));
}

.hb-fellow-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.hb-fellow-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 12px 16px;
}

.hb-fellow-list strong {
    color: var(--text-main);
}

.hb-logo-preview {
    margin-bottom: 12px;
}

.hb-logo-preview img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--border-soft);
}

.hb-success-banner {
    background: var(--success-bg, rgba(52, 211, 153, 0.12));
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-left: 4px solid var(--success);
    border-radius: 0 12px 12px 0;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hb-secure-notice {
    background: var(--accent-soft);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 14px 18px;
    margin-bottom: 18px;
    color: var(--accent-hover);
    font-weight: 600;
    font-size: 0.95rem;
}

.hb-chat-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 8px;
}

.hb-chat-item p {
    margin: 6px 0 0;
    color: var(--text-main);
}

.hb-help-link {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hb-help-link a {
    color: var(--accent-hover);
    font-weight: 600;
}

.hb-breadcrumb {
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.hb-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.hb-breadcrumb a:hover {
    color: var(--accent-hover);
}

.hb-col-auto {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
}

/* --- Actief vraagstuk (home) --- */
.hb-active-case {
    margin: 0 0 28px;
    padding: 28px 28px 26px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background:
        radial-gradient(ellipse 70% 80% at 0% 0%, rgba(91, 159, 212, 0.2), transparent 55%),
        var(--bg-soft);
}

.hb-active-case-kicker {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-hover);
}

.hb-active-case h2 {
    margin: 0 0 10px;
    font-size: 1.65rem;
    color: var(--text-main);
}

.hb-active-sub {
    margin: 0 0 10px;
    font-weight: 600;
    color: var(--accent-hover);
}

.hb-active-meta {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Subvragen --- */
.hb-subvraag-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}

.hb-subvraag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: var(--bg-soft);
    color: var(--text-muted);
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.hb-subvraag-chip.is-active,
.hb-subvraag-chip:hover {
    border-color: var(--accent);
    color: var(--text-main);
    background: var(--accent-soft);
}

.hb-subvraag-num {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--bg-card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.hb-subvraag-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.hb-nu-centraal {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.14);
    color: var(--success);
    border: 1px solid rgba(74, 222, 128, 0.35);
    white-space: nowrap;
}

.hb-subvraag-panel {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.hb-subvraag-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hb-subvraag-panel-head h3 {
    margin: 0;
}

.hb-terugblik {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    margin: 0 0 14px;
}

.hb-terugblik h4 {
    margin: 0 0 6px;
    color: var(--accent-hover);
}

.hb-terugblik p {
    margin: 0;
    color: var(--text-main);
}

.hb-beheer-box {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border-soft);
}

.hb-concepten-box {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    background: rgba(251, 191, 36, 0.06);
}

.hb-contrib-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.hb-contrib-name {
    display: inline;
    letter-spacing: normal;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.hb-anon-avatar,
.hb-contrib-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid var(--border-soft);
}

.hb-anon-avatar {
    background: var(--bg-card);
    color: var(--accent-hover);
}

.hb-contrib-avatar {
    background:
        radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 60%),
        var(--bg-card);
}

.hb-contrib-label {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    border: 1px solid var(--border-color);
    vertical-align: middle;
}

.hb-contrib-label.is-draft {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: rgba(251, 191, 36, 0.35);
}

.hb-contrib-item.is-draft {
    border-style: dashed;
}

.hb-contrib-actions {
    margin-top: 10px;
}

.hb-btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.hb-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    width: auto;
    height: auto;
    letter-spacing: normal;
    white-space: normal;
    line-height: 1.35;
}

.hb-check input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.hb-anon-hint {
    margin-top: 8px;
}

.hb-rte__toolbar-extra {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .hb-rte__toolbar-extra {
        margin-left: 0;
        width: 100%;
        margin-top: 2px;
    }

    .hb-rte__btn--check {
        width: 100%;
        justify-content: center;
    }
}

.hb-rte__btn--check {
    font-weight: 600;
    font-size: 0.8rem;
    padding: 5px 10px;
    border: 1px solid rgba(91, 159, 212, 0.35);
    background: rgba(91, 159, 212, 0.12);
}

.hb-rte__btn--check:hover,
.hb-rte__btn--check:focus-visible {
    background: rgba(91, 159, 212, 0.22);
}

.hb-rte__btn--check:disabled {
    opacity: 0.55;
    cursor: wait;
}

.hb-contrib-body.hb-rich-content {
    margin: 0;
    white-space: normal;
}

/* --- Deelpagina subvraag --- */
.hb-share-hero {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 8px;
}

.hb-share-hero-visual {
    min-height: 180px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 30% 25%, rgba(91, 159, 212, 0.45), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.28), transparent 45%),
        linear-gradient(160deg, #152238, #0d1626);
    border: 1px solid var(--border-color);
}

.hb-share-kicker {
    margin: 0 0 8px;
    color: var(--accent-hover);
    font-weight: 700;
    font-size: 0.9rem;
}

.hb-share-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hb-share-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: var(--bg-soft);
    color: var(--text-main);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.hb-share-mini-btn:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.hb-share-mini-btn.is-whatsapp { border-color: rgba(37, 211, 102, 0.35); }
.hb-share-mini-btn.is-linkedin { border-color: rgba(10, 102, 194, 0.35); }
.hb-share-mini-btn.is-facebook { border-color: rgba(24, 119, 242, 0.35); }

@media (max-width: 720px) {
    .hb-share-hero {
        grid-template-columns: 1fr;
    }
}

/* --- Expert Kamer --- */
.hb-kamer-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hb-kamer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(18, 26, 43, 0.96);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 20;
}

.hb-kamer-bar-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hb-kamer-bar-left strong {
    color: var(--text-main);
    font-size: 1.05rem;
}

.hb-kamer-status {
    color: var(--accent-hover);
    font-size: 0.85rem;
    font-weight: 600;
}

.hb-kamer-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hb-kamer-stage {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hb-kamer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    flex: 1;
}

.hb-kamer-tile {
    position: relative;
    background: #070b14;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    overflow: hidden;
    min-height: 200px;
}

.hb-kamer-tile video {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    background: #05080f;
    display: block;
}

.hb-kamer-name {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(11, 18, 32, 0.82);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
}

.hb-kamer-hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.hb-video-meeting-card .hb-actions {
    margin-top: 8px;
}

.hb-account-gate p {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 600;
}

/* --- Invite popup --- */
body.hb-invite-open {
    overflow: hidden;
}

.hb-invite-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 10, 20, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hb-invite-overlay[hidden] {
    display: none !important;
}

.hb-invite-dialog {
    width: min(560px, 100%);
    max-height: min(92vh, 900px);
    overflow: auto;
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 50%),
        var(--bg-elevated, var(--bg-card));
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border-color));
    border-radius: 18px;
    box-shadow: var(--shadow-lift);
    padding: 22px 24px 24px;
    outline: none;
}

.hb-invite-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.hb-invite-header h2 {
    margin: 0;
    font-size: 1.45rem;
    color: var(--text-main);
}

.hb-invite-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}

.hb-invite-close:hover {
    color: var(--text-main);
    border-color: var(--accent);
}

.hb-invite-intro {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.hb-invite-share-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px 10px;
    margin-bottom: 14px;
}

.hb-invite-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 12px;
    transition: background 0.15s ease, color 0.15s ease;
}

.hb-invite-share-btn:hover {
    background: var(--accent-soft);
    color: var(--text-main);
}

.hb-invite-share-icon {
    display: flex;
    line-height: 0;
}

.hb-invite-share-icon svg {
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.hb-invite-share-label {
    text-align: center;
}

.hb-invite-copy-feedback {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 600;
}

.hb-invite-copy-feedback[hidden] {
    display: none !important;
}

.hb-invite-qr-section {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--border-soft);
}

.hb-invite-qr {
    flex-shrink: 0;
    padding: 8px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    line-height: 0;
}

.hb-invite-qr-canvas {
    display: block;
    width: 148px;
    height: 148px;
    image-rendering: pixelated;
}

.hb-invite-qr-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 148px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 12px;
}

.hb-invite-qr-copy h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.hb-invite-qr-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.hb-invite-qr-copy strong {
    color: var(--text-main);
}

@media (max-width: 560px) {
    .hb-invite-share-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hb-invite-qr-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .hb-timeline {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hb-container {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .hb-header h1 {
        font-size: 1.7rem;
    }

    .hb-page {
        padding: 24px 14px 40px;
    }
}

/* --- Expertisecentrum Dashboard: Sitebeheerders & rechten --- */
.hb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Honeypot: onzichtbaar voor mensen, aantrekkelijk voor bots */
.hb-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hb-dashboard-header {
    margin-bottom: 8px;
}

.hb-dashboard-subnav {
    margin-bottom: 12px;
}

.hb-subsubnav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    list-style: none;
    margin: 0 0 28px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border-soft);
}

.hb-subsubnav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.hb-subsubnav a:hover,
.hb-subsubnav a.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.hb-table-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.hb-admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.hb-admin-table th,
.hb-admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}

.hb-admin-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.18);
}

.hb-admin-table tbody tr:last-child td {
    border-bottom: none;
}

.hb-admin-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.hb-col-check {
    text-align: center;
}

.hb-col-check input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--accent);
    cursor: pointer;
}

.hb-col-wp {
    white-space: nowrap;
}

/* Admin-tabel: statusicoon (niet verwarren met checkbox-label .hb-check) */
.hb-admin-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: normal;
    white-space: nowrap;
}

.hb-admin-check.is-on {
    background: var(--accent-soft);
    color: var(--accent);
}

.hb-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 4px;
}

.hb-empty-cell {
    text-align: center;
    color: var(--text-muted);
    padding: 28px 16px !important;
}

.hb-admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 32px;
}

.hb-admin-add {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hb-admin-add .hb-select {
    min-width: 260px;
}

.hb-btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.hb-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hb-btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
}

.hb-btn-ghost:hover {
    color: var(--warning, #e8a87c);
    border-color: var(--border-soft);
}

.hb-btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.hb-rechten-blok {
    margin-top: 8px;
    padding: 22px 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}

.hb-rechten-blok h3 {
    margin: 0 0 16px;
    font-size: 1.1rem;
}

.hb-rechten-lijst {
    margin: 0;
    display: grid;
    gap: 16px;
}

.hb-rechten-lijst dt {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.hb-rechten-lijst dd {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.hb-flash {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    color: var(--text-main);
}

.hb-flash.is-error {
    border-left-color: var(--warning, #e8a87c);
    background: var(--warning-bg, rgba(232, 168, 124, 0.12));
}

.hb-flash.is-ok {
    border-left-color: var(--accent);
}

/* —— Expertisecentrum: knop-loading + toasts —— */
.hb-btn.is-loading,
.hb-button.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
    cursor: wait;
}

.hb-btn-spinner {
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    margin-right: 0.45em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -0.15em;
    animation: hb-btn-spin 0.7s linear infinite;
}

.hb-btn-loading-label {
    vertical-align: middle;
}

@keyframes hb-btn-spin {
    to { transform: rotate(360deg); }
}

.hb-toast-stack {
    position: fixed;
    z-index: 10050;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: min(22rem, calc(100vw - 2rem));
    pointer-events: none;
}

.hb-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left-width: 4px;
    background: var(--surface, #1a222d);
    color: var(--text-main, #e8eef5);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hb-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hb-toast--ok {
    border-left-color: var(--accent, #5b9fd4);
}

.hb-toast--error {
    border-left-color: var(--warning, #e8a87c);
    background: var(--warning-bg, rgba(42, 28, 18, 0.95));
}

.hb-toast--info {
    border-left-color: var(--text-muted, #9aabbc);
}

.hb-toast__text {
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.45;
}

.hb-toast__close {
    flex: none;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.7;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.15rem;
}

.hb-toast__close:hover {
    opacity: 1;
}

@media (max-width: 720px) {
    .hb-toast-stack {
        left: 1rem;
        right: 1rem;
        width: auto;
        bottom: 0.75rem;
    }
}

@media (max-width: 720px) {
    .hb-admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hb-admin-add {
        flex-direction: column;
        align-items: stretch;
    }

    .hb-admin-add .hb-select {
        min-width: 0;
        width: 100%;
    }
}

/* Dashboard submenu links */
a.hb-tab-btn {
    text-decoration: none;
    display: inline-block;
}

/* E-mail verzending */
.hb-settings-block {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-soft);
}

.hb-settings-block:last-of-type {
    border-bottom: none;
}

.hb-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.hb-fieldset {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.hb-fieldset legend {
    padding: 0 8px;
    font-weight: 600;
    color: var(--accent);
}

.hb-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 20px;
}

.hb-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border-soft);
    font-size: 0.92rem;
    color: var(--text-muted);
}

.hb-status-pill strong {
    color: var(--text-main);
    font-weight: 600;
}

.hb-status-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.hb-status-dot[data-state="ok"] {
    background: #5bb98a;
    box-shadow: 0 0 0 3px rgba(91, 185, 138, 0.2);
}

.hb-status-dot[data-state="fout"] {
    background: var(--warning, #e8a87c);
    box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.2);
}

.hb-status-dot[data-state="geconfigureerd"] {
    background: var(--accent);
}

.hb-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    color: var(--text-main);
    line-height: 1.4;
}

.hb-check-label input {
    margin-top: 3px;
    accent-color: var(--accent);
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

.hb-test-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 24px;
}

.hb-admin-actions-end {
    justify-content: flex-end;
}

.hb-email-form code {
    font-size: 0.9em;
    color: var(--accent);
}

/* E-mailteksten — pillen & accordions */
.hb-msg-layout-example {
    margin: 0 0 20px;
}

.hb-msg-mail-preview {
    max-width: 420px;
    padding: 22px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.25));
}

.hb-msg-mail-preview__logo {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent);
    margin-bottom: 12px;
}

.hb-msg-mail-preview__body {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hb-msg-mail-preview__btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: #0b1220;
    font-size: 0.88rem;
    font-weight: 600;
}

.hb-msg-mail-preview__note {
    margin: 14px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hb-msg-intro {
    margin-bottom: 18px;
}

.hb-msg-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.hb-msg-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: var(--bg-soft);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.hb-msg-pill:hover {
    border-color: var(--accent);
    color: var(--text-main);
}

.hb-msg-pill.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--text-main);
}

.hb-msg-pill__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
}

.hb-msg-pill.is-active .hb-msg-pill__count {
    background: rgba(0, 0, 0, 0.35);
}

.hb-msg-panel {
    display: none;
}

.hb-msg-panel.is-active {
    display: block;
}

.hb-msg-panel__head {
    margin-bottom: 18px;
}

.hb-msg-panel__head h2 {
    margin: 0 0 6px;
}

.hb-msg-accordions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.hb-msg-accordion {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--bg-soft);
    overflow: hidden;
}

.hb-msg-accordion__summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hb-msg-accordion__summary::-webkit-details-marker {
    display: none;
}

.hb-msg-accordion__summary::after {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.hb-msg-accordion[open] .hb-msg-accordion__summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.hb-msg-accordion__body {
    padding: 4px 18px 18px;
    border-top: 1px solid var(--border-soft);
}

.hb-msg-accordion__desc {
    margin: 12px 0 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.hb-msg-accordion__tags {
    margin: 0 0 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.hb-msg-accordion__tags code {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--accent);
    font-size: 0.82rem;
}

/* --- De Koker: multi-site inbox --- */
.hb-koker-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.hb-koker-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 132px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: var(--bg-soft);
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    font: inherit;
    border-top: 3px solid var(--site-accent, var(--accent));
    transition: border-color 0.15s ease, background 0.15s ease;
}

.hb-koker-badge:hover,
.hb-koker-badge.is-active {
    border-color: var(--site-accent, var(--accent));
    background: rgba(255, 255, 255, 0.03);
}

.hb-koker-badge__label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hb-koker-badge__count {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--site-accent, var(--accent));
    line-height: 1;
}

.hb-koker-badge__meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hb-koker-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.hb-koker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hb-koker-page {
    max-width: none;
    width: 100%;
}

/* Fellow berichtencentrum (twee kolommen) */
.hb-koker-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.hb-koker-list-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.hb-koker-detail {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--bg-soft);
    padding: 18px 20px;
    min-height: 280px;
}

.hb-koker-table-full {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.hb-koker-table {
    width: 100%;
    min-width: 900px;
}

.hb-koker-table tbody tr {
    cursor: pointer;
}

.hb-koker-table tbody tr:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.hb-koker-table tbody tr.is-active td {
    background: var(--accent-soft);
}

.hb-koker-table tbody tr.is-unread td {
    font-weight: 600;
}

.hb-koker-table tbody tr.is-fellow td:first-child {
    box-shadow: inset 3px 0 0 #3d9a8b;
}

.hb-koker-table tbody tr.is-external td:first-child {
    box-shadow: inset 3px 0 0 #c4a35a;
}

.hb-channel-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
    border: 1px solid transparent;
    white-space: nowrap;
}

.hb-channel-pill--contact {
    color: #f0d9a0;
    background: rgba(196, 163, 90, 0.14);
    border-color: rgba(196, 163, 90, 0.4);
}

.hb-channel-pill--fellow {
    color: #9ee0d4;
    background: rgba(61, 154, 139, 0.16);
    border-color: rgba(61, 154, 139, 0.45);
}

.hb-channel-pill--email {
    color: #a8c4dc;
    background: rgba(91, 159, 212, 0.12);
    border-color: rgba(91, 159, 212, 0.35);
}

.hb-channel-pill--other {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-soft);
}

.hb-koker-from {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.hb-koker-from__name {
    color: var(--text-main);
}

.hb-koker-from__account {
    font-size: 0.78rem;
    color: #9ee0d4;
}

.hb-koker-from__meta {
    font-size: 0.78rem;
}

.hb-koker-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.hb-koker-account-badge {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #9ee0d4;
    background: rgba(61, 154, 139, 0.12);
    border: 1px solid rgba(61, 154, 139, 0.35);
}

.hb-koker-account-badge--external {
    color: #f0d9a0;
    background: rgba(196, 163, 90, 0.12);
    border-color: rgba(196, 163, 90, 0.35);
}

.hb-fellow-compose {
    margin: 0 0 24px;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid rgba(61, 154, 139, 0.35);
    background: linear-gradient(160deg, rgba(61, 154, 139, 0.08), rgba(0, 0, 0, 0.2));
}

.hb-fellow-compose__title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: var(--text-main);
}

.hb-fellow-compose__lead {
    margin: 0 0 14px;
    font-size: 0.92rem;
}

.hb-fellow-ticket__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.hb-koker-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.hb-ticket-ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.86rem;
    font-weight: 700;
}

.hb-dot-new {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent);
    margin-left: 4px;
    vertical-align: middle;
}

.hb-koker-detail__head h2 {
    margin: 8px 0 6px;
    font-size: 1.25rem;
}

.hb-koker-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
    max-height: min(45vh, 420px);
    overflow-y: auto;
    padding-right: 4px;
}

.hb-koker-msg {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.18);
}

.hb-koker-msg--out {
    border-color: rgba(91, 159, 212, 0.35);
    background: rgba(91, 159, 212, 0.08);
}

.hb-koker-msg header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.hb-koker-msg p {
    margin: 0;
    line-height: 1.5;
    color: var(--text-main);
}

.hb-koker-attach-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hb-koker-attach {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.22);
    color: var(--site-accent, var(--accent));
    text-decoration: none;
    font-size: 0.9rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.hb-koker-attach:hover {
    border-color: color-mix(in srgb, var(--site-accent, var(--accent)) 55%, var(--border-soft));
    background: rgba(91, 159, 212, 0.1);
}

.hb-koker-attach__icon {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 2px;
    border: 1.5px solid currentColor;
    border-bottom-width: 2px;
    opacity: 0.85;
    flex-shrink: 0;
}

.hb-koker-attach__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-main);
}

.hb-koker-attach__size {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.hb-koker-upload {
    margin-top: 12px;
}

.hb-koker-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hb-koker-upload__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.hb-koker-upload__btn:hover {
    border-color: var(--site-accent, var(--accent));
    background: rgba(91, 159, 212, 0.1);
}

.hb-koker-upload__list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hb-koker-upload__list li,
.hb-file-attachments__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-soft);
    font-size: 0.85rem;
}

.hb-koker-upload__name {
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hb-file-attachments__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.hb-file-attachments__size {
    font-size: 0.78rem;
}

.hb-file-attachments__remove {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(220, 80, 80, 0.45);
    border-radius: 6px;
    background: rgba(180, 40, 40, 0.18);
    color: #f07178;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hb-file-attachments__remove:hover,
.hb-file-attachments__remove:focus-visible {
    background: rgba(200, 50, 50, 0.35);
    border-color: #e06c75;
    color: #ff8b92;
    outline: none;
}

.hb-koker-upload__error {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #e06c75;
}

.hb-koker-upload__error.is-error {
    color: #e06c75;
}

.hb-koker-upload__hint {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hb-koker-reply {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
}

.hb-koker-reply__brand-note {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid var(--site-accent, var(--accent));
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hb-koker-reply__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

body.hb-modal-open {
    overflow: hidden;
}

.hb-koker-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.hb-koker-modal[hidden] {
    display: none !important;
}

.hb-koker-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 14, 0.72);
    backdrop-filter: blur(3px);
}

.hb-koker-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: min(90vh, 900px);
    overflow: auto;
    padding: 22px 24px 24px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border-color));
    background: linear-gradient(165deg, var(--bg-elevated), var(--bg-card));
    box-shadow: var(--shadow-lift), 0 0 0 1px rgba(110, 176, 224, 0.16);
}

.hb-koker-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.hb-koker-modal__close:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

.hb-koker-modal__brand {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 28px 14px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
}

.hb-koker-modal__logo {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--site-accent, var(--accent));
    font-size: 1.1rem;
}

.hb-koker-modal__domain {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hb-koker-modal__body .hb-btn-primary {
    background: var(--site-accent, var(--accent));
    border-color: var(--site-accent, var(--accent));
}

.hb-fellow-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}

.hb-fellow-ticket {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: transparent;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.hb-fellow-ticket:hover,
.hb-fellow-ticket.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.hb-fellow-ticket.is-unread strong {
    color: var(--accent);
}

@media (max-width: 900px) {
    .hb-koker-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hb-koker-modal__dialog {
        padding: 18px 16px 20px;
    }
}

/* Dashboard 2FA */
.hb-2fa-qr-wrap {
    display: inline-flex;
    padding: 14px;
    margin: 12px 0 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border-soft);
}

.hb-2fa-qr-wrap img {
    display: block;
    width: 240px;
    height: 240px;
}

/* --- PWA install prompt (mobiel) --- */
.hb-pwa-install {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 9998;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--border-color));
    background: linear-gradient(165deg, var(--bg-elevated, var(--bg-soft)), var(--bg-card));
    box-shadow: var(--shadow-lift);
    color: var(--text-main);
    font: 400 0.9rem/1.4 var(--font);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.hb-pwa-install.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.hb-pwa-install__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid rgba(91, 159, 212, 0.3);
}

.hb-pwa-install__body {
    flex: 1;
    min-width: 0;
}

.hb-pwa-install__title {
    margin: 0 0 2px;
    font-weight: 600;
    font-size: 0.95rem;
}

.hb-pwa-install__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.hb-pwa-install__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hb-pwa-install__btn {
    appearance: none;
    border: 0;
    border-radius: 8px;
    padding: 7px 12px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.hb-pwa-install__btn--primary {
    background: var(--accent);
    color: var(--bg-deep);
}

.hb-pwa-install__btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(154, 171, 196, 0.35);
}

.hb-pwa-install__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
    flex-shrink: 0;
}

@media (min-width: 901px) {
    .hb-pwa-install {
        display: none !important;
    }
}

/* —— Groepsbeheer (Expertisecentrum) —— */
.hb-groepen-beheer .hb-groep-counters,
.hb-groep-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 24px;
}
.hb-meetings-counters.hb-groep-counters {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}
.hb-groep-counter {
    min-width: 110px;
    padding: 12px 16px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--bg-soft);
}
.hb-meetings-counters .hb-groep-counter {
    min-width: 0;
    padding: 10px 8px;
    text-align: center;
}
.hb-groep-counter__n {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.1;
}
.hb-meetings-counters .hb-groep-counter__n {
    font-size: 1.25rem;
}
.hb-groep-counter__l {
    color: var(--text-muted);
    font-size: 0.82rem;
}
.hb-meetings-counters .hb-groep-counter__l {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 900px) {
    .hb-meetings-counters.hb-groep-counters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
    .hb-meetings-counters.hb-groep-counters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hb-meetings-counters .hb-groep-counter__l {
        white-space: normal;
    }
}
.hb-groep-queue {
    display: grid;
    gap: 16px;
}
.hb-groep-queue-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--bg-soft);
    padding: 18px 20px;
}
.hb-groep-queue-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.hb-groep-queue-card__head h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}
.hb-groep-queue-card__intro {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
    background: rgba(0, 0, 0, 0.12);
}
.hb-groep-queue-card__intro h4 {
    margin: 0 0 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.hb-groep-queue-card__intro p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.45;
}
.hb-groep-queue-card__actions,
.hb-groep-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.hb-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
}
.hb-status-pill.is-wait { color: #e8c27a; border-color: rgba(232, 194, 122, 0.45); }
.hb-status-pill.is-ok { color: #8fd4a8; border-color: rgba(143, 212, 168, 0.45); }
.hb-status-pill.is-err { color: #e8a0a0; border-color: rgba(232, 160, 160, 0.45); }
.hb-status-pill.is-muted { color: var(--text-muted); }
.hb-badge {
    display: inline-flex;
    min-width: 1.25rem;
    justify-content: center;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--accent);
    color: var(--bg-deep);
}
.hb-btn-sm { padding: 5px 10px; font-size: 0.82rem; }
.hb-btn.is-danger,
.hb-btn-ghost.is-danger { color: #e8a0a0; }
.hb-groep-bericht-form { max-width: 640px; }
.hb-groep-detail-block { margin: 16px 0; }
.hb-groep-detail-block h3 { margin: 0 0 8px; font-size: 0.95rem; }
.hb-groep-chip {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
    text-decoration: none;
    color: inherit;
    font-size: 0.85rem;
}
.hb-tiny { font-size: 0.8rem; }
.hb-required { color: var(--accent); }
.hb-empty-state {
    padding: 28px 20px;
    border: 1px dashed var(--border-soft);
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-muted);
}

/* —— Vraagstukkenbeheer —— */
.hb-vraagstukken-beheer .hb-vraag-nummer {
    margin: 0 0 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent);
}
.hb-vraag-fields {
    display: grid;
    gap: 12px;
}
.hb-vraag-field h4 {
    margin: 0 0 4px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.hb-vraag-field p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.45;
}

.hb-vraag-field .hb-rich-content {
    margin: 0;
    white-space: normal;
    line-height: 1.45;
    font-size: inherit;
}
.hb-badge--muted {
    background: rgba(154, 171, 196, 0.35);
    color: var(--text);
}

.hb-indiener-chip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: rgba(91, 159, 212, 0.08);
    font-size: 0.92rem;
}

.hb-indiener-chip__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    width: 100%;
    margin: 0;
}

.hb-indiener-chip__name {
    margin: 0;
    font-weight: 700;
    color: var(--text-main);
}

.hb-indiener-chip__email {
    margin: 0;
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

.hb-indiener-chip__email:hover {
    text-decoration: underline;
}

.hb-indiener-card {
    margin: 16px 0 20px;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.18);
}

.hb-indiener-card h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.hb-indiener-card dl {
    display: grid;
    grid-template-columns: minmax(110px, 140px) 1fr;
    gap: 8px 12px;
    margin: 0 0 14px;
}

.hb-indiener-card dt {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hb-indiener-card dd {
    margin: 0;
    color: var(--text-main);
    word-break: break-word;
}

.hb-indiener-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hb-admin-table .hb-indiener-cell {
    min-width: 160px;
}

.hb-admin-table .hb-indiener-cell strong {
    display: block;
}

.hb-admin-table .hb-indiener-cell a {
    color: var(--accent);
    font-size: 0.85rem;
    word-break: break-all;
}

.hb-indiener-name-btn {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 700;
    color: var(--accent);
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hb-indiener-name-btn:hover,
.hb-indiener-name-btn:focus-visible {
    color: var(--text-main);
    outline: none;
}

.hb-indiener-chip__name.hb-indiener-name-btn {
    font-size: inherit;
}

.hb-indiener-name-btn--table {
    display: block;
    margin-bottom: 2px;
}

.hb-profiel-modal__dialog {
    max-width: 560px;
}

.hb-fellow-modal__dialog {
    max-width: 720px;
    width: min(720px, 96vw);
    max-height: min(92vh, 900px);
    overflow: auto;
}

.hb-fellow-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hb-fellow-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.2);
}

.hb-fellow-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent);
    background: rgba(91, 159, 212, 0.14);
}

.hb-fellow-name {
    display: block;
    color: var(--accent-hover);
}

.hb-fellow-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.hb-fellow-row:hover td,
.hb-fellow-row:focus-visible td {
    background: rgba(91, 159, 212, 0.08);
}

.hb-fellow-row:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.hb-fellow-edit-form {
    margin-top: 8px;
}

.hb-fellow-edit-form .hb-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 12px;
}

.hb-status-pill--active {
    background: rgba(52, 211, 153, 0.18);
    color: #6ee7b7;
}

.hb-status-pill--inactive,
.hb-status-pill--suspended {
    background: rgba(248, 113, 113, 0.16);
    color: #fca5a5;
}

.hb-status-pill--pending {
    background: rgba(251, 191, 36, 0.16);
    color: #fbbf24;
}

.hb-status-pill--paused {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

.hb-status-pill--deletion_pending {
    background: rgba(248, 113, 113, 0.2);
    color: #fca5a5;
}

.hb-fellow-lifecycle-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid color-mix(in srgb, var(--text-main, #e2e8f0) 12%, transparent);
}

.hb-poll-slots {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.hb-poll-slot {
    margin: 0;
}

.hb-profiel-modal__head {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.hb-profiel-modal__foto {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.25);
}

.hb-profiel-modal__foto--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent);
}

.hb-profiel-modal__grid {
    display: grid;
    gap: 10px 14px;
    margin: 0 0 16px;
}

.hb-profiel-modal__row {
    display: grid;
    grid-template-columns: minmax(120px, 150px) 1fr;
    gap: 8px 12px;
}

.hb-profiel-modal__row dt {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hb-profiel-modal__row dd {
    margin: 0;
    color: var(--text-main);
    word-break: break-word;
}

.hb-queue-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.16);
}

.hb-queue-toolbar__meta {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.hb-queue-sort {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.hb-queue-sort__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 2px;
}

.hb-queue-sort__btn {
    appearance: none;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.hb-queue-sort__btn:hover,
.hb-queue-sort__btn:focus-visible {
    color: var(--text-main);
    border-color: var(--accent);
    outline: none;
}

.hb-queue-sort__btn.is-active {
    color: var(--text-main);
    border-color: var(--accent);
    background: rgba(91, 159, 212, 0.18);
}

.hb-indieningsdatum {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    margin: 8px 0 10px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(91, 159, 212, 0.35);
    background: rgba(91, 159, 212, 0.12);
    min-width: 180px;
}

.hb-indieningsdatum__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
}

.hb-indieningsdatum__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

.hb-th-sort {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 700;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hb-th-sort:hover,
.hb-th-sort:focus-visible {
    color: var(--accent);
    outline: none;
}

.hb-th-sort__icon {
    font-size: 0.85em;
    opacity: 0.85;
}

/* =========================================================
   Social media-instellingen (Expertisecentrum)
   ========================================================= */
.hb-social-defaults {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 14px;
}

.hb-social-platforms {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.hb-social-platform {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--bg-soft);
    color: var(--text-main);
}

.hb-social-platform__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    margin: 0 0 10px;
}

.hb-social-platform__head h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 650;
    color: var(--text-main);
}

.hb-social-platform > .hb-muted {
    margin: 0 0 14px;
    color: var(--text-muted);
}

.hb-social-platform .hb-check-label {
    color: var(--text-main);
    margin-bottom: 14px;
}

.hb-social-platform .hb-label {
    color: var(--text-main);
}

.hb-social-platform .hb-hint {
    color: var(--text-muted);
}

.hb-social-fields {
    display: grid;
    gap: 12px 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 4px;
}

.hb-social-fields .hb-form-group {
    margin-bottom: 8px;
}

.hb-social-platform__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
}

.hb-social-platform__actions .hb-muted {
    margin: 0;
    flex: 1 1 220px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hb-social-platform .hb-status-pill {
    color: var(--text-muted);
    background: var(--bg-card);
    border-color: var(--border-soft);
}

.hb-social-platform .hb-status-pill.is-ok,
.hb-social-platform .hb-status-pill.is-active {
    color: var(--success);
    border-color: rgba(74, 222, 128, 0.4);
    background: var(--success-bg);
}

.hb-social-platform .hb-status-pill.is-wait {
    color: var(--warning);
    border-color: rgba(251, 191, 36, 0.4);
    background: var(--warning-bg);
}

.hb-social-platform .hb-status-pill.is-muted {
    color: var(--text-muted);
    border-color: var(--border-soft);
    background: rgba(0, 0, 0, 0.18);
}

.hb-social-platform .hb-status-pill.is-err {
    color: var(--error);
    border-color: rgba(248, 113, 113, 0.4);
    background: var(--error-bg);
}

.hb-social-log {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.hb-social-log__item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    font-size: 0.92rem;
}

.hb-social-log__item strong {
    font-weight: 650;
    color: var(--text-main);
}

.hb-social-log__item strong.is-ok {
    color: var(--success);
}

.hb-social-log__item strong.is-err {
    color: var(--error);
}

.hb-social-log__item .hb-muted,
.hb-social-log > .hb-muted {
    margin: 0;
    color: var(--text-muted);
}

.hb-social-log__meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

