/* V14: навигация, доступность и удобство */

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 8px;
    left: 8px;
    padding: 9px 12px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--background);
    font-size: 10px;
    font-weight: 700;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

a,
button,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

button,
a {
    touch-action: manipulation;
}

.header-calendar-button {
    display: grid;
    place-items: center;
}

.sidebar-staff-link {
    color: var(--accent) !important;
}

.account-control-card {
    display: grid;
    gap: 10px;
}

.account-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.account-quick-actions > a,
.account-quick-actions button {
    display: grid;
    width: 100%;
    min-height: 30px;
    place-items: center;
    padding: 6px;
    border: 0;
    border-radius: 8px;
    background: var(--deep);
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
}

.account-quick-actions form {
    margin: 0;
}

.account-quick-actions > a:first-child {
    color: var(--accent);
}

.profile-logout-form {
    margin-top: 14px;
    margin-bottom: 20px;
}

.profile-logout-button {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--deep);
    border-radius: 11px;
    background: var(--deep);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.profile-logout-button b {
    color: var(--accent);
    font-size: 15px;
    font-weight: 400;
}

.mobile-nav a.active {
    color: var(--accent);
}

.mobile-nav a.active::before {
    position: absolute;
    top: 2px;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--accent);
    content: "";
}

.mobile-nav a {
    position: relative;
}

.messages {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 50%;
    width: min(calc(100% - 24px), 480px);
    transform: translateX(-50%);
}

.message {
    box-shadow: 0 10px 30px var(--background);
}

.staff-action-button,
.staff-report-actions button,
.staff-event-actions button,
.account-quick-actions button,
.profile-logout-button {
    cursor: pointer;
}

.staff-action-button:disabled {
    cursor: not-allowed;
}

.staff-table-main,
.staff-event-list article > div:first-child,
.notification-copy,
.event-card-copy {
    overflow-wrap: anywhere;
}

@media (max-width: 730px) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-nav {
        padding-bottom: max(6px, env(safe-area-inset-bottom));
    }

    .mobile-nav.staff-nav {
        gap: 0;
    }

    .mobile-nav.staff-nav a {
        min-width: 0;
        padding-right: 3px;
        padding-left: 3px;
    }

    .mobile-nav.staff-nav span {
        overflow: hidden;
        max-width: 100%;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    .mobile-nav.staff-nav span {
        font-size: 7px;
    }

    .staff-section-navigation {
        scrollbar-width: none;
    }

    .staff-section-navigation::-webkit-scrollbar {
        display: none;
    }

    .profile-stat-line {
        gap: 6px;
    }

    .profile-stat-line > * {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
