.ed-workspace { min-width:0; max-width:1560px; margin:0 auto; }
.ed-heading,.ed-section-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; flex-wrap:wrap; }
.ed-heading { margin-bottom:18px; }
.ed-heading h1 { margin:0 0 5px; font-size:25px; }
.ed-heading p,.ed-section-heading p { margin:0; color:var(--muted); font-size:12px; }
.ed-actions { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.ed-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:18px; }
.ed-tabs button { min-height:35px; font-size:12px; }
.ed-tabs .active { color:var(--teal); border-color:#a3bdae; background:var(--teal-soft); }
.ed-layout { display:grid; grid-template-columns:260px minmax(0,1fr); gap:18px; align-items:start; }
.ed-layout > * { min-width:0; }
.ed-panel { min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:17px; }
.ed-panel h2 { margin:0 0 10px; font-size:15px; }
.ed-panel h3,.ed-section-heading h3 { margin:0 0 7px; font-size:13px; }
.ed-sequence-list { display:grid; gap:6px; }
.ed-sequence-row { display:flex; align-items:center; gap:7px; border-bottom:1px solid var(--line); padding:8px 0; }
.ed-sequence-row:last-child { border-bottom:0; }
.ed-sequence-row > button:first-child { flex:1; min-width:0; text-align:left; }
.ed-sequence-row strong,.ed-sequence-row small { display:block; overflow-wrap:anywhere; }
.ed-sequence-row small { color:var(--muted); font-size:10px; margin-top:4px; }
.ed-sequence-row .active { color:var(--teal); background:var(--teal-soft); }
.ed-toolbar { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin:14px 0; }
.ed-toolbar input { min-width:140px; flex:1; max-width:340px; }
.ed-table-wrap { max-width:100%; min-width:0; overflow:auto; border:1px solid var(--line); border-radius:7px; background:var(--surface); }
.ed-table { width:100%; border-collapse:collapse; font-size:12px; text-align:left; }
.ed-table th { background:#eef2e9; color:#5e7064; padding:10px 12px; font-size:11px; white-space:nowrap; }
.ed-table td { padding:11px 12px; vertical-align:top; border-top:1px solid var(--line); }
.ed-table td small { display:block; margin-top:4px; font-size:10px; color:var(--muted); overflow-wrap:anywhere; }
.ed-table tbody tr:hover { background:#f8faf5; }
.ed-table .ghost { min-height:25px; font-size:12px; padding:0; text-align:left; color:var(--teal); }
.ed-table input,.ed-table select { width:100%; min-height:33px; padding:5px 7px; font-size:11px; }
.ed-edit-table { min-width:1120px; }
.ed-edit-table th:nth-child(1) { width:40px; }
.ed-edit-table th:nth-child(2) { width:185px; }
.ed-edit-table th:nth-child(3) { width:165px; }
.ed-edit-table th:nth-child(4) { width:160px; }
.ed-edit-table input[type=number] { min-width:75px; }
.ed-edit-table .ed-row-note { min-width:150px; }
.ed-edit-table .ed-actions { flex-wrap:nowrap; }
.ed-subtle { font-size:11px; color:var(--muted); margin:10px 0; }
.ed-empty { text-align:center; padding:35px 18px; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.ed-empty h3 { margin:0 0 7px; font-size:16px; }
.ed-empty p { margin:0; color:var(--muted); font-size:12px; }
.ed-badge { display:inline-block; border-radius:4px; padding:3px 6px; font-size:10px; background:#edf2e8; color:#55705b; white-space:nowrap; }
.ed-badge.warning { background:#f7eed7; color:#866b36; }
.ed-badge.change { background:#e1eee9; color:#36715e; }
.ed-badge.error { background:#fbe8df; color:#a04c38; }
.ed-modal { width:min(1280px,100%); }
.ed-modal .modal-body { min-width:0; }
.ed-modal input,.ed-modal select,.ed-modal textarea { max-width:100%; }
.ed-field { display:grid; gap:6px; margin-bottom:14px; font-size:12px; }
.ed-field small { font-size:11px; color:var(--muted); }
.ed-field textarea { white-space:pre-wrap; }
.ed-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 15px; }
.ed-form-grid > * { min-width:0; }
.ed-form-error:not(:empty) { color:var(--danger); background:#fff0e7; border-radius:6px; padding:12px; margin:14px 0; white-space:pre-wrap; font-size:12px; }
.ed-csv { min-height:220px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:11px; }
.ed-import-summary { font-size:11px; color:var(--muted); overflow-wrap:anywhere; }
.ed-preview-grid { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:18px; }
.ed-preview-grid > * { min-width:0; }
.ed-preview-summary { display:flex; flex-wrap:wrap; gap:7px; margin:13px 0; }
.ed-diff-table { min-width:940px; }
.ed-diff-table td { max-width:290px; overflow-wrap:anywhere; }
.ed-diff-value { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.ed-diff-value del { color:#8a655b; }
.ed-impact-list { display:grid; gap:8px; }
.ed-impact-item { border-top:1px solid var(--line); padding:10px 0; font-size:12px; }
.ed-impact-item p { margin:4px 0; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.ed-impact-item strong { display:block; overflow-wrap:anywhere; }
.ed-preview-sidebar { background:#f5f7f0; border:1px solid var(--line); border-radius:7px; padding:15px; }
.ed-check { display:flex; gap:8px; align-items:flex-start; margin:12px 0; font-size:12px; }
.ed-check input { margin-top:3px; }
.ed-version-title { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ed-version-title h2 { margin:0; font-size:16px; }
.ed-version-meta { margin:8px 0 14px; font-size:11px; color:var(--muted); overflow-wrap:anywhere; }
.ed-history { display:grid; gap:7px; }
.ed-history-item { padding:10px 0; border-top:1px solid var(--line); font-size:12px; }
.ed-history-item p { margin:5px 0; color:var(--muted); font-size:11px; white-space:pre-wrap; overflow-wrap:anywhere; }
.ed-wide { grid-column:1/-1; }
@media(max-width:1000px) {
  .ed-layout { grid-template-columns:1fr; }
  .ed-sequence-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ed-preview-grid { grid-template-columns:1fr; }
}
@media(max-width:540px) {
  .ed-heading h1 { font-size:23px; }
  .ed-layout { gap:13px; }
  .ed-panel { padding:14px; }
  .ed-sequence-list,.ed-form-grid { grid-template-columns:1fr; }
  .ed-table { min-width:720px; }
  .ed-edit-table { min-width:1120px; }
  .ed-toolbar input { max-width:none; }
  .ed-modal .modal-header,.ed-modal .modal-body,.ed-modal .modal-footer { padding:16px; }
  .ed-modal .modal-header h2 { font-size:17px; }
  .ed-modal .modal-footer { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ed-modal .modal-footer .ed-subtle { grid-column:1/-1; }
  .ed-modal .modal-footer > :last-child.primary:nth-child(n+3) { grid-column:1/-1; }
  .ed-modal .modal-footer button { min-width:0; width:100%; }
  .ed-preview-sidebar { padding:13px; }
}

.ed-saved-reason-preview { overflow-wrap:anywhere; }
.ed-saved-reason { margin:6px 0 12px; padding-top:6px; }
.ed-saved-reason summary { font-size:11px; }
.ed-saved-reason-text { max-height:180px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px; line-height:1.7; color:var(--muted); padding:10px 12px; background:#f6f8f1; border-radius:5px; }
