/* ===== TELEBUILD fix.css: perbaikan tata letak, dialog, ring avatar, halaman pengaturan, reaksi saluran ===== */
html[data-tbr=comic] .gl-av[data-me]{border-color:#111!important;box-shadow:0 0 0 2px #ffd83d,0 0 0 4.5px #111!important}
html[data-tbr=duo] .gl-av[data-me]{border-color:#111!important;box-shadow:0 0 0 2px #fff,0 0 0 4px #ff4458,0 0 0 6px #111!important}
html[data-tbr=half] .gl-av[data-me]{border-color:#111!important;box-shadow:none!important;outline:3px dotted #ffd83d!important;outline-offset:2px!important}
html[data-tbr=speed] .gl-av[data-me]{border-color:#111!important;box-shadow:0 0 0 4px #1a1a1a!important;outline:2px dashed #fff!important;outline-offset:-1px!important}
html[data-tbr=pow] .gl-av[data-me]{border-color:#111!important;box-shadow:0 0 0 2px #111!important;outline:4px dashed #ffd83d!important;outline-offset:3px!important}
html .tb-rpv .gl-av{box-shadow:none!important;outline:0!important;border-color:#111!important}
html .tb-rpv[data-r=comic] .gl-av{border-color:#111!important;box-shadow:0 0 0 2px #ffd83d,0 0 0 4.5px #111!important}
html .tb-rpv[data-r=duo] .gl-av{border-color:#111!important;box-shadow:0 0 0 2px #fff,0 0 0 4px #ff4458,0 0 0 6px #111!important}
html .tb-rpv[data-r=half] .gl-av{border-color:#111!important;box-shadow:none!important;outline:3px dotted #ffd83d!important;outline-offset:2px!important}
html .tb-rpv[data-r=speed] .gl-av{border-color:#111!important;box-shadow:0 0 0 4px #1a1a1a!important;outline:2px dashed #fff!important;outline-offset:-1px!important}
html .tb-rpv[data-r=pow] .gl-av{border-color:#111!important;box-shadow:0 0 0 2px #111!important;outline:4px dashed #ffd83d!important;outline-offset:3px!important}
.tb-rpv{position:relative;display:grid;place-items:center;flex:none;width:72px;height:72px}
.tb-rpv .gl-av{width:100%;height:100%;font-size:26px;position:relative;z-index:1}
.tb-rpv.big{width:128px;height:128px}.tb-rpv.big .gl-av{font-size:48px}
.tb-rpv[data-r=pow]::before,.tb-rpv[data-r=pow]::after{content:'';position:absolute;clip-path:polygon(50.0% 0.0%,58.5% 13.0%,71.7% 5.0%,73.7% 20.3%,89.1% 18.8%,84.2% 33.5%,98.7% 38.9%,88.0% 50.0%,98.7% 61.1%,84.2% 66.5%,89.1% 81.2%,73.7% 79.7%,71.7% 95.0%,58.5% 87.0%,50.0% 100.0%,41.5% 87.0%,28.3% 95.0%,26.3% 79.7%,10.9% 81.2%,15.8% 66.5%,1.3% 61.1%,12.0% 50.0%,1.3% 38.9%,15.8% 33.5%,10.9% 18.8%,26.3% 20.3%,28.3% 5.0%,41.5% 13.0%)}
.tb-rpv[data-r=pow]::before{inset:-16%;background:#111}
.tb-rpv[data-r=pow]::after{inset:-12%;background:#ffd83d}
html .tb-rpv[data-r=pow] .gl-av{outline:0!important;box-shadow:0 0 0 3px #111!important}

/* ---------- ukuran & margin halaman (selaras foto: 14dp) ---------- */
.tb-scr,.tb-pad{padding-left:14px!important;padding-right:14px!important}
.gp-body>.tb-pad{margin:0 -16px;width:calc(100% + 32px)}
.tb-sr{margin-bottom:12px;height:50px;padding:0 14px}
.tb-sr svg{flex:none}
.tb-list{gap:10px}
.tb-row{padding:10px 12px;border-radius:16px;box-shadow:3px 3px 0 var(--bd,#111)}
.tb-row .gl-av{width:48px;height:48px}
.tb-pi{margin-bottom:10px;padding:12px 14px;position:relative}
.tb-sec{margin:16px 4px 8px}
.tb-arv .tb-pad{padding-top:8px!important;padding-bottom:24px}
.tb-arv .tb-list{gap:8px}
.tb-arv .tb-row{padding:8px 10px;border-radius:14px;box-shadow:2px 2px 0 var(--bd,#111)}
.tb-arv .tb-row .gl-av{width:44px;height:44px}
.tb-arv .tb-note{margin:10px 4px 0}

/* ---------- ikon selalu tepat di tengah ---------- */
svg.tb-i{display:block;flex:none;margin:0}
.tb-pic,.tb-mic,.tb-nic,.tb-archic,.tb-upic,.tb-cb,.tb-send,.tb-ibtn,.tb-fab{display:grid;place-items:center;line-height:0}
.tb-pic>svg,.tb-mic>svg,.tb-archic>svg,.tb-upic>svg{display:block;margin:0}
.tb-wsw,.tb-rsw{flex:none}
.gp-b{flex:none;line-height:0;padding:0}
.gp-b>svg,.gp-r>svg{display:block;width:24px;height:24px;margin:0}
.gp-b>svg.ic{width:1em;height:1em}
.gp-h{align-items:center}
.gp-t{line-height:1.2}
.gp.chat .gp-h,.tb-chc .gp-h{align-items:center;gap:4px;padding-top:calc(env(safe-area-inset-top) + 8px);padding-bottom:8px}
.gp.chat .gp-t,.tb-chc .gp-t{display:flex;align-items:center;align-self:center;min-height:42px;padding:0;margin:0}
.tb-chh{align-items:center;min-height:42px;line-height:1.2}
.tb-chh .gl-av{flex:none;margin:0}
.tb-chh>span:last-child{justify-content:center}
.gp-r{align-self:center}

/* ---------- placeholder rata tengah vertikal ---------- */
html body .tb-cap input,html body .tb-gf input,html body .tb-rep input{height:48px!important;padding-top:0!important;padding-bottom:0!important;line-height:normal}
html body .gp.chat .ch-in textarea{padding:13px 14px!important;line-height:1.3}
input::placeholder,textarea::placeholder{line-height:normal}

/* ---------- dialog: tombol Batal tanpa warna latar ---------- */
html body .tb-dlg .tb-btn.ghost{background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:var(--ink,#111);font-weight:700}
html body .tb-dlg .tb-btn.ghost:active{background:rgba(127,127,127,.14)!important}
.tb-dlg .tb-row2.one{display:flex;justify-content:flex-end;margin-top:6px}
.tb-dlg .tb-row2.one .tb-btn{flex:none;min-width:96px}
.tb-opts{display:flex;flex-direction:column;margin:4px 0 8px;max-height:52vh;overflow-y:auto}
.tb-opt{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:0 4px;border:0;background:transparent;color:inherit;font:inherit;font-size:16px;text-align:left;border-bottom:1px solid rgba(127,127,127,.25)}
.tb-opt:last-child{border-bottom:0}
.tb-opt:active{background:rgba(127,127,127,.12)}
.tb-opt i{flex:none;width:20px;height:20px;border:2px solid var(--bd,#111);border-radius:50%}
/* "Sembunyikan dari" */
.tb-dlg .tb-exl{max-height:56vh;overflow-y:auto;margin:6px 0 10px}
.tb-dlg .tb-exl .tb-row{background:transparent;border:0;box-shadow:none;border-radius:0;padding:12px 4px;min-height:48px;contain:none}
.tb-dlg .tb-exl .tb-row .gl-av{display:none}
.tb-dlg .tb-exl .tb-rb{flex:1;min-width:0}
.tb-dlg .tb-exl .tb-row .tb-ck{order:2;margin-left:auto}

/* ---------- reaksi di postingan saluran ---------- */
.tb-rxr{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 2px}
.tb-rxc{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 9px;border:2px solid var(--bd,#111);border-radius:999px;background:var(--card,#fff);color:var(--ink,#111);font:inherit;font-size:13px;line-height:1}
.tb-rxc span{font-size:15px;line-height:1}.tb-rxc b{font-size:12px}
.tb-rxc.on{background:var(--acc,#ffd83d)}
.tb-rxa{display:grid;place-items:center;width:28px;height:28px;padding:0;border:2px solid var(--bd,#111);border-radius:50%;background:var(--card,#fff);color:var(--ink,#111);line-height:0}
.tb-rxc:active,.tb-rxa:active{transform:scale(.92)}
.tb-rxbar{position:absolute;display:flex;gap:2px;padding:6px 8px;border-radius:999px;background:var(--sheet,#fff);border:2px solid var(--bd,#111);box-shadow:3px 3px 0 var(--bd,#111);opacity:0;transform:scale(.9);transition:opacity .12s,transform .14s}
.tb-popw.in .tb-rxbar{opacity:1;transform:none}
.tb-rxbar button{width:40px;height:40px;border:0;background:transparent;border-radius:50%;font-size:24px;line-height:1;padding:0}
.tb-rxbar button.on{background:var(--acc,#ffd83d)}
.tb-rxbar button:active{transform:scale(1.2)}

/* ---------- bubble pesan dihapus (seperti WA) ---------- */
.ch-m.del .ch-tx{display:inline-flex;align-items:center;gap:6px;font-style:italic;opacity:.72}
.ch-m.del .ch-bn{flex:none}
.ch-m.del .pro-rx,.ch-m.del .pro-q{display:none}

/* ---------- like status: umpan balik instan ---------- */
.tb-rnd.pop{animation:tbPop .22s ease-out}
@keyframes tbPop{0%{transform:scale(.8)}60%{transform:scale(1.18)}100%{transform:scale(1)}}
.tb-rnd{touch-action:manipulation}
button,.tb-pi,.tb-row,.tb-rt,.tb-bt{touch-action:manipulation;-webkit-tap-highlight-color:transparent}

/* ---------- halaman bergaya foto (neo-brutal) ---------- */
.tb-sec2{margin:18px 2px 2px;font-size:17px;letter-spacing:.08em;text-transform:uppercase;font-weight:700}
.tb-sub2{margin:0 2px 12px;font-size:13px;letter-spacing:.04em;opacity:.55}
.tb-note.c{text-align:center;margin:12px 8px 18px}
.tb-hidin{position:absolute;left:0;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}
.tb-rbig{display:flex;flex-direction:column;align-items:center;gap:16px;padding:36px 14px 22px;margin-bottom:14px}
.tb-rbig b{font-size:19px;letter-spacing:.1em}
.tb-rgrid,.tb-bgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tb-rt,.tb-bt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px 8px 14px;border:var(--bw,3px) solid var(--bd,#111);border-radius:20px;background:var(--card,#fff);color:var(--ink,#111);box-shadow:4px 4px 0 var(--bd,#111);font:inherit;min-width:0}
.tb-rt b,.tb-bt b{font-size:15px;letter-spacing:.06em;font-weight:700;text-align:center}
.tb-rt.on{background:var(--acc,#ffd83d)}
.tb-rt:active,.tb-bt:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--bd,#111)}
.tb-bt{aspect-ratio:1/.9;gap:10px}
.tb-bt.tb-up{background:var(--acc,#ffd83d)}
.tb-bt.tb-cream{background:#fff8e1}
.tb-bt.on{outline:4px solid var(--coral,#ff4458);outline-offset:-4px}
.tb-bt.tb-pre{aspect-ratio:1/1;padding:10px}
.tb-upic{display:grid;place-items:center;width:44px;height:44px}
.tb-wsw.big,.tb-cxp{display:block;width:100%;flex:1;min-height:0;border-radius:12px;border:2px solid var(--bd,#111)}
.tb-cxp{background:center/cover no-repeat #ddd}

/* label mengambang (Balasan Otomatis) */
.tb-arc{padding:10px}
.tb-ff{position:relative;display:block;border:2px solid var(--bd,#111);border-radius:10px;background:var(--card,#fff);min-height:132px}
.tb-ff textarea{display:block;width:100%;min-height:128px;padding:26px 14px 10px;border:0!important;outline:0!important;background:transparent!important;color:inherit;font:inherit;font-size:16px;resize:none;box-shadow:none!important;border-radius:0!important}
.tb-ff span{position:absolute;left:14px;top:50%;translate:0 -50%;font-size:16px;opacity:.6;pointer-events:none;transition:top .15s,font-size .15s,translate .15s}
.tb-ff.has span,.tb-ff.foc span{top:12px;translate:0 0;font-size:12px;letter-spacing:.06em}

/* ---------- background aplikasi (foto/video unggahan) ---------- */
#tbAppBg{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
#tbAppBg img,#tbAppBg video{width:100%;height:100%;object-fit:cover;display:block}
html.tb-hasbg #tbm,html.tb-hasbg .tb-main,html.tb-hasbg .tb-pg{background:transparent!important}
html.tb-hasbg #tbm{position:fixed;z-index:100}
html[data-tbw=cx] .gp.chat .ch-list{background:var(--tb-chatwall) center/cover no-repeat!important}
