/* DURAN SPACE look of the admin (Влад, 20.10: «освежить, как в демо-версии, иконки продуктов, аватарки, без ИИ-слопа»).
   The language of the launcher and of the admin mockup (mockups/admin/admin.css): solid soft fills without outlines,
   left-aligned rows, icons in the menu, product marks, photos of people. No accent stripes along edges, no outlined
   badges. Loaded last; every colour comes from the theme variables, so every theme follows. */
@font-face { font-family: "Duran FA"; src: url("../fonts/fa-solid-900.ttf") format("truetype"); font-weight: 900; font-display: block; }

:root {
    --side-w: 248px;
    --top-h: 64px;
    --tile: color-mix(in srgb, var(--panel) 92%, var(--bg));
    --tile-2: color-mix(in srgb, var(--text) 5%, transparent);
    --tile-hover: color-mix(in srgb, var(--text) 7%, transparent);
    --radius: 12px;
    --radius-sm: 8px;
    --edge: 0 0 0 transparent; /* no inset highlight line: the surfaces are soft fills */
    --lift: 0 0 0 transparent;
    font-family: "Segoe UI", Inter, system-ui, Arial, sans-serif;
}
.fa { font-family: "Duran FA"; font-weight: 900; font-style: normal; line-height: 1; display: inline-block; }

/* ---------- background: deep space, two faint lights and a sparse star dust ---------- */
body { background: var(--bg); font-size: 13.5px; }
body::before {
    background:
        radial-gradient(1100px 620px at 12% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 64%),
        radial-gradient(900px 600px at 96% 105%, rgba(70, 110, 200, .07), transparent 62%);
    opacity: 1;
}
body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
        radial-gradient(1px 1px at 63% 9%, rgba(255,255,255,.4), transparent 60%),
        radial-gradient(1.4px 1.4px at 82% 34%, rgba(255,255,255,.45), transparent 60%),
        radial-gradient(1px 1px at 37% 62%, rgba(255,255,255,.35), transparent 60%),
        radial-gradient(1.2px 1.2px at 91% 78%, rgba(255,255,255,.4), transparent 60%),
        radial-gradient(1px 1px at 22% 88%, rgba(255,255,255,.3), transparent 60%),
        radial-gradient(1px 1px at 54% 41%, rgba(255,255,255,.25), transparent 60%);
    background-size: 640px 640px;
}
[data-theme="frost"] body::after, [data-theme="ivory"] body::after { display: none; }

/* «Свежий вид» (Влад 29.10, вариант 6 «Тихо: только звёзды»): под админкой звёзды страницы входа (login-space.js), без туманности
   и чёрной дыры; плитки как были. Дыра стоит далеко за экраном: сцена считает от неё притяжение звёзд. Светлые темы — без космоса. */
.admin-sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.admin-sky .sl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.admin-sky .sl-veil { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 35%, transparent); }
.admin-sky .sl-hole { position: absolute; width: 72vw; aspect-ratio: 1; right: -300vw; bottom: -38vw; opacity: 0; }
:root:not([data-theme="frost"]):not([data-theme="ivory"]) body:has(> .admin-sky)::before,
:root:not([data-theme="frost"]):not([data-theme="ivory"]) body:has(> .admin-sky)::after { display: none; }
[data-theme="frost"] .admin-sky, [data-theme="ivory"] .admin-sky { display: none; }
@media (min-width: 901px) {
    :root:not([data-theme="frost"]):not([data-theme="ivory"]) body:has(> .admin-sky) .sidebar { background: color-mix(in srgb, var(--sidebar) 90%, transparent); }
    :root:not([data-theme="frost"]):not([data-theme="ivory"]) body:has(> .admin-sky) .topbar { background: color-mix(in srgb, var(--bg) 70%, transparent); }
}

/* ---------- sidebar ---------- */
.sidebar {
    width: var(--side-w); padding: 0; gap: 0; background: var(--sidebar); box-shadow: 1px 0 0 var(--hairline);
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
.sidebar .brand { height: var(--top-h); padding: 0 20px; flex: none; gap: 11px; }
.sidebar .brand .brand-mark { width: 30px; height: 32px; flex-basis: 30px; }
.sidebar .brand b { font-size: 13px; font-weight: 900; letter-spacing: .09em; }
.sidebar .brand small { margin-top: 1px; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
/* the sidebar never scrolls with the page: on a low screen (1280×720) the menu scrolls inside, with a thin bar */
@media (min-width: 901px) { .sidebar { overflow: hidden; } }
/* align-content: start — a helper with two sections got them spread over the whole height */
.sidebar nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 12px 10px;
    scrollbar-width: none; align-content: start; }
/* Влад 20.10 и 29.10: полосы прокрутки в меню нет, меню крутится колесом */
.sidebar nav::-webkit-scrollbar { display: none; }
.sidebar .nav-group, .sidebar .nav-more > summary {
    display: block; margin: 0; padding: 10px 10px 4px; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted);
}
.sidebar .nav-group:first-child { padding-top: 4px; }
.sidebar .nav-more { margin: 0; }
.sidebar .nav-more > summary::after { content: "\f078"; font-family: "Duran FA"; font-weight: 900; font-size: 8px; margin-left: 7px; vertical-align: 1px; }
.sidebar .nav-more[open] > summary::after { content: "\f077"; }
.sidebar nav a {
    display: flex; align-items: center; justify-content: flex-start; gap: 11px; height: 30px; padding: 0 10px; margin: 1px 0;
    border-radius: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: color-mix(in srgb, var(--text) 78%, transparent);
}
.sidebar nav a .nav-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar nav a .nav-ic { width: 16px; flex: 0 0 16px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.sidebar nav a .nav-ic .pmark { width: 15px; height: 16px; }
.sidebar nav a:hover { background: var(--tile-hover); color: var(--text); }
.sidebar nav a.active { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--accent); }
.sidebar nav a.active .nav-ic { color: var(--accent); }
.sidebar nav a .nav-count { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.sidebar .sidebar-foot {
    margin: 0; padding: 12px 14px 12px 16px; display: flex; align-items: center; gap: 10px; box-shadow: 0 -1px 0 var(--hairline);
}
.sidebar-foot .who { flex: 1; min-width: 0; display: block; }
.sidebar-foot .who b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .who small { display: block; margin: 0; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.sidebar-foot form { margin: 0; }
.icon-button {
    width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
    display: grid; place-items: center; font-size: 13px;
}
.icon-button:hover { background: var(--tile-hover); color: var(--text); }

/* ---------- top bar with the one search ---------- */
.topbar {
    position: sticky; top: 0; z-index: 4; height: var(--top-h); margin-left: var(--side-w); padding: 0 clamp(22px, 3.5vw, 56px);
    display: flex; align-items: center; gap: 14px;
    background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--hairline);
}
.top-search { position: relative; flex: 1; max-width: 640px; margin: 0; }
.top-search > .fa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; }
.top-search input { width: 100%; height: 38px; padding: 0 44px 0 38px; border-radius: 10px; border: 0; background: var(--input); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 13px; }
.top-search input:focus { outline: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.top-search kbd {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px;
    background: var(--tile-hover); color: var(--muted); font: 700 11px "Segoe UI", system-ui, sans-serif; display: grid; place-items: center;
}

.shell { margin-left: var(--side-w); padding: 24px clamp(22px, 3.5vw, 56px) 60px; min-height: calc(100vh - var(--top-h)); }

/* ---------- page head ---------- */
.page-header { align-items: flex-end; margin-bottom: 18px; }
.page-header h1 { font-size: 22px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; margin-top: 2px; }
.page-header .eyebrow { display: block; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 500; color: var(--muted); max-width: 900px; }

/* ---------- surfaces: solid soft fills, no outline ---------- */
.stats article, .panel, .tile, details.section {
    background: var(--tile); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: var(--radius);
}
.recipient, .template-item, .note, .signal, .action-group, .preview-box, .risk-details, .risk-attempt, .uc-card, .block-options, .bulk-bar {
    background: var(--tile-2); box-shadow: none; border: 0;
}
.panel { padding: 18px 20px; }
.panel h2 { font-size: 15px; font-weight: 700; }
.panel .eyebrow { letter-spacing: .1em; }
.stats article { padding: 14px 16px; min-height: 86px; }
.stats span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats b { font-size: 24px; font-weight: 800; }

/* ---------- controls ---------- */
.button {
    border: 0; border-radius: 8px; background: var(--tile-hover); color: var(--text); font-weight: 700; box-shadow: none;
}
.button:hover { background: color-mix(in srgb, var(--text) 11%, transparent); border-color: transparent; }
.button.primary { background: var(--accent); color: color-mix(in srgb, var(--accent) 10%, #08090b); box-shadow: none; }
.button.primary:hover { background: color-mix(in srgb, var(--accent) 82%, white); }
.button.ghost { background: transparent; }
.button.ghost:hover { background: var(--tile-hover); }
.button.danger { background: var(--bad-soft); color: var(--bad); }
input, select, textarea { border: 0; box-shadow: inset 0 0 0 1px var(--hairline); background: var(--input); }
input:hover, select:hover, textarea:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 14%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 65%, transparent); }
input[type="checkbox"], input[type="radio"] { box-shadow: none; }
.segmented { background: var(--tile-2); box-shadow: none; border: 0; border-radius: 10px; }

/* ---------- badges: soft fills only, never an outline ---------- */
.badge, .badge.ok, .badge.bad, .badge.warn, .badge.info, .badge.trial, .badge.quiet, .badge.freeze {
    border: 0; border-radius: 10px; padding: 3px 9px; font-size: 10.5px; letter-spacing: .02em;
}
.badge { background: var(--tile-hover); color: color-mix(in srgb, var(--text) 82%, transparent); }
.badge.ok { background: var(--ok-soft); }
.badge.bad { background: var(--bad-soft); }
.badge.warn { background: var(--accent-soft); }
.badge.info { background: var(--info-soft); }
.badge.quiet { background: transparent; color: var(--muted); padding-left: 0; padding-right: 0; }
.badge .pmark, .badge .prov { width: 13px; height: 14px; }

/* status as a dot and a word (mockup .st) */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.st.ok { color: var(--ok); }
.st.bad { color: var(--bad); }
.st.warn { color: var(--warn); }

/* ---------- tables ---------- */
th { font-size: 10px; letter-spacing: .09em; }
thead th { background: var(--tile); }
tbody tr:hover { background: var(--tile-2); }

/* ---------- people and products ---------- */
.ava { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; background: var(--tile-hover); display: inline-grid; place-items: center;
    font-size: 13px; font-weight: 800; color: #fff; vertical-align: middle; }
.ava.sm { width: 26px; height: 26px; font-size: 11px; }
.ava.lg { width: 64px; height: 64px; font-size: 24px; }
.ava-t0 { background: #8a5a2b; } .ava-t1 { background: #2d6a5a; } .ava-t2 { background: #4b4f9a; }
.ava-t3 { background: #7a3d5c; } .ava-t4 { background: #3d6491; } .ava-t5 { background: #6b6b2e; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person > span { min-width: 0; }
.person b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person small { margin-top: 1px; }
.prov { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }
.provs, .pmarks { display: inline-flex; align-items: center; gap: 5px; }
.pmark { width: 16px; height: 17px; flex: none; display: inline-block; vertical-align: -3px; }
.pmark .pm-d { fill: var(--accent); }

/* ---------- flashes ---------- */
.flash { border-radius: 10px; box-shadow: none; }

@media (max-width: 900px) {
    .sidebar { width: auto; height: auto; flex-direction: row; padding: 10px 14px; }
    .sidebar .brand { height: auto; padding: 0; }
    .sidebar .sidebar-foot { padding: 0; box-shadow: none; }
    .sidebar-foot .who, .sidebar-foot > .ava { display: none; }
    .topbar { margin-left: 0; padding: 0 16px; }
    .shell { margin-left: 0; padding: 20px 16px; }
}

/* account card head: the photo on the left of the name */
.account-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 18px; }
.account-head > .ava.lg { margin-top: 4px; }
.account-head h1 .st { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 700; }
.account-head .badge .prov { width: 14px; height: 14px; }
.prod { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.person small .prov { width: 13px; height: 13px; vertical-align: -2px; }
.signal-person .who.person { gap: 8px; }
.signal-person .who.person b { font-weight: 600; }

/* ---------- no outlined boxes anywhere: the same soft fill instead of a frame ---------- */
.automation-list, .preview-box, .action-group, details.section, .signal, .risk-details, .note, .plan-row, .mod-group,
.recovery-code, .audit-json { border: 0; }
.automation-list { background: var(--tile-2); border-radius: 10px; }
.automation-row { border-top-color: var(--hairline); }
.risk-attempt { border: 0; background: var(--tile-2); }
.warning-box { border: 0; background: var(--accent-soft); }
.danger-box { border: 0; background: var(--bad-soft); }
.signal-more > summary { border: 0; background: var(--tile-2); border-radius: 8px; }
.uc-chip { border: 0; background: var(--tile-2); }
.uc-chip:hover { background: var(--tile-hover); }
.kind-chip input:checked + span { box-shadow: none; }
.choice:has(input:checked) { box-shadow: none; }
.step { border: 0; background: var(--accent-soft); }
.avatar-fallback { border: 0; background: var(--tile-hover); }
.copy-button { border: 0; background: var(--tile-2); border-radius: 5px; }
.copy-button:hover { background: var(--tile-hover); color: var(--text); }
.customer-avatar { border: 0; }
.signal-evidence .ev-block { background: var(--tile-2); }
.person, a.person { color: var(--text); }
a.person:hover { text-decoration: none; }
a.person:hover b { color: var(--accent); }
.person a b { color: var(--text); }
.person a:hover b { color: var(--accent); }
.search-line { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--muted); }
.search-line b { color: var(--text); }
td { padding-top: 10px; padding-bottom: 10px; vertical-align: middle; }
.pc-card { box-shadow: none; background: var(--tile-2); }
.pc-card.current { background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--tile-2); }

/* a panel with nothing to show is one line: the title, «Нет данных», its button on the right — not a tall empty box */
.panel.is-empty { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.panel.is-empty > .panel-head { display: contents; }
.panel.is-empty > .panel-head .eyebrow { display: none; }
.panel.is-empty > .panel-head h2 { margin: 0; }
.panel.is-empty > .panel-head > :not(div) { order: 2; margin-left: auto; }
.panel.is-empty > .empty { order: 1; padding: 0; text-align: left; color: var(--muted); }

/* a form folded into a row: the summary is the button that opens it */
details.section > summary > .fa { color: var(--accent); font-size: 12px; }

/* «Обзор» → «Требует внимания»: one row per thing to look at — icon, what, how many; the row opens the section */
.attention-list { display: grid; gap: 4px; }
.attention-row { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--tile-2); color: var(--text); }
.attention-row:hover { background: var(--tile-hover); text-decoration: none; }
.attention-row > .fa { width: 16px; text-align: center; color: var(--muted); font-size: 12px; }
.attention-row > span:not(.fa) { flex: 1; min-width: 0; }
.attention-row > b { font-size: 15px; font-variant-numeric: tabular-nums; }

/* a rule about the panel, under its heading in plain text (captions in capitals only carry a number or a period) */
.panel-note { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; color: var(--muted); max-width: 760px; }

/* IP and subnet blocks (owner 20.10.2026: a subnet ban refused another player of the same network).
   Never part of a ban by default: an opt-in of the block form that lists who else it hits. */
.badge.net { background: var(--accent-soft); color: var(--warn); }
.net-optin { margin-top: 12px; border-radius: var(--radius-sm); background: var(--tile-2); }
.net-optin > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.net-optin > summary::-webkit-details-marker { display: none; }
.net-optin > summary > .fa { color: var(--warn); font-size: 13px; width: 16px; text-align: center; }
.net-optin[open] > summary { padding-bottom: 6px; }
.net-optin-body { display: grid; gap: 12px; padding: 0 12px 12px; }
.net-warning { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); color: color-mix(in srgb, var(--warn) 40%, var(--text)); line-height: 1.5; }
.net-warning > .fa { margin-top: 3px; color: var(--warn); }
.net-warning b { display: block; color: var(--text); margin-bottom: 2px; }
.net-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.net-choice { display: grid; gap: 8px; align-content: start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--tile-hover); }
.net-confirm { color: var(--warn); font-weight: 600; }
.net-reach { display: grid; gap: 6px; margin-top: 6px; }
.net-reach-head { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12.5px; }
.net-reach-head > .fa { margin-top: 2px; color: var(--bad); font-size: 11px; }
.net-reach.alone .net-reach-head { color: var(--muted); }
.net-reach.alone .net-reach-head > .fa { color: var(--ok); }
.net-reach-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.net-reach-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 5px 9px; border-radius: 7px; background: var(--bad-soft); }
.net-reach-list li small { color: var(--muted); }
td .net-reach { max-width: 520px; }
.net-banner { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); margin-bottom: 12px; }
.net-banner > .fa { color: var(--warn); }
.net-banner > span:not(.fa) { flex: 1; min-width: 0; line-height: 1.5; }
.block-value.net { border-radius: 7px; background: var(--accent-soft); padding: 4px 8px; }

/* ---------- MEDIA mark (Влад, 21.10): a soft pink plate on lists and cards, no outline ---------- */
:root { --media: #f06bb4; }
.media-mark { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 10px; white-space: nowrap; vertical-align: middle;
    background: color-mix(in srgb, var(--media) 20%, transparent); color: color-mix(in srgb, var(--media) 80%, white);
    font-size: 10.5px; font-weight: 800; letter-spacing: .06em; line-height: 1.35; }
.media-mark .fa { font-size: 10px; }
.media-mark small { font-size: 10.5px; font-weight: 600; letter-spacing: 0; color: color-mix(in srgb, var(--text) 78%, transparent); }
.media-mark.pending { background: color-mix(in srgb, var(--media) 11%, transparent); }
.media-mark.ended, .media-mark.tag { background: var(--tile-hover); color: color-mix(in srgb, var(--media) 55%, var(--muted)); }
.media-mark.ended small { color: var(--muted); }
.account-head h1 .media-mark { font-size: 11px; letter-spacing: .06em; text-transform: none; }
.person .media-mark { margin-top: 4px; }

/* «Аккаунты»: «Все / Медиа» and the order */
.list-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.list-filter .segmented a { display: inline-flex; align-items: center; gap: 6px; }
.list-filter .segmented a b { font-weight: 700; color: var(--muted); }
.list-filter .segmented a.active b { color: inherit; }
.list-filter .sort { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-left: auto; }
.list-filter .sort .segmented { flex-wrap: wrap; }
@media (max-width: 520px) { .list-filter .sort { flex-wrap: wrap; margin-left: 0; max-width: 100%; } }
.media-strip { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.media-strip b { color: var(--text); }

/* «Администраторы»: права каждому человеку (утверждено 27.10, «Таблица разделов»). */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 650; }
.back-link:hover { color: var(--text); text-decoration: none; }
.staff-head .actions { flex-wrap: wrap; justify-content: flex-end; }
.staff-head .actions form { margin: 0; }
.staff-table td small { display: block; color: var(--muted); font-size: 11.5px; }
.staff-table tr.row-link:hover td { background: var(--tile-2); }
.staff-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.staff-side { display: grid; gap: 14px; }
.staff-side .panel, .staff-grid > .panel { margin: 0; }
.staff-rights { width: 100%; }
.staff-rights tr.group td { padding-top: 16px; border-bottom: 0; }
.staff-rights tr:first-child.group td { padding-top: 4px; }
.staff-level label { position: relative; display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 4px; color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.staff-level label:hover { color: var(--text); }
.staff-level input { position: absolute; opacity: 0; width: 0; height: 0; }
.staff-level label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.staff-level label:has(input:checked) { background: var(--tile-2); color: var(--text); }
.staff-level label:has(input[value="read"]:checked) { background: var(--accent-soft); color: var(--accent); }
.staff-level label:has(input[value="act"]:checked) { background: var(--ok-soft); color: var(--ok); }
.staff-level.is-locked { opacity: .45; pointer-events: none; }
.staff-sign { display: flex; }
.staff-sign button { flex: 1; }
.staff-sign button:disabled { opacity: .45; cursor: default; }
.staff-side details summary { cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 650; }
.mt-6 { margin-top: 6px; }
.mt-12 { margin-top: 12px; }
@media (max-width: 1100px) { .staff-grid { grid-template-columns: minmax(0, 1fr); } }

/* «Аудит»: лента по дням (утверждено 27.10, «Лента по дням»). */
.audit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.audit-bar input[name="search"] { width: 260px; }
.audit-count { margin-left: auto; font-size: 12px; }
.audit-day { margin: 18px 0 4px; }
.audit-day:first-child { margin-top: 0; }
.audit-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.audit-item:last-child { border-bottom: 0; }
.audit-kind { width: 26px; height: 26px; flex: none; display: inline-grid; place-items: center; border-radius: 7px; font-size: 11px; background: var(--tile-2); color: var(--muted); }
.audit-kind.k-act { background: var(--accent-soft); color: var(--accent); }
.audit-kind.k-login { background: var(--ok-soft); color: var(--ok); }
.audit-kind.warn { background: var(--bad-soft); color: var(--bad); }
.audit-time { width: 44px; flex: none; color: var(--muted); }
.audit-text { flex: 1; min-width: 0; }
.audit-text > a { margin-right: 4px; }
.audit-text small { display: block; color: var(--muted); font-size: 11.5px; }
.audit-text small.mono { overflow-wrap: anywhere; }
.audit-item.is-undone { opacity: .55; }
.audit-item.is-undone b { text-decoration: line-through; }
.audit-undo { flex: none; position: relative; }
.audit-undo summary { list-style: none; }
.audit-undo summary::-webkit-details-marker { display: none; }
.audit-undo[open] form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 320px; padding: 12px; border-radius: var(--radius-sm); background: var(--panel, var(--tile-2)); border: 1px solid var(--line-strong); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
@media (max-width: 760px) { .audit-bar input[name="search"] { width: 100%; } .audit-count { margin-left: 0; } }
.audit-bar select { width: auto; min-width: 0; max-width: 260px; }
.audit-more { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 12px 0 4px; font-size: 12.5px; }
.audit-bar select.audit-what { max-width: 300px; }

/* Окно с формой («Добавить администратора», утверждено 27.10 «Одно окно»). */
.form-dialog { width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; color: var(--text); background: color-mix(in srgb, var(--panel) 96%, #000); box-shadow: var(--edge), 0 24px 60px rgba(0, 0, 0, .55); }
.form-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.form-dialog form { display: grid; gap: 12px; padding: 20px 22px 18px; }
.form-dialog h2 { margin: 0; font-size: 17px; }
.form-dialog p { margin: 0; }
.form-dialog label { display: grid; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form-dialog label input, .form-dialog label select { text-transform: none; letter-spacing: 0; font-weight: 500; }
.form-dialog .dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
/* «Удалить по запросу» (152-ФЗ, утверждён вариант 1 «Кнопка в шапке и окно»): шире, два списка рядом. */
.erase-dialog { width: min(760px, calc(100vw - 32px)); max-height: 92vh; overflow: auto; }
.erase-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.erase-lists > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.erase-lists b { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.erase-lists ul { margin: 6px 0 0; padding: 0; list-style: none; }
.erase-lists li { padding: 5px 0; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.erase-lists li:last-child { border-bottom: 0; }
.erase-lists li small { display: block; color: var(--muted); font-size: 11px; }
@media (max-width: 640px) { .erase-lists { grid-template-columns: 1fr; } }
.code-cells { display: flex; gap: 8px; }
.code-cells input { width: 44px; height: 48px; padding: 0; text-align: center; font-size: 20px; font-weight: 700; }

/* Карточка аккаунта → «Связь» → «Написать в бот» (утверждено 27.10, «Таблица площадок»). */
.channel-table td small { display: block; color: var(--muted); font-size: 11.5px; }
.channel-table tbody tr:hover { background: transparent; }
.channel-table .channel-auto td { color: var(--muted); }
.channel-pick { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.channel-pick span { font-size: 11.5px; color: var(--ok); min-width: 30px; text-align: right; }
.channel-pick input { accent-color: var(--accent); width: 16px; height: 16px; }

/* «Рассылки» → «Куда» плитками с охватом (утверждено 27.10, «Плитки с охватом»). */
.reach-tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.reach-tile { position: relative; display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--input); cursor: pointer; }
.reach-tile input { position: absolute; opacity: 0; width: 0; height: 0; }
.reach-tile:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.reach-tile:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.reach-tile.off { opacity: .45; cursor: default; }
.reach-tile small { color: var(--muted); font-size: 11.5px; }
.reach-icon { display: inline-flex; height: 18px; align-items: center; }
.reach-line { align-self: center; font-size: 12.5px; }
@media (max-width: 900px) { .reach-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* «Боты ВК и Telegram» (утверждено 27.10, «Две карточки и правило»). */
.bots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.bots-card { margin: 0; display: grid; align-content: start; gap: 12px; }
.bots-card .panel-head { margin: 0; }
.bots-title { display: inline-flex; align-items: center; gap: 8px; }
.bots-kv { grid-template-columns: 170px 1fr; margin: 0; }
.bots-kv dt, .bots-kv dd { padding: 7px 0; }
.bots-kv dt:first-of-type, .bots-kv dt:first-of-type + dd { border-top: 0; }
.bots-kv dd { font-variant-numeric: tabular-nums; }
.bots-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-wrap + .bots-note { margin-top: 30px; }
.bots-line { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.bots-line:first-of-type { border-top: 0; }
.bots-line small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.bots-icon { display: inline-flex; width: 22px; justify-content: center; color: var(--muted); flex: none; }
.bots-meter { display: grid; grid-template-columns: 140px 1fr 60px; gap: 12px; align-items: center; font-size: 13px; }
.bots-meter > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.bots-meter b { text-align: right; font-variant-numeric: tabular-nums; }
.bots-meter meter.bar { width: 100%; margin: 0; }
.bots-note { margin: 0; font-size: 12.5px; }
.bots-table td.num, .bots-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bots-table th.num svg, .bots-table th.num img { vertical-align: -2px; }
@media (max-width: 900px) { .bots-grid { grid-template-columns: 1fr; } .bots-kv { grid-template-columns: 1fr; } .bots-kv dd { border-top: 0; padding-top: 0; } }

/* «Промокоды и MEDIA» → «Медиа-партнёры» (утверждено 27.10, «Таблица партнёров»). */
.partners-table td small { display: block; color: var(--muted); font-size: 11.5px; }
.partners-table td.num, .partners-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.partner-bot { display: inline-flex; align-items: center; gap: 6px; }
.partner-code { white-space: nowrap; line-height: 1.7; }
.partner-code.over a { color: var(--muted); text-decoration: line-through; }

/* «Состояние системы» на «Обзоре» (Влад 28.10, пункт 6): пять плиток в ряд, точка — уровень. */
.health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.health-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--tile-2); color: var(--text); }
a.health-item[href]:hover { background: var(--tile-hover); text-decoration: none; }
.health-item > span:last-child { display: grid; gap: 3px; min-width: 0; }
.health-item b { font-size: 18px; line-height: 1.2; }
.health-item small { overflow-wrap: anywhere; }
.health-dot { flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--muted); }
.health-item.ok .health-dot { background: var(--ok); }
.health-item.warn .health-dot { background: var(--warn); }
.health-item.bad .health-dot { background: var(--bad); }
.health-item.bad b { color: var(--bad); }
@media (max-width: 1100px) { .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .health-grid { grid-template-columns: minmax(0, 1fr); } }

/* «Риски» таблицей (Влад 28.10, пункт 9): строка на сигнал, по нажатию — вся карточка с уликами и кнопками. */
.signal-list.cards .signal-line { display: none; }
.signal-list.dense { gap: 0; border-radius: var(--radius-sm); background: var(--tile-2); overflow: hidden; }
.signal-list.dense .signal-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; border-top: 1px solid var(--hairline); }
.signal-list.dense .signal-row:first-child { border-top: 0; }
.signal-list.dense .signal-row.sev-high { box-shadow: inset 3px 0 0 var(--bad); }
.signal-list.dense .signal-row > .signal-check { margin: 14px 0 0 11px; }
.signal-line { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1.5fr) 82px; gap: 12px; align-items: start; min-height: 40px; padding: 10px 14px 10px 4px; font-size: 12.5px; list-style: none; cursor: pointer; }
.signal-line::-webkit-details-marker { display: none; }
.signal-line > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; min-height: 24px; }
.signal-line .sl-title { position: relative; padding-left: 18px; }
.signal-line .sl-title b { font-size: 13px; font-weight: 650; line-height: 18px; }
/* стрелка — своей колонкой на высоте чекбокса и первой строки названия, не в тексте */
.signal-line .sl-title::before { content: "▸"; position: absolute; left: 0; top: 0; width: 14px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted); transition: transform .12s; }
.signal-fold[open] > .signal-line .sl-title::before { transform: rotate(90deg); }
.signal-list.dense .signal-head .sl-title::before { content: none; }
.signal-line .sl-who { flex-wrap: nowrap; }
.signal-line .sl-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.signal-line .sl-clue { color: var(--muted); overflow-wrap: anywhere; }
.signal-line .sl-done .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.signal-line .sl-at { text-align: right; white-space: nowrap; }
.signal-line:hover { background: var(--tile-hover); }
.signal-fold[open] > .signal-line { background: color-mix(in srgb, var(--text) 4%, transparent); }
.signal-row.reviewed .signal-line { opacity: .6; }
.signal-list.dense .signal-fold > .signal { margin: 0 12px 12px 4px; }
.signal-list.dense .signal-head .signal-line { min-height: 32px; cursor: default; color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
.signal-list.dense .signal-head .signal-line:hover { background: none; }
@media (max-width: 900px) {
    .signal-line { grid-template-columns: minmax(0, 1fr) auto; }
    .signal-line .sl-who, .signal-line .sl-clue, .signal-line .sl-done { grid-column: 1 / -1; }
    .signal-line .sl-at { grid-row: 1; grid-column: 2; }
    .signal-list.dense .signal-head { display: none; }
}
.signal-list.dense .signal-fold > .signal .signal-title { display: none; }

/* «Безопасность» карточки аккаунта (Влад 28.10, пункт 11): все блоки человека и быстрые блоки. */
.person-blocks tr.is-lifted td { opacity: .55; }
.person-blocks td small { display: block; }
.person-block-form .action-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; }
.person-block-form .action-foot .button { margin-left: auto; }
form.inline-reason { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.person-ban-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 0; border-top: 1px solid var(--hairline); }
.person-ban-row:first-of-type { border-top: 0; }

/* «Промокоды» (Влад 28.10, пункт 10): «Отправить код партнёру» — одной строкой во всю ширину формы. */
.action-fields label.check-row.wide { grid-column: 1 / -1; flex-wrap: nowrap; justify-content: flex-start; }
.action-fields label.check-row.wide > span { min-width: 0; }
.action-fields label.check-row input[type="checkbox"] { flex: none; width: 16px; }

/* «Поддержка» (Влад 28.10, пункт 4): слева кто писал, справа переписка и ответ. */
.support-layout { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }
.support-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.support-people a { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.support-people a:hover { background: var(--tile-hover); text-decoration: none; }
.support-people li.active a { background: var(--accent-soft); }
.support-people .sp-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.support-people .sp-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.support-people .sp-at { margin-left: auto; color: var(--muted); white-space: nowrap; font-size: 11.5px; }
.support-people .sp-text { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.support-messages { list-style: none; margin: 4px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; }
.support-messages li { max-width: min(560px, 82%); padding: 9px 12px; border-radius: 12px; background: var(--tile-2); }
.support-messages li.out { align-self: flex-end; background: var(--accent-soft); }
.support-messages p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.support-messages small { color: var(--muted); font-size: 11.5px; }
.support-reply { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.support-reply textarea { width: 100%; resize: vertical; }
.support-reply .actions { justify-content: space-between; }
.support-close { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
@media (max-width: 900px) {
    .support-layout { grid-template-columns: minmax(0, 1fr); }
    .support-layout.has-thread .support-list { order: 2; }
}
.support-people .sp-ch { flex: none; padding: 1px 5px; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .04em; background: var(--tile-hover); color: var(--muted); }
.support-people .sp-ch.vk { color: #6FA3E8; }
.support-people .sp-ch.tg { color: #5BB8E8; }

/* «Глазами помощника» (Влад 29.10, вариант 1 «Полоса сверху») */
.viewas-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 16px; border-radius: 10px; background: color-mix(in srgb, var(--accent, #f0b44a) 14%, transparent); font-size: 13px; }
.viewas-strip .grow { flex: 1; min-width: 220px; }
.viewas-strip > .fa, .viewas-strip > svg { color: var(--accent, #f0b44a); }

/* «Работа помощника» (Влад 29.10, вариант 1 «Сводка и лента») */
.work-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-time { width: auto; min-width: 44px; white-space: nowrap; }
.work-notes { display: grid; gap: 8px; margin-bottom: 18px; }
.work-note { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; background: var(--tile-2, var(--input)); }
.work-note > span:nth-child(2) { flex: 1; min-width: 0; }
.work-note b { display: block; }
.work-note small { display: block; margin-top: 2px; color: var(--muted); overflow-wrap: anywhere; }
.work-note > .fa { width: 18px; text-align: center; }
.work-note.bad { background: var(--bad-soft); } .work-note.bad > .fa { color: var(--bad); }
.work-note.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); } .work-note.warn > .fa { color: var(--warn); }
.work-note.ok > .fa { color: var(--ok); }
.work-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.work-side { display: grid; gap: 16px; }
.work-side .panel { margin: 0; }
.work-side .bots-meter { grid-template-columns: minmax(0, 1fr) 90px 36px; margin-top: 8px; }
.work-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 90px; margin-top: 10px; }
.work-hours i { display: block; height: 3px; border-radius: 3px 3px 0 0; background: var(--hairline, var(--line-strong)); }
.work-hours i:not(.l0) { background: var(--accent); }
.work-hours .l1 { height: 10%; } .work-hours .l2 { height: 20%; } .work-hours .l3 { height: 30%; } .work-hours .l4 { height: 40%; }
.work-hours .l5 { height: 50%; } .work-hours .l6 { height: 60%; } .work-hours .l7 { height: 70%; } .work-hours .l8 { height: 80%; }
.work-hours .l9 { height: 90%; } .work-hours .l10 { height: 100%; }
.work-hours-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } .work-note { flex-wrap: wrap; } .work-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* «Заказы» → «Boosty · похожий ник» (Влад 04.11, вариант 2 «Блок над заказами»): ник в боте ⇄ ник на Boosty, отличия подсвечены */
.boosty-review .panel-head { align-items: baseline; }
.boosty-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.boosty-line:last-child { border-bottom: 0; }
.boosty-main { flex: 1; min-width: 0; }
.boosty-main small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.boosty-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.boosty-nick { padding: 2px 7px; border-radius: 6px; background: var(--tile-hover); color: var(--text); font-size: 12.5px; word-break: normal; white-space: nowrap; }
.boosty-nick mark { padding: 0 1px; border-radius: 3px; background: var(--accent-soft); color: var(--accent); }
.boosty-note { max-width: 260px; font-size: 12px; }
.boosty-line form { margin: 0; }
.boosty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; }
.boosty-cand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.boosty-cand-row .boosty-cand { margin-top: 0; }
.boosty-sale-action { text-align: right; white-space: nowrap; }
.boosty-sale-action form { margin: 0; display: inline-block; }

/* Плашка блока аккаунта над карточкой (Влад 05.11, макет admin-account-block, вариант 1) */
.account-block-plaque { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 12px 16px; border-radius: 10px; background: var(--bad-soft); }
.account-block-plaque > .fa { margin-top: 3px; color: var(--bad); font-size: 13px; }
.account-block-text { display: grid; flex: 1; min-width: 0; gap: 2px; font-size: 12.5px; line-height: 1.5; }
.account-block-text b { color: var(--text); font-size: 13px; }
.account-block-text small { color: var(--muted); font-size: 12px; }
.account-block-text small a { color: var(--accent); font-weight: 700; }
.account-block-plaque form { flex: none; margin: 0; }

/* Переход «Прыжок» после входа (Влад 10.11, вариант 4; admin-arrive.js): админка появляется из глубины, меню и верх — чуть позже. */
.is-arrive .shell { animation: adm-arrive .62s var(--adm-ease, cubic-bezier(.2, .7, .2, 1)) both; }
.is-arrive .sidebar, .is-arrive .topbar { animation: adm-arrive-fade .5s ease .12s both; }
@keyframes adm-arrive { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes adm-arrive-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .is-arrive .shell, .is-arrive .sidebar, .is-arrive .topbar { animation: none; } }
/* «В поддержке» (Влад 11.11): роль, имя и отдел администратора с предпросмотром сообщений бота. */
.staff-support .action-fields .wide, .staff-support .sign-preview, .staff-support .action-fields > .button { grid-column: 1 / -1; }
.staff-support .action-fields > .button { justify-self: start; }
.sign-preview { display: grid; gap: 5px; padding: 12px; border-radius: 8px; background: var(--tile-2); }
.sign-cap { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 650; }
.sign-cap:first-child { margin-top: 0; }
.sign-bub { max-width: 100%; padding: 9px 12px; border-radius: 4px 12px 12px 12px; background: var(--panel); font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.sign-bub b { font-weight: 700; }

/* «Написать в бот» в карточке аккаунта: подпись сотрудника и предпросмотр (Влад 12.11, admin-account-sign вариант 1) */
.action-fields > .dm-sign-line, .action-fields > .dm-pv { flex: 1 1 100%; }
.dm-sign-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 12px; border-radius: 10px; background: var(--tile-2); font-size: 13px; }
.dm-sign-line b { color: var(--accent); }
.dm-sign-line .muted { font-size: 12px; }
.dm-pv { display: grid; gap: 6px; min-width: 0; }
.dm-cap { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.dm-row { display: flex; gap: 8px; align-items: flex-end; min-width: 0; }
.dm-av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tile-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.dm-av svg { width: 16px; height: 17px; }
.dm-av svg path { fill: var(--accent); }
.dm-bub { min-width: 0; max-width: 460px; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--tile-2); font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.dm-bub b { font-weight: 700; }

/* Суммы в плитках «Обзора» и «Заказов» на ноутбуке (Влад 12.11, admin-laptop вариант 1 «Два ряда плиток»): число никогда
   не рвётся; плитка не уже 200 px — на 1280 встают 4 + 3, на большом мониторе всё в один ряд. Телефон — две колонки, как был. */
.stats.wide-tiles b { white-space: nowrap; overflow-wrap: normal; }
@media (min-width: 641px) { .stats.wide-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }

/* Игра сессии и дня — HASSLE / RADMIR со знаком (аудит «Забыто» 13.11, п. 33) */
.game-mark { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; }
.game-mark img { width: 16px; height: 16px; object-fit: contain; flex: none; }

/* «Администраторы» → права человека (Влад 17.11, вариант 1 «Функции под своим разделом») */
.staff-tpl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 0 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.staff-tpl .chip-button { border: 1px solid var(--line); background: var(--panel-2, rgba(255,255,255,.04)); color: var(--text); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.staff-tpl .chip-button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.staff-tpl-sp { flex: 1; }
.staff-copy { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.staff-copy select { min-width: 140px; }
.staff-group { padding: 16px 0 4px; }
.staff-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.staff-tw { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; width: 22px; height: 22px; transition: transform .15s; }
.staff-tw[aria-expanded="true"] { transform: rotate(90deg); }
.staff-tw.is-empty { visibility: hidden; }
.staff-nm { cursor: pointer; }
.staff-nm small { color: var(--muted); margin-left: 8px; font-size: 11.5px; }
.staff-fns { grid-column: 2 / 4; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; padding: 2px 0 6px; }
.staff-fns[hidden] { display: none; }
.staff-fn { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--panel-2, rgba(255,255,255,.04)); cursor: pointer; }
.staff-fn b { font-size: 12.5px; font-weight: 650; }
.staff-fn small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; line-height: 1.35; }
.staff-fn .staff-need { display: none; color: var(--warn); }
.staff-fn.is-idle { opacity: .55; }
.staff-fn.is-idle .staff-need { display: block; }
.staff-fn.is-owner { cursor: default; opacity: .6; }
.staff-fn.is-owner .fa { color: var(--bad); margin-top: 2px; }
.staff-fn.is-owner small { color: var(--bad); }
.staff-save { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px -16px -16px; padding: 10px 16px;
    background: var(--panel, #14161a); border-top: 1px solid var(--line-strong); box-shadow: 0 -10px 24px rgba(0, 0, 0, .35); }
.staff-save[hidden] { display: none; }
.staff-changes { flex: 1 1 260px; min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.staff-changes b { color: var(--text); font-weight: 650; }
.code-cells.compact input { width: 30px; height: 32px; }
@media (max-width: 720px) { .staff-row { grid-template-columns: 22px minmax(0, 1fr); } .staff-row .staff-level { grid-column: 2; } .staff-fns { grid-column: 1 / 3; } }

/* Keep the original initial if a provider has no photo or an old photo URL expires. */
.ava { position: relative; overflow: hidden; }
.ava > .ava-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

/* Offline equirectangular SVG world map in Accounts/Details (CSP-safe: no external tiles or inline styles) */
.geo-map-panel .panel-head { align-items: center; }
.geo-map-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.geo-map-wrap { display: grid; gap: 10px; }
.geo-map-svg { display: block; width: 100%; max-height: 220px; border-radius: 10px; background: radial-gradient(ellipse at 55% 35%, color-mix(in srgb, var(--accent) 8%, var(--tile-2, #12151c)) 0%, var(--tile-2, #0d1016) 75%); border: 1px solid var(--line); }
.geo-grid line { stroke: color-mix(in srgb, var(--text) 7%, transparent); stroke-width: .45; }
.geo-grid line.geo-eq { stroke: color-mix(in srgb, var(--text) 13%, transparent); stroke-dasharray: 2 2; }
.geo-land path { fill: color-mix(in srgb, var(--text) 15%, var(--tile, #1b202a)); stroke: color-mix(in srgb, var(--text) 24%, transparent); stroke-width: .45; stroke-linejoin: round; }
.geo-dot { fill: var(--accent, #d1a65a); stroke: #0c0e13; stroke-width: .9; }
.geo-halo { fill: color-mix(in srgb, var(--accent, #d1a65a) 24%, transparent); }
.geo-pulse { fill: none; stroke: var(--accent, #d1a65a); stroke-width: 1.1; transform-box: fill-box; transform-origin: center; animation: geo-pin-pulse 2.2s ease-out infinite; }
.geo-dot-old { fill: color-mix(in srgb, var(--info, #5ca7ff) 85%, transparent); stroke: #0c0e13; stroke-width: .6; opacity: .82; }
.geo-pin-list { display: flex; flex-wrap: wrap; gap: 6px; }
@keyframes geo-pin-pulse { 0% { transform: scale(.7); opacity: .95; } 100% { transform: scale(2.8); opacity: 0; } }
