* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px; color: #1F2329; background: #F4F6F9; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; overflow: hidden;
  height: 100vh; height: 100dvh;
  overscroll-behavior: none;
}
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }
.only-mobile { display: none !important; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border: 0; background: transparent;
  color: #4A5461; border-radius: 8px; flex: 0 0 auto;
}
.icon-btn:active { background: #EDF1F6; }

/* ================= 顶部栏 ================= */
.topbar {
  flex: 0 0 auto; background: #FFFFFF; border-bottom: 1px solid #E3E6EB;
  display: flex; align-items: center; padding: 0 16px; gap: 14px;
  height: 54px;
  padding-top: env(safe-area-inset-top);
  height: calc(54px + env(safe-area-inset-top));
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; background: #185FA5; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; letter-spacing: .5px;
}
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: .4px; color: #0C447C; }
.room { flex: 1; min-width: 0; }
.room-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-sub { font-size: 11px; color: #8A9099; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.net { font-size: 11px; padding: 3px 8px; border-radius: 10px; border: 1px solid #E3E6EB; color: #8A9099; background: #FAFBFC; white-space: nowrap; }
.net.ok { color: #0F6E56; border-color: #9FE1CB; background: #E1F5EE; }
.net.bad { color: #A32D2D; border-color: #F7C1C1; background: #FCEBEB; }
.net.connecting { color: #854F0B; border-color: #FAC775; background: #FAEEDA; }
.btn-ghost {
  border: 1px solid #E3E6EB; background: #FFFFFF; color: #5F5E5A; font-size: 12px;
  padding: 5px 10px; border-radius: 6px; white-space: nowrap;
}
.btn-ghost:hover { border-color: #85B7EB; color: #185FA5; background: #F5F9FE; }
.me { display: flex; align-items: center; gap: 7px; margin-left: 6px; padding-left: 12px; border-left: 1px solid #E3E6EB; }
.me-avatar { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 11px; flex: 0 0 26px; }
.me-info { min-width: 0; }
.me-name { font-size: 12px; line-height: 1.25; white-space: nowrap; }
.me-role { font-size: 10px; color: #8A9099; line-height: 1.25; white-space: nowrap; }

/* ================= 三栏（桌面） ================= */
.layout { flex: 1; display: flex; min-height: 0; overflow: hidden; }

.left { width: 186px; flex: 0 0 186px; background: #FAFBFC; border-right: 1px solid #E3E6EB; display: flex; flex-direction: column; min-height: 0; }
.panel-head { height: 40px; flex: 0 0 40px; display: flex; align-items: center; padding: 0 14px; font-size: 12px; color: #8A9099; border-bottom: 1px solid #EDF0F3; }
.conv { display: flex; gap: 10px; padding: 11px 12px; align-items: center; }
.conv.active { background: #E9F1FB; border-left: 3px solid #185FA5; padding-left: 9px; }
.conv-avatar { width: 34px; height: 34px; border-radius: 8px; background: #378ADD; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 34px; }
.conv-meta { min-width: 0; }
.conv-name { font-size: 12px; font-weight: 500; }
.conv-last { font-size: 11px; color: #8A9099; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 116px; }
.left-foot { margin-top: auto; padding: 12px; border-top: 1px solid #E3E6EB; }
.foot-label { font-size: 10px; color: #9AA0A8; letter-spacing: .3px; margin-bottom: 5px; }
.local-info { font-size: 11px; color: #5F5E5A; line-height: 1.6; word-break: break-all; }

.center { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #F7F9FB; min-height: 0; }
.chat-head {
  flex: 0 0 44px; height: 44px; background: #FFFFFF; border-bottom: 1px solid #E9ECF0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; font-size: 13px;
}
.chat-title-wrap { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.chat-title-wrap b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-count { font-size: 11px; color: #8A9099; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-roll { border: 1px solid #B5D4F4; background: #E6F1FB; color: #185FA5; font-size: 12px; padding: 5px 12px; border-radius: 6px; white-space: nowrap; flex: 0 0 auto; }
.btn-roll:hover { background: #D3E6FA; }

.messages { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 20px 8px; -webkit-overflow-scrolling: touch; }
.messages::-webkit-scrollbar { width: 8px; }
.messages::-webkit-scrollbar-thumb { background: #D8DDE4; border-radius: 4px; }
.sys { text-align: center; margin: 10px 0; }
.sys span { font-size: 11px; color: #9AA0A8; background: #EDF0F3; border-radius: 10px; padding: 3px 10px; }
.msg { display: flex; gap: 9px; margin-bottom: 14px; align-items: flex-start; }
.msg.mine { flex-direction: row-reverse; }
.avatar { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 11px; }
.msg-body { max-width: min(72%, 620px); min-width: 0; }
.msg-meta { font-size: 11px; color: #8A9099; margin-bottom: 4px; display: flex; gap: 7px; align-items: baseline; flex-wrap: wrap; }
.msg.mine .msg-meta { flex-direction: row-reverse; }
.msg-meta b { color: #444441; font-weight: 500; }
.bubble {
  background: #FFFFFF; border: 1px solid #E6E9ED; border-radius: 4px 10px 10px 10px;
  padding: 8px 11px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; font-size: 13px;
}
.msg.mine .bubble { background: #E6F1FB; border-color: #C9E0F7; border-radius: 10px 4px 10px 10px; }
.mention { color: #185FA5; font-weight: 500; }
.role-chip { font-size: 9.5px; color: #5B6B7C; background: #EEF2F7; border: 1px solid #E4EAF2; border-radius: 3px; padding: 0 4px; line-height: 15px; }
.member-group { font-size: 10px; color: #9AA0A8; padding: 9px 12px 3px; letter-spacing: .3px; }
.tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #E1F5EE; color: #0F6E56; vertical-align: 1px; }
.tag.warn { background: #FAEEDA; color: #854F0B; }
.reply-to { font-size: 11px; color: #8A9099; border-left: 2px solid #D8DDE4; padding-left: 7px; margin-bottom: 5px; }

.report {
  background: #FFFFFF; border: 1px solid #E6E9ED; border-left: 3px solid #1D9E75;
  border-radius: 4px 10px 10px 4px; padding: 9px 12px; white-space: pre-wrap; word-break: break-word; line-height: 1.7; font-size: 12.5px;
}
.report-head { font-size: 10px; color: #0F6E56; letter-spacing: .3px; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.report-head i { width: 5px; height: 5px; border-radius: 50%; background: #1D9E75; display: inline-block; }

/* ================= 输入区 ================= */
.composer { flex: 0 0 auto; background: #FFFFFF; border-top: 1px solid #E3E6EB; padding: 8px 14px 10px; }
.composer-tools { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.chip { border: 1px solid #E3E6EB; background: #FAFBFC; color: #5F5E5A; font-size: 11px; padding: 4px 10px; border-radius: 5px; white-space: nowrap; }
.chip:hover { border-color: #85B7EB; color: #185FA5; }
.chip.primary { border-color: #B5D4F4; background: #E6F1FB; color: #185FA5; }
.hint { font-size: 11px; color: #9AA0A8; line-height: 1.5; }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
#input {
  flex: 1; min-width: 0; resize: none; border: 1px solid #E3E6EB; border-radius: 8px; padding: 8px 10px;
  font-family: inherit; font-size: 13px; line-height: 1.6; outline: none; color: #1F2329; background: #FCFDFE;
  max-height: 128px; overflow-y: auto;
}
#input:focus { border-color: #85B7EB; background: #FFFFFF; }
.composer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 10px; }
.btn-send { border: 0; background: #185FA5; color: #FFFFFF; font-size: 12px; padding: 7px 18px; border-radius: 8px; flex: 0 0 auto; }
.btn-send:hover { background: #0C447C; }
.btn-send:active { background: #0A3A69; }
.composer-plus { width: 34px; height: 34px; border-radius: 8px; }

/* ================= 右侧 ================= */
.right { width: 218px; flex: 0 0 218px; background: #FAFBFC; border-left: 1px solid #E3E6EB; display: flex; flex-direction: column; min-height: 0; }
.count { margin-left: auto; font-size: 11px; color: #9AA0A8; }
.members { padding: 6px 0; overflow-y: auto; flex: 0 1 auto; }
.member { display: flex; gap: 9px; padding: 8px 12px; align-items: flex-start; cursor: pointer; }
.member:hover { background: #EEF3F9; }
.member-avatar { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 11px; position: relative; }
.member-dot { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid #FAFBFC; background: #C4C9CF; }
.member-dot.on { background: #1D9E75; }
.member-info { min-width: 0; flex: 1; }
.member-name { font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.member-role { font-size: 10px; color: #8A9099; margin-top: 2px; }
.member-status { font-size: 10px; color: #9AA0A8; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member.badge-me .member-name::after { content: "本机"; font-size: 9px; color: #185FA5; border: 1px solid #B5D4F4; border-radius: 3px; padding: 0 3px; font-weight: 400; }
.member.boss { background: #FBFAF4; }
.member.boss:hover { background: #F5F2E6; }
.member.boss .member-name::before { content: "★"; font-size: 9px; color: #BA7517; }
.member.boss .member-avatar { box-shadow: 0 0 0 2px #E8DFC0; }
.right-note { margin-top: auto; border-top: 1px solid #E3E6EB; padding: 12px; font-size: 11px; color: #6B7178; line-height: 1.7; }
.note-title { font-size: 11px; color: #444441; font-weight: 500; margin-bottom: 6px; }
.right-note p { margin: 0 0 7px; }
.note-muted { color: #9AA0A8; }

/* 任务卡 */
.tasks { max-height: 46vh; overflow-y: auto; padding: 4px 8px 8px; }
.task-empty { font-size: 11px; color: #9AA0A8; padding: 8px 4px; line-height: 1.6; }
.task-card { border: 1px solid #E3E6EB; border-left: 3px solid #B4B2A9; border-radius: 6px; padding: 7px 9px; margin-bottom: 7px; background: #FFFFFF; }
.task-card.st-new { border-left-color: #378ADD; }
.task-card.st-discussing { border-left-color: #BA7517; background: #FFFBF3; }
.task-card.st-ready { border-left-color: #7F77DD; }
.task-card.st-done { border-left-color: #1D9E75; }
.task-card.st-blocked { border-left-color: #A32D2D; }
.task-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.task-head b { color: #0C447C; font-weight: 500; }
.task-status { font-size: 10px; color: #8A9099; }
.task-title { font-size: 11.5px; margin-top: 4px; line-height: 1.5; word-break: break-word; }
.task-meta { font-size: 10px; color: #9AA0A8; margin-top: 3px; }
.task-q { font-size: 10.5px; color: #854F0B; background: #FAEEDA; border-radius: 4px; padding: 4px 6px; margin-top: 5px; line-height: 1.5; }
.task-r { font-size: 10.5px; color: #0F6E56; margin-top: 5px; line-height: 1.5; }
.task-btn { font-size: 10px; border: 1px solid #FAC775; background: #FFFFFF; color: #854F0B; border-radius: 4px; padding: 2px 7px; margin-top: 5px; }
.task-btn:hover { background: #FAEEDA; }
.bubble.task-msg { border-left: 3px solid #B4B2A9; }
.bubble.task-msg.command { border-left-color: #378ADD; background: #F5F9FE; }
.bubble.task-msg.question { border-left-color: #BA7517; background: #FFFBF3; }
.bubble.task-msg.answer { border-left-color: #1D9E75; }
.bubble.task-msg.result { border-left-color: #0F6E56; background: #F2FBF7; }
.bubble.task-msg.task { border-left-color: #7F77DD; }

/* ================= 登录 ================= */
.overlay { position: fixed; inset: 0; background: rgba(28, 34, 42, .34); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 20px; overflow-y: auto; }
.login-card { width: 340px; max-width: 100%; background: #FFFFFF; border-radius: 14px; padding: 24px 24px 20px; border: 1px solid #E3E6EB; box-shadow: 0 12px 40px rgba(16,32,48,.16); }
.login-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.login-logo { width: 40px; height: 40px; border-radius: 11px; background: #185FA5; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; flex: 0 0 40px; }
.login-card h2 { margin: 0; font-size: 17px; font-weight: 600; }
.login-sub { margin: 3px 0 0; font-size: 11.5px; color: #8A9099; }
.login-card label { display: block; font-size: 12px; color: #5F5E5A; margin-bottom: 12px; }
.login-card select, .login-card input {
  width: 100%; margin-top: 6px; padding: 9px 10px; border: 1px solid #E3E6EB; border-radius: 8px;
  font-family: inherit; font-size: 13px; outline: none; background: #FCFDFE; color: #1F2329;
}
.login-card select:focus, .login-card input:focus { border-color: #85B7EB; background: #FFFFFF; }
.btn-login { width: 100%; border: 0; background: #185FA5; color: #FFFFFF; font-size: 14px; padding: 11px; border-radius: 999px; margin-top: 4px; font-weight: 500; }
.btn-login:hover { background: #0C447C; }
.btn-login:disabled { opacity: .6; }
.login-error { font-size: 11.5px; color: #A32D2D; margin-top: 9px; min-height: 15px; }
.login-tip { font-size: 10.5px; color: #9AA0A8; margin-top: 4px; line-height: 1.6; word-break: break-all; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; background: #F1F3F6; border-radius: 9px; padding: 3px; }
.tab { flex: 1; padding: 8px 10px; font-size: 13px; border: none; background: transparent; color: #5F6B7A; border-radius: 7px; cursor: pointer; }
.tab.active { background: #FFFFFF; color: #185FA5; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.reg-flag { font-size: 9px; color: #854F0B; border: 1px solid #FAC775; background: #FAEEDA; border-radius: 3px; padding: 0 3px; }
.mini { margin-left: auto; width: 20px; height: 20px; padding: 0; line-height: 17px; text-align: center; border: 1px solid #D6DBE2; background: #FFFFFF; border-radius: 5px; color: #185FA5; font-size: 14px; cursor: pointer; }
.mini:hover { background: #EEF3F9; }

/* ================= 抽屉 / 遮罩 / 底部面板（移动端才生效） ================= */
.scrim {
  display: none; position: fixed; inset: 0; background: rgba(20, 28, 38, .38);
  z-index: 45; opacity: 0; transition: opacity .2s;
}
.scrim.show { display: block; opacity: 1; }

.sheet {
  display: flex; flex-direction: column;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: #F7F9FB; border-radius: 16px 16px 0 0; padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(102%); transition: transform .24s cubic-bezier(.3,.8,.4,1);
  box-shadow: 0 -8px 28px rgba(16,32,48,.18);
  pointer-events: none;
  max-height: 86vh; max-height: 86dvh;
}
.sheet.open { transform: translateY(0); pointer-events: auto; }
.sheet-body { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-item {
  width: 100%; text-align: left; border: 0; background: #FFFFFF; border-radius: 10px;
  padding: 14px 16px; font-size: 15px; color: #1F2329; display: flex; align-items: center; gap: 10px;
}
.sheet-item:active { background: #EDF1F6; }
.sheet-item.danger { color: #A32D2D; }
.sheet-item small { margin-left: auto; font-size: 12px; color: #9AA0A8; }
.sheet-tip { font-size: 11.5px; color: #8A9099; padding: 4px 8px 6px; line-height: 1.6; }
.sheet-cancel { width: 100%; margin-top: 8px; border: 0; background: #FFFFFF; border-radius: 10px; padding: 14px; font-size: 15px; color: #5F5E5A; }

/* ================= 移动端 ================= */
@media (max-width: 820px) {
  .only-pc { display: none !important; }
  .only-mobile { display: inline-flex !important; }

  body { font-size: 15px; }

  .topbar {
    height: auto; min-height: 54px; padding: 6px 8px;
    padding-top: calc(6px + env(safe-area-inset-top));
    gap: 4px;
  }
  .brand { display: none; }
  .room { padding-left: 2px; }
  .room-title { font-size: 15px; font-weight: 600; }
  .room-sub { font-size: 11px; }
  .top-actions { gap: 2px; }
  .net { font-size: 10px; padding: 2px 6px; order: -1; }
  .me { display: none; }

  .layout { overflow: hidden; }
  .center { flex: 1 1 auto; width: 100%; }

  /* 左抽屉 */
  .left {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
    width: 82%; max-width: 320px; flex-basis: auto;
    transform: translateX(-102%); transition: transform .24s cubic-bezier(.3,.8,.4,1);
    box-shadow: 6px 0 28px rgba(16,32,48,.16);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .left.open { transform: translateX(0); }

  /* 右抽屉 */
  .right {
    position: fixed; top: 0; bottom: 0; right: 0; z-index: 50;
    width: 86%; max-width: 340px; flex-basis: auto;
    transform: translateX(102%); transition: transform .24s cubic-bezier(.3,.8,.4,1);
    box-shadow: -6px 0 28px rgba(16,32,48,.16);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .right.open { transform: translateX(0); }

  .drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    height: 50px; flex: 0 0 50px; padding: 0 6px 0 16px;
    font-size: 15px; font-weight: 600; color: #1F2329;
    border-bottom: 1px solid #E3E6EB; background: #FFFFFF;
  }
  .panel-head { height: 38px; flex: 0 0 38px; font-size: 12.5px; }
  .conv { padding: 14px 14px; }
  .conv-name { font-size: 14px; }
  .conv-last { font-size: 12px; max-width: 100%; }
  .left-foot { padding: 14px; }
  .local-info { font-size: 12px; }

  /* 顶栏已有群名，这里整条去掉，把高度让给消息 */
  .chat-head { display: none; }

  .messages { padding: 12px 10px 6px; }
  .msg { gap: 8px; margin-bottom: 16px; }
  .avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; }
  .msg-body { max-width: calc(100% - 46px); }
  .msg-meta { font-size: 11.5px; gap: 6px; }
  .bubble { font-size: 15.5px; line-height: 1.6; padding: 9px 12px; border-radius: 4px 12px 12px 12px; }
  .role-chip { font-size: 10.5px; line-height: 17px; padding: 0 5px; }
  .member-group { font-size: 11.5px; padding: 12px 14px 4px; }
  .msg.mine .bubble { border-radius: 12px 4px 12px 12px; }
  .report { font-size: 14.5px; line-height: 1.65; padding: 10px 12px; }
  .report-head { font-size: 10.5px; }
  .sys span { font-size: 11px; }
  .reply-to { font-size: 11.5px; }

  .members { padding: 4px 0; flex: 1 1 auto; overflow-y: auto; }
  /* 任务列表默认收起，否则 6 个 AI 的成员列表放不下；点标题展开 */
  .tasks { display: none; }
  .tasks.open { display: block; max-height: 42vh; padding: 6px 10px 10px; overflow-y: auto; }
  #taskHead { cursor: pointer; }
  #taskHead::after { content: " ▾"; font-size: 10px; color: #B4BAC2; margin-left: 4px; }
  .member { padding: 11px 14px; gap: 11px; }
  .member-avatar { width: 36px; height: 36px; flex-basis: 36px; font-size: 14px; }
  .member-name { font-size: 14.5px; }
  .member-role { font-size: 11.5px; }
  .member-status { font-size: 11px; }
  .task-card { padding: 9px 11px; }
  .task-title { font-size: 13px; }
  .task-head { font-size: 11.5px; }
  .task-q, .task-r { font-size: 12px; }
  .task-btn { font-size: 12px; padding: 5px 12px; margin-top: 7px; }

  /* 输入区：贴底、加大字号防 iOS 缩放 */
  .composer {
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid #E3E6EB;
  }
  .composer-tools {
    display: none;
    padding: 4px 2px 8px; margin-bottom: 0; gap: 8px; flex-wrap: wrap;
  }
  .composer-tools.open { display: flex; }
  .composer-tools .hint { flex-basis: 100%; font-size: 11px; }
  .chip { font-size: 13px; padding: 7px 13px; border-radius: 16px; }
  .composer-row { gap: 6px; align-items: flex-end; }
  #input {
    font-size: 16px; padding: 8px 12px; border-radius: 18px;
    max-height: 108px; min-height: 38px; line-height: 1.45;
    background: #F2F4F7; border-color: #E6E9ED;
  }
  #input:focus { background: #FFFFFF; }
  .btn-send { font-size: 14px; padding: 9px 16px; border-radius: 18px; }
  .composer-bottom { display: none; }
  .composer-bottom.has-text { display: flex; margin-top: 4px; }
  .composer-bottom .hint { font-size: 11.5px; }

  /* 登录页全屏（键盘弹出时更稳） */
  .overlay { align-items: flex-start; padding: 0; background: #FFFFFF; }
  .login-card {
    width: 100%; max-width: 480px; margin: 0 auto; border: 0; box-shadow: none;
    border-radius: 0; padding: calc(28px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
    min-height: 100%;
  }
  .login-card select, .login-card input { font-size: 16px; padding: 11px 12px; }
  .btn-login { font-size: 16px; padding: 13px; }
  .login-card h2 { font-size: 20px; }
  .login-logo { width: 46px; height: 46px; flex-basis: 46px; font-size: 15px; border-radius: 13px; }
  .login-sub { font-size: 12.5px; }
  .tab { font-size: 14px; padding: 9px; }
}

@media (max-width: 380px) {
  .chat-count { display: none; }
  .btn-roll { padding: 5px 8px; font-size: 11.5px; }
}
