/* Режим редактора */
#ed-bar { position: fixed; top: 10px; left: calc(var(--side-w) + 16px); right: 16px; z-index: 900; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--ink); color: var(--paper); border-radius: 10px; padding: 8px 10px 8px 14px; box-shadow: var(--shadow); font-size: 14px; }
#ed-bar .btn { border-color: var(--paper); }
#ed-bar .btn:not(.btn-primary) { background: transparent; color: var(--paper); }
#ed-bar .btn:not(.btn-primary):hover { background: rgba(255,255,255,.1); }
.ed-bar-text { flex: 1; min-width: 180px; }
.ed-bar-dot { width: 9px; height: 9px; border-radius: 50%; background: #7C8CFF; flex: none; }
body.editor-on .view { padding-top: 78px; }
body.editor-on .ed-hover { outline: 1.5px dashed var(--blue); outline-offset: 2px; cursor: text; border-radius: 3px; }
.ed-toggle.on { color: var(--blue); font-weight: 600; }
.ed-body { display: flex; flex-direction: column; gap: 10px; }
.ed-where { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 600; }
.ed-was { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.ed-was p { margin: 2px 0 0; color: var(--muted); }
.ed-text { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--card); font: inherit; font-size: 15px; resize: vertical; }
.ed-text:focus { border-color: var(--blue); outline: none; }
.ed-choices { display: flex; flex-direction: column; gap: 6px; }
.ed-choice { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); cursor: pointer; }
.ed-choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.ed-choice input { margin-top: 3px; }
.ed-choice span { display: flex; flex-direction: column; gap: 1px; }
.ed-hint, .ed-keys { font-size: 13px; color: var(--muted); margin: 0; }
.ed-list { display: flex; flex-direction: column; gap: 6px; }
.ed-list-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: start; }
.ed-list-was { font-size: 13px; color: var(--muted); text-decoration: line-through; padding-top: 7px; }
.ed-list-now { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font: inherit; font-size: 14px; background: var(--card); resize: vertical; }
@media (max-width: 900px) {
  #ed-bar { left: 8px; right: 8px; top: 8px; font-size: 13px; }
  body.editor-on .view { padding-top: 118px; }
}
@media (max-width: 560px) { .ed-list-row { grid-template-columns: 1fr auto; } .ed-list-was { grid-column: 1 / -1; padding-top: 0; } }
