/* feedback.css — the report form only (/feedback/new, FBN, WF-30; TPR-R01).
   Feedback's lists and the report page live in portal.css; the primitives they
   share with discussions (posts, pills, the Composer, attachments) live in
   community.css. Token-bound only. */

/* ============================================================================
   /feedback/new (FBN, WF-30)
   ========================================================================== */

.fbn__form {
    max-width: 44rem;
}

/* Product + Build side by side where there's room; stacked on narrow screens. */
/* minmax(0, 1fr), not 1fr: a column's floor is otherwise its widest option text, and a long
   build name pushed the select past a 320 px screen (TPR-R10). */
.fbn__context {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-md);
}

.fbn__context select {
    width: 100%;
    min-width: 0;
}

@media (max-width: 40rem) {
    .fbn__context {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fbn__kinds {
    border: none;
    padding: 0;
    margin: 0;
}

.fbn__kinds legend {
    padding: 0;
    margin-block-end: var(--space-xs);
    color: var(--text-secondary);
    font-size: var(--font-size--1);
}

/* Radio pills (WF-30): the input stays real and focusable — the label span is
   the visible pill, checked state encoded by fill + weight, not color alone. */
.fbn__pill input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.fbn__pill span {
    display: inline-flex;
    align-items: center;
    padding: 2px var(--space-md);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-chip);
    background-color: var(--surface-raised);
    color: var(--text-secondary);
    font-size: var(--font-size--1);
    line-height: 1.5;
    cursor: pointer;
}

.fbn__pill input:checked + span {
    background-color: var(--accent-surface);
    border-color: var(--border-emphasis);
    color: var(--text-primary);
    font-weight: 600;
}

.fbn__pill input:focus-visible + span {
    outline: var(--focus-ring-width) solid var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
}

.fbn__share {
    padding: var(--space-md);
    background-color: var(--surface-raised);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-container);
}
