/* Служебные стили редактора. Дизайн страниц не меняют — только рамки и панели. */

.admin-bar { display: none !important; }

.adminbar {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    background: #12181f;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
    font: 500 12.5px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.adminbar__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6ee7a8;
    margin-left: 4px;
}

.adminbar__label { color: #9aa7b2; }

.adminbar__btn {
    font: inherit;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
}

.adminbar__btn:hover { background: rgba(255, 255, 255, 0.22); }
.adminbar__btn[aria-pressed="true"] { background: #2196f3; border-color: #2196f3; }
.adminbar__btn--ghost { background: transparent; color: #c9d3dc; }
.adminbar__form { margin: 0; display: flex; }

.editbar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 9995;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    max-width: calc(100vw - 32px);
    padding: 7px 9px;
    background: #12181f;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 46px -20px rgba(0, 0, 0, 0.6);
    font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.editbar button {
    font: inherit;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    padding: 5px 9px;
    cursor: pointer;
}

.editbar button:hover { background: rgba(255, 255, 255, 0.12); }

.editbar__save {
    background: #2196f3 !important;
    border-color: #2196f3 !important;
    font-weight: 600 !important;
}

.editbar__status { padding: 0 8px; font-size: 12px; color: #9aa7b2; }
.editbar__status--error { color: #ffb0a3; }
.editbar__sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.18); margin: 0 3px; }

body.edit-mode .blk.is-editable {
    outline: 1px dashed rgba(33, 150, 243, 0.55);
    outline-offset: -1px;
    cursor: text;
}

body.edit-mode .blk.is-editable:hover { outline-color: rgba(33, 150, 243, 0.95); }

body.edit-mode .blk.is-active {
    outline: 2px solid #2196f3;
    outline-offset: -2px;
}

.blk[contenteditable="true"] { outline-offset: -2px; }
.blk[contenteditable="true"]:focus { outline: 2px solid #2196f3; }

.blk [contenteditable="true"]:focus {
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.35);
    border-radius: 2px;
}

@media (max-width: 640px) {
    .adminbar { right: 8px; bottom: 8px; }
    .editbar { left: 8px; right: 8px; transform: none; max-width: none; }
}

.adminbar a.adminbar__btn { text-decoration: none; display: inline-flex; align-items: center; }
