/* ======================================================================
 * Altairika · Admin skin (lightweight, strict)
 * Reuses brand tokens from frontend altairika.css but stays sober:
 * no Asgard hero titles, dense tables, monospace meta labels.
 * ====================================================================== */

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/altairika/Onest-VariableFont_wght.ttf") format("truetype-variations");
}

:root {
    /* Мелкие подписи капсом (раньше — шрифт Tiny5, заменён на Onest) */
    --font-label: "Onest", system-ui, -apple-system, sans-serif;

    --violet: #8418FE;
    --violet-soft: rgba(132, 24, 254, 0.08);
    --lilac: #AD00D8;
    --yellow: #FFA502;
    --crimson: #FF2D59;
    --orange: #FF6D00;
    --teal: #00C2A8;
    --ink: #181614;
    --ink-80: rgba(24, 22, 20, 0.80);
    --ink-60: rgba(24, 22, 20, 0.60);
    --ink-40: rgba(24, 22, 20, 0.40);
    --ink-15: rgba(24, 22, 20, 0.15);
    --ink-08: rgba(24, 22, 20, 0.08);
    --paper: #FAFAFA;
    --paper-2: #F2F3F5;
    --white: #FFFFFF;
}

/* ---------- Base typography ---------- */
body {
    font-family: "Onest", system-ui, sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
}

a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--lilac); text-decoration: underline; }

h1, h2, h3, h4, h5 {
    font-family: "Onest", sans-serif;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
}

h1 { font-size: 22px; }
h2 { font-size: 19px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
h5 { font-size: 14px; }

code, pre, .text-monospace, .font-monospace {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12.5px;
}

.text-muted { color: var(--ink-60) !important; }

/* ---------- Top header (atk-admin-header) ---------- */
.atk-admin-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--white);
    border-bottom: 1px solid var(--ink);
}

.atk-admin-header__inner {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.atk-admin-header__panel {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}

.atk-admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}
.atk-admin-brand:hover { text-decoration: none; }

.atk-admin-brand__logo {
    height: 22px;
    width: auto;
    display: block;
}

.atk-admin-brand__sep {
    width: 1px;
    height: 18px;
    background: var(--ink-15);
}

.atk-admin-brand__name {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-60);
}

.atk-admin-brand__name b { color: var(--ink); font-weight: 400; margin-left: 4px; }

.atk-admin-nav {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.atk-admin-nav .nav-link,
.atk-admin-nav .dropdown-toggle {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ink-60);
    padding: 8px 12px;
    border: 1px solid transparent;
    background: transparent;
    line-height: 1;
    border-radius: 0;
}

.atk-admin-nav .nav-link:hover,
.atk-admin-nav .dropdown-toggle:hover {
    color: var(--ink);
    border-color: var(--ink-15);
    background: var(--paper-2);
}

.atk-admin-nav .nav-item.active .nav-link,
.atk-admin-nav .nav-item.active > .dropdown-toggle,
.atk-admin-nav .nav-item.show > .dropdown-toggle {
    color: var(--violet);
    border-color: var(--violet);
    background: var(--violet-soft);
}

/* Bootstrap dropdown menu skin */
.atk-admin-nav .dropdown-menu {
    border: 1px solid var(--ink);
    border-radius: 0;
    padding: 4px 0;
    box-shadow: 0 8px 24px rgba(24, 22, 20, 0.08);
    margin-top: 0;
    background: var(--white);
    min-width: 180px;
}

.atk-admin-nav .dropdown-item {
    font-family: "Onest", sans-serif;
    font-size: 13px;
    color: var(--ink-80);
    padding: 7px 14px;
}

.atk-admin-nav .dropdown-item:hover,
.atk-admin-nav .dropdown-item:focus {
    background: var(--violet-soft);
    color: var(--ink);
}

.atk-admin-header__right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

.atk-admin-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-60);
    padding: 5px 10px 4px;
    border: 1px solid var(--ink-15);
    line-height: 1;
}
.atk-admin-user b {
    color: var(--ink);
    font-weight: 400;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.atk-admin-user .dot {
    width: 5px; height: 5px;
    background: var(--violet);
    border-radius: 50%;
    display: inline-block;
}

.atk-admin-lang {
    display: inline-flex;
    border: 1px solid var(--ink-15);
}
.atk-admin-lang a {
    display: inline-block;
    padding: 5px 9px;
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.10em;
    color: var(--ink-60);
    text-decoration: none;
    line-height: 1;
}
.atk-admin-lang a + a { border-left: 1px solid var(--ink-15); }
.atk-admin-lang a.is-active { background: var(--ink); color: var(--white); }
.atk-admin-lang a:hover { color: var(--ink); text-decoration: none; }
.atk-admin-lang a.is-active:hover { color: var(--white); }

.atk-admin-logout {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 6px 12px;
    border: 1px solid var(--ink);
    background: var(--white);
    line-height: 1;
}
.atk-admin-logout:hover { background: var(--ink); color: var(--white); }

/* ---------- Burger ---------- */
.atk-admin-burger {
    display: none;
    width: 40px; height: 40px;
    padding: 0;
    border: 1px solid var(--ink-15);
    background: var(--white);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.atk-admin-burger span {
    display: block; width: 18px; height: 2px;
    background: var(--ink);
    transition: transform .25s, opacity .15s;
}
.atk-admin-header.is-open .atk-admin-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.atk-admin-header.is-open .atk-admin-burger span:nth-child(2) { opacity: 0; }
.atk-admin-header.is-open .atk-admin-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.atk-admin-header__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(24, 22, 20, 0.45);
    z-index: 1029;
    opacity: 0;
    transition: opacity .25s;
}
.atk-admin-header.is-open .atk-admin-header__backdrop { display: block; opacity: 1; }

@media (max-width: 900px) {
    .atk-admin-header__inner {
        justify-content: space-between;
        padding: 10px 14px;
    }
    .atk-admin-brand__sep, .atk-admin-brand__name { display: none; }
    .atk-admin-burger { display: flex; }

    .atk-admin-header__panel {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: min(320px, 88vw);
        background: var(--paper);
        border-left: 1px solid var(--ink);
        padding: 70px 20px 22px;
        z-index: 1031;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .26s ease;
        flex-direction: column;
        justify-content: flex-start;
        gap: 14px;
        box-shadow: -16px 0 36px rgba(24, 22, 20, 0.12);
    }
    .atk-admin-header.is-open .atk-admin-header__panel { transform: translateX(0); }

    .atk-admin-header__panel .atk-admin-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--ink-15);
    }
    .atk-admin-header__panel .atk-admin-nav .nav-link,
    .atk-admin-header__panel .atk-admin-nav .dropdown-toggle {
        text-align: left;
        font-size: 12px;
        padding: 10px 12px;
    }

    .atk-admin-header__panel .atk-admin-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        inset: auto !important;
        float: none !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        border: none;
        border-left: 1px solid var(--ink-15);
        border-radius: 0;
        margin: 2px 0 6px 12px !important;
        padding: 2px 0;
        box-shadow: none;
        background: transparent;
    }
    .atk-admin-header__panel .atk-admin-nav .dropdown-menu:not(.show) { display: none !important; }
    .atk-admin-header__panel .atk-admin-nav .dropdown-menu.show { display: block !important; }

    .atk-admin-header__panel .atk-admin-header__right {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .atk-admin-header__panel .atk-admin-user b { max-width: none; }
    .atk-admin-header__panel .atk-admin-logout { width: 100%; text-align: center; }

    body.atk-admin-no-scroll { overflow: hidden; }
}

/* ---------- Content layout ---------- */
.atk-admin-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 22px 24px 40px;
}

@media (max-width: 600px) { .atk-admin-page { padding: 14px; } }

/* CRUD page wrapper — every direct child div (.scenario-index, .user-create, etc.)
   gets a consistent vertical rhythm. */
.atk-admin-page > div {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.atk-admin-page > div > h1 {
    margin: 0;
    font-family: "Onest", sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.15;
    color: var(--ink);
}

.atk-admin-page > div > h1 + p {
    margin: -6px 0 0;
}

.atk-admin-page > div > p {
    margin: 0;
}

/* Top action toolbar — any <p> containing buttons becomes a bordered card with proper spacing. */
.atk-admin-page > div > p:has(> .btn),
.atk-admin-page > div > p:has(> a.btn) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--ink-15);
    border-left: 3px solid var(--violet);
    margin: 0;
}

.atk-admin-page > div > p:has(> .btn) > .btn,
.atk-admin-page > div > p:has(> a.btn) > .btn {
    margin: 0;
}

/* Filter forms above the table (Pjax search, "show all" checkbox, etc.).
   Catches both bare and Pjax-wrapped forms (Pjax inserts a [data-pjax-container] div). */
.atk-admin-page > div > form,
.atk-admin-page > div > .form-inline,
.atk-admin-page > div > [data-pjax-container] > form {
    margin: 0;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--ink-15);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Forms with internal .row layout (api-logs, web-logs) — block layout, not flex */
.atk-admin-page > div > form.atk-admin-filter-form,
.atk-admin-page > div > [data-pjax-container] > form.atk-admin-filter-form {
    display: block;
    padding: 16px 18px;
}

/* Log container (api-logs / web-logs output) */
.log-container {
    margin: 14px 0 0;
    background: var(--white);
    border: 1px solid var(--ink-15);
    padding: 14px 18px;
}

.log-container-title {
    font-family: "Onest", sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--ink);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ink-15);
}

.log-container-body {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12.5px;
    color: var(--ink-80);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 60vh;
    overflow-y: auto;
}

.atk-admin-page > div > form > div,
.atk-admin-page > div > form > label,
.atk-admin-page > div > [data-pjax-container] > form > div,
.atk-admin-page > div > [data-pjax-container] > form > label {
    margin-bottom: 0;
}

/* Wrap any free-standing label+input (Yii's Html::checkbox renders <label><input>...</label>) */
.atk-admin-page > div > form > label,
.atk-admin-page > div > [data-pjax-container] > form > label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Onest", sans-serif;
    font-size: 13px;
    color: var(--ink-80);
    cursor: pointer;
    margin: 0;
}

/* Pjax wrapper itself — keep the column rhythm of the entity wrapper */
.atk-admin-page > div > [data-pjax-container] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Make wrap-element of GridView fill the page width */
.atk-admin-page > div > .grid-view,
.atk-admin-page > div > div > .grid-view {
    margin: 0;
}

/* ---------- Buttons (overrides Bootstrap) ---------- */
.btn {
    font-family: "Onest", sans-serif;
    font-size: 13px;
    font-weight: 500;
    border-radius: 0;
    padding: 7px 14px;
    border-width: 1px;
    box-shadow: none !important;
    line-height: 1.4;
}

.btn:focus { outline: none; box-shadow: 0 0 0 3px var(--violet-soft) !important; }

.btn-primary {
    background: var(--violet);
    border-color: var(--violet);
    color: var(--white);
}
.btn-primary:hover, .btn-primary:active {
    background: var(--lilac);
    border-color: var(--lilac);
    color: var(--white);
}

.btn-success {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}
.btn-success:hover, .btn-success:active {
    background: #009f8a;
    border-color: #009f8a;
    color: var(--white);
}

.btn-danger {
    background: var(--crimson);
    border-color: var(--crimson);
    color: var(--white);
}
.btn-danger:hover, .btn-danger:active {
    background: #d92447;
    border-color: #d92447;
    color: var(--white);
}

.btn-warning {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
}
.btn-warning:hover, .btn-warning:active {
    background: #ff8d00;
    border-color: #ff8d00;
    color: var(--ink);
}

.btn-secondary, .btn-light {
    background: var(--white);
    border-color: var(--ink-15);
    color: var(--ink);
}
.btn-secondary:hover, .btn-light:hover {
    background: var(--paper-2);
    border-color: var(--ink);
    color: var(--ink);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--violet);
    color: var(--violet);
}
.btn-outline-primary:hover {
    background: var(--violet);
    color: var(--white);
}

.btn-outline-secondary, .btn-outline-light {
    background: transparent;
    border-color: var(--ink-15);
    color: var(--ink-60);
}
.btn-outline-secondary:hover, .btn-outline-light:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 10px 18px; font-size: 14px; }

/* ---------- Forms ---------- */
.form-label {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-60);
    font-weight: 400;
    margin-bottom: 4px;
}

.form-control, .form-select, select {
    font-family: "Onest", sans-serif;
    font-size: 13px;
    border-radius: 0;
    border: 1px solid var(--ink-15);
    background: var(--white);
    color: var(--ink);
    padding: 7px 10px;
    box-shadow: none !important;
}

.form-control:focus, .form-select:focus, select:focus {
    border-color: var(--violet);
    outline: none;
    box-shadow: 0 0 0 3px var(--violet-soft) !important;
}

.form-control::placeholder { color: var(--ink-40); }

/* Single-value <select> — custom chevron, no native arrow */
select:not([multiple]),
select.form-control:not([multiple]),
select.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23181614' stroke-width='1.5'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
    cursor: pointer;
}

/* Multi-select — list-box look */
select[multiple],
select.form-control[multiple] {
    background-image: none;
    padding: 6px 8px;
    min-height: 200px;
    cursor: default;
    line-height: 1.4;
}

select[multiple] option,
select option {
    padding: 6px 10px;
    font-family: "Onest", sans-serif;
    font-size: 13px;
    color: var(--ink-80);
    background: var(--white);
}

select[multiple] option:checked {
    background: var(--violet) linear-gradient(0deg, var(--violet), var(--violet));
    color: var(--white);
}

select[multiple] option:hover {
    background: var(--violet-soft);
    color: var(--ink);
}

select[multiple] option:checked:hover {
    background: var(--lilac);
    color: var(--white);
}

.form-control.is-invalid, .was-validated .form-control:invalid {
    border-color: var(--crimson);
    background-image: none;
    padding-right: 10px;
}

.invalid-feedback, .help-block, .field-error-message {
    color: var(--crimson);
    font-size: 12px;
    line-height: 1.4;
    margin-top: 4px;
    display: block;
}

/* .help-block can be used both for errors and hint text in legacy views */
.help-block:empty { display: none; }
.help-block.help-block-error { color: var(--crimson); }

/* BS3 leftover: .alert-* без обёртки .alert. Применяем стили по самому модификатору. */
.alert-success:not(.alert),
.alert-danger:not(.alert),
.alert-warning:not(.alert),
.alert-info:not(.alert) {
    display: block;
    border-radius: 0;
    border: 1px solid;
    font-size: 13px;
    padding: 10px 14px;
    margin: 0 0 12px;
}
.alert-success:not(.alert) { background: rgba(0, 194, 168, 0.10); border-color: var(--teal); color: var(--ink); }
.alert-danger:not(.alert)  { background: rgba(255, 45, 89, 0.10); border-color: var(--crimson); color: var(--ink); }
.alert-warning:not(.alert) { background: rgba(255, 165, 2, 0.12); border-color: var(--yellow); color: var(--ink); }
.alert-info:not(.alert)    { background: var(--violet-soft); border-color: var(--violet); color: var(--ink); }

/* BS3 leftover: orphan .col-* without .row parent — give them a sane width */
.atk-admin-page > div [class^="col-"]:not(.row > [class^="col-"]):not(.row [class^="col-"]),
.atk-admin-page > div [class*=" col-"]:not(.row > [class*=" col-"]):not(.row [class*=" col-"]) {
    /* fallback for orphaned columns (.col-lg-5 etc. without .row parent) */
    max-width: 480px;
    flex: 0 0 auto;
}

.form-check-input,
input[type="checkbox"]:not([class*="form-"]),
input[type="radio"]:not([class*="form-"]) {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--ink-40);
    background: var(--white);
    box-shadow: none !important;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin: 0 6px 0 0;
    flex-shrink: 0;
}

.form-check-input,
input[type="checkbox"]:not([class*="form-"]) {
    border-radius: 2px;
}

input[type="radio"]:not([class*="form-"]) {
    border-radius: 50%;
}

.form-check-input:checked,
input[type="checkbox"]:not([class*="form-"]):checked,
input[type="radio"]:not([class*="form-"]):checked {
    background-color: var(--violet);
    border-color: var(--violet);
}

input[type="checkbox"]:not([class*="form-"]):checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 4px;
    height: 9px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="radio"]:not([class*="form-"]):checked::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--white);
}

.form-check-input:focus,
input[type="checkbox"]:not([class*="form-"]):focus,
input[type="radio"]:not([class*="form-"]):focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--violet-soft) !important;
}

/* Spacing between unwrapped checkbox and its label text */
input[type="checkbox"]:not([class*="form-"]) + label,
input[type="radio"]:not([class*="form-"]) + label {
    font-family: "Onest", sans-serif;
    font-size: 13px;
    color: var(--ink-80);
    cursor: pointer;
    margin-left: 2px;
}

/* ---------- Tables ---------- */
.table {
    font-size: 13px;
    color: var(--ink-80);
    border-color: var(--ink-15);
    margin-bottom: 16px;
}

.table > :not(caption) > * > * {
    padding: 8px 10px;
    border-bottom-color: var(--ink-15);
    background: transparent;
}

.table > thead > tr > th,
.table thead th {
    font-family: "Onest", sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--paper-2);
    border-bottom: 1px solid var(--ink);
    padding: 10px 10px 9px;
    vertical-align: middle;
}

.table > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > * {
    background: var(--violet-soft);
    color: var(--ink);
}

/* Список фильмов: целостность файлов на сервере (scenario/index) */
.table > tbody > tr.integrity-full > td {
    background: rgba(0, 194, 168, 0.12); /* --teal */
    box-shadow: none;
}
.table > tbody > tr.integrity-donors > td {
    background: rgba(255, 165, 2, 0.16); /* --yellow */
    box-shadow: none;
}

.table-bordered, .table-bordered > :not(caption) > * > * {
    border-color: var(--ink-15);
}

.table .btn-sm { padding: 4px 8px; }

/* GridView frame — looks like a card containing summary, table and pagination */
.grid-view {
    background: var(--white);
    border: 1px solid var(--ink-15);
    position: relative;
}

.grid-view .summary {
    font-family: "Onest", sans-serif;
    font-size: 12px;
    color: var(--ink-60);
    padding: 10px 14px;
    border-bottom: 1px solid var(--ink-15);
    background: var(--paper);
}

.grid-view table.table {
    margin-bottom: 0;
    border: 0;
    width: 100%;
}

/* Allow horizontal scroll of the table itself, not the whole card */
.grid-view {
    overflow-x: auto;
}

.grid-view .filters input,
.grid-view .filters select {
    font-size: 12px;
    padding: 4px 8px;
}

.grid-view .filters input.form-control {
    height: 30px;
}

.grid-view .empty {
    padding: 20px;
    color: var(--ink-60);
    font-style: italic;
    text-align: center;
}

/* Pagination — keep it inside the card */
.grid-view .pagination {
    margin: 0;
    padding: 10px 14px;
    border-top: 1px solid var(--ink-15);
    background: var(--paper);
    justify-content: flex-end;
}

.pagination {
    margin: 14px 0 0;
    gap: 0;
    border-radius: 0;
}
.pagination .page-item .page-link {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--ink-60);
    border: 1px solid var(--ink-15);
    border-radius: 0 !important;
    margin: 0;
    padding: 6px 10px;
    background: var(--white);
    box-shadow: none;
}
.pagination .page-item.active .page-link {
    background: var(--violet);
    border-color: var(--violet);
    color: var(--white);
}
.pagination .page-item .page-link:hover {
    color: var(--violet);
    border-color: var(--violet);
    background: var(--violet-soft);
}
.pagination .page-item.disabled .page-link {
    color: var(--ink-40);
    background: var(--paper-2);
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--ink-15);
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
}

.card-header {
    background: var(--paper-2);
    border-bottom: 1px solid var(--ink-15);
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-60);
    padding: 8px 14px;
}

.card-body { padding: 16px; }
.card-footer {
    background: var(--paper);
    border-top: 1px solid var(--ink-15);
    padding: 10px 14px;
}

/* ---------- Alerts ---------- */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 0;
    border-width: 1px;
    border-style: solid;
    font-size: 13px;
    padding: 12px 16px;
    margin-bottom: 16px;
    line-height: 1.4;
}
.alert-success { background: rgba(0, 194, 168, 0.10); border-color: var(--teal); color: var(--ink); }
.alert-danger  { background: rgba(255, 45, 89, 0.10); border-color: var(--crimson); color: var(--ink); }
.alert-warning { background: rgba(255, 165, 2, 0.12); border-color: var(--yellow); color: var(--ink); }
.alert-info    { background: var(--violet-soft); border-color: var(--violet); color: var(--ink); }
/* Override Bootstrap 5 absolute-positioned close button — use flex layout instead */
.alert.alert-dismissible { padding-right: 16px; }
.alert .btn-close {
    position: static;
    margin: 0 0 0 auto;
    padding: 4px;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.6;
}
.alert .btn-close:hover { opacity: 1; }

/* ---------- Misc ---------- */
.breadcrumb {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    padding: 0 0 12px;
    margin: 0 0 14px;
    border-bottom: 1px solid var(--ink-15);
}
.breadcrumb-item { color: var(--ink-60); }
.breadcrumb-item.active { color: var(--ink); }
.breadcrumb-item + .breadcrumb-item::before { content: "·"; color: var(--ink-40); }

.badge {
    font-family: var(--font-label);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0;
    padding: 3px 6px;
    font-weight: 400;
}

hr {
    border-color: var(--ink-15);
    opacity: 1;
    margin: 18px 0;
}

/* Default <pre> wrapping inside table cells (legacy raw_json columns etc.) */
.table pre {
    margin: 4px 0 0;
    padding: 8px 10px;
    background: var(--paper-2);
    border: 1px solid var(--ink-15);
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    color: var(--ink-80);
    max-height: 320px;
    overflow-y: auto;
}

.atk-device-cell {
    line-height: 1.5;
    font-size: 12.5px;
}

.atk-device-cell strong { color: var(--ink-60); font-weight: 400; }

.atk-details {
    margin-top: 6px;
    cursor: pointer;
}

.atk-details summary {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--violet);
    padding: 3px 0;
    cursor: pointer;
}

.atk-details summary:hover { color: var(--lilac); }

/* ---------- Scenario form: Recalculation Check (highlight) ---------- */
.field-scenario-recalculation_check {
    background: rgba(0, 194, 168, 0.10);
    border: 1px solid var(--teal);
    padding: 10px 14px;
    margin-bottom: 14px;
}

.field-scenario-recalculation_check .form-check-label,
.field-scenario-recalculation_check label {
    font-weight: 600;
    color: var(--ink);
}

/* ---------- Bordered checkbox group (flags card) ---------- */
.atk-checkbox-group {
    margin: 0 0 18px;
    padding: 14px 18px 6px;
    border: 1px solid var(--ink-15);
    background: var(--white);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4px 18px;
}

.atk-checkbox-group__legend {
    grid-column: 1 / -1;
    width: auto;
    padding: 0 8px;
    margin: 0 0 6px -8px;
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ink-60);
    font-weight: 400;
    float: none;
    line-height: 1;
}

.atk-checkbox-group .form-group {
    margin-bottom: 0;
}

.atk-checkbox-group .form-check {
    padding-left: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atk-checkbox-group .form-check-input {
    margin-top: 0;
    margin-left: 0;
    flex-shrink: 0;
}

.atk-checkbox-group .form-check-label {
    margin: 0;
    font-size: 13px;
    color: var(--ink-80);
    cursor: pointer;
}

/* ---------- Correction form (system/_formCorrection*.php) ---------- */
.atk-correction-form .form-group { margin-bottom: 18px; }

.atk-correction-section {
    margin-bottom: 22px;
    background: var(--white);
    border: 1px solid var(--ink-15);
    padding: 16px 20px;
}

.atk-correction-section__title {
    margin: 0 0 14px;
    font-family: "Onest", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid var(--ink-15);
    padding-bottom: 8px;
}

.atk-correction-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 6px;
}

.atk-correction-table thead th {
    font-family: "Onest", sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-60);
    text-align: center;
    padding: 6px 8px;
}

.atk-correction-table td {
    padding: 4px 8px;
    vertical-align: middle;
}

.atk-correction-table__label {
    text-align: right;
    color: var(--ink-60);
    font-size: 13px;
}

.atk-correction-table__value {
    font-family: "Onest", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
}

.atk-correction-form .form-control {
    font-size: 15px;
    height: 38px;
}

.atk-correction-form .field-* .help-block:empty,
.atk-correction-form .invalid-feedback:empty { display: none; }

/* ---------- System form (system/_form.php) ---------- */
.atk-system-warning {
    background: rgba(255, 165, 2, 0.14);
    border: 1px solid var(--yellow);
    color: var(--ink);
    padding: 10px 14px;
    margin: 8px 0 14px;
    font-size: 13px;
    line-height: 1.5;
}

.atk-system-static .card { margin-bottom: 14px; }

.atk-license-preview {
    margin-top: 10px;
    color: var(--ink-60);
}

.atk-ps-wrap {
    margin-top: 12px;
    margin-bottom: 40px;
    border: 1px solid var(--ink-15);
    padding: 14px 16px;
    background: var(--white);
}

.atk-ps-section-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.atk-ps-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.atk-ps-search__input {
    min-width: 280px;
    flex: 1;
    max-width: 420px;
}

.atk-ps-count {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--ink-60);
}

.atk-ps-list {
    border: 1px solid var(--ink-15);
    background: var(--paper);
    padding: 8px;
    min-height: 36px;
    border-radius: 0;
}

.atk-ps-list--all {
    max-height: 360px;
    overflow-y: auto;
}

.atk-ps-list--selected {
    background: var(--paper-2);
    border-style: dashed;
    border-color: var(--ink-15);
}

.atk-ps-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-bottom: 1px solid var(--ink-15);
    background: var(--white);
    font-size: 13px;
    color: var(--ink-80);
    gap: 8px;
}

.atk-ps-row:last-child { border-bottom: none; }

.atk-ps-row__label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Login screen — keep it compact and centered */
.atk-admin-login {
    max-width: 420px;
    margin: 60px auto;
    background: var(--white);
    border: 1px solid var(--ink);
    padding: 32px 28px;
}
.atk-admin-login h1 {
    margin: 0 0 6px;
}
.atk-admin-login p { color: var(--ink-60); margin: 0 0 20px; }

/* Override Yii ActiveForm tweaks */
.field-loginform-username,
.field-loginform-password,
.field-loginform-rememberme { margin-bottom: 14px; }

/* Login screen — undo the global filter-form layout (.atk-admin-page > div > form)
   that turns forms flex/bordered, and stack fields/checkbox/submit vertically. */
.atk-admin-login > form,
.atk-admin-page > div.atk-admin-login > form {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    margin: 0;
    gap: 0;
}
.atk-admin-login > form > div {
    margin-bottom: 14px;
}
.atk-admin-login .form-check {
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: auto;
}
.atk-admin-login .form-check .form-check-input {
    margin: 0;
}
.atk-admin-login .form-group {
    margin-top: 18px;
    margin-bottom: 0;
    display: block;
    text-align: left;
}
.atk-admin-login .form-group .btn {
    display: inline-block;
}

/* ======================================================================
 * Standardized form layout — apply to ALL admin forms.
 * Use:
 *   <div class="atk-form">
 *     <?php $form = ActiveForm::begin(); ?>
 *     ...fields...
 *     <div class="atk-form__actions">
 *       <?= Html::submitButton(...) ?>
 *     </div>
 *     <?php ActiveForm::end(); ?>
 *   </div>
 * ====================================================================== */
.atk-form {
    background: var(--white);
    border: 1px solid var(--ink-15);
    padding: 24px 28px;
    margin-bottom: 24px;
}
.atk-form .form-group {
    margin-bottom: 16px;
}
.atk-form .form-group:last-child {
    margin-bottom: 0;
}
.atk-form label.control-label,
.atk-form .form-label {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
    font-size: 13px;
}
.atk-form .form-control,
.atk-form .form-select {
    border: 1px solid var(--ink-15);
    background: var(--white);
    color: var(--ink);
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 0;
}
.atk-form .form-control:focus,
.atk-form .form-select:focus {
    border-color: var(--ink);
    box-shadow: none;
    outline: none;
}
.atk-form .help-block,
.atk-form .invalid-feedback,
.atk-form .form-text {
    font-size: 12.5px;
    color: var(--ink-60);
    margin-top: 4px;
}
.atk-form .form-group.has-error .form-control,
.atk-form .has-error .form-control {
    border-color: var(--crimson);
}

/* Section: groups of related fields with optional title */
.atk-form__section {
    border: 1px solid var(--ink-15);
    background: var(--paper-2);
    padding: 18px 20px;
    margin-bottom: 20px;
}
.atk-form__section-title {
    font-family: "Onest", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-60);
    margin: 0 0 14px;
}

/* Hint text under or near a field */
.atk-form__hint {
    color: var(--ink-60);
    font-size: 12.5px;
    margin: -8px 0 16px;
}

/* Action toolbar — Save + secondary buttons. Default at bottom. */
.atk-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    margin-top: 20px;
    border-top: 1px solid var(--ink-15);
}
.atk-form__actions--top {
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-top: none;
    border-bottom: 1px solid var(--ink-15);
}
.atk-form__actions .btn { margin: 0; }

/* Quiz / questions builder — used by experience and scenario/quiz forms */
.atk-quiz-question {
    border: 1px solid var(--ink-15);
    background: var(--paper-2);
    padding: 18px 20px;
    margin-bottom: 16px;
}
.atk-quiz-question + #add-question { margin-top: 4px; }
.atk-quiz-answers {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--ink-15);
    background: var(--white);
    margin-bottom: 14px;
}
.atk-quiz-answer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.atk-quiz-answer:last-child { margin-bottom: 0; }
.atk-quiz-answer .form-control { flex: 1; }
#add-question { margin-bottom: 16px; }

/* ======================================================================
 * Device timeline (system/view) — one card per unique device_id with a
 * horizontal points-on-axis showing snapshots over time.
 * ====================================================================== */

/* Section wrapper, infographic and collapsible cards block */
.atk-devices-section { margin-bottom: 24px; }
.atk-devices-section h2 { margin: 0 0 12px; }

.atk-devices-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.atk-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--paper-2);
    border: 1px solid var(--ink-15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    color: var(--ink-80);
    white-space: nowrap;
}
.atk-stat-pill strong {
    color: var(--violet);
    font-weight: 700;
    font-size: 13px;
}
.atk-stat-pill--total {
    background: var(--violet);
    color: var(--white);
    border-color: var(--violet);
}
.atk-stat-pill--total strong { color: var(--white); }

/* Collapsible cards block */
.atk-devices-cards { margin-top: 4px; }
.atk-devices-cards > summary {
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--paper-2);
    border: 1px solid var(--ink-15);
    font-weight: 600;
    font-size: 13px;
    color: var(--ink-80);
    transition: background 0.15s ease;
}
.atk-devices-cards > summary::-webkit-details-marker { display: none; }
.atk-devices-cards > summary::marker { content: ""; }
.atk-devices-cards > summary:hover { background: var(--violet-soft); color: var(--ink); }
.atk-devices-cards__chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid var(--violet);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform 0.15s ease;
}
.atk-devices-cards[open] > summary .atk-devices-cards__chevron {
    transform: rotate(90deg);
}
.atk-devices-cards__inner { margin-top: 12px; }

.atk-device-card {
    background: var(--white);
    border: 1px solid var(--ink-15);
    padding: 16px 20px;
    margin-bottom: 16px;
}
.atk-device-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ink-15);
}
.atk-device-card__id strong {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13.5px;
    color: var(--ink);
}
.atk-device-card__count {
    margin-left: 10px;
    font-size: 11px;
    color: var(--ink-60);
    background: var(--paper-2);
    padding: 2px 8px;
    border-radius: 10px;
}
.atk-device-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: var(--ink-80);
}
.atk-device-card__meta strong { color: var(--ink); font-weight: 600; margin-right: 4px; }

/* Timeline */
.atk-timeline {
    position: relative;
    height: 36px;
    margin: 8px 0 18px;
}
.atk-timeline-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: var(--ink-15);
    transform: translateY(-50%);
}
/* Враппер для точек/кластеров: позиционируется внутри .atk-timeline с
 * инсетом 11px (= радиус cluster-точки 22px / 2). Точки внутри (cluster
 * или single) с left: 0% / 100% попадают центром в эти границы — то есть
 * целиком ложатся на трек. */
.atk-timeline-points {
    position: absolute;
    left: 11px;
    right: 11px;
    top: 0;
    bottom: 0;
}
.atk-timeline-point {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: var(--violet);
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 0 0 1px var(--ink-15);
}
.atk-timeline-point:hover {
    width: 14px;
    height: 14px;
    background: var(--lilac);
}
.atk-timeline-point.is-active {
    width: 16px;
    height: 16px;
    background: var(--ink);
    box-shadow: 0 0 0 2px var(--violet);
}
.atk-timeline-point:focus { outline: none; }

.atk-timeline-range {
    margin: -10px 12px 14px;
    font-size: 11px;
    color: var(--ink-60);
    text-align: right;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* Кластер из нескольких снимков */
.atk-timeline-cluster {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.atk-timeline-cluster.is-open { z-index: 5; }
.atk-timeline-point--cluster {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 22px;
    height: 22px;
    background: var(--violet);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.atk-timeline-point--cluster:hover {
    width: 24px;
    height: 24px;
    background: var(--lilac);
}
.atk-timeline-point--cluster.is-active {
    width: 26px;
    height: 26px;
    background: var(--ink);
    box-shadow: 0 0 0 2px var(--violet);
}
.atk-timeline-point__count {
    font-size: 10px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    pointer-events: none;
}

/* Popover со снимками внутри кластера */
.atk-timeline-cluster__popover {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: var(--white);
    border: 1px solid var(--ink-15);
    box-shadow: 0 6px 16px rgba(24, 22, 20, 0.12);
    min-width: 240px;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px 0;
}
.atk-timeline-cluster.is-open .atk-timeline-cluster__popover { display: block; }
.atk-timeline-cluster__popover::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--white);
    border-left: 1px solid var(--ink-15);
    border-top: 1px solid var(--ink-15);
}
.atk-timeline-cluster__item {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 14px;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    color: var(--ink-80);
}
.atk-timeline-cluster__item:hover {
    background: var(--violet-soft);
    color: var(--ink);
}
.atk-timeline-cluster__time {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
}
.atk-timeline-cluster__diff {
    font-family: "Onest", sans-serif;
    font-size: 11px;
    color: var(--ink-60);
    white-space: nowrap;
}

/* Snapshot detail panel — only one is .is-open at a time per card */
.atk-snapshot-detail-wrap { position: relative; }
.atk-snapshot-detail {
    display: none;
    background: var(--paper-2);
    border: 1px solid var(--ink-15);
    padding: 12px 16px;
    font-size: 13px;
}
.atk-snapshot-detail.is-open { display: block; }
.atk-snapshot-detail__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ink-15);
}
.atk-snapshot-detail__badge {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--violet-soft);
    color: var(--violet);
    padding: 2px 8px;
    border-radius: 10px;
}
.atk-snapshot-detail__diff {
    margin-bottom: 8px;
    line-height: 1.9;
}
.atk-snapshot-detail__diff-label {
    display: inline-block;
    margin-right: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-60);
}
.atk-diff-add,
.atk-diff-remove,
.atk-diff-value {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11.5px;
    padding: 2px 6px;
    margin: 1px 2px;
    border-radius: 3px;
}
.atk-diff-add { background: rgba(0, 194, 168, 0.12); color: var(--teal); }
.atk-diff-remove { background: rgba(255, 45, 89, 0.12); color: var(--crimson); }
.atk-diff-value { background: rgba(100, 116, 139, 0.12); color: var(--ink-80); }

.atk-snapshot-detail__packages { margin-top: 12px; }
.atk-snapshot-detail__pkg-list {
    list-style: none;
    margin: 0;
    padding: 0;
    column-count: 2;
    column-gap: 18px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    color: var(--ink-80);
}
.atk-snapshot-detail__pkg-list li {
    padding: 1px 0;
    break-inside: avoid;
}
.atk-snapshot-detail__raw {
    margin-top: 12px;
    font-size: 12px;
}
.atk-snapshot-detail__raw summary {
    cursor: pointer;
    color: var(--ink-60);
    user-select: none;
}
.atk-snapshot-detail__raw pre {
    margin-top: 6px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--ink-15);
    max-height: 300px;
    overflow: auto;
    font-size: 11.5px;
}

@media (max-width: 768px) {
    .atk-snapshot-detail__pkg-list { column-count: 1; }
}

/* ===== Session log (royalty-purchase/view) ===== */
/* Использует базовые .atk-timeline* / .atk-timeline-points / .atk-snapshot-*
 * классы. Здесь только специфика session-log: meta-строка, одиночная точка в
 * кластер-обёртке, оформление payload-строк в детальной карточке. */
.atk-session-log__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    color: var(--ink-70, #6b7280);
    font-size: 13px;
}
.atk-session-log__meta span { white-space: nowrap; }

/* Одиночная точка в кластер-обёртке: возвращаем обычный размер 12px (без
 * cluster-укрупнения), убираем абсолютное позиционирование point'а внутри
 * враппера — wrapper сам absolute-позиционируется и центрируется. */
.atk-session-log .atk-timeline-cluster--single .atk-timeline-point {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

/* Строка payload в детальной карточке: key + value на одной линии. */
.atk-event-payload-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 1px 0;
}
