/* Conversas (chat): caixa de entrada + conversa. Celular: uma tela de cada vez. */
.page-wide { max-width: 1480px; }
.convs-page { margin: 0 auto; }
.content:has(> .convs-page) { padding-bottom: 18px; }
.convs { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 0; height: calc(100dvh - var(--top-h) - clamp(36px, 3vw, 52px)); min-height: 480px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.convs-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); background: var(--surface-2); }
.convs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; }
.convs-title { font-size: 20px; }
.convs-head small { color: var(--muted); font-size: 12.5px; }
.convs-search { position: relative; margin: 0 16px 10px; }
.convs-search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.convs-search input { width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.convs-search input:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus); }
.convs-filters { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.convs-filters::-webkit-scrollbar { display: none; }
.convs-filters .chip { flex: none; }
.convs-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 12px; }
.convs-sec { margin: 14px 8px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.inbox-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.inbox-item { display: flex; gap: 12px; align-items: center; padding: 10px 10px; border-radius: 14px; text-decoration: none; color: inherit; transition: background .15s; min-width: 0; }
.inbox-item:hover { background: var(--surface-3); }
.inbox-item.is-active { background: var(--gold-soft); }
.inbox-av { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-3); color: var(--muted); }
.inbox-av.sm { width: 32px; height: 32px; }
.inbox-av.k-group { background: #1d1a14; color: var(--gold-2); }
.inbox-av.k-project_team { background: #2a2416; color: var(--gold-2); }
.inbox-av.k-project_client { background: var(--info-soft); color: var(--info); }
.inbox-av.k-client_support { background: var(--ok-soft); color: var(--ok); }
.inbox-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.inbox-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.inbox-row strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row small { flex: none; font-size: 11.5px; color: var(--faint); }
.inbox-last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.inbox-item.is-unread .inbox-last { color: var(--text); font-weight: 600; }
.inbox-item.is-unread .inbox-row small { color: var(--gold-ink); font-weight: 700; }
.inbox-flags { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.inbox-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.inbox-count.is-muted { background: var(--faint); }
.inbox-at { width: 20px; height: 20px; border-radius: 50%; background: var(--info); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.is-muted-ic { color: var(--faint); opacity: .6; }
.inbox-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.tag-int, .tag-cli, .tag-muted { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 1px 7px; border-radius: 999px; }
.tag-int { background: #1d1a14; color: var(--gold-3); }
.tag-cli { background: var(--info-soft); color: var(--info); }
.tag-muted { background: var(--surface-3); color: var(--muted); }
.found-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.found-list a { display: grid; gap: 1px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: inherit; }
.found-list a:hover { background: var(--surface-3); }
.found-list strong { font-size: 13px; }
.found-list span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.found-list small { font-size: 11.5px; color: var(--faint); }

/* ---------- conversa ---------- */
.chat-thread { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }
.chat-thread.is-empty { display: grid; place-items: center; padding: 24px; }
.chat-thread.is-embedded { height: min(76dvh, 760px); min-height: 460px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); min-width: 0; }
.chat-head-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); color: var(--muted); }
.chat-head-ic.k-group, .chat-head-ic.k-project_team { background: #1d1a14; color: var(--gold-2); }
.chat-head-ic.k-project_client { background: var(--info-soft); color: var(--info); }
.chat-head-ic.k-client_support { background: var(--ok-soft); color: var(--ok); }
.chat-head-ic .avatar { width: 40px; height: 40px; }
.chat-head-text { flex: 1; min-width: 0; display: grid; }
.chat-head-text strong { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head-text small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head-text small.is-typing { color: var(--ok); font-weight: 600; }
.chat-head-actions { flex: none; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.chat-head-actions .is-muted { color: var(--faint); opacity: .55; }
.chat-back { flex: none; }
.chat-band { display: flex; align-items: center; gap: 8px; padding: 7px 16px; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.chat-band.is-internal { background: #1d1a14; color: var(--gold-3); }
.chat-band.is-client { background: var(--info-soft); color: var(--info); }
.chat-find { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.chat-find .input { flex: 1; height: 36px; }
.chat-found { position: absolute; z-index: 6; top: 100%; left: 12px; right: 12px; margin: 4px 0 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-3); }
.chat-found button { display: grid; gap: 1px; width: 100%; padding: 8px 10px; text-align: left; border: 0; background: none; border-radius: 10px; font: inherit; color: inherit; cursor: pointer; }
.chat-found button:hover { background: var(--surface-3); }
.chat-found strong { font-size: 13px; }
.chat-found span { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-found small { font-size: 11.5px; color: var(--faint); }
.chat-body { position: relative; flex: 1; min-height: 0; display: flex; }
.chat-scroll { flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px clamp(10px, 2.4vw, 28px) 10px;
  background: radial-gradient(circle at 20% 0, rgba(224, 178, 74, .06), transparent 40%), var(--surface-2); }
.chat-more { display: flex; justify-content: center; padding: 4px 0 10px; }
.chat-day { display: flex; justify-content: center; margin: 14px 0 8px; position: sticky; top: 0; z-index: 2; }
.chat-day span { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px; box-shadow: var(--shadow-1); }
.msg-system { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin: 8px auto; max-width: 560px; text-align: center; }
.msg-system span { font-size: 12.5px; color: var(--muted); background: var(--surface-3); padding: 4px 12px; border-radius: 10px; }
.msg-system time { font-size: 10.5px; color: var(--faint); }

.msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; max-width: 100%; }
.msg.is-grouped { margin-top: 3px; }
.msg.is-mine { justify-content: flex-end; }
.msg-av-sp { width: 34px; flex: none; }
.msg-col { display: flex; flex-direction: column; min-width: 0; max-width: min(78%, 640px); }
.msg.is-mine .msg-col { align-items: flex-end; }
.msg-bubble { position: relative; padding: 8px 12px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); min-width: 92px; max-width: 100%; }
.msg:not(.is-mine):not(.is-grouped) .msg-bubble { border-bottom-left-radius: 6px; }
.msg.is-mine .msg-bubble { background: var(--gold-soft); border-color: rgba(195, 143, 40, .3); }
.msg.is-mine:not(.is-grouped) .msg-bubble { border-bottom-right-radius: 6px; }
.msg.is-mention .msg-bubble { box-shadow: inset 3px 0 0 var(--info), var(--shadow-1); }
.msg.is-flash .msg-bubble { animation: msgflash 1.6s var(--ease); }
@keyframes msgflash { 0%, 40% { box-shadow: 0 0 0 4px rgba(34, 86, 159, .35); } 100% { box-shadow: var(--shadow-1); } }
.msg-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.msg-head strong { font-size: 13px; color: var(--gold-ink); }
.msg-role { font-size: 11px; color: var(--faint); }
.msg-role.is-client { color: var(--info); font-weight: 700; }
.msg-body { margin: 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.msg-body.is-deleted { color: var(--faint); font-style: italic; display: inline-flex; align-items: center; gap: 6px; }
.msg-body a { word-break: break-all; }
.mention { color: var(--info); font-weight: 700; background: var(--info-soft); padding: 0 3px; border-radius: 4px; }
.msg-reply { display: grid; gap: 1px; width: 100%; margin: 2px 0 6px; padding: 6px 10px; border: 0; border-left: 3px solid var(--gold); border-radius: 8px; background: rgba(22, 18, 12, .05);
  text-align: left; font: inherit; color: inherit; cursor: pointer; }
.msg-reply strong { font-size: 12px; color: var(--gold-ink); }
.msg-reply span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-meta { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 2px; font-size: 11px; color: var(--faint); }
.msg-meta em { font-style: normal; }
.ticks { display: inline-flex; color: var(--faint); }
.ticks .ic + .ic { margin-left: -8px; }
.ticks.is-seen { color: var(--info); }
.msg-seen { font-size: 11px; color: var(--faint); margin: 2px 4px 0; }
.msg-tools { position: absolute; top: -16px; right: 8px; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 3; }
.msg.is-mine .msg-tools { right: auto; left: 8px; }
.msg-bubble:hover .msg-tools, .msg-bubble:focus-within .msg-tools, .msg-tools.is-open { opacity: 1; pointer-events: auto; }
.msg-tool { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.msg-tool:hover { background: var(--surface-3); color: var(--ink); }
.msg-tool.is-danger:hover { color: var(--bad); background: var(--bad-soft); }
.emoji-pop { position: absolute; top: 100%; right: 0; margin-top: 4px; display: flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-3); }
.msg.is-mine .emoji-pop { right: auto; left: 0; }
.emoji-pop button { width: 32px; height: 32px; border: 0; background: none; border-radius: 50%; font-size: 18px; cursor: pointer; transition: transform .12s; }
.emoji-pop button:hover { transform: scale(1.2); background: var(--surface-3); }
@media (hover: none) { .msg-tools { opacity: 1; pointer-events: auto; position: static; margin: 6px -4px -2px; justify-content: flex-end; box-shadow: none; border: 0; background: transparent; padding: 0; } }
.reacts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: -4px; padding: 0 6px; position: relative; z-index: 1; }
.react { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 12px; cursor: pointer; box-shadow: var(--shadow-1); }
.react b { font-weight: 700; color: var(--muted); }
.react.is-mine { border-color: var(--gold); background: var(--gold-soft); }
.react:disabled { cursor: default; }

/* anexos */
.catt { display: grid; gap: 6px; margin: 4px 0 2px; }
.catt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: min(360px, 58vw); }
.catt-grid.is-one { grid-template-columns: 1fr; width: min(320px, 58vw); }
.catt-img { display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--surface-3); cursor: zoom-in; aspect-ratio: 4 / 3; }
.catt-grid.is-one .catt-img { aspect-ratio: auto; max-height: 340px; }
.catt-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catt-grid.is-one .catt-img img { object-fit: contain; max-height: 340px; }
.catt-img-ph, .catt-media-ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 80px; }
.catt-media { display: grid; gap: 2px; width: min(360px, 58vw); }
.catt-video { width: 100%; max-height: 300px; border-radius: 10px; background: #000; }
.catt-audio { width: min(320px, 100%); }
.catt-cap { font-size: 11.5px; color: var(--faint); }
.catt-doc { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 12px; background: rgba(22, 18, 12, .04); border: 1px solid var(--line); width: min(340px, 58vw); min-width: 0; }
.catt-doc-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-3); color: var(--muted); }
.catt-doc.is-pdf .catt-doc-ic { background: var(--bad-soft); color: var(--bad); }
.catt-doc.is-sheet .catt-doc-ic { background: var(--ok-soft); color: var(--ok); }
.catt-doc.is-doc .catt-doc-ic { background: var(--info-soft); color: var(--info); }
.catt-doc.is-slides .catt-doc-ic { background: var(--warn-soft); color: var(--warn); }
.catt-doc-text { flex: 1; min-width: 0; display: grid; }
.catt-doc-text strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catt-doc-text small { font-size: 11.5px; color: var(--faint); }
.lightbox { display: grid; place-items: center; min-height: 200px; }
.lightbox img { max-width: 100%; max-height: 72vh; border-radius: 10px; }

.typing { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 2px 42px; font-size: 12.5px; color: var(--muted); }
.dots { display: inline-flex; gap: 3px; padding: 8px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-jump { position: absolute; z-index: 4; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-3); cursor: pointer; }
.chat-drop { position: absolute; inset: 10px; z-index: 8; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; border: 2px dashed var(--gold);
  border-radius: 18px; background: rgba(251, 241, 213, .92); color: var(--gold-ink); pointer-events: none; }
.chat-drop span { font-size: 13px; }

/* painel lateral */
.chat-side { flex: none; width: 320px; max-width: 100%; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--surface); min-height: 0; }
.chat-side-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-side-body { flex: 1; overflow-y: auto; padding: 14px; display: grid; align-content: start; gap: 12px; }
.chat-side-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 0; }
.chat-kind { margin: 0; font-size: 13px; font-weight: 700; color: var(--gold-ink); }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.people li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.people-text { flex: 1; min-width: 0; display: grid; }
.people-text strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-pick { max-height: 360px; overflow-y: auto; }
.people-pick button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.people-pick button:hover { background: var(--surface-3); }
.people-pick button > .ic { color: var(--gold); }

/* escrever */
.composer { position: relative; padding: 10px 12px 10px; border-top: 1px solid var(--line); background: var(--surface); }
.composer-row { display: flex; align-items: flex-end; gap: 6px; }
.composer-input { flex: 1; min-width: 0; min-height: 42px; max-height: 180px; padding: 10px 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface-2);
  font: inherit; font-size: 14.5px; line-height: 1.45; color: var(--text); resize: none; }
.composer-input:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus); background: var(--surface); }
.composer-send { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.composer-hint { margin: 6px 4px 0; font-size: 11.5px; color: var(--faint); }
.composer-ctx { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 6px 8px 6px 12px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--gold); }
.composer-ctx > span { flex: 1; min-width: 0; display: grid; }
.composer-ctx strong { font-size: 12.5px; color: var(--gold-ink); }
.composer-ctx small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-files { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.pend { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--surface-3); font-size: 12.5px; }
.pend > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pend button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--muted); }
.pend button:hover { background: var(--line); }
.mention-pop { position: absolute; bottom: calc(100% - 6px); left: 60px; z-index: 9; min-width: 240px; max-width: calc(100% - 80px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-3); }
.mention-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 10px; background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.mention-pop button:hover, .mention-pop li:first-child button { background: var(--surface-3); }
.mention-pop span { display: grid; font-size: 13.5px; }
.mention-pop small { font-size: 11.5px; color: var(--muted); }
.emoji-picker { position: relative; }
.emoji-btn { font-size: 20px; line-height: 1; }
.emoji-grid { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 9; display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-3); }
.emoji-grid button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; font-size: 20px; cursor: pointer; }
.emoji-grid button:hover { background: var(--surface-3); }
.chat-off { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; background: var(--surface-2); }

/* aba Mensagens do projeto e ficha do cliente */
.project-chat { display: grid; gap: 10px; }
.chat-switch { justify-self: start; }
.client-chat { align-items: start; }
.client-chat .chat-thread.is-embedded { height: min(70dvh, 680px); }

/* seletores segmentados e cartões de escolha (usados também em outras telas) */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-3); max-width: 100%; overflow-x: auto; }
.seg-wrap { flex-wrap: wrap; overflow: visible; margin-bottom: 14px; }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg-btn.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg-sm .seg-btn { height: 30px; font-size: 12.5px; }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.choice-card { display: grid; gap: 2px; justify-items: start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: inherit; text-align: left; cursor: pointer; color: inherit; }
.choice-card .ic { color: var(--gold); margin-bottom: 2px; }
.choice-card small { color: var(--muted); font-size: 12.5px; }
.choice-card.is-on { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(195, 143, 40, .18); }
.check-list { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.check-row:hover { background: var(--surface-2); }
.check-row span { display: grid; font-size: 13.5px; }
.check-row small { font-size: 11.5px; color: var(--muted); }
.stack-sm { display: grid; gap: 10px; }

/* tablet e celular */
@media (max-width: 1100px) {
  .chat-side { position: absolute; right: 0; top: 0; bottom: 0; z-index: 7; box-shadow: var(--shadow-3); }
}
@media (max-width: 900px) {
  .convs { grid-template-columns: 1fr; }
  .convs-list { border-right: 0; }
  .convs.has-thread .convs-list { display: none; }
  .chat-head { padding: 10px 10px; gap: 8px; }
  .chat-head-actions .btn span { display: none; }
  .msg-col { max-width: 86%; }
  .chat-thread.is-embedded { height: calc(100dvh - var(--top-h) - 170px); min-height: 420px; }
}
@media (max-width: 560px) {
  .convs { border-radius: 0; border: 0; height: calc(100dvh - var(--top-h)); min-height: 0; box-shadow: none; }
  .chat-band { padding: 6px 12px; font-size: 12px; }
  .chat-scroll { padding: 10px 8px; }
  .msg .avatar { width: 28px !important; height: 28px !important; }
  .msg-av-sp { width: 28px; }
  .composer { padding: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .composer-hint { display: none; }
  .emoji-grid { grid-template-columns: repeat(7, 34px); }
  .chat-side { width: 100%; }
}

/* no celular a conversa ocupa a tela inteira (sem margens do conteúdo), acima da barra inferior do portal */
@media (max-width: 720px) {
  .content:has(> .convs-page) { padding: 0 !important; }
  .convs { border-radius: 0; border: 0; box-shadow: none; height: calc(100dvh - var(--top-h)); min-height: 0; }
  .shell-portal .convs, .shell-admin.has-bottom .convs { height: calc(100dvh - var(--top-h) - 68px - env(safe-area-inset-bottom)); }
  .shell-portal .chat-thread.is-embedded, .shell-admin.has-bottom .chat-thread.is-embedded { height: calc(100dvh - var(--top-h) - 240px - env(safe-area-inset-bottom)); }
}
