.editor-shell { width: min(1480px, calc(100% - 28px)); margin: 24px auto 60px; display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.panel-lite { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 10px 30px rgba(21,35,48,.05); }
.sidebar { position: sticky; top: 96px; }
.sidebar-head, .nodes-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.sidebar h2, .nodes-head h2 { margin: 0; }
.icon-btn { width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-size: 24px; }
.flow-nav { display: grid; gap: 8px; margin-top: 16px; }
.flow-nav button { text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; }
.flow-nav button.active { border-color: var(--accent); background: #eef5fd; }
.sidebar hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.file-label { display: block; padding: 11px 12px; border: 1px dashed #b8c5d0; border-radius: 10px; font-weight: 700; text-align: center; cursor: pointer; }
.file-label input { display: none; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.link-btn { display: inline-block; text-decoration: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.form-grid label { color: var(--muted); font-size: 13px; font-weight: 700; display: grid; gap: 7px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: end; justify-content: flex-end; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; color: var(--text); background: #fff; }
textarea { resize: vertical; }
.danger { background: #f8eaea; color: #8c2929; }
.nodes-panel { padding: 22px; }
.nodes-list { display: grid; gap: 14px; margin-top: 18px; }
.node-editor { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fcfdfe; }
.node-editor-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 14px; }
.node-editor-head strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.node-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.node-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.node-grid .wide { grid-column: 1 / -1; }
.small-danger { border: 0; background: transparent; color: #9b2f2f; font-weight: 800; }
.validation-box { border-radius: 12px; padding: 12px 14px; margin-top: 16px; line-height: 1.5; }
.validation-ok { background: #eaf6ef; color: #17613d; }
.validation-error { background: #fbecec; color: #8d2e2e; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 900px) {
  .editor-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 650px) {
  .form-grid, .node-grid { grid-template-columns: 1fr; }
  .form-grid .wide, .node-grid .wide { grid-column: auto; }
}
