/* Identidade visual do Afinós: ameixa profunda, degradê coral e rosa, brilho suave.
   Carrega depois de style.css e visual.css. O alto contraste continua vindo de visual.css. */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 800; font-display: swap; src: url("fonts/poppins-latin-800-normal.woff2") format("woff2"); }

:root {
  --sans: Poppins, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --grad: linear-gradient(100deg, #cf3d33 0%, #c42a68 100%);
  --glow: 0 10px 28px rgba(214, 52, 104, .38);
  --rose: #ff8fa3;
  --sun: #ffc645;
}
:root:not([data-contrast=true]) {
  --paper: #170c1b; --white: #24122a; --ink: #fff6fa; --sub: #dcc6d8;
  --plum: #ffb0c4; --violet: #e6b3ff; --peach: #3b1b35; --coral: #ff9378;
  --line: #4b2a45; --edge: #8a5a7f; --control: #2e1631; --button-ink: #250d24;
}
body { font-family: var(--sans); }
:root:not([data-contrast=true]) body {
  background:
    radial-gradient(110% 55% at 50% -12%, #4d1a40 0, transparent 62%),
    radial-gradient(70% 45% at 105% 105%, #3c1243 0, transparent 60%),
    var(--paper);
}
h1, h2, h3, .intro h1, .photo-title h2, .sug-who h2 { letter-spacing: -.02em; }
.intro h1 { font-weight: 700; }
.intro h1 em { font-style: normal; color: var(--rose); }

/* Botões */
.btn { border-radius: 999px; font-weight: 600; }
:root:not([data-contrast=true]) .primary { background: var(--grad); color: #fff; border: 0; box-shadow: var(--glow); }
:root:not([data-contrast=true]) .outline { background: rgba(255, 255, 255, .04); border: 1.5px solid rgba(255, 255, 255, .42); color: var(--ink); }
:root:not([data-contrast=true]) .outline:hover { background: rgba(255, 255, 255, .1); }
:root:not([data-contrast=true]) .textbtn { color: var(--rose); }
:root:not([data-contrast=true]) #toast { background: #fff0f4; color: #2a1026; }

/* Cabeçalho e navegação */
.brand img { background: none !important; padding: 0 !important; width: 150px; height: auto; }
.calm-toggle { display: inline-flex; align-items: center; gap: 8px; }
.calm-toggle svg { width: 22px; height: 22px; }
:root:not([data-contrast=true]) .sidebar { background: rgba(20, 8, 23, .78); border-color: var(--line); }
:root:not([data-contrast=true]) .navitem.active { background: rgba(255, 120, 140, .14); color: var(--rose); box-shadow: inset 3px 0 #e0456e; }
:root:not([data-contrast=true]) .navcount { background: #e0456e; color: #fff; }
@media (max-width: 760px) {
  .brand img { width: 112px; }
  .brand-wrap { grid-column: 1; }
  .demo-label { grid-column: 2; justify-self: end; margin: 0 6px 0 0; }
  .calm-toggle { grid-column: 3; justify-self: end; margin-right: max(8px, env(safe-area-inset-right)); padding: 8px 10px; }
  .calm-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :root:not([data-contrast=true]) #nav { background: #1a0b1e; border-top-color: var(--line); }
  :root:not([data-contrast=true]) .navitem.active { box-shadow: none; background: transparent; }
  :root:not([data-contrast=true]) .navitem.active { color: #ff8a8a; }
  .navitem.active svg { stroke-width: 2.4; }
}

/* Abas de Descobrir */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; margin: -4px 0 18px; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--control); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; white-space: nowrap; flex: none; }
.tab svg { width: 18px; height: 18px; }
:root:not([data-contrast=true]) .tab[aria-pressed=true] { background: var(--grad); border-color: transparent; color: #fff; }
[data-contrast=true] .tab[aria-pressed=true] { background: #ffed85; color: #000; }

@media (max-width: 430px) {
  .tabs { gap: 6px; }
  .tab { flex: 1 1 0; min-width: 0; justify-content: center; padding: 8px 6px; font-size: .82rem; gap: 5px; }
  .tab svg { width: 16px; height: 16px; }
}
body.is-welcome .brand-wrap { visibility: hidden; }
.welcome h1 { position: relative; z-index: 1; }

/* Cartão de sugestão */
.sug-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.sug { display: block; padding: 0; overflow: hidden; border-radius: 28px; }
:root:not([data-contrast=true]) .sug { background: linear-gradient(180deg, #2a142f, #200f25); border: 1px solid #5a3253; box-shadow: 0 18px 44px rgba(0, 0, 0, .38); }
.sug-photo { position: relative; margin: 10px 10px 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 64vh; background: var(--control); }
.sug-photo .sug-pic { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 0; display: block; }
.sug-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(23, 6, 22, .55) 62%, rgba(23, 6, 22, .94) 100%); pointer-events: none; }
.sug-over { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; color: #fff; }
.sug-over h2 { font-size: clamp(1.7rem, 6vw, 2.1rem); font-weight: 700; line-height: 1.1; color: #fff; }
.sug-over .pinfo { color: #fff; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(26, 10, 28, .72); border: 1px solid rgba(255, 255, 255, .28); font-size: .84rem; font-weight: 500; color: #fff; }
.chip-tag svg { width: 15px; height: 15px; }
.kind-badge { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(26, 10, 28, .78); color: #fff; font-size: .8rem; font-weight: 600; border: 1px solid rgba(255, 255, 255, .25); }
.sug-actions { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 6vw, 30px); padding: 16px 12px 4px; }
.round { display: grid; justify-items: center; gap: 6px; min-width: 76px; font-size: .78rem; font-weight: 600; color: var(--sub); }
.round .disc { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #3a2238; border: 1px solid var(--edge); color: #fff; transition: transform .15s ease; }
.round .disc svg { width: 26px; height: 26px; stroke-width: 2.2; }
.round.like .disc { width: 76px; height: 76px; background: var(--grad); border: 0; box-shadow: var(--glow); }
.round.like .disc svg { width: 34px; height: 34px; fill: #fff; stroke: #fff; }
.round.star .disc svg { fill: var(--sun); stroke: var(--sun); }
.round:hover .disc { transform: translateY(-2px); }
.round-label { max-width: 90px; text-align: center; line-height: 1.25; }
.sug-body { display: grid; gap: 12px; padding: 10px 20px 20px; }
.sug-body .textbtn { justify-self: start; }

/* Boas-vindas */
body.is-welcome .tabs { display: none; }
.welcome { position: relative; max-width: 460px !important; margin: 0 auto; padding: 18px 4px 24px; display: grid; gap: 18px; }
.welcome-logo { width: min(260px, 70%); height: auto; }
.welcome h1 { font-size: clamp(2rem, 8vw, 2.7rem); line-height: 1.15; font-weight: 700; max-width: 12ch; }
.welcome h1 em { font-style: normal; color: #ff7a6b; }
.welcome-heart { position: absolute; right: 0; top: 0; width: 96px; height: auto; opacity: .9; fill: none; stroke: #ff6f86; stroke-width: 3; filter: drop-shadow(0 0 8px rgba(255, 90, 120, .8)); }
.welcome-list { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 16px; }
.welcome-list li { display: flex; align-items: center; gap: 16px; font-size: 1.02rem; }
.welcome-list svg { width: 30px; height: 30px; color: #ff7a8a; flex: none; }
.welcome-actions { display: grid; gap: 12px; }
.welcome-actions .btn { width: 100%; min-height: 54px; font-size: 1.02rem; }
.welcome-note { color: var(--sub); font-size: .86rem; text-align: center; }

/* Deu match */
.match-hero { position: relative; height: 210px; display: grid; place-items: center; margin: 4px 0 10px; }
.match-heart { position: absolute; width: 300px; height: auto; max-width: 100%; fill: none; stroke: #ff5f86; stroke-width: 2.4; filter: drop-shadow(0 0 10px rgba(255, 80, 120, .75)); }
.match-me, .match-them { position: absolute; top: 46px; width: 118px; height: 118px; border-radius: 50%; object-fit: cover; border: 4px solid #ff7a8a; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.match-me { left: calc(50% - 112px); display: grid; place-items: center; background: #3a2238; color: #fff; font-weight: 700; font-size: 1.4rem; }
.match-them { left: calc(50% - 6px); }
.match-badge { position: absolute; top: 124px; left: calc(50% - 24px); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.match-badge svg { width: 26px; height: 26px; fill: #e2365f; stroke: #e2365f; }
.match-modal .match-copy { font-size: 1.05rem; text-align: center; }
.match-actions { display: grid !important; gap: 10px; justify-content: stretch !important; }
.match-actions .btn { width: 100%; min-height: 50px; }

/* Cartões, folhas e formulários no novo visual */
:root:not([data-contrast=true]) .formbox, :root:not([data-contrast=true]) .listbox, :root:not([data-contrast=true]) .empty { background: rgba(36, 18, 42, .86); border-color: #4f2c49; border-radius: 22px; }
:root:not([data-contrast=true]) dialog { background: #1f0e24; border-color: #5a3253; border-radius: 24px; }
:root:not([data-contrast=true]) .sheethead { background: #1f0e24; }
:root:not([data-contrast=true]) .option input:checked + span { background: var(--grad); color: #fff; border-color: transparent; }
:root:not([data-contrast=true]) .sug-label { color: var(--rose); }

/* Modos de acessibilidade aplicados ao novo cartão */
[data-nophoto=true] .sug-photo { aspect-ratio: auto; max-height: none; }
[data-nophoto=true] .sug-photo .sug-pic, [data-nophoto=true] .sug-photo::after, [data-nophoto=true] .match-hero { display: none; }
[data-nophoto=true] .sug-over { position: static; padding: 46px 18px 18px; }
[data-contrast=true] .sug-photo::after { display: none; }
[data-contrast=true] .sug-over { background: #000; padding: 10px 12px; border-radius: 12px; border: 1px solid #fff; }
[data-contrast=true] .chip-tag, [data-contrast=true] .kind-badge { background: #000; border-color: #fff; }
[data-contrast=true] .round .disc { background: #000; border: 2px solid #fff; }
[data-contrast=true] .round.like .disc { background: #ffed85; }
[data-contrast=true] .round.like .disc svg { fill: #000; stroke: #000; }
[data-contrast=true] .round-label { color: #fff; }
[data-calm=true] .welcome-heart, [data-calm=true] .match-heart { filter: none; }
[data-calm=true] .primary, [data-calm=true] .round.like .disc, [data-calm=true] .tab[aria-pressed=true] { box-shadow: none !important; }
[data-calm=true] body { background: var(--paper) !important; }
[data-large=true] .sug-photo { aspect-ratio: auto; max-height: none; }
[data-large=true] .sug-photo .sug-pic { height: clamp(180px, 36vh, 340px); }
[data-large=true] .sug-photo::after { display: none; }
[data-large=true] .sug-over { position: static; padding: 12px 6px 4px; }
[data-large=true] .round { min-width: 0; }
@media (prefers-reduced-motion: reduce) { .round .disc { transition: none; } }

/* Atividade recente: discreta, sem cor de alerta */
.activity { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: .86rem; color: var(--sub); }
.activity svg { width: 15px; height: 15px; }
.sug-over .activity { color: #f3e4ef; }
[data-contrast=true] .activity, [data-contrast=true] .sug-over .activity { color: #fff; }

.welcome-actions .textbtn { justify-self: center; }

/* Faixa de conta no Início */
.account-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border-radius: 18px; border: 1px solid #6e3a63; background: linear-gradient(100deg, rgba(207, 61, 51, .22), rgba(196, 42, 104, .22)); }
.account-banner p { margin: 0; flex: 1 1 220px; }
.account-banner .actions { gap: 8px; }
[data-contrast=true] .account-banner { background: #000; border-color: #fff; }

/* Prévia do próprio perfil */
.preview-cta { margin: -8px 0 18px; }
.preview-cta .btn { width: 100%; max-width: 420px; }
.preview-card { margin: 4px 0 14px; }
.preview-card .sug-photo { aspect-ratio: auto; height: min(46vh, 420px); max-height: none; }
.preview-nophoto { width: 100%; height: 100%; min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--sub); background: var(--control); }
.preview-nophoto svg { width: 56px; height: 56px; }
dialog .tabs .tab { flex: 1 1 0; justify-content: center; white-space: normal; text-align: center; line-height: 1.2; }

/* Sobre mim */
.about-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 6px; }
.about-sub { font-size: .95rem; margin: 12px 0 8px; }
.chip[aria-pressed=true] { background: var(--grad); color: #fff; border-color: transparent; }
[data-contrast=true] .chip[aria-pressed=true] { background: #ffed85; color: #000; }
.preview-card .sug-quote { white-space: pre-wrap; overflow-wrap: anywhere; font-style: normal; font-family: var(--sans); font-size: 1rem; }

/* Configuração de afinidades */
.importance { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.importance-label { font-size: .86rem; font-weight: 600; color: var(--sub); }
.importance .option span { min-height: 36px; font-size: .86rem; padding: 4px 10px; }
.age-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.age-row .input { width: 86px; margin: 0; }
.age-row .field { margin: 0; }
form[data-form="prefs"] > .btn { width: 100%; }

/* Escolhas longas de O que tu procuras aqui */
.options:has(input[name="lookingFor"]) { display: grid; gap: 8px; }
.options:has(input[name="lookingFor"]) .option span { width: 100%; }

/* Perfis reais */
.km-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.city-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; }
.city-row .input { margin-bottom: 12px; }
.public-status { margin: 0 0 10px; font-weight: 600; color: var(--sub); }
.public-status.on { color: #8fe0a8; }
[data-contrast=true] .public-status.on { color: #fff; }

/* Quatro abas no celular: duas por linha */
@media (max-width: 430px) {
  .tabs:not(dialog .tabs) { flex-wrap: wrap; overflow: visible; }
  .tabs:not(dialog .tabs) .tab { flex: 1 1 calc(50% - 6px); }
}

/* Celular: a página rola normalmente, o cabeçalho fica preso no topo e a navegação embaixo.
   Substitui o layout em grade com rolagem interna, que o Safari do iPhone não respeita. */
@media (max-width: 760px) {
  html, body { height: auto; }
  body { display: block; overflow: visible; min-height: 100vh; }
  .sidebar {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
    position: sticky; top: 0; z-index: 30; width: 100%; height: auto; min-height: 0;
    padding: calc(6px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 6px max(10px, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid var(--line);
  }
  :root:not([data-contrast=true]) .sidebar { background: #170a1b; }
  [data-contrast=true] .sidebar { background: #000; }
  .brand-wrap { order: 1; margin: 0; flex: none; }
  .demo-label { order: 2; margin: 0 0 0 auto; }
  .calm-toggle { order: 3; margin: 0; }
  #main { overflow: visible; min-height: 0; border-top: 0; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  #nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  [data-large=true] body { display: block; }
  [data-large=true] .demo-label { margin: 0 0 0 auto; }
}
@media (max-width: 380px) { .demo-label { display: none; } }
/* Ao rolar até um campo ou botão, ele não para atrás do cabeçalho nem da navegação. */
@media (max-width: 760px) {
  html { scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}

/* Conversa entre pessoas reais */
.real-chatlog { display: grid; gap: 4px; max-height: 46vh; }
.msg { display: grid; justify-items: end; }
.msg.theirs { justify-items: start; }
.msg .bubble { margin: 4px 0 2px !important; }
.bubble.theirs { margin-left: 0 !important; margin-right: auto !important; background: var(--control); border: 1px solid var(--line); border-radius: 14px 14px 14px 3px; }
.msg-time { font-size: .74rem; color: var(--sub); }
.msg-alert { display: flex; gap: 8px; align-items: flex-start; max-width: 92%; margin: 4px 0 8px !important; padding: 8px 10px; border-radius: 10px; background: rgba(255, 184, 174, .14); border: 1px solid #ffb8ae; color: var(--ink); font-size: .86rem; }
.msg-alert svg { flex: none; width: 18px; height: 18px; color: #ffb8ae; }
.unread { color: var(--rose); font-weight: 700; }
/* Painel de denúncias */
.report-card { display: grid; gap: 8px; }
.report-card h2 { font-size: 1.15rem; margin: 0; }
.report-meta { margin: 0; color: var(--sub); font-size: .86rem; }
.report-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; margin-right: 6px; }
.report-status.aberta { background: #ffb8ae; color: #2a0f0b; }
.report-status.resolvida { background: var(--control); color: var(--sub); border: 1px solid var(--line); }
.evidence { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.evidence li { padding: 8px 10px; border-radius: 10px; background: var(--control); overflow-wrap: anywhere; }
.evidence li.ev-alert { border: 1px solid #ffb8ae; }

/* ---------- conversa com pessoa real: cabeçalho clicável e área branca */
.chat-who { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 12px; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: 16px; background: var(--control); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.chat-who:hover, .chat-who:focus-visible { border-color: var(--plum); }
.chat-who.big { padding: 12px 14px; }
.who-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.who-text strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.chat-who.big .who-text strong { font-size: 1.25rem; }
.who-text small { color: var(--sub); font-size: .86rem; }
.who-arrow { font-size: 1.6rem; line-height: 1; color: var(--plum); }
.avatar { flex: none; border-radius: 50%; object-fit: cover; }
.avatar.md { width: 48px; height: 48px; }
.avatar.lg { width: 60px; height: 60px; }
.avatar.initial { display: grid; place-items: center; background: linear-gradient(135deg, #e0524a, #c1286b); color: #fff; font-weight: 700; font-size: 1.3rem; }
.real-connection { display: grid; gap: 10px; }
.real-connection .chat-who { margin: 0; }
.unread-line { margin: 0 !important; }

/* A área das mensagens é branca, como papel, em qualquer tema. */
.chat-paper { background: #fff; color: #2b1a28; border: 1px solid #e3d8e0; border-radius: 18px; padding: 14px 12px; max-height: 52vh; overflow: auto; }
.chat-paper .chat-safety { margin: 0 auto 10px !important; padding: 7px 10px; max-width: 94%; border-radius: 10px; background: #f6f1f5; color: #5f5260; font-size: .82rem; text-align: center; }
.chat-paper .chat-empty { margin: 18px 6px !important; color: #5f5260; text-align: center; }
.chat-paper .msg { gap: 2px; margin-top: 6px; }
.chat-paper .msg-who { font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: #8a3d6a; }
.chat-paper .msg.mine .msg-who { color: #49253f; }
.chat-paper .bubble { margin: 0 !important; background: #49253f; color: #fff; border: 0; border-radius: 16px 16px 4px 16px; font-size: 1rem; line-height: 1.4; }
.chat-paper .bubble.theirs { background: #f1ebf0; color: #2b1a28; border: 1px solid #e3d8e0; border-radius: 16px 16px 16px 4px; }
.chat-paper .msg-time { color: #6f6270; }
.chat-paper .status-note { background: #f6f1f5; color: #5f5260; }
.chat-paper .invite { background: #fff4ea; color: #2b1a28; border: 1px solid #f0d6bf; }
.chat-paper .msg-alert { background: #fdecea; color: #7a1f14; }
.chat-paper .msg-alert svg { color: #b3261e; }
.back-row { margin: 0 0 12px; }
:root[data-contrast=true] .chat-paper { border: 2px solid #000; }
:root[data-contrast=true] .chat-paper .bubble { background: #000; color: #fff; }
:root[data-contrast=true] .chat-paper .bubble.theirs { background: #fff; color: #000; border: 2px solid #000; }

/* ---------- combinados de conversa e pedido de explicação */
.pact-list { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 6px; }
.pact-list li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.pact-list svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--plum); }
.pact { margin: 0 0 12px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--control); color: var(--ink); }
.pact summary { cursor: pointer; font-weight: 700; padding: 4px 0; min-height: 32px; display: flex; align-items: center; }
.pact .pact-list { margin-bottom: 4px; }
.chat-paper .clarify-btn { margin-top: 2px; padding: 6px 4px; min-height: 32px; background: none; border: 0; color: #8a3d6a; font: inherit; font-size: .82rem;
  font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chat-paper .clarify-btn:disabled { color: #6f6270; text-decoration: none; cursor: default; }
.chat-paper .clarify-card { max-width: 92%; padding: 10px 12px; border-radius: 14px; background: #fff6e0; border: 1px solid #f0d58c; color: #2b1a28; }
.chat-paper .clarify-card strong { display: block; font-size: .9rem; }
.chat-paper .clarify-card blockquote { margin: 6px 0; padding-left: 10px; border-left: 3px solid #d9a521; font-style: italic; color: #4a3b4b; overflow-wrap: anywhere; }
.chat-paper .clarify-card p { margin: 0; font-size: .86rem; color: #4a3b4b; }
:root[data-contrast=true] .chat-paper .clarify-card { background: #fff; border: 2px solid #000; }

/* ---------- encontro previsível */
.invite-row { margin: 10px 0 4px; }
.invite-when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chat-paper .invite-card { width: min(100%, 340px); padding: 12px 14px; border-radius: 16px; background: #f3f8f4; border: 1px solid #cfe3d4; color: #2b1a28; }
.chat-paper .invite-title { display: flex; gap: 8px; align-items: center; font-size: .95rem; margin-bottom: 6px; }
.chat-paper .invite-title svg { width: 20px; height: 20px; color: #2f6b45; flex: none; }
.chat-paper .invite-card dl { margin: 0; display: grid; gap: 6px; }
.chat-paper .invite-card dl div { display: grid; gap: 1px; }
.chat-paper .invite-card dt { font-size: .78rem; font-weight: 700; color: #2f6b45; }
.chat-paper .invite-card dd { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }
.chat-paper .invite-state { margin: 10px 0 0 !important; font-size: .88rem; font-weight: 600; color: #4a3b4b; display: flex; gap: 6px; align-items: center; }
.chat-paper .invite-state.ok { color: #2f6b45; }
.chat-paper .invite-state svg { width: 18px; height: 18px; }
.chat-paper .invite-answers { display: grid; gap: 8px; margin-top: 12px; }
.chat-paper .invite-answers .btn { width: 100%; justify-content: center; }
.chat-paper .invite-answers .outline { background: #fff; color: #2b1a28; border: 1.5px solid #b9a6b6; }
:root[data-contrast=true] .chat-paper .invite-card { background: #fff; border: 2px solid #000; }
:root[data-contrast=true] .chat-paper .invite-card dt, :root[data-contrast=true] .chat-paper .invite-state { color: #000; }

/* ---------- como foi pra ti */
.chat-paper .reflect-row { margin-top: 12px; display: grid; gap: 8px; }
.chat-paper .reflect-row .btn { width: 100%; justify-content: center; }
.chat-paper .reflect-row .outline { background: #fff; color: #2b1a28; border: 1.5px solid #b9a6b6; }
.reflect-entry { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.reflect-entry .desc { margin: 2px 0 0; }

/* ---------- menu com Busca no centro e Ajustes */
.nav-settings { width: 100%; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
@media (max-width: 760px) {
  #nav { grid-template-columns: repeat(5, 1fr) !important; align-items: end; gap: 2px !important; }
  .navitem { font-size: .72rem; min-width: 0; text-align: center; }
  .navitem span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .nav-settings { text-align: center; }
  .nav-search { overflow: visible; }
  .nav-search svg { box-sizing: content-box; width: 24px; height: 24px; padding: 13px; margin-top: -28px; border-radius: 50%;
    background: var(--grad); color: #fff; stroke: #fff; box-shadow: var(--glow); border: 3px solid #1a0b1e; }
  .nav-search.active svg { stroke-width: 2.6; }
  :root:not([data-contrast=true]) .nav-search.active { background: transparent; }
  [data-contrast=true] .nav-search svg { background: #fff; stroke: #000; border-color: #000; box-shadow: none; }
}

/* ---------- lista da Busca */
.search-input { margin-bottom: 4px; }
.search-list { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 8px; }
.search-row[hidden] { display: none; }
.search-open { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 16px;
  background: var(--control); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.search-open:hover, .search-open:focus-visible { border-color: var(--plum); }
.search-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.search-text strong { font-size: 1.02rem; overflow-wrap: anywhere; }
.search-text small { color: var(--sub); font-size: .82rem; overflow-wrap: anywhere; }
.search-percent { display: grid; justify-items: end; flex: none; }
.search-percent b { font-size: 1.15rem; color: var(--rose); }
.search-percent small { color: var(--sub); font-size: .72rem; }
.search-sub { font-size: 1.1rem; margin: 18px 0 4px; }

/* ---------- pedidos de conversa */
.requests { margin-bottom: 16px; }
.request-card { display: grid; gap: 10px; }
.request-who { display: flex; align-items: center; gap: 12px; }
.request-body { margin: 0; padding: 10px 14px; border-radius: 14px; background: #fff; color: #2b1a28; border: 1px solid #e3d8e0; overflow-wrap: anywhere; }
.request-card .actions { align-items: center; }
.settings-check { margin: 0 0 14px; }
:root[data-contrast=true] .request-body { border: 2px solid #000; }
