/* SimTopia webshop — zelfde stijl als FeelsMusic (donker standaard, licht optioneel,
   glazen sticky header met pill-nav, verloop-hero met zwevende gloed, kaarten met
   zachte schaduw) maar met de kleuren uit het SimTopia-logo:
   blauw #779fc9 -> indigo #343173 en paars #7d60a6 -> diep paars #391b54. */

:root {
    --bg: #0d1526;
    --surface: #141f36;
    --surface-2: #1a2744;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);
    --ink: #eff8ff;
    --muted: #8f9dc2;
    --accent: #7d60a6;
    --accent-text: #a992d3;
    --accent-2: #779fc9;
    --accent-grad: linear-gradient(135deg, #7d60a6 0%, #5f54a3 55%, #3f4381 100%);
    --success: #34d399;
    --error: #f87171;
    --warning: #e8b34a;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-sm: 10px;
    --shadow: 0 34px 78px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .06);
    --shadow-sm: 0 18px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
    --font: 'Inter', "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --glass-tint: 13, 21, 38;
}

[data-theme="light"] {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #eef1f7;
    --border: rgba(15, 23, 42, .1);
    --border-strong: rgba(15, 23, 42, .2);
    --ink: #12172a;
    --muted: #5b6478;
    --accent-text: #5d3f8a;
    --shadow: 0 24px 56px rgba(52, 49, 115, .14), inset 0 1px 0 rgba(255, 255, 255, .6);
    --shadow-sm: 0 12px 30px rgba(52, 49, 115, .1);
    --glass-tint: 255, 255, 255;
}

* { box-sizing: border-box; }
html { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; scroll-behavior: smooth; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.55; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; color: var(--muted); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .45em; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Knoppen */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .9em 1.6em; border-radius: var(--radius); font-weight: 800; font-size: .9rem; font-family: inherit;
    border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, opacity .12s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; opacity: .93; transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 18px rgba(63, 67, 129, .34); }
.btn-accent:hover { box-shadow: 0 12px 24px rgba(63, 67, 129, .42); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: .55em 1.1em; font-size: .78rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(var(--glass-tint), .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.site-header-inner { display: flex; align-items: center; gap: 30px; padding: 12px 32px; max-width: 1400px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.brand-name span { background: linear-gradient(135deg, #779fc9, #7d60a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; flex-wrap: wrap; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: .88rem; padding: 9px 15px; border-radius: 999px; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.main-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.main-nav a.active { background: var(--surface-2); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cart-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent-grad); color: #fff; font-size: .7rem; font-weight: 800; }
.theme-toggle, .menu-toggle { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; padding: 0; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); cursor: pointer; }
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--border-strong); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.menu-toggle { display: none; margin-left: auto; }
.mobile-nav-panel { display: contents; }

/* Meldingen */
.flashes { margin: 20px 0 0; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius); font-size: .9rem; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid; }
.flash-success { border-left-color: var(--success); color: var(--success); }
.flash-error { border-left-color: var(--error); color: var(--error); }

/* Hero — logo-kleuren (blauw -> indigo -> paars) met twee langzaam zwevende gloeden */
.hero {
    position: relative; overflow: hidden; color: #fff; text-align: center;
    background: linear-gradient(135deg, #1a1748 0%, #343173 34%, #5a3f8a 68%, #391b54 100%);
    padding: 0; height: 260px; display: flex; align-items: center;
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(20px); pointer-events: none; }
.hero::before { top: -25%; left: -12%; width: 60%; height: 130%; background: radial-gradient(circle, rgba(119, 159, 201, .42), transparent 70%); animation: hero-drift-a 16s ease-in-out infinite; }
.hero::after { bottom: -32%; right: -8%; width: 55%; height: 120%; background: radial-gradient(circle, rgba(125, 96, 166, .5), transparent 70%); animation: hero-drift-b 20s ease-in-out infinite; }
@keyframes hero-drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4%, 6%) scale(1.12); } }
@keyframes hero-drift-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-5%, -4%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }
.hero .wrap { position: relative; z-index: 1; max-width: 1020px; width: 100%; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255, 255, 255, .84); max-width: 72ch; margin-left: auto; margin-right: auto; }
.hero .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.hero .btn-accent { border-color: rgba(255, 255, 255, .22); box-shadow: 0 8px 18px rgba(0, 0, 0, .26), 0 4px 12px rgba(125, 96, 166, .4); }
.hero .btn-ghost { background: rgba(13, 21, 38, .4); color: #fff; border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(10px); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(13, 21, 38, .55); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-size: .78rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.hero-trust { display: flex; gap: 10px 24px; justify-content: center; flex-wrap: wrap; margin-top: 14px; font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .8); }
.hero-trust i { color: #9ee6c4; margin-right: 6px; }
.hero-illustration-bg { position: absolute; z-index: 0; pointer-events: none; user-select: none; bottom: -60px; right: -60px; width: auto; height: auto; max-width: 50%; max-height: 250px; opacity: .14; }
@media (max-width: 900px) { .hero-illustration-bg { display: none; } }

/* Secties */
.section { padding-top: 44px; padding-bottom: 44px; }
.section-band { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { display: block; margin-bottom: 6px; color: var(--accent-text); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Kaarten */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
a.card { color: inherit; text-decoration: none; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-tag { display: inline-flex; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(125, 96, 166, .16); color: var(--accent-text); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.card-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.card-title a { color: inherit; text-decoration: none; }
.card-excerpt { color: var(--muted); font-size: .88rem; margin: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.price-was { color: var(--muted); text-decoration: line-through; font-size: .9rem; font-weight: 500; margin-left: 6px; }
.cat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-grad); color: #fff; font-size: 1.1rem; margin: 18px 18px 0; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.panel h3 { margin-bottom: 14px; }

/* Product detail */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.split-cart { grid-template-columns: 2fr 1fr; gap: 26px; }
.split-checkout { grid-template-columns: 1.5fr 1fr; gap: 26px; }
.product-media { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; aspect-ratio: 1; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--ink); border: 1px solid var(--border); }
.pill-ok { color: var(--success); background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .3); }
.pill-bad { color: var(--error); background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .3); }
.pill-warn { color: var(--warning); background: rgba(232, 179, 74, .12); border-color: rgba(232, 179, 74, .3); }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 28px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.qty button { border: 0; background: var(--surface-2); width: 38px; height: 44px; font-size: 1rem; font-weight: 800; color: var(--ink); cursor: pointer; }
.qty input { width: 52px; border: 0; border-radius: 0; text-align: center; height: 44px; background: transparent; box-shadow: none; padding: 0; }
.qty-input { width: 72px; text-align: center; }
.back-link { display: inline-block; margin-bottom: 22px; font-size: .85rem; font-weight: 700; color: var(--muted); }

/* Tabellen (winkelwagen, bestelling) */
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.shop-table { width: 100%; border-collapse: collapse; }
.shop-table th { text-align: left; padding: 14px 20px; background: var(--surface-2); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--border); }
.shop-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: .92rem; vertical-align: middle; color: var(--ink); }
.shop-table tbody tr:last-child td { border-bottom: 0; }
.shop-table .num { text-align: right; white-space: nowrap; font-weight: 700; }
.inline-form { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.icon-btn:hover { border-color: var(--border-strong); color: var(--ink); }

/* Samenvatting */
.summary { position: sticky; top: 92px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--ink); }
.summary-row .lbl { color: var(--muted); }
.summary-row.total { border-bottom: 0; border-top: 1px solid var(--border-strong); margin-top: 6px; padding-top: 16px; font-size: 1.15rem; font-weight: 800; }
.coupon { display: flex; gap: 8px; margin-bottom: 18px; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(52, 211, 153, .12); color: var(--success); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .85rem; font-weight: 700; margin-bottom: 18px; }
.coupon-applied .icon-btn { width: 26px; height: 26px; border: 0; background: transparent; color: inherit; }

/* Formulieren */
input, textarea, select { width: 100%; padding: 12px 14px; font-size: .95rem; font-family: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(125, 96, 166, .22); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 700; color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.empty-state { text-align: center; padding: 50px 20px; }
.empty-state img { width: 220px; margin: 0 auto 18px; opacity: .95; }
.status-box { text-align: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-tagline { color: var(--muted); font-size: .84rem; margin: 0 0 16px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { margin: 0 0 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.footer-col a { font-size: .86rem; color: var(--ink); opacity: .85; }
.footer-col a:hover { color: var(--accent-text); opacity: 1; text-decoration: none; }
.pay-row { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 22px; align-items: center; }
.pay-row .lbl { width: 100%; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.pay-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); font-size: .75rem; font-weight: 700; }
.pay-chip svg { width: 15px; height: 15px; fill: currentColor; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 16px; }
.footer-bottom p { margin: 0; font-size: .78rem; }

@media (max-width: 900px) {
    .site-header-inner { padding: 10px 18px; gap: 12px; }
    .menu-toggle { display: flex; }
    .mobile-nav-panel { display: none; }
    body.nav-open .mobile-nav-panel { display: flex; flex-direction: column; gap: 14px; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 18px 20px; box-shadow: var(--shadow-sm); }
    body.nav-open .main-nav { flex-direction: column; align-items: stretch; }
    body.nav-open .header-actions { justify-content: space-between; }
    .split, .split-cart, .split-checkout { grid-template-columns: 1fr; gap: 24px; }
    .summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .hero { height: auto; min-height: 260px; padding: 28px 0; }
    .field-row { grid-template-columns: 1fr; }
    .shop-table th:nth-child(3), .shop-table td:nth-child(3) { display: none; }
    .hero .btn-row .btn { width: 100%; }
}

/* Pagina met rechterkolom (informatieblokken uit het beheerpaneel) */
.page-cols { display: block; }
.page-cols.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.page-cols.has-aside > .page-main { grid-column: 1; grid-row: 1; }
.page-cols.has-aside > .page-aside { grid-column: 2; grid-row: 1; }
.page-main > .block-section + .block-section { margin-top: 36px; }
.page-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
@media (max-width: 900px) {
    .page-cols.has-aside { grid-template-columns: 1fr; }
    .page-cols.has-aside > .page-main, .page-cols.has-aside > .page-aside { grid-column: 1; grid-row: auto; }
    .page-aside { position: static; }
}

/* Informatieblok — zelfde opzet als de licentie-kaarten op FeelsMusic: afbeelding/logo ongecropt op een
   lichte badge (merklogo's houden hun eigen kleuren), daaronder titel, tekst en knop. */
.info-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.info-block:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.info-block-logo { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }
.info-block-logo img { display: block; max-width: 100%; max-height: 110px; width: auto; height: auto; object-fit: contain; }
.info-block h3 { margin: 0 0 8px; }
.info-block p { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.info-block .btn { width: 100%; }
.info-block > :last-child { margin-bottom: 0; }

/* Account: tabbalk + sleutelweergave */
.account-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--border); align-items: center; }
.account-tabs a { color: var(--muted); font-weight: 600; font-size: .88rem; padding: 9px 16px; border-radius: 999px; }
.account-tabs a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.account-tabs a.active { background: var(--surface-2); color: var(--ink); }
.account-tabs form { margin-left: auto; }
.key-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.key-code { background: var(--surface-2); border: 1px solid var(--border); padding: 7px 12px; border-radius: 8px; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; letter-spacing: .02em; word-break: break-all; }
.key-code.masked { filter: blur(5px); user-select: none; }
.purchase-card { display: flex; flex-direction: column; gap: 4px; }
.purchase-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.purchase-meta { color: var(--muted); font-size: .8rem; }
.cancel-box { margin-top: 22px; }
.cancel-box textarea { min-height: 80px; resize: vertical; }
.btn-danger-ghost { background: transparent; color: var(--error); border-color: rgba(248, 113, 113, .4); }
.btn-danger-ghost:hover { border-color: var(--error); }
.summary-row.vat { font-size: .8rem; padding: 6px 0; border-bottom: 0; color: var(--muted); }
.summary-row.vat + .summary-row.vat { padding-top: 0; }
.summary-row.discount span:last-child { color: var(--success); font-weight: 700; }

/* Productgalerij: hoofdafbeelding groot, miniaturen en video eronder */
.gallery { min-width: 0; }
.product-media iframe, .product-media video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.gallery-thumb { position: relative; width: 74px; height: 74px; padding: 0; border: 2px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.gallery-thumb:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb-video img { filter: brightness(.55); }
.gallery-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.1rem; }

/* Opgemaakte tekst uit de editor (productomschrijving, blokken, nieuws) */
.rich { color: var(--ink); line-height: 1.7; overflow-wrap: anywhere; }
.rich p { color: var(--ink); margin: 0 0 1em; }
.rich h2, .rich h3, .rich h4 { margin: 1.2em 0 .5em; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich ul, .rich ol { padding-left: 1.4em; margin: 0 0 1em; color: var(--ink); }
.rich li { margin-bottom: .3em; }
.rich a { color: var(--accent-text); text-decoration: underline; }
.rich img { max-width: 100%; height: auto; border-radius: 12px; margin: 6px 0; display: block; }
.rich iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; margin: 8px 0; }
.rich blockquote { margin: 0 0 1em; padding: 4px 16px; border-left: 3px solid var(--accent); color: var(--muted); }
.rich pre, .rich code { background: var(--surface-2); border-radius: 6px; padding: 2px 6px; }
.rich pre { padding: 12px 14px; overflow-x: auto; }
.info-block .rich { font-size: .9rem; margin-bottom: 16px; }
.news-cover img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 22px; }

/* Navigatie-dropdown "Webshop" */
.nav-dropdown { position: relative; }
.nav-dropdown::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-dropdown-btn { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; font-family: inherit; color: var(--muted); font-weight: 600; font-size: .88rem; padding: 9px 15px; border-radius: 999px; white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease; }
.nav-dropdown-btn i { font-size: .65rem; transition: transform .18s ease; }
.nav-dropdown-btn:hover, .nav-dropdown.open .nav-dropdown-btn { background: var(--surface-2); color: var(--ink); }
.nav-dropdown-btn.active { background: var(--surface-2); color: var(--ink); }
.nav-dropdown.open .nav-dropdown-btn i { transform: rotate(180deg); }
.nav-dropdown-panel { display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 250px; max-height: 70vh; overflow-y: auto; padding: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); flex-direction: column; gap: 2px; }
.nav-dropdown.open .nav-dropdown-panel { display: flex; }
@media (hover: hover) and (min-width: 901px) { .nav-dropdown:hover .nav-dropdown-panel { display: flex; } .nav-dropdown:hover .nav-dropdown-btn i { transform: rotate(180deg); } }
.nav-dropdown-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none; }
.nav-dropdown-panel a:hover, .nav-dropdown-panel a.active { background: var(--surface-2); text-decoration: none; }
.nav-dropdown-panel a.sub { padding-left: 34px; font-weight: 500; color: var(--muted); font-size: .84rem; }
.nav-dropdown-panel a i { color: var(--accent-text); width: 16px; }
@media (max-width: 900px) {
    .nav-dropdown-btn { width: 100%; justify-content: space-between; }
    .nav-dropdown-panel { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 10px; max-height: none; min-width: 0; }
    .nav-dropdown::after { display: none; }
}

/* Kennisbank */
.kb-search { display: flex; gap: 10px; max-width: 560px; margin: 18px auto 0; }
.kb-search input { flex: 1; border-radius: 999px; padding: 13px 20px; background: rgba(255, 255, 255, .95); color: #12172a; border-color: transparent; }
.kb-list { display: flex; flex-direction: column; gap: 12px; }
.kb-item { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.kb-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.kb-item .card-tag { align-self: flex-start; }
.kb-item-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.kb-item-excerpt { color: var(--muted); font-size: .9rem; }
.kb-crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.kb-crumbs a { color: var(--muted); font-weight: 600; }

/* ---- Downloads ---- */
.muted-text { color: var(--muted); font-size: .9rem; }
.dl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.dl-main .block-section { margin-bottom: 34px; }
.dl-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
.dl-box { padding: 20px; }
.dl-box h3 { font-size: 1rem; margin-bottom: 12px; }
.dl-cats { display: flex; flex-direction: column; gap: 2px; }
.dl-cats a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .88rem; text-decoration: none; }
.dl-cats a.sub { padding-left: 24px; font-weight: 500; color: var(--muted); }
.dl-cats a:hover { background: var(--surface-2); text-decoration: none; }
.dl-cats a.active { background: var(--surface-2); color: var(--accent-text); }
.dl-cats .pill { padding: 2px 9px; font-size: .72rem; }
.dl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: center; }
.dl-stats strong { display: block; font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.dl-stats span { font-size: .78rem; color: var(--muted); }

.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl-row { display: flex; gap: 16px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
a.dl-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.dl-thumb { flex: 0 0 84px; height: 64px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--accent-text); font-size: 1.6rem; }
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dl-row-title { font-weight: 700; color: var(--ink); font-size: 1.02rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dl-row-title a { color: inherit; }
.dl-row-title .pill { padding: 2px 9px; font-size: .7rem; }
.dl-row-excerpt { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .78rem; color: var(--muted); }
.dl-meta i { margin-right: 4px; opacity: .8; }
.dl-media-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--accent-text); }
.dl-row-static form { margin: 0; }

.dl-sort { display: flex; gap: 6px; flex-wrap: wrap; }
.dl-sort .is-active, .dl-pager .is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.dl-pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }

.dl-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.dl-title { font-size: 1.7rem; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.dl-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; }
.dl-lead { font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.dl-facts { margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.dl-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; border-top: 1px solid var(--border); padding-top: 10px; }
.dl-facts dt { color: var(--muted); font-weight: 600; }
.dl-facts dd { margin: 0; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.dl-check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink); }
.dl-check input { width: auto; margin-top: 3px; }
.field small { display: block; margin-top: 6px; }

/* ---- Startpagina ---- */
.home-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.home-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.home-tile i { font-size: 1.4rem; color: var(--accent-text); margin-bottom: 6px; }
.home-tile strong { color: var(--ink); font-size: 1.05rem; }
.home-tile span { color: var(--muted); font-size: .85rem; }

@media (max-width: 900px) {
    .dl-layout, .dl-detail { grid-template-columns: 1fr; }
    .dl-aside { position: static; }
    .dl-detail-side { order: -1; }
    .home-tiles { grid-template-columns: 1fr 1fr; }
    .dl-thumb { flex-basis: 64px; height: 52px; }
    .dl-row-static { flex-wrap: wrap; }
}

/* ---- Downloads: detailpagina ---- */
[hidden] { display: none !important; }
.dl-detail-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dl-detail-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
.dl-head-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.dl-head-tags a.card-tag { text-decoration: none; }
.dl-title { font-size: 1.8rem; margin: 0 0 6px; display: block; }
.dl-lead { font-size: 1.02rem; color: var(--muted); font-weight: 500; margin: 8px 0 0; }
.dl-text h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 14px; }
.dl-text h3 i { color: var(--accent-text); }
.dl-btn { padding: 14px 20px; font-size: 1rem; }
.dl-hint { margin: 12px 0 0; font-size: .82rem; }

.dl-gallery { padding: 14px; }
.dl-gallery-main { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; aspect-ratio: 16/9; }
.dl-gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dl-gallery .gallery-thumbs { margin-top: 12px; }

.dl-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--surface-2); border-radius: 999px; }
.dl-tab { padding: 7px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.dl-tab.active { background: var(--accent); color: #fff; }

.dl-facts { margin: 0; display: flex; flex-direction: column; }
.dl-facts div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; font-size: .88rem; border-top: 1px solid var(--border); }
.dl-facts div:first-child { border-top: 0; padding-top: 0; }
.dl-facts dt { color: var(--muted); font-weight: 600; }
.dl-facts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.dl-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 30px; background: rgba(5, 9, 18, .88); cursor: zoom-out; }
.dl-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.dl-lightbox-close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }

/* Uploadformulier */
.dl-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.dl-form-grid .panel h3 { font-size: 1rem; margin-bottom: 14px; }
.dl-form-side { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 900px) { .dl-form-grid { grid-template-columns: 1fr; } .dl-detail-side { position: static; } }

/* Downloads: kaart met titel, downloadknop en versie; omschrijvingen onder elkaar */
.dl-head .card-tag { text-decoration: none; margin-bottom: 10px; }
.dl-head-action { display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.dl-version { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.dl-version i { color: var(--accent-text); }
.dl-section + .dl-section { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border); }
.dl-section h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 14px; }
.dl-section h3 i { color: var(--accent-text); }

/* Vergrote afbeelding: pijltjes en teller */
.dl-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; transition: background .15s ease; }
.dl-lightbox-nav:hover { background: rgba(255, 255, 255, .28); }
.dl-lightbox-prev { left: 18px; }
.dl-lightbox-next { right: 18px; }
.dl-lightbox img { cursor: default; }
.dl-lightbox-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-size: .85rem; font-weight: 600; }
@media (max-width: 600px) { .dl-lightbox { padding: 12px; } .dl-lightbox-nav { width: 40px; height: 40px; } .dl-lightbox-prev { left: 8px; } .dl-lightbox-next { right: 8px; } }

/* ---- Downloads: bestandspagina in één kaart (titel, auteur, afbeeldingen, tabs + zijbalk) ---- */
.dl-file { padding: 0; overflow: hidden; }
.dl-file-head { padding: 28px 30px 20px; }
.dl-file .dl-title { margin: 0 0 10px; font-size: 1.9rem; line-height: 1.2; }
.dl-ver { color: var(--muted); font-weight: 700; margin-left: 4px; }
.dl-file-head .card-tag { text-decoration: none; }
.dl-file-head .dl-lead { margin: 14px 0 0; }

.dl-authorbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 30px; background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.dl-authorbar strong { color: var(--ink); }
.dl-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.dl-authorlink { margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--border-strong); font-weight: 600; }

.dl-grid { display: grid; gap: 14px; padding: 20px 30px 4px; grid-template-columns: 1fr 1fr; }
.dl-grid-1 { grid-template-columns: 1fr; }
.dl-grid-item { display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; aspect-ratio: 16/9; position: relative; }
.dl-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.dl-grid-item:hover img { transform: scale(1.03); }
.dl-grid-1 .dl-grid-item { max-height: 460px; }

.dl-file-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; margin-top: 20px; border-top: 1px solid var(--border); }
.dl-file-main { padding: 22px 30px 30px; min-width: 0; }
.dl-file-side { padding: 22px 26px 26px; border-left: 1px solid var(--border); background: var(--surface-2); }
.dl-file-side h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.dl-file-side .dl-btn { border-radius: 999px; text-align: center; }
.dl-file-side .dl-facts dt i { width: 20px; color: var(--muted); margin-right: 4px; }
.dl-file-side .dl-facts div { border-color: var(--border); }

.dl-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.dl-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; transition: background .15s ease, color .15s ease; }
.dl-tab:hover { background: var(--surface-2); color: var(--ink); }
.dl-tab.active { background: var(--accent); color: #fff; }

@media (max-width: 900px) {
    .dl-file-head, .dl-authorbar, .dl-file-main { padding-left: 18px; padding-right: 18px; }
    .dl-grid { padding-left: 18px; padding-right: 18px; grid-template-columns: 1fr; }
    .dl-file-body { grid-template-columns: 1fr; }
    .dl-file-side { border-left: 0; border-top: 1px solid var(--border); order: -1; }
    .dl-file .dl-title { font-size: 1.5rem; }
}
.dl-file .dl-tabs { display: flex; background: none; border-radius: 0; padding: 0 0 16px; }

/* ---- Downloads: nettere kop, lagere afbeeldingen en Bestandsinformatie ---- */
.dl-file-head { padding: 24px 30px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dl-file .dl-title { margin: 0; }
.dl-authorbar .dl-versionbadge { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--muted); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.dl-authorbar .dl-versionbadge strong { color: var(--ink); }
.dl-authorbar .dl-versionbadge i { color: var(--accent-text); }

.dl-grid-item { aspect-ratio: 2 / 1; }
.dl-grid-1 .dl-grid-item { aspect-ratio: 21 / 8; max-height: 300px; }

.dl-file-side .dl-info-title { margin: 26px 0 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dl-info { list-style: none; margin: 0; padding: 0; }
.dl-info li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); font-size: .88rem; }
.dl-info li:first-child { border-top: 0; }
.dl-info-ico { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent-text); font-size: .8rem; }
.dl-info-label { flex: 1; color: var(--muted); font-weight: 600; }
.dl-info-val { color: var(--ink); font-weight: 700; text-align: right; white-space: nowrap; }
.dl-info-val.dl-info-wrap { white-space: normal; overflow-wrap: anywhere; max-width: 55%; }

@media (max-width: 900px) {
    .dl-file-head { padding: 20px 18px 14px; }
    .dl-authorbar .dl-versionbadge { margin-left: 0; }
    .dl-grid-item, .dl-grid-1 .dl-grid-item { aspect-ratio: 16 / 9; }
}

/* ---- Profielfoto's ---- */
.avatar { display: inline-block; border-radius: 50%; object-fit: cover; flex-shrink: 0; vertical-align: middle; background: var(--surface-2); }
.avatar-initial { display: inline-grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; line-height: 1; }
.avatar-panel { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.avatar-panel h3 { margin-bottom: 6px; }
.avatar-panel .muted-text { margin: 0 0 14px; max-width: 60ch; }
.avatar-panel-preview .avatar { box-shadow: 0 0 0 4px var(--surface-2); }
.avatar-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.avatar-form input[type=file] { width: auto; max-width: 280px; padding: 8px 10px; }
.header-avatar { margin-right: 2px; }
.nav-badge { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; line-height: 1.4; text-align: center; }

/* ---- Postvak ---- */
.pv-toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.pv-folders { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px; border: 1px solid transparent; border-radius: 14px; transition: border-color .15s ease; }
.pv-folders.drag-active { border: 1px dashed var(--border-strong); }
.pv-folder { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: .88rem; text-decoration: none; }
.pv-folder:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.pv-folder.active { background: var(--surface-2); color: var(--ink); }
.pv-folder.drag-over { background: var(--accent); color: #fff; }
.pv-folder .pill { padding: 1px 8px; font-size: .7rem; }

.pv-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.pv-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; max-height: 70vh; overflow-y: auto; }
.pv-detail { padding: 22px; min-height: 320px; }
.pv-empty { padding: 34px 16px; text-align: center; color: var(--muted); font-size: .92rem; }
.pv-item { display: flex; align-items: stretch; border-radius: 12px; transition: background .15s ease; }
.pv-item:hover, .pv-item.active { background: var(--surface-2); }
.pv-item.dragging { opacity: .45; }
.pv-item-link { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 12px; color: inherit; text-decoration: none; position: relative; }
.pv-item-link:hover { text-decoration: none; }
.pv-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pv-item-top { display: flex; justify-content: space-between; gap: 8px; }
.pv-item-top strong { color: var(--ink); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pv-item.unread .pv-item-top strong { font-weight: 800; }
.pv-item-top time { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.pv-item-sub { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-item-prev { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-item.unread .pv-item-prev { color: var(--ink); }
.pv-item-note { color: var(--warning); font-size: .72rem; font-weight: 700; }
.pv-dot { position: absolute; top: 14px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.pv-item-actions { display: none; flex-direction: column; justify-content: center; gap: 2px; padding-right: 6px; }
.pv-item:hover .pv-item-actions { display: flex; }
.pv-move { border: 0; background: transparent; color: var(--muted); width: 28px; height: 28px; border-radius: 8px; cursor: pointer; }
.pv-move:hover { background: var(--surface); color: var(--ink); }

.pv-detail-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.pv-detail-head h3 { margin: 0 0 8px; font-size: 1.1rem; }
.pv-people { display: flex; gap: 6px 12px; flex-wrap: wrap; }
.pv-person { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.pv-detail-actions { display: flex; gap: 8px; align-items: flex-start; }
.pv-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
.pv-note-warn { color: var(--error); }
.pv-messages { display: flex; flex-direction: column; gap: 16px; padding: 20px 0; max-height: 52vh; overflow-y: auto; }
.pv-system { text-align: center; font-size: .78rem; color: var(--muted); }
.pv-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 85%; }
.pv-msg.own { flex-direction: row-reverse; margin-left: auto; }
.pv-msg-body { min-width: 0; }
.pv-bubble { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); color: var(--ink); font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.pv-msg.own .pv-bubble { background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; }
.pv-meta { margin-top: 4px; font-size: .72rem; color: var(--muted); }
.pv-msg.own .pv-meta { text-align: right; }
.pv-reply { border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pv-reply textarea { resize: vertical; }

.pv-dialog { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); padding: 26px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.pv-dialog::backdrop { background: rgba(5, 9, 18, .7); }
.pv-dialog h2 { margin: 0 0 16px; font-size: 1.2rem; }
.pv-dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.pv-picker { position: relative; }
.pv-picker-results { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); overflow: hidden; }
.pv-picker-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; font-size: .9rem; }
.pv-picker-row:hover { background: var(--surface-2); }
.pv-picker-none { padding: 12px; color: var(--muted); font-size: .85rem; }
.pv-picker-selected { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pv-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; }
.pv-chip button { border: 0; background: none; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 4px; }

@media (max-width: 900px) {
    .pv-layout { grid-template-columns: 1fr; }
    .pv-list { max-height: 40vh; }
    .pv-item-actions { display: flex; }
    .pv-msg { max-width: 95%; }
}
.dl-meta .dl-meta-author { display: inline-flex; align-items: center; gap: 6px; }
.dl-meta .dl-meta-author .avatar { margin: 0; }
.pv-flag { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 4px; margin-left: 4px; font-size: .72rem; opacity: 0; transition: opacity .15s ease; }
.pv-msg:hover .pv-flag, .pv-flag:focus { opacity: 1; }
.pv-flag:hover { color: var(--error); }
@media (hover: none) { .pv-flag { opacity: .7; } }
.dl-report-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 20px; padding: 10px; border: 1px dashed var(--border-strong); border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.dl-report-btn:hover { color: var(--error); border-color: var(--error); }

/* Bestandskiezer in formulieren (zie assets/js/ui.js) */
.avatar-form .file-pick { flex: 1; min-width: 260px; max-width: 420px; }
.field .file-pick { margin-top: 2px; }
.avatar-form { flex-direction: column; align-items: flex-start; gap: 12px; }
.avatar-form .file-pick { width: 100%; }
.avatar-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---- Mijn account: zijmenu + inhoud ---- */
.acc-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 36px; }
.acc-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.acc-user { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.acc-user-text { min-width: 0; display: flex; flex-direction: column; }
.acc-user-text strong { color: var(--ink); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-user-text span { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 10px; }
.acc-group { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
.acc-group + .acc-group { border-top: 1px solid var(--border); }
.acc-group-label { padding: 6px 12px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.acc-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; width: 100%; text-align: left; }
.acc-link i { width: 18px; text-align: center; font-size: .95rem; }
.acc-link .nav-badge { margin-left: auto; }
.acc-link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.acc-link.active { background: var(--surface-2); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.acc-link.active i { color: var(--accent-text); }
.acc-group-end form { margin: 0; }
.acc-logout:hover { color: var(--error); }

.acc-main { min-width: 0; }
.acc-head { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.acc-head h1 { font-size: 1.7rem; margin: 0 0 6px; }
.acc-head p { margin: 0; color: var(--muted); max-width: 70ch; }
.acc-badge { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); font-size: .74rem; font-weight: 700; }

/* Overzichtspagina */
.acc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 30px; }
.acc-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.acc-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.acc-tile-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(125, 96, 166, .16); color: var(--accent-text); margin-bottom: 8px; }
.acc-tile strong { font-size: 1.6rem; line-height: 1.1; color: var(--ink); }
.acc-tile span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.acc-tile.is-alert .acc-tile-icon { background: rgba(232, 179, 74, .18); color: var(--warning); }
.acc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.acc-box { padding: 20px; }
.acc-box h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 12px; }
.acc-box h3 a { font-size: .78rem; font-weight: 600; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); color: inherit; text-decoration: none; font-size: .88rem; }
.acc-row:first-of-type { border-top: 0; }
.acc-row:hover { text-decoration: none; }
.acc-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-row-main strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-row-main span { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-empty { color: var(--muted); font-size: .88rem; margin: 0; }

/* Mijn gegevens: nettere indeling */
.acc-main .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acc-main .avatar-panel { margin-bottom: 20px; }

/* Postvak binnen de account-indeling */
.acc-main .pv-layout { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }

@media (max-width: 1000px) {
    .acc-main .pv-layout { grid-template-columns: 1fr; }
    .acc-cols, .acc-main .split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .acc-shell { grid-template-columns: 1fr; gap: 20px; padding-top: 22px; }
    .acc-side { position: static; }
    .acc-user { padding: 12px 14px; }
    .acc-nav { display: flex; overflow-x: auto; gap: 6px; padding: 8px; }
    .acc-group { flex-direction: row; gap: 4px; padding: 0; flex-shrink: 0; align-items: center; }
    .acc-group + .acc-group { border-top: 0; border-left: 1px solid var(--border); padding-left: 6px; }
    .acc-group-label { display: none; }
    .acc-link { white-space: nowrap; width: auto; padding: 9px 12px; }
    .acc-head h1 { font-size: 1.4rem; }
}
.acc-shell { padding-top: 32px; }

/* Overzichtstegels: vijf naast elkaar, compacter */
.acc-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.acc-tile { padding: 14px 16px; }
.acc-tile-icon { width: 34px; height: 34px; border-radius: 10px; margin-bottom: 6px; font-size: .85rem; }
.acc-tile strong { font-size: 1.5rem; }
.acc-tile span:last-child { font-size: .76rem; line-height: 1.3; }
@media (max-width: 1100px) {
    .acc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acc-tiles .acc-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---- Forum ---- */
.fo-stats { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.fo-stats strong { color: var(--ink); }
.fo-cat { padding: 0; margin-bottom: 20px; overflow: hidden; }
.fo-cat-head { padding: 18px 22px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.fo-cat-head h2 { margin: 0; font-size: 1.1rem; }
.fo-cat-head h2 a { color: var(--ink); text-decoration: none; }
.fo-cat-head p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.fo-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 150px 260px; gap: 16px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--border); }
.fo-cat > .fo-row:first-of-type, .fo-cat-head + .fo-row { border-top: 0; }
.fo-row-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(125, 96, 166, .16); color: var(--accent-text); display: grid; place-items: center; font-size: 1.05rem; }
.fo-row-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fo-row-title { font-weight: 700; color: var(--ink); font-size: 1rem; }
.fo-row-desc { color: var(--muted); font-size: .84rem; }
.fo-row-stats { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: var(--muted); }
.fo-row-stats strong { color: var(--ink); }
.fo-row-last { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .85rem; }
.fo-row-last > span { min-width: 0; display: flex; flex-direction: column; }
.fo-row-last a { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-row-last small, .fo-col-last small { color: var(--muted); font-size: .74rem; }

.fo-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.fo-topics { padding: 0; overflow: hidden; }
.fo-topics-head, .fo-topic { display: grid; grid-template-columns: minmax(0, 1fr) 80px 90px 220px; gap: 14px; align-items: center; padding: 14px 22px; }
.fo-topics-head { background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fo-topic { border-top: 1px solid var(--border); }
.fo-topics-head + .fo-topic { border-top: 0; }
.fo-topic.is-hidden { opacity: .6; }
.fo-topic-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.fo-topic-title { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.fo-topic-meta { font-size: .78rem; color: var(--muted); margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fo-col-n { text-align: center; font-size: .9rem; color: var(--ink); font-weight: 600; }
.fo-topics-head .fo-col-n { color: var(--muted); font-weight: 800; }
.fo-col-last { display: flex; gap: 10px; align-items: center; min-width: 0; font-size: .84rem; }
.fo-col-last > span { min-width: 0; display: flex; flex-direction: column; overflow: hidden; text-overflow: ellipsis; }
.fo-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: .7rem; font-weight: 700; }
.fo-tag-pin { color: var(--accent-text); }
.fo-tag-warn { color: var(--warning); border-color: rgba(232, 179, 74, .4); }

.fo-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.fo-head h1 { margin: 6px 0 4px; font-size: 1.7rem; overflow-wrap: anywhere; }
.fo-head p { margin: 0; }
.fo-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fo-mod { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 18px; border: 1px dashed rgba(232, 179, 74, .5); border-radius: 14px; background: rgba(232, 179, 74, .07); }
.fo-mod form { margin: 0; }
.fo-mod-label { font-size: .78rem; font-weight: 800; color: var(--warning); margin-right: 4px; }
.fo-move { display: flex; gap: 6px; align-items: center; }
.fo-move select { width: auto; padding: 6px 10px; font-size: .82rem; }

.fo-posts { display: flex; flex-direction: column; gap: 14px; }
.fo-post { display: grid; grid-template-columns: 170px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; scroll-margin-top: 90px; }
.fo-post:target { border-color: var(--accent); }
.fo-post.is-hidden { border-style: dashed; opacity: .75; }
.fo-author { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 20px 12px; background: var(--surface-2); border-right: 1px solid var(--border); }
.fo-author strong { color: var(--ink); font-size: .92rem; overflow-wrap: anywhere; margin-top: 6px; }
.fo-author small { color: var(--muted); font-size: .72rem; }
.fo-role { padding: 2px 10px; border-radius: 999px; background: rgba(125, 96, 166, .22); color: var(--accent-text); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.fo-role-admin { background: rgba(232, 179, 74, .2); color: var(--warning); }
.fo-body { padding: 16px 22px; min-width: 0; display: flex; flex-direction: column; }
.fo-body-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.fo-time { color: var(--muted); font-size: .78rem; font-weight: 600; }
.fo-text { color: var(--ink); line-height: 1.7; overflow-wrap: anywhere; font-size: .95rem; }
.fo-text a { color: var(--accent-text); text-decoration: underline; }
.fo-edited { margin: 10px 0 0; font-size: .74rem; color: var(--muted); font-style: italic; }
.fo-hidden-note { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(232, 179, 74, .1); color: var(--warning); font-size: .8rem; font-weight: 600; }
.fo-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.fo-actions form { margin: 0; }
.fo-act { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.fo-act:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.fo-act-mod { color: var(--warning); }
.fo-reply { margin-top: 24px; }
.fo-reply h3 { margin-bottom: 12px; }
.fo-reply textarea { resize: vertical; }

@media (max-width: 900px) {
    .fo-row { grid-template-columns: 44px minmax(0, 1fr); }
    .fo-row-stats { grid-column: 2; flex-direction: row; gap: 14px; }
    .fo-row-last { grid-column: 1 / -1; }
    .fo-topics-head { display: none; }
    .fo-topic { grid-template-columns: minmax(0, 1fr) auto; }
    .fo-topic .fo-col-n { display: none; }
    .fo-topic .fo-col-last { grid-column: 1 / -1; }
    .fo-post { grid-template-columns: 1fr; }
    .fo-author { flex-direction: row; justify-content: flex-start; text-align: left; gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
    .fo-author strong { margin-top: 0; }
}
.fo-reported { margin-bottom: 22px; border-color: rgba(232, 179, 74, .45); }
.fo-reported h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 10px; color: var(--warning); }
.fo-reported-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--border); color: inherit; text-decoration: none; flex-wrap: wrap; }
.fo-reported-row:hover { text-decoration: none; background: var(--surface-2); }
.fo-reported-row span { display: flex; flex-direction: column; min-width: 0; }
.fo-reported-row strong { color: var(--ink); }
.fo-reported-row small { color: var(--muted); font-size: .78rem; }

/* ---- Tekst-editor (Quill) in de winkel: donker/licht thema mee ---- */
.rich-editor { min-width: 0; margin-top: 2px; }
.rich-editor .ql-toolbar.ql-snow { background: var(--surface-2); border-color: var(--border-strong); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.rich-editor .ql-container.ql-snow { background: var(--surface-2); border-color: var(--border-strong); color: var(--ink); border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-family: inherit; }
.rich-editor .ql-editor { min-height: 180px; max-height: 520px; color: var(--ink); }
.rich-editor .ql-editor.ql-blank::before { color: var(--muted); font-style: normal; }
.rich-editor .ql-snow .ql-stroke { stroke: var(--ink); }
.rich-editor .ql-snow .ql-fill, .rich-editor .ql-snow .ql-stroke.ql-fill { fill: var(--ink); }
.rich-editor .ql-snow .ql-picker { color: var(--ink); }
.rich-editor .ql-snow .ql-picker-options { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.rich-editor .ql-snow.ql-toolbar button:hover .ql-stroke, .rich-editor .ql-snow.ql-toolbar button.ql-active .ql-stroke,
.rich-editor .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke { stroke: var(--accent-text); }
.rich-editor .ql-snow.ql-toolbar button:hover .ql-fill, .rich-editor .ql-snow.ql-toolbar button.ql-active .ql-fill { fill: var(--accent-text); }
.rich-editor .ql-snow.ql-toolbar .ql-picker-label:hover, .rich-editor .ql-snow.ql-toolbar .ql-picker-item:hover { color: var(--accent-text); }
.rich-editor .ql-snow .ql-tooltip { background: var(--surface); color: var(--ink); border-color: var(--border-strong); box-shadow: var(--shadow); z-index: 20; }
.rich-editor .ql-snow .ql-tooltip input[type=text] { background: var(--surface-2); color: var(--ink); border-color: var(--border-strong); padding: 4px 8px; width: auto; }
.rich-editor .emoji-pop { background: var(--surface); border-color: var(--border-strong); }
.rich-editor .emoji-pop button:hover { background: var(--surface-2); }
.rich-editor .editor-hint { color: var(--muted); }
.rich-editor .ql-editor blockquote { border-left: 3px solid var(--accent); color: var(--muted); }
.fo-text blockquote, .rich blockquote { background: var(--surface-2); border-radius: 0 10px 10px 0; padding: 8px 14px; margin: 0 0 1em; }

/* Tekst uit de editor: een Enter komt strak onder de vorige regel, precies zoals in de editor zelf.
   Wil je een lege regel, dan druk je twee keer op Enter. */
.rich p, .rich ul, .rich ol { margin: 0; }
.rich li { margin-bottom: 0; }
.rich h2, .rich h3, .rich h4 { margin: .9em 0 .35em; }
.rich blockquote, .fo-text blockquote { margin: .5em 0; }
.rich > p:empty::after { content: '\00a0'; }

/* ---- Teampagina ---- */
.tm-band { background: var(--surface-2); }
.tm-dept { display: inline-block; padding: 8px 20px; margin-bottom: 26px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink); font-size: .95rem; font-weight: 800; letter-spacing: .02em; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.tm-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px 22px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: inherit; font: inherit; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.tm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tm-photo { margin-bottom: 8px; }
.tm-photo .avatar { box-shadow: 0 0 0 4px var(--surface-2); }
.tm-name { color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.tm-role { color: var(--accent-text); font-weight: 600; font-size: .84rem; }
.tm-dialog { width: min(560px, calc(100vw - 32px)); }
.tm-dialog-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; position: relative; padding-right: 30px; }
.tm-dialog-head h3 { margin: 0 0 2px; font-size: 1.25rem; }
.tm-close { position: absolute; top: -6px; right: -6px; border: 0; background: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.tm-bio { max-height: 42vh; overflow-y: auto; margin-bottom: 14px; }
.tm-socials { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tm-profile-link { display: inline-block; font-weight: 700; font-size: .9rem; }
.tm-hero { display: flex; gap: 22px; align-items: center; text-align: left; }
.tm-hero h1 { margin-bottom: 4px; }
.tm-hero p { margin: 0; }
.tm-hero-avatar { border: 4px solid rgba(255, 255, 255, .3); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); position: relative; z-index: 1; }
@media (max-width: 560px) { .tm-hero { flex-direction: column; text-align: center; } .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .tm-photo .avatar { width: 110px !important; height: 110px !important; font-size: 46px !important; } }
