:root {
    --bg: #f7f7f8;
    --panel: #fff;
    --text: #18181b;
    --muted: #71717a;
    --faint: #a1a1aa;
    --line: #e4e4e7;
    --line-soft: #f1f1f3;
    --dark: #18181b;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, .12);
    --ok: #15803d;
    --ok-soft: #dcfce7;
    --warn: #b45309;
    --warn-soft: #fef3c7;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --r: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0; }
p { margin: 0 0 12px; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--line-soft); padding: 1px 5px; border-radius: 5px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; font-weight: 400; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- шапка ---------- */
.top {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px 24px;
    padding: 10px 24px; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #2563eb, #7c3aed); flex: none; }
.mark.big { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px; display: block; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; }
.nav a, .me > a { color: var(--muted); padding: 7px 11px; border-radius: 7px; font-weight: 500; white-space: nowrap; }
.nav a:hover, .me > a:hover { color: var(--text); background: var(--line-soft); text-decoration: none; }
.nav a.active, .me > a.active { color: var(--text); background: var(--line-soft); }
.me { display: flex; align-items: center; gap: 4px; }
.me form { margin: 0; }

.page { max-width: 1200px; margin: 0 auto; padding: 28px 24px 80px; }
.page.bare { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

/* ---------- елементи ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card.narrow { max-width: 400px; width: 100%; margin: 0 auto; }
.card.center { text-align: center; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; flex: 1; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid2.wide-left { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid2.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; }
@media (max-width: 900px) { .grid2, .grid2.wide-left, .grid2.even { grid-template-columns: 1fr; } }

label { display: block; font-weight: 500; margin-bottom: 12px; }
input, select {
    display: block; width: 100%; margin-top: 5px; height: 36px; padding: 0 10px; font: inherit; color: inherit;
    background: var(--panel); border: 1px solid var(--line); border-radius: 8px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox] { display: inline; width: auto; height: auto; margin: 0 8px 0 0; accent-color: var(--accent); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px;
    font: inherit; font-weight: 500; color: var(--text); background: var(--panel); border: 1px solid var(--line);
    border-radius: 8px; cursor: pointer; white-space: nowrap; text-decoration: none !important;
}
.btn:hover { background: var(--line-soft); }
.btn.primary { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn.primary:hover { background: #3f3f46; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--line-soft); }
.btn.danger { color: var(--danger); }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
.icon-btn { display: inline-flex; padding: 6px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--line-soft); color: var(--text); }

.flash { padding: 10px 14px; border-radius: 8px; background: var(--ok-soft); color: #14532d; margin-bottom: 16px; }
.flash.error { background: var(--danger-soft); color: #991b1b; }
.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; max-width: min(560px, calc(100vw - 32px));
    padding: 12px 16px; border-radius: 10px; background: var(--dark); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.toast.error { background: var(--danger); }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--line-soft); color: var(--muted); }
.badge.big { font-size: 13px; padding: 5px 12px; }
.s-new { background: #e0e7ff; color: #3730a3; }
.s-in_progress { background: var(--warn-soft); color: var(--warn); }
.s-review { background: #f3e8ff; color: #6b21a8; }
.s-ready { background: var(--ok-soft); color: var(--ok); }
.s-deployed { background: #cffafe; color: #155e75; }
.s-archived { background: var(--line-soft); color: var(--muted); }
.s-cancelled { background: var(--danger-soft); color: #991b1b; }

.progress { display: inline-flex; gap: 3px; vertical-align: middle; }
.progress i { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.progress.big i { width: 24px; height: 8px; }
.progress.p1 i:nth-child(-n+1), .progress.p2 i:nth-child(-n+2), .progress.p3 i { background: var(--ok); }

/* ---------- головний екран ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { margin: 0; width: auto; }
.filters .grow { flex: 1 1 240px; }
.inline-label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; color: var(--muted); }
.inline-label input { margin: 0; }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.subtabs a { padding: 8px 12px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a:hover { color: var(--text); text-decoration: none; }
.subtabs a.active { color: var(--text); border-bottom-color: var(--text); }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--line-soft); font-size: 12px; text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; }
.pcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: var(--text); margin-bottom: 10px; }
.pcard-head:hover { text-decoration: none; }
.pcard-head:hover h3 { color: var(--accent); }
.pcard .facts { font-size: 13px; flex: 1; }
.pcard-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard.is-cancelled { border-style: dashed; }
.pcard.is-cancelled h3 { color: var(--muted); }

/* ---------- створення проєкту ---------- */
.modal { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); color: var(--text); }
.modal.wide { width: min(1100px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(24, 24, 27, .45); }
.modal form { display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; }
.step { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tpl { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.tpl-shot { position: relative; height: 260px; overflow: hidden; background: var(--line-soft); }
.tpl-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tpl-shot.no-shot img { display: none; }
.tpl-shot.no-shot::after { content: "Немає превʼю — відкрийте «Переглянути»"; position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.tpl-info { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px 4px; }
.tpl-actions { display: flex; justify-content: space-between; gap: 6px; padding: 6px 12px 12px; }

/* ---------- проєкт ---------- */
.actions-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.stage { border-top: 1px solid var(--line); padding: 14px 0; transition: opacity .15s; }
.stage.busy { opacity: .5; pointer-events: none; }
.stage h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.stage .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.stage.ok .dot { background: var(--ok); }
.auto { list-style: none; padding: 0; margin: 0 0 10px; font-size: 13px; }
.auto li { padding-left: 22px; position: relative; margin-bottom: 3px; }
.auto li::before { position: absolute; left: 2px; font-weight: 700; }
.auto li.ok::before { content: "✓"; color: var(--ok); }
.auto li.fail::before { content: "✕"; color: var(--danger); }
.auto li.warn::before { content: "!"; color: var(--warn); left: 5px; }
.auto li.fail { color: var(--danger); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 12px; }
.check { display: flex; align-items: center; font-weight: 400; margin: 0; padding: 4px 0; cursor: pointer; }
.secret { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.secret code { font-size: 18px; padding: 6px 12px; letter-spacing: .05em; }
.form-grid { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.form-grid label { flex: 1; margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table tr.blocked td { opacity: .6; }
.table form { margin: 0; }
.table select { margin: 0; height: 30px; width: auto; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input, .inline-form select { margin: 0; height: 30px; }
.inline-form input { flex: 1; min-width: 120px; }
.inline-form select { width: auto; }

.sitetest { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; scroll-margin-top: 80px; }
.sitetest-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.test-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: var(--ok-soft); }
.test-summary.fail { background: var(--danger-soft); }
.pill { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--panel); }
.pill.ok { color: var(--ok); }
.pill.warn { color: var(--warn); }
.pill.fail { color: var(--danger); }
.stale { font-size: 12px; font-weight: 600; color: var(--warn); }
.test-list { list-style: none; padding: 0; margin: 0 0 10px; font-size: 13px; }
.test-list li { position: relative; padding: 6px 0 6px 22px; border-bottom: 1px solid var(--line-soft); }
.test-list li::before { position: absolute; left: 2px; top: 6px; font-weight: 700; }
.test-list li.ok::before { content: "✓"; color: var(--ok); }
.test-list li.fail::before { content: "✕"; color: var(--danger); }
.test-list li.warn::before { content: "!"; color: var(--warn); left: 5px; }
.test-list .grp { display: inline-block; font-size: 11px; color: var(--muted); background: var(--line-soft); border-radius: 4px; padding: 0 5px; margin-right: 4px; }
.test-list .detail { color: var(--muted); overflow-wrap: anywhere; }
.test-ok summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-bottom: 6px; }

@media (max-width: 640px) {
    .top { padding: 10px 16px; gap: 8px 12px; flex-wrap: wrap; }
    .brand span:last-child { display: none; }
    .page { padding: 20px 16px 60px; }
    .table { display: block; overflow-x: auto; }
    .form-grid { flex-wrap: wrap; }
}

/* ---------- користувачі ---------- */
textarea {
    display: block; width: 100%; margin-top: 5px; padding: 8px 10px; font: inherit; color: inherit; resize: vertical;
    background: var(--panel); border: 1px solid var(--line); border-radius: 8px; outline: none;
}
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.grow { flex: 1; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.card.flush { padding: 4px 0; margin-bottom: 16px; }
.card.flush .table th:first-child, .card.flush .table td:first-child { padding-left: 20px; }
.card.flush .table th:last-child, .card.flush .table td:last-child { padding-right: 20px; }
.head-row h1 + .muted { margin: 0; }


.avatar {
    --h: 220; display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 34px; height: 34px; border-radius: 50%; font-size: 13px; font-weight: 650; letter-spacing: .02em;
    background: hsl(var(--h) 70% 92%); color: hsl(var(--h) 55% 32%);
}
.avatar.big { width: 56px; height: 56px; font-size: 20px; }
.who { display: flex; align-items: center; gap: 10px; }
.who-name { color: var(--text); font-weight: 600; }
.table.users tbody tr { cursor: pointer; }
.table.users tbody tr:hover td { background: #fafafa; }
.table td.cb, .table th.cb { width: 28px; padding-right: 0; }
.table td.cb input, .table th.cb input { margin: 0; }

.r-admin { background: #ede9fe; color: #5b21b6; }
.r-developer { background: #e0f2fe; color: #075985; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.on { color: var(--ok); }
.state.warn { color: var(--warn); }
.state.idle { color: var(--faint); }
.state.off { color: var(--danger); }
.perm-dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.perm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.perm-dot.on { background: #0ea5e9; }

.user-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.user-head h1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-head p { margin: 0; }
.user-badges { display: flex; align-items: center; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; }
.kpis > div { display: flex; flex-direction: column; padding: 14px 18px; border-left: 1px solid var(--line-soft); font-size: 13px; }
.kpis > div:first-child { border-left: 0; }
.kpi-n { font-size: 22px; font-weight: 650; color: var(--text); line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi-n.small-n { font-size: 17px; line-height: 1.6; }

.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.notice.danger { background: var(--danger-soft); border-color: #fecaca; color: #7f1d1d; }
.notice.warn { background: var(--warn-soft); border-color: #fde68a; color: #78350f; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.notice-actions form { margin: 0; }
.inline-delete { display: flex; gap: 8px; }
.inline-delete input { margin: 0; width: 230px; }

fieldset.field { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset.field legend { font-weight: 500; padding: 0; margin-bottom: 6px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.role-opt { position: relative; margin: 0; cursor: pointer; }
.role-opt input { position: absolute; opacity: 0; }
.role-opt > span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 400; }
.role-opt:hover > span { background: #fafafa; }
.role-opt input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--panel); }
.role-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.role-opt input:disabled + span { cursor: not-allowed; opacity: .6; }
[data-perms][hidden] { display: none; }
[data-perms] { margin-bottom: 12px; }

.switch { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; margin: 0; padding: 8px 0; border-top: 1px solid var(--line-soft); cursor: pointer; }
.switch:first-of-type { border-top: 0; }
.switch input {
    appearance: none; -webkit-appearance: none; display: block; flex: none; width: 34px; height: 20px; margin: 1px 0 0; border-radius: 99px;
    background: var(--line); position: relative; cursor: pointer; transition: background .15s;
}
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(14px); }
.switch input:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
.switch .hint { margin-top: 0; }

.pass-row { display: flex; gap: 8px; margin-bottom: 8px; }
.pass-row input { margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .03em; }
.check { margin-bottom: 4px; }

.reveal { border-color: #86efac; background: linear-gradient(180deg, #f0fdf4, #fff 70%); margin-bottom: 16px; }
.cred { display: grid; gap: 6px; margin: 0 0 14px; }
.cred > div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; }
.cred code { font-size: 15px; padding: 5px 10px; justify-self: start; overflow-wrap: anywhere; }

.sec-block { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.sec-block:first-of-type { border-top: 0; padding-top: 0; }
.sec-block h3 { margin-bottom: 8px; }
.sec-block p { margin-bottom: 8px; }
.danger-zone { border-color: #fecaca; }
.danger-zone h2 { color: #991b1b; }
.btn.danger:not(.ghost) { border-color: #fecaca; }
.btn.danger:not(.ghost):hover:not(:disabled) { background: var(--danger); border-color: var(--danger); color: #fff; }

.transfer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.transfer-bar select { width: auto; margin: 0; height: 30px; flex: 1 1 160px; }
.transfer-bar [data-selected] { flex: 1 1 100%; }

.timeline { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.timeline li { display: flex; gap: 12px; padding: 8px 0; position: relative; }
.timeline li + li::before { content: ""; position: absolute; left: 4px; top: -8px; height: 16px; border-left: 1px dashed var(--line); }
.ev-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--faint); }
.ev-login .ev-dot { background: #0ea5e9; }
.ev-created .ev-dot, .ev-unblocked .ev-dot { background: var(--ok); }
.ev-blocked .ev-dot, .ev-deleted .ev-dot { background: var(--danger); }
.ev-password_reset .ev-dot, .ev-password_changed .ev-dot, .ev-sessions .ev-dot { background: var(--warn); }
.ev-role .ev-dot, .ev-perms .ev-dot, .ev-transfer .ev-dot { background: #7c3aed; }
.ev-project_created .ev-dot, .ev-test .ev-dot, .ev-build .ev-dot { background: #0f766e; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 13px; }
.chips a:hover { color: var(--text); text-decoration: none; }
.chips a.on { background: var(--text); border-color: var(--text); color: var(--panel); }
.table.activity td { vertical-align: top; }
.table.activity .ev-dot { display: inline-block; margin: 0 8px 1px 0; }
.nowrap { white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }

.perm-list { list-style: none; padding: 0; margin: 0 0 8px; }
.perm-list li { padding: 3px 0 3px 22px; position: relative; }
.perm-list li::before { position: absolute; left: 2px; font-weight: 700; }
.perm-list li.ok::before { content: "✓"; color: var(--ok); }
.perm-list li.no { color: var(--muted); }
.perm-list li.no::before { content: "–"; color: var(--faint); left: 4px; }

@media (max-width: 900px) {
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpis > div:nth-child(3) { border-left: 0; }
    .kpis > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 640px) {
    .row2, .role-pick { grid-template-columns: 1fr; }
    .user-badges { width: 100%; }
    .table.users th:nth-child(5), .table.users td:nth-child(5), .table.users th:nth-child(6), .table.users td:nth-child(6) { display: none; }
}
