/* ИНПУТЫ */
.pd-input {
    background: #fff !important;
    color: #111 !important;
    border: 2px solid #111 !important;
}
html.dark-mode .pd-input {
    background: #3a3a3a !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

/* ТОГЛ */
#pd-toggle {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    font-size: 28px !important;
}

/* РОЗОВОЕ ВЫДЕЛЕНИЕ */
::selection {
    background: #D291BC;
    color: #111111;
}
html.dark-mode ::selection {
    background: #ff6b9d;
    color: #1a1a1a;
}

/* ЗАГОЛОВКИ */
h2 {
    line-height: 1 !important;
}

/* НАВИГАЦИЯ */
#pd-nav {
    opacity: 1 !important;
    pointer-events: all !important;
    width: auto;
    max-width: 90vw;
    flex-wrap: nowrap;
}
.pd-nav-btn {
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    text-align: center;
}
.nav-label {
    display: none;
    font-size: 11px;
    letter-spacing: 1px;
    white-space: nowrap;
}
#pd-nav.show-labels .nav-label {
    display: inline;
}
#pd-nav.show-labels .pd-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* CLIPPY */
#pd-clippy {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9997;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
#pd-clippy-bubble {
    background: var(--bg);
    border: 2px solid var(--ink);
    padding: 12px 16px;
    max-width: 220px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1.5;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .3s, transform .3s;
}
#pd-clippy-bubble.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
#pd-clippy-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--ink);
}
#pd-clippy-close {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: var(--ink);
    line-height: 1;
    padding: 0;
}
#pd-clippy-close:hover {
    color: var(--pink);
}

/* ДЕСКТОП — без цифр */
@media(min-width: 1025px) {
    #pd-nav.show-labels .nav-num {
        display: none !important;
    }
}

/* ПЛАНШЕТ */
@media(min-width: 769px) and (max-width: 1024px) {
    .pd-utp {
        margin-bottom: 80px !important;
    }
    .pd-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .nav-label {
        display: none !important;
    }
    .pd-nav-btn {
        padding: 10px 18px !important;
    }
}

/* МОБАЙЛ */
@media(max-width: 768px) {
    .screen {
        min-height: unset !important;
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    #pd-screen01 {
        justify-content: flex-start !important;
        gap: 24px !important;
    }
    .pd-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        margin-top: 16px !important;
        margin-bottom: 100px !important;
    }
    .pd-utp {
        position: static !important;
        margin-top: auto !important;
        margin-bottom: 80px !important;
        text-align: left !important;
        margin-left: 0 !important;
    }
    .pd-btn {
        margin-top: 4px !important;
    }
    .nav-label {
        display: none !important;
    }
    .pd-nav-btn {
        padding: 10px 14px !important;
        font-size: 11px !important;
    }
    #pd-nav {
        gap: 8px !important;
    }
    #pd-clippy {
        display: none !important;
    }
}