.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.actions .primary { flex: 1; }
.task-list { padding: 0; margin: 0; list-style: none; }
.task-list li { display: flex; align-items: center; gap: 8px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 9px 0; }
.task-list li:last-child { border-bottom: 0; }
.task-list button { flex: none; }
.task-list code { overflow-wrap: anywhere; display: block; }
.task-list small, .list-message { color: var(--muted); }
.list-message { font-size: .86rem; margin-top: 8px; }
.recent { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 12px; }
.recent h3, #preview-name { font-size: 1rem; margin: 0; }
#history-more { margin-top: 9px; }
#preview-dialog { width: min(830px, calc(100% - 30px)); max-height: calc(100% - 30px); padding: 22px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 100px #172b254f; }
#preview-dialog::backdrop { background: #1d362b8f; }
#preview-result { margin-top: 13px; }
.preview-map { margin-top: 10px; padding: 8px; background: #e5eee5; border: 1px solid var(--line); border-radius: 7px; overflow: auto; display: grid; justify-items: center; }
.preview-map canvas { display: block; max-width: 100%; max-height: min(55vh, 570px); width: auto; height: auto; }
.preview-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
@media (max-width: 550px) {
  #preview-dialog { padding: 14px; }
  .preview-actions .primary { width: 100%; }
}

