@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-alt: #eef3fc;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --accent: #1a73e8;
  --accent-strong: #1557b0;
  --accent-soft: #e8f0fe;
  --danger: #d93025;
  --shadow-soft: 0 1px 1px rgba(60, 64, 67, 0.12);
  --rail-bg: #e9eef6;
  --rail-border: #dfe4ee;
  --radius: 12px;
  --font: "Roboto", "Manrope", sans-serif;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1113;
  color: #f8f5f2;
}

.login-card {
  background: #1b1f23;
  padding: 24px 28px;
  border-radius: 14px;
  min-width: 320px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.login-card label {
  margin-top: 8px;
  font-size: 0.9rem;
}

.login-card input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #2d3338;
  background: #0f1113;
  color: #f8f5f2;
}

.login-card button {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: #1dbf73;
  color: #0f1113;
  font-weight: 600;
  cursor: pointer;
}

.login-card .error {
  margin-top: 10px;
  color: #ff7b7b;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  --folders-peek-left: 56px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font);
  color: inherit;
}

.btn {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #1f1f1f;
  color: #fff;
}

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

.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent-strong);
  font-weight: 600;
}

.app {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  animation: appIn 0.4s ease;
}

@keyframes appIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  padding: 8px 16px 8px 8px;
  background: var(--bg);
  border-bottom: none;
  box-shadow: none;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1a73e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.brand-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.topbar .brand-meta {
  display: none;
}

.brand-meta {
  font-size: 12px;
  color: var(--muted);
}

.topbar-search {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  padding-left: 0;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(720px, 100%);
  padding: 8px 14px;
  border-radius: 999px;
  background: #eaf1fb;
  border: 1px solid transparent;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-pill:focus-within {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.search-pill input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
}

.search-icon svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  justify-self: end;
}

.icon-button {
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.icon-button:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.icon-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.icon-button.subtle {
  border: 1px solid var(--line);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #d2e3fc;
  color: #1a73e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.account-menu {
  position: absolute;
  right: 0;
  top: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(60, 64, 67, 0.15);
  padding: 12px;
  min-width: 200px;
  display: none;
  z-index: 20;
}

.account-menu.open {
  display: block;
}

.account-email {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.account-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 500;
  font-size: 13px;
}

.advanced-panel {
  margin: 12px 20px 0;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: none;
}

.search-chips {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 4px;
  background: #fff;
}

.search-chips.visible {
  display: flex;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.chip svg {
  width: 12px;
  height: 12px;
}

.chip.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent-soft);
}

.chip-link {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
}

.advanced-panel.open {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.advanced-title {
  grid-column: 1 / -1;
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}

.advanced-panel label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.advanced-panel input,
.advanced-panel select {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  background: #fff;
  font-family: var(--font);
}

.advanced-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content {
  display: grid;
  grid-template-columns: 56px 256px minmax(0, 1fr) 56px;
  gap: 0;
  padding: 0 16px 20px 8px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.app-rail {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 4px;
  background: var(--rail-bg);
  border: 1px solid var(--rail-border);
  border-radius: 18px;
}

.rail-button {
  width: 48px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rail-button svg {
  width: 20px;
  height: 20px;
}

.rail-button:hover {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.rail-button.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: transparent;
}

.rail-label {
  font-weight: 600;
}

.rail-spacer {
  flex: 1;
}

.pane {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.folders {
  grid-column: 2;
  grid-row: 1;
  padding: 8px 0 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-right: 12px;
}

.list-pane,
.view-pane {
  grid-column: 3;
  grid-row: 1;
  min-height: 0;
  border: none;
  border-radius: 16px;
  background: #fff;
}

.chat-pane,
.meet-pane {
  grid-column: 3;
  grid-row: 1;
  min-height: 0;
  border: none;
  border-radius: 16px;
  background: #fff;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-pane {
  background: var(--bg);
  position: relative;
}

.app-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.app-pane-title {
  font-weight: 600;
}

.app-pane-link {
  padding: 6px 12px;
  font-size: 12px;
}

.app-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
}

.chat-shell {
  flex: 1;
  display: flex;
  padding: 16px;
  min-height: 0;
  background: var(--bg);
}

.chat-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
}

.chat-sidebar,
.chat-main {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.chat-sidebar {
  padding: 14px;
  gap: 16px;
  overflow: auto;
}

.chat-new {
  width: 100%;
  border: none;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 10px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.chat-new svg {
  width: 20px;
  height: 20px;
}

.chat-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.chat-section-title svg {
  width: 12px;
  height: 12px;
}

.chat-section-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-item {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font-size: 14px;
}

.chat-item:hover {
  background: var(--surface-alt);
}

.chat-item.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.chat-item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-icon svg {
  width: 18px;
  height: 18px;
}

.chat-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.chat-avatar-wrap {
  position: relative;
  display: inline-flex;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--avatar-color, var(--accent-soft));
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.chat-avatar.space {
  border-radius: 10px;
}

.chat-avatar.small {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.chat-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #9aa0a6;
}

.chat-status.online {
  background: #34a853;
}

.chat-status.away {
  background: #fbbc04;
}

.chat-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-home {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.chat-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
}

.chat-home-title {
  font-size: 20px;
  font-weight: 600;
}

.chat-home-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.chat-switch {
  position: relative;
  width: 36px;
  height: 20px;
  display: inline-flex;
  align-items: center;
}

.chat-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.chat-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: #d7dce1;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.chat-slider::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.chat-switch input:checked + .chat-slider {
  background: var(--accent);
}

.chat-switch input:checked + .chat-slider::before {
  transform: translate(14px, -50%);
}

.chat-pill {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.chat-pill svg {
  width: 14px;
  height: 14px;
}

.chat-home-list {
  padding: 8px 12px 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-home-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
}

.chat-home-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chat-home-item:hover {
  background: var(--surface-alt);
}

.chat-home-item.active {
  background: var(--accent-soft);
}

.chat-home-item.unread .chat-home-name {
  font-weight: 600;
}

.chat-home-item.unread .chat-home-preview {
  color: var(--ink);
}

.chat-home-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-home-name {
  font-size: 14px;
  font-weight: 500;
}

.chat-home-time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.chat-home-preview {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-home-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.chat-thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.chat-thread-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.chat-thread-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-thread-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-thread-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-status {
  font-size: 12px;
  color: var(--muted);
}

.chat-thread-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.chat-call-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8f9fb;
  gap: 12px;
}

.chat-call-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.chat-call-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c2c7cc;
}

.chat-call-dot.active {
  background: #34a853;
}

.chat-call-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-call-actions .btn {
  padding: 6px 12px;
  font-size: 12px;
}

.chat-call-frame {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 28, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 6;
}

.chat-call-frame.active {
  display: flex;
}

.chat-call-panel {
  width: min(760px, 94%);
  max-height: 92%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-call-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.chat-call-panel-title {
  font-weight: 700;
  font-size: 16px;
}

.chat-call-panel-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.chat-call-panel-body {
  flex: 1;
  padding: 24px;
  background: #f8f9fb;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: auto;
}

.chat-call-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.chat-call-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--avatar-color, var(--accent-soft));
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
}

.chat-call-status {
  font-weight: 600;
  color: var(--ink);
}

.chat-call-participants {
  color: var(--muted);
  font-size: 13px;
}

.chat-call-video {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.chat-call-video video {
  width: 100%;
  border-radius: 16px;
  background: #0b0f1a;
  min-height: 180px;
  object-fit: cover;
}

.chat-call-frame[data-call-media="audio"] .chat-call-video {
  display: none;
}

.chat-call-audio {
  display: none;
}

.chat-call-panel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}

.chat-call-control {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.chat-call-control svg {
  width: 18px;
  height: 18px;
}

.chat-call-control:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.chat-call-control[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-call-control[aria-pressed="true"] {
  background: #fce8e6;
  border-color: #f4b4af;
  color: #b3261e;
}

.chat-call-control.danger {
  background: var(--danger);
  color: #fff;
  border: none;
}

.chat-call-control.danger:hover {
  background: #b3261e;
}

.chat-thread-body {
  flex: 1;
  overflow: auto;
  min-height: 0;
  padding: 16px 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-thread-empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 70%;
}

.chat-message-text {
  white-space: pre-wrap;
}

.chat-message.inbound {
  align-self: flex-start;
}

.chat-message.outbound {
  align-self: flex-end;
}

.chat-message-bubble {
  background: #f1f3f4;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

.chat-message.outbound .chat-message-bubble {
  background: #d2e3fc;
}

.chat-message-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.chat-message-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  text-align: right;
}

.chat-status-actions {
  display: flex;
  justify-content: center;
  padding-bottom: 16px;
}

.chat-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}

.chat-composer-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: none;
  background: #fff;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.chat-composer-btn:disabled,
.chat-send:disabled,
.chat-tool:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-composer-btn svg {
  width: 18px;
  height: 18px;
}

.chat-composer-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-history {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-alt);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

.chat-composer-input {
  border: none;
  resize: none;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
  min-height: 44px;
  background: transparent;
}

.chat-composer-input:disabled {
  color: var(--muted);
}

.chat-composer-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chat-tool {
  width: 28px;
  height: 28px;
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: none;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.chat-send svg {
  width: 18px;
  height: 18px;
}

.view-pane {
  display: none;
}

body[data-pane="view"] .view-pane {
  display: flex;
}

body[data-pane="view"] .list-pane {
  display: none;
}

body[data-app="chat"] .folders,
body[data-app="chat"] .list-pane,
body[data-app="chat"] .view-pane,
body[data-app="chat"] .appbar {
  display: none;
}

body[data-app="chat"] .content {
  grid-template-columns: 56px minmax(0, 1fr);
}

body[data-app="chat"] .chat-pane {
  display: flex;
  grid-column: 2;
}

body[data-app="meet"] .folders,
body[data-app="meet"] .list-pane,
body[data-app="meet"] .view-pane,
body[data-app="meet"] .appbar {
  display: none;
}

body[data-app="meet"] .content {
  grid-template-columns: 56px minmax(0, 1fr);
}

body[data-app="meet"] .meet-pane {
  display: flex;
  grid-column: 2;
}

@media (min-width: 961px) {
  body[data-app="mail"][data-folders="collapsed"] .content,
  body[data-app="mail"][data-folders="peek"] .content {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
  }

  body[data-app="mail"][data-folders="collapsed"] .folders {
    display: none;
  }

  body[data-app="mail"][data-folders="collapsed"] .list-pane,
  body[data-app="mail"][data-folders="collapsed"] .view-pane,
  body[data-app="mail"][data-folders="peek"] .list-pane,
  body[data-app="mail"][data-folders="peek"] .view-pane {
    grid-column: 2;
  }

  body[data-app="mail"][data-folders="collapsed"] .appbar,
  body[data-app="mail"][data-folders="peek"] .appbar {
    grid-column: 3;
  }

  body[data-app="mail"][data-folders="peek"] .folders {
    display: flex;
    position: absolute;
    left: var(--folders-peek-left);
    top: 0;
    bottom: 0;
    width: 256px;
    margin-right: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(60, 64, 67, 0.2);
    z-index: 12;
  }
}

.appbar {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-left: none;
  background: transparent;
}

.appbar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.appbar-icon svg {
  width: 20px;
  height: 20px;
}

.appbar-icon:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.appbar-icon.calendar {
  color: #1a73e8;
}

.appbar-icon.keep {
  color: #f9ab00;
}

.appbar-icon.tasks {
  color: #1a73e8;
}

.appbar-divider {
  width: 24px;
  height: 1px;
  background: var(--line);
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px 12px 0;
}

.compose-button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: none;
  background: #c2e7ff;
  color: #001d35;
  padding: 12px 24px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compose-button svg {
  width: 18px;
  height: 18px;
}

.compose-button:hover {
  background: #b3dcff;
  transform: translateY(-1px);
}

.folder-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px 0 0;
  overflow-y: auto;
}

.folder-section {
  margin-top: 10px;
}

.folder-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.folder-section-header .folder-add {
  width: 24px;
  height: 24px;
}

.folder-section-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.folder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.folder-item:hover {
  background: #eef3fc;
}

.folder-item.active {
  background: #d2e3fc;
  color: var(--ink);
  font-weight: 600;
  margin-left: -8px;
  padding-left: 18px;
}

.folder-item.drag-over {
  background: #d2e3fc;
}

.folder-item.unsubscribed {
  opacity: 0.75;
}

.folder-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.folder-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.folder-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.folder-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  color: var(--muted);
}

.folder-item.active .folder-icon svg {
  color: var(--ink);
}

.folder-name {
  font-size: 13px;
  line-height: 20px;
}

.folder-menu {
  position: relative;
}

.folder-menu-trigger {
  width: 28px;
  height: 28px;
  opacity: 0;
}

.folder-item:hover .folder-menu-trigger,
.folder-menu-trigger:focus-visible {
  opacity: 1;
}

.folder-menu-dropdown {
  position: fixed;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
  padding: 6px 0;
  display: none;
  z-index: 20;
}

.folder-menu-dropdown.open {
  display: block;
}

.folder-menu-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font-size: 13px;
  padding: 8px 12px;
  color: var(--ink);
  cursor: pointer;
}

.folder-menu-item:hover {
  background: #eef3fc;
}

.folder-menu-item.danger {
  color: #c5221f;
}

.folder-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.folder-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.folder-item:hover .folder-actions,
.folder-item.active .folder-actions {
  opacity: 1;
  pointer-events: auto;
}

.icon-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}

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

.icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.folder-count {
  min-width: 20px;
  text-align: right;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.folder-footer {
  display: none;
}

.list-pane {
  padding: 0;
}

.list-header {
  display: none;
}

.list-title {
  font-size: 16px;
  font-weight: 600;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  border-bottom: none;
  background: #fff;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 4px;
}

.toolbar-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.toolbar-check input {
  width: 16px;
  height: 16px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  display: inline-grid;
  place-content: center;
}

.toolbar-check input::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.1s ease;
}

.toolbar-check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.toolbar-check input:checked::after {
  transform: rotate(45deg) scale(1);
}

.toolbar-check .caret svg {
  width: 12px;
  height: 12px;
  color: var(--muted);
}

.list-toolbar select {
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
}

.list-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.list-hint svg {
  width: 16px;
  height: 16px;
}

.message-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  background: #fff;
  padding-right: 16px;
}

.message-row {
  display: grid;
  grid-template-columns: 28px 28px 200px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-bottom: 1px solid #e8eaed;
  cursor: pointer;
  background: var(--surface);
  transition: background 0.2s ease;
}

.message-row.no-select {
  grid-template-columns: 28px 200px minmax(0, 1fr) auto;
}

.message-row.unread {
  background: #fff;
}

.message-row:not(.unread) {
  background: #f3f6fc;
}

.message-row:hover {
  background: #e9f1fe;
}

.message-row.active {
  background: #e8f0fe;
  box-shadow: none;
}

.message-row.selected {
  background: #e8f0fe;
}

.message-row.dragging {
  opacity: 0.6;
  background: #e8f0fe;
}

.message-select {
  width: 16px;
  height: 16px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  display: inline-grid;
  place-content: center;
}

.message-select::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.1s ease;
}

.message-select:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.message-select:checked::after {
  transform: rotate(45deg) scale(1);
}

.message-star {
  border: none;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9aa0a6;
}

.message-star svg {
  width: 18px;
  height: 18px;
}

.message-star.active {
  color: #f5a623;
}

.message-star.active svg path {
  fill: currentColor;
}

.message-from {
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-subject {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.subject-text {
  color: var(--ink);
  font-weight: 400;
}

.message-row.unread .message-from,
.message-row.unread .subject-text {
  font-weight: 700;
}

.message-snippet {
  color: var(--muted);
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.folder-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f1f3f4;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.message-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.attachment-icon svg {
  width: 16px;
  height: 16px;
}

.message-date {
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}

.list-footer {
  display: none;
}

.view-pane {
  padding: 0;
}

.message-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.message-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.message-toolbar .icon-button.active {
  color: #f5a623;
}

.message-toolbar .icon-button.active svg path {
  fill: currentColor;
}

.toolbar-spacer {
  flex: 1;
}

.message-header {
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.message-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}

.message-subject-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.message-from-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sender-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8f0fe;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.sender-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.sender-name {
  font-weight: 500;
}

.sender-meta {
  color: var(--muted);
  font-size: 12px;
}

.sender-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.message-header details {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.message-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}

.message-details[open] summary {
  margin-bottom: 6px;
}

.spam-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed #f2c991;
  background: #fff6e6;
  font-size: 12px;
}

.spam-head {
  font-weight: 600;
  margin-bottom: 8px;
}

.spam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  color: var(--muted);
}

.spam-grid .label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.spam-tests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.spam-tests span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffe4bf;
  font-size: 11px;
}

.message-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.message-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  min-height: 0;
}

.message-body pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font);
}

.message-body .remote-banner {
  padding: 10px 12px;
  background: #fff1d9;
  border: 1px solid #f3cfa1;
  border-radius: 10px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.message-body img.remote-blocked {
  opacity: 0.6;
}

.attachments {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attachment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  background: #fff;
}

.message-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.reply-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.reply-button svg {
  width: 16px;
  height: 16px;
}

.reply-button:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.compose-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 560px;
  max-width: calc(100vw - 32px);
  height: clamp(320px, 45vh, 460px);
  min-height: 320px;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.2), 0 1px 3px rgba(60, 64, 67, 0.2);
  border: 1px solid #dadce0;
  display: none;
  flex-direction: column;
  z-index: 20;
}

.compose-panel.open {
  display: flex;
  animation: appIn 0.25s ease;
}

.compose-header {
  padding: 8px 12px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f2f6fc;
}

.compose-title-wrap strong {
  font-size: 14px;
  font-weight: 600;
}

.compose-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.compose-control {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.compose-control svg {
  width: 16px;
  height: 16px;
}

.compose-body {
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
}

.compose-body label {
  margin: 0;
}

.compose-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
}

.compose-label {
  width: 52px;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.compose-row input,
.compose-row select {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 0;
  font-family: var(--font);
  font-size: 13px;
}

.compose-row input:focus,
.compose-row select:focus {
  outline: none;
}

.compose-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compose-link {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
}

.compose-link:hover {
  color: var(--ink);
}

.compose-message {
  padding: 12px;
  flex: 1;
  display: flex;
}

.compose-message textarea {
  width: 100%;
  min-height: 120px;
  border: none;
  background: transparent;
  padding: 0;
  font-family: var(--font);
  font-size: 13px;
  resize: vertical;
  flex: 1;
}

.compose-message textarea:focus {
  outline: none;
}

.compose-footer {
  padding: 10px 12px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
}

.compose-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.compose-footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.compose-send-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.compose-send {
  padding: 8px 16px;
  border-radius: 999px 0 0 999px;
}

.compose-send-caret {
  padding: 8px 6px;
  border-radius: 0 999px 999px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.compose-send-caret svg {
  width: 14px;
  height: 14px;
}

.compose-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.compose-tool {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--muted);
}

.compose-tool svg {
  width: 18px;
  height: 18px;
}

.compose-tool:hover {
  color: var(--ink);
}

.compose-attachments {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 12px;
}

.compose-attachments .btn-ghost {
  border: none;
  padding: 0;
  color: var(--muted);
}

.compose-attachments .btn-ghost:hover {
  background: transparent;
  color: var(--ink);
}

.attachment-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  border: none;
  background: #e6ebf5;
  appearance: none;
  -webkit-appearance: none;
}

.attachment-progress::-webkit-progress-bar {
  background: #e6ebf5;
  border-radius: 999px;
}

.attachment-progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 999px;
}

.attachment-progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 999px;
}

.toast-area {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
}

.toast {
  background: #1f1f1f;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  box-shadow: 0 12px 30px rgba(31, 27, 22, 0.2);
}

.toast.error {
  background: #8f2f2f;
}

.empty-state {
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.hidden {
  display: none;
}

@media (max-width: 1200px) {
  .content {
    grid-template-columns: 56px 240px minmax(0, 1fr);
  }
  .topbar {
    grid-template-columns: 240px minmax(0, 1fr) auto;
  }
  .appbar {
    display: none;
  }
  .view-pane {
    display: none;
  }
  body[data-pane="view"] .view-pane {
    display: flex;
  }
  body[data-pane="view"] .list-pane {
    display: none;
  }
  .chat-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  body[data-app="mail"][data-folders="collapsed"] .content,
  body[data-app="mail"][data-folders="peek"] .content {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  body[data-app="mail"][data-folders="peek"] .folders {
    width: 240px;
  }
}

@media (max-width: 960px) {
  .topbar {
    display: flex;
    flex-wrap: wrap;
  }
  .topbar-left {
    width: 100%;
    justify-content: space-between;
  }
  .topbar-actions {
    margin-left: auto;
  }
  .topbar-search {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-left: 0;
  }
  .folders {
    margin-right: 0;
  }
  .content {
    grid-template-columns: 1fr;
  }
  .app-rail,
  .folders,
  .list-pane,
  .view-pane,
  .chat-pane,
  .meet-pane {
    display: none;
  }
  .appbar {
    display: none;
  }
  body[data-pane="folders"] .folders {
    display: flex;
  }
  body[data-pane="list"] .list-pane {
    display: flex;
  }
  body[data-pane="view"] .view-pane {
    display: flex;
  }
  body[data-app="chat"] .chat-pane {
    display: flex;
  }
  body[data-app="meet"] .meet-pane {
    display: flex;
  }
  .chat-shell {
    padding: 8px;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .chat-sidebar {
    display: none;
  }
  .chat-call-frame {
    inset: 0;
  }
  .chat-call-frame {
    padding: 12px;
  }
  .chat-call-panel {
    width: 100%;
    max-height: 100%;
    border-radius: 14px;
  }
  .chat-call-panel-body {
    padding: 16px;
  }
  .chat-call-panel-footer {
    flex-direction: column;
  }
  .chat-call-control {
    width: 100%;
    justify-content: center;
  }
  .compose-panel {
    right: 8px;
    bottom: 8px;
    height: 88vh;
    width: calc(100% - 16px);
  }
  .message-row {
    grid-template-columns: 28px 1fr auto;
  }
  .message-row.no-select {
    grid-template-columns: 28px 1fr auto;
  }
  .message-select {
    display: none;
  }
  .message-from {
    display: none;
  }
}
