.draft-modal-card {
  max-width: 980px;
}

.draft-summary,
.draft-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.draft-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--panel-sub);
}

.draft-chip.primary {
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.24);
  background: var(--accent-soft);
}

.draft-warning {
  border: 1px solid rgba(217, 119, 6, 0.24);
  background: rgba(245, 158, 11, 0.08);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.draft-section {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.draft-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--ink);
}

.draft-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.draft-field-row {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.draft-field-row > span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.draft-field-row input,
.draft-field-row textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}

.draft-field-row textarea {
  resize: vertical;
  line-height: 1.55;
}

.draft-field-row input:focus,
.draft-field-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.draft-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.draft-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-sub);
  overflow: hidden;
}

.draft-list summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 13px;
}

.draft-list summary span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.draft-detail-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.draft-detail-body .draft-field-row:nth-child(n + 5) {
  grid-column: 1 / -1;
}

.draft-attach {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  min-width: 180px;
}

.draft-attach code {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.draft-checklist {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.draft-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.draft-status {
  margin-right: auto;
  color: var(--muted);
  font-size: 12.5px;
}

@media (max-width: 720px) {
  .draft-field-grid,
  .draft-detail-body {
    grid-template-columns: 1fr;
  }

  .draft-list summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .draft-footer .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
