.compose-editor {
  --compose-ink: #283a57;
  --compose-muted: #64645e;
  --compose-line: #dedbd4;
  color: var(--compose-ink);
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(310px, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
}

.compose-editor [hidden] { display: none; }
.compose-main { min-width: 0; display: grid; gap: 18px; }
.compose-card, .compose-files {
  background: #fff;
  border: 1px solid var(--compose-line);
  border-radius: 22px;
  padding: clamp(20px, 2.5vw, 32px);
}
.compose-drop {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: start;
  align-content: end;
  padding: clamp(24px, 3.2vw, 43px);
  min-height: clamp(270px, 24vw, 340px);
  border-radius: 22px;
  color: #fffefb;
  background: #283a57;
  cursor: pointer;
}
.compose-drop::before, .compose-drop::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  z-index: -1;
}
.compose-drop::before {
  background: var(--transfer-tint), var(--transfer-art) center / cover no-repeat;
  background-blend-mode: color, normal;
  transition: transform 450ms ease;
}
.compose-drop::after {
  background: linear-gradient(90deg, #1d2b42f0 0%, #243650cc 30%, #263b5840 62%, transparent 88%);
}
.compose-drop:hover::before, .compose-drop.over::before { transform: scale(1.025); }
.compose-drop:focus-within, .compose-drop.over { outline: 3px solid #a53b09; outline-offset: 3px; }
.compose-drop-title {
  font-family: var(--display), sans-serif;
  font-size: clamp(2.45rem, 3.6vw, 3.7rem);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 650;
  text-wrap: balance;
}
.compose-drop-button, .compose-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.15;
}
.compose-drop-button {
  padding: 12px 18px 12px 15px;
  margin-top: 21px;
  background: #ff842f;
  color: var(--compose-ink);
  transition: background 150ms ease;
}
.compose-drop:hover .compose-drop-button, .compose-drop.over .compose-drop-button { background: #ff9c67; }
.compose-drop-cap {
  margin-top: 13px;
  font-size: .79rem;
  font-weight: 500;
  color: #f7efea;
  line-height: 1.4;
}
.compose-editor label:not(.compose-drop) {
  display: grid;
  gap: 7px;
  margin: 0;
  min-width: 0;
  font-size: .89rem;
  font-weight: 680;
  line-height: 1.45;
}
.compose-editor input:not([type=file]), .compose-editor textarea, .compose-editor select {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #cecbc4;
  border-radius: 11px;
  font: inherit;
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.4;
  color: var(--compose-ink);
  background-color: #fdfcf9;
}
.compose-editor input::placeholder, .compose-editor textarea::placeholder { color: #64645e; }
.compose-editor textarea { resize: vertical; min-height: 75px; }
.compose-editor select {
  appearance: none;
  padding-right: 35px;
  background-image: linear-gradient(45deg, transparent 50%, #495876 50%), linear-gradient(135deg, #495876 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.compose-fields { display: grid; gap: 19px; }
.compose-fields label small { color: var(--compose-muted); font-weight: 450; margin-left: .35rem; font-size: .8rem; }
.compose-send { display: grid; gap: 23px; }
.compose-send h2 { margin: 0; font: 650 clamp(1.55rem,2.1vw,2rem)/1.1 var(--display), sans-serif; letter-spacing: -.055em; }
.compose-who { padding-bottom: 18px; border-bottom: 1px solid var(--compose-line); }
.compose-recipient {
  display: grid;
  gap: 13px 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.compose-recipient + .compose-recipient { border-top: 1px solid var(--compose-line); padding-top: 16px; margin-top: 16px; }
.compose-recipient:only-child .compose-email, .compose-rights { grid-column: 1 / -1; }
.compose-remove, .compose-add {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #3d527a;
  font-size: .875rem;
  font-weight: 700;
}
.compose-add { margin-top: 12px; }
.compose-add:hover { text-decoration: underline; text-underline-offset: .22em; }
.compose-remove { width: 36px; min-height: 42px; border-radius: 8px; }
.compose-remove:hover { background: #f0efea; }
.compose-submit { display: grid; gap: 15px; }
.compose-security { display: flex; align-items: start; gap: 9px; color: var(--compose-muted); font-size: .83rem; line-height: 1.48; margin: 0; }
.compose-security svg { flex: 0 0 17px; margin-top: 1px; }
.compose-submit-button {
  color: #fffefb;
  background: var(--compose-ink);
  border: 0;
  width: 100%;
  min-height: 48px;
  padding: 13px 21px;
  font-size: 1rem;
}
.compose-submit-button:hover { background: #3d527a; }
.compose-files { padding-top: 18px; padding-bottom: 15px; }
.compose-files p { font-size: .85rem; font-weight: 650; color: var(--compose-muted); }
.compose-files ul { margin: 9px 0 0; padding: 0; list-style: none; }
.compose-files li {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}
.compose-files li + li { border-top: 1px solid var(--compose-line); }
.compose-format {
  display: grid;
  place-items: center;
  width: 39px;
  height: 45px;
  border-radius: 7px;
  color: #3d527a;
  background: #f7e9dc;
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: -.02em;
}
.compose-filename { min-width: 0; }
.compose-filename strong, .compose-filename small { display: block; overflow-wrap: anywhere; }
.compose-filename strong { font-weight: 650; font-size: .95rem; }
.compose-filename small { color: var(--compose-muted); font-size: .78rem; }
.compose-editor .upload-progress { accent-color: #f26a1f; }
@media (max-width: 780px) {
  .compose-editor { grid-template-columns: 1fr; gap: 16px; }
  .compose-drop { min-height: 240px; }
  .compose-main { gap: 16px; }
}
@media (max-width: 430px) {
  .compose-drop, .compose-card, .compose-files { border-radius: 18px; }
  .compose-drop { min-height: 223px; }
  .compose-drop-title { font-size: 2.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .compose-drop::before { transition: none; }
}
