.editor-main { padding: calc(var(--header-total) + 16px) 16px 16px; }
.editor-day { margin-bottom: 24px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.editor-day h3 { margin: 0; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--border); display:flex; align-items:center; justify-content: space-between; gap:8px; }
.editor-day .day-title { flex: 1; font: inherit; color: inherit; background: transparent; border: none; outline: none; }
.editor-day .day-delete { display:none; width:32px; height:32px; border-radius:8px; align-items:center; justify-content:center; }
.editor-day .day-delete svg { display:block; }
.editor-day.editing .day-delete { display:inline-flex; }
.editor-table { width: 100%; border-collapse: collapse; background: var(--surface); color: var(--text); }
.editor-table th, .editor-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.editor-table th { text-align: left; color: var(--muted); font-weight: 600; }
.editor-table td input { width: 100%; background: transparent; border: none; color: var(--fg); outline: none; }
.editor-row { position: relative; }
.editor-row .delete-cell { width: 36px; text-align: right; }
.editor-table th.col-delete { width: 36px; }
.delete-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 0; -webkit-appearance: none; appearance: none; transition: color 0.15s ease; }
.delete-btn:hover { color: var(--boss-color); background: transparent; }
.delete-btn:focus { outline: none; box-shadow: none; }
.editor-day .table-actions { display: flex; gap: 8px; padding: 12px 16px; background: var(--panel); }
.btn { background: var(--panel); color: var(--text); border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.btn:hover { background: var(--hover); }
.icon-btn { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; padding:0; border-radius:8px; color: var(--text); }
.icon-btn:hover { color: var(--accent); }
.icon-btn svg { display:block; width:22px; height:22px; }
.icon-btn.active { background: var(--status-inprog-bg); border-color: var(--inprog); }
.editor-actions { padding: 8px 0; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display:none; align-items:center; justify-content:center; z-index: 1000; }
.modal { background: var(--bg); color: var(--fg); border:1px solid var(--border); border-radius:12px; min-width: 280px; max-width: 90vw; }
.modal header { padding: 12px 16px; border-bottom:1px solid var(--border); font-weight:600; }
.modal .content { padding: 16px; }
.modal .actions { padding: 12px 16px; display:flex; gap:8px; justify-content:flex-end; border-top:1px solid var(--border); }

