/* ── Sprint 9 §6 — Feedback dialog ───────────────────────────────────
   Reuses the existing .ag-overlay backdrop (css/style.css) -- only the
   card content is new here. Same visual language as assessment.css's
   .as-field/.as-label/.as-input (--bg-input/--border/--radius-sm/--gold
   focus), so the form looks consistent with the rest of the app instead
   of introducing a new field style. */

.fb-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    max-width: 480px;
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.fb-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.fb-close:hover { color: var(--text); background: var(--bg-hover); }

.fb-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    padding-right: 36px;
}

.fb-intro {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 20px;
}

.fb-field { margin-bottom: 16px; }

.fb-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.fb-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-hint);
}

.fb-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 10px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.fb-input:focus { outline: none; border-color: var(--gold); }
.fb-input[aria-invalid="true"] { border-color: var(--red); }
.fb-textarea { resize: vertical; min-height: 44px; }

.fb-error {
    font-size: 0.75rem;
    color: var(--red);
    margin-top: 6px;
}

.fb-context {
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fb-context summary {
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px 0;
}

.fb-context summary:focus-visible { outline: 2px solid var(--gold); }

.fb-context-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 10px 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    line-height: 1.7;
}

.fb-status {
    min-height: 18px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.fb-status--success { color: var(--green); }
.fb-status--error { color: var(--red); }
.fb-status--busy { color: var(--text-muted); }

.fb-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fb-actions button {
    min-height: 44px;
}

.fb-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 560px) {
    .fb-card {
        padding: 24px 18px;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fb-card { transition: none; }
}
