:root {
  --bg-primary: #f5f5f5;
  --bg-surface: #ffffff;
  --bg-sidebar: #e3f2fd;
  --bg-sidebar-accent: #ffffff;
  --bg-topbar: #ffffff;
  --bg-header: #f8f9fa;
  --bg-message-header: #3443ae;
  --bg-message-hover: rgba(15, 28, 63, 0.08);
  --bg-message-selected: rgba(111, 155, 255, 0.18);
  --gradient-compose: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #42a5f5 100%);
  --gradient-sidebar: linear-gradient(180deg, #e3f2fd 0%, #ffffff 100%);
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-muted: #9ca3af;
  --text-sidebar: #0f1c3f;
  --text-on-primary: #ffffff;
  --text-on-header: #202124;
  --border-color: #e2e8f0;
  --border-strong: #cbd5f5;
  --scrollbar-track: transparent;
  --scrollbar-thumb: rgba(15, 28, 63, 0.25);
  --chip-bg: rgba(15, 28, 63, 0.08);
  --primary-color: #4285f4;
  --primary-color-hover: #3367d6;
  --primary-color-light: rgba(66, 133, 244, 0.1);
  --primary-color-light-dark: rgba(66, 133, 244, 0.2);
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
}
html.dark-mode {
  --bg-primary: #0f1424;
  --bg-surface: #161c31;
  --bg-sidebar: #111831;
  --bg-sidebar-accent: #192041;
  --bg-topbar: #090f23;
  --bg-header: #090f23;
  --bg-message-header: #0f1632;
  --bg-message-hover: rgba(88, 132, 255, 0.15);
  --bg-message-selected: rgba(88, 132, 255, 0.35);
  --gradient-compose: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
  --gradient-sidebar: linear-gradient(180deg, #131a33 0%, #0f1424 100%);
  --text-primary: #f3f4fb;
  --text-secondary: #c4c6d7;
  --text-muted: #7c84a1;
  --text-sidebar: #f3f4fb;
  --text-on-primary: #ffffff;
  --text-on-header: #ffffff;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(66, 133, 244, 0.4);
  --scrollbar-track: transparent;
  --scrollbar-thumb: rgba(111, 155, 255, 0.6);
  --chip-bg: rgba(255, 255, 255, 0.08);
  --primary-color: #4285f4;
  --primary-color-hover: #66a3ff;
  --primary-color-light: rgba(66, 133, 244, 0.2);
  --primary-color-light-dark: rgba(66, 133, 244, 0.3);
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
}
i.fa,
i[class*="fa-"],
.fa,
[class*="fa-"] {
  font-family: 'Icons' !important;
  font-style: normal;
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  text-rendering: auto;
  line-height: 1;
}
i.fa::before,
i[class*="fa-"]::before {
  font-family: 'Icons' !important;
  font-weight: 900;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}
i.fa-bold::before {
  content: "\f032";
}
i.fa-italic::before {
  content: "\f033";
}
i.fa-underline::before {
  content: "\f0cd";
}
i.fa-list-ul::before {
  content: "\f0ca";
}
i.fa-list-ol::before {
  content: "\f0cb";
}
i.fa-link::before {
  content: "\f0c1";
}
i.fa-file-alt::before {
  content: "\f15c";
}
i.fa-paper-plane::before {
  content: "\f1d8";
}
i.fa-trash::before,
i.fa-trash-alt::before {
  content: "\f2ed";
}
i.fa-users::before {
  content: "\f0c0";
}
i.fa-paperclip::before {
  content: "\f0c6";
}
i.fa-minus::before {
  content: "\f068";
}
i.fa-expand::before {
  content: "\f065";
}
i.fa-compress::before {
  content: "\f066";
}
i.fa-window-restore::before {
  content: "\f2d2";
}
i.fa-times::before {
  content: "\f00d";
}
i.fa-envelope::before {
  content: "\f0e0";
}
i.fa-user-plus::before {
  content: "\f234";
}
i.fa-plus::before {
  content: "\f067";
}
i.fa-check-circle::before {
  content: "\f058";
}
i.fa-spinner::before {
  content: "\f110";
}
i.fa-exclamation-circle::before {
  content: "\f06a";
}
#compose-windows-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10000;
}
.compose-window {
  position: absolute;
  width: 600px;
  height: 500px;
  min-width: 400px;
  min-height: 300px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  background: var(--bg-surface);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.1);
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  z-index: 10001;
  opacity: 1 !important;
  transform: scale(1);
  visibility: visible !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.compose-window.opening {
  animation: composeWindowOpen 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes composeWindowOpen {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.compose-window.focused {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--primary-color-light-dark);
  z-index: 10002;
}
.compose-window.dragging {
  cursor: move;
  user-select: none;
}
.compose-window.resizing {
  user-select: none;
}
.compose-window.minimized {
  height: auto !important;
  min-height: auto;
  width: 300px !important;
  cursor: pointer;
}
.compose-window.minimized .compose-window-body,
.compose-window.minimized .compose-window-footer {
  display: none !important;
}
.compose-window.minimized .compose-window-header {
  cursor: pointer;
}
.compose-window.minimized .compose-window-header:hover {
  background: rgba(0, 0, 0, 0.05);
}
.compose-window.minimized .compose-window-resize-handle {
  display: none;
}
.compose-window.maximized {
  width: calc(100vw - 40px) !important;
  height: calc(100vh - 40px) !important;
  left: 20px !important;
  top: 20px !important;
}
.compose-window.closing {
  opacity: 0;
  transform: scale(0.95);
}
.compose-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-header);
  color: var(--text-on-header);
  border-bottom: 1px solid var(--border-color);
  cursor: move;
  user-select: none;
  flex-shrink: 0;
}
.compose-window-header .compose-window-title {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}
.compose-window-header .compose-window-title .compose-window-title-text {
  display: inline-block;
}
.compose-window-header .compose-window-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}
.compose-window-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-on-header);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.compose-window-btn i {
  font-size: 12px;
}
.compose-window-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.compose-window-btn:active {
  transform: scale(0.95);
}
.compose-window-btn.compose-window-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error-color);
}
.compose-window-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.compose-window-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.compose-window-body::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
.compose-window-body::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}
.compose-window-body::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb);
  opacity: 0.8;
}
.compose-window-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.compose-window-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.compose-window-field.compose-window-body-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.compose-window-field.compose-window-body-field .compose-window-textarea {
  flex: 1;
  min-height: 200px;
}
.compose-window-field.compose-window-cc-bcc .compose-window-field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.compose-window-input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-surface);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.compose-window-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color-light);
}
.compose-window-input-group .compose-window-input {
  flex: 1;
  border: none;
  border-radius: 0;
  padding: 10px 12px;
  background: transparent;
}
.compose-window-input-group .compose-window-input:focus {
  outline: none;
  box-shadow: none;
}
.compose-window-input-group .compose-window-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  padding: 0;
  border: none;
  border-left: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.compose-window-input-group .compose-window-contact-btn i {
  font-size: 16px;
}
.compose-window-input-group .compose-window-contact-btn:hover {
  background: var(--bg-message-hover);
  color: var(--text-primary);
}
.compose-window-input-group .compose-window-contact-btn:active {
  background: var(--bg-message-selected);
}
.compose-window-input,
.compose-window-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.compose-window-input:focus,
.compose-window-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color-light);
}
.compose-window-input::placeholder,
.compose-window-textarea::placeholder {
  color: var(--text-muted);
}
.compose-window-textarea {
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}
.compose-window-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}
.compose-window-footer .compose-window-footer-left {
  display: flex;
  gap: 8px;
}
.compose-window-footer .compose-window-footer-right {
  display: flex;
  gap: 8px;
}
.compose-window-footer .compose-window-btn {
  padding: 8px 16px;
  height: auto;
  width: auto;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.compose-window-footer .compose-window-btn.compose-window-send {
  background: var(--primary-color);
  color: var(--text-on-primary);
}
.compose-window-footer .compose-window-btn.compose-window-send:hover {
  background: var(--primary-color-hover);
}
.compose-window-footer .compose-window-btn.compose-window-discard {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.compose-window-footer .compose-window-btn.compose-window-discard:hover {
  background: var(--bg-message-hover);
  color: var(--text-primary);
}
.compose-window-footer .compose-window-btn.compose-window-cc-bcc-toggle {
  background: transparent;
  color: var(--text-secondary);
}
.compose-window-footer .compose-window-btn.compose-window-cc-bcc-toggle:hover {
  background: var(--bg-message-hover);
}
.compose-window-footer .compose-window-btn.compose-window-cc-bcc-toggle.active {
  background: var(--bg-message-selected);
  color: var(--text-primary);
}
.compose-window-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  cursor: nwse-resize;
  background: linear-gradient(-45deg, transparent 0%, transparent 30%, var(--border-color) 30%, var(--border-color) 35%, transparent 35%, transparent 65%, var(--border-color) 65%, var(--border-color) 70%, transparent 70%);
  opacity: 0;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.compose-window-resize-handle:hover {
  opacity: 1 !important;
  background: linear-gradient(-45deg, transparent 0%, transparent 30%, var(--primary-color) 30%, var(--primary-color) 35%, transparent 35%, transparent 65%, var(--primary-color) 65%, var(--primary-color) 70%, transparent 70%);
}
.compose-window:hover .compose-window-resize-handle {
  opacity: 0.6;
}
.compose-window.resizing .compose-window-resize-handle {
  opacity: 1;
}
html.dark-mode .compose-window {
  background: var(--bg-surface);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
html.dark-mode .compose-window.focused {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 0 2px var(--primary-color-light-dark);
}
html.dark-mode .compose-window-header {
  background: var(--bg-header);
  border-bottom-color: var(--border-color);
}
html.dark-mode .compose-window-footer {
  background: var(--bg-surface);
  border-top-color: var(--border-color);
}
@media (max-width: 768px) {
  .compose-window {
    width: calc(100vw - 20px) !important;
    height: calc(100vh - 20px) !important;
    left: 10px !important;
    top: 10px !important;
    min-width: calc(100vw - 20px);
    min-height: calc(100vh - 100px);
  }
  .compose-window.maximized {
    width: calc(100vw - 20px) !important;
    height: calc(100vh - 20px) !important;
    left: 10px !important;
    top: 10px !important;
  }
  .compose-window-field.compose-window-cc-bcc .compose-window-field-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.recipients-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 0;
  min-height: 24px;
}
.recipient-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--chip-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}
.recipient-chip:hover {
  background: var(--bg-message-hover);
  border-color: var(--border-strong);
}
.recipient-chip.invalid-email {
  border-color: var(--error-color);
  background: rgba(239, 68, 68, 0.1);
}
.recipient-chip button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  transition: all 0.2s ease;
}
.recipient-chip button:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error-color);
}
html.dark-mode .recipient-chip {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}
html.dark-mode .recipient-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color-light-dark);
}
html.dark-mode .recipient-chip.invalid-email {
  border-color: var(--error-color);
  background: rgba(239, 68, 68, 0.2);
  color: #ff6b6b;
}
.input-group-append {
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--border-color);
}
.input-group-append .input-group-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  min-width: 40px;
}
.input-group-append .input-group-text i {
  font-size: 14px;
}
.input-group-append .input-group-text:hover {
  background: var(--bg-message-hover);
  color: var(--text-primary);
}
.input-group-append .input-group-text:active {
  background: var(--bg-message-selected);
}
.input-group-append .input-group-text.active {
  background: var(--bg-message-selected);
  color: var(--primary-color);
}
html.dark-mode .input-group-append .input-group-text {
  border-left-color: rgba(255, 255, 255, 0.1);
}
html.dark-mode .input-group-append .input-group-text:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
html.dark-mode .input-group-append .input-group-text.active {
  background: var(--primary-color-light-dark);
  color: var(--primary-color-hover);
}
.compose-window-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235f6368' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.compose-window-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color-light);
}
.compose-window-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 8px;
}
html.dark-mode .compose-window-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c4c6d7' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  border-color: rgba(255, 255, 255, 0.1);
}
html.dark-mode .compose-window-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color-light-dark);
}
.attachments-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: auto;
  width: 100%;
  box-sizing: border-box;
}
.attachments-container:empty {
  display: none;
}
@media (max-width: 600px) {
  .attachments-container {
    grid-template-columns: 1fr;
  }
}
.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-message-hover);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: all 0.2s ease;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.attachment-item:hover {
  background: var(--bg-message-selected);
  border-color: var(--border-strong);
}
.attachment-item > div:first-child {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 14px;
}
.attachment-status i {
  font-size: 14px;
  line-height: 1;
}
.attachment-status.status-uploaded i {
  color: var(--success-color);
}
.attachment-status.status-uploading {
  background: transparent;
}
.attachment-status.status-uploading i {
  color: var(--warning-color);
  animation: spin 1s linear infinite;
}
.attachment-status.status-error i {
  color: var(--error-color);
}
.attachment-status.status-ready i {
  color: var(--success-color) !important;
}
.attachment-status.status-ready i.fa-check-circle {
  color: var(--success-color) !important;
}
.attachment-status.status-queued i {
  color: var(--text-secondary);
  opacity: 0.6;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.attachment-item button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  transition: all 0.2s ease;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.attachment-item button:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error-color);
}
html.dark-mode .attachments-container {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}
html.dark-mode .attachment-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
html.dark-mode .attachment-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color-light-dark);
}
html.dark-mode .attachment-item > div:first-child {
  color: var(--text-primary);
}
html.dark-mode .attachment-status {
  background: transparent;
}
html.dark-mode .attachment-status i {
  color: var(--text-secondary);
}
html.dark-mode .attachment-status.status-queued i {
  opacity: 0.7;
}
html.dark-mode .attachment-status.status-ready i,
html.dark-mode .attachment-status.status-uploaded i {
  color: var(--success-color) !important;
}
html.dark-mode .attachment-status.status-ready i.fa-check-circle,
html.dark-mode .attachment-status.status-uploaded i.fa-check-circle {
  color: var(--success-color) !important;
}
html.dark-mode .attachment-status.status-uploading i {
  color: var(--warning-color) !important;
}
html.dark-mode .attachment-status.status-error i {
  color: var(--error-color) !important;
}
.compose-window-editor-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.compose-window-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: var(--bg-header);
  border: 1px solid var(--border-color);
  border-radius: 8px 8px 0 0;
  flex-wrap: wrap;
}
.compose-window-editor-toolbar .editor-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}
.compose-window-editor-toolbar .editor-btn i {
  font-size: 14px;
}
.compose-window-editor-toolbar .editor-btn:hover {
  background: var(--bg-message-hover);
  color: var(--text-primary);
}
.compose-window-editor-toolbar .editor-btn:active {
  background: var(--bg-message-selected);
  transform: scale(0.95);
}
.compose-window-editor-toolbar .toolbar-separator {
  width: 1px;
  height: 20px;
  background: var(--border-color);
  margin: 0 4px;
}
.compose-window-textarea {
  border-radius: 0 0 8px 8px;
  border-top: none;
}
.compose-window-textarea:focus {
  border-top: 1px solid var(--primary-color);
}
html.dark-mode .compose-window-editor-toolbar {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}
html.dark-mode .compose-window-editor-toolbar .editor-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
html.dark-mode .compose-window-editor-toolbar .toolbar-separator {
  background: rgba(255, 255, 255, 0.1);
}
.compose-minimized-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--bg-header);
  border-top: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.compose-minimized-item {
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}
.compose-minimized-item:hover {
  background: var(--bg-message-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
html.dark-mode .compose-minimized-bar {
  background: rgba(9, 15, 35, 0.95);
  border-top-color: rgba(255, 255, 255, 0.1);
}
html.dark-mode .compose-minimized-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
html.dark-mode .compose-minimized-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color-light-dark);
}
.ui-dialog.ui-front {
  z-index: 20000 !important;
}
.ui-dialog[aria-describedby*="recipient-dialog"] {
  z-index: 20000 !important;
}
#recipient-dialog.popupmenu {
  display: none !important;
}
.ui-dialog[aria-describedby*="recipient-dialog"] .ui-dialog-content > #recipient-dialog {
  display: block !important;
}
