/* ============================================================
   Masters Concursos / QGabarito
   Anotações privadas — extensão visual compartilhada
   ============================================================ */

.private-note-card {
    position: relative;
}

.private-note-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.private-note-heading h2,
.private-note-heading h3 {
    margin: 0;
}

.private-note-heading p {
    margin: 4px 0 0;
    color: var(--muted);
}

.private-note-privacy {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.private-note-textarea {
    display: block;
    width: 100%;
    min-height: 132px;
    resize: vertical;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    line-height: 1.6;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.private-note-textarea:focus {
    border-color: #8aa8c7;
    box-shadow: 0 0 0 3px rgba(23, 59, 103, .08);
}

.private-note-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    color: var(--muted);
    font-size: .82rem;
}

.private-note-status {
    font-weight: 650;
}

.private-note-status.is-saving {
    color: #52637a;
}

.private-note-status.is-saved {
    color: var(--ok);
}

.private-note-status.is-error {
    color: var(--bad);
}

.question-note-details {
    position: relative;
}

.question-note-details > summary {
    list-style: none;
}

.question-note-details > summary::-webkit-details-marker {
    display: none;
}

.question-note-panel {
    width: min(620px, calc(100vw - 48px));
    margin-top: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(16, 45, 80, .10);
}

.question-note-panel .private-note-heading {
    margin-bottom: 10px;
}

.question-note-panel .private-note-heading h3 {
    font-size: 1rem;
}

.question-note-panel .private-note-textarea {
    min-height: 112px;
}

.personal-chip.has-note {
    background: #f4f7fb;
    color: #173b67;
    border-color: #cfdbea;
}

@media (max-width: 760px) {
    .private-note-heading,
    .private-note-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .private-note-privacy {
        white-space: normal;
    }

    .question-note-panel {
        width: min(100%, calc(100vw - 40px));
    }
}
