/* Busca (search.js), previas de link (links.js) e GIFs (gifs.js) na pagina da guilda. Vem depois do guild.css. */

/* ---------------------------------------------------------------- mensagens saindo e que nao foram (outbox.js) */
.outb { display: contents; }
.m.failed > .tx, .m.failed > .rq { opacity: .8; }
.m.failed > .tx { color: var(--danger-text); }
.failb { display: flex; align-items: center; flex-wrap: wrap; column-gap: 8px; row-gap: 2px; margin-top: 3px; color: var(--danger-text); font-size: 12.5px; line-height: 1.4; }
.failb > .ic { width: 14px; height: 14px; flex: 0 0 auto; }
.failb b { font-weight: 600; }
.failb button { border: 0; padding: 0; background: none; color: var(--title); font: 600 12.5px var(--font); cursor: pointer; }
.failb button::before { content: '·'; margin-right: 8px; color: var(--text-3); font-weight: 400; }
.failb button:hover { text-decoration: underline; }
.failb button:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; border-radius: 4px; }
.failb small { flex-basis: 100%; color: var(--text-3); font-size: 12px; }
html.touch .failb button { padding: 8px 2px; margin: -4px 0; }

/* ---------------------------------------------------------------- enquetes (polls.js) */
.poll { width: min(440px, 100%); margin-top: 6px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); display: grid; gap: 10px; white-space: normal; }
.plh { display: flex; align-items: flex-start; gap: 9px; color: var(--title); }
.plh .ic { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--text-2); }
.plh b { min-width: 0; font: 600 15.5px/1.4 var(--font); overflow-wrap: anywhere; }
.pls { margin-top: -6px; color: var(--text-3); font-size: 12.5px; }
.pla { display: grid; gap: 7px; }
.plr { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 9px 12px; text-align: left; font: 500 14px/1.35 var(--font); color: var(--text); border-radius: 9px; background: var(--surface-3); border: 1px solid transparent; cursor: pointer; }
.plr:hover { border-color: var(--line-3); }
.plr:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.plr.on { border-color: color-mix(in srgb, var(--info) 70%, transparent); }
.plb { position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; border-radius: 0 8px 8px 0; background: color-mix(in srgb, var(--text-3) 34%, transparent); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.plr.on .plb { background: color-mix(in srgb, var(--info) 34%, transparent); }
.plr.win { border-color: color-mix(in srgb, var(--online) 65%, transparent); }
.plr.win .plb { background: color-mix(in srgb, var(--online) 28%, transparent); }
.ple { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; font-size: 18px; line-height: 1; }
.ple img.ge { width: 22px; height: 22px; object-fit: contain; margin: 0; vertical-align: 0; }
.poll .plt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pln { flex: 0 0 auto; color: var(--text-2); font-size: 12px; font-weight: 400; }
.plp { flex: 0 0 auto; min-width: 38px; text-align: right; color: var(--title); font-weight: 600; font-variant-numeric: tabular-nums; }
.plc { display: grid; place-items: center; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--info); color: #fff; }
.plc .ic { width: 12px; height: 12px; stroke-width: 3; }
.plr.win .plc { background: var(--ok); }
.plk { display: grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--text-3); }
.plk.one { border-radius: 50%; }
.plr.on .plk { background: var(--info); border-color: var(--info); color: #fff; }
.plk .ic { width: 13px; height: 13px; stroke-width: 3; }
.plf { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 32px; }
.pli { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.plw { border: 0; padding: 0; background: none; color: var(--text-2); font: 500 12.5px var(--font); cursor: pointer; }
.plw:not(:disabled):hover { color: var(--title); text-decoration: underline; }
.plw:disabled { cursor: default; color: var(--text-3); }
.plx { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.plx:empty { display: none; }
.pll { border: 0; padding: 4px 0; background: none; color: var(--text-2); font: 600 13px var(--font); cursor: pointer; }
.pll:hover { color: var(--title); text-decoration: underline; }
.plv { min-width: 76px; justify-content: center; }
.m.pinline.pollend { align-items: flex-start; }
.m.pinline.pollend .cic { top: 5px; transform: none; }
.m.pinline.pollend time { margin-left: 8px; }
.plec { display: flex; align-items: center; gap: 14px; width: min(440px, 100%); margin-top: 6px; padding: 11px 13px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); }
.plel { flex: 1; min-width: 0; display: grid; gap: 2px; }
.plel small { color: var(--text-3); font-size: 12.5px; overflow-wrap: anywhere; }
.plew { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--title); font-size: 15px; }
.plew b { min-width: 0; overflow-wrap: anywhere; }
.plew .plc { background: var(--ok); }
.ppoll { display: flex; align-items: center; gap: 7px; color: var(--text); }
.ppoll .ic { width: 15px; height: 15px; flex: 0 0 auto; color: var(--text-3); }
/* quem votou */
.plwq { margin: 0; color: var(--title); font-weight: 600; overflow-wrap: anywhere; }
.plwt { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.plwt button { display: flex; align-items: center; gap: 7px; max-width: 200px; flex: 0 0 auto; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font: 500 13px var(--font); cursor: pointer; }
.plwt button .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plwt button b { color: var(--text-3); }
.plwt button.on { border-color: var(--line-3); background: var(--surface-3); color: var(--title); }
.plwt .ple { width: 18px; height: 18px; font-size: 15px; } .plwt .ple img.ge { width: 18px; height: 18px; }
.plwl { display: grid; gap: 2px; min-height: 160px; max-height: min(340px, 46vh); overflow-y: auto; align-content: start; }
.plwc { padding: 4px 6px 6px; color: var(--text-3); font-size: 12.5px; }
.plwr { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 8px; }
.plwr .av { width: 30px; height: 30px; font-size: 11px; flex: 0 0 auto; }
.plwr b { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* criar */
.plm .nset { display: grid; gap: 14px; }
.plm .lbl { display: block; margin: 0 0 6px; }
.plm textarea.field { resize: none; }
.ctx .citem .cchk .ic { width: 13px; height: 13px; }   /* no celular a regra dos 20px dos icones do menu passava na frente e o visto saia do quadradinho */
.plml { display: grid; gap: 8px; }
.plmr { display: flex; align-items: center; gap: 8px; }
.plmr .field { flex: 1; min-width: 0; }
.plme { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-3); font-size: 20px; line-height: 1; cursor: pointer; }
.plme:hover { color: var(--title); border-color: var(--line-3); }
.plme .ic { width: 19px; height: 19px; }
.plme img.ge { width: 24px; height: 24px; object-fit: contain; margin: 0; }
.plmx { flex: 0 0 auto; background: transparent; border-color: transparent; color: var(--text-3); }
.plmx:hover { color: var(--danger-text); }
.plmadd { margin-top: 8px; }

/* ---------------------------------------------------------------- ir para… (quick.js) */
.qs-ov { position: fixed; inset: 0; z-index: 94; display: grid; justify-items: center; align-items: start; padding: min(14vh, 130px) 16px 16px; background: color-mix(in srgb, var(--deep) 78%, transparent); }
.qs { width: min(580px, 100%); max-height: min(560px, calc(100dvh - 32px)); display: flex; flex-direction: column; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.qstop { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; }
.qsin { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-3); background: var(--inset); color: var(--title); font: 500 17px var(--font); outline: none; }
.qsin:focus { border-color: var(--text-3); }
.qsin::placeholder { color: var(--text-3); font-weight: 400; }
.qsx { display: none; }
.qslist { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px; overscroll-behavior: contain; }
.qsh { padding: 10px 8px 5px; color: var(--text-3); font: 700 11.5px var(--font); letter-spacing: .05em; text-transform: uppercase; }
.qsr { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 5px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: 500 14.5px var(--font); text-align: left; cursor: pointer; }
.qsr.on { background: var(--surface-3); color: var(--title); }
.qsr b { flex: 0 1 auto; min-width: 0; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qsr.unread b { color: var(--title); font-weight: 700; }
.qsr small { flex: 1 1 0; min-width: 40px; color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qsi { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; color: var(--text-3); overflow: visible; }
.qsi .ic { width: 18px; height: 18px; }
.qsi.gi { border-radius: 9px; background: var(--surface-3); color: var(--title); font: 700 11px var(--font); overflow: hidden; }
.qsi.gi img { width: 100%; height: 100%; object-fit: cover; }
.qsi .avw { position: relative; }
.qsi .av { width: 26px; height: 26px; font-size: 10px; }
.qsi .dot { --dot-bg: var(--surface); position: absolute; right: -3px; bottom: -2px; width: 10px; height: 10px; box-shadow: 0 0 0 2px var(--surface); }
.qsr.on .qsi .dot { --dot-bg: var(--surface-3); box-shadow: 0 0 0 2px var(--surface-3); }
.qsv { margin-left: auto; flex: 0 0 auto; color: var(--online); font-size: 12px; }
.qsp { margin-left: auto; flex: 0 0 auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; background: var(--danger); color: #fff; font: 700 11px var(--font); }
.qsno { display: grid; place-items: center; padding: 34px 18px; color: var(--text-3); font-size: 13.5px; text-align: center; }
.qstip { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 9px 16px; border-top: 1px solid var(--line); background: var(--bg-2); }
.qstip button { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 3px 0; background: none; color: var(--text-3); font: 500 12.5px var(--font); cursor: pointer; }
.qstip button:hover { color: var(--text); }
.qstip kbd, .qbtn kbd { min-width: 19px; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font: 600 11.5px var(--font); text-align: center; }
/* botoes que abrem: no alto das conversas (sempre) e dos canais (celular) */
.qbtn { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--inset); color: var(--text-3); font: 500 12.5px var(--font); cursor: pointer; text-align: left; }
.qbtn:hover { color: var(--text-2); border-color: var(--line-3); }
.qbtn .ic { width: 15px; height: 15px; flex: 0 0 auto; }
.qbtn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmside .dmtop { padding: 0 10px; }
.chans > .qbtn { display: none; width: auto; margin: 10px 10px 0; flex: 0 0 auto; }
body.dmmode .chans > .qbtn { display: none !important; }

/* ---------------------------------------------------------------- status da conta (status.js) */
.ubar .avw { --dot-bg: var(--deep); position: relative; flex: 0 0 auto; }
.ubar .avw .dot { position: absolute; right: -4px; bottom: -3px; width: 12px; height: 12px; padding: 0; border: 0; box-shadow: 0 0 0 3px var(--deep); cursor: pointer; }
.ubar .avw .dot::after { content: ''; position: absolute; inset: -3px; }   /* alvo maior que a bolinha, sem cobrir o avatar */
html.touch .ubar .avw .dot::after { inset: -14px -8px -14px -5px; }
.ubar .avw .dot:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 4px; }
.ctx .citem > .dot { width: 11px; height: 11px; margin: 0 3px 0 1px; box-shadow: none; --dot-bg: var(--deep); }
.ctx .citem:hover > .dot, .ctx .citem:focus-visible > .dot { --dot-bg: var(--accent); }
.ctx .citem.hashint { align-items: center; padding-top: 7px; padding-bottom: 7px; }
.ctx .citem.hashint .cl { white-space: normal; }
.ctx .citem .cl small { display: block; margin-top: 1px; font-size: 11.5px; line-height: 1.35; opacity: .72; }
#pop .pav { --dot-bg: var(--deep); position: relative; width: 68px; }
#pop .pav > .dot { position: absolute; right: 2px; bottom: 4px; width: 16px; height: 16px; box-shadow: 0 0 0 5px var(--deep); }
.pacts .pstb { min-height: 34px; }
.pstb .dot { width: 11px; height: 11px; margin: 0 3px; box-shadow: none; }
.dmrow:hover .avw { --dot-bg: var(--surface-2); }
.dmrow.on .avw { --dot-bg: var(--surface-3); }
.dmrow.on .avw .dot { box-shadow: 0 0 0 3px var(--surface-3); }

/* ---------------------------------------------------------------- bloqueados (blocks.js) e PV silenciado */
.blkl { display: flex; align-items: center; gap: 9px; min-height: 28px; margin: 6px 18px 2px 34px; padding: 2px 0 2px 40px; position: relative; color: var(--text-3); font-size: 13px; }
.blkl > .ic { position: absolute; left: 10px; width: 16px; height: 16px; }
.blkb { border: 0; padding: 0; background: none; color: var(--text-2); font: 600 13px var(--font); cursor: pointer; }
.blkb::before { content: '·'; margin-right: 9px; color: var(--text-3); }
.blkb:hover { color: var(--title); text-decoration: underline; }
html.touch .blkb { padding: 9px 8px; margin: -9px -8px; }
.blkl.open { border-top: 1px dashed var(--line-2); padding-top: 6px; }
.pinspop .blkl, .spl .blkl { margin: 4px 0; padding-left: 34px; }
.m .rq.blkq .blkb { font-size: 12.5px; }
.m .rq.blkq .rqt { flex: 0 1 auto; }
.blkbtn.bad { color: var(--danger-text); }
.blkul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.blkul li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 14px; line-height: 1.4; }
.blkul .ic { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--text-2); }
.blklist { display: grid; gap: 4px; max-height: min(420px, 50vh); overflow-y: auto; }
.blkrow { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; background: var(--surface); }
.blkrow .av { width: 34px; height: 34px; font-size: 13px; flex: 0 0 auto; }
.blkrow .dmn { flex: 1; min-width: 0; display: grid; }
.blkrow .dmn b { color: var(--title); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blkrow .dmn small { color: var(--text-3); font-size: 12px; }
.dpacts { margin-top: 12px; display: grid; }
.nosend .btn { margin-left: 6px; vertical-align: middle; }
.dmrow .mut { display: grid; color: var(--text-3); flex: 0 0 auto; }
.dmrow .mut .ic { width: 14px; height: 14px; }
.dmrow.muted { opacity: .78; }
.dmrow.muted .udot { background: var(--text-3); }
.dmrow.muted.unread .dmn b { color: var(--text-2); font-weight: 600; }
.rbadge.quiet { background: var(--surface-3); color: var(--text-2); }
@media (max-width: 760px) { .blkl { margin-left: 10px; } .blkl .blkb { padding: 8px 0; } }

/* ---------------------------------------------------------------- emojis da guilda (gemojis.js; o tamanho no texto fica no style.css) */
.rxb .e img.ge { height: 18px; width: auto; max-width: 28px; display: block; }
.m .acts .qr img.ge { height: 18px; width: auto; max-width: 24px; display: block; margin: 0 auto; }
.ctx .sqr .sq img.ge { height: 26px; width: auto; max-width: 34px; }
.spr img.ge.hit { outline: 2px solid var(--busy); outline-offset: 1px; border-radius: 4px; }
.cbtn img.ge { height: 16px; margin-right: 6px; }
.geadd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gecnt { color: var(--text-3); font-size: 13px; }
.gelist { display: grid; gap: 6px; }
.gerow { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.gepic { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; }
.gepic img.ge { max-width: 38px; max-height: 38px; height: auto; width: auto; }
.genm { display: flex; align-items: center; gap: 3px; flex: 1 1 130px; min-width: 0; }
.genm i { font-style: normal; color: var(--text-3); }
.genm .field { height: 32px; min-width: 0; padding: 0 8px; }
.gewho { color: var(--text-3); font-size: 12px; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .gerow { gap: 8px; } .gewho { display: none; } }

/* ---------------------------------------------------------------- bandeja de anexos (tray.js) */
.tray { display: flex; gap: 10px; padding: 12px; overflow-x: auto; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--surface-2); scrollbar-width: thin; overscroll-behavior-x: contain; }
.tray[hidden], .pastebar[hidden] { display: none; }
.composer.traying .box { border-top-left-radius: 0; border-top-right-radius: 0; }
.composer.traying.replying .tray { border-radius: 0; }
.tri { position: relative; flex: 0 0 168px; width: 168px; display: grid; gap: 3px; align-content: start; padding: 8px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.trth { position: relative; height: 108px; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; border-radius: 7px; background: var(--deep); color: var(--text-3); }
.trth img, .trth video { width: 100%; height: 100%; object-fit: cover; display: block; }
.trth > .ic { width: 40px; height: 40px; }
.trth.big { height: 180px; } .trth.big img, .trth.big video { object-fit: contain; }
.trv { position: absolute; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; }
.tri.sp .trth img, .tri.sp .trth video { filter: blur(18px); }
.trsp { position: absolute; padding: 4px 10px; border-radius: 12px; background: rgba(0, 0, 0, .7); color: #fff; font: 700 11px var(--font); letter-spacing: .04em; }
.tra { position: absolute; top: 2px; right: 2px; display: flex; gap: 1px; padding: 2px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.tra button { width: 28px; height: 26px; border: 0; border-radius: 6px; display: grid; place-items: center; background: transparent; color: var(--text-2); cursor: pointer; }
.tra button .ic { width: 16px; height: 16px; }
.tra button:hover { background: var(--surface-3); color: var(--title); }
.tra button.on { color: var(--title); background: var(--surface-3); }
.tra button.bad { color: var(--danger-text); }
.trn { font-size: 12.5px; font-weight: 600; color: var(--title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.tri small { font-size: 11px; color: var(--text-3); overflow-wrap: anywhere; line-height: 1.3; }
.tri.bad { border-color: color-mix(in srgb, var(--danger) 60%, transparent); }
.tri.bad small { color: var(--danger-text); }
.tragain { align-self: center; flex: 0 0 auto; }
.tray.shake { animation: trshake .32s; }
@keyframes trshake { 25% { transform: translateX(-6px); } 60% { transform: translateX(5px); } }
.tredit .lbl { display: block; margin-bottom: 6px; }
.trcnt { display: block; text-align: right; color: var(--text-3); font-size: 11.5px; margin-top: 3px; }
.pastebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; margin-bottom: 6px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-2); font-size: 13px; color: var(--text); }
.pastebar span { flex: 1 1 200px; }
/* anexo com spoiler e descricao (viewer.js) */
.att { position: relative; }
.spw { position: relative; overflow: hidden; border-radius: 10px; width: fit-content; max-width: 100%; min-width: min(150px, 100%); min-height: 46px; }
.spw > .spin2, .spw > img { filter: blur(44px); pointer-events: none; user-select: none; }
.spw.open > .spin2, .spw.open > img { filter: none; pointer-events: auto; user-select: auto; }
.spw.open { overflow: visible; min-width: 0; min-height: 0; }
.spcov { position: absolute; inset: 0; width: 100%; border: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--surface-3) 72%, transparent); cursor: pointer; }
.spcov span { padding: 7px 14px; border-radius: 16px; background: rgba(0, 0, 0, .72); color: #fff; font: 700 12.5px var(--font); letter-spacing: .05em; }
.spcov:hover span { background: #000; }
.attgrp.multi .spw { width: 100%; }
.altb { padding: 0 5px; border: 0; border-radius: 4px; background: var(--surface-3); color: var(--text-2); font: 700 9.5px/15px var(--font); cursor: pointer; vertical-align: 1px; }
.altt { margin-top: 4px; max-width: 420px; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 12.5px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.vw-sp { display: grid; gap: 4px; place-content: center; width: min(420px, 80vw); height: 260px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); color: var(--title); cursor: pointer; }
.vw-sp b { letter-spacing: .06em; }
.vw-sp small { color: var(--text-3); }
@media (max-width: 760px) {
  .tray { padding: 8px; gap: 8px; border-radius: 18px 18px 0 0; }
  .tri { flex-basis: 136px; width: 136px; padding: 6px; }
  .trth { height: 84px; }
  .tra button { width: 34px; height: 32px; }
  .composer.traying .box { border-radius: 0 0 22px 22px; }
}

/* ---------------------------------------------------------------- encaminhar (forward.js) */
.fwb { position: relative; width: fit-content; max-width: 100%; margin: 3px 0 2px; padding: 1px 0 3px 12px; border-left: 3px solid var(--line-3); border-radius: 2px; }
.fwh { display: flex; align-items: center; gap: 5px; color: var(--text-3); font-size: 12.5px; font-style: italic; margin-bottom: 2px; }
.fwh .ic { width: 14px; height: 14px; }
.fwf { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--text-3); font-size: 12px; }
.fwsrc { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; padding: 2px 7px 2px 4px; border: 0; border-radius: 7px; background: var(--surface-2); color: var(--text-2); font: 12px var(--font); cursor: pointer; }
.fwsrc:hover { background: var(--surface-3); color: var(--title); }
.fwf > span { flex: 0 0 auto; white-space: nowrap; }
.fwsrc img { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 5px; }
.fwsrc .ic { flex: 0 0 auto; width: 14px; height: 14px; }
.fwsrc b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwsrc span { flex: 0 1000 auto; min-width: 0; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m .rq .rqfw { display: grid; flex: 0 0 auto; } .m .rq .rqfw .ic { width: 13px; height: 13px; }
@media (min-width: 761px) { .gcard.fwm { width: min(520px, calc(100vw - 24px)); max-width: none; } }
.fwbox { display: grid; gap: 10px; min-height: 0; padding: 0 18px 14px; grid-template-columns: minmax(0, 1fr); }
.fwlist { display: grid; gap: 2px; align-content: start; height: min(300px, 34vh); overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 5px; background: var(--bg-2); }
.fwrow { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; cursor: pointer; font: 14px var(--font); }
.fwrow:hover { background: var(--surface-2); }
.fwrow.on { background: var(--surface-3); }
.fwrow:disabled { opacity: .45; cursor: default; }
.fwrow .av { width: 30px; height: 30px; font-size: 11px; flex: 0 0 auto; }
.fwgi { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; overflow: hidden; background: var(--surface-3); font: 700 11px var(--font); }
.fwgi img { width: 100%; height: 100%; object-fit: cover; }
.fwbox { overflow-y: auto; }
.fwrow .cchk { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-3); display: grid; place-items: center; }
.fwrow .cchk .ic { width: 14px; height: 14px; opacity: 0; }
.fwrow .cchk.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fwrow .cchk.on .ic { opacity: 1; }
.fwrow .dmn { flex: 1; min-width: 0; display: grid; }
.fwrow .dmn b, .fwrow .dmn small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwrow .dmn b { font-weight: 600; color: var(--title); }
.fwrow .dmn small { color: var(--text-3); font-size: 12px; }
.fwpv { max-height: 150px; overflow: auto; padding: 8px 12px; border-left: 3px solid var(--line-3); border-radius: 4px; background: var(--surface); color: var(--text); font-size: 13.5px; }
.fwpv .tx { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.fwpv .md-jumbo { font-size: 24px !important; } .fwpv .md-jumbo img.ge { height: 28px; }
.fwfs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fwfs img { width: 62px; height: 62px; object-fit: cover; border-radius: 7px; }
.fwfn { color: var(--text-2); font-size: 13px; }

/* ---------------------------------------------------------------- busca: campo no cabecalho */
.phead .sslot { flex: 0 1 auto; min-width: 110px; }
.phead .sslot + *, .phead .ibtn { flex-shrink: 0; }
.sfield { display: flex; align-items: center; gap: 6px; width: 168px; max-width: 100%; height: 32px; padding: 0 4px 0 9px; border-radius: 8px; background: var(--inset); border: 1px solid var(--line-2); color: var(--text-3); cursor: text; transition: width .16s; }
.sfield.foc, .sfield.full { width: min(300px, 34vw); }
.sfield.foc { border-color: var(--line-3); }
.sfield .sfi { display: grid; flex: 0 0 auto; }
.sfield .sfi .ic { width: 15px; height: 15px; }
.sfbox { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sfbox::-webkit-scrollbar { display: none; }
.sfin { flex: 1 0 70px; width: 70px; min-width: 60px; height: 28px; padding: 0; border: 0; outline: none; background: transparent; color: var(--title); font: 13.5px var(--font); }
.sfin::placeholder { color: var(--text-3); }
.schip { flex: 0 0 auto; display: inline-flex; align-items: center; max-width: 190px; height: 22px; padding: 0 4px 0 7px; border: 0; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font: 12px var(--font); cursor: pointer; white-space: pre; }
.schip b { color: var(--title); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.schip .ic { width: 12px; height: 12px; margin-left: 3px; opacity: .7; flex: 0 0 auto; }
.schip:hover { background: var(--line-2); }
.sfx { flex: 0 0 auto; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); display: grid; place-items: center; cursor: pointer; }
.sfx:hover { color: var(--title); }
.sfx .ic { width: 14px; height: 14px; }

/* sugestoes */
.ssug { position: fixed; z-index: 48; width: 340px; max-width: calc(100vw - 16px); max-height: min(70vh, 520px); overflow-y: auto; padding: 8px; border-radius: 10px; background: var(--deep); border: 1px solid var(--line-2); box-shadow: 0 16px 44px rgba(0, 0, 0, .55); }
.ssug .ssh { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 5px; color: var(--text-3); font: 700 11px var(--font); letter-spacing: .04em; text-transform: uppercase; }
.ssug .ssh:first-child { padding-top: 3px; }
.ssclr { border: 0; padding: 2px 4px; background: none; color: var(--link); font: 500 12px var(--font); letter-spacing: 0; text-transform: none; cursor: pointer; }
.ssi { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 5px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font: 13.5px var(--font); text-align: left; cursor: pointer; }
.ssi.on { background: var(--surface-3); color: var(--text); }
.ssi .si { flex: 0 0 22px; display: grid; place-items: center; color: var(--text-3); }
.ssi .si .ic { width: 16px; height: 16px; }
.ssi .si .av { width: 22px; height: 22px; font-size: 9px; }
.ssi .st { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssi .st b { color: var(--title); font-weight: 600; white-space: pre; }
.ssi small { flex: 0 1 auto; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 12px; }
.ssnone { padding: 10px 8px; color: var(--text-3); font-size: 13px; }
.ssdate { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding: 8px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13px; }
.ssdate input { height: 32px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--title); font: 13px var(--font); color-scheme: dark; }

/* resultados: coluna da direita, no lugar dos membros */
body.gapp > .spanel { grid-column: 4; grid-row: 1; }
.spanel { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line); }
body.gapp.searching, body.gapp.searching.nomembers { grid-template-columns: 72px var(--chans-w, 264px) minmax(0, 1fr) 400px; }
body.gapp.searching .mlist { display: none; }
body.gapp.searching .pane > .rsz.mr { display: none; }
.sphd { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); }
.sphd .sptot { flex: 1; min-width: 0; color: var(--title); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sphd .spx { background: transparent; border-color: transparent; }
.sseg { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--inset); border: 1px solid var(--line); }
.sseg button { padding: 5px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); font: 600 12px var(--font); white-space: nowrap; cursor: pointer; }
.sseg button.on { background: var(--surface-3); color: var(--title); }
.sseg.wide { flex: 0 0 auto; margin: 10px 12px 0; }
.sseg.wide button { flex: 1; padding: 7px 9px; }
.spl { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px 16px; overscroll-behavior: contain; }
.spg { position: sticky; top: -8px; z-index: 1; display: flex; align-items: center; gap: 6px; margin: 0 -2px; padding: 10px 4px 6px; background: var(--bg-2); color: var(--title); font-size: 13.5px; }
.spg .ic { width: 16px; height: 16px; color: var(--text-3); }
.spg .av { width: 20px; height: 20px; font-size: 8px; }
.spg b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spg small { color: var(--text-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spr { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin-bottom: 8px; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.spr:hover { border-color: var(--line-3); background: var(--surface-2); }
.spr.on { border-color: var(--accent-line); background: var(--surface-2); }
.spr:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 1px; }
.spr > .av { width: 34px; height: 34px; font-size: 12px; }
.spr > .av.sysav { background: var(--surface-3); overflow: hidden; }
.spr > .av.sysav img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.spb { min-width: 0; }
.spt { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.spt b { min-width: 0; color: var(--title); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spt time { flex: 0 0 auto; margin-left: auto; color: var(--text-3); font-size: 11px; white-space: nowrap; }
.spt .spin { align-self: center; display: grid; color: var(--text-3); }
.spt .spin .ic { width: 12px; height: 12px; }
.spr .tx { margin-top: 2px; max-height: 172px; overflow: hidden; color: var(--text); font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.spr .tx a { color: var(--link); }
.spr .tx.md-jumbo { font-size: 26px; }
.spanel mark { padding: 0 1px; border-radius: 3px; background: color-mix(in srgb, var(--busy) 42%, transparent); color: inherit; }
.sphint { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--text-3); font-size: 12px; min-width: 0; }
.sphint span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sphint .ic { flex: 0 0 auto; width: 13px; height: 13px; }
.spimg { display: block; margin-top: 6px; max-width: 160px; max-height: 110px; border-radius: 8px; border: 1px solid var(--line-2); }
.spp { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; color: var(--text-3); font-size: 12.5px; }
.spwarn { margin: 4px 4px 10px; color: var(--busy-text); font-size: 12.5px; line-height: 1.45; }
.spanel .ppempty, .gfp .ppempty { display: grid; justify-items: center; gap: 6px; padding: 40px 18px; text-align: center; color: var(--text-2); }
.spanel .ppempty .ppbig, .gfp .ppempty .ppbig { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.spanel .ppempty .ppbig .ic, .gfp .ppempty .ppbig .ic { width: 26px; height: 26px; }
.spanel .ppempty small, .gfp .ppempty small { max-width: 300px; color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.spanel .ppempty .btn { margin-top: 6px; }
@media (max-width: 1150px) {
  body.gapp.searching, body.gapp.searching.nomembers { grid-template-columns: 72px var(--chans-w, 264px) minmax(0, 1fr); }
  .spanel { position: fixed; z-index: 35; right: 0; top: 52px; bottom: 0; width: min(400px, calc(100vw - 80px)); box-shadow: var(--shadow); }
  .sfield { width: 140px; }
  .sfield.foc, .sfield.full { width: 230px; }
}

/* ---------------------------------------------------------------- previas de link */
.lps { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; justify-items: start; width: fit-content; max-width: 100%; margin: 5px 0 2px; }
.lpi { min-width: 0; max-width: 100%; }
.lpc { --lc: var(--line-3); position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: min(432px, 100%); padding: 9px 13px 11px 13px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--lc); }
.lpc.th { grid-template-columns: minmax(0, 1fr) auto; max-width: min(520px, 100%); }
.lptx { min-width: 0; display: grid; gap: 3px; align-content: start; }
.lpsite { color: var(--text-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpauth { color: var(--text-2); font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lptit { color: var(--link); font-size: 14.5px; font-weight: 600; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
a.lptit:hover { text-decoration: underline; }
.lpdesc { color: var(--text-2); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.lpimg { position: relative; display: block; max-width: 100%; overflow: hidden; border-radius: 8px; background: var(--deep); }
.lpimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lpi .lpimg { border: 1px solid var(--line-2); border-radius: 10px; cursor: zoom-in; }
.lpth { position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--deep); }
.lpth img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lpv { position: relative; width: 400px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--deep); }
.lpplay { position: absolute; inset: 0; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.lpplay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lppi { position: relative; width: 62px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(10, 10, 12, .78); color: #fff; transition: background .12s; }
.lppi svg { width: 28px; height: 28px; fill: currentColor; }
.lpplay:hover .lppi, .lpplay:focus-visible .lppi { background: #e0283c; }
.lpv.on .lpplay { visibility: hidden; }
.lpfr { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lpdock { position: fixed; left: -10000px; top: 0; width: 400px; height: 225px; overflow: hidden; }
.lpx { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1px solid var(--line-3); background: var(--surface-2); color: var(--text-2); display: none; place-items: center; cursor: pointer; }
.lpx .ic { width: 13px; height: 13px; }
.lpx:hover { color: var(--danger-text); }
.lps:hover .lpx, .lpx:focus-visible { display: grid; }
html.touch .lps:hover .lpx { display: none; }   /* no celular: segurar a mensagem -> Tirar a previa */
.lpspo { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 8px; border: 1px dashed var(--line-3); background: var(--surface); color: var(--text-2); font: 500 13px var(--font); cursor: pointer; }
.lpspo .ic { width: 15px; height: 15px; }
.lpspo:hover { color: var(--title); }
/* imagens dos embeds de bot */
.scard .sc-ic { width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; object-fit: cover; vertical-align: -5px; }
.scard.hasth { grid-template-columns: minmax(0, 1fr) 80px; column-gap: 14px; align-content: start; }
.scard.hasth > * { grid-column: 1; }
.scard.hasth > .sc-img, .scard.hasth > .sc-foot, .scard.hasth > .sc-btns { grid-column: 1 / -1; }
.scard .sc-thumb { grid-column: 2 !important; align-self: start; width: 80px; height: 80px; border-radius: 8px; object-fit: cover; background: var(--deep); }
.scard .sc-img { justify-self: start; max-width: 100%; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.scard .sc-im { display: block; max-width: 100%; max-height: 300px; border-radius: 8px; }

/* ---------------------------------------------------------------- GIFs na conversa */
.gifb { position: absolute; left: 8px; top: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(5, 5, 6, .74); color: #fff; font: 700 10.5px/1.5 var(--font); letter-spacing: .03em; pointer-events: none; }
.still { position: relative; display: block; }
.still .gifcv { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.still:hover .gifcv, .still:hover .gifb { visibility: hidden; }
.att.isgif .gifw { position: relative; display: block; width: fit-content; max-width: 100%; }
.att.isgif .gifw a { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.gifm { position: relative; max-width: 100%; margin-top: 5px; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-2); }
.gifm.gone { aspect-ratio: auto !important; width: fit-content !important; padding: 10px 14px; }
.gifbox { position: absolute; inset: 0; display: block; overflow: hidden; }
.gifmm { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gifna { color: var(--text-3); font-size: 12.5px; }
.gifbox .gifna { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center; overflow: hidden; }
.gifk { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 5px; background: rgba(5, 5, 6, .6); color: rgba(255, 255, 255, .82); font: 700 9.5px/1.6 var(--font); letter-spacing: .05em; pointer-events: none; }
.gifload { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 3px; padding: 10px; border: 0; background: transparent; color: var(--text-2); font: 13px var(--font); cursor: pointer; }
.gifload b { color: var(--title); font-size: 15px; }
.gifload span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gifload small { color: var(--text-3); }
.gifst { position: absolute; right: 8px; top: 8px; z-index: 2; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: rgba(5, 5, 6, .66); color: #fff; display: grid; place-items: center; opacity: 0; cursor: pointer; transition: opacity .12s; }
.gifst .ic { width: 17px; height: 17px; }
.gifst.on { color: #ffd166; }
.gifst.on .ic { fill: currentColor; }
.gifm:hover .gifst, .gifw:hover .gifst, .gifst:focus-visible { opacity: 1; }
html.touch .gifst { opacity: .85; width: 36px; height: 36px; }

/* ---------------------------------------------------------------- seletor de GIF */
.composer textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* com o botao GIF, o nome da conversa quebrava em duas linhas no celular */
.gifbtn span { font: 800 10.5px/1 var(--font); letter-spacing: .02em; padding: 4px 4px; border-radius: 5px; border: 1.8px solid currentColor; }
.composer .gifbtn.on { background: var(--surface-3); color: var(--title); }
.gfp { position: fixed; z-index: 96; display: flex; flex-direction: column; border-radius: 12px; background: var(--deep); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); overflow: hidden; }
.gftop { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 0 12px; }
.gftabs { display: flex; gap: 4px; }
.gftabs button { padding: 7px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); font: 600 13.5px var(--font); cursor: pointer; }
.gftabs button.on { background: var(--surface-3); color: var(--title); }
.gftop .gfx { background: transparent; border-color: transparent; }
.gfbar { flex: 0 0 auto; padding: 8px 12px 0; }
.gfq { width: 100%; height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--title); font: 14px var(--font); outline: none; }
.gfq:focus { border-color: var(--line-3); }
.gfbody { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 12px; overscroll-behavior: contain; }
.gfh { padding: 4px 2px 8px; color: var(--text-3); font: 700 11px var(--font); letter-spacing: .04em; text-transform: uppercase; }
.gfgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 10px; }
.gfcol { display: grid; gap: 8px; align-content: start; min-width: 0; }
.gft { position: relative; border-radius: 8px; overflow: hidden; background: var(--surface-2) center / cover no-repeat; min-height: 44px; }
.gftb { position: absolute; inset: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.gft:hover { outline: 2px solid var(--title); }
.gftb:focus-visible { outline: 2px solid var(--primary-2); outline-offset: -2px; border-radius: 8px; }
.gfdel { position: absolute; right: 5px; top: 5px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: rgba(5, 5, 6, .7); color: #fff; display: grid; place-items: center; opacity: 0; cursor: pointer; }
.gfdel .ic { width: 14px; height: 14px; }
.gft:hover .gfdel, .gfdel:focus-visible { opacity: 1; }
html.touch .gfdel { opacity: .85; width: 32px; height: 32px; }
html.touch .gft:hover { outline: none; }
.gffoot { flex: 0 0 auto; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--text-3); font-size: 11.5px; }
.gfload { display: grid; place-items: center; padding: 22px; }
.gfmsg { display: grid; justify-items: center; gap: 10px; padding: 26px 18px; text-align: center; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }

@media (max-width: 380px) { .failb > .ic { display: none; } }
@media (max-width: 760px) {
  /* enquetes */
  .poll { padding: 12px; }
  .plr { min-height: 46px; }
  .pll { padding: 10px 0; font-size: 14px; }
  .plx .btn { min-height: 40px; }
  .pln { display: none; }
  .plmr .field { font-size: 16px; }
  .plme { width: 44px; height: 44px; }
  .plm textarea.field, .plm select.field { font-size: 16px; }
  .plec { flex-direction: column; align-items: stretch; }
  .plec .btn { justify-content: center; min-height: 40px; }
  .failb { column-gap: 5px; }
  .failb button::before { margin-right: 5px; }
  .m.pinline.pollend .cic { left: 14px; }
  .m.pinline.pollend .plt { padding-right: 0; }
  /* ir para…: tela cheia, com o teclado aberto por baixo */
  .qs-ov { padding: 0; top: var(--vvt, 0px); bottom: var(--kb, 0px); background: var(--bg); }
  .qs { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; background: var(--bg); padding-top: env(safe-area-inset-top); }
  .qstop { padding: 8px 8px 6px 12px; }
  .qsin { height: 44px; border-radius: 22px; font-size: 16px; }
  .qsx { display: grid; width: 40px; height: 40px; background: transparent; border-color: transparent; }
  .qsr { min-height: 48px; font-size: 15.5px; }
  .qsi .dot { --dot-bg: var(--bg); box-shadow: 0 0 0 2px var(--bg); }
  .qstip { padding-bottom: calc(9px + env(safe-area-inset-bottom)); justify-content: space-between; }
  .qstip button { min-height: 34px; }
  .chans > .qbtn { display: flex; }
  .qbtn { height: 40px; border-radius: 20px; font-size: 14px; padding: 0 14px; }
  .qbtn kbd { display: none; }
  /* busca: tela cheia */
  body.gapp > .spanel { position: fixed; inset: 0; z-index: 46; width: auto; top: var(--vvt, 0px); bottom: var(--kb, 0px); padding-top: env(safe-area-inset-top); border-left: 0; background: var(--bg); box-shadow: none; }
  .sptop { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; padding: 7px 10px 7px 4px; border-bottom: 1px solid var(--line); }
  .sptop .ibtn.sm { width: 40px; height: 40px; background: transparent; border-color: transparent; }
  .sptop .ibtn.sm .ic { width: 22px; height: 22px; }
  .sptop .sfield, .sptop .sfield.foc, .sptop .sfield.full { flex: 1; width: auto; min-width: 0; height: 42px; border-radius: 21px; padding: 0 6px 0 14px; }
  .sfin { height: 38px; font-size: 16px; }
  .schip { height: 28px; font-size: 13px; }
  .sfx { width: 36px; height: 36px; }
  .spanel .ssug { position: static; width: auto; max-width: none; max-height: none; flex: 1; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 6px 10px calc(10px + env(safe-area-inset-bottom)); }
  .ssi { min-height: 46px; font-size: 15px; padding: 8px; }
  .ssi .si { flex-basis: 28px; }
  .ssi .si .av { width: 28px; height: 28px; font-size: 11px; }
  .ssi small { font-size: 12.5px; }
  .spg { background: var(--bg); }
  .spl { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .sseg button { padding: 8px 10px; }
  .spr .tx { font-size: 14.5px; }
  /* GIFs: folha de baixo com duas colunas */
  .gfp { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: auto !important; height: min(70dvh, 560px) !important; border-radius: 18px 18px 0 0; animation: sheetUp .2s ease-out; padding-bottom: env(safe-area-inset-bottom); }
  .gftop { padding-top: 12px; }
  .gftabs button { padding: 10px 14px; font-size: 14.5px; }
  .gftop .gfx { width: 40px; height: 40px; }
  .gfq { height: 42px; font-size: 16px; }
  .composer .gifbtn.ibtn.sm { width: 40px; }
  .lpspo { min-height: 44px; }
}
