:root {
    --bg: #08111f;
    --panel: rgba(15, 23, 42, .88);
    --panel-soft: rgba(30, 41, 59, .74);
    --line: rgba(148, 163, 184, .18);
    --text: #e5eefc;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --good: #22c55e;
    --warn: #f59e0b;
    --danger: #ef4444;
    --radius: 24px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .28);
    --panel-sidebar-width: 280px;
    --page-padding: 18px;
    --gap: 18px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 10%, rgba(56, 189, 248, .18), transparent 28%),
        radial-gradient(circle at 80% 0%, rgba(168, 85, 247, .16), transparent 30%),
        linear-gradient(135deg, #08111f 0%, #111827 52%, #020617 100%);
}

a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-size: clamp(24px, 2.4vw, 32px); }
h2 { font-size: 18px; }
p { line-height: 1.55; }

.muted, .small { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }

/* Login */
.page-login {
    display: grid;
    place-items: center;
    padding: 22px;
}

.login-card {
    width: min(100%, 430px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
    padding: 30px;
    backdrop-filter: blur(18px);
}

.login-card .brand { margin-bottom: 24px; }
.login-card h1 { font-size: 24px; }
.login-card p { margin: 6px 0 0; color: var(--muted); }
.login-card button { width: 100%; margin-top: 22px; }
.login-card .hint { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* Fixed panel layout */
.page-panel { padding: var(--page-padding); }

.admin-shell,
.layout {
    width: calc(100vw - (var(--page-padding) * 2));
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: var(--panel-sidebar-width) minmax(0, 1fr);
    gap: var(--gap);
    align-items: start;
}

.content,
main { min-width: 0; }

.sidebar {
    width: var(--panel-sidebar-width);
    min-width: var(--panel-sidebar-width);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    position: sticky;
    top: var(--page-padding);
    height: calc(100vh - (var(--page-padding) * 2));
    overflow: auto;
    padding: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #38bdf8, #22c55e);
    color: #04111f;
    font-weight: 900;
    letter-spacing: .03em;
}

.brand h1,
.brand h2 { font-size: 18px; line-height: 1.1; margin: 0; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.nav-title {
    margin: 24px 0 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.nav-link,
.logout-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--muted);
    text-decoration: none;
    background: rgba(2, 6, 23, .3);
    font-weight: 800;
    font-size: 13px;
}

.nav-link.active,
.nav-link:hover,
.logout-link:hover {
    color: var(--text);
    border-color: rgba(56, 189, 248, .55);
    background: rgba(56, 189, 248, .12);
}

/* Shared cards */
.card,
.topbar,
.filters,
.table-card,
.notice,
.tip-card,
.stats-card,
.counter-card,
.rightbar {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.card { padding: 22px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px; margin-bottom: 18px; }
.header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.filters { padding: 16px; margin-bottom: 18px; }
.table-card { overflow: hidden; }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.notice { padding: 14px 16px; margin-bottom: 18px; }
.notice.good { border-color: rgba(34, 197, 94, .45); color: #bbf7d0; }
.notice.bad, .notice.error { border-color: rgba(239, 68, 68, .45); color: #fecaca; }
.notice.info { border-color: rgba(56, 189, 248, .35); color: #bae6fd; }
.tip-card, .stats-card { padding: 18px; }

.table-card {
    padding: 5px;
    margin-bottom: 25px;
}

/* Forms */
label {
    display: block;
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, .70);
    color: var(--text);
    font: inherit;
    outline: none;
}

textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: rgba(56, 189, 248, .65);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .10);
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #04111f;
    background: linear-gradient(135deg, #38bdf8, #22c55e);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

button.secondary,
.button.secondary {
    background: rgba(56, 189, 248, .12);
    color: #bae6fd;
    border-color: rgba(56, 189, 248, .35);
}

button.danger,
.button.danger {
    background: rgba(239, 68, 68, .12);
    color: #fecaca;
    border-color: rgba(239, 68, 68, .35);
}

button:disabled,
.button:disabled { opacity: .62; cursor: not-allowed; }

form.grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.location-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 360px; }
.full { grid-column: 1 / -1; }
.check-label { display: flex; align-items: center; gap: 8px; margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; }
.check-label input { width: auto; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
tr:last-child td { border-bottom: 0; }

.tag,
.badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(56, 189, 248, .12);
    color: #bae6fd;
    font-size: 12px;
    font-weight: 800;
}
.tag.off, .badge.off { background: rgba(148, 163, 184, .12); color: #cbd5e1; }
.status-pill.success { background: rgba(34,197,94,.13); color: #bbf7d0; }
.status-pill.warning { background: rgba(245,158,11,.13); color: #fde68a; }
.status-pill.error { background: rgba(239,68,68,.13); color: #fecaca; }
.status-pill.running { background: rgba(56,189,248,.13); color: #bae6fd; }
.status-pill.never { background: rgba(148,163,184,.13); color: #cbd5e1; }

/* API calls */
.counter-card { padding: 18px; display: grid; gap: 14px; margin-bottom: 18px; }
.counter-kicker { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.counter-number { font-size: 42px; font-weight: 900; line-height: 1; }
.counter-number span { color: var(--muted); font-size: 18px; }
.counter-card p { margin: 6px 0 0; color: var(--muted); }
.counter-progress { height: 10px; border-radius: 999px; overflow: hidden; background: rgba(148, 163, 184, .18); }
.counter-progress > div { height: 100%; border-radius: inherit; background: linear-gradient(135deg, #38bdf8, #22c55e); }
.counter-breakdown { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.counter-breakdown span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: rgba(2, 6, 23, .28); }
.api-form-table input[type="number"] { min-width: 90px; }
.api-form-table select { min-width: 160px; }

/* Telegram */
.message-text,
.log-context {
    margin-top: 10px;
    color: #dbeafe;
    white-space: pre-wrap;
    line-height: 1.55;
}
.meta-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.stat-card { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(15,23,42,.54); }
.stat-number { font-size: 28px; font-weight: 900; }
.stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* Editor locations */
.map-picker {
    min-height: 420px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0f172a;
}
.leaflet-container { background: #0f172a; font-family: Inter, system-ui, sans-serif; }
.leaflet-popup-content-wrapper,
.leaflet-popup-tip { background: #0f172a; color: var(--text); border: 1px solid rgba(148, 163, 184, .25); }
.coord-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.map-help { margin: 10px 0 14px; color: var(--muted); font-size: 14px; }

/* Dashboard monitor */
.page-dashboard { padding: 0; }
.app {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 360px;
    min-height: 100vh;
    gap: 18px;
    padding: 18px;
}
.page-dashboard .sidebar,
.rightbar {
    position: sticky;
    top: 18px;
    height: calc(100vh - 36px);
    overflow: auto;
}
.page-dashboard .sidebar { min-width: 0; }
.dashboard-main { min-width: 0; display: grid; gap: 18px; }
.hero,
.map-card,
.feed-card,
.stat-grid,
.location-list { margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 28px; }
.stat span { color: var(--muted); font-size: 13px; }
#map { min-height: 520px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.area-button { width: 100%; display: flex; align-items: center; gap: 10px; justify-content: flex-start; margin-bottom: 8px; color: var(--text); background: var(--status-bg, rgba(15,23,42,.52)); border-color: var(--status-border, var(--line)); }
.area-button::before { content: ""; width: 5px; align-self: stretch; min-height: 28px; border-radius: 999px; background: var(--area-color, var(--accent)); }
.area-button.is-active { box-shadow: 0 0 0 3px rgba(56, 189, 248, .12); }
.location-row { border: 1px solid var(--status-border, var(--line)); background: var(--status-bg, rgba(15,23,42,.52)); border-radius: 18px; padding: 13px; margin-bottom: 10px; }
.location-title { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.location-marker { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--area-color, var(--accent)); color: #04111f; font-size: 12px; font-weight: 900; }
.custom-map-marker { color:#04111f; border-radius:999px; padding:5px 8px; font-weight:900; border:2px solid rgba(255,255,255,.8); box-shadow:0 8px 20px rgba(0,0,0,.32); }
.feed-item, .article-item { padding: 14px; border-bottom: 1px solid var(--line); }
.feed-item:last-child, .article-item:last-child { border-bottom: 0; }

/* Utilities */
.error {
    margin: 16px 0 0;
    border: 1px solid rgba(239, 68, 68, .35);
    background: rgba(239, 68, 68, .12);
    color: #fecaca;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .app { grid-template-columns: 260px minmax(0, 1fr); }
    .rightbar { grid-column: 1 / -1; position: static; height: auto; }
    .stat-grid, .meta-grid, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    :root { --page-padding: 12px; }
    .admin-shell,
    .layout,
    .app { width: 100%; grid-template-columns: 1fr; padding: 12px; }
    .page-panel { padding: 12px; }
    .admin-shell, .layout { padding: 0; }
    .sidebar,
    .page-dashboard .sidebar,
    .rightbar { width: 100%; min-width: 0; position: static; height: auto; }
    form.grid,
    .location-form,
    .inline-form { grid-template-columns: 1fr; min-width: 0; }
    .coord-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .topbar, .header { flex-direction: column; align-items: stretch; }
    .stat-grid, .meta-grid, .stats-grid { grid-template-columns: 1fr; }
    th, td { padding: 12px; }
    table { font-size: 14px; }
}

/* Extra dashboard details */
.hero {
    min-height: 220px;
    border-radius: 30px;
    padding: 26px;
    background: linear-gradient(135deg, rgba(56, 189, 248, .22), rgba(34, 197, 94, .08)), rgba(15, 23, 42, .78);
    border: 1px solid rgba(56, 189, 248, .22);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero:after { content: ''; position: absolute; inset: auto -80px -110px auto; width: 260px; height: 260px; border-radius: 999px; background: rgba(56,189,248,.14); filter: blur(10px); }
.hero-content { position: relative; z-index: 1; display: grid; gap: 22px; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-badge { display: inline-flex; gap: 9px; align-items: center; border: 1px solid rgba(34, 197, 94, .36); background: rgba(34, 197, 94, .12); color: #bbf7d0; border-radius: 999px; padding: 9px 12px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pulse { width: 9px; height: 9px; border-radius: 999px; background: var(--good); box-shadow: 0 0 0 0 rgba(34,197,94,.55); animation: pulse 1.7s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.pill { border-radius: 999px; padding: 6px 10px; background: rgba(148, 163, 184, .12); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.hero h2 { font-size: clamp(28px, 4vw, 46px); max-width: 920px; letter-spacing: -.04em; }
.hero-copy { max-width: 850px; color: #cbd5e1; margin: 8px 0 0; }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr); gap: 18px; }
.card-header { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 14px; }
.card h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.card-subtitle { color: var(--muted); font-size: 12px; margin-top: 5px; }
.map-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.feed-list, .api-list, .area-list, .location-list { display: grid; gap: 10px; }
.api-item { padding: 11px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(2,6,23,.28); }
.api-item strong { display: block; font-size: 13px; }
.api-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.rightbar { padding: 20px; border-radius: var(--radius); }
.rightbar .card { box-shadow: none; background: rgba(15,23,42,.52); margin-bottom: 14px; }

/* Admin details */
.card-head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; margin-bottom:14px; }
.actions, .footer-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.footer-actions { justify-content:flex-end; margin-top:16px; }
.refresh-note { color:var(--muted); font-size:12px; }
.result-cell { max-width: 320px; }
.status, .level {
    display:inline-flex;
    align-items:center;
    padding:5px 9px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    background:rgba(148,163,184,.14);
    color:#cbd5e1;
}
.status.active, .level.info, .status.success { background:rgba(34,197,94,.13); color:#bbf7d0; }
.status.inactive, .status.neutral, .status.never, .level.debug { background:rgba(148,163,184,.13); color:#cbd5e1; }
.status.warning, .level.warning { background:rgba(245,158,11,.13); color:#fde68a; }
.status.error, .level.error, .level.critical { background:rgba(239,68,68,.13); color:#fecaca; }
.status.running { background:rgba(56,189,248,.13); color:#bae6fd; }
.context { white-space:pre-wrap; color:#cbd5e1; font-size:12px; max-width:440px; }
.message { font-weight:800; }
.empty { padding: 26px; text-align:center; color:var(--muted); }
.user-name { font-weight:900; }
.wide { min-width: 260px; }
.toggle-form { display:flex; gap:10px; align-items:center; }

/* User admin actions */
.user-admin-actions {
    display: grid;
    gap: 10px;
    min-width: 420px;
}

.user-update-form {
    min-width: 0;
}

.admin-action-details {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(2, 6, 23, .24);
    overflow: hidden;
}

.admin-action-details summary {
    cursor: pointer;
    padding: 11px 12px;
    font-weight: 900;
    color: var(--text);
}

.admin-action-details[open] summary {
    border-bottom: 1px solid var(--line);
}

.stack-form {
    display: grid;
    gap: 9px;
    padding: 12px;
}

.danger-zone {
    border-color: rgba(239, 68, 68, .28);
}

.danger-zone summary {
    color: #fecaca;
}

@media (max-width: 1100px) {
    .user-admin-actions {
        min-width: 0;
    }
}

/* Account page */
.account-grid {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
    gap: 18px;
}

.account-wide-card {
    grid-column: 1 / -1;
}

.account-info-list {
    display: grid;
    gap: 10px;
}

.account-info-list > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.account-info-list > div:last-child {
    border-bottom: 0;
}

.account-info-list span,
.password-rules {
    color: var(--muted);
    font-size: 13px;
}

.account-info-list strong {
    text-align: right;
}

.account-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.account-form.stack-form {
    padding: 0;
}

.account-telegram-action {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.account-telegram-table {
    box-shadow: none;
    background: rgba(2, 6, 23, .22);
}

@media (max-width: 1100px) {
    .account-grid,
    .account-two-cols {
        grid-template-columns: 1fr;
    }

    .account-info-list > div {
        display: grid;
        gap: 4px;
    }

    .account-info-list strong {
        text-align: left;
    }
}

/* Logboek filters */
.filters form {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.filters .filter-check {
    align-self: end;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(15, 23, 42, .45);
    color: var(--muted);
}

@media (max-width: 1200px) {
    .filters form {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

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

/* Assignments */
.assignment-filter-form {
    grid-template-columns: minmax(240px, 1.4fr) minmax(160px, .7fr) minmax(160px, .7fr) minmax(160px, .7fr) auto;
}

.assignment-filter-form.compact {
    grid-template-columns: minmax(240px, 1.4fr) minmax(160px, .7fr) minmax(160px, .7fr) auto;
}

.assignment-table td:first-child {
    min-width: 360px;
}

.assignment-title {
    font-weight: 900;
    color: var(--text);
    margin-bottom: 7px;
}

.assignment-description {
    color: #cbd5e1;
    line-height: 1.55;
    font-size: 14px;
    max-width: 760px;
}

.assignment-meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.badge.success {
    background: rgba(34,197,94,.13);
    color: #bbf7d0;
}

@media (max-width: 1100px) {
    .assignment-filter-form,
    .assignment-filter-form.compact {
        grid-template-columns: 1fr;
    }

    .assignment-table td:first-child {
        min-width: 0;
    }
}

/* Assignment status update */
.assignment-table-actions td:nth-child(2),
.assignment-table-actions td:nth-child(3),
.assignment-table-actions td:nth-child(4),
.assignment-table-actions td:nth-child(5) {
    white-space: nowrap;
}

.assignment-table-actions .inline-form {
    display: inline-flex;
    min-width: 0;
    grid-template-columns: none;
    gap: 0;
}

button.success,
.button.success {
    background: rgba(34, 197, 94, .14);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, .38);
}

.assignment-more-inline {
    display: inline-flex;
    min-height: 24px;
    padding: 0 8px;
    margin-left: 8px;
    border-radius: 999px;
    background: rgba(56, 189, 248, .12);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, .32);
    font-size: 12px;
    line-height: 1;
    vertical-align: baseline;
}

.assignment-row-late {
    background: rgba(239, 68, 68, .045);
}

.assignment-row-submitted,
.assignment-row-points {
    background: rgba(34, 197, 94, .035);
}

@media (max-width: 980px) {
    .assignment-table-actions td:nth-child(2),
    .assignment-table-actions td:nth-child(3),
    .assignment-table-actions td:nth-child(4),
    .assignment-table-actions td:nth-child(5) {
        white-space: normal;
    }
}

/* Points admin page */
.points-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.points-total-card,
.points-card {
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(15, 23, 42, .72);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.points-total-card {
    grid-column: span 2;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, .16), transparent 42%), rgba(15, 23, 42, .82);
}

.points-total-card strong {
    display: block;
    margin-top: 8px;
    font-size: 52px;
    line-height: 1;
}

.points-total-card p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.points-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.points-card strong {
    display: block;
    margin-top: 8px;
    font-size: 30px;
}

.points-actions-card {
    margin-bottom: 18px;
}

.points-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.points-form.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.points-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.points-form .full-span {
    grid-column: 1 / -1;
}

.points-form textarea {
    width: 100%;
    resize: vertical;
}

.points-quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 18px 18px;
}

.points-quick-actions form {
    margin: 0;
}

.points-delta {
    font-weight: 800;
    font-size: 16px;
}

.points-delta.positive {
    color: #bbf7d0;
}

.points-delta.negative {
    color: #fecaca;
}

.button.danger,
button.danger {
    background: rgba(239, 68, 68, .14);
    color: #fecaca;
    border-color: rgba(239, 68, 68, .38);
}

.small-button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
}

@media (max-width: 1180px) {
    .points-grid,
    .points-form,
    .points-form.compact {
        grid-template-columns: 1fr 1fr;
    }

    .points-total-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .points-grid,
    .points-form,
    .points-form.compact {
        grid-template-columns: 1fr;
    }
}

/* Puntenboekhouding */
tr.is-voided {
    opacity: .58;
}

tr.is-voided td {
    text-decoration: none;
}

.points-form .full-span {
    grid-column: 1 / -1;
}

.points-delta.positive {
    color: #86efac;
    font-weight: 800;
}

.points-delta.negative {
    color: #fca5a5;
    font-weight: 800;
}

/* Telegram bewijs bij puntenmutaties */
.event-message-details {
    margin-top: 8px;
}

.event-message-details summary {
    cursor: pointer;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 700;
}

.event-message-text {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.assignment-point-event-list {
    display: grid;
    gap: 12px;
}

.assignment-point-event {
    padding: 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.46);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.assignment-point-event-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.recognition-mode-box {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.48);
}

.segmented-control {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.segmented-control label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #e2e8f0;
    cursor: pointer;
}

.segmented-control input {
    margin: 0;
}

.help-card {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.08);
}

.help-card p {
    margin: 6px 0 0;
    color: #94a3b8;
    line-height: 1.55;
}

.token-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.recognition-preview {
    margin-top: 12px;
}


/* Location management modal */
.locations-compact-table .actions-column {
    width: 120px;
    text-align: right;
}

.compact-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.location-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(8px);
}

.location-modal-backdrop[hidden] {
    display: none;
}

.location-modal-panel {
    width: min(760px, 100%);
    max-height: min(820px, calc(100vh - 48px));
    overflow: auto;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    color: #e2e8f0;
}

.location-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.location-modal-header h2 {
    margin: 6px 0 4px;
    font-size: 24px;
    line-height: 1.2;
}

.modal-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    color: #bae6fd;
    font-size: 12px;
    font-weight: 700;
}

.location-modal-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    color: #cbd5e1;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.location-modal-close:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

.location-modal-form {
    padding: 20px 24px 24px;
}

.location-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.location-modal-grid .full {
    grid-column: 1 / -1;
}

.location-modal-grid textarea {
    min-height: 120px;
}

.location-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.location-modal-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    font-size: 13px;
}

.location-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

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

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

    .locations-compact-table .actions-column {
        width: auto;
    }
}

/* Locatiehistorie markers op editor/locations.php */
.history-map-marker {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #64748b;
    color: #f8fafc;
    border: 2px solid rgba(248, 250, 252, 0.95);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.38);
    font-size: 13px;
    font-weight: 800;
}

.history-map-marker.latest {
    background: #ef4444;
    color: #fff;
    border-color: rgba(254, 202, 202, 0.98);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.36);
}

/* Locatiebronnen */
.location-source-summary .stat-card p { margin: 8px 0 0; }
.location-filter-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr auto; }
.location-source-hint { background: rgba(245, 158, 11, .14); color: #fde68a; }
.location-source-live { background: rgba(56, 189, 248, .14); color: #bae6fd; }
.location-source-spot { background: rgba(239, 68, 68, .14); color: #fecaca; }
.history-map-marker.history-kind-telegram_live { background: #38bdf8; color: #082f49; }
.history-map-marker.history-kind-fox_sighting { background: #f97316; color: #fff7ed; }
.history-map-marker.history-kind-hint_location { background: #64748b; }
.history-map-marker.latest.history-kind-hint_location { background: #ef4444; color: #fff; }
@media (max-width: 1100px) {
    .location-filter-grid { grid-template-columns: 1fr 1fr; }
}

/* Telegram automatisering: toon per actie alleen de gekozen configuratie */
.automation-action-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.automation-action-summary-type {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.24);
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.automation-action-empty .automation-action-summary-type {
    background: rgba(148, 163, 184, 0.10);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.18);
}

.automation-action-block[hidden] {
    display: none !important;
}

.automation-action-block {
    margin-top: 16px;
}

/* Fix Telegram automatisering layout na accordion update */
.section-head,
.table-card .section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.section-head h2,
.table-head h2 {
    margin: 0;
}

.section-head p,
.table-head p {
    margin: 7px 0 0;
}

.table-card > h2 {
    padding: 18px 20px 0;
}

.table-card > h2 + .muted,
.table-card > h2 + p {
    padding: 0 20px;
    margin: 8px 0 0;
}

.table-card > .stack-form {
    padding: 18px 20px 20px;
}

.table-card > .compact-list,
.table-card > .debug-box,
.table-card > .empty,
.table-card > .muted {
    margin: 0;
    padding: 18px 20px;
}

.compact-list {
    display: grid;
    gap: 12px;
}

.compact-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, .24);
}

.compact-row strong {
    display: block;
    margin-bottom: 6px;
}

.compact-row p {
    margin: 0 0 8px;
    color: #dbeafe;
    white-space: pre-wrap;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.row-actions form {
    margin: 0;
}

.alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, .74);
    color: var(--text);
    font-weight: 800;
}

.alert.success {
    border-color: rgba(34, 197, 94, .38);
    background: rgba(34, 197, 94, .12);
    color: #bbf7d0;
}

.alert.error {
    border-color: rgba(239, 68, 68, .38);
    background: rgba(239, 68, 68, .12);
    color: #fecaca;
}

.automation-action {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, .22);
    overflow: hidden;
}

.automation-action + .automation-action {
    margin-top: 12px;
}

.automation-action > summary {
    cursor: pointer;
    padding: 13px 15px;
    font-weight: 900;
    color: var(--text);
    list-style: none;
}

.automation-action > summary::-webkit-details-marker {
    display: none;
}

.automation-action[open] > summary {
    border-bottom: 1px solid var(--line);
}

.automation-action > .form-grid,
.automation-action > .automation-action-block {
    padding: 14px 15px;
}

.automation-action > .automation-action-block + .automation-action-block {
    padding-top: 0;
}

.automation-action-block h4 {
    margin: 0 0 12px;
    color: #bae6fd;
}

.debug-box {
    overflow: auto;
    border-radius: 16px;
    background: rgba(2, 6, 23, .42);
    border: 1px solid var(--line);
    color: #cbd5e1;
}

@media (max-width: 900px) {
    .section-head,
    .table-card .section-head,
    .compact-row {
        display: grid;
    }

    .row-actions {
        justify-content: flex-start;
    }
}

/* Inline help tooltips */
.field-help {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #bae6fd;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
}

.field-help::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    z-index: 9999;
    width: min(320px, 75vw);
    padding: 10px 12px;
    border-radius: 12px;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.26);
    color: #e2e8f0;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.field-help::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%) rotate(45deg);
    z-index: 2001;
    width: 10px;
    height: 10px;
    background: #020617;
    border-right: 1px solid rgba(148, 163, 184, 0.26);
    border-bottom: 1px solid rgba(148, 163, 184, 0.26);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.field-help:hover::after,
.field-help:focus::after,
.field-help:hover::before,
.field-help:focus::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.field-help:hover::before,
.field-help:focus::before {
    transform: translateX(-50%) rotate(45deg);
}

@media (max-width: 900px) {
    .section-head,
    .table-card .section-head,
    .compact-row {
        display: grid;
    }

    .row-actions {
        justify-content: flex-start;
    }
}

/* =========================================================
   Hotfix 2026-05-06: Vossenkaart, sidebar accordion en tooltip
   ========================================================= */

/* Page/locations.php layout */
.page-map-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.page-map-header p {
    margin: 8px 0 0;
}

.page-map-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-map-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.page-map-panel {
    padding: 18px;
    min-width: 0;
}

.page-map-controls {
    display: grid;
    grid-template-columns: minmax(220px, .85fr) minmax(260px, 1fr) minmax(300px, 1.1fr);
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
}

.page-map-status-card,
.route-indication-card {
    min-height: 66px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, .24);
}

.page-map-status-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-map-status-card strong,
.page-map-status-card small {
    display: block;
}

.page-map-status-card small,
.route-indication-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.status-dot {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border-radius: 999px;
    background: var(--muted);
    box-shadow: 0 0 0 5px rgba(148, 163, 184, .12);
}

.status-dot.status-green { background: var(--good); box-shadow: 0 0 0 5px rgba(34, 197, 94, .14); }
.status-dot.status-orange { background: var(--warn); box-shadow: 0 0 0 5px rgba(245, 158, 11, .14); }
.status-dot.status-red { background: var(--danger); box-shadow: 0 0 0 5px rgba(239, 68, 68, .14); }
.status-dot.status-unknown { background: var(--muted); }

.route-toggle-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.route-toggle-row input {
    width: auto;
    margin: 0;
}

.route-time-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.route-time-row input {
    min-height: 38px;
    padding: 8px 10px;
}

/* Kritiek: Leaflet heeft een expliciete hoogte nodig. Zonder dit lijkt de kaart verdwenen. */
.fox-route-map {
    width: 100%;
    min-height: 620px;
    height: min(68vh, 720px);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.map-legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.map-legend-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, .24);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.legend-hint { background: #64748b; }
.legend-spot { background: #f97316; }
.legend-live { background: #38bdf8; }
.legend-line {
    width: 24px;
    height: 0;
    border-top: 3px dashed #111827;
    display: inline-block;
}

.page-map-sidebar {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.latest-point-box {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 16px;
    background: rgba(56, 189, 248, .08);
}

.latest-point-box strong,
.latest-point-box span,
.latest-point-box small {
    display: block;
}

.latest-point-box small {
    color: var(--muted);
    line-height: 1.45;
}

.compact-list-item {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(2, 6, 23, .24);
}

.compact-list-item span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.timeline-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(2, 6, 23, .24);
}

.timeline-item.latest {
    border-color: rgba(239, 68, 68, .34);
    background: rgba(239, 68, 68, .08);
}

.timeline-number {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #64748b;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 900;
}

.timeline-item.latest .timeline-number {
    background: #ef4444;
}

.timeline-item strong,
.timeline-item span {
    display: block;
}

.timeline-item span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.map-number-icon,
.live-user-icon {
    background: transparent !important;
    border: 0 !important;
}

.map-number-marker {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #64748b;
    color: #f8fafc;
    border: 2px solid rgba(248, 250, 252, .96);
    box-shadow: 0 10px 24px rgba(2, 6, 23, .40);
    font-size: 13px;
    font-weight: 900;
}

.map-number-marker.fox_sighting,
.map-number-marker.spot {
    background: #f97316;
}

.map-number-marker.hint_location,
.map-number-marker.hint {
    background: #64748b;
}

.map-number-marker.latest {
    background: #ef4444;
    color: #fff;
    border-color: rgba(254, 202, 202, .98);
    box-shadow: 0 12px 30px rgba(239, 68, 68, .36);
}

.live-user-marker {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #38bdf8;
    color: #082f49;
    border: 2px solid rgba(224, 242, 254, .98);
    box-shadow: 0 10px 24px rgba(14, 165, 233, .34);
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 1250px) {
    .page-map-grid {
        grid-template-columns: 1fr;
    }

    .page-map-sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .page-map-header,
    .page-map-actions {
        display: grid;
        justify-content: stretch;
    }

    .page-map-controls,
    .page-map-sidebar {
        grid-template-columns: 1fr;
    }

    .fox-route-map {
        min-height: 460px;
        height: 60vh;
    }
}

/* Sidebar accordion robuuste override. Alleen binnen .sidebar, zodat andere details/summary elementen niet stuk gaan. */
.sidebar .sidebar-group {
    display: block;
    margin-top: 12px;
    border: 0;
    background: transparent;
}

.sidebar .sidebar-group > summary.sidebar-group-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 36px;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    list-style: none;
    padding: 10px 11px;
    border-radius: 13px;
    background: rgba(56, 189, 248, .10);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, .18);
    border-left: 4px solid #38bdf8;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar .sidebar-group > summary.sidebar-group-title::-webkit-details-marker {
    display: none !important;
}

.sidebar .sidebar-group > summary.sidebar-group-title::marker {
    content: '' !important;
    font-size: 0 !important;
}

.sidebar .sidebar-group > summary.sidebar-group-title:hover {
    background: rgba(56, 189, 248, .18);
    color: #e0f2fe;
    border-color: rgba(56, 189, 248, .32);
    border-left-color: #38bdf8;
}

.sidebar .sidebar-group[open] > summary.sidebar-group-title {
    background: rgba(34, 197, 94, .12);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, .26);
    border-left-color: #22c55e;
}

.sidebar .sidebar-group-arrow {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: currentColor;
    opacity: 1;
    transform: rotate(-90deg);
    transition: transform .15s ease;
    font-size: 13px;
    line-height: 1;
}

.sidebar .sidebar-group[open] .sidebar-group-arrow {
    transform: rotate(0deg);
}

.sidebar .sidebar-group-content {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.sidebar .sidebar-group:not([open]) .sidebar-group-content {
    display: none;
}

.sidebar .sidebar-group .nav-link {
    margin-bottom: 0;
}

/* Tooltip rechts van het vraagteken */
.field-help::after {
    left: calc(100% + 12px) !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) translateX(-4px) !important;
    width: max-content !important;
    max-width: 320px !important;
}

.field-help::before {
    left: calc(100% + 6px) !important;
    top: 50% !important;
    bottom: auto !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border-width: 6px 6px 6px 0 !important;
    border-style: solid !important;
    border-color: transparent #020617 transparent transparent !important;
    transform: translateY(-50%) !important;
}

.field-help:hover::after,
.field-help:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0) !important;
}

.field-help:hover::before,
.field-help:focus::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) !important;
}

/* Website instellingen */
.settings-reset-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.reset-card-body {
    padding: 18px 20px 20px;
}

.reset-info-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.reset-info-list > div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.22);
}

.reset-info-list strong {
    color: #e2e8f0;
    font-size: 13px;
}

.reset-info-list span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.reset-card-danger {
    border-color: rgba(239, 68, 68, 0.34);
}

.reset-card-danger .table-head {
    border-bottom-color: rgba(239, 68, 68, 0.22);
}

.reset-form.stack-form {
    padding: 0;
}

.reset-checkbox {
    margin: 2px 0 4px;
}

@media (max-width: 1100px) {
    .settings-reset-grid {
        grid-template-columns: 1fr;
    }
}


.article-item.feed-status-open,
.latest-jotihunt-item.feed-status-open {
    background: rgba(56, 189, 248, .08);
    border-color: rgba(56, 189, 248, .20);
}

.article-item.feed-status-submitted,
.latest-jotihunt-item.feed-status-submitted {
    background: rgba(245, 158, 11, .09);
    border-color: rgba(245, 158, 11, .24);
}

.article-item.feed-status-points,
.latest-jotihunt-item.feed-status-points {
    background: rgba(34, 197, 94, .10);
    border-color: rgba(34, 197, 94, .25);
}

.article-item.feed-status-skipped,
.latest-jotihunt-item.feed-status-skipped {
    background: rgba(100, 116, 139, .12);
    border-color: rgba(100, 116, 139, .28);
}

.article-item.feed-status-late,
.latest-jotihunt-item.feed-status-late {
    background: rgba(239, 68, 68, .10);
    border-color: rgba(239, 68, 68, .25);
}

.points-pill {
    background: rgba(34, 197, 94, .14);
    border-color: rgba(34, 197, 94, .28);
    color: #bbf7d0;
}
