/* Тултип "Сообщить об опечатке" */
.typo-tooltip {
    position: absolute;
    z-index: 9999;
    background: var(--opdev-primary);
    color: var(--opdev-white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    user-select: none;
    transition: opacity 0.15s;
}

.typo-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--opdev-primary);
}

.typo-tooltip:hover {
    opacity: 0.9;
}

/* Dialog */
.typo-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.typo-dialog {
    border: none;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 1000;
}

.typo-dialog__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.typo-dialog__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.typo-dialog__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    outline: none;
}

.typo-dialog__close:focus,
.typo-dialog__close:focus-visible {
    outline: none;
    box-shadow: none;
}

.typo-dialog__blockquote {
    background: var(--opdev-light);
    border-left: 3px solid var(--opdev-primary);
    padding: 0.75rem 1rem;
    margin: 0.5rem 0 1rem;
    font-style: italic;
    color: var(--opdev-gray-700);
    max-height: 150px;
    overflow-y: auto;
    word-break: break-word;
    border-radius: 0 6px 6px 0;
}

.typo-dialog__comment {
    resize: vertical;
    min-height: 60px;
}

.typo-dialog__success {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 1.1rem;
    color: var(--opdev-primary);
}

/* Подсказка под блоком описания */
.typo-hint {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--opdev-gray-500);
    user-select: none;
}

.typo-hint__label {
    color: var(--opdev-primary);
    font-style: italic;
}

@media (max-width: 576px) {
    .typo-dialog {
        width: 95%;
        padding: 1.5rem;
    }

    .typo-tooltip {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}
