/* Evelon admin – dashboard layout */

main.admin-main {
    padding: 0 0 4rem;
    min-height: 100vh;
}

/* ––– Hero ––– */
.admin-hero {
    position: relative;
    padding: 5.5rem 0 2rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-align: center;
}

.admin-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% -30%, rgba(0, 255, 136, 0.16), transparent 55%),
        radial-gradient(ellipse 40% 35% at 90% 60%, rgba(255, 60, 80, 0.06), transparent 45%),
        linear-gradient(180deg, rgba(11, 15, 13, 0.95) 0%, var(--charcoal) 100%);
    pointer-events: none;
}

.admin-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.02) 2px,
        rgba(255, 255, 255, 0.02) 3px
    );
    pointer-events: none;
}

.admin-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    margin: 0 auto;
}

.admin-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--matrix-green);
    margin: 0 0 0.65rem;
}

.admin-hero-kicker i {
    font-size: 0.9rem;
    opacity: 0.9;
}

.admin-hero .page-title,
.admin-hero-title {
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 800;
    color: var(--white);
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
}

.admin-hero-subtitle {
    margin: 0 auto;
    max-width: 28rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--matrix-green);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ––– Shell + tabs ––– */
.admin-page-shell {
    max-width: 1180px;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.25rem 0 1.35rem;
    margin: 0;
    border: none;
    background: transparent;
    overflow: visible;
}

.admin-tab {
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    color: var(--gray-light);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.admin-tab:hover {
    color: var(--white);
    border-color: rgba(0, 255, 136, 0.35);
    background: rgba(0, 255, 136, 0.06);
}

.admin-tab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.35);
}

.admin-tab.is-active {
    color: var(--matrix-green);
    border-color: rgba(0, 255, 136, 0.45);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 24px rgba(0, 255, 136, 0.08);
}

.admin-panel {
    display: none;
    padding: 0 0 2rem;
    animation: admin-panel-in 0.22s ease;
}

.admin-panel.is-active {
    display: block;
}

@keyframes admin-panel-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ––– Cards ––– */
.admin-card {
    position: relative;
    background: linear-gradient(150deg, rgba(22, 28, 26, 0.98) 0%, rgba(11, 15, 13, 0.96) 100%);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem 1.5rem 1.65rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 0 0 1px rgba(0, 255, 136, 0.04),
        0 20px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.admin-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--matrix-green), rgba(0, 255, 136, 0.12));
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    opacity: 0.85;
    pointer-events: none;
}

.admin-card h3 {
    position: relative;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: -0.02em;
}

.admin-card .about-text {
    margin-bottom: 1rem;
    color: var(--gray-light);
    line-height: 1.55;
}

.admin-actions {
    margin-top: 1.15rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.admin-actions .btn {
    margin-right: 0;
}

.admin-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-light);
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.admin-loading::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--matrix-green);
    box-shadow: 0 0 10px var(--matrix-green);
    animation: admin-pulse 1s ease-in-out infinite;
}

@keyframes admin-pulse {
    0%,
    100% {
        opacity: 0.35;
    }
    50% {
        opacity: 1;
    }
}

.admin-error {
    color: #f87171;
    margin: 0.5rem 0;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius);
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    font-size: 0.95rem;
}

.admin-empty {
    color: var(--gray-light);
    font-style: italic;
    padding: 1rem 0;
    margin: 0;
}

.admin-empty--plain {
    font-style: normal;
    font-size: 0.9rem;
    padding: 0 0 0.75rem;
}

.admin-back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--matrix-green);
    text-decoration: none;
    font-weight: 600;
}

.admin-back-link:hover {
    text-decoration: underline;
}

.admin-btn-danger {
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.45) !important;
}

.admin-btn-danger:hover {
    background: rgba(248, 113, 113, 0.1) !important;
    border-color: #f87171 !important;
}

/* ––– Form controls ––– */
.admin-field-group {
    margin-bottom: 1.5rem;
}

.admin-help {
    color: var(--gray-light);
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
    line-height: 1.45;
}

.admin-input {
    width: 100%;
    max-width: 420px;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-input:focus {
    outline: none;
    border-color: var(--matrix-green);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.15);
}

.admin-input--mono {
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.9rem;
}

.admin-settings-status {
    color: var(--gray-light);
    margin-left: 0.75rem;
    font-size: 0.9rem;
}

/* ––– Tables ––– */
.admin-table-shell {
    overflow-x: auto;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.permissions-table,
.rules-list-table,
.apps-table,
.submissions-table {
    width: 100%;
    border-collapse: collapse;
}

.permissions-table th,
.permissions-table td,
.rules-list-table th,
.rules-list-table td,
.apps-table th,
.apps-table td,
.submissions-table th,
.submissions-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.permissions-table th,
.rules-list-table th,
.apps-table th,
.submissions-table th {
    background: rgba(0, 255, 136, 0.07);
    color: var(--matrix-green);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.permissions-table tr:last-child td,
.rules-list-table tr:last-child td,
.apps-table tr:last-child td,
.submissions-table tr:last-child td {
    border-bottom: 0;
}

.permissions-table td,
.rules-list-table td,
.apps-table td,
.submissions-table td {
    color: var(--gray-light);
}

.permissions-table .role-name {
    font-weight: 600;
    color: var(--white);
    display: block;
}

.permissions-table .role-id {
    font-size: 0.72rem;
    color: var(--gray-light);
    margin-top: 0.25rem;
    display: block;
    font-family: ui-monospace, "Consolas", monospace;
    opacity: 0.85;
}

.permissions-table input[type="checkbox"] {
    accent-color: var(--matrix-green);
    cursor: pointer;
    width: 1.05rem;
    height: 1.05rem;
}

/* ––– App forms list rows ––– */
.app-form-admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
    margin-bottom: 0.65rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.app-form-admin-row:hover {
    border-color: rgba(0, 255, 136, 0.25);
    background: rgba(0, 255, 136, 0.04);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.app-form-admin-row strong {
    color: var(--white);
    display: block;
    font-size: 1rem;
}

.app-form-admin-row .admin-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.app-form-admin-row .admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.app-form-admin-row-main {
    flex: 1;
    min-width: 0;
}

.app-form-admin-slug {
    color: var(--gray-light);
    font-size: 0.85rem;
}

.app-form-admin-pill {
    display: inline-block;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-form-admin-pill--cat {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.28);
    color: var(--matrix-green);
}

.app-form-admin-pill--open {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
}

.app-form-admin-pill--closed {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fecaca;
}

/* ––– Modals ––– */
.app-form-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    overflow-y: auto;
}

.app-form-modal-overlay.hidden {
    display: none;
}

.app-form-modal {
    background: linear-gradient(165deg, rgba(26, 32, 30, 0.98) 0%, rgba(11, 15, 13, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 0 0 1px rgba(0, 255, 136, 0.06),
        0 24px 64px rgba(0, 0, 0, 0.65);
    margin: auto;
}

.app-form-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 1rem;
}

.app-form-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: -0.02em;
}

.app-form-modal-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    font-size: 1.1rem;
    cursor: pointer;
    transition:
        color 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

.app-form-modal-close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.app-form-modal-body {
    padding: 1.5rem;
}

.app-form-label {
    display: block;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
}

.app-form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-form-modal-body select {
    width: 100%;
    padding: 0.75rem 2rem 0.75rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.app-form-modal-body select option {
    background: var(--charcoal);
    color: var(--white);
}

.app-status-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

.app-status-dropdown-list button:hover {
    background: rgba(0, 255, 136, 0.15) !important;
}

.app-status-dropdown-list button[data-value] {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-status-dropdown-list button[data-value]:last-child {
    border-bottom: none;
}

.apps-templates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.apps-templates button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.95rem;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease;
}

.apps-templates button:hover {
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.06);
}

.apps-templates button.is-selected {
    border-color: var(--matrix-green);
    background: rgba(0, 255, 136, 0.1);
}

.submissions-table select {
    padding: 0.4rem 0.55rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font);
    cursor: pointer;
}

.submissions-table select:focus {
    border-color: var(--matrix-green);
    outline: none;
}

.status-pending {
    color: #fbbf24;
}

.status-accepted {
    color: var(--matrix-green);
}

.status-rejected {
    color: #f87171;
}

.submission-answers {
    font-size: 0.85rem;
    color: var(--gray-light);
    margin-top: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: rgba(0, 0, 0, 0.45);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    white-space: pre-wrap;
}

/* ––– Rules ––– */
.rules-panel-intro {
    margin-bottom: 1.5rem;
    color: var(--gray-light);
    line-height: 1.55;
}

.rules-panel-intro a {
    color: var(--matrix-green);
    font-weight: 600;
}

.rules-section {
    margin-bottom: 2rem;
}

.rules-section-head {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--matrix-green);
    margin-bottom: 0.65rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.rules-section-head span {
    color: var(--gray-light);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: normal;
    text-transform: none;
}

.rules-table-wrap {
    overflow-x: auto;
    margin-bottom: 0.5rem;
}

.rules-list-table {
    margin-bottom: 0;
}

.rule-form-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    margin-top: 1.5rem;
}

.rule-form-card--flush-top {
    margin-top: 0;
}

.rule-form-card h4 {
    font-size: 1.05rem;
    color: var(--white);
    margin: 0 0 1rem;
    font-weight: 700;
}

.rule-form label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--gray-light);
    font-size: 0.88rem;
    font-weight: 500;
}

.rule-form input,
.rule-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.55rem 0.75rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font);
    font-size: 1rem;
}

.rule-form input:focus,
.rule-form textarea:focus,
.rule-form select:focus {
    border-color: var(--matrix-green);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.12);
}

.rule-form select {
    width: 100%;
    max-width: 320px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font);
    font-size: 1rem;
    cursor: pointer;
}

.rule-form textarea {
    min-height: 140px;
    resize: vertical;
}

.rule-form-actions {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rule-form-actions .btn {
    margin-right: 0;
}

.rule-form-status {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    color: var(--gray-light);
}

.rules-table-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.rules-table-actions .btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
}

.category-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.category-form-name {
    max-width: 280px;
    flex: 1 1 180px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font);
    font-size: 1rem;
}

.category-form-sort {
    max-width: 88px;
    width: 88px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font);
    font-size: 1rem;
}

.category-form-name:focus,
.category-form-sort:focus {
    outline: none;
    border-color: var(--matrix-green);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.12);
}

.admin-actions--tight-bottom {
    margin-bottom: 1.35rem;
}

/* ––– Field editor blocks (admin-app-forms) ––– */
.app-form-field-editor {
    padding: 1rem 1.1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.app-form-field-editor-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 0.5rem;
    align-items: end;
    margin-bottom: 0.5rem;
}

@media (max-width: 720px) {
    .app-form-field-editor-grid {
        grid-template-columns: 1fr 1fr;
    }

    .app-form-field-editor-grid .field-delete {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

.app-form-field-label {
    display: block;
    color: var(--white);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.app-form-field-input {
    width: 100%;
    padding: 0.5rem 0.55rem;
    box-sizing: border-box;
}

.app-form-field-editor .field-delete {
    align-self: end;
    margin-bottom: 0.05rem;
}

.app-form-field-editor input[type="text"],
.app-form-field-editor input[type="number"],
.app-form-field-editor select,
.app-form-field-editor textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: var(--white);
    font-family: inherit;
}

.app-form-field-editor input:focus,
.app-form-field-editor select:focus,
.app-form-field-editor textarea:focus {
    border-color: var(--matrix-green);
    outline: none;
}

/* ––– Staff admin ––– */
.staff-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .staff-admin-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.staff-admin-list {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 1rem;
    max-height: min(70vh, 560px);
    overflow-y: auto;
}

@media (max-width: 900px) {
    .staff-admin-list {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        max-height: none;
    }
}

.staff-admin-detail {
    padding: 0.25rem 0 0;
}

.staff-admin-detail .admin-empty {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    text-align: center;
}

.staff-admin-role {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--matrix-green);
    margin: 1rem 0 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.15);
}

.staff-admin-role:first-child {
    margin-top: 0;
}

.staff-admin-person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.35rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
    font: inherit;
    text-align: left;
    color: inherit;
}

.staff-admin-person:hover {
    border-color: rgba(0, 255, 136, 0.35);
    background: rgba(0, 255, 136, 0.06);
}

.staff-admin-person.is-active {
    border-color: rgba(0, 255, 136, 0.45);
    background: rgba(0, 255, 136, 0.1);
}

.staff-admin-person-main {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.staff-admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(0, 255, 136, 0.2);
    flex-shrink: 0;
}

.staff-admin-person.is-active .staff-admin-avatar {
    border-color: rgba(0, 255, 136, 0.45);
}

.staff-admin-name {
    font-weight: 600;
    color: var(--white);
}

.staff-admin-area-snippet {
    font-size: 0.78rem;
    color: var(--gray-light);
    max-width: 200px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    flex-shrink: 0;
}

#staffAdminTitle {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--white);
}

#staffAdminArea {
    width: 100%;
    max-width: 100%;
    min-height: 140px;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font);
    resize: vertical;
}

#staffAdminArea:focus {
    outline: none;
    border-color: var(--matrix-green);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.12);
}

#staffAdminStatus {
    color: var(--gray-light);
    font-size: 0.9rem;
}
