.compose { max-width: 1120px; margin: auto; }
.compose-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.compose-head { display: flex; justify-content: space-between; gap: 12px;
  align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.compose-wayfinding { display: flex; align-items: center; gap: 12px; }
.compose-head .back { margin: 0; min-height: 40px; }
.compose-feedback { margin: -14px 0 18px; }
.compose-feedback[hidden] { display: none; }
.compose-status { color: var(--muted); font-size: 12px; margin: 0; flex: 1; }
.compose .compose-storage { position: relative; flex: 0 0 auto; }
.compose .compose-storage summary { margin: 0; padding: 4px; font-size: 12px;
  list-style: none; display: flex; color: var(--muted); border-radius: 6px; }
.compose-storage summary::-webkit-details-marker { display: none; }
.compose-storage p { position: absolute; left: 0; z-index: 5; width: min(280px, 65vw);
  padding: 16px; margin: 6px 0; background: var(--surface); border-radius: 12px;
  box-shadow: 0 8px 30px #0002; font-size: 12px; color: var(--muted); }
.compose-status[data-error="true"], .compose-error { color: #c73561; }
:root[data-theme="dark"] .compose-status[data-error="true"],
:root[data-theme="dark"] .compose-error { color: #ff9ab7; }
.compose-note { color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.compose-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.compose-actions button { border-radius: 8px; }
.compose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px;
  gap: 32px; align-items: start; }
.compose label { display: block; font-size: 13px; margin-bottom: 18px; }
.compose input, .compose textarea, .compose select { border-radius: 10px; margin-top: 7px; }
.compose textarea[name="body"] { min-height: 430px; font: 17px/1.8 system-ui; resize: vertical; }
.compose textarea:not([name="body"]) { min-height: 84px; resize: vertical; }
.compose .compose-title { margin: 0 0 16px; }
.compose input[name="title"] { font-size: 24px; font-weight: 500; margin: 0;
  border: 0; border-radius: 0; padding: 8px 0 12px; background: transparent;
  line-height: 1.4; box-shadow: 0 1px 0 transparent; }
.compose input[name="title"]:focus-visible { outline: none;
  box-shadow: 0 1px 0 var(--accent); }
.compose input[name="title"]::placeholder { color: var(--muted); opacity: .8; }
.compose input[name="title"][aria-invalid="true"] { box-shadow: 0 1px 0 #c73561; }
.compose details { min-width: 0; }
.compose summary { cursor: pointer; font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.compose-error { font-size: 13px; margin: 0 0 14px; }
.compose-error:empty { display: none; }
.compose .compose-details > summary { padding: 10px 0; margin: 0 0 16px;
  font-size: 14px; }
.compose-details { padding-left: 20px; }
.compose .compose-details label { margin: 0 0 18px; font-size: 12px; }
.compose .compose-details input, .compose .compose-details select {
  min-height: 40px; padding: 9px 11px; font-size: 13px; border-radius: 8px; }
.compose .compose-details textarea { min-height: 72px; padding: 9px 11px;
  font-size: 13px; border-radius: 8px; }
#work-preview { width: min(900px, calc(100% - 24px)); max-height: 90dvh; }
#work-preview .preview-close { display: flex; justify-content: space-between; align-items: center; }
#work-preview .reading { padding: 24px 0; }
@media(max-width:1000px) {
  .compose-grid { grid-template-columns: minmax(0, 1fr); }
  .compose textarea[name="body"] { min-height: 300px; }
  .compose-details { padding-left: 0; }
}
@media(max-width:540px) {
  .compose-head { gap: 8px; }
  .compose-actions { width: 100%; justify-content: space-between; }
  .compose-actions button { padding: 8px 6px; font-size: 12px; gap: 6px; }
  .compose-actions button svg { display: none; }
  .compose-storage p { left: auto; right: 0; }
  .compose input[name="title"] { font-size: 22px; }
}
