/* Messages live inside the thing they're about (Cyrus 2026-11-25): js/lib/feedback.js sets these classes.
   Every pairing below is checked at 7:1 in light and dark by preview/contrast.js. */

/* one opaque error fill per mode, so a message covers what's under it */
/* and one solid red for a small control that has to stand out from its row (the armed X) */
:root { --red-fill: #EBCFCC; --red-solid: #B42318; --on-red-solid: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root { --red-fill: #3D2F30; --red-solid: #F87171; --on-red-solid: #2A0E0E; } }

/* buttons: the label becomes the message */
.say-bad, .say-bad:disabled { background: var(--red-fill) !important; color: var(--red-ink) !important; }
.say-ok { pointer-events: none; }

/* fields: the message covers the field (same shape) until it's tapped or typed in */
.gfield .ferr { display: none; position: absolute; inset: 0; align-items: center; padding: 0 20px; border-radius: 999px;
  background: var(--red-fill); color: var(--red-ink); font-size: 15px; font-weight: 500; line-height: 1.3; pointer-events: none; }
.gfield.gtall .ferr { align-items: flex-start; padding: 14px 20px; border-radius: 24px; }
.gfield.bad .ferr { display: flex; }

/* choices: "Saving…" / "Saved" sits inside the option, before its circle, in the option's own text colour */
.check .osay { flex: none; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity 0.2s ease; }
.check .osay.on { opacity: 1; }

/* a question nobody answered yet: its empty options take the error fill until one is picked */
.opts.need .check:not(:has(input:checked)) { background: var(--red-fill); }

/* admin rows: a suggestion's links and reason, and a failed welcome email */
.sugrow .tags { margin-top: 4px; }
.owhy { margin: 4px 0 0; color: var(--ink); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.ostate.bad { color: var(--red-ink); }
.ostate.bad .odot { background: var(--red); opacity: 1; }

/* the admin's X: the one circle shade; armed (first tap) it turns solid red; a failure widens it to say so */
.xbtn.armed { background: var(--red-solid); color: var(--on-red-solid); }
.xbtn.wide { width: auto; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.sugrow, .orow:has(.xbtn) { align-items: flex-start; }
