/* WAHAI V8.3 — panel pratinjau lampiran lokal; tidak memengaruhi formulir chat */
.wahai-v83-attachment-review {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(80px, calc(env(safe-area-inset-bottom) + 72px));
  z-index: 2147483000;
  width: min(330px, calc(100vw - 24px));
  max-height: min(65vh, 500px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, .18);
  font: 14px/1.5 system-ui, sans-serif;
  text-align: left;
}
.wahai-v83-kicker { font-size: 12px; font-weight: 700; color: #0f766e; }
.wahai-v83-title { margin: 4px 0 9px; font-weight: 700; }
.wahai-v83-thumbnail { display: block; max-width: 100%; max-height: 160px; border-radius: 9px; margin: 0 auto 9px; object-fit: contain; }
.wahai-v83-files { padding: 0; margin: 0; list-style: none; }
.wahai-v83-file { display: flex; flex-direction: column; padding: 6px 0; border-top: 1px solid #e2e8f0; }
.wahai-v83-file-name { overflow-wrap: anywhere; font-weight: 600; }
.wahai-v83-file-meta, .wahai-v83-more { color: #475569; }
.wahai-v83-hide { margin-top: 11px; display: inline-block; width: 100%; border: 1px solid #94a3b8; border-radius: 8px; padding: 7px 9px; background: #f8fafc; color: #0f172a; cursor: pointer; font: inherit; }
.wahai-v83-hide:focus-visible { outline: 3px solid #0d9488; outline-offset: 2px; }
@media (max-width: 600px) {
  .wahai-v83-attachment-review { left: 12px; right: 12px; width: auto; bottom: max(82px, calc(env(safe-area-inset-bottom) + 74px)); max-height: 45vh; }
  .wahai-v83-thumbnail { max-height: 105px; }
}
