.content-view {
  height: 100%;
  overflow: auto;
  background: var(--surface);
}

.content-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
}

.content-header h2,
.content-header p {
  margin: 0;
}

.content-header h2 { font-size: calc(18px + var(--font-size-delta)); }
.content-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: calc(12px + var(--font-size-delta));
}

.content-body {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.settings-section,
.admin-section,
.profile-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

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

.release-publisher-grid .admin-section {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.release-form textarea {
  resize: vertical;
  min-height: 92px;
}

.release-upload-status,
.client-update-status,
.client-update-notes p {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
}

.release-row.active { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.release-sha {
  overflow-wrap: anywhere;
  color: var(--muted);
}
.release-notes {
  margin: 7px 0 0;
  white-space: pre-wrap;
}
.release-row .member-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.client-update-panel {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.client-update-metadata,
.client-update-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.client-update-metadata {
  color: var(--muted);
  font-size: calc(12px + var(--font-size-delta));
}

.client-update-notes {
  display: grid;
  gap: 6px;
}

@media (max-width: 720px) {
  .message-swipe-reply { display: grid; }
  .release-publisher-grid { grid-template-columns: 1fr; }
  .release-row { align-items: flex-start; }
  .release-row .member-actions { width: 100%; justify-content: flex-start; }
}

.settings-section:first-child,
.admin-section:first-child,
.profile-section:first-child {
  padding-top: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}

.group-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.group-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
}

.group-identity .avatar {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  font-size: calc(20px + var(--font-size-delta));
}

.group-identity .avatar.clickable { cursor: pointer; }
.group-identity h3,
.group-identity p { margin: 0; }
.group-identity h3 { font-size: calc(17px + var(--font-size-delta)); }
.group-identity p { margin-top: 6px; color: var(--muted); font-size: calc(11px + var(--font-size-delta)); }

.drawer-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 12px -2px 0;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.drawer-tab {
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: calc(11px + var(--font-size-delta));
}

.drawer-tab.active {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.group-shared-panel {
  min-height: 260px;
}

.shared-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.shared-media-item {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 0;
  background: var(--bg);
  cursor: zoom-in;
}

.shared-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shared-media-item span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: calc(9px + var(--font-size-delta));
}

.shared-media-item.media-blocked {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--muted);
}

.shared-media-item.media-blocked > .lucide { width: 25px; height: 25px; color: var(--accent-strong); }
.shared-media-placeholder-label { font-size: calc(10px + var(--font-size-delta)); font-weight: 600; }

.shared-list {
  display: grid;
  margin-top: 12px;
}

.shared-row {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 2px;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.shared-row:hover {
  background: rgba(255, 255, 255, .025);
}

.shared-link strong {
  overflow-wrap: anywhere;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 8px;
}

.member-grid-item {
  border: 0;
  padding: 4px 2px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.member-grid-item:hover,
.member-grid-item:focus-visible { background: rgba(255, 255, 255, .045); }

.member-grid-item .avatar { width: 42px; height: 42px; }
.member-grid-item > span {
  width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: calc(10px + var(--font-size-delta));
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-grid-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.member-grid-name .identity-tag { flex: 0 0 auto; }

.compact-member-list { margin-top: 18px; }
.setting-rows { display: grid; gap: 0; }
.setting-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.setting-detail {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: calc(11px + var(--font-size-delta));
  line-height: 1.6;
}

.appearance-setting-block {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.appearance-setting-block > strong {
  font-size: calc(12px + var(--font-size-delta));
}

.font-size-options {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
}

.appearance-bold-row { padding: 3px 0; }

.appearance-reading-row {
  min-height: 62px;
  gap: 16px;
  padding: 7px 0;
}

.appearance-reading-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.appearance-reading-copy strong {
  color: var(--text);
  font-size: calc(12px + var(--font-size-delta));
}

.appearance-reading-copy small {
  color: var(--muted);
  font-size: calc(10px + var(--font-size-delta));
  line-height: 1.5;
}

.font-family-setting {
  border-bottom: 0;
  padding-bottom: 0;
}

.custom-font-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.font-preview {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.font-preview span { color: var(--muted); font-size: calc(10px + var(--font-size-delta)); }
.font-preview strong { font-size: calc(15px + var(--font-size-delta)); }

.toggle-button {
  width: 36px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 22px;
}
.toggle-button.enabled { color: var(--accent); }
.drawer-danger { display: grid; gap: 10px; }

.notification-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.notification-row > .avatar { width: 42px; height: 42px; flex-basis: 42px; }

.file-manager-modal { width: min(920px, 100%); }
.file-manager { min-height: 430px; }
.file-toolbar {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) minmax(180px, 300px);
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.file-toolbar input { min-height: 38px; }
.file-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}
.group-file-list { display: grid; }
.group-file-row {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text);
  text-align: left;
}
button.group-file-row { cursor: pointer; }
.group-file-row:hover { background: var(--surface-2); }
.file-kind {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #3d4850;
  color: #d7e4e8;
  font-size: calc(12px + var(--font-size-delta));
  font-weight: 750;
}
.folder-kind { background: #275d66; color: #bfeff3; font-size: calc(18px + var(--font-size-delta)); }
.file-copy { min-width: 0; }
.file-copy strong,
.file-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-copy strong { font-size: calc(13px + var(--font-size-delta)); }
.file-copy small { margin-top: 5px; color: var(--muted); font-size: calc(11px + var(--font-size-delta)); }
.file-chevron { color: var(--muted); font-size: calc(20px + var(--font-size-delta)); }
.inline-create-folder {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.section-heading h3,
.section-heading p {
  margin: 0;
}

.section-heading h3 {
  font-size: calc(15px + var(--font-size-delta));
}

.section-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: calc(12px + var(--font-size-delta));
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.inline-form.password-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.app-shell.deletion-mode {
  grid-template-columns: 72px minmax(0, 1fr);
}

.app-shell.terms-mode {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.app-shell.terms-mode > .rail,
.app-shell.terms-mode > .sidebar { display: none; }
.app-shell.terms-mode > .workspace { grid-row: 1; grid-column: 1; }

.profile-editor {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.profile-editor .avatar {
  width: 82px;
  height: 82px;
  font-size: calc(24px + var(--font-size-delta));
  cursor: pointer;
}

.profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 12px;
}

.profile-fields .signature-field {
  grid-column: 1 / -1;
}

.profile-signature {
  margin: 10px auto 0 !important;
  max-width: 320px;
  color: var(--muted);
  font-size: calc(13px + var(--font-size-delta));
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(13px + var(--font-size-delta));
}

.data-table th,
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: calc(11px + var(--font-size-delta));
  font-weight: 650;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.admin-last-login,
.admin-deletion-deadline {
  display: grid;
  min-width: 132px;
  gap: 2px;
}

.admin-last-login strong { font-size: calc(12px + var(--font-size-delta)); }
.admin-last-login small,
.admin-deletion-deadline {
  margin-top: 3px;
  color: var(--faint);
  font-size: calc(10px + var(--font-size-delta));
  line-height: 1.45;
}

.admin-delete-user-button { color: #db918c; }

.password-reset-network {
  display: grid;
  min-width: 230px;
  gap: 4px;
}

.password-reset-network-current,
.password-reset-network-match,
.password-reset-network-history {
  color: var(--muted);
  font-size: calc(11px + var(--font-size-delta));
  line-height: 1.45;
}

.password-reset-network-history summary {
  width: max-content;
  cursor: pointer;
  color: var(--accent-strong);
}

.password-reset-network-history > div {
  margin-top: 3px;
  white-space: nowrap;
}

.password-reset-network-status.usual::before { background: var(--green); }
.password-reset-network-status.seen::before { background: var(--yellow); }
.password-reset-network-status.new::before { background: var(--red); }

.bot-create-form {
  grid-template-columns: minmax(150px, .7fr) minmax(260px, 1.3fr) auto;
}

.bot-config-grid {
  display: grid;
  gap: 12px;
}

.bot-config-grid input {
  font-family: Consolas, monospace;
}

.bot-group-list {
  max-height: min(55vh, 520px);
  overflow-y: auto;
}

.bot-actions {
  min-width: 250px;
  flex-wrap: wrap;
}

.bot-account-cell,
.bot-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bot-avatar-button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.bot-avatar-button > .avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.bot-avatar-button:hover > .avatar { box-shadow: 0 0 0 2px var(--accent); }

.member-profile-modal { width: min(390px, calc(100% - 24px)); }
.member-profile-modal .modal-body { padding: 0; }

.member-profile-card {
  overflow: hidden;
  background: var(--surface-2);
}

.member-profile-hero {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #242a32 center / cover no-repeat;
}

.member-profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 11, 16, .08) 22%, rgba(9, 11, 16, .86) 100%);
}

.member-profile-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 34px 24px 24px;
  color: #fff;
  text-align: center;
}

.member-profile-hero-content > .avatar {
  width: 82px;
  height: 82px;
  margin: 0 auto 13px;
  border: 3px solid rgba(255, 255, 255, .72);
  font-size: calc(24px + var(--font-size-delta));
}

.member-profile-hero-content h3,
.member-profile-hero-content p { margin: 0; }
.member-profile-hero-content h3 { font-size: calc(20px + var(--font-size-delta)); }
.member-profile-hero-content .account-number,
.member-group-nickname { margin-top: 6px; color: rgba(255, 255, 255, .72); font-size: calc(11px + var(--font-size-delta)); }
.member-profile-hero-content .profile-signature { margin-top: 12px; color: rgba(255, 255, 255, .85); font-size: calc(12px + var(--font-size-delta)); }

.member-profile-details {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: calc(10px + var(--font-size-delta));
}

.member-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: calc(12px + var(--font-size-delta));
}

.status-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
}

.status-label.active::before,
.status-label.online::before { background: var(--green); }
.status-label.banned::before,
.status-label.dnd::before { background: var(--red); }
.status-label.busy::before { background: var(--yellow); }

.profile-card {
  width: min(430px, 100%);
  margin: 38px auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  text-align: center;
}

.profile-card .avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 15px;
  font-size: calc(26px + var(--font-size-delta));
}

.profile-card h2,
.profile-card p {
  margin: 0;
}

.profile-card .account-number {
  margin-top: 6px;
  color: var(--muted);
  font-size: calc(13px + var(--font-size-delta));
}

.profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 24px -26px -26px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.profile-details div {
  padding: 15px;
  background: var(--surface-2);
}

.profile-details span,
.profile-details strong {
  display: block;
}

.profile-details span {
  margin-bottom: 5px;
  color: var(--faint);
  font-size: calc(11px + var(--font-size-delta));
}

.profile-details strong {
  font-size: calc(13px + var(--font-size-delta));
}

.empty-list {
  padding: 28px 12px;
  color: var(--faint);
  font-size: calc(12px + var(--font-size-delta));
  text-align: center;
}

.request-actions {
  display: flex;
  gap: 4px;
}

.request-actions button {
  min-height: 28px;
  border: 0;
  border-radius: 4px;
  padding: 0 8px;
  background: var(--surface-3);
  color: var(--muted);
  cursor: pointer;
  font-size: calc(11px + var(--font-size-delta));
}

.request-actions .accept {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 22px;
  background: rgba(7, 9, 11, .76);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(7, 9, 11, .48);
}

.side-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: drawer-in .18s ease-out;
}

.drawer-body {
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
}

@keyframes drawer-in {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.modal {
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal.wide { width: min(720px, 100%); }

.modal-header {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: calc(16px + var(--font-size-delta));
}

.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
}

.native-share-picker {
  display: grid;
  gap: 12px;
}

.native-share-summary,
.native-share-empty {
  margin: 0;
  color: var(--muted);
  font-size: calc(13px + var(--font-size-delta));
}

.native-share-search {
  width: 100%;
}

.native-share-list {
  max-height: min(430px, 52vh);
  display: grid;
  gap: 3px;
  overflow-y: auto;
}

.native-share-conversation {
  width: 100%;
  min-height: 62px;
  border-radius: 5px;
}

.native-share-conversation > svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.native-share-empty {
  padding: 30px 12px;
  text-align: center;
}

.member-list,
.check-list,
.device-list {
  display: grid;
  gap: 6px;
}

.member-row,
.check-row,
.device-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.member-row .avatar,
.check-row .avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.member-copy,
.device-copy {
  min-width: 0;
  flex: 1;
}

.member-copy strong,
.member-copy span,
.device-copy strong,
.device-copy span {
  display: block;
}

.member-copy span,
.device-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: calc(11px + var(--font-size-delta));
}

.member-actions {
  display: flex;
  gap: 4px;
}

.member-actions button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: calc(11px + var(--font-size-delta));
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.crop-stage {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  overflow: hidden;
  background: var(--bg);
  cursor: grab;
  touch-action: none;
}

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

.crop-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.crop-guide {
  position: absolute;
  inset: 7%;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  box-shadow: 0 0 0 200px rgba(0, 0, 0, .46);
  pointer-events: none;
}

.crop-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.crop-controls input {
  min-height: auto;
  padding: 0;
  accent-color: var(--accent);
}

.image-preview {
  max-width: 100%;
  max-height: 58vh;
  display: block;
  margin: 0 auto 15px;
  border-radius: 6px;
  object-fit: contain;
}

.lightbox-image {
  max-width: min(1100px, 94vw);
  max-height: 94vh;
  display: block;
  object-fit: contain;
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lightbox-shell {
  position: relative;
  width: min(1180px, 96vw);
  height: min(94vh, 920px);
  max-width: 96vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-stage {
  position: relative;
  width: 100%;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: none;
}

.lightbox-track {
  position: absolute;
  inset: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.lightbox-track.is-animating {
  transition: transform 210ms cubic-bezier(.22, .72, .24, 1);
}

.lightbox-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
  backface-visibility: hidden;
}

.lightbox-slide.previous { transform: translate3d(-100%, 0, 0); }
.lightbox-slide.next { transform: translate3d(100%, 0, 0); }
.lightbox-slide.current { pointer-events: auto; }
.lightbox-slide.is-empty { visibility: hidden; }

.lightbox-stage.zoomed { cursor: grab; }
.lightbox-stage.zoomed:active { cursor: grabbing; }

@media (prefers-reduced-motion: reduce) {
  .lightbox-track.is-animating { transition-duration: 1ms; }
}

.lightbox-nav-button {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(20, 24, 30, .78);
  color: #eef2f5;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.lightbox-nav-button.previous { left: 12px; }
.lightbox-nav-button.next { right: 12px; }
.lightbox-nav-button svg { width: 24px; height: 24px; }
.lightbox-nav-button:disabled { opacity: .28; cursor: default; }

.lightbox-original-button {
  position: absolute;
  left: 14px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 6;
  min-height: 42px;
  max-width: calc(100% - 28px);
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 21px;
  background: rgba(35, 38, 43, .82);
  color: #f7f8fa;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: calc(13px + var(--font-size-delta));
  cursor: pointer;
}

.lightbox-original-button:disabled {
  opacity: .7;
  cursor: wait;
}

.lightbox-zoom-label {
  min-width: 48px;
  align-self: center;
  color: var(--muted);
  font-size: calc(11px + var(--font-size-delta));
  text-align: center;
}

.image-context-menu {
  position: absolute;
  z-index: 6;
  width: 168px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid #3c444e;
  border-radius: 7px;
  background: #20252c;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .48);
}

.image-context-action {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 5px;
  padding: 0 9px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: calc(12px + var(--font-size-delta));
  text-align: left;
}

.image-context-action:hover { background: #2a3038; }
.image-context-action .lucide { width: 16px; height: 16px; }

.history-drawer { width: min(460px, 100vw); }
.history-search-panel { min-height: 100%; }

.history-search-box {
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  background: var(--bg);
}

.history-search-box .lucide { width: 17px; height: 17px; color: var(--faint); }
.history-search-box input { min-width: 0; min-height: 38px; border: 0; padding: 0; background: transparent; }
.history-search-box input:focus { outline: 0; }

.history-search-summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  color: var(--faint);
  font-size: calc(11px + var(--font-size-delta));
}

.history-search-results { display: grid; }
.history-result {
  width: 100%;
  min-width: 0;
  min-height: 74px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 2px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.history-result:hover { background: rgba(255, 255, 255, .025); }
.history-result > .avatar { width: 38px; height: 38px; flex-basis: 38px; }
.history-result > .lucide { width: 15px; height: 15px; color: var(--faint); }
.history-result-copy { min-width: 0; display: grid; gap: 6px; }
.history-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.history-result-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(12px + var(--font-size-delta)); }
.history-result-heading time { flex: 0 0 auto; color: var(--faint); font-size: calc(9px + var(--font-size-delta)); }
.history-result-preview { overflow: hidden; color: var(--muted); font-size: calc(11px + var(--font-size-delta)); line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.history-result-preview mark { border-radius: 2px; background: rgba(242, 197, 101, .24); color: #f3d58e; }

.history-load-more {
  min-height: 38px;
  margin-top: 10px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: calc(11px + var(--font-size-delta));
}

.message-row.message-located .message-bubble {
  animation: located-message 2.2s ease-out;
}

@keyframes located-message {
  0%, 30% { border-color: #e7bd64; box-shadow: 0 0 0 3px rgba(231, 189, 100, .18); }
  100% { box-shadow: none; }
}

.lightbox-toolbar {
  align-self: flex-end;
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  background: rgba(20, 24, 30, .92);
}

.lightbox-toolbar .icon-button { color: #eef2f5; }

.draft-preview-label { color: #e0a2ac; font-weight: 700; }

.history-export-bar {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-bottom: 10px;
}

.profile-block-button { color: #db918c; }

.blacklist-list { display: grid; }
.blacklist-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.blacklist-row:last-child { border-bottom: 0; }
.blacklist-row > .avatar { width: 40px; height: 40px; flex-basis: 40px; }

.storage-quota-panel { display: grid; gap: 10px; }
.storage-quota-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.storage-quota-summary span { color: var(--muted); font-size: calc(11px + var(--font-size-delta)); }
.storage-quota-meter { height: 7px; overflow: hidden; border-radius: 4px; background: var(--bg); }
.storage-quota-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .18s ease; }

.admin-status-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: calc(11px + var(--font-size-delta));
}

.admin-mobile-picker { display: none; }

.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.admin-status-card {
  min-height: 126px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.admin-status-card.unhealthy { border-color: rgba(224, 111, 104, .45); }
.admin-status-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; background: rgba(89, 199, 206, .12); color: var(--accent-strong); }
.admin-status-card.unhealthy .admin-status-icon { background: rgba(224, 111, 104, .12); color: #eb9690; }
.admin-status-icon .lucide { width: 20px; height: 20px; }
.admin-status-card > div { min-width: 0; display: grid; gap: 5px; }
.admin-status-card span { color: var(--muted); font-size: calc(11px + var(--font-size-delta)); }
.admin-status-card strong { font-size: calc(19px + var(--font-size-delta)); }
.admin-status-card small { color: var(--faint); line-height: 1.45; }
.admin-quota-summary { margin-top: 0; }
.admin-error-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.admin-error-row > div { min-width: 0; display: grid; gap: 4px; }
.admin-error-row strong, .admin-error-row small { overflow-wrap: anywhere; }
.admin-error-row small, .admin-error-row time { color: var(--muted); font-size: calc(10px + var(--font-size-delta)); }

@media (max-width: 900px) {
  .admin-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .admin-status-grid { grid-template-columns: 1fr; }
  .admin-error-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .admin-mobile-picker {
    min-width: 132px;
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: calc(10px + var(--font-size-delta));
  }

  .admin-mobile-picker select {
    width: 100%;
    min-height: 38px;
    padding: 0 30px 0 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
  }
}

@media (max-width: 720px) {
  .lightbox-nav-button { display: none; }

  .lightbox-backdrop .lightbox-shell {
    display: block;
  }

  .lightbox-backdrop .lightbox-stage {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
  }
}

.save-location-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  border: 1px solid #323a44;
  border-radius: 7px;
  background: #181d23;
}

.save-location-row > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.save-location-row span { color: #8e99a5; font-size: calc(11px + var(--font-size-delta)); }
.save-location-value {
  overflow-wrap: anywhere;
  color: #e5eaee;
  font-size: calc(12px + var(--font-size-delta));
  font-weight: 600;
}

.rail {
  overflow: hidden;
  padding-bottom: 10px;
}

.rail-avatar {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  margin: 0;
  padding: 0;
  align-self: center;
  line-height: 0;
}

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

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.message-notification-root {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 120;
  width: min(370px, calc(100vw - 36px));
  display: grid;
  gap: 9px;
  pointer-events: none;
}

.message-notification {
  position: relative;
  min-height: 76px;
  overflow: hidden;
  border: 1px solid #44505e;
  border-left: 3px solid #8eb5e6;
  border-radius: 7px;
  background: rgba(31, 37, 45, .98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
  pointer-events: auto;
  animation: message-notification-in .18s ease-out;
}

.message-notification.mentioned {
  border-color: #765866;
  border-left-color: #e19aaa;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .46), 0 0 0 1px rgba(225, 154, 170, .12);
}

.message-notification-open {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 0;
  padding: 11px 42px 11px 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.message-notification-open:hover { background: rgba(255, 255, 255, .035); }
.message-notification-open > .avatar { width: 42px; height: 42px; flex-basis: 42px; }

.message-notification-copy,
.message-notification-heading,
.message-notification-preview {
  min-width: 0;
  display: block;
}

.message-notification-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.message-notification-heading strong,
.message-notification-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-notification-heading strong { flex: 1; font-size: calc(13px + var(--font-size-delta)); }
.message-notification-heading small { flex: 0 0 auto; color: #9fc1e9; font-size: calc(10px + var(--font-size-delta)); }
.message-notification.mentioned .message-notification-heading small { color: #f0a8b8; font-weight: 700; }
.message-notification-preview { margin-top: 5px; color: var(--muted); font-size: calc(12px + var(--font-size-delta)); }

.message-notification-close {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 1;
  width: 28px;
  height: 28px;
  color: var(--muted);
}

.rail-button > .nav-unread-badge {
  position: absolute;
  top: 4px;
  right: 5px;
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--rail);
  border-radius: 9px;
  background: #d9899b;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 14px;
}

@keyframes message-notification-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .message-notification-root {
    top: max(8px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    left: max(10px, env(safe-area-inset-left));
    width: auto;
  }

  .message-notification {
    background: rgba(28, 33, 42, .99);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .46);
  }
}

@media (prefers-reduced-motion: reduce) {
  .message-notification { animation: none; }
}

.toast {
  width: min(340px, calc(100vw - 36px));
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #2d3236;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: calc(13px + var(--font-size-delta));
  animation: toast-in .18s ease-out;
}

.toast.error {
  border-color: rgba(237, 109, 102, .55);
  color: #ffc0bc;
}

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

.deletion-gate {
  width: min(520px, calc(100% - 40px));
  margin: 8vh auto 0;
  text-align: center;
}

.deletion-gate h2 { font-size: calc(22px + var(--font-size-delta)); }
.deletion-gate p {
  color: var(--muted);
  line-height: 1.7;
}

.gate-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.terms-gate { width: min(620px, calc(100% - 32px)); margin-top: 6vh; }
.terms-gate-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-strong);
}
.terms-gate .registration-notice { margin-top: 22px; text-align: left; }
.terms-gate-agreement { justify-content: center; margin-top: 20px; }
.terms-gate > .agreement-version { margin-top: 18px; font-size: calc(11px + var(--font-size-delta)); }

/* Element-inspired visual system, implemented independently for azusa. */
.lucide {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  color: inherit;
}

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

button,
input,
textarea,
select {
  transition: border-color .14s ease, background-color .14s ease, color .14s ease, opacity .14s ease;
}

.loading-screen,
.auth-screen {
  background: #111419;
}

.brand-mark,
.brand-button {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 7px 20px rgba(0, 0, 0, .22);
  color: #07191b;
  font-family: "Segoe UI", sans-serif;
  font-size: calc(19px + var(--font-size-delta));
  font-weight: 800;
}

.auth-panel {
  width: min(396px, 100%);
  padding: 30px;
  border-color: #303843;
  background: #1b2027;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .44);
}

.auth-brand {
  gap: 13px;
  margin-bottom: 24px;
}

.auth-brand h1 {
  font-size: calc(23px + var(--font-size-delta));
  font-weight: 720;
}

.segmented {
  margin-bottom: 22px;
  border: 1px solid #282f38;
  background: #12151a;
}

.segmented button {
  min-height: 36px;
}

.segmented button.active {
  background: #2a313a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

input,
textarea,
select {
  border-color: #37404b;
  background: #12161b;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #46515e;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

.primary-button,
.secondary-button,
.danger-button,
.send-button {
  border-radius: 7px;
}

.primary-button,
.send-button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.secondary-button {
  border-color: #3a434f;
  background: #262c34;
}

.secondary-button:hover {
  border-color: #4a5663;
  background: #2d343e;
}

.icon-button {
  border: 1px solid transparent;
  color: #8f9aa6;
}

.icon-button:hover {
  border-color: #333b46;
  background: #252b33;
  color: var(--text);
}

.app-shell {
  grid-template-columns: 68px 320px minmax(0, 1fr);
  background: #111419;
}

.rail {
  gap: 9px;
  padding: 13px 8px;
  border-color: #242a32;
  background: var(--rail);
}

.brand-button {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.rail-main {
  gap: 5px;
  padding-top: 13px;
}

.rail-button {
  height: 56px;
  gap: 4px;
  border-radius: 7px;
  color: #707b87;
}

.rail-button .lucide {
  width: 21px;
  height: 21px;
}

.rail-button small {
  font-size: calc(9px + var(--font-size-delta));
  line-height: 1;
}

.rail-button:hover {
  background: #181d23;
  color: #b2bbc5;
}

.rail-button.active {
  background: #1b292d;
  color: var(--accent-strong);
}

.rail-button.active::before {
  left: -8px;
  width: 3px;
  height: 22px;
  border-radius: 0 4px 4px 0;
}

.rail-avatar {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border: 2px solid #303944;
}

.sidebar {
  border-color: #2a313a;
  background: var(--sidebar);
}

.sidebar-header {
  height: 76px;
  flex-basis: 76px;
  padding: 14px 14px 8px 18px;
}

.sidebar-header h2 {
  font-size: calc(19px + var(--font-size-delta));
  font-weight: 700;
}

.eyebrow {
  color: #72cdd2;
  font-size: calc(10px + var(--font-size-delta));
}

.search-wrap {
  height: 40px;
  flex-basis: 40px;
  gap: 9px;
  margin: 0 12px 11px;
  border-color: #2e3640;
  background: #11151a;
}

.search-wrap .lucide {
  width: 16px;
  height: 16px;
}

.sidebar-content {
  padding: 0 7px 16px;
}

.conversation-item,
.contact-item,
.request-item {
  position: relative;
  min-height: 68px;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 7px;
}

.conversation-item:hover,
.contact-item:hover {
  background: #20262d;
}

.conversation-item.active,
.contact-item.active {
  background: #252c34;
}

.conversation-item.active::before,
.contact-item.active::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  content: '';
}

.item-copy strong {
  color: #e8edf2;
  font-size: calc(13px + var(--font-size-delta));
  font-weight: 680;
}

.item-copy p {
  margin-top: 4px;
  color: #8d98a4;
  font-size: calc(11px + var(--font-size-delta));
}

.badge {
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--sidebar);
}

.avatar {
  background: #3a444f;
  color: #f0f5f7;
  font-weight: 720;
}

.group-avatar {
  border-radius: 8px;
  background: #344d52;
}

.menu-icon {
  color: var(--accent-strong);
}

.menu-icon .lucide {
  width: 20px;
  height: 20px;
}

.workspace,
.content-view {
  background: #12161b;
}

.empty-symbol {
  width: 68px;
  height: 68px;
  border-color: #303943;
  background: #171c22;
  color: #6ccbd1;
}

.empty-symbol .lucide {
  width: 29px;
  height: 29px;
}

.empty-state h2 {
  color: #d4dae0;
  font-size: calc(17px + var(--font-size-delta));
  font-weight: 680;
}

.chat-view {
  grid-template-rows: 68px minmax(0, 1fr) auto auto auto;
}

.chat-header {
  gap: 10px;
  padding: 0 14px 0 18px;
  border-color: #2b323b;
  background: #191d23;
}

.chat-heading h2 {
  color: #eef2f5;
  font-size: calc(15px + var(--font-size-delta));
  font-weight: 700;
}

.chat-heading p {
  color: #84909c;
}

.messages {
  padding: 27px clamp(20px, 5vw, 68px) 22px;
  background: #12161b;
}

.message-row {
  grid-template-columns: 34px minmax(0, 660px);
  gap: 10px;
  margin-bottom: 15px;
}

.message-row.own {
  grid-template-columns: minmax(0, 660px) 34px;
}

.message-row > .avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.message-author {
  margin-bottom: 4px;
  color: #87929e;
  font-size: calc(10px + var(--font-size-delta));
}

.message-bubble {
  padding: 9px 12px;
  border-color: #333b45;
  border-radius: 8px;
  background: #242a32;
  color: #ecf0f3;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .16);
  font-size: calc(13px + var(--font-size-delta));
  line-height: 1.58;
}

.message-row.own .message-bubble {
  border-color: #28646a;
  background: #1c4b50;
}

.reply-quote {
  border-left-width: 2px;
  border-radius: 0 4px 4px 0;
  background: rgba(4, 10, 12, .2);
}

.message-actions {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 0;
  z-index: 5;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 1px solid #343d47;
  border-radius: 7px;
  background: #20262d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .34);
  pointer-events: none;
}

.message-actions button {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 0 8px;
  color: #7f8b97;
  font-size: calc(10px + var(--font-size-delta));
  white-space: nowrap;
}

.message-actions .lucide { width: 14px; height: 14px; }
.message-actions .danger:hover { color: #ffaaa5; }
.message-row:hover .message-actions,
.message-row:focus-within .message-actions { pointer-events: auto; }
.message-row.own .message-actions { right: 0; left: auto; }

.message-menu-trigger {
  display: none;
}

.reaction-pill {
  border-color: #343d47;
  background: #20262d;
}

.reaction-pill.own {
  border-color: #2f7278;
  background: #18383c;
}

.message-file {
  border-color: rgba(255, 255, 255, .085);
  border-radius: 6px;
  background: rgba(8, 12, 15, .24);
}

.file-kind {
  display: grid;
  place-items: center;
  color: var(--accent-strong);
}

.file-kind .lucide {
  width: 20px;
  height: 20px;
}

.file-chevron {
  color: #7c8995;
}

.file-chevron .lucide {
  width: 17px;
  height: 17px;
}

.composer {
  min-height: 66px;
  gap: 7px;
  padding: 10px 14px 12px;
  border-color: #2b323b;
  background: #191d23;
}

.composer textarea {
  min-height: 42px;
  border-color: #343d47;
  border-radius: 8px;
  background: #101419;
}

.composer .icon-button {
  border-radius: 8px;
}

.send-button {
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.send-button .lucide {
  width: 18px;
  height: 18px;
}

.reply-bar,
.draft-attachments {
  border-color: #2b323b;
  background: #1b2027;
}

.content-header {
  min-height: 68px;
  border-color: #2b323b;
  background: #191d23;
}

.content-body {
  width: min(940px, 100%);
}

.settings-section,
.admin-section,
.profile-section,
.drawer-section {
  border-color: #2b323b;
}

.modal-backdrop {
  background: rgba(5, 7, 10, .76);
  backdrop-filter: blur(3px);
}

.drawer-backdrop {
  background: rgba(5, 7, 10, .5);
  backdrop-filter: blur(2px);
}

.modal,
.side-drawer {
  border-color: #353e49;
  background: #1c2128;
}

.modal-header {
  min-height: 58px;
  border-color: #303843;
  background: #1b2027;
}

.modal-header h2 {
  font-size: calc(15px + var(--font-size-delta));
  font-weight: 700;
}

.drawer-tabs {
  background: #1c2128;
}

.drawer-tab {
  color: #86919d;
}

.drawer-tab.active {
  color: var(--accent-strong);
}

.shared-row,
.member-row,
.check-row,
.device-row {
  border-color: #2a313a;
}

.toast {
  border-color: #3c4652;
  background: #272e37;
}

.mobile-only { display: none; }
