/* Chat publik (umat), dioptimalkan untuk ponsel: tinggi penuh, header &
   kotak ketik menetap, hanya daftar pesan yang bergulir. */
html, body { height: 100%; margin: 0; }
body { background: #eef1f6; padding: 0 !important; }
#app { height: 100%; }
.pc-app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 760px; margin: 0 auto; background: #fff; box-shadow: 0 0 0 1px #e4e7ec; }
.pc-head { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 12px; border-bottom: 1px solid #e4e7ec; background: #fff; flex: none; }
.pc-head img { height: 38px; width: auto; }
.pc-title { font-weight: 600; font-size: 16px; color: #182230; line-height: 1.25; }
.pc-sub { font-size: 13px; color: #667085; margin-top: 1px; }
.pc-msgs { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 18px 18px 10px; background: #f3f5f9; }
.pc-line { display: flex; margin-bottom: 12px; }
.pc-line.pc-mine { justify-content: flex-end; }
.pc-bubble { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.pc-mine .pc-bubble { background: #1B6EC2; color: #fff; border-bottom-right-radius: 6px; }
.pc-theirs .pc-bubble { background: #fff; color: #182230; border: 1px solid #e4e7ec; border-bottom-left-radius: 6px; }
.pc-name { font-size: 12px; font-weight: 600; color: #1B6EC2; margin-bottom: 3px; }
.pc-text { white-space: pre-wrap; }
.pc-time { font-size: 11px; opacity: .7; text-align: right; margin-top: 4px; }
.pc-img { display: block; max-width: 100%; max-height: 280px; width: auto; border-radius: 12px; margin: 2px 0 6px; object-fit: cover; background: #e4e7ec; cursor: zoom-in; }
.pc-empty { text-align: center; color: #98a2b3; font-size: 14px; margin: 44px 12px; line-height: 1.55; }
.pc-compose { flex: none; background: #fff; border-top: 1px solid #e4e7ec; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
.pc-preview { display: flex; align-items: center; gap: 12px; padding: 0 2px 10px; }
.pc-preview[hidden] { display: none; }
.pc-preview img { height: 64px; width: 64px; border-radius: 12px; object-fit: cover; border: 1px solid #d0d5dd; }
.pc-preview span { flex: 1; font-size: 13px; color: #475467; }
.pc-preview button { border: 0; background: #f2f4f7; color: #475467; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; }
.pc-row { display: flex; align-items: center; gap: 8px; }
.pc-input { flex: 1; min-width: 0; height: 46px; border: 1px solid #d0d5dd; border-radius: 23px; padding: 0 18px; font-size: 16px; font-family: inherit; color: #182230; background: #fff; outline: none; }
.pc-input:focus { border-color: #1B6EC2; box-shadow: 0 0 0 3px rgba(27, 110, 194, .15); }
.pc-btn { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pc-btn svg { width: 22px; height: 22px; }
.pc-attach { background: #f2f4f7; color: #475467; }
.pc-send { background: #1B6EC2; color: #fff; }
.pc-send:disabled, .pc-attach:disabled { opacity: .5; cursor: wait; }
.pc-closed { text-align: center; font-size: 14px; color: #667085; line-height: 1.6; padding: 6px 4px; }
.pc-closed button { background: none; border: 0; color: #1B6EC2; text-decoration: underline; font-size: 14px; cursor: pointer; }
.pc-error { margin: 0 2px 8px; font-size: 13px; color: #b42318; }
.pc-error[hidden] { display: none; }
.pc-viewer { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.pc-viewer img { max-width: 100%; max-height: 100%; border-radius: 8px; }
@media (min-width: 761px) { body { padding: 18px 0 !important; } .pc-app { height: calc(100dvh - 36px); border-radius: 18px; overflow: hidden; } }
