:root {
    --lm-bg: #f7f5f3;
    --lm-panel: #ffffff;
    --lm-ink: #241f21;
    --lm-muted: #6f6668;
    --lm-line: #ded8d4;
    --lm-brand: #822433;
    --lm-brand-strong: #641b27;
    --lm-brand-soft: #f3e7e9;
    --lm-accent: #b99a54;
    --lm-accent-soft: #f4eddc;
    --lm-success: #526f5b;
    --lm-danger: #8f4a52;
}

body {
    background: var(--lm-bg);
    color: var(--lm-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.lm-admin-shell {
    display: flex;
    min-height: 100vh;
}

.lm-admin-sidebar {
    background: var(--lm-brand);
    color: #fff;
    flex: 0 0 248px;
    padding: 24px 18px;
}

.lm-admin-sidebar-brand {
    margin: 0 0 18px;
}

.lm-admin-sidebar-brand strong,
.lm-admin-sidebar-brand small {
    display: block;
    line-height: 1.15;
}

.lm-admin-sidebar-brand strong {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.lm-admin-sidebar-brand small {
    color: #ead7dc;
    font-size: 12px;
    margin-top: 4px;
}

.lm-admin-titlebar {
    align-items: center;
    display: flex;
    gap: 22px;
    min-width: 0;
}

.lm-admin-header-brand {
    display: inline-flex;
    flex: 0 0 auto;
}

.lm-admin-header-brand:hover {
    text-decoration: none;
}

.lm-admin-logo {
    display: block;
    height: auto;
    max-width: 89px;
    width: 100%;
}

.lm-user-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    display: flex;
    gap: 10px;
    margin: 0 0 24px;
    padding: 10px;
}

.lm-user-avatar {
    align-items: center;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 14px;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    letter-spacing: 0.02em;
    width: 42px;
}

.lm-user-card-manager .lm-user-avatar {
    background: var(--lm-accent);
}

.lm-user-card-researcher .lm-user-avatar {
    background: var(--lm-success);
}

.lm-user-meta {
    min-width: 0;
}

.lm-user-meta strong,
.lm-user-meta small {
    display: block;
    line-height: 1.2;
}

.lm-user-meta strong {
    color: #fff;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lm-user-meta small {
    color: #ead7dc;
    font-size: 11px;
    font-weight: 700;
    margin-top: 3px;
    text-transform: uppercase;
}

.lm-admin-brand-mark {
    align-items: center;
    background: var(--lm-accent-soft);
    border-radius: 6px;
    color: var(--lm-brand);
    display: inline-flex;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.lm-admin-nav {
    display: grid;
    gap: 6px;
}

.lm-admin-nav a {
    border-radius: 6px;
    color: #f1e4e7;
    display: block;
    font-weight: 600;
    padding: 10px 12px;
    text-decoration: none;
}

.lm-admin-nav a:hover,
.lm-admin-nav a:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
}

.lm-admin-main {
    flex: 1 1 auto;
    min-width: 0;
}


.lm-admin-main {
    display: flex;
    flex-direction: column;
}

.lm-admin-content {
    flex: 1 1 auto;
}

.lm-admin-footer-wrap {
    margin-top: auto;
}

.lm-admin-footer-wrap .lm-public-footer {
    background: #efe9e4;
    border-top: 1px solid var(--lm-line);
    margin-top: 24px;
    padding: 14px 28px 24px;
}

.lm-admin-footer-wrap .lm-public-footer-inner {
    align-items: center;
    color: var(--lm-muted);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    margin: 0 auto;
    max-width: none;
    padding: 0 36px;
    text-align: center;
}

.lm-admin-footer-wrap .lm-public-footer-branding {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: center;
}

.lm-admin-footer-wrap .lm-public-footer-logo {
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.lm-admin-footer-wrap .lm-public-footer-logo--uniroma {
    max-height: 32px;
    width: auto;
}

.lm-admin-footer-wrap .lm-public-footer-logo--cimeo {
    border-radius: 3px;
    max-height: 32px;
    width: auto;
}

.lm-admin-footer-wrap .lm-public-footer-copyblock {
    display: flex;
    flex-direction: column;
    gap: 1px;
    justify-content: center;
}

.lm-admin-footer-wrap .lm-public-footer-title,
.lm-admin-footer-wrap .lm-public-footer-copy {
    margin: 0;
}

.lm-admin-footer-wrap .lm-public-footer-title {
    color: var(--lm-brand-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
}

.lm-admin-footer-wrap .lm-public-footer-copy {
    font-size: 11px;
    line-height: 1.25;
}

@media (max-width: 760px) {
    .lm-admin-footer-wrap .lm-public-footer {
        padding: 14px 20px 20px;
    }

    .lm-admin-footer-wrap .lm-public-footer-inner {
        gap: 8px;
        padding: 0 20px;
    }

    .lm-admin-footer-wrap .lm-public-footer-branding {
        gap: 10px;
    }
}

.lm-admin-header {
    align-items: center;
    background: var(--lm-panel);
    border-bottom: 4px solid var(--lm-accent);
    display: flex;
    justify-content: space-between;
    min-height: 112px;
    padding: 28px 36px 22px;
}

.lm-admin-kicker {
    color: var(--lm-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.lm-admin-header h1 {
    color: var(--lm-ink);
    font-size: 30px;
    font-weight: 750;
    line-height: 1.15;
    margin: 0;
}

.lm-admin-header-actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.lm-admin-public-link {
    align-items: center;
    background: var(--lm-accent-soft);
    border: 1px solid #d8c796;
    border-radius: 999px;
    color: var(--lm-brand-strong);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    text-decoration: none;
}

.lm-admin-public-link:hover,
.lm-admin-public-link:focus {
    background: var(--lm-accent);
    border-color: var(--lm-accent);
    color: #fff;
    text-decoration: none;
}

.lm-language-switcher {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin: 0;
}

.lm-language-switcher select {
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, var(--lm-brand) 50%),
        linear-gradient(135deg, var(--lm-brand) 50%, transparent 50%),
        var(--lm-panel);
    background-position:
        calc(100% - 16px) 50%,
        calc(100% - 11px) 50%,
        0 0;
    background-repeat: no-repeat;
    background-size:
        5px 5px,
        5px 5px,
        100% 100%;
    border: 1px solid var(--lm-line);
    border-radius: 999px;
    color: var(--lm-brand-strong);
    font-size: 13px;
    font-weight: 700;
    min-height: 38px;
    padding: 0 32px 0 14px;
}

.lm-language-switcher select:focus {
    border-color: var(--lm-brand);
    box-shadow: 0 0 0 0.2rem rgba(130, 36, 51, 0.12);
    outline: 0;
}

.lm-admin-content {
    max-width: 1120px;
    padding: 30px 36px 48px;
}

.lm-admin-content > form:first-child p {
    display: none;
}

.btn {
    border-radius: 6px;
    font-weight: 650;
}

.btn-primary {
    background: var(--lm-brand);
    border-color: var(--lm-brand);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--lm-brand-strong);
    border-color: var(--lm-brand-strong);
}

.btn-secondary {
    background: var(--lm-accent-soft);
    border-color: #d8c796;
    color: var(--lm-brand-strong);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--lm-accent);
    border-color: var(--lm-accent);
    color: #fff;
}

.btn-success {
    background: var(--lm-success);
    border-color: var(--lm-success);
}

.btn-warning {
    background: var(--lm-accent);
    border-color: var(--lm-accent);
    color: #fff;
}

.btn-warning:hover,
.btn-warning:focus {
    background: #d29e21;
    border-color: #d29e21;
    color: #fff;
}

.btn-danger {
    background: var(--lm-danger);
    border-color: var(--lm-danger);
}

.table {
    background: var(--lm-panel);
    border: 1px solid var(--lm-line);
    border-collapse: separate;
    border-radius: 8px;
    border-spacing: 0;
    overflow: hidden;
}

.table th {
    background: var(--lm-brand-soft);
    border-top: 0;
    color: var(--lm-brand-strong);
    font-size: 12px;
    text-transform: uppercase;
}

.table td,
.table th {
    border-color: var(--lm-line);
    vertical-align: middle;
}

.table a {
    color: var(--lm-brand);
    font-weight: 650;
}

.lm-actions-column {
    width: 110px;
}

.lm-table-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.lm-icon-action {
    align-items: center;
    background: var(--lm-brand-soft);
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--lm-brand);
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    width: 34px;
}

.lm-icon-action:hover,
.lm-icon-action:focus {
    background: var(--lm-brand);
    color: #fff;
    text-decoration: none;
}

.lm-icon-action-danger {
    background: #f7e6e8;
    color: var(--lm-danger);
}

.lm-icon-action-danger:hover,
.lm-icon-action-danger:focus {
    background: var(--lm-danger);
    color: #fff;
}

.modal-content,
.dropdown-menu {
    border-radius: 8px;
}

.form-control {
    border-color: var(--lm-line);
    border-radius: 6px;
    min-height: 42px;
}

.form-control:focus {
    border-color: var(--lm-brand);
    box-shadow: 0 0 0 0.2rem rgba(130, 36, 51, 0.12);
}

.form-check-input {
    margin-top: 0.3rem;
}

.card {
    border-color: var(--lm-line);
    border-radius: 8px;
}

.lm-stat-grid,
.lm-admin-panel-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.lm-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lm-admin-panel-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.lm-stat-card,
.lm-admin-panel {
    background: var(--lm-panel);
    border: 1px solid var(--lm-line);
    border-radius: 8px;
    padding: 24px;
}

.lm-stat-card h2 {
    color: var(--lm-brand-strong);
    font-size: 34px;
    font-weight: 760;
    line-height: 1;
    margin: 0 0 10px;
}

.lm-stat-label {
    color: var(--lm-accent);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.lm-admin-panel-header,
.lm-inline-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.lm-inline-actions.lm-toolbar {
    flex-direction: row-reverse;
    justify-content: end;
}

.lm-admin-panel-header {
    margin-bottom: 16px;
}

.lm-admin-panel-header h3 {
    color: var(--lm-brand-strong);
    font-size: 20px;
    font-weight: 740;
    margin: 0;
}

.lm-inline-actions {
    flex-wrap: wrap;
}

.lm-empty-copy {
    color: var(--lm-muted);
    margin: 0;
}


.lm-admin-panel .table {
    table-layout: fixed;
    width: 100%;
}

.lm-admin-panel .table th,
.lm-admin-panel .table td {
    overflow-wrap: anywhere;
}

.lm-admin-panel .table th {
    width: 42%;
}

.lm-meta-stack {
    margin-top: 16px;
}

.lm-meta-label {
    color: var(--lm-muted);
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.lm-inline-form {
    margin-top: 16px;
}

.lm-inline-form .form-control {
    max-width: 220px;
}

.lm-inline-note {
    color: var(--lm-muted);
    font-size: 12px;
    margin-left: 6px;
}

.lm-tag-subtle {
    background: #faf7f2;
}

.lm-status-card {
    border-top: 4px solid var(--lm-line);
}

.lm-status-card-ok {
    border-top-color: var(--lm-success);
}

.lm-status-card-warn {
    border-top-color: var(--lm-accent);
}

.lm-status-card-danger {
    border-top-color: var(--lm-danger);
}

.lm-status-card-neutral {
    border-top-color: var(--lm-brand);
}

.lm-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lm-tag {
    background: var(--lm-brand-soft);
    border: 1px solid rgba(130, 36, 51, 0.14);
    border-radius: 999px;
    color: var(--lm-brand-strong);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
}

.lm-toolbar {
    margin-bottom: 20px;
}


.lm-session-toolbar {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.lm-session-toolbar-group {
    align-items: center;
    background: var(--lm-panel);
    border: 1px solid var(--lm-line);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 20px;
}

.lm-session-toolbar-label {
    color: var(--lm-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.lm-session-toolbar-actions,
.lm-session-create-form,
.lm-session-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lm-session-create-form {
    margin: 0;
}

.lm-session-link {
    background: var(--lm-brand-soft);
    border: 1px solid rgba(130, 36, 51, 0.16);
    border-radius: 999px;
    color: var(--lm-brand-strong);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    text-decoration: none;
}

.lm-session-link:hover,
.lm-session-link:focus {
    background: var(--lm-brand);
    border-color: var(--lm-brand);
    color: #fff;
    text-decoration: none;
}


.lm-session-toolbar-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.lm-session-toolbar-actions .btn:disabled {
    background: #e3ddd8;
    border-color: #d2c8c2;
    color: #7e7470;
    opacity: 1;
}

.lm-session-toolbar-actions .btn:disabled img {
    filter: grayscale(1) brightness(0.7);
    opacity: 0.75;
}

.lm-session-toolbar-actions .btn-warning:not(:disabled) img,
.lm-session-toolbar-actions .btn-danger:not(:disabled) img {
    filter: brightness(0) invert(1);
}

.lm-session-toolbar-actions progress {
    flex: 0 0 120px;
}

.lm-form-panel {
    max-width: 720px;
}

.lm-form-check {
    margin-bottom: 22px;
}

.lm-user-status-toggle {
    margin-bottom: 18px;
}

.lm-session-tabs {
    border-bottom: 1px solid var(--lm-line);
    gap: 10px;
    margin: 0 36px;
    padding-top: 16px;
}

.lm-session-tabs .nav-item {
    margin-bottom: 0;
}

.lm-session-tabs .nav-link {
    align-items: center;
    background: #f3efec;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    color: #5b6473;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
}

.lm-session-tabs .nav-link img {
    filter: grayscale(1) brightness(0.45);
    opacity: 0.8;
}

.lm-session-tabs .nav-link:hover,
.lm-session-tabs .nav-link:focus {
    background: #ede6e0;
    border-color: #e2d7d0;
    color: var(--lm-brand-strong);
    text-decoration: none;
}

.lm-session-tabs .nav-link.active,
.lm-session-tabs .nav-item.show .nav-link {
    background: var(--lm-panel);
    border-color: var(--lm-line);
    border-bottom-color: var(--lm-panel);
    color: var(--lm-brand);
    font-weight: 800;
}

.lm-session-tabs .nav-link.active img,
.lm-session-tabs .nav-item.show .nav-link img {
    filter: brightness(0) saturate(100%) invert(17%) sepia(36%) saturate(2270%) hue-rotate(323deg) brightness(91%) contrast(92%);
    opacity: 1;
}

@media (max-width: 760px) {
    .lm-session-tabs {
        margin: 0 20px;
        overflow-x: auto;
        padding-bottom: 2px;
        white-space: nowrap;
    }

    .lm-session-tabs .nav-link {
        border-radius: 8px;
    }

    .lm-session-tabs .nav-link.active,
    .lm-session-tabs .nav-item.show .nav-link {
        border-bottom-color: var(--lm-line);
    }
}

#websocket-server-error {
    z-index: 2000;
}

@media (max-width: 760px) {
    .lm-admin-shell {
        display: block;
    }

    .lm-admin-sidebar {
        padding: 16px;
    }

    .lm-admin-brand {
        margin-bottom: 14px;
    }

    .lm-user-card {
        margin: 0 0 14px;
    }

    .lm-admin-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lm-admin-nav a {
        text-align: center;
    }

    .lm-admin-header {
        align-items: flex-start;
        gap: 16px;
        flex-direction: column;
        min-height: 0;
        padding: 22px 20px;
    }

    .lm-admin-titlebar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .lm-admin-logo {
        max-width: 89px;
    }

    .lm-admin-header h1 {
        font-size: 24px;
    }

    .lm-admin-header-actions {
        justify-content: flex-start;
    }

    .lm-admin-content {
        padding: 22px 20px 36px;
    }

    .lm-treatment-status-toggle {
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
    }

    .lm-treatment-identity-row {
        grid-template-columns: 1fr;
    }

    .lm-admin-panel,
    .lm-stat-card {
        padding: 20px;
    }
}


.lm-login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.lm-login-footer-wrap {
    align-self: stretch;
    margin-top: auto;
    width: 100%;
}

.lm-login-footer-wrap .lm-public-footer {
    background: transparent;
    border-top: 1px solid rgba(130, 36, 51, 0.14);
    margin-top: 28px;
    padding: 14px 28px 24px;
}

.lm-login-footer-wrap .lm-public-footer-inner {
    align-items: center;
    color: var(--lm-muted);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    margin: 0 auto;
    max-width: 1160px;
    padding: 0;
    text-align: center;
}

.lm-login-footer-wrap .lm-public-footer-branding {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: center;
}

.lm-login-footer-wrap .lm-public-footer-logo {
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.lm-login-footer-wrap .lm-public-footer-logo--uniroma {
    max-height: 32px;
    width: auto;
}

.lm-login-footer-wrap .lm-public-footer-logo--cimeo {
    border-radius: 3px;
    max-height: 32px;
    width: auto;
}

.lm-login-footer-wrap .lm-public-footer-copyblock {
    display: flex;
    flex-direction: column;
    gap: 1px;
    justify-content: center;
}

.lm-login-footer-wrap .lm-public-footer-title,
.lm-login-footer-wrap .lm-public-footer-copy {
    margin: 0;
}

.lm-login-footer-wrap .lm-public-footer-title {
    color: var(--lm-brand-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
}

.lm-login-footer-wrap .lm-public-footer-copy {
    font-size: 11px;
    line-height: 1.25;
}

@media (max-width: 760px) {
    .lm-login-footer-wrap .lm-public-footer {
        padding: 14px 20px 20px;
    }

    .lm-login-footer-wrap .lm-public-footer-inner {
        gap: 8px;
        max-width: 1160px;
        padding: 0;
    }

    .lm-login-footer-wrap .lm-public-footer-branding {
        gap: 10px;
    }
}

.lm-login-page {
    align-items: center;
    background:
        linear-gradient(180deg, var(--lm-brand) 0 220px, transparent 220px),
        var(--lm-bg);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 18px;
    position: relative;
}

.lm-login-topbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    left: 24px;
    position: absolute;
    right: 24px;
    top: 20px;
}

.lm-login-topbar-title {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}

.lm-login-topbar-title-main {
    font-size: 30px;
    font-weight: 780;
    letter-spacing: 0;
}

.lm-login-topbar-title-sub {
    font-size: 12px;
    font-weight: 560;
    letter-spacing: 0.02em;
    opacity: 0.88;
}

.lm-login-topbar-actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.lm-login-language .lm-language-switcher label {
    color: #fff;
}

.lm-login-public-link {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.lm-login-public-link:hover,
.lm-login-public-link:focus {
    background: var(--lm-accent);
    border-color: var(--lm-accent);
    color: #fff;
}

@media (max-width: 560px) {
    .lm-login-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        left: 18px;
        right: 18px;
        top: 16px;
    }

    .lm-login-topbar-title-main {
        font-size: 24px;
    }

    .lm-login-topbar-title-sub {
        font-size: 11px;
    }

    .lm-login-topbar-actions {
        align-items: flex-end;
        justify-content: space-between;
        width: 100%;
    }

    .lm-login-public-link {
        min-height: 36px;
        padding: 0 12px;
    }
}

.lm-login-panel {
    max-width: 440px;
    width: 100%;
}

.lm-login-brand {
    align-items: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    margin-bottom: 14px;
    text-align: center;
}

.lm-login-logo {
    display: block;
    height: auto;
    max-width: 220px;
    width: 100%;
}

.lm-login-brand strong,
.lm-login-brand small {
    display: block;
    line-height: 1.1;
}

.lm-login-brand small {
    color: #ead7dc;
    font-size: 12px;
    margin-top: 4px;
}

.lm-login-card {
    background: var(--lm-panel);
    border: 1px solid var(--lm-line);
    border-top: 5px solid var(--lm-accent);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(36, 31, 33, 0.16);
    padding: 28px 30px 30px;
}

.lm-login-heading {
    margin-bottom: 22px;
    text-align: center;
}

.lm-login-heading h1 {
    color: var(--lm-ink);
    font-size: 25px;
    font-weight: 750;
    line-height: 1.15;
    margin: 0;
}

.lm-login-form label {
    color: var(--lm-brand-strong);
    font-size: 13px;
    font-weight: 700;
}

.lm-login-form .form-control {
    border-color: var(--lm-line);
    border-radius: 6px;
    min-height: 44px;
}

.lm-login-form .form-control:focus {
    border-color: var(--lm-brand);
    box-shadow: 0 0 0 0.2rem rgba(130, 36, 51, 0.16);
}

.lm-login-help {
    font-size: 13px;
    margin: -4px 0 18px;
    text-align: right;
}

.lm-login-help a {
    color: var(--lm-brand);
    font-weight: 650;
}

.lm-sessions-table {
    table-layout: auto;
    width: 100%;
}

.lm-sessions-table th,
.lm-sessions-table td {
    white-space: nowrap;
    width: 1%;
}

.lm-sessions-table .lm-col-label {
    white-space: normal;
    width: 99%;
}

.lm-sessions-table .lm-col-exports {
    width: 1%;
}

.lm-sessions-table .lm-col-exports .lm-session-links {
    flex-wrap: nowrap;
}

.lm-sessions-table .lm-col-select {
    text-align: center;
    width: 1%;
}

.lm-sessions-table .lm-col-size {
    text-align: center;
}

.lm-session-code {
    color: var(--lm-brand);
    font-weight: 700;
}


.lm-settings-stack {
    display: grid;
    gap: 24px;
}

.lm-settings-panel {
    width: 100%;
}

.lm-settings-header-row {
    align-items: flex-start;
    gap: 16px;
}

.lm-panel-copy {
    margin: 8px 0 0;
    max-width: 78ch;
    color: #5b6473;
    line-height: 1.6;
}

.lm-panel-copy-wide {
    margin: 8px 0 0;
    color: #5b6473;
    line-height: 1.6;
}

.lm-settings-form-card,
.lm-treatment-form-card {
    display: grid;
    gap: 16px;
}

.lm-treatment-form-card .lm-panel-copy {
    max-width: none;
}

.lm-treatment-form-card {
    max-width: none;
    width: 100%;
}

.lm-settings-form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lm-settings-form-grid--platform {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lm-treatment-header-row {
    align-items: flex-start;
}

.lm-treatment-status-toggle {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    min-width: 180px;
}

.lm-treatment-status-label {
    color: var(--lm-brand-strong);
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

.lm-treatment-identity-row {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(180px, 0.8fr) minmax(120px, 0.5fr);
}

.lm-treatment-parameters-section {
    background: var(--lm-panel-soft);
    border: 1px solid rgba(130, 36, 51, 0.18);
    border-left: 4px solid var(--lm-accent);
    border-radius: 8px;
    margin-top: 22px;
    padding: 18px 20px 20px;
}

.lm-treatment-parameters-section .lm-admin-panel-header {
    margin-bottom: 8px;
}

.lm-treatment-parameters-section .lm-admin-panel-header h4 {
    color: var(--lm-brand-strong);
    font-size: 18px;
    margin-bottom: 4px;
}

.lm-treatment-parameters-grid {
    display: grid;
    gap: 16px 18px;
}

.lm-treatment-parameters-grid--primary {
    grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(220px, 1.5fr) minmax(120px, 0.9fr);
}

.lm-treatment-parameters-grid--secondary {
    grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(220px, 1.5fr) minmax(120px, 0.9fr);
    margin-top: 16px;
}

.lm-treatment-field--compact {
    max-width: 220px;
}

.lm-treatment-parameters-grid--primary .lm-treatment-field--compact,
.lm-treatment-parameters-grid--secondary .lm-treatment-field--compact {
    max-width: none;
}

.lm-switch {
    display: inline-flex;
    position: relative;
    width: 48px;
    height: 28px;
    margin: 0;
}

.lm-switch input {
    height: 0;
    opacity: 0;
    width: 0;
}

.lm-switch-slider {
    background: #c8c3be;
    border-radius: 999px;
    cursor: pointer;
    inset: 0;
    position: absolute;
    transition: background 0.2s ease;
}

.lm-switch-slider::before {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(36, 31, 33, 0.18);
    content: '';
    height: 22px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 0.2s ease;
    width: 22px;
}

.lm-switch input:checked + .lm-switch-slider {
    background: var(--lm-success);
}

.lm-switch input:checked + .lm-switch-slider::before {
    transform: translateX(20px);
}

.lm-switch input:focus + .lm-switch-slider {
    box-shadow: 0 0 0 0.2rem rgba(82, 111, 91, 0.16);
}

.lm-language-tabs {
    border-bottom: 1px solid var(--lm-line);
    gap: 6px;
}

.lm-language-tabs .nav-item {
    margin-bottom: -1px;
}

.lm-language-tabs .nav-link {
    background: #f7f3ee;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    color: var(--lm-muted);
    font-weight: 700;
    padding: 10px 14px;
}

.lm-language-tabs .nav-link:hover,
.lm-language-tabs .nav-link:focus {
    border-color: transparent;
    color: var(--lm-brand);
}

.lm-language-tabs .nav-link.active,
.lm-language-tabs .nav-item.show .nav-link {
    background: var(--lm-panel);
    border-color: var(--lm-line) var(--lm-line) var(--lm-panel);
    color: var(--lm-brand-strong);
}

.lm-language-tab-content {
    border: 1px solid var(--lm-line);
    border-top: 0;
    border-radius: 0 8px 8px 8px;
    padding: 18px;
}

.lm-language-tab-content .tab-pane > .lm-admin-panel-header {
    margin-bottom: 12px;
}

.lm-language-tab-content .form-group {
    min-width: 0;
}

.lm-language-tab-content .form-control {
    max-width: none;
    width: 100%;
}

.lm-language-tab-content textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.lm-treatment-link-input-row {
    align-items: center;
    display: flex;
    gap: 10px;
}

.lm-treatment-link-input-row .form-control {
    flex: 1 1 auto;
}

.lm-treatment-link-preview {
    align-items: center;
    background: var(--lm-accent-soft);
    border: 1px solid #d8c796;
    border-radius: 8px;
    color: var(--lm-brand-strong);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    white-space: nowrap;
}

.lm-treatment-link-preview:hover,
.lm-treatment-link-preview:focus {
    background: var(--lm-accent);
    border-color: var(--lm-accent);
    color: #fff;
    text-decoration: none;
}

.lm-settings-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    padding-top: 8px;
}

.lm-table-wrap {
    overflow-x: auto;
}

.table.lm-settings-table {
    min-width: 920px;
    table-layout: auto;
    width: 100%;
}

.table.lm-settings-table th,
.table.lm-settings-table td:not(.lm-col-actions) {
    white-space: nowrap;
    width: 1%;
}

.table.lm-settings-table .lm-col-name {
    white-space: normal;
    width: 99%;
}

/*.table.lm-settings-table .lm-col-actions,*/
.table.lm-settings-table .lm-col-drag,
.table.lm-settings-table .lm-col-bots,
.table.lm-settings-table .lm-col-stage,
.table.lm-settings-table .lm-col-order,
.table.lm-settings-table .lm-col-key {
    white-space: nowrap;
    width: 1%;
}

.table.lm-settings-table .lm-col-bots,
.table.lm-settings-table .lm-col-stage,
.table.lm-settings-table .lm-col-rounds,
.table.lm-settings-table .lm-col-order {
    text-align: center;
}

.lm-settings-actions {
    white-space: nowrap;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.lm-settings-form-layout {
    max-width: 1040px;
}

.lm-icon-action-success {
    border-color: rgba(34, 139, 94, 0.24);
    color: #227f59;
    background: rgba(34, 139, 94, 0.12);
}

.lm-icon-action-success:hover,
.lm-icon-action-success:focus {
    color: #195f43;
    background: rgba(34, 139, 94, 0.2);
}

.lm-settings-actions form {
    margin: 0;
}

.lm-settings-actions button.lm-icon-action {
    cursor: pointer;
}

.lm-settings-form-card select.form-control,
.lm-settings-form-card select.form-control option {
    color: var(--lm-brand-strong);
    background: #fff;
}

.lm-order-form {
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.lm-order-input {
    width: 5.5rem;
    min-width: 5.5rem;
}

.lm-session-filter-panel {
    margin-bottom: 1rem;
}

.lm-session-filter-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.lm-session-filter-form .form-group {
    margin-bottom: 0;
    min-width: 220px;
    flex: 1 1 220px;
}

.lm-session-filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.lm-session-pagination {
    margin: 1rem 0;
}

.lm-session-pagination-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}


.lm-bot-parameters-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(123, 31, 46, 0.12);
}

.lm-bot-parameters-section .lm-admin-panel-header {
  margin-bottom: 16px;
}

.lm-bot-parameters-section .lm-admin-panel-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #7b1f2e;
}

.lm-bot-parameters-grid {
  border-left: 3px solid rgba(123, 31, 46, 0.18);
  padding-left: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lm-bot-parameters-grid .form-group {
  min-width: 0;
}

@media (max-width: 760px) {
  .lm-bot-parameters-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lm-bot-strategy-row {
  margin-bottom: 18px;
  max-width: 420px;
}

.lm-bot-strategy-row select.form-control {
  width: 100%;
}

.lm-col-drag {
    width: 2.75rem;
}

.lm-drag-handle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--lm-muted);
    cursor: grab;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    padding: 0;
    width: 2rem;
}

.lm-drag-handle:hover,
.lm-drag-handle:focus {
    background: var(--lm-brand-soft);
    color: var(--lm-brand);
}

.table.lm-settings-table tbody tr[draggable='true'] {
    cursor: grab;
}

.table.lm-settings-table tbody tr.lm-row-dragging {
    opacity: 0.45;
}

.lm-hidden-form {
    display: none;
}

.lm-settings-actions .lm-icon-action,
.lm-settings-actions button.lm-icon-action {
    flex: 0 0 34px;
    height: 34px;
    max-height: 34px;
    max-width: 34px;
    min-height: 34px;
    min-width: 34px;
    width: 34px;
}

.lm-bot-profile-list {
    display: grid;
    gap: 16px;
}

.lm-bot-profile-card {
    border: 1px solid var(--lm-line);
    border-radius: 8px;
    padding: 18px;
    background: rgba(130, 36, 51, 0.02);
}

.lm-bot-profile-header h6 {
    margin: 0 0 12px;
    color: var(--lm-brand-strong);
    font-size: 14px;
    font-weight: 700;
}

.lm-bot-profile-top-grid {
    margin-bottom: 8px;
}

.lm-bot-profile-phase-heading {
    color: var(--lm-brand-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 6px 0 10px;
    text-transform: uppercase;
}

.lm-bot-phase-toggle {
    margin: 12px 0 4px;
}

.lm-bot-profile-phase-two {
    border-top: 1px solid rgba(130, 36, 51, 0.12);
    margin-top: 10px;
    padding-top: 12px;
}

.lm-help-sections {
    display: grid;
    gap: 16px;
}

.lm-help-section {
    border: 1px solid var(--lm-line);
    border-radius: 8px;
    padding: 18px 20px;
    background: var(--lm-panel);
}

.lm-help-section h4 {
    color: var(--lm-brand-strong);
    font-size: 17px;
    margin: 0 0 10px;
}

.lm-help-section p:last-child,
.lm-help-section ul:last-child {
    margin-bottom: 0;
}

.lm-settings-table .lm-col-rounds {
    white-space: nowrap;
}

.lm-session-health {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.lm-session-health-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
}

.lm-session-health-badge--abandoned {
    background: #f8efe0;
    color: #9a680c;
    border: 1px solid #ead4af;
}

.lm-session-health-badge--unfinished {
    background: #eef1f5;
    color: #4e5968;
    border: 1px solid #d5dce6;
}

.lm-session-health-badge--reserved {
    background: #eaf0fb;
    color: #2f5f9a;
    border: 1px solid #cbdaf1;
}


.lm-treatment-stage {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.lm-treatment-stage--alpha {
    background: rgba(196, 138, 29, 0.14);
    color: #b7791f;
}

.lm-treatment-stage--beta {
    background: rgba(38, 108, 180, 0.14);
    color: #2b6cb0;
}

.lm-treatment-stage--release {
    background: rgba(34, 139, 94, 0.14);
    color: #227f59;
}

input[type="number"] {
    text-align: center;
}


.lm-activity-table th,
.lm-activity-table td {
  vertical-align: top;
}

.lm-activity-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.lm-activity-badge--reserved {
  color: #7c2d12;
  background: #ffedd5;
  border-color: #fdba74;
}

.lm-activity-badge--public {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #93c5fd;
}


.lm-sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lm-sort-link:hover,
.lm-sort-link:focus {
  color: #0f172a;
  text-decoration: none;
}

.lm-sort-link.is-active {
  color: #0f172a;
}


.lm-bot-parameter-group-list {
  display: grid;
  gap: 18px;
}

.lm-bot-parameter-group-card {
  padding: 18px;
}

.lm-bot-parameter-group-header {
  margin-bottom: 12px;
}

.lm-bot-parameter-group-header h6 {
  color: #7b1f2e;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.lm-bot-parameter-group-header .lm-panel-copy {
  margin-bottom: 0;
}


@media (max-width: 1200px) {
    .lm-treatment-parameters-grid--primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lm-treatment-parameters-grid--secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .lm-treatment-parameters-grid--primary,
    .lm-treatment-parameters-grid--secondary {
        grid-template-columns: minmax(0, 1fr);
    }
}
