.dl-workspace { min-width:0; }
.dl-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:18px; }
.dl-heading h1 { margin:0 0 6px; font-size:24px; }
.dl-heading p { color:var(--muted); font-size:12px; max-width:760px; margin:0; line-height:1.7; }
.dl-batchbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.dl-batchbar select { min-width:240px; max-width:100%; }
.dl-steps { display:flex; flex-wrap:wrap; gap:7px; padding:16px 0; }
.dl-steps button { font-size:12px; }
.dl-steps button.active { background:#dbe7d3; color:#214634; border-color:#bdceb2; }
.dl-panel { padding:18px; border:1px solid var(--line); background:var(--surface); border-radius:8px; min-width:0; margin-bottom:16px; }
.dl-section { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.dl-section h2,.dl-section h3 { margin:0; }
.dl-record { padding:15px 0; border-top:1px solid var(--line); min-width:0; }
.dl-record:first-child { border-top:0; }
.dl-record small,.dl-meta { color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.dl-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; font-size:12px; }
.dl-long summary { cursor:pointer; font-size:12px; line-height:1.65; overflow-wrap:anywhere; padding:7px 0; }
.dl-long .dl-text { max-height:210px; overflow:auto; background:#fff; border:1px solid var(--line); padding:10px; border-radius:4px; }
.dl-hash { font-family:ui-monospace,monospace; font-size:10px; overflow-wrap:anywhere; line-height:1.6; }
.dl-table-wrap { overflow:auto; max-width:100%; border:1px solid var(--line); border-radius:5px; margin:14px 0; }
.dl-table { width:100%; min-width:700px; border-collapse:collapse; font-size:12px; }
.dl-table th { text-align:left; font-weight:600; color:#456b58; background:#f1f6ec; }
.dl-table th,.dl-table td { padding:11px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.dl-table td:first-child { overflow-wrap:anywhere; max-width:440px; }
.dl-table td small { display:block; margin-top:5px; color:var(--muted); }
.dl-file-path { overflow-wrap:anywhere; white-space:pre-wrap; font-family:ui-monospace,monospace; font-size:11px; }
.dl-state { display:inline-flex; align-items:center; padding:3px 7px; border:1px solid #c5d4bc; background:#edf4e6; color:#35523f; border-radius:4px; font-size:11px; white-space:normal; }
.dl-state.error { background:#fff0e8; color:var(--danger); border-color:#e5c6b8; }
.dl-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.dl-actions a { display:inline-flex; gap:5px; padding:8px 12px; text-decoration:none; border:1px solid var(--line); border-radius:5px; color:#254d37; font-size:12px; }
.dl-progress { display:grid; gap:6px; font-size:11px; color:var(--muted); margin:12px 0; }
.dl-progress progress { width:100%; accent-color:#456b3c; }
.dl-modal { width:min(1050px,calc(100vw - 32px)); display:flex; flex-direction:column; max-height:calc(100dvh - 32px); }
.dl-modal .modal-body { overflow:auto; min-height:0; min-width:0; }
.dl-modal>form { display:flex; flex-direction:column; min-height:0; }
.dl-modal .modal-footer { flex:none; flex-wrap:wrap; }
.dl-field { display:grid; gap:6px; margin:14px 0; min-width:0; font-size:12px; }
.dl-field>span { font-weight:600; }
.dl-field small { color:var(--muted); font-size:11px; line-height:1.6; }
.dl-field input,.dl-field select,.dl-field textarea { width:100%; max-width:100%; }
.dl-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.dl-check { display:flex; align-items:flex-start; gap:8px; line-height:1.6; font-size:12px; margin:10px 0; }
.dl-check input { flex:none; width:16px; height:16px; margin-top:2px; }
.dl-check>span { min-width:0; overflow-wrap:anywhere; }
.dl-files { max-height:360px; overflow:auto; border:1px solid var(--line); border-radius:5px; padding:10px; margin:12px 0; }
.dl-files .dl-check { border-bottom:1px solid var(--line); padding:6px 0 10px; }
.dl-files .dl-check:last-child { border-bottom:0; }
.dl-error:not(:empty) { color:var(--danger); background:#fff0e8; padding:12px; border:1px solid #e6c5b7; border-radius:5px; margin:14px 0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
.dl-preview-metrics { display:flex; flex-wrap:wrap; gap:16px; padding:12px 0; font-size:12px; }
.dl-preview-metrics strong { font-size:16px; }
.dl-manifest { max-height:300px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; padding:12px; border:1px solid var(--line); border-radius:4px; font-size:11px; }
@media(max-width:540px) {
 .dl-heading { flex-direction:column; gap:10px; }
 .dl-heading h1 { font-size:21px; }
 .dl-batchbar { display:grid; grid-template-columns:1fr; }
 .dl-batchbar select { width:100%; min-width:0; }
 .dl-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
 .dl-steps button { padding:9px 6px; font-size:11px; white-space:normal; }
 .dl-panel { padding:14px; }
 .dl-form-grid { grid-template-columns:1fr; }
 .dl-modal { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); }
 .dl-modal .modal-header,.dl-modal .modal-body,.dl-modal .modal-footer { padding:15px; }
 .dl-modal .modal-header h2 { font-size:16px; }
 .dl-modal .modal-footer { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .dl-modal .modal-footer button { min-width:0; white-space:normal; line-height:1.5; padding:9px; }
 .dl-modal .modal-footer .primary:last-child { grid-column:1/-1; }
 .dl-preview-metrics { gap:10px; }
}
