[hidden] { display: none !important; }
.draft-page { padding-bottom: 56px; }
.draft-heading { padding: 44px 0 25px; }
.draft-heading h1 { margin-top: 12px; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.04em; }
.draft-heading .lead { margin: 12px 0 0; }
.draft-home { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; text-decoration: none; }
.draft-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 18px; align-items: start; }
.draft-card { min-width: 0; padding: clamp(18px, 3vw, 27px); background: #fcfdf9; border: 1px solid var(--line); border-radius: 12px; }
.draft-card h2, .review-header h2 { font-size: clamp(19px, 2.7vw, 23px); line-height: 1.4; letter-spacing: -.025em; }
.draft-note { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 6px; }
.file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button.button { font-size: 14px; font-weight: 650; border: 0; }
.text-button { min-height: 44px; padding: 0 8px; color: var(--green); border: 0; border-radius: 6px; background: transparent; font-size: 14px; white-space: nowrap; }
.text-button:hover { background: var(--panel); }
button:focus-visible, textarea:focus-visible, .file-row:focus-within .choose-button { outline: 2px solid var(--green); outline-offset: 3px; }
.choose-button { cursor: pointer; }
.file-picker { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.form-feedback { color: var(--green); font-size: 14px; line-height: 1.6; }
.form-feedback:not(:empty) { margin-top: 9px; }
.form-feedback.is-error, #draft-feedback { color: #8a3325; }
.caption-card textarea {
  display: block; width: 100%; min-height: 140px; resize: vertical; margin-top: 14px;
  border: 1px solid #bbc9bd; border-radius: 8px; padding: 11px 13px; background: #fff; color: var(--ink); font-size: 16px;
}
.caption-card textarea::placeholder { color: #657266; }
.caption-meta { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: right; }
.media-gallery:not(:empty) { display: grid; gap: 10px; margin-top: 15px; }
.media-gallery.image-set { grid-template-columns: repeat(auto-fit, minmax(min(100%, 105px), 1fr)); }
.media-gallery figure {
  min-width: 0; margin: 0; padding: 8px; background: #eef2eb; border-radius: 8px;
  border: 1px solid #dbe1d9; overflow: hidden;
}
.media-gallery img, .media-gallery video { display: block; width: 100%; max-height: 280px; object-fit: contain; border-radius: 5px; }
.media-gallery video { aspect-ratio: 16 / 9; background: #101711; }
.media-gallery.image-set img { aspect-ratio: 1; background: #e5ebe3; }
.media-gallery figcaption { font-size: 13px; margin: 6px 2px 1px; color: var(--muted); overflow-wrap: anywhere; }
.media-decode { margin: 0; padding: 10px; }
.draft-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 19px; }
.draft-actions p { margin: 0; }
.review-dialog {
  width: min(100% - 36px, 570px); max-height: calc(100% - 36px); padding: 0; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; background: #fcfdf9; box-shadow: 0 24px 64px #17271c44;
}
.review-dialog::backdrop { background: #111e17a8; }
.review-inner { padding: clamp(17px, 4vw, 26px); }
.review-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-caption {
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 10rem; overflow: auto;
  padding: 12px 14px; margin-top: 16px; background: #eef2eb; border-radius: 7px; font-size: 15px;
}
.review-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.unavailable-panel { padding: 19px; margin-top: 12px; background: #edf2e9; border: 1px solid #d9e2d7; border-radius: 9px; }
.unavailable-panel h3 { font-size: 21px; margin-bottom: 7px; line-height: 1.4; }
.unavailable-panel h3:focus { outline: 0; }
.unavailable-panel p { margin-bottom: 12px; color: var(--muted); }
.unavailable-panel a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 720px) {
  .draft-page { padding-bottom: 34px; }
  .draft-grid { grid-template-columns: 1fr; gap: 13px; }
  .draft-heading { padding-top: 17px; }
  .draft-actions .button { width: 100%; }
  .draft-actions { justify-content: flex-start; }
}