/* Bisik — flat, satu aksen amber (sama dengan ikon), tanpa gradien/bayangan. */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  justify-content: center;
}
main { width: 100%; max-width: 560px; padding: 24px 16px; }

#join-screen { text-align: center; margin-top: 6vh; }
.logo { border-radius: 22%; }
h1 { font-size: 40px; margin: 12px 0 4px; letter-spacing: -1px; }
.tagline { color: #475569; line-height: 1.5; }
#join-screen label { display: block; text-align: left; font-weight: 600; margin: 28px 0 6px; }
#code {
  width: 100%; font-size: 18px; padding: 14px;
  border: 2px solid #cbd5e1; border-radius: 12px; background: #fff;
}
.row { display: flex; gap: 10px; margin-top: 12px; }
.row button { flex: 1; }
button {
  font-size: 16px; padding: 12px 16px; border-radius: 12px; cursor: pointer;
  border: 2px solid transparent; min-height: 48px;
}
button.primary { background: #f59e0b; color: #0f172a; font-weight: 700; }
button.ghost { background: #fff; border-color: #cbd5e1; color: #0f172a; }
.error { color: #b91c1c; min-height: 1.2em; }
.note { color: #64748b; font-size: 14px; line-height: 1.55; text-align: left; margin-top: 22px; }

#chat-screen { display: flex; flex-direction: column; height: 100dvh; padding: 0; }
#chat-screen[hidden] { display: none; }
#chat-screen header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff; border-bottom: 2px solid #e2e8f0;
}
#chat-screen header > div:first-child { flex: 1; }
.status { font-size: 13px; color: #64748b; }
.status.online { color: #15803d; font-weight: 600; }
#fingerprint { font-family: ui-monospace, monospace; font-size: 13px; color: #64748b; }
#messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 16px; line-height: 1.45;
  background: #e2e8f0; align-self: flex-start; overflow-wrap: anywhere;
}
.bubble.me { background: #f59e0b; align-self: flex-end; }
.bubble.failed { opacity: .55; }
.bubble img { max-width: 100%; border-radius: 10px; display: block; }
.bubble .meta { font-size: 11px; margin-top: 4px; opacity: .75; }
.system { align-self: center; font-size: 13px; color: #64748b; text-align: center; }
#composer {
  display: flex; gap: 8px; padding: 12px; background: #fff; border-top: 2px solid #e2e8f0;
}
#composer #text { flex: 1; font-size: 16px; padding: 12px; border: 2px solid #cbd5e1; border-radius: 12px; }

.check { display: flex; gap: 8px; align-items: center; font-size: 15px; margin-top: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: #f59e0b; }
.links { margin-top: 34px; font-size: 14px; color: #64748b; }
.links a { color: #64748b; }

/* Halaman dokumen (Privasi / Ketentuan / Keamanan) */
.doc { max-width: 640px; line-height: 1.65; }
.doc h1 { font-size: 30px; }
.doc h2 { font-size: 19px; margin-top: 28px; }
.doc a.back { color: #b45309; text-decoration: none; font-weight: 600; }
.doc .updated { color: #64748b; font-size: 14px; }
.doc footer { margin-top: 40px; }
