.arh-cari{width:100%;box-sizing:border-box;border:0;background:#f3f5f4;border-radius:12px;padding:12px 14px;margin:0 0 8px;font:inherit}
.arh-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;border:0;background:#fff;padding:12px 2px;border-bottom:1px solid #eef1ef;text-align:left;cursor:pointer}
.arh-ava{width:48px;height:48px;min-width:48px;max-width:48px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:700;overflow:hidden;position:relative}
.arh-ava img{width:48px;height:48px;max-width:48px;max-height:48px;object-fit:cover;border-radius:50%;display:block;position:absolute;inset:0}
.arh-teks{min-width:0}
.arh-nama{display:block;font-weight:650;color:#14211c}
.arh-preview{display:block;color:#66756e;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arh-jam{color:#7b8a83;font-size:12px;white-space:nowrap}
.arh-top{display:flex;align-items:center;gap:10px;padding:4px 0 12px;position:sticky;top:0;background:#fff}
.arh-back{border:0;background:#f3f5f4;width:40px;height:40px;border-radius:50%;font-size:20px;cursor:pointer;flex:none}
.arh-thread{min-height:240px;max-height:52vh;overflow:auto;display:flex;flex-direction:column;gap:8px;padding-bottom:8px}
.arh-balon{max-width:78%;padding:8px 10px 4px;border-radius:16px;background:#fff;border:1px solid #e7eeea}
.arh-balon.saya{margin-left:auto;background:#ddf5e8;border-color:transparent}
.arh-balon time{display:block;text-align:right;color:#7b8a83;font-size:11px}
.arh-ketik{display:flex;gap:8px;align-items:flex-end;margin-top:8px}
.arh-ketik textarea{flex:1;border:0;background:#f3f5f4;border-radius:18px;padding:12px 14px;font:inherit;resize:none;min-height:44px}
#content:has(#arahan-root){padding:8px 12px 10px;display:flex;flex-direction:column;min-height:calc(100dvh - 82px)}
#arahan-root{flex:1;display:flex;flex-direction:column;min-height:0}
.arh{flex:1;display:flex;flex-direction:column;min-height:calc(100dvh - 110px)}
.arh-top{position:static;background:#fff;z-index:1}
.arh-thread{flex:1;max-height:none;min-height:0;padding:4px 6px 8px}
.arh-balon,.arh-balon p{color:#14211c}
.arh-ketik{position:sticky;bottom:0;background:#fff;padding:8px 0 2px;margin-top:auto}
.arh-kirim{border:0;background:#1F9D61;color:#fff;border-radius:14px;padding:12px 16px;font:inherit;cursor:pointer}


.arh-thread{background-color:#efeae2;background-image:radial-gradient(rgba(17,27,33,.045) 1px,transparent 1px);background-size:18px 18px;gap:3px;padding:14px 12px 18px}
.arh-balon{align-self:flex-start;width:fit-content;max-width:min(78%,460px);padding:6px 8px 5px 9px;border:0;border-radius:8px 8px 8px 3px;background:#fff;box-shadow:0 1px .5px rgba(11,20,26,.13)}
.arh-balon.saya{align-self:flex-end;margin-left:0;background:#d9fdd3;border-radius:8px 8px 3px 8px}
.arh-isi{margin:0;font-size:14.5px;line-height:1.35;white-space:pre-wrap;word-break:break-word;color:#111b21}
.arh-waktu{float:right;margin:6px 0 -2px 14px;font-size:11px;line-height:1;color:#667781;white-space:nowrap}
.arh-berkas{display:flex;flex-direction:column;gap:2px;width:100%;min-width:180px;margin:0 0 4px;padding:8px 10px;border:0;border-radius:8px;background:rgba(11,20,26,.06);text-align:left;font:inherit;font-weight:700;color:#111b21;cursor:pointer}
.arh-berkas small{font-weight:500;color:#667781;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arh-top{background:#f0f2f5;margin:0 -12px;padding:8px 12px;border-bottom:1px solid #e9edef}
.arh-top .arh-back{background:transparent}
.arh-ketik{background:#f0f2f5;margin:0 -12px 0;padding:8px 10px;gap:8px}
.arh-ketik textarea{background:#fff;border-radius:22px;min-height:42px;padding:10px 14px;box-shadow:0 1px 1px rgba(11,20,26,.06)}
.arh-ketik .arh-back{background:#fff;width:42px;height:42px}
.arh-kirim{width:44px;height:44px;padding:0;border-radius:50%;background:#00a884;display:grid;place-items:center}
.arh-kirim svg{width:22px;height:22px;fill:#fff}
.arh-kirim:disabled{opacity:.55}
:root[data-theme=dark] .arh-thread{background-color:#0b141a;background-image:radial-gradient(rgba(255,255,255,.04) 1px,transparent 1px)}
:root[data-theme=dark] .arh-balon{background:#202c33;box-shadow:0 1px .5px rgba(11,20,26,.4)}
:root[data-theme=dark] .arh-balon.saya{background:#005c4b}
:root[data-theme=dark] .arh-balon,:root[data-theme=dark] .arh-balon p,:root[data-theme=dark] .arh-isi,:root[data-theme=dark] .arh-berkas{color:#e9edef}
:root[data-theme=dark] .arh-waktu,:root[data-theme=dark] .arh-berkas small{color:#ffffff99}
:root[data-theme=dark] .arh-berkas{background:rgba(255,255,255,.08)}
:root[data-theme=dark] .arh-top,:root[data-theme=dark] .arh-ketik{background:#202c33}
:root[data-theme=dark] .arh-ketik textarea,:root[data-theme=dark] .arh-ketik .arh-back{background:#2a3942;color:#e9edef}

.arh-wa{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);height:calc(100dvh - 120px);min-height:calc(100dvh - 120px);background:#fff;border:1px solid #e9edef;overflow:hidden}
.arh-daftar{display:flex;flex-direction:column;min-height:0;min-width:0;background:#fff;border-right:1px solid #e9edef}
.arh-daftar .arh-cari{width:auto;margin:10px 12px 6px;background:#f0f2f5;border-radius:8px}
.arh-daftar-isi{overflow:auto;flex:1;min-height:0}
.arh-row{padding:12px 14px;border-bottom:0}
.arh-row.is-on,.arh-row.is-on:hover{background:#f0f2f5}
.arh-jam{align-self:start;margin-top:2px;font-size:12px}
.arh-obrolan{display:flex;flex-direction:column;min-width:0;min-height:0;background:#efeae2}
.arh-kosong{display:grid;place-items:center;background:#f0f2f5;color:#667781;padding:24px;text-align:center}
.arh-hari{display:flex;justify-content:center;margin:8px 0 4px}
.arh-hari span{background:#fff;color:#54656f;font-size:12.5px;padding:6px 12px;border-radius:8px;box-shadow:0 1px .5px rgba(11,20,26,.13)}
.arh-top,.arh-ketik{margin:0}
.arh-ketik{background:transparent}
@media (min-width:861px){.arh-top .arh-back{display:none}}
@media (max-width:860px){
  .arh-wa{grid-template-columns:1fr;height:auto}
  .arh-wa.is-chat .arh-daftar{display:none}
  .arh-wa:not(.is-chat) .arh-obrolan,.arh-wa:not(.is-chat) .arh-kosong{display:none}
}
:root[data-theme=dark] .arh-wa,:root[data-theme=dark] .arh-daftar{background:#111b21;border-color:#222d34}
:root[data-theme=dark] .arh-daftar .arh-cari,:root[data-theme=dark] .arh-row.is-on{background:#202c33}
:root[data-theme=dark] .arh-nama{color:#e9edef}
:root[data-theme=dark] .arh-preview,:root[data-theme=dark] .arh-jam,:root[data-theme=dark] .arh-kosong{color:#8696a0}
:root[data-theme=dark] .arh-hari span{background:#182229;color:#d1d7db}
:root[data-theme=dark] .arh-obrolan{background:#0b141a}

.arh.arh-wa{min-height:0;height:calc(100dvh - 72px);max-height:calc(100dvh - 72px);overflow:hidden}
.arh-daftar,.arh-obrolan,.arh-kosong{height:100%;max-height:100%;min-height:0;overflow:hidden}
.arh-daftar-isi{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:12px}
.arh-thread{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.arh-foto{display:block;width:100%;padding:0;border:0;background:transparent;margin:0 0 6px}
.arh-foto img{display:block;width:100%;max-height:240px;object-fit:cover;border-radius:12px}
@media(max-width:860px){
  .arh.arh-wa{height:calc(100dvh - 60px);max-height:calc(100dvh - 60px)}
}

:root[data-theme=dark] button.arh-row{background:#111b21;color:#e9edef;border-bottom:1px solid #222d34}
:root[data-theme=dark] button.arh-row:hover,:root[data-theme=dark] button.arh-row.is-on{background:#202c33}
:root[data-theme=dark] .arh-nama,:root[data-theme=dark] .arh-isi{color:#e9edef}
:root[data-theme=dark] .arh-preview,:root[data-theme=dark] .arh-jam{color:#8696a0}
:root[data-theme=dark] .arh-kosong{background:#0b141a;color:#8696a0}
:root[data-theme=dark] .arh-kosong p{color:#8696a0}
:root[data-theme=dark] .arh-obrolan,:root[data-theme=dark] .arh-thread{background-color:#0b141a}
:root[data-theme=dark] .arh-wa,:root[data-theme=dark] .arh-daftar,:root[data-theme=dark] .arh-top{background:#111b21;border-color:#222d34}
