body.tutor-app {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #f4f5f7;
  color: #17202a;
  -webkit-tap-highlight-color: transparent;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
    "Segoe UI", sans-serif;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

.tutor-topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  background: #ffffff;
  border-bottom: 1px solid #e2e5e9;
}

.tutor-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.tutor-home {
  color: #5d6872;
  font-size: 14px;
  text-decoration: none;
}

.tutor-home:hover {
  color: #0f766e;
}

.tutor-slash {
  color: #aeb6bf;
}

.tutor-brand strong {
  color: #17202a;
  font-size: 16px;
  letter-spacing: 0;
}

.tutor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-link {
  padding: 7px 10px;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  background: #ffffff;
  color: #5d6872;
  font-size: 12px;
  text-decoration: none;
}

.topbar-link:hover {
  border-color: #0f766e;
  color: #0f766e;
}

.topbar-btn {
  padding: 8px 12px;
  border: 1px solid #b45309;
  border-radius: 8px;
  background: transparent;
  color: #b45309;
  font-size: 12px;
}

.topbar-btn:hover {
  background: #fff7ed;
}

.topbar-toggle {
  padding: 7px 10px;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  background: #ffffff;
  color: #5d6872;
  font-size: 12px;
}

.model-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #dde2e7;
  border-radius: 999px;
  background: #f8fafb;
  color: #5d6872;
  font-size: 12px;
  white-space: nowrap;
}

.model-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.model-status.connecting {
  border-color: #d9b98a;
  color: #b45309;
}

.model-status.online {
  border-color: #9ccfbb;
  color: #0f766e;
}

.model-status.degraded,
.model-status.local {
  border-color: #b6cfe4;
  color: #2563a8;
}

.model-status.offline {
  border-color: #e2b6b6;
  color: #b04141;
}

.tutor-shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr) minmax(300px, 390px);
  height: calc(100vh - 58px);
  height: calc(100dvh - 58px);
  min-height: 0;
  overflow: hidden;
}

.session-side,
.evidence-side {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  background: #f8fafb;
}

.session-side {
  border-right: 1px solid #e2e5e9;
}

.evidence-side {
  border-left: 1px solid #e2e5e9;
  background: #fbfcfd;
}

.session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 10px;
}

.session-head h2 {
  margin: 0;
  color: #33414e;
  font-size: 13px;
  font-weight: 600;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  background: #ffffff;
  color: #5d6872;
  font-size: 16px;
  line-height: 1;
}

.icon-btn:hover {
  border-color: #b45309;
  color: #b45309;
}

.session-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 10px 16px;
}

.session-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 30px 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #5d6872;
  cursor: pointer;
}

.session-item:hover {
  background: #edf3f1;
}

.session-item.active {
  border-color: #b9d4cf;
  background: #e6f2f0;
  color: #0f3f3a;
}

.session-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-info strong {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-info span {
  color: #8a939c;
  font-size: 11px;
}

.session-del {
  position: absolute;
  right: 6px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8a939c;
  font-size: 14px;
  line-height: 1;
}

.session-item:hover .session-del {
  color: #b04141;
}

.chat-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: linear-gradient(180deg, #f7f9fa 0%, #eef2f4 100%);
}

.chat-log {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: 28px max(24px, 5vw) 18px;
  scrollbar-gutter: stable;
}

.message {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  margin: 0 auto 18px;
}

.message-body {
  padding: 14px 16px;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  background: #ffffff;
  color: #17202a;
  font-size: 14px;
  line-height: 1.8;
  box-shadow: 0 1px 2px rgba(23, 32, 42, 0.04);
}

.message.user .message-body {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.message-body p {
  margin: 0 0 10px;
}

.message-body p:last-child {
  margin-bottom: 0;
}

.message-body .msg-core {
  margin: 2px 0 10px;
  color: #123b36;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.message-body .msg-h2 {
  margin: 12px 0 6px;
  color: #1f2d38;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.message-body .msg-point {
  position: relative;
  margin: 4px 0;
  padding-left: 14px;
  color: #2b3a47;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.message-body .msg-point::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0f766e;
}

.message-body .msg-text {
  margin: 0 0 8px;
  color: #3d4c59;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
}

.message-body .msg-quote {
  margin: 6px 0;
  padding: 5px 10px;
  border-left: 2px solid #b9d4cf;
  border-radius: 0 6px 6px 0;
  background: #f2f7f6;
  color: #6d7b88;
  font-size: 12px;
  line-height: 1.7;
}

.message-body .msg-ref,
.message-body .msg-ref-inline {
  color: #2563a8;
  font-size: 12px;
  text-decoration: underline;
  word-break: break-all;
}

.message.user .message-body .msg-core {
  color: #ffffff;
}

.message.user .message-body .msg-h2 {
  color: #eafaf7;
}

.message.user .message-body .msg-point {
  color: #f0f8f6;
}

.message.user .message-body .msg-point::before {
  background: #b9e4dc;
}

.message.user .message-body .msg-text {
  color: #eef5f3;
}

.message.user .message-body .msg-quote {
  border-left-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
}

.message.user .message-body .msg-ref,
.message.user .message-body .msg-ref-inline {
  color: #cfe7ff;
}

.message-memory {
  margin-top: 8px;
}

.memory-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid #dde6e3;
  border-radius: 999px;
  background: #ffffff;
  color: #0f766e;
  font-size: 11px;
}

.memory-toggle:hover,
.memory-toggle.open {
  border-color: #0f766e;
  background: #e6f2f0;
}

.memory-cases {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  background: #ffffff;
}

.memory-cases[hidden] {
  display: none;
}

.memory-case {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  padding: 6px;
  border-bottom: 1px solid #eef2f4;
}

.memory-case:last-child {
  border-bottom: 0;
}

.memory-case img {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #eef2f4;
}

.memory-case-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.memory-case-body a {
  display: -webkit-box;
  overflow: hidden;
  color: #17202a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.memory-case-body a:hover {
  color: #0f766e;
}

.memory-case-body span {
  color: #8a939c;
  font-size: 11px;
}

.message-note {
  margin: 8px 0 0;
  color: #8a939c;
  font-size: 12px;
  line-height: 1.6;
}

.message-note.warn {
  color: #b45309;
}

.message-follows {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.message-follows button {
  position: relative;
  z-index: 1;
  padding: 6px 11px;
  border: 1px solid #dde6e3;
  border-radius: 999px;
  background: #ffffff;
  color: #0f766e;
  font-size: 12px;
  pointer-events: auto;
  user-select: none;
}

.message-follows button:hover {
  border-color: #0f766e;
  background: #e6f2f0;
}

.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.attachment-thumb {
  width: 76px;
  height: 76px;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  object-fit: cover;
  background: #eef2f4;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  background: #f8fafb;
  color: #5d6872;
  font-size: 12px;
}

.composer-area {
  padding: 12px max(24px, 5vw) 16px;
  border-top: 1px solid #e2e5e9;
  background: #fbfcfd;
}

.chat-input {
  width: min(860px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d5dce2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(23, 32, 42, 0.06);
}

.chat-input:focus-within {
  border-color: #0f766e;
}

.mode-picker {
  position: relative;
  flex: none;
}

.mode-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #dde2e7;
  border-radius: 8px;
  background: #f8fafb;
  color: #0f766e;
  font-size: 15px;
  line-height: 1;
}

.mode-btn:hover {
  border-color: #0f766e;
  background: #e6f2f0;
}

.mode-menu {
  position: absolute;
  z-index: 50;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 132px;
  padding: 6px;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(23, 32, 42, 0.14);
}

.mode-menu[hidden] {
  display: none;
}

.mode-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5d6872;
  font-size: 12px;
  text-align: left;
}

.mode-menu button:hover {
  background: #f0f6f4;
  color: #0f766e;
}

.mode-menu button.active {
  background: #e6f2f0;
  color: #0f766e;
  font-weight: 600;
}

.attach-label {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dde2e7;
  border-radius: 8px;
  background: #f8fafb;
  color: #5d6872;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.attach-label:hover {
  border-color: #b45309;
  color: #b45309;
}

.chat-input textarea {
  flex: 1;
  min-width: 0;
  max-height: 160px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #17202a;
  font-size: 14px;
  line-height: 1.6;
  resize: none;
}

.chat-input textarea::placeholder {
  color: #8a939c;
}

.send-btn {
  flex: none;
  height: 34px;
  padding: 0 16px;
  border: 1px solid #0f766e;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
}

.send-btn:disabled {
  border-color: #dfe3e7;
  background: #eef1f3;
  color: #a4adb6;
  cursor: not-allowed;
}

.agent-note {
  width: min(860px, 100%);
  margin: 8px auto 0;
  min-height: 18px;
  color: #8a939c;
  font-size: 12px;
  line-height: 1.5;
}

.attach-preview {
  width: min(860px, 100%);
  margin: 0 auto 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-item {
  position: relative;
}

.preview-item img {
  display: block;
  width: 72px;
  height: 72px;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  object-fit: cover;
}

.preview-file {
  max-width: 180px;
  padding: 8px 30px 8px 10px;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  background: #f8fafb;
  color: #5d6872;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border: 1px solid #e2b6b6;
  border-radius: 50%;
  background: #fff5f5;
  color: #b04141;
  font-size: 13px;
  line-height: 1;
}

.drop-hint {
  position: absolute;
  z-index: 30;
  inset: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #0f766e;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f766e;
  font-size: 16px;
  pointer-events: none;
}

.evidence-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  background: #fbfcfd;
  border-bottom: 1px solid #e2e5e9;
}

.evidence-head h2 {
  margin: 0;
  color: #33414e;
  font-size: 13px;
  font-weight: 600;
}

.evidence-count {
  padding: 4px 9px;
  border: 1px solid #b9d4cf;
  border-radius: 999px;
  background: #e6f2f0;
  color: #0f766e;
  font-size: 12px;
}

.case-panel {
  padding: 14px;
}

.case-summary {
  margin: 0 0 12px;
  color: #5d6872;
  font-size: 12px;
  line-height: 1.7;
}

.case-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  background: #ffffff;
}

.case-card img {
  width: 104px;
  height: 74px;
  border-radius: 6px;
  object-fit: cover;
  background: #eef2f4;
}

.case-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.case-title {
  display: -webkit-box;
  overflow: hidden;
  color: #17202a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.case-title:hover {
  color: #0f766e;
}

.case-meta {
  color: #8a939c;
  font-size: 11px;
}

.case-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.case-reasons span {
  padding: 2px 6px;
  border: 1px solid #dde6e3;
  border-radius: 6px;
  background: #f0f6f4;
  color: #0f766e;
  font-size: 10px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.case-tags span {
  padding: 2px 6px;
  border: 1px solid #e2e5e9;
  border-radius: 6px;
  background: #f8fafb;
  color: #5d6872;
  font-size: 10px;
}

.case-note {
  margin: 0;
  color: #0f766e;
  font-size: 11px;
  line-height: 1.6;
}

.case-actions {
  display: flex;
  gap: 6px;
}

.case-actions button,
.case-actions a {
  padding: 4px 8px;
  border: 1px solid #dde2e7;
  border-radius: 6px;
  background: transparent;
  color: #5d6872;
  font-size: 11px;
  text-decoration: none;
}

.case-actions button:hover,
.case-actions a:hover {
  border-color: #0f766e;
  color: #0f766e;
}

.empty-cases {
  color: #8a939c;
  font-size: 13px;
  line-height: 1.7;
}

.drawer-backdrop {
  position: fixed;
  z-index: 35;
  inset: 58px 0 0;
  background: rgba(23, 32, 42, 0.28);
}

.drop-hint[hidden],
.attach-preview[hidden],
.drawer-backdrop[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 22, 0.88);
}

.lightbox-image {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.settings-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.settings-modal[hidden] {
  display: none;
}

.settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 42, 0.34);
}

.settings-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 22px 24px 20px;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 42, 0.18);
}

.settings-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  background: #f8fafb;
  color: #8a939c;
  font-size: 16px;
  line-height: 1;
}

.settings-close:hover {
  color: #b04141;
  border-color: #e2b6b6;
}

.settings-panel h3 {
  margin: 0;
  color: #17202a;
  font-size: 16px;
}

.settings-hint {
  margin: 8px 0 14px;
  color: #5d6872;
  font-size: 12px;
  line-height: 1.7;
}

.settings-panel label {
  display: block;
  margin-bottom: 10px;
  color: #5d6872;
  font-size: 12px;
}

.settings-panel input {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 6px;
  padding: 0 10px;
  border: 1px solid #dde2e7;
  border-radius: 8px;
  background: #f8fafb;
  color: #17202a;
  outline: none;
}

.settings-panel input:focus {
  border-color: #0f766e;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.settings-actions .btn-ghost {
  border-color: #dde2e7;
  color: #5d6872;
}

@media (max-width: 1179px) {
  .tutor-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .evidence-side {
    position: fixed;
    z-index: 40;
    top: 58px;
    right: 0;
    bottom: 0;
    width: min(360px, 94vw);
    transform: translateX(105%);
    transition: transform 0.24s ease;
    box-shadow: -18px 0 42px rgba(23, 32, 42, 0.12);
  }

  .evidence-side.open {
    transform: translateX(0);
  }

  #toggle-evidence {
    display: inline-flex;
  }
}

@media (max-width: 820px) {
  .tutor-shell {
    grid-template-columns: 1fr;
  }

  .session-side {
    position: fixed;
    z-index: 40;
    top: 58px;
    left: 0;
    bottom: 0;
    width: min(270px, 88vw);
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    box-shadow: 18px 0 42px rgba(23, 32, 42, 0.12);
    overscroll-behavior: contain;
  }

  .session-side.open {
    transform: translateX(0);
  }

  #toggle-sessions {
    display: inline-flex;
  }

  .tutor-topbar {
    padding: 0 12px;
    gap: 8px;
  }

  .tutor-brand strong {
    display: none;
  }

  .topbar-link {
    display: none;
  }

  .model-status {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .chat-log {
    padding: 16px 14px 12px;
  }

  .composer-area {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .message-body {
    font-size: 13px;
  }

  .chat-input {
    gap: 8px;
    padding: 8px;
  }

  .chat-input textarea {
    font-size: 16px;
  }

  .mode-btn,
  .attach-label {
    width: 40px;
    height: 40px;
    flex: none;
  }

  .mode-btn {
    font-size: 16px;
  }

  .attach-label {
    font-size: 22px;
  }

  .send-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
  }

  .mode-menu {
    min-width: 150px;
  }

  .mode-menu button {
    padding: 10px 12px;
    font-size: 13px;
  }

  .message-follows {
    gap: 10px;
  }

  .message-follows button {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 13px;
  }

  .session-item {
    min-height: 46px;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
  }

  .case-actions button,
  .case-actions a,
  .memory-toggle {
    min-height: 36px;
    padding: 7px 11px;
  }

  .settings-panel {
    padding: 18px 16px 16px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .tutor-topbar {
    padding: 0 10px;
  }

  .tutor-actions {
    gap: 6px;
  }

  .topbar-btn {
    padding: 7px 9px;
    font-size: 11px;
  }

  .model-status {
    max-width: 96px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .chat-log {
    padding: 12px 10px 10px;
  }

  .composer-area {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .chat-input {
    gap: 6px;
    padding: 6px;
  }

  .mode-btn,
  .attach-label,
  .send-btn {
    width: 38px;
    height: 38px;
  }

  .message-body {
    padding: 12px 13px;
    font-size: 13px;
  }

  .message {
    margin-bottom: 14px;
  }
}
