.training-dashboard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121221; /* Matches global --bg-deep from local-page.css */
    z-index: 1000;
    display: flex;
    align-items: flex-start; /* Changed from center to allow scrolling to the top */
    justify-content: center;
    overflow-y: auto; /* Allow the entire overlay to scroll */
    padding: 40px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent double scrollbar when training dashboard is visible AND the training tab is active */
.main-content:has(#content-training:not([style*="display: none"]) #training-dashboard:not(.hide)) {
    overflow-y: hidden !important;
}

/* Premium Scrollbar Styling for the Overlay */
.training-dashboard-overlay::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.training-dashboard-overlay::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}

.training-dashboard-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 205, 48, 0.1);
    border-radius: 10px;
    border: 2px solid #121221; /* Gap effect */
}

.training-dashboard-overlay::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 205, 48, 0.3);
}


/* Hide game status when dashboard is active */
.training-dashboard-overlay:not(.hide) ~ .training-layout #game-status {
    display: none !important;
}


.training-dashboard-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.05);
}

.dashboard-inner {
    width: 100%;
    max-width: 800px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: dashboard-fade-in 0.6s ease-out;
}

@keyframes dashboard-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.calibration-invite {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 500px;
    animation: dashboard-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.session-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    animation: dashboard-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.calib-icon-wrap {
    margin-bottom: 24px;
    opacity: 0.8;
}

.calib-icon-wrap svg path:last-of-type {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: calib-pulse 2s ease-in-out infinite;
}

@keyframes calib-pulse {
    0% { stroke-dashoffset: 20; opacity: 0.4; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -20; opacity: 0.4; }
}

.training-setup-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.setup-footer {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dash-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
    color: #fff;
    text-align: center;
}

.dash-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 30px;
    text-align: center;
    max-width: 400px;
}

html[lang="ru"] .dash-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.setup-scroll-area {
    width: 100%;
    /* Removed max-height to let the main overlay scroll everything together */
    overflow-y: visible; 
    overflow-x: hidden;
    padding-right: 0;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}

/* ─── Setup Menu Grid ─── */
.setup-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin: 20px 0 20px; /* Reduced bottom margin */
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.setup-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ─── Mode & N Selectors ─── */
/* ─── Custom Select (Training Mode) ─── */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
    margin-top: 8px;
    z-index: 10; /* Lower base z-index */
}

.custom-select-wrapper.open {
    z-index: 1001; /* Much higher when open to overlap everything in the column */
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--accent);
    background: rgba(255, 205, 48, 0.05);
}

.custom-select-trigger .arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    transform: rotate(45deg) translateY(-2px);
    transition: all 0.3s;
}

.custom-select-wrapper.open .arrow {
    transform: rotate(-135deg) translateY(2px);
    border-color: var(--accent);
}

.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #141423;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000; /* Very high */
    pointer-events: none;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}


.custom-option {
    display: block;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.custom-option.selected {
    background: var(--accent);
    color: #000;
}

.n-selector {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.n-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.n-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.n-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}


/* ─── Settings Rows ─── */
.setting-row-setup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.setting-row-setup:last-child {
    border-bottom: none;
}

.setup-input-small {
    width: 44px;
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    -moz-appearance: textfield;
}

/* Hide Spinners */
.setup-input-small::-webkit-outer-spin-button,
.setup-input-small::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-number-picker {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2px 8px;
    transition: all 0.3s;
}

.custom-number-picker:focus-within {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.num-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 8px;
}

.num-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.num-btn:active {
    transform: scale(0.9);
}


/* ─── Daily Goal Mini UI ─── */
.daily-goal-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 480px;
    margin-bottom: 30px;
}

.training-setup-menu .daily-goal-mini {
    max-width: 100%;
    margin-top: 30px;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.goal-label {
    font-size: 10px;
    font-weight: 900;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.goal-val-text {
    font-size: 11px;
    font-weight: 900;
    color: var(--accent);
}

.goal-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.goal-fill-bar {
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}



/* ─── Warning & Reset Modal (Screenshot Matching 1:1) ─── */
.modal-content {
    position: relative; /* For close button */
}

.btn-close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

#reset-warning-modal {
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.warning-content {
    background: #0d0e13; 
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 32px 24px; /* More compact */
    max-width: 440px; /* Reduced */
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.warning-content h2 {
    font-size: 22px; /* Scaled down */
    margin-bottom: 10px;
}


@keyframes modal-pop {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.warning-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.8px;
    text-transform: uppercase;
    text-align: center;
}

.warning-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 36px;
    font-weight: 500;
    text-align: center;
}

.warning-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.warning-actions .btn-secondary-large,
.warning-actions .btn-danger-large {
    flex: 1; /* Одинаковая ширина для обеих кнопок */
    width: auto; /* Снимаем 100% */
    min-width: 0;
    white-space: normal; /* Разрешаем перенос текста на следующую строку */
    word-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 8px; /* Уменьшили padding, чтобы текст отступал от краев кнопки */
    font-size: 9.5px; /* Уменьшили размер текста для отличных отступов */
    line-height: 1.25;
    letter-spacing: 0.5px;
}

/* ─── Buttons ─── */
.btn-primary-large {
    background: #ffcd30;
    border: none;
    color: #000;
    padding: 22px 30px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(255, 205, 48, 0.15);
    text-transform: uppercase;
    width: 100%;
}


.btn-primary-large:hover {
    background: #ffdb66;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 205, 48, 0.25);
}

.btn-secondary-large {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 22px 30px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-danger-large {
    background: rgba(248, 113, 113, 0.06);
    border: 1px solid rgba(248, 113, 113, 0.12);
    color: #f87171;
    padding: 18px 36px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-transform: uppercase;
    min-width: 160px;
}

.btn-danger-large:hover {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(248, 113, 113, 0.1);
}

.session-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    width: 100%;
    max-width: 480px;
    align-items: center;
}

/* ─── Other Elements ─── */
.btn-guide {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 20px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    width: 100%;
}

.btn-guide:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ─── Disclaimer Modal ─── */
.disclaimer-content {
    max-width: 420px;
    background: #0d0e13;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 24px 28px;
    max-height: 95vh;
    overflow-y: hidden; /* Prefer no scroll */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.disclaimer-header {
    text-align: center;
    margin-bottom: 16px;
}

.warning-sign-svg {
    margin-bottom: 8px;
}

.warning-sign-svg svg {
    width: 32px;
    height: 28px;
}

.disclaimer-body {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
}

.disclaimer-body p {
    margin-bottom: 12px;
}

.disclaimer-body ul {
    margin: 12px 0;
    padding-left: 16px;
}

.disclaimer-body li {
    margin-bottom: 6px;
}

.legal-notice {
    font-size: 10px;
    padding-top: 14px;
    margin-top: 14px;
    margin-bottom: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}





.disclaimer-actions {
    margin-top: 16px;
}

.hide {
    display: none !important;
}

/* ─── Advanced Notification Settings UI ─── */
.notif-advanced-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slide-down-setup 0.4s ease-out;
}

@keyframes slide-down-setup {
    from { opacity: 0; transform: translateY(-10px); max-height: 0; }
    to { opacity: 1; transform: translateY(0); max-height: 500px; }
}

.notif-setting-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Days Selector */
.days-selector {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.day-btn {
    flex: 1;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-dim);
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
}

.day-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.day-btn.active {
    background: #FFCD30;
    color: #000;
    border-color: #FFCD30;
    box-shadow: 0 0 15px rgba(255, 205, 48, 0.2);
}

/* Frequency Toggle (Segmented Control) */
.frequency-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.freq-btn {
    padding: 6px 12px;
    border: none;
    background: none;
    color: var(--text-dim);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.freq-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Time Pickers */
.time-pickers-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.time-picker-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.time-label {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 700;
}

.time-val {
    width: 28px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    background: transparent;
    border: none;
    font-family: 'Montserrat', sans-serif;
    padding: 0;
}

.time-val:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.time-sep {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 900;
}

.num-btn-time {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 16px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.num-btn-time:hover { color: #fff; }


/* ─── Notification Info Card (Left Column) ─── */
.notif-info-card {
    margin-top: 40px;
    padding: 24px;
    background: rgba(255, 205, 48, 0.03);
    border: 1px solid rgba(255, 205, 48, 0.1);
    border-radius: 20px;
    animation: fade-in-up-notif 0.4s ease-out;
}

.notif-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.notif-icon-circle {
    width: 36px;
    height: 36px;
    background: rgba(255, 205, 48, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFCD30;
    box-shadow: 0 0 15px rgba(255, 205, 48, 0.1);
}

.notif-info-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #FFCD30;
}

.notif-info-text {
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-weight: 500;
}

@keyframes fade-in-up-notif {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive: 1024px (Tablets / Small Laptops) ─── */
@media (max-width: 1024px) {
    .setup-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
    }

    .dashboard-inner {
        max-width: 700px;
    }

    #disclaimer-modal {
        left: 70px !important;
        width: calc(100% - 70px) !important;
    }

    .training-dashboard-overlay:not(.hide) ~ .training-layout {
        display: none !important;
    }
}

/* ─── Responsive: 768px (Mobile & Tablets) ─── */
@media (max-width: 768px) {
    .training-dashboard-overlay {
        padding: 20px 0;
    }

    .dashboard-inner {
        padding: 24px 16px;
    }

    .dash-title {
        font-size: 24px;
    }

    .dash-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .setup-grid {
        padding: 20px;
        border-radius: 20px;
        gap: 24px;
        margin: 10px 0;
    }

    .setup-col {
        gap: 20px;
    }

    .n-btn {
        padding: 14px 8px;
        font-size: 10px;
    }

    .btn-primary-large, .btn-secondary-large {
        padding: 18px 20px;
        font-size: 12px;
        border-radius: 16px;
    }

    .notif-info-card {
        margin-top: 20px;
        padding: 20px;
    }

    .days-selector {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .day-btn {
        flex: 1 0 calc(25% - 8px);
        height: 40px;
        font-size: 10px;
    }

    .setting-row-setup {
        padding-bottom: 14px;
    }

    .session-buttons {
        margin-top: 24px;
        gap: 12px;
    }

    .disclaimer-content {
        width: 90% !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        padding: 24px 20px !important;
    }
}

/* ─── Responsive: 480px (Standard Mobile) ─── */
@media (max-width: 480px) {
    .dash-title {
        font-size: 20px;
    }

    .setup-grid {
        padding: 16px;
        border-radius: 16px;
    }

    .n-selector {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .setting-row-setup {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .setting-row-setup .custom-number-picker,
    .setting-row-setup .switch {
        align-self: flex-end;
    }

    .day-btn {
        flex: 1 0 calc(33% - 8px);
    }
    
    .warning-content {
        padding: 24px 16px;
    }
    
    .warning-content h2 {
        font-size: 20px;
    }

    #disclaimer-modal {
        left: 60px !important;
        width: calc(100% - 60px) !important;
    }
}

/* ─── Responsive: 386px (Extreme Mobile) ─── */
@media (max-width: 386px) {
    .training-dashboard-overlay {
        left: 0 !important;
        width: 100% !important;
        padding: 10px 0 !important;
    }

    .dashboard-inner {
        padding: 16px 8px !important;
    }

    .dash-title {
        font-size: 18px !important;
    }

    .setup-grid {
        padding: 10px !important;
        border-radius: 12px !important;
        gap: 16px !important;
    }

    .n-selector {
        gap: 6px !important;
    }

    .setting-row-setup {
        gap: 8px !important;
    }

    .training-setup-menu .daily-goal-mini {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        padding: 10px 12px !important;
    }

    .btn-primary-large, .btn-secondary-large {
        padding: 12px 14px !important;
        font-size: 10px !important;
        border-radius: 10px !important;
    }
}

/* ─── Responsive: 354px (Horizontal Scroll) ─── */
@media (max-width: 354px) {
    .training-dashboard-overlay {
        overflow-x: auto !important;
        justify-content: flex-start !important;
    }

    .dashboard-inner {
        min-width: 294px !important;
    }
}


