:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --border: #e3e8ef;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #4b108a;
    --primary-hover: #390c68;
    --primary-soft: #f3ecfb;
    --danger: #dc2626;
    --success: #059669;
    --warning: #d97706;
    --sidebar: #130322;
    --sidebar-text: #cbd5e1;
    --radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.45;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; }

/* ---------- layout ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 220px; flex-shrink: 0; background: var(--sidebar); color: var(--sidebar-text);
    display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh;
    /* A long menu scrolls inside the dark sidebar instead of spilling past it. */
    overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: #4b108a transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #4b108a; border-radius: 3px; }
.nav, .sidebar-footer { flex-shrink: 0; }
.brand { font-weight: 700; font-size: 18px; color: #fff; padding: 0 10px; display: flex; align-items: center; gap: 8px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: #0845fb; display: inline-block; }
.workspace-name { font-size: 12px; color: #94a3b8; padding: 2px 10px 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px;
    color: var(--sidebar-text); font-weight: 500;
}
.nav a:hover { background: #26103d; text-decoration: none; color: #fff; }
.nav a.active { background: #4b108a; color: #fff; }
.nav .section { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; padding: 16px 10px 6px; }
.sidebar-footer { margin-top: auto; padding: 10px; font-size: 13px; border-top: 1px solid #26103d; }
.sidebar-footer a { color: var(--sidebar-text); }
.sidebar-footer button { background: none; border: 0; color: #94a3b8; padding: 0; cursor: pointer; font: inherit; }
.running-pill { display: block; margin: 0 0 12px; padding: 8px 10px; border-radius: 6px; background: #064e3b; color: #a7f3d0; font-size: 12px; }
.main { flex: 1; min-width: 0; padding: 24px 32px 48px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }

@media (max-width: 860px) {
    .shell { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; padding: 12px; }
    .nav { display: flex; flex-wrap: wrap; gap: 4px; }
    .nav .section { display: none; }
    .workspace-name { padding-bottom: 8px; }
    .sidebar-footer { margin-top: 8px; }
    .main { padding: 16px; }
}

/* ---------- components ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 14px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface);
    color: var(--text); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #f3f4f6; text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: #fef2f2; }
.btn-stop { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-stop:hover { background: #b91c1c; }
.btn-sm { padding: 4px 9px; font-size: 13px; }
.btn-icon { padding: 4px 8px; border: 0; background: transparent; color: var(--muted); }
.btn-icon:hover { background: #f3f4f6; color: var(--text); }

label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: #374151; }
.field { margin-bottom: 12px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
    width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
    font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #d9c6f0; border-color: var(--primary); }
input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
textarea { min-height: 70px; resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: 14px; cursor: pointer; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 160px; }

.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-error ul { margin: 0; padding-left: 18px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: #fafbfc; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: #f3f4f6; color: #374151; }
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-green { background: #ecfdf5; color: var(--success); }
.badge-amber { background: #fffbeb; color: var(--warning); }
.badge-red { background: #fef2f2; color: var(--danger); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.project-tag { display: inline-flex; align-items: center; font-weight: 500; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.right { text-align: right; }
.empty { text-align: center; color: var(--muted); padding: 32px 16px; }

details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.auth-card.wide { max-width: 520px; }
.auth-card .brand { color: var(--text); padding: 0; margin-bottom: 18px; }
.auth-card .btn-primary { width: 100%; padding: 10px; margin-top: 6px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }

.btn-google { width: 100%; padding: 10px; background: #fff; border-color: #dadce0; color: #3c4043; margin-bottom: 4px; }
.btn-google:hover { background: #f8f9fa; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- mobile: compact top bar + hamburger (also used inside the Android app) ---------- */
.brand-row { display: flex; align-items: center; justify-content: space-between; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: #fff; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.sidebar.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar.open .nav-toggle span:nth-child(2) { opacity: 0; }
.sidebar.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
    .sidebar { position: sticky; top: 0; z-index: 50; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); height: auto; max-height: 100vh; }
    .nav-toggle { display: block; }
    .workspace-name { display: none; }
    .sidebar .nav, .sidebar .sidebar-footer { display: none; }
    .sidebar.open .nav { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; margin-top: 10px; max-height: calc(100vh - 140px); overflow-y: auto; }
    .sidebar.open .nav .section { display: block; padding-top: 10px; }
    .sidebar.open .sidebar-footer { display: block; }
    .running-pill { margin: 8px 0 0; }
    .main { padding: 14px; }
    .page-head h1 { font-size: 20px; }
    .timer-bar .clock { flex: 1; text-align: left; }
    .timer-bar .btn { flex: 1; padding: 10px; }
    input, select, textarea { font-size: 16px; } /* no zoom-on-focus on iOS/Android */
}
.get-android { display: block; font-size: 12px; margin-bottom: 10px; color: #93c5fd !important; }
@media (display-mode: standalone), (display-mode: fullscreen) { .get-android { display: none; } }

.btn-google + .btn-google { margin-top: 6px; }
.busy-note { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--primary-soft); color: #390c68; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.spinner { width: 16px; height: 16px; border: 2px solid #d9c6f0; border-top-color: var(--primary); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seat-meter { font-size: 13px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }
.seat-meter b { color: var(--text); }
.seat-meter a { margin-left: 8px; font-weight: 600; }
.seat-meter.full { border-color: #fcd34d; background: #fffbeb; }

.auth-card .btn-block { width: 100%; padding: 10px; }

/* standard switcher */
.topbar { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: -8px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.std-switch { display: flex; align-items: center; gap: 10px; margin: 0; }
.std-switch label { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.std-switch select { width: auto; min-width: 280px; max-width: 100%; font-weight: 600; border-color: var(--primary); }
@media (max-width: 860px) { .std-switch { flex-wrap: wrap; width: 100%; } .std-switch select { flex: 1; min-width: 0; } }

/* page banner, stat cards, filters (Users & permissions) */
.page-banner { position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: 12px; margin-bottom: 16px; color: #fff; background: linear-gradient(120deg, #390c68 0%, #332e97 55%, #0845fb 130%); overflow: hidden; }
.page-banner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #0845fb, #a78bfa, #f59e0b); }
.page-banner h1 { margin: 0 0 4px; font-size: 22px; }
.page-banner p { margin: 0; font-size: 13px; color: #e0d4f5; }
.banner-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); flex-shrink: 0; }
.banner-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #cbb8ee; }
.banner-meter { margin-left: auto; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #e0d4f5; }
.banner-meter b { color: #fff; }
.banner-meter a { color: #fff; text-decoration: underline; }
.banner-meter.full { background: rgba(251,191,36,.22); border-color: #fbbf24; }
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat-card span { display: block; font-size: 12px; color: var(--muted); }
.stat-card b { font-size: 28px; color: #130322; line-height: 1.3; }
@media (max-width: 860px) { .stat-cards { grid-template-columns: 1fr 1fr; } .banner-meter { margin-left: 0; } }
.filters-title { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 14px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.filter-grid .span-2 { grid-column: span 2; }
@media (max-width: 860px) { .filter-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .filter-grid { grid-template-columns: 1fr; } .filter-grid .span-2 { grid-column: auto; } }
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 18px 16px 10px; }
.per-page { margin: 0; }
.per-page label { font-weight: 400; margin: 0; }
.info-note { margin: 0 16px 14px; padding: 10px 14px; background: var(--primary-soft); border-radius: 6px; font-size: 12.5px; color: #390c68; }
th a.sort { color: inherit; text-decoration: none; display: inline-flex; gap: 6px; }
th a.sort span { color: #b9a6d6; font-size: 10px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0; }
.btn.disabled { opacity: .4; pointer-events: none; }

/* organization */
.org-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.org-layout.chart-mode { grid-template-columns: 1fr; }
@media (max-width: 1000px) { .org-layout { grid-template-columns: 1fr; } }
.org-node { display: block; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; background: #fff; color: var(--text); text-decoration: none; }
a.org-node:hover { border-color: var(--primary); text-decoration: none; }
.org-node.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px #d9c6f0; }
.org-node.root { background: #130322; color: #fff; border-color: #130322; display: inline-block; }
.org-node.root .org-type { color: #cbb8ee; }
.org-type { display: block; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.org-node b { display: block; font-size: 14px; }
.org-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.orgtree, .orgtree ul { list-style: none; margin: 0; padding: 0; }
.orgtree ul { margin-left: 18px; padding-left: 16px; border-left: 2px solid #e4d9f4; }
.orgtree li { margin: 8px 0; position: relative; }
.orgtree ul > li::before { content: ""; position: absolute; left: -16px; top: 22px; width: 14px; border-top: 2px solid #e4d9f4; }
.orgchart { overflow-x: auto; padding: 8px 0 16px; }
.orgchart ul { padding-top: 20px; position: relative; display: flex; justify-content: center; margin: 0; padding-left: 0; list-style: none; }
.orgchart > ul { padding-top: 0; }
.orgchart li { text-align: center; position: relative; padding: 20px 8px 0; min-width: 150px; }
.orgchart > ul > li { padding-top: 0; }
.orgchart li::before, .orgchart li::after { content: ""; position: absolute; top: 0; right: 50%; border-top: 2px solid #cdbbea; width: 50%; height: 20px; }
.orgchart li::after { right: auto; left: 50%; border-left: 2px solid #cdbbea; }
.orgchart > ul > li::before, .orgchart > ul > li::after { display: none; }
.orgchart li:only-child::before, .orgchart li:only-child::after { display: none; }
.orgchart li:only-child { padding-top: 20px; }
.orgchart > ul > li:only-child { padding-top: 0; }
.orgchart li:first-child::before, .orgchart li:last-child::after { border: 0 none; }
.orgchart li:last-child::before { border-right: 2px solid #cdbbea; border-radius: 0 6px 0 0; }
.orgchart li:first-child::after { border-radius: 6px 0 0 0; }
.orgchart ul ul::before { content: ""; position: absolute; top: 0; left: 50%; border-left: 2px solid #cdbbea; height: 20px; }
.orgchart .org-node { display: inline-block; text-align: center; min-width: 130px; max-width: 200px; }
.org-panel .card { margin-bottom: 14px; }
.org-crumb { font-size: 12px; color: var(--muted); }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--border); }
.member-add { margin-top: 14px; }
.add-top { position: relative; }
.add-top > summary { list-style: none; }
.add-top-form { position: absolute; right: 0; top: 44px; z-index: 5; width: 300px; box-shadow: 0 8px 24px rgba(19,3,34,.18); }
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.segmented a { padding: 8px 14px; font-weight: 600; font-size: 13px; color: var(--muted); text-decoration: none; }
.segmented a + a { border-left: 1px solid var(--border); }
.segmented a.active { background: var(--primary); color: #fff; }

/* personnel module */
.subtabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin: -4px 0 16px; background: var(--surface); border-radius: 8px 8px 0 0; padding: 0 8px; }
.subtabs a { padding: 12px 14px; font-weight: 600; font-size: 13px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a:hover { color: var(--text); }
.subtabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.subtabs.inner { background: transparent; padding: 0; margin: 0 0 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-all { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.req { color: var(--danger); }
.checkbox-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.due { font-variant-numeric: tabular-nums; }
.due-late { color: var(--danger); font-weight: 600; }
.due-soon { color: var(--warning); font-weight: 600; }
.ov-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 14px; }
.ov-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.ov-card h3 { margin: 0 0 6px; font-size: 15px; color: #130322; }
.ov-card b { display: block; font-size: 30px; line-height: 1.2; color: #130322; }
.ov-card span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.ov-bar { border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 700; text-align: center; color: #fff; background: #6b7280; }
.ov-bar.ok { background: #15803d; } .ov-bar.warn { background: #d97706; }
.ov-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.ov-row .card { margin-bottom: 0; }
@media (max-width: 1000px) { .ov-row { grid-template-columns: 1fr; } }
.ov-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.ov-line:last-child { border-bottom: 0; }
.count { min-width: 26px; text-align: center; padding: 1px 8px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; background: #6b7280; }
.count.blue { background: #0845fb; } .count.green { background: #15803d; } .count.amber { background: #d97706; } .count.red { background: #dc2626; }
.ov-item { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.ov-item:last-child { border-bottom: 0; }
.ov-item .muted { margin-left: 6px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.person { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.person-body { min-width: 0; font-size: 13px; }
.person-body b { font-size: 14px; }
.person-units { margin: 4px 0; }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 12px; }
.facts dd { margin: 2px 0 0; }

/* personnel notifications — colour = urgency (never emailed, shown on the panel only) */
.sev-expired { --sev: #dc2626; --sev-bg: #fef2f2; }
.sev-urgent { --sev: #ea580c; --sev-bg: #fff7ed; }
.sev-soon { --sev: #ca8a04; --sev-bg: #fefce8; }
.sev-notice { --sev: #2563eb; --sev-bg: #eff6ff; }
.notifs-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.legend-row { display: flex; gap: 6px; flex-wrap: wrap; }
.sev-pill { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: var(--sev); background: var(--sev-bg); border: 1px solid var(--sev); }
.notif-group { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.notif { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 5px; border-radius: 6px; border-left: 4px solid var(--sev); background: var(--sev-bg); color: var(--text); text-decoration: none; font-size: 13px; }
.notif:hover { text-decoration: none; filter: brightness(.97); }
.notif-what { color: #4b5563; margin-left: 4px; }
.notif-when { color: var(--sev); font-weight: 700; white-space: nowrap; }
.notif-more { display: block; font-size: 12px; margin: 6px 0 0 4px; }
.bell { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; color: var(--sev); background: var(--sev-bg); border: 1px solid var(--sev); font-size: 13px; text-decoration: none; }
.bell:hover { text-decoration: none; filter: brightness(.96); }
.nav-badge { margin-left: auto; min-width: 20px; text-align: center; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; background: var(--sev); }
.nav a { position: relative; }

/* language switcher */
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { margin: 0; }
.lang-switch select { width: auto; padding: 5px 8px; font-size: 13px; font-weight: 600; }
.guest-lang { position: absolute; top: 14px; right: 16px; z-index: 5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
