:root {
  --bg: #f7f4f1;
  --surface: #ffffff;
  --surface-muted: #f1f2f4;
  --surface-soft: #e7dfd8;
  --line: #dbd3cb;
  --text: #111111;
  --muted: #7c7480;
  --danger: #ff0000;
  --danger-dark: #5d1700;
  --ok: #0ab870;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", "Roboto", "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

button img {
  pointer-events: none;
  -webkit-user-drag: none;
}

body.chat-opened {
  overflow: hidden;
  overscroll-behavior: none;
}

.app-root {
  min-height: var(--app-vh, 100vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  min-height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  color: #fff;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-menu-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 28px;
  font-weight: 600;
  min-width: 0;
  isolation: isolate;
}

.brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.brand-text {
  position: relative;
  z-index: 2;
  margin-left: 2px;
  line-height: 1;
  white-space: nowrap;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-online {
  background: var(--ok);
}

.dot-offline {
  background: #656565;
}

.card {
  background: var(--surface);
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
}

.auth-shell {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 28px;
  display: grid;
  gap: 18px;
  background: #16181f;
  color: #fff;
}

.auth-copy h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
}

.auth-copy p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.auth-form,
.auth-card label,
.wizard-actions {
  display: grid;
  gap: 10px;
}

.register-step {
  display: grid;
  gap: 14px;
}

.wizard-actions {
  margin-top: 6px;
}

.auth-card input,
.group-title-input,
.picker-search input {
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid #303543;
  background: #0f1218;
  color: #fff;
}

.auth-card button,
.picker-primary {
  min-height: 54px;
  padding: 0 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #ff6d41 0%, #ff4d17 100%);
  color: #fff;
  cursor: pointer;
}

.auth-secondary {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.register-progress {
  display: flex;
  gap: 10px;
}

.register-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.register-dot-active {
  background: #fff;
}

.hint-text {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hint-text.is-ok {
  color: #67ffaa;
}

.hint-text.is-error,
.error-text {
  color: #ff7878;
}

.shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(320px, 390px) 1fr;
  gap: 22px;
  padding: 22px;
  width: 100%;
  max-width: 100vw;
  min-height: calc(var(--app-vh, 100vh) - 56px);
}

.sidebar,
.chat-pane {
  padding: 18px;
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sidebar-top {
  display: grid;
  gap: 16px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 42px;
  font-weight: 500;
}

.plus-btn {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 22px;
  background: var(--surface-muted);
  color: #111;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.search-box,
.picker-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 0 22px;
  border-radius: 34px;
  background: var(--surface-muted);
  color: #8c8d95;
}

.search-box input,
.picker-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: #111;
  min-height: 0;
  padding: 0;
}

.chat-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 6px 0 14px;
  overflow: auto;
  display: grid;
  gap: 14px;
}

.chat-list-empty {
  padding: 30px 18px;
  border-radius: 24px;
  background: var(--surface-muted);
  color: var(--muted);
  text-align: center;
}

.chat-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 34px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 26px;
  border: 1px solid #111;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.chat-item.active {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.chat-item-read {
  background: #fff;
  color: #111;
}

.chat-item-unread {
  background: #111;
  color: #fff;
}

.chat-item-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.12);
  font-size: 22px;
}

.chat-item-avatar-wrap {
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  background: transparent;
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
}

.chat-item-avatar-wrap .chat-item-avatar {
  width: 100%;
  height: 100%;
}

.chat-item-avatar-wrap.has-pulse::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--pulse-ring, conic-gradient(#5b8dff 0% 100%));
  z-index: 0;
}

.chat-item-avatar-wrap.has-pulse .chat-item-avatar {
  position: relative;
  z-index: 1;
  border: 2px solid #fff;
}

.chat-item-unread .chat-item-avatar {
  background: rgba(255, 255, 255, 0.14);
}

.chat-item-main {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 4px;
}

.chat-item-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.chat-item-title {
  font-size: 22px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item-time,
.chat-item-subtitle {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  opacity: 0.7;
}

.chat-item-time {
  margin-left: auto;
}

.chat-item-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-family: "Roboto", sans-serif;
  border: 1px solid rgba(17, 17, 17, 0.22);
  color: #111;
}

.chat-item-kind-chain {
  border-color: #ff8b57;
  color: #8f2f00;
  background: #ffe9dd;
}

.chat-item-kind-group {
  border-color: #89b2ff;
  color: #1f4ea8;
  background: #e9f1ff;
}

.chat-item-kind-personal {
  border-color: #b4b4b4;
  color: #515151;
  background: #f1f1f1;
}

.chat-item-preview-pulse {
  color: #a6380e;
  font-weight: 500;
}

.chat-item-subtitle,
.chat-item-preview {
  overflow-wrap: anywhere;
}

.chat-item-chain {
  border-color: #d76a42;
}

.chat-item-preview {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item-side {
  display: grid;
  justify-items: end;
}

.chat-item-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.chat-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(var(--app-vh, 100vh) - 100px);
  overflow: hidden;
}

.chat-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 122px;
  padding: 18px 20px;
  border-radius: 34px;
  background: #111;
  color: #fff;
  min-width: 0;
}

.chat-pane-head-group {
  cursor: pointer;
}

.chat-pane-head-chain {
  background: linear-gradient(120deg, #1a1d26 0%, #223249 55%, #30476b 100%);
}

.chat-pane-head-empty {
  background: var(--surface-soft);
  color: #111;
}

.chat-persona {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

.chat-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 24px;
}

.chat-pane-head-empty .chat-avatar {
  background: rgba(0, 0, 0, 0.08);
}

.chat-persona-copy {
  min-width: 0;
}

.chat-pane-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-meta {
  margin: 4px 0 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  opacity: 0.72;
}

.round-action {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111;
  cursor: pointer;
}

.round-action-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.round-action:disabled {
  opacity: 0.45;
  cursor: default;
}

.chain-project-panel {
  margin-top: 10px;
  border-radius: 24px;
  border: 1px solid #d8d5d1;
  background: linear-gradient(160deg, #faf4ef 0%, #f5ede5 100%);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.chain-project-main {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.chain-project-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chain-project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #5d1700;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.chain-project-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #bdb3a9;
  color: #4f4841;
  font-size: 11px;
  text-transform: uppercase;
}

.chain-project-summary {
  font-size: 14px;
  color: #2e2923;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chain-project-members {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: #6f675d;
}

.chain-openproject-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #111;
  color: #111;
  background: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
}

.project-pulse {
  margin-top: 8px;
}

.project-pulse-btn {
  width: 100%;
  border: 1px solid #dbc5b8;
  border-radius: 18px;
  background: #fff4ef;
  padding: 12px 14px;
  display: grid;
  gap: 3px;
  text-align: left;
  cursor: pointer;
}

.project-pulse-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8f2f00;
  text-transform: uppercase;
}

.project-pulse-summary {
  font-size: 14px;
  color: #2f2923;
}

.messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 6px;
  padding-bottom: 26px;
  scroll-padding-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.messages-empty {
  margin: auto 0;
  align-self: center;
  color: #656c82;
  font-size: 18px;
}

.message {
  display: flex;
  --swipe-offset: 0px;
}

.message .message-bubble {
  transition: transform 0.18s ease;
  transform: translateX(var(--swipe-offset));
}

.message.is-swiping .message-bubble {
  transition: none;
}

.message-own {
  justify-content: flex-end;
}

.message-peer {
  justify-content: flex-start;
}

.message-system {
  justify-content: center;
}

.system-message-chip {
  max-width: min(88%, 620px);
  border-radius: 12px;
  border: 1px solid #d2c7be;
  background: #f7f2ed;
  color: #2f2a26;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  padding: 8px 12px;
}

.system-call-report {
  width: min(92%, 680px);
  display: grid;
  justify-items: center;
  gap: 8px;
}

.system-call-details {
  width: 100%;
  border: 1px solid #d3c9c0;
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
}

.system-call-details summary {
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #3a332f;
  list-style: none;
  outline: none;
}

.system-call-details summary::-webkit-details-marker {
  display: none;
}

.system-call-summary {
  margin-top: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #282421;
  white-space: pre-wrap;
}

.system-call-source {
  margin-top: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: #5b4f45;
}

.system-call-speakers {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.system-call-speaker-title {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #40362e;
}

.system-call-task-list {
  margin: 4px 0 0 16px;
  padding: 0;
  display: grid;
  gap: 4px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: #403a35;
}

.system-call-dialog {
  margin-top: 10px;
  border-top: 1px dashed #d7cec5;
  padding-top: 8px;
}

.system-call-dialog-title {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #40362e;
}

.system-call-dialog-list {
  margin: 6px 0 0 16px;
  padding: 0;
  max-height: 220px;
  overflow: auto;
  display: grid;
  gap: 4px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: #3a342f;
}

.message-bubble {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  width: fit-content;
  max-width: min(82%, 560px);
  min-width: 132px;
  padding: 13px 10px 11px;
  border-radius: 12px;
  word-break: break-word;
  overflow-wrap: anywhere;
  --author-accent: #88b3ff;
  -webkit-touch-callout: none;
}

.message-own .message-bubble {
  background: #a53010;
  color: #fff;
}

.message-peer .message-bubble {
  background: #111;
  color: #fff;
}

.message-author {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  opacity: 0.92;
  color: var(--author-accent);
}

.message-content {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.message-link {
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}

.message-link-preview {
  margin-top: 8px;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 10px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
}

.message-link-preview-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.message-link-preview-meta {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.78;
}

.attachment {
  display: grid;
  gap: 8px;
}

.attachment-kind {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.76;
}

.attachment-image,
.attachment-video {
  width: min(320px, 100%);
  max-height: 280px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.attachment-audio {
  width: min(320px, 100%);
}

.attachment-audio-wrap {
  position: relative;
  width: min(320px, 100%);
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  padding: 8px 10px;
}

.attachment-audio.is-loading .attachment-audio {
  opacity: 0.45;
}

.attachment-audio-spinner {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: audio-spin 0.8s linear infinite;
}

.attachment-audio-wrap:not(.is-loading) .attachment-audio-spinner {
  display: none;
}

@keyframes audio-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.attachment-name {
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}

.attachment-transcribe-row {
  display: flex;
  align-items: center;
}

.attachment-transcribe-btn {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.attachment-transcribe-btn:disabled {
  opacity: 0.72;
  cursor: progress;
}

.attachment-transcript {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 8px 10px;
}

.attachment-transcript.error {
  border-color: rgba(255, 99, 99, 0.85);
}

.attachment-caption {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.message-meta {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 0.05em;
  opacity: 0.66;
}

.message-delivery {
  font-size: 10px;
  letter-spacing: 0;
}

.message-delivery.delivery-sent {
  opacity: 0.8;
}

.message-delivery.delivery-delivered {
  opacity: 1;
}

.message-form {
  display: grid;
  grid-template-columns: 52px 1fr 60px;
  gap: 10px;
  align-items: center;
  padding-top: 14px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid #ece4dc;
  margin-top: auto;
  background: var(--surface);
  position: relative;
  bottom: auto;
  z-index: 2;
  min-width: 0;
}

.message-form.composer-open input,
.message-form.composer-open .composer-send,
.message-form.composer-open .composer-icon {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.message-form.composer-open .composer-icon {
  background: #f7eee6;
  border-color: #c9b9ac;
}

.composer-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 10px 6px 8px;
  border-top: 1px solid #ece4dc;
  background: var(--surface);
}

.composer-reply-text {
  min-height: 38px;
  border-radius: 12px;
  padding: 8px 12px;
  background: #f3ece4;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: #403b36;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-reply-cancel {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #ece6de;
  cursor: pointer;
}

.message-form > * {
  min-width: 0;
}

.mention-suggestions {
  display: grid;
  gap: 6px;
  margin-top: 0;
  margin-bottom: 8px;
  padding: 0 0 8px;
}

.mention-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #ddd3ca;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.mention-item-name {
  color: var(--text);
}

.mention-item-login {
  color: var(--muted);
  font-size: 13px;
}

.message-form input {
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #d9d0c7;
  border-radius: 16px;
  background: #fff;
  outline: none;
}

.scroll-bottom-btn {
  position: absolute;
  right: 18px;
  bottom: calc(90px + env(safe-area-inset-bottom));
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.message-context-menu {
  position: fixed;
  z-index: 125;
  width: 184px;
  border-radius: 16px;
  border: 1px solid #ddd3ca;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  padding: 6px;
  display: grid;
  gap: 6px;
}

.message-context-btn {
  min-height: 40px;
  border: 1px solid #ebe2d9;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
}

.message-context-btn:hover {
  background: #f8f2ec;
}

.composer-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #ddd3ca;
  background: #fff;
  color: #111;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.composer-send {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: var(--danger-dark);
  color: #fff;
  cursor: pointer;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.34);
}

.picker-sheet,
.apps-sheet {
  width: min(460px, 100%);
  max-width: 100%;
  background: #fff;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.12);
}

.picker-sheet {
  padding: 18px;
  display: grid;
  gap: 14px;
  max-height: min(88dvh, 920px);
  overflow: auto;
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.picker-head h3 {
  margin: 0;
  font-size: 28px;
}

.picker-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--surface-muted);
  cursor: pointer;
}

.picker-selection-hint {
  color: var(--muted);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
}

.group-title-input {
  background: var(--surface-muted);
  color: #111;
  border-color: transparent;
}

.picker-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-height: 48vh;
  overflow: auto;
}

.picker-empty {
  padding: 24px 16px;
  border-radius: 22px;
  background: var(--surface-muted);
  color: var(--muted);
  text-align: center;
}

.picker-user {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: var(--surface-muted);
  cursor: pointer;
  width: 100%;
  min-width: 0;
}

.picker-user > div:nth-child(2) {
  min-width: 0;
}

.group-member-role {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.picker-user.is-selected {
  background: #ffe3dd;
}

.picker-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
}

.picker-user-name {
  font-size: 18px;
}

.picker-user-login {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: var(--muted);
}

.picker-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #e3d8cf;
  background: #fff;
}

.picker-user.is-selected .picker-check {
  border-color: var(--danger);
  background: var(--danger);
  box-shadow: inset 0 0 0 5px #fff;
}

.picker-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

.apps-sheet {
  padding: 14px 14px 18px;
  display: grid;
  gap: 10px;
}

#composerAppsSheet {
  align-items: end;
  justify-items: center;
  background: transparent;
  padding: 0;
  pointer-events: none;
}

#composerAppsSheet .apps-sheet {
  width: min(calc(var(--composer-sheet-width, 420px)), calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 36px;
  background: #5d1700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--composer-sheet-bottom, calc(8px + env(safe-area-inset-bottom)));
  pointer-events: auto;
}

#composerAppsSheet:not(.hidden) .apps-sheet {
  animation: composer-apps-in 0.2s ease-out;
}

@keyframes composer-apps-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.apps-quick-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #111;
  background: #fff;
  color: #111;
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.apps-quick-btn-close {
  color: #f00;
}

.apps-quick-btn-send {
  margin-left: 4px;
  background: #5d1700;
  border-color: #fff;
}

#attachFileBtn {
  display: none !important;
}

.apps-quick-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.apps-sheet-item,
.apps-sheet-close {
  min-height: 56px;
  border-radius: 22px;
  border: 1.5px solid #111;
  background: #fff;
  cursor: pointer;
}

.apps-sheet-close {
  color: var(--danger);
}

.group-details-sheet {
  gap: 16px;
  align-content: start;
}

.group-details-form {
  gap: 8px;
}

.group-details-title-input {
  min-height: 52px;
}

.group-details-block {
  display: grid;
  gap: 10px;
}

.profile-sheet {
  gap: 16px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-muted);
}

.profile-name {
  font-size: 24px;
  font-weight: 500;
}

.profile-login {
  color: var(--muted);
  font-family: "Roboto", sans-serif;
}

.sessions-list {
  display: grid;
  gap: 10px;
}

.session-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface-muted);
}

.session-ua {
  font-size: 14px;
}

.session-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-family: "Roboto", sans-serif;
}

.group-details-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.group-details-placeholder {
  padding: 18px;
  border-radius: 22px;
  background: var(--surface-muted);
  color: var(--muted);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
}

.group-leave-btn {
  margin-top: 4px;
}

.project-card-sheet {
  gap: 14px;
}

.project-card-meta {
  display: grid;
  gap: 8px;
}

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

.project-card-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.project-card-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d7d0ca;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
}

.project-card-state-critical {
  border-color: #ffb2b2;
  color: #a60000;
  background: #fff0f0;
}

.project-card-state-warning {
  border-color: #ffd4ab;
  color: #8e4300;
  background: #fff6ec;
}

.project-card-state-active {
  border-color: #bfe2c9;
  color: #1e6f33;
  background: #eefaf2;
}

.project-card-title {
  font-size: 24px;
  line-height: 1.2;
}

.project-card-block {
  display: grid;
  gap: 8px;
}

.project-card-roles,
.project-card-artifacts {
  display: grid;
  gap: 8px;
}

.project-role-row {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-muted);
}

.project-role-name {
  font-size: 14px;
}

.project-role-login {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.project-artifact-item {
  min-height: 42px;
  border: 1px solid #e0d7cf;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  text-decoration: none;
  color: #111;
  display: flex;
  align-items: center;
}

.project-card-openproject-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.group-materials-list {
  display: grid;
  gap: 10px;
  max-height: min(50dvh, 460px);
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.group-material-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-muted);
  color: var(--text);
  text-decoration: none;
  width: 100%;
  min-width: 0;
}

.message-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.message-action-btn {
  min-width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  opacity: 0.75;
  cursor: pointer;
  font-size: 12px;
}

.message-action-btn:hover {
  opacity: 1;
}

.message-quote {
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  line-height: 1.25;
  white-space: pre-wrap;
}

.message-forwarded {
  font-size: 11px;
  opacity: 0.88;
}

.group-material-preview {
  width: 100%;
  max-height: 160px;
  border-radius: 14px;
  object-fit: cover;
  background: #d8dbe2;
}

.attachment-image-link {
  display: block;
}

.group-material-kind {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

.group-material-name {
  font-size: 15px;
  word-break: break-word;
}

.group-material-time {
  font-size: 12px;
  color: var(--muted);
}

.requests-section {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.requests-title {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pending-requests {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.request-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1.5px solid #111;
  background: #fff4f2;
}

.request-card-title {
  font-size: 18px;
}

.request-card-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-family: "Roboto", sans-serif;
}

.request-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.request-card-actions button {
  min-width: 78px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid #111;
  background: #fff;
  cursor: pointer;
}

.request-accept {
  background: var(--danger) !important;
  color: #fff;
  border-color: var(--danger) !important;
}

.qr-login-sheet,
.qr-scanner-sheet {
  gap: 16px;
}

.qr-code-box {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 26px;
  background: var(--surface-muted);
}

.qr-code-box canvas,
.qr-code-box img {
  display: block;
  max-width: 240px;
  width: 100%;
  height: auto;
}

.qr-scanner-video {
  width: 100%;
  min-height: 280px;
  border-radius: 24px;
  background: #111;
  object-fit: cover;
}

.call-overlay-sheet {
  gap: 18px;
}

.call-overlay-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#callOverlay[data-mode="incoming"],
#callOverlay[data-mode="outgoing"] {
  place-items: center;
  padding: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 46%),
    rgba(0, 0, 0, 0.88);
}

#callOverlay[data-mode="incoming"] .call-overlay-sheet,
#callOverlay[data-mode="outgoing"] .call-overlay-sheet {
  width: min(100%, 520px);
  min-height: 100dvh;
  max-height: none;
  padding: 32px 24px 40px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  background: linear-gradient(180deg, #0f1013 0%, #17191f 100%);
  color: #fff;
  box-shadow: none;
  overflow: hidden;
  position: relative;
}

#callOverlay[data-mode="incoming"] .call-overlay-sheet::before,
#callOverlay[data-mode="outgoing"] .call-overlay-sheet::before {
  content: "";
  position: absolute;
  inset: auto 50% 180px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  filter: blur(18px);
  animation: incoming-call-pulse 1.8s ease-in-out infinite;
}

#callOverlay[data-mode="incoming"] .picker-head,
#callOverlay[data-mode="outgoing"] .picker-head {
  justify-content: center;
}

#callOverlay[data-mode="incoming"] .picker-head h3,
#callOverlay[data-mode="outgoing"] .picker-head h3 {
  font-size: 34px;
  line-height: 1.05;
  text-align: center;
  color: #fff;
}

#callOverlay[data-mode="incoming"] #callOverlaySubtitle,
#callOverlay[data-mode="outgoing"] #callOverlaySubtitle {
  position: relative;
  z-index: 1;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
  font-size: 18px;
  line-height: 1.4;
}

#callOverlay[data-mode="incoming"] .call-overlay-actions,
#callOverlay[data-mode="outgoing"] .call-overlay-actions {
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

#callOverlay[data-mode="incoming"] #acceptCallBtn,
#callOverlay[data-mode="incoming"] #declineCallBtn,
#callOverlay[data-mode="outgoing"] #acceptCallBtn,
#callOverlay[data-mode="outgoing"] #declineCallBtn {
  min-height: 64px;
  border-radius: 22px;
  border: none;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

#callOverlay[data-mode="incoming"] #acceptCallBtn,
#callOverlay[data-mode="outgoing"] #acceptCallBtn {
  background: #111;
  color: #fff;
}

#callOverlay[data-mode="incoming"] #declineCallBtn,
#callOverlay[data-mode="outgoing"] #declineCallBtn {
  background: #f00;
  color: #fff;
}

#callOverlay[data-mode="outgoing"] #acceptCallBtn {
  display: none;
}

#callOverlay[data-mode="outgoing"] .call-overlay-actions {
  grid-template-columns: 1fr;
}

@keyframes incoming-call-pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(0.9);
    opacity: 0.45;
  }

  50% {
    transform: translateX(-50%) scale(1.08);
    opacity: 0.9;
  }
}

.voice-recorder {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 8px;
  align-items: center;
  min-height: 72px;
  margin-top: auto;
  padding: 10px 12px;
  border-top: 1px solid #ece4dc;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  position: sticky;
  bottom: 0;
  background: var(--surface);
  z-index: 3;
}

.call-room-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: #000;
}

.call-room-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.media-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.92);
}

.media-viewer-head {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 8px;
}

.media-viewer-btn {
  min-height: 36px;
  min-width: 96px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#mediaViewerCloseBtn {
  background: #f00;
  color: #fff;
}

#mediaViewerSaveBtn {
  margin-left: auto;
}

.media-viewer-body {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.media-viewer-body img,
.media-viewer-body video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.pulse-preview-popover {
  position: fixed;
  z-index: 130;
  width: min(320px, calc(100vw - 24px));
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(17, 17, 17, 0.95);
  color: #fff;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.pulse-preview-title {
  font-size: 13px;
  font-weight: 600;
}

.pulse-preview-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
}

.pulse-preview-kind {
  min-height: 18px;
  border-radius: 999px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pulse-preview-row-critical .pulse-preview-kind {
  background: #ff4747;
}

.pulse-preview-row-warning .pulse-preview-kind {
  background: #ff9f43;
}

.pulse-preview-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-viewer {
  position: fixed;
  inset: 0;
  z-index: 125;
  background: radial-gradient(circle at 30% 20%, rgba(120, 167, 255, 0.2), transparent 36%), #0f131b;
  color: #fff;
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
}

.pulse-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pulse-viewer-title {
  font-size: 18px;
  line-height: 1.2;
}

.pulse-viewer-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18px, 1fr));
  gap: 6px;
}

.pulse-viewer-segment {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.pulse-viewer-segment.active {
  background: #7cb1ff;
}

.pulse-viewer-segment.critical.active {
  background: #ff4d4d;
}

.pulse-viewer-body {
  min-height: 0;
  display: grid;
  place-items: center;
  user-select: none;
  touch-action: pan-y;
}

.pulse-card {
  width: min(760px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  display: grid;
  gap: 10px;
}

.pulse-card-kind {
  justify-self: start;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.pulse-card-title {
  font-size: clamp(20px, 3.4vw, 40px);
  line-height: 1.15;
}

.pulse-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.74);
}

.pulse-card-critical {
  border-color: rgba(255, 95, 95, 0.45);
}

.pulse-card-warning {
  border-color: rgba(255, 183, 97, 0.45);
}

.pulse-viewer-empty {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
}

.pulse-viewer-hint {
  justify-self: center;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.voice-recorder-center {
  min-width: 0;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid #111;
  background: #d8ee76;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.voice-recorder-side {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.voice-recorder-mic {
  color: #ff2d2d;
}

.voice-recorder-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.voice-recorder-wave {
  display: none;
  height: 18px;
  flex: 1;
  min-width: 40px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(17,17,17,.18) 12%, transparent 24%, rgba(17,17,17,.25) 36%, transparent 48%, rgba(17,17,17,.2) 60%, transparent 72%, rgba(17,17,17,.16) 84%, transparent 100%);
  background-size: 120px 100%;
}

.voice-recorder.is-recording .voice-recorder-wave,
.voice-recorder.is-uploading .voice-recorder-wave {
  display: block;
  animation: voice-wave 1.2s linear infinite;
}

.voice-recorder.is-uploading .voice-recorder-center {
  background: #d8ee76;
}

@keyframes voice-wave {
  from { background-position: 0 0; }
  to { background-position: 120px 0; }
}

.mobile-only {
  display: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 820px) {
  body.chat-opened .topbar {
    display: none;
  }

  body.chat-opened .topbar-menu-btn {
    display: none;
  }

  .shell {
    display: block;
    padding: 12px;
    min-height: calc(var(--app-vh, 100vh) - 56px);
  }

  .sidebar {
    min-height: calc(var(--app-vh, 100vh) - 92px);
  }

  .chat-pane {
    display: none;
    min-height: calc(var(--app-vh, 100vh) - 92px);
    height: calc(var(--app-vh, 100vh) - 92px);
  }

  body.chat-opened .sidebar {
    display: none;
  }

  body.chat-opened .chat-pane {
    display: flex;
    min-height: calc(var(--app-vh, 100vh) - 24px);
    height: calc(var(--app-vh, 100vh) - 24px);
  }

  .mobile-only {
    display: grid;
  }

  .chat-pane-head {
    min-height: 60px;
    padding: 6px 12px;
    border-radius: 24px;
  }

  .chat-pane-head h2 {
    font-size: 17px;
  }

  .chat-meta {
    font-size: 12px;
  }

  .chat-avatar,
  .round-action {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .chain-project-panel {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .chain-project-summary {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .chain-openproject-link {
    width: 100%;
    min-height: 34px;
  }

  .project-pulse-btn {
    padding: 10px 12px;
  }

  .chat-item-kind {
    display: none;
  }

  .pulse-viewer {
    padding: 12px;
    gap: 10px;
  }

  .pulse-viewer-title {
    font-size: 16px;
  }

  .pulse-card {
    border-radius: 18px;
    padding: 14px;
  }

  .pulse-viewer-hint {
    font-size: 11px;
    text-align: center;
  }

  .message-form {
    grid-template-columns: 48px minmax(0, 1fr) 56px;
    gap: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .message-form input {
    min-height: 50px;
  }

  .composer-icon {
    width: 48px;
    height: 48px;
  }

  .composer-send {
    width: 56px;
    height: 56px;
  }

  .scroll-bottom-btn {
    right: 16px;
    bottom: calc(92px + env(safe-area-inset-bottom));
  }

  #composerAppsSheet {
    padding: 0;
  }

  #composerAppsSheet .apps-sheet {
    gap: 8px;
    padding: 8px;
    max-width: calc(100vw - 16px);
  }

  .apps-quick-btn {
    width: 46px;
    height: 46px;
  }

  .apps-quick-icon {
    width: 24px;
    height: 24px;
  }

  .topbar {
    min-height: 50px;
    padding: 0 12px;
  }

  .brand {
    gap: 10px;
    font-size: 24px;
  }

  .brand-logo {
    width: 22px;
    height: 22px;
  }
}
