/* Round 23: the age question (agegate.js), chat cautions, ended chats and report options (match.js, safety.js). */
.age-dialog .age-fields { display: grid; grid-template-columns: 70px minmax(0, 1fr) 96px; gap: 10px; margin: 6px 0 12px; padding: 0; border: 0; }
.age-dialog .age-fields legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.age-dialog .age-fields label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #6b4a5c; }
.age-dialog .age-fields select { min-height: 42px; padding: 0 8px; border: 2px solid #2a0b1d; border-radius: 0; color: #2b1020; background: #fff; font: inherit; font-size: 15px; font-weight: 400; }
.age-dialog .age-fields select:focus-visible { outline: 3px solid #ff2e7e; outline-offset: 2px; }
/* iOS zooms the page into a field under 16 px. */
@media (pointer: coarse) {
    .age-dialog .age-fields select { font-size: 16px; }
}
.age-dialog .age-keep { font-size: 12px; color: #6b4a5c; }
.age-dialog .age-keep a, .age-dialog .age-said a { color: #b3125a; }
.age-dialog .age-said p { font-size: 14px; }
@media (max-width: 420px) {
    .age-dialog .age-fields { grid-template-columns: 1fr 1fr; }
    .age-dialog .age-fields label:nth-child(3) { grid-column: 1 / -1; }
}

/* A message that carries a link or contact details, early in a chat (MatchGuard::caution). It sits under the bubble
   and must not look like one: .mx-thread .match-message p (match.css) styles every paragraph as a bubble. */
.mx-thread .match-message p.wt-caution, .match-message p.wt-caution { display: block; margin: 6px 0 0; padding: 8px 10px; border: 0; border-left: 3px solid #e0a100; border-radius: 0; color: var(--ink, #2b2116); background: rgba(255, 196, 0, .16); box-shadow: none; font: 13px/1.45 Arial, "Helvetica Neue", sans-serif !important; white-space: normal; overflow-wrap: break-word; }
.match-message p.wt-caution span { margin-right: 6px; font: 15px/1 "Yu Mincho", "MS Mincho", serif; color: #8a5a00; }
.match-message p.wt-caution a { color: inherit; text-decoration: underline; white-space: nowrap; }

/* Chats that ended in the last 30 days: Report still works. */
.mx-ended { margin: 18px 0 6px; padding: 10px 12px; border: 1px dashed currentColor; border-radius: 4px; opacity: .92; }
.mx-ended summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.mx-ended ul { margin: 8px 0 0; padding: 0; list-style: none; }
.mx-ended li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 0; border-top: 1px solid rgba(127, 127, 127, .25); font-size: 13px; }
.mx-ended li button { margin-left: auto; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.mx-ended time { opacity: .7; font-size: 12px; }

/* The background-check disclosure (US dating-safety laws): bold, capitals, at least 16 px. */
.mx-disclosure { margin: 14px 0; font-size: 14px; line-height: 1.45; }
.mx-disclosure strong, .mx-disclosure-line { display: block; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.mx-disclosure-line { margin-top: 6px; }

/* Report dialog options. */
.safety-dialog .safety-check { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; margin: 8px 0; font-size: 13px; line-height: 1.45; }
.safety-dialog .safety-check input { width: 18px; height: 18px; margin: 1px 0 0; }
