/* kabzeel 채팅 웹 클라이언트 */

:root {
  color-scheme: light;

  --bg: #f5f6f9;
  --bg-chat: #eef0f5;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --border: #e3e6ec;
  --border-soft: #edeff4;

  --text: #171a20;
  --text-2: #545c6b;
  --muted: #858e9d;

  --accent: #3d5afe;
  --accent-soft: #eaeeff;
  --accent-text: #ffffff;

  --bubble-other: #ffffff;
  --bubble-other-text: #171a20;
  --bubble-mine: linear-gradient(180deg, #4a66ff 0%, #3d5afe 100%);
  --bubble-mine-text: #ffffff;

  --danger: #d94a3d;
  --danger-bg: #fdefed;
  --danger-border: #f6cdc7;

  --ok: #12a06a;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 -8px 32px rgba(16, 24, 40, 0.14);

  --radius: 12px;
  --radius-lg: 18px;
  --header-h: 60px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-mono: "SF Mono", Consolas, "D2Coding", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #0e1116;
    --bg-chat: #12161c;
    --surface: #191e26;
    --surface-2: #1f252f;
    --border: #2a313d;
    --border-soft: #232935;

    --text: #eef1f6;
    --text-2: #a7b0be;
    --muted: #78838f;

    --accent: #5a78ff;
    --accent-soft: #1e2740;

    --bubble-other: #212832;
    --bubble-other-text: #eef1f6;
    --bubble-mine: linear-gradient(180deg, #5a78ff 0%, #4361f0 100%);

    --danger: #f08a7e;
    --danger-bg: #33201e;
    --danger-border: #5c3833;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 -8px 32px rgba(0, 0, 0, 0.55);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   진입 화면 (로그인 · 초대 · 방 선택)
   ========================================================================== */

.view {
  height: 100%;
}

.view-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.panel {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 26px;
  box-shadow: var(--shadow-md);
}

.panel-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ==========================================================================
   폼 요소
   ========================================================================== */

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

input[type="text"],
input[type="password"],
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  /* iOS 사파리는 16px 미만 입력창에 포커스가 가면 화면을 확대한다. */
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input::placeholder {
  color: var(--muted);
}

input:focus,
select:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
}

.check input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
  transform: scale(1.1);
}

.row-buttons {
  display: flex;
  gap: 8px;
}

.row-buttons .btn {
  flex: 1;
}

.panel-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.new-room {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.muted-line {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================================================
   버튼
   ========================================================================== */

.btn {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease,
    box-shadow 0.15s ease;
}

.btn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--muted);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-text);
  box-shadow: 0 2px 8px rgba(61, 90, 254, 0.28);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent);
  border-color: transparent;
  filter: brightness(1.06);
}

.btn-ghost {
  background: none;
  border-color: transparent;
  color: var(--muted);
  box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: transparent;
  color: var(--text);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-small {
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 500;
}

.btn-danger {
  margin-top: 10px;
  color: var(--danger);
  border-color: var(--danger-border);
  background: var(--danger-bg);
  box-shadow: none;
}

.icon-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.alert {
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid var(--danger-border);
  border-radius: var(--radius);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 13px;
}

/* ==========================================================================
   방 목록 · 초대
   ========================================================================== */

.room-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.room-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.08s ease;
}

.room-item:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.room-item:active {
  transform: scale(0.99);
}

.room-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.room-label strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.room-tag {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.room-code {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.invite-room {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--accent-soft);
}

.invite-room-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.invite-room strong {
  font-size: 17px;
  font-weight: 700;
}

/* ==========================================================================
   채팅 화면
   ========================================================================== */

#view-chat {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: var(--bg-chat);
}

#view-chat.hidden {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--header-h);
  padding: 0 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  flex: 0 0 auto;
  z-index: 2;
}

.chat-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  padding: 0 4px;
}

.chat-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.chat-room-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.member-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.member-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   방 전환 탭
   좁은 화면: 위쪽 가로 탭 / 넓은 화면: 왼쪽 세로 목록
   -------------------------------------------------------------------------- */

.room-tabs {
  flex: 0 0 auto;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
}

/* 사이드바에서만 쓰는 제목 */
.room-tabs-title {
  display: none;
}

.room-tabs-list {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.room-tabs-list::-webkit-scrollbar {
  display: none;
}

.room-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 190px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.room-tab-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-tab-mark {
  flex: 0 0 auto;
  font-size: 10px;
  opacity: 0.7;
}

.room-tab:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

.room-tab.active {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-text);
  box-shadow: 0 2px 8px rgba(61, 90, 254, 0.24);
}

.member-bar {
  flex: 0 0 auto;
  padding: 10px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-2);
  font-size: 13px;
}

.privacy-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
}

.privacy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(18, 160, 106, 0.16);
  flex: 0 0 auto;
}

.messages {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* -- 시스템 안내 ---------------------------------------------------------- */

.msg-system {
  align-self: center;
  max-width: 86%;
  margin: 10px 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* -- 말풍선 --------------------------------------------------------------- */

.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 84%;
  margin-top: 2px;
  animation: msg-in 0.18s ease-out;
}

.msg-row.mine {
  align-self: flex-end;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 같은 사람이 이어서 말할 때는 아바타 자리만 비워 두어 줄이 맞도록 한다. */
.msg-avatar,
.msg-avatar-gap {
  flex: 0 0 auto;
  width: 34px;
}

.msg-avatar {
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  user-select: none;
}

.msg-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mine .msg-content {
  align-items: flex-end;
}

.msg-name {
  margin: 8px 0 4px 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.msg-line {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.bubble {
  padding: 9px 14px;
  border-radius: var(--radius-lg);
  border-bottom-left-radius: 5px;
  background: var(--bubble-other);
  color: var(--bubble-other-text);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-sm);
}

.mine .bubble {
  background: var(--bubble-mine);
  color: var(--bubble-mine-text);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: 5px;
  box-shadow: 0 2px 8px rgba(61, 90, 254, 0.22);
}

.bubble-emoticon {
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 14px;
  overflow: hidden;
}

.mine .bubble-emoticon {
  background: none;
  box-shadow: none;
}

.bubble-emoticon img {
  display: block;
  max-width: 132px;
  height: auto;
}

.msg-time {
  flex: 0 0 auto;
  font-size: 10.5px;
  color: var(--muted);
  padding-bottom: 3px;
  white-space: nowrap;
}

/* -- 입력 중 표시 --------------------------------------------------------- */

.typing-row {
  margin-top: 4px;
}

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 15px;
  border-radius: var(--radius-lg);
  border-bottom-left-radius: 5px;
  background: var(--bubble-other);
  box-shadow: var(--shadow-sm);
}

.typing-bubble span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-bounce 1.25s infinite ease-in-out;
}

.typing-bubble span:nth-child(2) {
  animation-delay: 0.18s;
}

.typing-bubble span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: none;
    opacity: 0.45;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* 움직임에 민감한 사용자를 위해 애니메이션 대신 밝기만 바꾼다. */
@media (prefers-reduced-motion: reduce) {
  .typing-bubble span {
    animation: typing-fade 1.6s infinite ease-in-out;
  }

  @keyframes typing-fade {
    0%, 60%, 100% { opacity: 0.35; }
    30% { opacity: 1; }
  }
}

.mine .msg-line {
  flex-direction: row-reverse;
}

/* -- 하단 --------------------------------------------------------------- */

.connection-warning {
  flex: 0 0 auto;
  padding: 9px 16px;
  background: var(--danger-bg);
  border-top: 1px solid var(--danger-border);
  color: var(--danger);
  font-size: 13px;
  text-align: center;
}

.composer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
}

.composer input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  padding: 11px 16px;
}

.composer .btn-primary {
  border-radius: 999px;
  padding: 11px 20px;
}

/* ==========================================================================
   바텀 시트 (이모티콘 · 방 관리)
   ========================================================================== */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 18, 0.45);
  backdrop-filter: blur(2px);
  z-index: 10;
  animation: fade-in 0.18s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  max-height: 58dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
  animation: sheet-up 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

.sheet-tall {
  max-height: 84dvh;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px 12px 20px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
  font-weight: 700;
}

/* 시트 상단의 손잡이 표시 */
.sheet-head::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
}

.emoticon-grid {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 6px;
  padding: 14px calc(14px + env(safe-area-inset-left)) calc(14px + env(safe-area-inset-bottom));
}

.emoticon-item {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease;
}

.emoticon-item:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.emoticon-item img {
  max-width: 100%;
  max-height: 100%;
}

/* ==========================================================================
   방 관리
   ========================================================================== */

.sheet-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px calc(18px + env(safe-area-inset-left)) calc(22px + env(safe-area-inset-bottom));
}

.manage-block {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-soft);
}

.manage-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.manage-block h2 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.manage-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.field-inline {
  flex: 1;
  min-width: 0;
}

.field-inline span {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

.invite-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invite-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}

.invite-url {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--surface);
}

.invite-meta {
  margin: 9px 0 11px;
  font-size: 12px;
  color: var(--muted);
}

.manage-members {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manage-member {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.manage-member-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

/* ==========================================================================
   토스트
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  z-index: 20;
  max-width: 88%;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(18, 22, 30, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: msg-in 0.2s ease-out;
}

/* ==========================================================================
   넓은 화면
   ========================================================================== */

@media (min-width: 760px) {
  /*
   * 넓은 화면에서는 방 목록을 왼쪽 기둥으로 세운다.
   * 격자를 쓰면 HTML 순서(헤더 -> 탭)를 그대로 두고도 배치만 바꿀 수 있다.
   */
  #view-chat {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
    grid-template-areas:
      "tabs header"
      "tabs members"
      "tabs privacy"
      "tabs messages"
      "tabs warning"
      "tabs composer";
    border-left: 1px solid var(--border-soft);
    border-right: 1px solid var(--border-soft);
  }

  .chat-header { grid-area: header; }
  .member-bar { grid-area: members; }
  .privacy-bar { grid-area: privacy; }
  .messages { grid-area: messages; }
  .connection-warning { grid-area: warning; }
  .composer { grid-area: composer; }

  .room-tabs {
    grid-area: tabs;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-bottom: 0;
    border-right: 1px solid var(--border-soft);
  }

  /* 방이 하나뿐이면 탭 자리를 아예 없앤다. no-tabs 는 app.js 가 붙인다. */
  #view-chat.no-tabs {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "header"
      "members"
      "privacy"
      "messages"
      "warning"
      "composer";
  }

  .room-tabs-title {
    display: block;
    padding: 18px 16px 10px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
  }

  .room-tabs-list {
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 0 10px 14px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .room-tab {
    max-width: none;
    width: 100%;
    border-radius: 10px;
    padding: 10px 13px;
  }

  .sheet {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 760px;
    max-width: 100%;
    border-radius: 22px 22px 0 0;
  }

  @keyframes sheet-up {
    from {
      transform: translate(-50%, 100%);
    }
    to {
      transform: translate(-50%, 0);
    }
  }
}
