#menuEditor{width:min(1040px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #d9dde3;border-radius:8px;background:#fff;color:#242830;box-shadow:0 24px 80px #11182738;font:13px/1.45 Inter,Arial,sans-serif;letter-spacing:0}
#menuEditor::backdrop{background:#171b2466}
#menuEditor .menu-editor-shell{display:flex;flex-direction:column;height:min(740px,calc(100dvh - 36px));margin:0}
#menuEditor header,#menuEditor footer{display:flex;align-items:center;gap:12px;padding:16px 22px;flex-shrink:0}
#menuEditor header{border-bottom:1px solid #e5e7eb;justify-content:space-between}
#menuEditor h2{font-size:20px;margin:0 0 2px;letter-spacing:0}
#menuEditor header span,#menuEditor footer span{font-size:12px;color:#737983}
#menuEditor footer{border-top:1px solid #e5e7eb}
#menuEditor footer span{margin-right:auto}
#menuEditor .menu-editor-body{display:grid;grid-template-columns:260px minmax(0,1fr);overflow:auto;min-height:0;flex:1}
#menuEditor aside{background:#f7f8fa;padding:20px;border-right:1px solid #e5e7eb}
#menuEditor section{padding:20px 24px;min-width:0}
#menuEditor h3{font-size:13px;margin:0 0 14px;font-weight:700}
#menuEditor h3 span{color:#737983;font-weight:400}
#menuEditor aside details{border-bottom:1px solid #dfe3e9;padding:12px 0}
#menuEditor summary{cursor:pointer;font-weight:600;padding:3px 0 10px}
#menuEditor label{display:grid;gap:5px;margin:10px 0;color:#4d535e;font-size:12px}
#menuEditor input:not([type=checkbox]),#menuEditor select{width:100%;min-height:36px;padding:7px 9px;border:1px solid #cfd4dc;border-radius:4px;font:13px Inter,Arial,sans-serif;background:#fff;color:#242830}
#menuEditor .menu-page-options{max-height:220px;overflow:auto}
#menuEditor .menu-page-options label,#menuEditor .menu-check{display:flex;align-items:center;gap:8px}
#menuEditor input[type=checkbox]{width:16px;height:16px;accent-color:#146ef5;flex-shrink:0}
#menuEditor button{font:600 12px Inter,Arial,sans-serif;color:#454c58;background:#fff;border:1px solid #d5dae2;border-radius:4px;padding:8px 10px;letter-spacing:0}
#menuEditor button:has(>img){width:30px;height:32px;padding:6px;flex-shrink:0;display:grid;place-items:center}
#menuEditor button img{pointer-events:none}
#menuEditor button:hover{background:#edf3fa;border-color:#a7bed8}
#menuEditor button:focus-visible,#menuEditor input:focus-visible,#menuEditor select:focus-visible{outline:2px solid #2978ca;outline-offset:2px}
#menuEditor button:disabled{opacity:.3;cursor:default}
#menuEditor .primary{background:#146ef5;color:#fff;border-color:#146ef5}
#menuEditor .menu-item{margin:0 0 8px min(calc(var(--depth)*22px),90px);border:1px solid #dbe0e7;border-radius:5px;background:#fff}
#menuEditor .menu-item-bar{display:flex;align-items:center;gap:4px;padding:6px;background:#f8f9fb;border-radius:5px}
#menuEditor .menu-item-title{display:block;min-width:0;flex:1;text-align:left;background:none;border:0;padding:3px 4px;overflow-wrap:anywhere}
#menuEditor .menu-item-title strong{display:block;font-size:13px}
#menuEditor .menu-item-title small{display:block;font-size:11px;font-weight:400;color:#747b87;margin-top:3px}
#menuEditor .menu-item-bar>button:has(img){border-color:transparent;background:transparent}
#menuEditor .menu-drag{cursor:grab;touch-action:none;user-select:none}
#menuEditor .menu-item-fields{padding:4px 16px 16px;border-top:1px solid #e2e5ea}
#menuEditor .menu-row-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}
#menuEditor .menu-remove{color:#b92d35;margin-left:auto}
#menuEditor .menu-drop{outline:2px solid #146ef5;outline-offset:2px}
#menuEditor [data-error]{color:#b92d35;font-size:12px}
#menuEditor .menu-empty{color:#7a818c;padding:28px 0}
@media(max-width:680px){#menuEditor{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}#menuEditor .menu-editor-shell{height:calc(100dvh - 16px)}#menuEditor .menu-editor-body{grid-template-columns:1fr}#menuEditor aside{border-right:0;border-bottom:1px solid #e5e7eb;padding:14px}#menuEditor section{padding:14px}#menuEditor footer{flex-wrap:wrap;padding:12px}#menuEditor footer span{width:100%}#menuEditor .menu-item{margin-left:min(calc(var(--depth)*12px),40px)}}
