/* Original Ruang Pesan QA skin. Layout keeps the existing 720px navigation breakpoint. */
.workspace {
  color-scheme: light;
  --bg: #f4efe8;
  --panel: #fffaf4;
  --chat: #f4eee5;
  --raised: #f6eee9;
  --line: #e4d8d3;
  --text: #2d2336;
  --muted: #65586c;
  --accent: #693d57;
  --accent-2: #70508b;
  --alert: #942f48;
  grid-template-columns: clamp(270px, 24vw, 342px) minmax(0, 1fr);
  max-width: none;
  border: 0;
  color: var(--text);
}

.sidebar {
  color-scheme: dark;
  --text: #f9f3f8;
  --muted: #c6b9cc;
  --line: #4a3a51;
  --raised: #43304a;
  --accent: #f5b993;
  --accent-2: #efc2e4;
  min-height: 0;
  padding: 0;
  color: var(--text);
  background: linear-gradient(155deg, #302139 0%, #261d32 48%, #21192b 100%);
  border-right: 1px solid #3b2a42;
}

.sidebar-header { padding: 22px 20px 13px; border-bottom: 1px solid #ffffff12; }
.sidebar .brand { font-size: .91rem; font-weight: 750; letter-spacing: .01em; gap: 10px; }
.sidebar .brand-icon { width: 30px; height: 30px; border-radius: 9px; background: #f5be9b; color: #34223d; }
.sidebar-intro { margin: 24px 0 13px; }
.sidebar-intro h1 { font-size: 1.8rem; letter-spacing: -.045em; }
.room-add { width: 42px; height: 42px; border-radius: 12px; background: #f4bc98; font-size: 1.6rem; }
.room-add:hover, .room-add[aria-expanded=true] { background: #ffcfb1; }
.room-menu { background: #3b2a44; border-color: #66506c; }
.room-search-field { position: relative; }
.room-search {
  height: 44px;
  margin: 0;
  padding: 8px 12px 8px 38px;
  border: 1px solid #55425d;
  border-radius: 10px;
  background: #211a2b;
  font-size: .9rem;
}
.search-glyph {
  position: absolute;
  pointer-events: none;
  top: 13px;
  left: 14px;
  display: block;
  width: 13px;
  height: 13px;
  border: 1.75px solid #dbb7cb;
  border-radius: 50%;
}
.search-glyph::after {
  content: "";
  position: absolute;
  inset: auto -5px -3px auto;
  width: 6px;
  height: 1.75px;
  border-radius: 5px;
  background: #dbb7cb;
  transform: rotate(45deg);
}
.rooms { padding: 10px 12px; gap: 3px; }
.rooms button { min-height: 57px; padding: 7px 10px; border-radius: 11px; gap: 11px; }
.rooms button strong { font-size: .95rem; font-weight: 660; }
.rooms button small { font-size: .76rem; margin-top: 3px; }
.rooms .room-avatar { width: 39px; height: 39px; border-radius: 12px; color: #f6d4e8; background: #543b56; }
.rooms button:hover { background: #ffffff0d; border-color: transparent; }
.rooms button[aria-current=true] { background: #4b334c; border-color: #79576a; }
.rooms button[aria-current=true]::before { background: #f4bc98; }
.account { margin: 0; padding: 15px 19px; border-top: 1px solid #ffffff18; background: #20182a75; }
.account .avatar { width: 38px; height: 38px; border-radius: 11px; background: #634059; color: #ffe2cc; }
.account strong { font-size: .9rem; }
.account small { font-size: .75rem; }

.conversation {
  background-color: #f4eee7;
  background-image: radial-gradient(#a1839837 .8px, transparent .8px), linear-gradient(128deg,#fcf6eb,#f2e8e7);
  background-size: 22px 22px, 100% 100%;
}
.chat-head { min-height: 74px; padding: 10px clamp(16px, 3.6vw, 46px); gap: 13px; }
.chat-head .room-avatar { background: #ecdce8; color: #633e59; border-radius: 13px; }
.room-heading h2 { font-size: 1.17rem; font-weight: 750; letter-spacing: -.023em; }
.room-heading small { margin-top: 3px; font-size: .8rem; }
.conversation .icon, .conversation .soft { background: #f6eee9; }
.conversation .icon:hover, .conversation .soft:hover { background: #ebdfe9; }
.conversation .soft { font-size: .82rem; }
.find-bar, .call-panel { padding: 7px clamp(16px, 3.6vw, 46px); }
.call-panel { background: #fbf4ee; }
.call-controls { min-height: 34px; gap: 7px; }
.call-controls .soft { padding: 5px 10px; font-size: .75rem; border-radius: 8px; }
.find-bar input { background: #fffaf6; }

.chat-scroll {
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  padding: 22px clamp(17px, 4vw, 55px) 19px;
}
.history { flex: none; }
.messages { flex: none; width: min(100%, 810px); margin: auto auto 0; gap: 13px; }
.msg { gap: 9px; }
.msg .avatar { width: 32px; height: 32px; border-radius: 10px; background: #e8d9ea; color: #573857; font-size: .73rem; }
.msg-body {
  max-width: min(78%, 550px);
  border: 1px solid #e6d9d4;
  border-radius: 16px 16px 16px 5px;
  background: #fffcf7;
  box-shadow: 0 2px 3px #40233709;
  padding: 9px 13px 6px;
}
.mine .msg-body {
  background: #f0ddeb;
  border-color: #e2c8da;
  border-radius: 16px 16px 5px 16px;
}
.msg-heading { color: #694a66; font-size: .735rem; font-weight: 730; margin-bottom: 4px; }
.mine .msg-heading { display: none; }
.msg-bubble, .mine .msg-bubble { background: transparent; border: 0; border-radius: 0; padding: 0; }
.msg-text { font-size: .94rem; line-height: 1.48; }
.msg-footer { color: #69596e; margin-top: 5px; font-size: .72rem; gap: 7px; font-variant-numeric: tabular-nums; }
.msg-footer .text-button { padding: 4px 1px; min-height: 25px; color: #75465e; font-size: .73rem; }
.msg-footer .text-button:hover { text-decoration: underline; }
.quote, .compose-preview { background: #efe4ec; border-radius: 7px; }
.attachment-card img, .attachment-card video { background: #f2e8ee; }

.composer { padding: 11px clamp(16px, 5vw, 68px) max(9px, env(safe-area-inset-bottom)); }
.compose-controls { max-width: 810px; margin: 0 auto; gap: 9px; }
.compose-preview { max-width: 810px; margin: 0 auto 8px; }
.compose-controls textarea { min-height: 47px; padding: 11px 13px; border-radius: 13px; background: #fffcf8; }
.compose-controls .attach { min-width: 44px; min-height: 44px; border-radius: 11px; color: #754861; }
.attachment-glyph {
  display: block;
  position: relative;
  width: 9px;
  height: 18px;
  border: 1.65px solid currentColor;
  border-top-color: transparent;
  border-radius: 8px;
  transform: rotate(36deg);
}
.attachment-glyph::after {
  content: "";
  position: absolute;
  inset: -5px -5px 2px 2px;
  border: 1.65px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 8px;
}
.composer #send { min-height: 44px; padding-inline: 15px; border-radius: 11px; }
.workspace .primary { color: #fff7fa; background: #693d57; }
.workspace .primary:hover { background: #7f4b68; }
.composer .feedback:empty { display: none; }
.composer .feedback { max-width: 810px; margin-inline: auto; }
body:has(.workspace:not([hidden])) dialog {
  --panel: #fffbf7;
  --chat: #fffaf6;
  --raised: #f5e9ed;
  --text: #2d2336;
  --muted: #65586c;
  --accent: #693d57;
  --accent-2: #70508b;
  --alert: #942f48;
  --line: #d7c8d5;
  color-scheme: light;
  box-shadow: 0 22px 52px #36244342;
}
body:has(.workspace:not([hidden])) dialog .icon:hover { background: #ebdfe9; }
body:has(.workspace:not([hidden])) dialog .primary { color: #fff7fa; }
body:has(.workspace:not([hidden])) dialog .primary:hover { background: #7f4b68; }

@media (max-width: 720px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { border-right: 0; }
  .sidebar-header { padding: 15px 16px 12px; }
  .sidebar-intro { margin: 17px 0 11px; }
  .sidebar-intro h1 { font-size: 1.64rem; }
  .chat-head { min-height: 64px; padding: 8px 10px; gap: 9px; }
  .room-heading h2 { font-size: 1.03rem; }
  .room-heading small { font-size: .72rem; }
  .head-actions { gap: 5px; }
  .head-actions .icon, .mobile-back { width: 38px; min-width: 38px; }
  .head-actions .soft { min-height: 40px; }
  .find-bar, .call-panel { padding-inline: 12px; }
  .chat-scroll { padding: 12px 11px; }
  .messages { gap: 10px; }
  .msg-body { max-width: 86%; padding-inline: 10px; }
  .msg-text { font-size: .92rem; }
  .msg .avatar { width: 27px; height: 27px; border-radius: 8px; }
  .composer { padding-inline: 9px; }
  .compose-controls { gap: 7px; }
  .compose-controls textarea { min-width: 0; }
  .composer #send { padding-inline: 10px; font-size: .88rem; }
}

#export-dialog .dialog-content { display: grid; gap: 10px; }
#export-dialog .dialog-content strong { overflow-wrap: anywhere; }
#export-dialog #export-status:empty { display: none; }
#export-dialog .group-controls { flex-wrap: wrap; margin-top: 4px; }

@media (max-width: 720px) {
  #export-room { display: none; }
}
