html{scrollbar-gutter:stable}
/* Motion answers a gesture: lift, move, settle. No idle decorative animation. */
.editor-shell{align-items:start;min-width:0}
.editor-menu{align-self:start;min-width:0;width:190px;box-sizing:border-box}
.editor-menu button{flex:none;min-height:44px}
.editor-body{width:100%;box-sizing:border-box;overflow-x:clip}
.editor-panel.active{transform-origin:top center}
#editor-services .editor-head{margin:26px 0 16px}
#editor-services .editor-head h2,.order-section-title{font-size:18px;margin:0;line-height:1.4}
#serviceCardOrder.service-order-editor{border:0;background:transparent;box-shadow:none;border-radius:0;padding:0;margin:0 0 28px}
.order-section-title{margin-bottom:16px}
.service-order-fold{margin-bottom:0}
.service-order-list{position:relative;max-width:none;margin:0;padding:4px 16px 10px}
.service-order-list li{box-sizing:border-box;min-height:66px;padding:10px 12px;margin:8px 0;border:1px solid #dfeaf1;border-radius:11px;background:#fff;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.service-order-list li:hover{border-color:#b6d9ec;background:#f9fdff}
.service-order-list li>span{font-weight:650;color:#29485f}
.service-order-list li.is-sort-placeholder{background:#eff8fd;border:1px dashed #8dcbe7}
.is-sort-placeholder>*{visibility:hidden}
.service-drag-ghost{position:fixed;top:0;left:0;z-index:1000;display:flex;align-items:center;gap:10px;box-sizing:border-box;padding:10px 12px;margin:0;list-style:none;border:1px solid #79c6e8;border-radius:11px;background:#fff;box-shadow:0 18px 38px #1b567c35,0 3px 9px #204d7020;pointer-events:none;scale:1.035;will-change:transform;transform-origin:center;contain:layout style}
.service-drag-ghost>span{flex:1;font-size:13px;font-weight:650;min-width:0;color:#29485f}
.service-drag-ghost>div{display:flex;gap:6px}
.service-drag-ghost .button{width:36px;min-height:36px;padding:7px;display:grid;place-items:center}
.service-drag-ghost .button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
.service-drag-ghost [data-direction="-1"] svg{transform:rotate(90deg)}
.service-drag-ghost [data-direction="1"] svg{transform:rotate(90deg)}
.service-sorting,.service-sorting *{cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important}
.editor-fold{overflow:clip}
.editor-fold>summary{transition:background-color .18s}
.editor-fold.fold-closing>summary>svg{transform:rotate(0deg)}
.fold-content{display:flow-root;min-width:0}
.fold-content>.autospa-service-group,.fold-content>.service-card,.fold-content>.form-card{border:0;border-radius:0;box-shadow:none;margin:0;padding:20px;border-top:1px solid var(--line)}
.autospa-service-group>.service-item-fold{margin-top:10px}
.service-item-fold>summary{min-height:58px;padding:14px 16px}
.service-item-fold .service-card-head{justify-content:flex-end;margin:0 0 14px}
.released-site-icon{background:var(--accent,#28a9ed);background-image:none}
.admin-toolbar{position:sticky;bottom:12px;z-index:12;justify-content:center;margin:24px 0 0;padding:12px;background:#ffffffed;border:1px solid var(--line);border-radius:14px;backdrop-filter:blur(14px)}
.admin-toolbar #newSiteButton{min-height:48px;width:100%;max-width:400px}
dialog.admin-create-panel{position:fixed;inset:0;margin:auto;width:min(650px,calc(100% - 28px));max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--line);border-radius:20px;background:#fff;color:var(--ink);box-shadow:0 24px 80px #163c5c35;overscroll-behavior:contain}
dialog.admin-create-panel::backdrop{background:#122d4966;backdrop-filter:blur(5px)}
dialog.admin-create-panel>.form-card{border:0;margin:0;padding:30px;box-shadow:none;border-radius:0}
dialog.admin-create-panel h2{padding-right:44px;margin:0 0 24px}
.new-site-close{position:absolute;top:17px;right:17px;z-index:2;display:grid;place-items:center;background:#f1f7fb;border-radius:10px;width:38px;height:38px}
.new-site-close svg{width:20px;height:20px}
@media(max-width:900px){.admin-toolbar{bottom:calc(var(--catalog-nav-space,78px) + 10px)}}
@media(max-width:800px){.editor-menu,.catalog-wide .editor-menu{display:flex;flex-direction:row;align-items:center;align-self:stretch;width:100%;height:64px;min-height:64px;max-height:64px;gap:4px;padding:8px;border-right:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.editor-menu::-webkit-scrollbar{display:none}.editor-menu button,.catalog-document .editor-menu button{flex:0 0 auto;white-space:nowrap;min-width:0;max-height:46px;padding:12px 14px;text-align:center;font-size:12px}.editor-shell{grid-template-columns:minmax(0,1fr)}.service-drag-ghost>span{font-size:12px}}
@media(max-width:650px){.editor-menu,.catalog-wide .editor-menu{display:flex}.editor-body{padding:20px 16px}.fold-content>.autospa-service-group,.fold-content>.service-card,.fold-content>.form-card{padding:14px}.service-order-list{padding:2px 10px 8px}.service-order-list li{padding:9px 8px;gap:7px}.service-drag-ghost{padding:9px 8px;gap:7px}.service-drag-ghost .button{width:32px;padding:5px}.service-drag-ghost .order-drag-handle{width:24px}.service-order-list li>span{font-size:12px}.order-section-title,#editor-services .editor-head h2{font-size:17px}dialog.admin-create-panel>.form-card{padding:24px 20px}.admin-toolbar{padding:10px;margin-top:18px}}
@media(prefers-reduced-motion:reduce){.editor-menu button,.editor-fold>summary,.editor-fold>summary>svg{transition:none!important}.service-drag-ghost{scale:1;will-change:auto}}

#page-admin.active{display:flex;flex-direction:column;min-height:calc(100dvh - 180px)}
#page-admin .admin-toolbar{margin-top:auto;padding-top:24px;background:transparent;border:0;backdrop-filter:none}
@keyframes panel-section-enter{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){.page.active:not(#page-editor),.settings-section:not([hidden]){animation:panel-section-enter .2s cubic-bezier(.22,1,.36,1)}.modal-backdrop:not(.hidden)>.modal{animation:panel-section-enter .2s cubic-bezier(.22,1,.36,1)}}
@media(max-width:900px){#page-admin.active{min-height:calc(100dvh - 175px)}}

@media(max-width:800px){.editor-menu button,.catalog-document .editor-menu button{flex:1 1 0;white-space:normal;min-height:44px;height:44px;max-height:44px;padding:8px 5px;font-size:11px;line-height:1.25}}
.order-drag-handle{color:#607d91}

.catalog-wide .editor-menu{width:100%;height:64px;min-height:64px;max-height:64px;align-self:stretch}
