/* Report and block (9 Nov, USE_SAFETY; js/features/safety.js). Every rule under html.uf-safety, so the switch off
   leaves every page exactly as before. Blue, black, grey and white with the red of a destructive action; no amber. */

/* the ⋯ button: a 44 px round icon button */
html.uf-safety .sf-more{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:none;color:var(--ink);cursor:pointer}
html.uf-safety .sf-more:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html.uf-safety .rv-chat-h .sf-chat-more{margin-inline-start:auto}

/* the menu sheet */
html.uf-safety .sf-menu{display:flex;flex-direction:column;gap:4px;padding:4px 0 8px}
html.uf-safety .sf-mi{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 12px;border:0;border-radius:12px;background:none;color:var(--ink);font:inherit;font-size:16px;font-weight:600;text-align:start;cursor:pointer}
html.uf-safety .sf-mi:hover{background:var(--fill)}
html.uf-safety .sf-mi.danger{color:var(--bad)}
html.uf-safety .sf-mi:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}

/* the report and block sheets */
html.uf-safety .sf-rep,html.uf-safety .sf-blk,html.uf-safety .sf-done{display:flex;flex-direction:column;gap:16px;padding-bottom:8px}
html.uf-safety .sf-p{margin:0;font-size:15px;line-height:22px;color:var(--ink-2)}
html.uf-safety .sf-warn{padding:12px 14px;border-radius:12px;background:var(--rv-note-bg,var(--blue-50));color:var(--rv-note-ink,var(--ink))}
html.uf-safety .sf-rs{display:flex;flex-direction:column;gap:8px}
html.uf-safety .sf-r{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;font-size:16px;text-align:start;cursor:pointer}
html.uf-safety .sf-r.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
html.uf-safety .sf-r-d{flex:none;width:20px;height:20px;border-radius:50%;border:2px solid var(--ink-3)}
html.uf-safety .sf-r.on .sf-r-d{border-color:var(--accent);background:radial-gradient(circle,var(--accent) 0 5px,transparent 6px)}
html.uf-safety .sf-r:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html.uf-safety .sf-note{margin:0}
html.uf-safety .sf-note textarea{width:100%;min-height:96px;resize:vertical;box-sizing:border-box}
html.uf-safety .sf-c{display:block;margin-top:6px;font-size:13px;color:var(--ink-3)}
html.uf-safety .sf-note textarea[aria-invalid=true]+.sf-c{color:var(--bad)}
html.uf-safety .sf-done{align-items:center;text-align:center}
html.uf-safety .sf-done-i{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--accent-soft);color:var(--accent)}
html.uf-safety .sf-acts{display:flex;flex-direction:column;gap:10px}
html.uf-safety .sf-acts .btn{width:100%;min-height:48px}

/* a message from the other person: a long press reports it, so the phone's own text menu stays away */
html.uf-safety .sf-msg{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
html.uf-safety .sf-msg:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* the chat's foot while blocked */
html.uf-safety .sf-bar{position:sticky;bottom:0;display:flex;align-items:center;gap:10px;padding:12px 16px calc(var(--safe-b, 0px) + 12px);border-top:1px solid var(--line);background:var(--surface)}
html.uf-safety .sf-bar-i{display:grid;place-items:center;flex:none;color:var(--ink-3)}
html.uf-safety .sf-bar-t{flex:1;min-width:0;font-size:15px;font-weight:600;color:var(--ink)}
html.uf-safety .sf-bar-b,html.uf-safety .sf-un{min-height:44px;flex:none}

/* the reviewer screen's Reports tab */
html.uf-safety .sf-rv-tabs{box-sizing:border-box;max-width:1240px;margin:0 auto;padding:24px 32px 0;display:flex;gap:8px}
html.uf-safety .sf-rv-tabs+.ga-rv-b{padding-top:16px}
html.uf-safety .sf-rv{display:flex;flex-direction:column;gap:12px}
html.uf-safety .sf-rv>.ga-ws-sub{margin:-6px 0 0}
html.uf-safety .sf-rv-f{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0}
html.uf-safety .sf-chip{min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
html.uf-safety .sf-chip.on{border-color:var(--ink);background:var(--ink);color:var(--surface)}
html.uf-safety .sf-rv-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;max-width:760px}
html.uf-safety .sf-rv-i{display:flex;flex-direction:column;gap:10px;padding:16px}
html.uf-safety .sf-rv-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
html.uf-safety .sf-rv-d{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;margin:0}
html.uf-safety .sf-rv-d>div{display:contents}
html.uf-safety .sf-rv-d dt{font-size:13px;color:var(--ink-3)}
html.uf-safety .sf-rv-d dd{margin:0;font-size:14px;color:var(--ink);overflow-wrap:anywhere}
html.uf-safety .sf-rv-msg{white-space:pre-wrap}
html.uf-safety .sf-rv-a{display:flex;flex-wrap:wrap;gap:8px}
html.uf-safety .sf-rv-a .btn-sm{min-height:44px}
html.uf-safety .sf-rv-none{color:var(--ink-3)}
@media (max-width:767px){html.uf-safety .sf-rv-tabs{padding:12px 16px 0}html.uf-safety .sf-rv-d{grid-template-columns:1fr;gap:2px}html.uf-safety .sf-rv-d dd{margin-bottom:8px}}
