html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: Arial, sans-serif;
    background: #0f1115;
    color: #ffffff;
}

* {
    box-sizing: border-box;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-panel {
    width: 100%;
    max-width: 360px;
    background: #171a21;
    border: 1px solid #2b3140;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.logo {
    display: block;
    width: 132px;
    max-width: 100%;
    height: auto;
    margin: 0 0 18px;
}

h1 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin: 0 0 18px;
    color: #b7c0d1;
    font-size: 14px;
    line-height: 1.45;
}

form {
    margin: 0;
}

label {
    display: block;
    margin: 0 0 14px;
    color: #b7c0d1;
    font-size: 13px;
    font-weight: 600;
}

label span {
    display: block;
    margin-bottom: 7px;
}

input,
textarea {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 12px 14px;
    border: 1px solid #394150;
    border-radius: 10px;
    background: #0f1115;
    color: #ffffff;
    font: inherit;
    outline: none;
}

textarea {
    resize: vertical;
}

select {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 12px 14px;
    border: 1px solid #394150;
    border-radius: 10px;
    background: #0f1115;
    color: #ffffff;
    font: inherit;
    outline: none;
}

.native-select-hidden {
    position: absolute;
    width: 1px;
    min-height: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

input[type="date"] {
    position: relative;
    padding-right: 48px;
    border-color: #34415a;
    border-radius: 12px;
    background: linear-gradient(180deg, #10141d 0%, #0f1115 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    color-scheme: dark;
    cursor: pointer;
}

input[type="date"]:hover {
    border-color: #4b5b78;
    background: #111722;
}

input[type="date"]:focus {
    border-color: #6b8cff;
    box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.16);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    width: 18px;
    height: 18px;
    padding: 5px;
    border: 1px solid rgba(107, 140, 255, 0.28);
    border-radius: 9px;
    background-color: rgba(107, 140, 255, 0.2);
    cursor: pointer;
    filter: invert(1) opacity(0.85);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(107, 140, 255, 0.34);
    filter: invert(1) opacity(1);
}

input:focus,
textarea:focus,
select:focus {
    border-color: #6b8cff;
}

input + input {
    margin-top: 10px;
}

.login-panel button {
    margin-top: 18px;
}

button,
.floating-topbar a,
.admin-topbar a,
.actions a,
.button-link {
    display: inline-block;
    min-height: 40px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: #6b8cff;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

button {
    width: 100%;
}

button:hover,
.floating-topbar a:hover,
.admin-topbar a:hover,
.actions a:hover,
.button-link:hover {
    opacity: 0.95;
}

button:disabled {
    cursor: wait;
    opacity: 0.82;
}

button.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

button.is-loading::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: button-spin 0.75s linear infinite;
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

.alert,
.success {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.alert {
    color: #ff7b7b;
    background: rgba(255, 123, 123, 0.12);
}

.success {
    color: #77e39b;
    background: rgba(119, 227, 155, 0.12);
}

.admin-toast {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 120;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
    padding: 16px 46px 16px 16px;
    border: 1px solid rgba(119, 227, 155, 0.3);
    border-radius: 14px;
    background: #17241f;
    color: #dfffe9;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
    transform: translateX(-16px);
    opacity: 0;
    animation: admin-toast-in 0.22s ease-out forwards;
}

.admin-toast.is-hiding {
    animation: admin-toast-out 0.18s ease-in forwards;
}

.admin-toast__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #48c774;
    color: #08110c;
    font-weight: 900;
}

.admin-toast-error {
    border-color: rgba(255, 123, 123, 0.32);
    background: #2a171b;
    color: #ffe4e4;
}

.admin-toast-error .admin-toast__icon {
    background: #ff7b7b;
    color: #18090b;
}

.admin-toast-error .admin-toast__content p {
    color: #ffc7c7;
}

.admin-toast__content strong {
    display: block;
    margin: 1px 0 4px;
    color: #ffffff;
    font-size: 15px;
}

.admin-toast__content p {
    margin: 0;
    color: #bdf5ce;
    font-size: 14px;
    line-height: 1.4;
}

.admin-toast__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    min-height: 30px;
    padding: 0;
    background: transparent;
    color: #a9d8b8;
    font-size: 24px;
    line-height: 30px;
}

.admin-toast__close:hover {
    color: #ffffff;
    opacity: 1;
}

@keyframes admin-toast-in {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes admin-toast-out {
    to {
        transform: translateX(-16px);
        opacity: 0;
    }
}

.error-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 8, 16, 0.72);
    backdrop-filter: blur(5px);
}

.error-popup.is-open { display: flex; }

.error-popup__panel {
    position: relative;
    width: min(440px, 100%);
    padding: 30px;
    border: 1px solid rgba(255, 123, 123, 0.35);
    border-radius: 18px;
    background: #151a25;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.error-popup__icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #e45858;
    font-size: 30px;
    font-weight: 800;
}

.error-popup__panel h2 { margin: 0 28px 10px; }
.error-popup__panel p { margin: 8px 0; line-height: 1.5; }
.error-popup__reference { color: #9ba6ba; font-size: 13px; }

.error-popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    padding: 4px;
    color: #9ba6ba;
    background: transparent;
    font-size: 28px;
}

.error-popup__button { margin-top: 16px; }

.duplicate-dialog {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 8, 16, 0.74);
    backdrop-filter: blur(6px);
}

.duplicate-dialog.is-open {
    display: flex;
}

.duplicate-dialog__panel {
    width: min(520px, 100%);
    padding: 28px;
    border: 1px solid rgba(107, 140, 255, 0.36);
    border-radius: 18px;
    background: #151a25;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
    color: #ffffff;
}

.duplicate-dialog__icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 50%;
    background: #6b8cff;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.duplicate-dialog__panel h2 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
}

.duplicate-dialog__panel p {
    margin: 0;
    color: #c9d3e8;
    line-height: 1.5;
}

.duplicate-dialog__found {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #334057;
    border-radius: 12px;
    background: rgba(15, 17, 21, 0.72);
    color: #ffffff;
    font-weight: 800;
    line-height: 1.45;
}

.duplicate-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.duplicate-dialog__actions button {
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 0 16px;
}

.duplicate-dialog__edit {
    background: #6b8cff;
    color: #ffffff;
}

.duplicate-dialog__continue {
    border: 1px solid rgba(255, 193, 112, 0.34);
    background: rgba(255, 193, 112, 0.16);
    color: #ffd79c;
}

.duplicate-dialog__danger {
    border-color: rgba(255, 123, 123, 0.36);
    background: rgba(255, 123, 123, 0.18);
    color: #ffd0d0;
}

.duplicate-dialog__cancel {
    border: 1px solid rgba(255, 123, 123, 0.28);
    background: rgba(255, 123, 123, 0.12);
    color: #ffb7b7;
}

.dashboard-page {
    overflow: hidden;
}

.floating-topbar {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.topbar-actions {
    display: inline-block;
}

.floating-topbar a {
    width: auto;
    margin-left: 8px;
    background: rgba(20, 23, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.frame-wrap {
    width: 100%;
    height: 100vh;
}

iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0f1115;
}

.dashboard-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 7, 12, 0.72);
    backdrop-filter: blur(10px);
}

.dashboard-modal.is-open {
    display: flex;
}

.dashboard-modal__panel {
    position: relative;
    width: min(560px, 100%);
    padding: 28px;
    border: 1px solid #2f3b56;
    border-radius: 16px;
    background: #171a21;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    color: #ffffff;
}

.dashboard-modal__panel h1 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.2;
}

.dashboard-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid #394150;
    border-radius: 10px;
    background: #0f1115;
    color: #ffffff;
    font-size: 24px;
    line-height: 32px;
}

.dashboard-choice-list {
    display: grid;
    gap: 12px;
}

.dashboard-choice {
    display: block;
    padding: 16px;
    border: 1px solid #394150;
    border-radius: 12px;
    background: #0f1115;
    color: #ffffff;
    text-decoration: none;
}

.dashboard-choice:hover,
.dashboard-choice.active {
    border-color: #6b8cff;
    background: rgba(107, 140, 255, 0.16);
}

.dashboard-choice.disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.dashboard-choice.disabled:hover {
    border-color: #394150;
    background: #0f1115;
}

.dashboard-choice strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.dashboard-choice span {
    display: block;
    color: #b7c0d1;
    font-size: 14px;
}

.admin-page {
    min-height: 100vh;
}

.admin-topbar {
    min-height: 64px;
    padding: 12px 22px;
    background: #171a21;
    border-bottom: 1px solid #2b3140;
}

.admin-topbar:after,
.admin-shell:after,
.actions:after {
    content: "";
    display: block;
    clear: both;
}

.admin-topbar div {
    float: left;
    padding-top: 10px;
}

.admin-topbar strong {
    margin-right: 14px;
}

.admin-topbar span {
    color: #b7c0d1;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    min-height: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid #2b3140;
    border-radius: 12px;
    background: rgba(23, 26, 33, 0.92);
    box-shadow: none;
    line-height: 1;
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px auto;
    border-radius: 2px;
    background: #ffffff;
}

.admin-tabs {
    padding: 16px 22px 0;
}

.admin-tabs a {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 10px 14px;
    border: 1px solid #2b3140;
    border-radius: 10px;
    background: #171a21;
    color: #b7c0d1;
    font-weight: 700;
    text-decoration: none;
}

.admin-tabs a.active {
    background: #6b8cff;
    border-color: #6b8cff;
    color: #ffffff;
}

.table-toolbar {
    min-height: 64px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #2b3140;
    border-radius: 16px;
    background: #151922;
}

.table-toolbar:after {
    content: "";
    display: block;
    clear: both;
}

.table-toolbar > div {
    float: left;
    padding: 4px 0 0;
}

.table-toolbar strong {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
    line-height: 1.2;
}

.table-toolbar > div > span {
    display: block;
    color: #a7b0c2;
    font-size: 13px;
}

.subtabs {
    float: right;
    padding: 0;
    border: 0;
    background: transparent;
}

.subtabs a {
    display: inline-block;
    min-width: 150px;
    margin: 0 0 0 8px;
    padding: 11px 14px;
    border: 1px solid #334057;
    border-radius: 12px;
    background: #0f1115;
    color: #c6cfdf;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.subtabs a.active {
    border-color: #6b8cff;
    background: #6b8cff;
    color: #ffffff;
}

.subtabs .tab-label,
.subtabs .tab-count {
    display: inline-block;
    vertical-align: middle;
}

.subtabs .tab-count {
    min-width: 24px;
    margin-left: 7px;
    padding: 2px 8px;
    border-radius: 99px;
    background: #252d3d;
    color: #c6cfdf;
    font-size: 12px;
    text-align: center;
}

.subtabs a.active .tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.topnav {
    float: right;
}

.topnav a {
    margin-left: 8px;
}

.admin-shell {
    padding: 22px;
}

.admin-form {
    float: left;
    width: 360px;
    max-width: 100%;
    background: #171a21;
    border: 1px solid #2b3140;
    border-radius: 16px;
    padding: 20px;
}

.admin-side {
    float: left;
    width: 360px;
    max-width: 100%;
}

.admin-side .admin-form {
    float: none;
    width: 100%;
}

.admin-shell-new-site {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.admin-shell-new-site:after {
    display: none;
}

.admin-shell-new-site .admin-side {
    float: none;
    width: auto;
    max-width: none;
}

.admin-shell-new-site .admin-form {
    float: none;
    width: 100%;
}

.admin-shell-new-site .users-table {
    margin-left: 0;
    min-width: 0;
}

.users-table {
    margin-left: 382px;
    background: #171a21;
    border: 1px solid #2b3140;
    border-radius: 16px;
    padding: 20px;
    overflow-x: auto;
}

.admin-shell-full .users-table,
.full-table {
    margin-left: 0;
}

.admin-table-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: -2px 0 14px;
}

.admin-table-search-wrap {
    flex: 0 1 260px;
}

.admin-table-search {
    width: 100%;
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 9px;
    font-size: 14px;
}

.admin-table-counter {
    padding: 6px 10px;
    border: 1px solid #2b3140;
    border-radius: 999px;
    background: #10141d;
    color: #a7b0c2;
    font-size: 13px;
    white-space: nowrap;
}

.admin-search-select {
    position: relative;
}

.admin-search-select-trigger {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 12px 38px 12px 14px;
    border: 1px solid #394150;
    border-radius: 10px;
    background: #0f1115;
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-search-select-trigger:after {
    content: "\25BE";
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #8ea0c7;
}

.admin-search-select-trigger.is-placeholder {
    color: #ffffff;
}

.admin-search-select.is-open .admin-search-select-trigger {
    border-color: #6b8cff;
}

.admin-search-select-dropdown {
    display: none;
    position: absolute;
    z-index: 35;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    padding: 8px;
    border: 1px solid #334057;
    border-radius: 12px;
    background: #10141d;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
}

.admin-search-select.is-open .admin-search-select-dropdown {
    display: block;
}

.admin-search-select-dropdown input {
    min-height: 34px;
    margin: 0 0 7px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.admin-search-select-options {
    max-height: 260px;
    overflow-y: auto;
}

.admin-search-select-option {
    min-height: 32px;
    padding: 7px 9px;
    border-radius: 7px;
    color: #dfe6ff;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.admin-search-select-option:hover,
.admin-search-select-option:focus,
.admin-search-select-option.active {
    background: rgba(107, 140, 255, 0.18);
    color: #ffffff;
}

.status-badge {
    display: inline-block;
    min-width: 86px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.success-badge {
    background: rgba(119, 227, 155, 0.14);
    color: #9df0b7;
}

.failed-badge {
    background: rgba(255, 123, 123, 0.14);
    color: #ffb0b0;
}

.action-badge {
    border: 1px solid rgba(107, 140, 255, 0.26);
    background: rgba(107, 140, 255, 0.16);
    color: #dfe6ff;
}

.action-badge-create {
    border-color: rgba(72, 199, 116, 0.32);
    background: rgba(72, 199, 116, 0.14);
    color: #bdf5ce;
}

.action-badge-update {
    border-color: rgba(107, 140, 255, 0.32);
    background: rgba(107, 140, 255, 0.18);
    color: #dfe6ff;
}

.action-badge-delete {
    border-color: rgba(255, 123, 123, 0.32);
    background: rgba(255, 123, 123, 0.14);
    color: #ffd0d0;
}

.action-log-payload {
    display: grid;
    gap: 6px;
    min-width: 220px;
    max-width: 420px;
    color: #dfe6ff;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.action-log-payload strong {
    color: #ffffff;
}

.user-agent-cell {
    max-width: 520px;
    color: #b7c0d1;
    font-size: 13px;
    line-height: 1.35;
}

.check-row {
    overflow: hidden;
}

.check-row input {
    float: left;
    width: 18px;
    min-height: 18px;
    margin: 1px 10px 0 0;
}

.check-row.is-locked {
    color: #dbe5ff;
}

.check-row.is-locked input {
    opacity: 0.75;
}

.check-row span {
    display: block;
    margin: 0;
    padding-top: 1px;
}

.field-hint {
    margin: -4px 0 12px;
    color: #8ea0c7;
    font-size: 12px;
    line-height: 1.35;
}

.role-hint {
    margin-top: -2px;
    color: #cbd8ff;
}

.form-note {
    margin: 4px 0 12px;
    padding: 10px 12px;
    border: 1px solid #2f3b56;
    border-radius: 10px;
    background: rgba(104, 133, 255, 0.1);
    color: #cbd8ff;
    font-size: 13px;
    line-height: 1.4;
}

.new-site-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 12px;
    padding: 18px;
    border: 1px solid rgba(104, 133, 255, 0.38);
    border-radius: 12px;
    background: rgba(104, 133, 255, 0.14);
    color: #dbe5ff;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 30px rgba(0, 0, 0, 0.12);
}

.new-site-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #6885ff;
    color: #fff;
    font-weight: 900;
}

.new-site-note-content b {
    display: block;
    margin: 1px 0 8px;
    color: #fff;
    font-size: 15px;
}

.new-site-note-content p {
    margin: 0;
}

.new-site-note a {
    color: #9fb3ff;
    font-weight: 800;
}

.new-site-note code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(15, 17, 21, 0.45);
    color: #fff;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.form-actions button {
    height: 40px;
    min-height: 40px;
    margin-top: 0;
    padding: 0 14px;
}

.form-actions.is-editing > * {
    flex: 1 1 0;
    width: auto;
}

.form-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 123, 123, 0.28);
    border-radius: 10px;
    background: rgba(255, 123, 123, 0.12);
    color: #ffb7b7;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.form-cancel-btn:hover {
    background: rgba(255, 123, 123, 0.18);
    color: #ffd1d1;
}

.mapping-fields {
    margin: 0 0 14px;
}

.crm-domain-fields {
    margin: 0 0 14px;
}

.mapping-title {
    display: block;
    margin-bottom: 8px;
    color: #b7c0d1;
    font-size: 13px;
    font-weight: 700;
}

.mapping-row {
    position: relative;
    margin-bottom: 12px;
    padding: 12px 48px 12px 12px;
    border: 1px solid #2b3140;
    border-radius: 12px;
    background: rgba(15, 17, 21, 0.45);
}

.crm-domain-row {
    position: relative;
    margin-bottom: 10px;
    padding-right: 40px;
}

.crm-domain-row .remove-param-btn {
    top: 7px;
    right: 0;
}

.mapping-row label {
    margin-bottom: 10px;
}

.mapping-row label:last-of-type {
    margin-bottom: 0;
}

.remove-param-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 8px;
    background: rgba(255, 123, 123, 0.18);
    color: #ffd0d0;
}

.add-param-btn {
    margin: 0 0 14px;
    background: rgba(107, 140, 255, 0.22);
    color: #dfe6ff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 10px;
    border-bottom: 1px solid #2b3140;
    text-align: left;
    vertical-align: middle;
}

th {
    color: #b7c0d1;
    font-size: 13px;
}

th.is-sortable {
    position: relative;
    user-select: none;
}

.admin-th-controls {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.admin-th-sort,
.admin-th-filter,
.admin-column-filter button {
    min-height: 0;
    margin: 0;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    line-height: 1.2;
}

.admin-th-sort {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.admin-th-sort:hover,
.admin-th-sort:focus,
.admin-th-filter:hover,
.admin-th-filter:focus {
    border-color: #334057;
    background: #10141d;
    color: #ffffff;
}

.admin-sort-icon {
    width: 13px;
    color: #657087;
    text-align: center;
}

.admin-sort-icon:before {
    content: "\2195";
}

th.is-sortable[data-sort-direction="asc"] .admin-sort-icon:before {
    content: "\2191";
    color: #8ea6ff;
}

th.is-sortable[data-sort-direction="desc"] .admin-sort-icon:before {
    content: "\2193";
    color: #8ea6ff;
}

.admin-th-filter {
    width: 25px;
    height: 25px;
    padding: 0;
    border-radius: 8px;
    color: #8ea0c7;
    font-size: 11px;
}

th.has-filter .admin-th-filter {
    border-color: #6b8cff;
    background: rgba(107, 140, 255, 0.18);
    color: #ffffff;
}

.admin-column-filter {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    width: 220px;
    padding: 8px;
    border: 1px solid #334057;
    border-radius: 12px;
    background: #10141d;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.admin-column-filter input {
    min-height: 32px;
    margin: 0 0 7px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 13px;
}

.admin-column-filter-values {
    max-height: 190px;
    overflow-y: auto;
}

.admin-column-filter button {
    display: block;
    width: 100%;
    min-height: 30px;
    padding: 7px 8px;
    border-radius: 8px;
    color: #dfe6ff;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.admin-column-filter button:hover,
.admin-column-filter button.active {
    background: rgba(107, 140, 255, 0.18);
    color: #ffffff;
}

.inactive-row td {
    background: rgba(255, 123, 123, 0.06);
    color: #d9aeb2;
}

.inactive-row td:first-child {
    border-left: 3px solid rgba(255, 123, 123, 0.55);
}

.muted-id {
    color: #b7c0d1;
    font-size: 12px;
}

.actions {
    white-space: nowrap;
}

.actions a,
.actions form,
.actions button {
    display: inline-block;
    width: auto;
    vertical-align: middle;
}

.actions a,
.actions button {
    margin: 0 0 0 8px;
}

.actions button {
    background: rgba(255, 123, 123, 0.18);
    color: #ffd0d0;
}

.actions .delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    min-height: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 123, 123, 0.22);
    border-radius: 10px;
    background: rgba(255, 123, 123, 0.13);
    color: #ffb7b7;
}

.actions .delete-btn:hover,
.actions .delete-btn:focus {
    border-color: rgba(255, 123, 123, 0.42);
    background: rgba(255, 123, 123, 0.22);
    color: #ffffff;
}

.delete-btn-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.actions .login-as-btn {
    background: rgba(107, 140, 255, 0.22);
    color: #dfe6ff;
}

@media (max-width: 760px) {
    .floating-topbar {
        top: 10px;
        right: 10px;
    }

    .mobile-menu-toggle {
        display: inline-block;
        position: relative;
        z-index: 60;
        width: 42px;
        min-width: 42px;
        max-width: 42px;
        height: 42px;
        float: right;
        margin: 0;
        padding: 10px;
        background: rgba(23, 26, 33, 0.94);
    }

    .floating-topbar .mobile-menu-toggle {
        float: none;
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
    }

    .topbar-actions,
    .topnav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 50;
        width: min(280px, calc(100vw - 44px));
        height: 100vh;
        padding: 72px 14px 14px;
        border-left: 1px solid #2b3140;
        border-radius: 0;
        background: rgba(23, 26, 33, 0.98);
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
        transform: translateX(105%);
        transition: transform 0.18s ease;
    }

    .admin-topbar .topnav {
        right: 0;
    }

    .mobile-menu.is-open .topbar-actions,
    .mobile-menu.is-open .topnav {
        transform: translateX(0);
    }

    .floating-topbar a,
    .topnav a {
        display: block;
        width: 100%;
        margin: 0 0 8px;
        background: rgba(107, 140, 255, 0.16);
        border: 1px solid rgba(107, 140, 255, 0.26);
        text-align: left;
    }

    .floating-topbar a:last-child,
    .topnav a:last-child {
        margin-bottom: 0;
    }

    .admin-topbar {
        position: relative;
        padding-right: 22px;
    }

    .admin-topbar div {
        float: left;
        max-width: calc(100% - 58px);
    }

    .topnav {
        float: none;
        margin-top: 0;
    }

    .admin-shell {
        padding: 14px;
    }

    .admin-shell-new-site {
        display: block;
    }

    .admin-form {
        float: none;
        width: 100%;
    }

    .admin-side {
        float: none;
        width: 100%;
    }

    .users-table {
        margin: 14px 0 0;
    }

    .table-toolbar > div,
    .subtabs {
        float: none;
    }

    .subtabs {
        margin-top: 12px;
    }

    .subtabs a {
        min-width: 0;
        width: 48%;
        margin: 0 1% 0 0;
        padding-left: 8px;
        padding-right: 8px;
    }
}
