/* ask-sheet - the question sheet for "Bradly needs your input" (#740, U7 of #733, REQ-0011).
 *
 * Mockup: docs/design/mockups/ask-colton-question-sheet-733.html (approval entry ask-sheet).
 * Script: public/js/components/ask-sheet.js. The sheet is the idea sheet's shell
 * (idea-sheet.css: scrim, glass sheet, grabber, bar, text box, error line, sent banner,
 * buttons), so the overlay carries both .idea-sheet-scrim and .ask-sheet-scrim and only
 * the new pieces are styled here: the question block (who asked, why, the question), the
 * tap-choice list, his saved answer, the "no longer needed" state and the small notes.
 * Rules use the ac-* prefix shared with ask-card.css (.ac-ic comes from there).
 *
 * Uses ONLY var(--v2-*) tokens (defined in /css/canopy-v2.css).
 */

/* ─── Question block ─── */
.ask-sheet-scrim .ac-from { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: var(--v2-font-size-footnote); font-weight: 600; color: var(--v2-text-support); }
.ask-sheet-scrim .ac-from-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--v2-pop-sage-bg); color: var(--v2-accent-text); font-size: 12px; font-weight: 700; flex: none; }
.ask-sheet-scrim .ac-why { margin: 0 0 6px; font-size: var(--v2-font-size-subhead); line-height: 1.4; color: var(--v2-text-primary); overflow-wrap: anywhere; }
.ask-sheet-scrim .ac-q { margin: 0 0 16px; font-family: var(--v2-font-display); font-weight: 600; font-size: var(--v2-font-size-title3); line-height: 1.3; letter-spacing: -0.01em; color: var(--v2-text-primary); overflow-wrap: anywhere; }

/* ─── Tap choices ─── */
.ask-sheet-scrim .ac-choices { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.ask-sheet-scrim .ac-choices legend { padding: 0; margin: 0 0 6px; font-size: var(--v2-font-size-footnote); font-weight: 600; color: var(--v2-text-support); }
.ask-sheet-scrim .ac-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; text-align: left; border: 1.5px solid var(--v2-edge); border-radius: var(--v2-radius-md); background: var(--v2-bg-primary); color: var(--v2-text-primary); font-size: var(--v2-font-size-callout); font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.ask-sheet-scrim .ac-choice:active { background: var(--v2-press-overlay); }
.ask-sheet-scrim .ac-choice:focus-visible { outline: 2px solid var(--v2-accent-text); outline-offset: 2px; }
.ask-sheet-scrim .ac-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--v2-border-strong); flex: none; display: grid; place-items: center; color: var(--v2-text-on-accent); }
.ask-sheet-scrim .ac-radio .ac-ic { width: 14px; height: 14px; stroke-width: 2.5; opacity: 0; }
.ask-sheet-scrim .ac-choice[aria-checked="true"] { border-color: var(--v2-accent-botanical); background: var(--v2-pop-sage-bg); font-weight: 600; }
.ask-sheet-scrim .ac-choice[aria-checked="true"] .ac-radio { background: var(--v2-accent-botanical); border-color: var(--v2-accent-botanical); }
.ask-sheet-scrim .ac-choice[aria-checked="true"] .ac-radio .ac-ic { opacity: 1; }
.ask-sheet-scrim .ac-choice.is-soft { border-style: dashed; color: var(--v2-text-secondary); }

/* ─── Send ─── */
.ask-sheet-scrim .ac-send { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ask-sheet-scrim .ac-btn-off { background: var(--v2-glass-control-fill); color: var(--v2-text-support); cursor: default; }
.ask-sheet-scrim .ac-btn-off:active { opacity: 1; }
.ask-sheet-scrim .ac-foot { margin: 10px 4px 0; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: var(--v2-font-size-footnote); color: var(--v2-text-support); }
.ask-sheet-scrim .ac-foot .ac-ic { width: 16px; height: 16px; }

/* ─── His saved answer ─── */
.ask-sheet-scrim .ac-answer { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--v2-radius-md); background: var(--v2-pop-sage-bg); border: 1px solid var(--v2-accent-botanical); }
.ask-sheet-scrim .ac-answer small { display: block; font-size: var(--v2-font-size-footnote); font-weight: 600; color: var(--v2-text-support); margin-bottom: 4px; }
.ask-sheet-scrim .ac-answer b { display: block; font-size: var(--v2-font-size-callout); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }

/* ─── No longer needed, or not available ─── */
.ask-sheet-scrim .ac-closed { text-align: center; padding: 20px 8px 8px; }
.ask-sheet-scrim .ac-closed-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--v2-bg-secondary); color: var(--v2-text-support); }
.ask-sheet-scrim .ac-closed-icon .ac-ic { width: 24px; height: 24px; }
.ask-sheet-scrim .ac-closed h3 { margin: 0; font-family: var(--v2-font-display); font-weight: 600; font-size: var(--v2-font-size-title3); }
.ask-sheet-scrim .ac-closed p { margin: 6px 0 0; color: var(--v2-text-support); font-size: var(--v2-font-size-subhead); line-height: 1.4; }
.ask-sheet-scrim .ac-gap { margin-top: 16px; }

/* ─── Context (#752): what this is about, result lines, waiting note ─── */
.ask-sheet-scrim .ask-sheet-about { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--v2-radius-md); background: var(--v2-bg-secondary); }
.ask-sheet-scrim .ask-sheet-about h3 { margin: 0 0 8px; font-size: var(--v2-font-size-footnote); font-weight: 600; letter-spacing: .02em; color: var(--v2-text-support); }
.ask-sheet-scrim .ask-sheet-about p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--v2-text-primary); overflow-wrap: anywhere; }
.ask-sheet-scrim .ask-sheet-about p + p { margin-top: 8px; }
.ask-sheet-scrim .ask-sheet-shot { position: relative; display: block; width: 100%; height: 160px; margin: 0 0 12px; padding: 0; border: 0; border-radius: var(--v2-radius-md); overflow: hidden; background: var(--v2-border-soft); color: var(--v2-text-support); }
.ask-sheet-scrim .ask-sheet-shot:focus-visible { outline: 2px solid var(--v2-accent-text); outline-offset: 2px; }
.ask-sheet-scrim .ask-sheet-shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ask-sheet-scrim .ask-sheet-shot-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: var(--v2-font-size-footnote); font-weight: 600; }
.ask-sheet-scrim .ask-sheet-shot-label .ac-ic { width: 28px; height: 28px; }
.ask-sheet-scrim .ask-sheet-shot-zoom { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--v2-bg-card); color: var(--v2-text-primary); }
.ask-sheet-scrim .ask-choice-item { display: grid; gap: 4px; }
.ask-sheet-scrim .ask-choice-result { margin: 0; padding: 0 6px 0 48px; font-size: 13px; line-height: 1.4; color: var(--v2-text-secondary); overflow-wrap: anywhere; }
.ask-sheet-scrim .ask-choices-note { margin: 0 0 14px; font-size: var(--v2-font-size-footnote); color: var(--v2-text-support); }

/* Full-size screenshot: a plain overlay above the sheet (the sheet's scrim is z-index 1300). */
.ask-sheet-viewer { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; background: var(--v2-bg-overlay); font-family: var(--v2-font-body); }
.ask-sheet-viewer__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ask-sheet-viewer__close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--v2-bg-card); color: var(--v2-text-primary); cursor: pointer; }
.ask-sheet-viewer__close:focus-visible { outline: 2px solid var(--v2-accent-text); outline-offset: 2px; }
.ask-sheet-viewer__close svg { width: 20px; height: 20px; }
