:root {
  --pine-yellow: #f3c33a;
  --pine-gold: #c88b1d;
  --pine-brown: #563819;
  --pine-ink: #25180d;
  --pine-muted: #806b58;
  --pine-line: #eadbc5;
  --pine-bg: #fff9ec;
  --pine-panel: #ffffff;
  --pine-soft: #fff1c9;
  --pine-soft-2: #f8ecd9;
  --pine-hover: #fffaf0;
  --danger: #b63d2f;
  --ok: #4b7a39;
  --shadow-soft: 0 10px 28px rgba(86, 56, 25, 0.08);
  --shadow-pop: 0 22px 70px rgba(86, 56, 25, 0.22);
  --radius: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #d9bd87 transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: #d9bd87;
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  font-size: 15px;
  color: var(--pine-ink);
  background:
    linear-gradient(180deg, rgba(243, 195, 58, 0.16), transparent 260px),
    linear-gradient(90deg, rgba(86, 56, 25, 0.035), transparent 42%),
    var(--pine-bg);
}

body {
  height: var(--pine-app-height, 100dvh);
}

body.keyboard-open .shell {
  height: var(--pine-app-height, 100dvh);
  max-height: var(--pine-app-height, 100dvh);
}

html,
body,
#app {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(243, 195, 58, 0.32);
  outline-offset: 2px;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.app {
  height: var(--pine-app-height, 100dvh);
  min-height: var(--pine-app-height, 100dvh);
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 16px;
}

.shell {
  width: 100vw;
  height: var(--pine-app-height, 100dvh);
  max-height: var(--pine-app-height, 100dvh);
  background: #fffdf8;
  border: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.auth {
  width: min(440px, calc(100vw - 28px));
  background: var(--pine-panel);
  border: 1px solid var(--pine-line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-pop);
}

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

.logo {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffd75c, var(--pine-yellow));
  color: var(--pine-brown);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(200, 139, 29, 0.25);
}

.brand h1,
.page-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.muted {
  color: var(--pine-muted);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: var(--pine-soft-2);
  border-radius: var(--radius);
  margin-bottom: 18px;
  border: 1px solid rgba(234, 219, 197, 0.7);
}

.tabs button,
.nav button {
  color: var(--pine-muted);
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 750;
}

.tabs button.active,
.nav button.active {
  color: var(--pine-brown);
  background: #fff;
  box-shadow: 0 4px 14px rgba(86, 56, 25, 0.1);
}

.tabs button:hover,
.nav button:hover,
.secondary:hover,
.ghost:hover,
.icon-btn:hover {
  background: #fff7df;
  border-color: #e3c898;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field span {
  color: var(--pine-muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--pine-line);
  background: #fff;
  color: var(--pine-ink);
  border-radius: var(--radius);
  min-height: 36px;
  padding: 8px 11px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 88px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--pine-gold);
  box-shadow: 0 0 0 3px rgba(244, 197, 66, 0.22);
}

input::placeholder,
textarea::placeholder {
  color: #a89582;
}

.password-wrap {
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: center;
  border: 1px solid var(--pine-line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.password-wrap:focus-within {
  border-color: var(--pine-gold);
  box-shadow: 0 0 0 3px rgba(244, 197, 66, 0.22);
}

.password-wrap input {
  border: 0;
  box-shadow: none;
  color: var(--pine-ink);
  font-size: 15px;
}

.password-wrap button {
  width: 38px;
  height: 100%;
  background: #fff8e6;
  color: var(--pine-brown);
  border-left: 1px solid var(--pine-line);
  font-weight: 900;
}

.username-wrap {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  border: 1px solid var(--pine-line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.username-wrap:focus-within {
  border-color: var(--pine-gold);
  box-shadow: 0 0 0 3px rgba(244, 197, 66, 0.22);
}

.username-prefix {
  height: 100%;
  display: grid;
  place-items: center;
  background: #fff8e6;
  color: var(--pine-brown);
  border-right: 1px solid var(--pine-line);
  font-weight: 900;
}

.username-wrap input {
  border: 0;
  box-shadow: none;
}

.primary {
  width: 100%;
  min-height: 40px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffd75d, var(--pine-yellow));
  color: var(--pine-brown);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(200, 139, 29, 0.18);
}

.primary:hover {
  background: linear-gradient(180deg, #ffe077, #efbd32);
  transform: translateY(-1px);
}

.secondary,
.icon-btn,
.chip,
.ghost {
  min-height: 34px;
  border-radius: var(--radius);
  background: #fff6e3;
  color: var(--pine-brown);
  border: 1px solid var(--pine-line);
}

.secondary {
  padding: 7px 10px;
}

.ghost {
  background: transparent;
  padding: 6px 9px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-weight: 800;
  line-height: 1;
}

.icon-btn:hover {
  transform: translateY(-1px);
}

.danger {
  background: #fff0ed;
  color: var(--danger);
  border-color: #efc8c1;
}

.link-btn {
  background: transparent;
  color: var(--pine-brown);
  text-decoration: underline;
  padding: 10px 0 0;
  text-underline-offset: 3px;
}

.auth-status {
  min-height: 20px;
  margin-top: 8px;
  color: var(--danger);
  font-size: 13px;
}

.main {
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.76), rgba(255, 255, 255, 0.64)),
    #fffdf8;
}

.page {
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.page > * {
  width: min(1180px, 100%);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.chat-view > * {
  max-width: none;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 2px;
}

.topbar .grow {
  flex: 1;
}

.search {
  margin-bottom: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(86, 56, 25, 0.03);
  display: block;
  width: min(1180px, 100%);
}

.chat-list,
.stack {
  display: grid;
  gap: 8px;
}

.chat-list {
  padding-bottom: 12px;
}

.user-results {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pine-line);
}

.contact-picker {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding: 2px;
}

.contact-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--pine-line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.contact-option:hover {
  background: var(--pine-hover);
  border-color: #e3c898;
}

.contact-option input {
  width: 18px;
  min-height: 18px;
}

.contact-option small {
  display: block;
  color: var(--pine-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-picker {
  padding: 12px;
  border: 1px dashed var(--pine-line);
  border-radius: var(--radius);
  color: var(--pine-muted);
  background: #fffaf0;
}

.chat-row,
.item-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--pine-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 0 rgba(86, 56, 25, 0.025);
}

.chat-row:hover,
.item-row:hover {
  background: var(--pine-hover);
  border-color: #e3c898;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff5d6, var(--pine-soft));
  color: var(--pine-brown);
  font-weight: 900;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.titleline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  min-width: 0;
}

.verify {
  color: var(--pine-gold);
  font-size: 14px;
}

.subtitle {
  color: var(--pine-muted);
  font-size: 13px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(68vw, 680px);
}

.nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-top: 1px solid rgba(234, 219, 197, 0.85);
  padding: 8px 8px max(12px, calc(8px + env(safe-area-inset-bottom, 0px)));
  background: rgba(255, 250, 241, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 24px rgba(86, 56, 25, 0.05);
  position: relative;
  z-index: 5;
}

.nav.admin {
  grid-template-columns: 1fr 1fr 1fr;
}

.chat-view {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.chat-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(234, 219, 197, 0.85);
  background: rgba(255, 250, 241, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(86, 56, 25, 0.04);
}

.settings-btn {
  background: #fff6e3;
}

.chat-extras {
  display: grid;
  gap: 0;
  background: rgba(255, 250, 241, 0.96);
}

.chat-extras:empty {
  display: none;
}

.chat-extras .search {
  margin: 8px auto;
}

.pinned-bar {
  border-bottom: 1px solid rgba(234, 219, 197, 0.85);
  background: #fff8e6;
}

.pinned-bar button {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 9px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  background: transparent;
  color: var(--pine-brown);
}

.messages {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 249, 236, 0.82), rgba(255, 255, 255, 0.72));
}

.message {
  width: fit-content;
  max-width: min(820px, 86%);
  padding: 11px 13px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--pine-line);
  box-shadow: 0 5px 16px rgba(86, 56, 25, 0.06);
  font-size: 16px;
  line-height: 1.45;
}

.message.highlight {
  box-shadow: 0 0 0 3px rgba(243, 195, 58, 0.34), 0 8px 22px rgba(86, 56, 25, 0.12);
}

.message.me {
  align-self: flex-end;
  background: #fff1c7;
  border-color: #ecc979;
}

.message.deleted {
  opacity: 0.58;
  font-style: italic;
}

.message .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pine-muted);
  font-size: 13px;
  margin-bottom: 5px;
}

.sender-link {
  padding: 0;
  background: transparent;
  color: var(--pine-brown);
  font-weight: 900;
}

.sender-link:hover {
  text-decoration: underline;
}

.message .body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #2f2116;
}

.reply-preview {
  width: 100%;
  display: grid;
  gap: 2px;
  margin: 4px 0 7px;
  padding: 7px 9px;
  border-left: 3px solid var(--pine-gold);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
  color: var(--pine-brown);
  text-align: left;
}

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

.attachment {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.attachment img,
.attachment video {
  max-width: 460px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--pine-line);
  background: #fff;
}

.hidden-file-input {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-status {
  position: fixed;
  left: 50%;
  bottom: 72px;
  z-index: 35;
  transform: translateX(-50%);
  max-width: min(420px, calc(100vw - 28px));
  padding: 10px 14px;
  border: 1px solid var(--pine-line);
  border-radius: var(--radius);
  background: #fff8e6;
  color: var(--pine-brown);
  box-shadow: 0 14px 38px rgba(92, 59, 30, 0.18);
  font-weight: 700;
}

.upload-status.error {
  background: #fff0ed;
  color: var(--danger);
}

.composer {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 8px;
  align-items: end;
  padding: 10px 10px max(14px, calc(10px + env(safe-area-inset-bottom, 0px)));
  border-top: 1px solid rgba(234, 219, 197, 0.85);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 24px rgba(86, 56, 25, 0.04);
  position: relative;
  z-index: 5;
}

.composer-readonly {
  padding: 12px 14px max(16px, calc(12px + env(safe-area-inset-bottom, 0px)));
  border-top: 1px solid rgba(234, 219, 197, 0.85);
  background: rgba(255, 250, 241, 0.96);
  color: var(--pine-muted);
  text-align: center;
  font-weight: 750;
  position: relative;
  z-index: 5;
}

.voice-btn.recording {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(182, 61, 47, 0.16);
}

.composer textarea {
  min-height: 38px;
  max-height: 120px;
  background: #fffaf0;
}

.reply-bar {
  grid-column: 1 / -1;
  display: none;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--pine-soft);
  color: var(--pine-brown);
  font-size: 13px;
}

.reply-bar.active {
  display: flex;
}

.popover,
.modal {
  position: fixed;
  z-index: 20;
}

.popover {
  right: 18px;
  bottom: 76px;
  display: grid;
  gap: 7px;
  min-width: 210px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--pine-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  animation: popIn 120ms ease;
}

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

.emoji-grid {
  grid-template-columns: repeat(8, 34px);
}

.emoji-grid button {
  width: 34px;
  height: 34px;
  background: transparent;
  border-radius: 8px;
  font-size: 20px;
}

.modal {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(35, 23, 15, 0.38);
  backdrop-filter: blur(4px);
}

.dialog {
  width: min(560px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--pine-line);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-pop);
  animation: dialogIn 140ms ease;
}

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

.dialog h2,
.section h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.avatar-cropper {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.crop-box {
  width: min(288px, calc(100vw - 72px));
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #25180d;
  cursor: grab;
  touch-action: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85), 0 12px 34px rgba(86, 56, 25, 0.22);
}

.crop-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(243, 195, 58, 0.95);
  border-radius: 14px;
  pointer-events: none;
}

.crop-box:active {
  cursor: grabbing;
}

.crop-box img {
  position: absolute;
  left: 50%;
  top: 50%;
  user-select: none;
  pointer-events: none;
  max-width: none;
  transform-origin: center;
}

.avatar-cropper .field {
  width: min(288px, calc(100vw - 72px));
}

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

.section {
  border: 1px solid var(--pine-line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.profile-card .avatar {
  width: 58px;
  height: 58px;
}

.profile-card h3 {
  margin: 0;
  font-size: 20px;
}

.profile-fields {
  display: grid;
  gap: 8px;
}

.profile-fields div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--pine-line);
  border-radius: var(--radius);
  background: #fffaf0;
}

.profile-fields span {
  color: var(--pine-muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-fields b {
  overflow-wrap: anywhere;
}

.privacy-box {
  display: grid;
  gap: 9px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--pine-line);
  border-radius: var(--radius);
  background: #fffaf0;
}

.privacy-box h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.privacy-box label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pine-brown);
  font-weight: 700;
}

.privacy-box input {
  width: 18px;
  min-height: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.call {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #1d130c;
  color: #fff;
}

.call-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 14px;
  align-content: center;
}

.tile {
  min-height: 180px;
  border-radius: 8px;
  background: #3a281b;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
}

.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.22);
}

.call-controls button {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.call-controls .hang {
  background: var(--danger);
}

.hidden {
  display: none !important;
}

@media (min-width: 900px) {
  .shell {
    border-radius: 0;
  }

  .page {
    padding-inline: 18px;
  }
}

@media (max-width: 1024px) {
  .page {
    padding: 12px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .message {
    max-width: 88%;
  }

  .attachment img,
  .attachment video {
    max-width: 420px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  .shell {
    height: var(--pine-app-height, 100dvh);
    max-height: var(--pine-app-height, 100dvh);
    border: 0;
  }

  .page {
    padding: 10px;
  }

  .brand h1,
  .page-title {
    font-size: 21px;
  }

  input,
  textarea,
  select {
    min-height: 40px;
  }

  .nav button {
    padding: 7px 8px;
    min-height: 48px;
  }

  .chat-row,
  .item-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .chat-row > .muted,
  .item-row > .muted {
    display: none;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .chat-head {
    grid-template-columns: auto 1fr auto auto;
  }

  .chat-head .optional {
    display: none;
  }

  .message {
    max-width: 94%;
    padding: 10px 12px;
    font-size: 16px;
  }

  .attachment img,
  .attachment video {
    max-width: 100%;
  }

  .composer {
    grid-template-columns: auto 1fr auto auto auto;
    gap: 6px;
    padding: 8px 8px max(18px, calc(8px + env(safe-area-inset-bottom, 0px)));
  }

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

  .composer textarea {
    min-height: 40px;
  }

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

  .dialog {
    width: 100%;
    max-height: 88vh;
  }
}

@media (max-width: 420px) {
  .auth {
    padding: 20px;
  }

  .topbar {
    gap: 8px;
  }

  .avatar {
    width: 36px;
    height: 36px;
  }

  .chat-head {
    gap: 6px;
    padding-inline: 7px;
  }

  .composer {
    grid-template-columns: 40px minmax(0, 1fr) 40px 40px 40px;
  }

  .popover {
    left: 10px !important;
    right: 10px !important;
    width: auto;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
