.compose {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
}
.compose::backdrop { background: rgba(0, 0, 0, .35); }

.compose-form { display: flex; flex-direction: column; height: min(640px, calc(100dvh - 26px)); }
.compose-head { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); }

.cf-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 0 12px; }
.cf-row span { width: 48px; color: var(--fg-muted); font-size: 13px; }
.cf-row input { flex: 1; border: 0; padding: 8px 0; background: transparent; border-radius: 0; }
.cf-row input:focus-visible { outline: none; }
.cf-row:focus-within { border-bottom-color: var(--fg); }

.cf-text { flex: 1; border: 0; border-radius: 0; padding: 12px; resize: none; line-height: 1.5; min-height: 160px; }
.cf-text:focus-visible { outline: none; }

.dropzone { display: flex; gap: 6px; align-items: center; padding: 8px 12px; border-top: 1px dashed var(--line-strong); font-size: 13px; color: var(--fg-muted); }
.dropzone.over { background: var(--bg-sel); color: var(--fg); }
#att-size { margin-left: auto; }

.att-list { list-style: none; margin: 0; padding: 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.att-list:not(:empty) { padding-bottom: 8px; }
.att-list li { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 2px 4px 2px 8px; }
.att-list button { border: 0; background: transparent; cursor: pointer; color: var(--fg-muted); padding: 0 4px; }

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

@media (max-width: 720px) {
  .compose { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .compose-form { height: 100dvh; }
}
