.brand-link { color: inherit; text-decoration: none; }
.upload-main { width: min(920px, calc(100% - 36px)); margin: 0 auto; padding: 52px 0 80px; }
.intro { max-width: 680px; margin: 10px 0 0; color: #66717c; font-size: 14px; line-height: 1.7; }
.upload-panel, .draft-panel { margin-top: 28px; padding-top: 24px; border-top: 1px solid #cdd3d8; }
.upload-panel h2, .draft-panel h2 { margin: 0; font-size: 18px; }
.inline-status { margin-top: 16px; padding: 11px 13px; border: 1px solid #a8d5bf; border-radius: 5px; color: #225f46; background: #eaf7f0; font-size: 14px; line-height: 1.5; }
.inline-status.error { border-color: #e5b9b6; color: #7a4040; background: #fff0ef; }
.login-required { margin-top: 18px; padding: 18px; border: 1px solid #e8d493; border-radius: 5px; background: #fff8df; }
.login-required p { margin: 0 0 14px; color: #6c581b; font-size: 14px; }
.upload-form { display: grid; gap: 18px; margin-top: 20px; }
.field-grid, .file-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.upload-form label { display: grid; gap: 8px; color: #34414a; font-size: 13px; font-weight: 700; }
.upload-form input, .upload-form textarea { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid #bfc7ce; border-radius: 5px; color: #20252b; background: #fff; font: inherit; font-weight: 400; }
.upload-form textarea { resize: vertical; }
.upload-form input:focus-visible, .upload-form textarea:focus-visible { outline: 3px solid #8db7e8; outline-offset: 1px; }
.upload-form label span { color: #66717c; font-size: 12px; font-weight: 400; line-height: 1.5; }
.form-actions, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.form-hint { color: #66717c; font-size: 12px; }
.draft-list { display: grid; gap: 10px; margin-top: 16px; }
.draft-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid #d9dee2; }
.draft-copy { min-width: 0; }
.draft-title { margin: 0; color: #20252b; font-size: 15px; font-weight: 700; }
.draft-meta { margin: 5px 0 0; color: #66717c; font-size: 12px; }
.empty-state { margin: 14px 0 0; color: #66717c; font-size: 14px; }
.draft-item .command { flex: 0 0 auto; }
.draft-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.draft-actions.confirming { padding: 8px; border: 1px solid #e5b9b6; border-radius: 5px; background: #fff0ef; }
.delete-question { color: #7a4040; font-size: 12px; font-weight: 700; }
.command.danger { color: #7a3030; background: #fff; border-color: #d9aaa6; }
.command.danger:hover { background: #fff0ef; }
.topbar-actions { display: flex; gap: 8px; }
@media (max-width: 650px) {
  .upload-topbar { flex-wrap: wrap; }
  .topbar-actions { width: 100%; }
  .topbar-actions .command { flex: 1 1 0; }
  .upload-main { padding-top: 38px; }
  .field-grid, .file-grid { grid-template-columns: 1fr; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .draft-item { align-items: flex-start; flex-direction: column; }
  .draft-actions { width: 100%; justify-content: stretch; }
  .draft-actions .command { flex: 1 1 auto; }
  .draft-actions.confirming .delete-question { flex: 1 0 100%; }
}
