.compose-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 500;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 20px;
}
.compose-overlay.hidden { display: none !important; }

.compose-window {
  width: 580px; max-width: 100%;
  background: var(--bg-panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  max-height: 80vh;
  animation: composeIn .2s ease;
}
@keyframes composeIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.compose-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: var(--bg-hover);
  border-radius: var(--radius) var(--radius) 0 0;
  font-weight: 600; font-size: 13px;
}
.compose-header-actions { display: flex; gap: 4px; }

.compose-fields { border-bottom: 1px solid var(--border); }
.compose-field {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding: 6px 14px;
}
.compose-field:last-child { border-bottom: none; }
.compose-field label { width: 44px; color: var(--text-muted); font-size: 12px; flex-shrink: 0; }
.compose-field input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 13px; color: var(--text);
}

.compose-toolbar {
  display: flex; align-items: center; gap: 2px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-light);
}
.toolbar-sep { width: 1px; height: 16px; background: var(--border); margin: 0 4px; }
.fmt-btn { font-size: 13px; }

.compose-body {
  flex: 1;
  min-height: 180px;
  max-height: 340px;
  overflow-y: auto;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  outline: none;
}
.compose-body:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
}

.compose-attachment-list {
  padding: 0 14px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.compose-att-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.compose-att-chip button { color: var(--text-muted); font-size: 14px; line-height: 1; }

.compose-footer {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}

.attach-label { cursor: pointer; }
