/* DigiPrep bug report modal + sidebar trigger (quiet — matches .rs-kbd-hint tone) */
.dp-bug-sidebar-strip {
    flex-shrink: 0;
    padding: 8px 11px 11px;
    border-top: 1px solid var(--rs-line, rgba(255, 255, 255, 0.07));
    background: transparent;
    text-align: center;
}

.dp-bug-sidebar-btn {
    display: inline;
    width: auto;
    padding: 0;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.45;
    color: #48484a;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
}

.dp-bug-sidebar-btn:hover {
    color: var(--rs-muted, #8e8e93);
    background: none;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dp-bug-sidebar-btn:focus-visible {
    outline: 1px solid rgba(110, 168, 254, 0.45);
    outline-offset: 2px;
}

/* Inline "Report a bug" trigger (landing footer style) */
a.dp-bug-footer-link {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #9cf;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

a.dp-bug-footer-link:hover {
    text-decoration: underline;
}

.lesson-navigation .dp-bug-footer-link {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

.dp-bug-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dp-bug-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.dp-bug-modal {
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: #1a1a1c;
    color: #f2f2f7;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    font-family: 'Open Sans', sans-serif;
}

.dp-bug-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 8px;
}

.dp-bug-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.dp-bug-close {
    background: none;
    border: none;
    color: #8e8e93;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.dp-bug-close:hover {
    color: #f2f2f7;
}

.dp-bug-form {
    padding: 8px 18px 18px;
}

.dp-bug-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #8e8e93;
    margin: 12px 0 6px;
}

.dp-bug-form label:first-of-type {
    margin-top: 4px;
}

.dp-bug-form textarea,
.dp-bug-form input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    color: #f2f2f7;
    background: #252528;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    resize: vertical;
}

.dp-bug-form textarea {
    min-height: 88px;
}

.dp-bug-privacy {
    font-size: 11px;
    color: #8e8e93;
    line-height: 1.45;
    margin: 12px 0 0;
}

.dp-bug-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.dp-bug-btn {
    padding: 10px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

.dp-bug-btn--ghost {
    background: transparent;
    color: #8e8e93;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dp-bug-btn--ghost:hover {
    color: #f2f2f7;
}

.dp-bug-btn--primary {
    background: #6ea8fe;
    color: #0d0d0f;
}

.dp-bug-btn--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dp-bug-success {
    padding: 24px 18px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.dp-bug-success p {
    margin: 0 0 8px;
}

.is-hidden {
    display: none !important;
}
