:root {
    --bg-khaki: #121c17;
    --panel-bg: rgba(30, 36, 33, 0.6);
    --panel-border: rgba(255, 255, 255, 0.1);
    --neon-green: #00ff66;
    --text-main: #e0e0e0;
    --text-muted: #88928d;
    --event-regional: #ffffff;
    --event-server: #00ff66;
    --event-global: #ffd700;
}

body {
    margin: 0;
    padding: 20px;
    background: radial-gradient(circle at top right, #1a2a22 0%, var(--bg-khaki) 70%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    box-sizing: border-box;
}

body:has(.modal-overlay:not(.hidden)),
body:has(.day-modal:not(.hidden)) {
    overflow: hidden !important;
    touch-action: none;
}

.app-container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 40px);
}

.glass-panel {
    background: rgba(20, 26, 23, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --- Календарь --- */
.calendar-section {
    flex: 3;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0;
}

.calendar-header h1 {
    margin: 0;
    line-height: 1;
}

.neon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.neon-btn:active {
    background: var(--neon-green) !important;
    color: var(--bg-khaki) !important;
    box-shadow: 0 0 15px var(--neon-green) !important;
    transform: scale(0.92) !important;
    transition: none !important;
}

.neon-btn:focus,
.neon-btn:focus-visible,
.neon-btn:focus-within {
    outline: none !important;
    background: transparent !important;
    color: var(--neon-green) !important;
    box-shadow: none !important;
    transform: scale(1) !important;
    -webkit-tap-highlight-color: transparent !important;
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.weekdays-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    font-weight: bold;
    color: var(--text-muted);
}

.days-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(0, 1fr);
    gap: 8px;
    flex: 1;
    min-height: 0;
}

.day-cell {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 6px;
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.day-cell::-webkit-scrollbar {
    width: 4px;
}

.day-cell::-webkit-scrollbar-track {
    margin-top: 8px;
    margin-bottom: 8px;
    background: transparent;
}

.day-cell::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 10px;
}

.day-number {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
    transition: color 0.3s;
}

.event-item {
    flex-shrink: 0;
    font-size: 0.75rem;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    border-left: 4px solid var(--current-event-color);
    color: var(--current-event-color);
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.1s linear;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.event-regional {
    --current-event-color: var(--event-regional);
}

.event-server {
    --current-event-color: var(--event-server);
}

.event-global {
    --current-event-color: var(--event-global);
}

.marquee-wrapper {
    display: flex;
    width: max-content;
    white-space: nowrap;
    transition: none !important;
}

.event-scroll-text {
    display: inline-block;
    padding-right: 20px;
    transition: none !important;
}

.event-item:hover .marquee-wrapper {
    animation: marquee-infinite 3s linear infinite !important;
    animation-delay: 0s !important;
}

@keyframes marquee-infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.event-item:not(:hover) .marquee-wrapper {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* --- Сайбар и фильтры --- */
.sidebar-section {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    overflow-y: auto;
}

.sidebar-section h2 {
    margin-top: 0;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 10px;
    color: var(--neon-green);
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.regions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    user-select: none;
    transition: color 0.2s ease;
}

.custom-checkbox:hover {
    color: var(--neon-green);
}

.filter-icon {
    font-size: 1.4em;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox input:checked~.checkmark {
    background: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.5);
    animation: pulseCheck 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseCheck {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.custom-checkbox input:checked~.checkmark::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 12px;
    border: solid var(--bg-khaki);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --- Модальные окна --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    width: 100%;
    height: 100%;
    animation: fadeInModal 0.3s ease forwards;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-overlay.hidden {
    display: none;
}

.modal-content,
.day-modal-content {
    width: 90vw !important;
    max-width: 450px;
    max-height: 75vh !important;
    overflow-y: auto !important;
    padding: 24px 20px !important;
    margin: auto;
    background: #1a1a1a;
    border: 1px solid var(--neon-green);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 255, 102, 0.15), 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem !important;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 2100;
    background: transparent;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: var(--neon-green);
    transform: scale(1.1);
}

.modal-content h2,
.day-modal-content h2 {
    padding-right: 40px;
    margin-top: 0;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.neon-text {
    color: var(--neon-green);
}

.modal-date-main {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-main);
    line-height: 1.2;
    padding-right: 50px !important;
}

.modal-date-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: normal;
}

.day-modal-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 0;
    align-content: start;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0px, black 30px, black calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0px, black 30px, black calc(100% - 30px), transparent 100%);
    padding-top: 10px;
    padding-bottom: 10px;
}

.day-modal-list::-webkit-scrollbar {
    width: 6px;
}

.day-modal-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.day-modal-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 102, 0.4);
    border-radius: 4px;
    transition: background 0.3s;
}

.day-modal-list::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}

.day-modal-event {
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid var(--current-event-color);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.day-modal-event-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--current-event-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.day-modal-event-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: none;
}

.detail-value {
    font-size: 1.1rem;
    color: var(--text-main);
}

/* --- Админка --- */
#loginBtn,
#createEventBtn {
    width: 100% !important;
    height: auto !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.5px !important;
    white-space: normal !important;
}

.delete-btn {
    width: auto !important;
    height: auto !important;
    padding: 6px 16px !important;
    background: transparent;
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #ff4d4d;
    color: var(--bg-khaki);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.4);
}

.logout-btn {
    width: auto !important;
    height: auto !important;
    padding: 8px 24px !important;
    background: transparent !important;
    color: #ff4d4d !important;
    border: 1px solid #ff4d4d !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.logout-btn:hover {
    background: #ff4d4d !important;
    color: var(--bg-khaki) !important;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.4) !important;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #00ff66;
    border-radius: 10px;
    box-shadow: none !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #33ff85;
}

#adminEventsList {
    padding-right: 10px !important;
}

#adminRegionFilter {
    flex: 1;
    min-width: 140px;
    height: 36px;
    margin-left: 0 !important;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 5px 10px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

#adminRegionFilter option {
    background: var(--bg-khaki);
    color: #fff;
}

#globalToggleContainer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.switch-wrapper {
    position: relative;
    width: 180px !important;
    height: 36px !important;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.switch-input {
    display: none;
}

.switch-label {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.switch-text {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-main);
    z-index: 3;
    transition: color 0.3s ease;
    user-select: none;
}

.switch-handle {
    position: absolute;
    width: calc(50% - 4px) !important;
    height: 30px !important;
    top: 2px !important;
    left: 2px !important;
    background: var(--neon-green);
    border-radius: 16px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}

.switch-input:checked~.switch-label .switch-handle {
    transform: translateX(calc(100% + 4px)) !important;
}

.switch-input:not(:checked)~.switch-label .server {
    color: var(--bg-khaki);
}

.switch-input:not(:checked)~.switch-label .regional {
    color: var(--text-muted);
}

.switch-input:checked~.switch-label .server {
    color: var(--text-muted);
}

.switch-input:checked~.switch-label .regional {
    color: var(--bg-khaki);
}


/* =========================================
   АНИМАЦИИ ДЛЯ ПК (МЫШЬ)
   ========================================= */
@media (hover: hover) and (pointer: fine) {
    .day-cell:hover {
        transform: scale(1.05) translateY(-5px);
        z-index: 100;
        background: rgba(30, 40, 35, 0.8);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 102, 0.15);
        border-color: rgba(0, 255, 102, 0.3);
        overflow-y: auto;
        cursor: pointer;
    }

    .day-cell:hover .day-number {
        color: var(--neon-green);
        font-weight: bold;
    }

    .event-item:hover {
        background: rgba(30, 40, 35, 0.9);
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 12px 1px var(--current-event-color);
        z-index: 10;
    }

    .day-cell:hover .event-item {
        font-size: 0.8rem;
    }

    .neon-btn:hover {
        background: rgba(0, 255, 102, 0.15);
        color: var(--neon-green);
        box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
        transform: translateY(-2px) scale(1.05);
    }
}


/* =========================================
   MEDIA QUERIES (АДАПТИВ) - СТРОГО УПОРЯДОЧЕНО
   ========================================= */

/* 1. БАЗОВЫЕ СТИЛИ ДО 1200px (Превращаем карточки в точки) */
@media (max-width: 1200px) {
    .app-container {
        height: auto !important;
        min-height: calc(100vh - 40px) !important;
    }

    .calendar-section {
        height: auto !important;
    }

    .calendar-grid,
    .days-container {
        height: auto !important;
        min-height: unset !important;
    }

    .days-container {
        gap: 8px !important;
    }

    .day-cell {
        display: grid !important;
        grid-template-columns: repeat(4, 8px) !important;
        justify-content: center !important;
        align-content: flex-start !important;
        gap: 6px !important;
        padding: 6px !important;
        aspect-ratio: auto !important;
        min-height: 100px !important;
        overflow: hidden !important;
    }

    .day-cell::-webkit-scrollbar {
        display: none !important;
    }

    .day-number {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 4px !important;
    }

    .event-item {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background-color: var(--current-event-color) !important;
        font-size: 0 !important;
        color: transparent !important;
        box-shadow: none !important;
    }

    .marquee-wrapper,
    .event-scroll-text {
        display: none !important;
        animation: none !important;
    }

    .day-cell .event-item:nth-child(n+10) {
        display: none !important;
    }
}

/* 2. ЭКСТРЕННЫЙ ФИКС ДЛЯ IPAD В ГОРИЗОНТАЛИ (Без скролла, идеальная центровка) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .app-container {
        height: calc(100vh - 40px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .calendar-section {
        height: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* ИСПРАВЛЕННЫЙ flex: 1 1 auto вместо height: 100% */
    .calendar-grid {
        height: auto !important;
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
    }

    .days-container {
        height: auto !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-rows: repeat(6, minmax(0, 1fr)) !important;
    }

    .day-cell {
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: auto !important;
    }
}

/* 2.1 Увеличенный крестик для планшетов */
@media (min-width: 769px) and (max-width: 1200px) {
    .close-btn {
        width: 60px !important;
        height: 60px !important;
        font-size: 2.8rem !important;
        top: 5px !important;
        right: 5px !important;
    }
}

/* 3. ПЛАНШЕТЫ Portrait (до 1024px) - Фильтры снизу */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
        gap: 20px !important;
    }

    .calendar-section,
    .sidebar-section {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
        box-sizing: border-box !important;
    }

    .calendar-grid {
        min-height: unset !important;
        flex: none !important;
    }

    .days-container {
        gap: 5px !important;
        flex: none !important;
    }

    .regions-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .custom-checkbox {
        font-size: 1.15rem;
    }

    .checkmark {
        width: 24px;
        height: 24px;
        margin-right: 12px;
    }

    .custom-checkbox input:checked~.checkmark::after {
        left: 8px;
        top: 3px;
        width: 5px;
        height: 12px;
        border-width: 0 3px 3px 0;
    }
}

/* 4. МОБИЛЬНЫЕ ТЕЛЕФОНЫ (до 768px) */
@media (max-width: 768px) {
    body {
        padding: 10px !important;
    }

    .day-modal-list {
        grid-template-columns: 1fr !important;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0px, black 15px, black calc(100% - 15px), transparent 100%) !important;
        mask-image: linear-gradient(to bottom, transparent 0px, black 15px, black calc(100% - 15px), transparent 100%) !important;
    }

    .day-modal-event-title {
        font-size: 1.2rem !important;
    }

    .detail-label {
        font-size: 0.75rem !important;
    }

    .detail-value {
        font-size: 0.95rem !important;
    }

    .regions-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .custom-checkbox {
        font-size: 1rem !important;
    }

    .checkmark {
        width: 22px !important;
        height: 22px !important;
        margin-right: 12px !important;
    }

    .custom-checkbox input:checked~.checkmark::after {
        left: 7px !important;
        top: 3px !important;
        width: 5px !important;
        height: 11px !important;
        border-width: 0 2px 2px 0 !important;
    }

    .app-container {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .glass-panel {
        padding: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .sidebar-section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .calendar-section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        flex: none !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .calendar-grid {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
        flex: none !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .days-container {
        width: 100% !important;
        padding: 0 !important;
        flex: none !important;
        height: auto !important;
        grid-auto-rows: max-content !important;
        align-content: start !important;
    }

    .day-cell {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        min-height: unset !important;
        max-height: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, 6px) !important;
        justify-content: center !important;
        align-content: flex-start !important;
        gap: 3px !important;
        padding: 4px !important;
    }

    .day-cell .event-item:nth-child(n+8) {
        display: none !important;
    }

    .day-number {
        grid-column: 1 / -1 !important;
        font-size: 0.65rem !important;
        margin-bottom: 3px !important;
        width: 100% !important;
        text-align: center !important;
    }

    .event-item {
        width: 6px !important;
        height: 6px !important;
    }

    .admin-event-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .admin-event-card>div:first-child {
        width: 100% !important;
    }

    .admin-event-card .delete-btn {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 10px !important;
        text-align: center;
    }

    .admin-event-card div[style*="display: flex"] {
        gap: 10px !important;
    }

    .delete-btn {
        width: 100% !important;
        text-align: center;
    }

    .calendar-header {
        padding: 0 !important;
    }

    .calendar-header h1 {
        font-size: 1.2rem !important;
        font-weight: 400 !important;
        margin: 0;
    }

    .neon-btn {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .switch-wrapper {
        width: 160px !important;
        height: 30px !important;
        margin: 10px auto !important;
    }

    .switch-handle {
        width: 78px !important;
        height: 24px !important;
        top: 2px !important;
        left: 2px !important;
    }

    .switch-input:checked~.switch-label .switch-handle {
        transform: translateX(80px) !important;
    }

    .switch-text {
        font-size: 0.65rem !important;
    }
}

/* 5. МЕЛКИЕ ЭКРАНЫ (до 380px) */
@media (max-width: 380px) {
    .weekday {
        font-size: 0.6rem;
    }

    .calendar-header h1 {
        font-size: 1.1rem !important;
    }
}