body.editor-open .topbar{display:none}body.editor-open .scroll{display:flex;overflow:hidden}body.editor-open #view,body.editor-open .ed-root{flex:1;min-width:0;min-height:0;display:flex}body.ed-side-hidden .side{display:none}.ed{min-width:0;color:var(--text);background:#eef0f3;flex-direction:column;flex:1;display:flex}.ed-top{border-bottom:1px solid var(--border);background:#fff;flex:none;justify-content:space-between;align-items:center;gap:12px;height:64px;padding:0 14px;display:flex}.ed-group{align-items:center;gap:8px;display:flex}.ed-btn{border:1px solid var(--border);height:40px;color:var(--ink);cursor:pointer;white-space:nowrap;background:#fff;border-radius:10px;align-items:center;gap:8px;padding:0 14px;font-size:14px;font-weight:500;display:inline-flex}.ed-btn:hover:not(:disabled){background:var(--hover)}.ed-btn:disabled{opacity:.4;cursor:default}.ed-btn.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.ed-btn .i{width:18px;height:18px}.ed-icon{justify-content:center;width:40px;padding:0}.ed-publish{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.ed-publish:hover:not(:disabled){background:#0b6a41}.ed-devices{border:1px solid var(--border);background:#fff;border-radius:10px;display:flex;overflow:hidden}.ed-devices button{border:0;border-left:1px solid var(--border);height:40px;color:var(--text);cursor:pointer;background:0 0;align-items:center;gap:8px;padding:0 16px;font-size:14px;font-weight:500;display:inline-flex}.ed-devices button:first-child{border-left:0}.ed-devices button.on{background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);border-radius:9px}.ed-devices .i{width:18px;height:18px}.ed-body{flex:1;min-height:0;display:flex}.ed-canvas{flex:1;justify-content:center;min-width:0;padding:18px;display:flex;overflow:auto}.ed-frame-wrap{background:#fff;border-radius:10px;max-width:100%;height:100%;transition:width .25s;overflow:hidden;box-shadow:0 1px 3px #10182814,0 8px 24px #1018280f}.ed-frame{background:#fff;border:0;width:100%;height:100%;display:block}.ed-panel{border-left:1px solid var(--border);background:#fff;flex-direction:column;flex:none;width:360px;min-height:0;display:flex}.ed-tabs{border-bottom:1px solid var(--border);flex:none;justify-content:center;padding:0 16px;display:flex}.ed-tabs span{border-bottom:2px solid var(--accent);color:var(--accent);align-items:center;gap:8px;padding:14px 2px 12px;font-size:14px;font-weight:600;display:inline-flex}.ed-tabs .i{width:18px;height:18px}.ed-panel-head{flex:none;align-items:center;gap:8px;padding:14px 16px 6px;display:flex}.ed-panel-head b{color:var(--ink);flex:1;font-size:16px}.ed-icon-btn{width:32px;height:32px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;display:grid}.ed-icon-btn:hover{background:var(--hover);color:var(--ink)}.ed-icon-btn .i{width:18px;height:18px}.ed-only-sm{display:none}.ed-panel-body{scrollbar-gutter:stable;flex:1;padding:8px 16px 24px;overflow-y:auto}.ed-sub{color:var(--ink);margin:18px 0 10px;font-size:13px;font-weight:700}.ed-panel-body>.ed-sub:first-child{margin-top:6px}.ed-field{gap:6px;margin-bottom:14px;display:grid}.ed-field>label{color:var(--text);font-size:13px;font-weight:500}.ed-field .input,.ed-field .select,.ed-field .textarea{width:100%}.ed-field .textarea{resize:vertical;min-height:64px}.ed-link{grid-template-columns:1fr 1fr;gap:8px;display:grid}.ed-note{color:var(--muted);margin:6px 0 14px;font-size:12.5px;line-height:1.5}.ed-note a{color:var(--accent);font-weight:600}.ed-subhead{border-top:1px solid var(--border);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:22px 0 10px;padding-top:16px;font-size:12px;font-weight:700}.ed-toggle{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;margin-bottom:4px;padding:10px 0;font-size:14px;display:flex}.ed-image{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.ed-thumb{background:var(--hover);width:92px;height:68px;color:var(--muted);border:1px solid var(--border);border-radius:10px;flex:none;place-items:center;display:grid;overflow:hidden}.ed-thumb img{object-fit:cover;width:100%;height:100%}.ed-upload{cursor:pointer}.ed-upload.busy{opacity:.6;pointer-events:none}.ed-upload.busy:after{content:"Uploading…"}.btn-danger-soft{color:#b42318;background:#fff5f4;border-color:#fecdca}.btn-danger-soft:hover:not(:disabled){background:#fee4e2}.ed-seg{flex-wrap:wrap;gap:6px;display:flex}.ed-seg button{border:1px solid var(--border);min-width:64px;height:34px;color:var(--text);cursor:pointer;background:#fff;border-radius:8px;flex:1;padding:0 10px;font-size:13px}.ed-seg button.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:600}.ed-list{border:1px solid var(--border);background:#fafbfc;border-radius:12px;margin:4px 0 16px;padding:12px}.ed-list-head{justify-content:space-between;align-items:center;margin-bottom:8px;font-size:13px;display:flex}.ed-item{border:1px solid var(--border);background:#fff;border-radius:10px;margin-bottom:8px}.ed-item summary{cursor:pointer;align-items:center;gap:8px;padding:8px 8px 8px 12px;font-size:13.5px;font-weight:500;list-style:none;display:flex}.ed-item summary::-webkit-details-marker{display:none}.ed-item summary>span:first-child{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.ed-item-tools{gap:2px;display:flex}.ed-item-tools button{width:28px;height:28px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;display:grid}.ed-item-tools button:hover:not(:disabled){background:var(--hover);color:var(--ink)}.ed-item-tools button:disabled{opacity:.3;cursor:default}.ed-item-tools .i{width:16px;height:16px}.ed-item-body{border-top:1px solid var(--border);padding:4px 12px 2px}.ed-item-body .ed-field:first-child{margin-top:10px}.ed-add{justify-content:center;width:100%;margin-top:4px}.ed-chips{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.ed-outline{gap:4px;display:grid}.ed-row{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:10px;align-items:center;gap:10px;min-height:44px;padding:6px 8px;font-size:14px;display:flex}.ed-row:hover{background:var(--hover)}.ed-row.on{border-color:var(--accent);background:var(--accent-soft)}.ed-row-ico{background:var(--hover);width:30px;height:30px;color:var(--text);border-radius:8px;flex:none;place-items:center;display:grid}.ed-row-ico .i{width:16px;height:16px}.ed-row-label{min-width:0;color:var(--ink);flex:1;font-weight:500}.ed-row-label small{color:var(--muted);font-size:12px;font-weight:400;display:block}.ed-row-tools button{width:30px;height:30px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;display:grid}.ed-row-tools button:hover{color:var(--ink);background:#fff}.ed-row-tools .i{width:17px;height:17px}.ed-templates{grid-template-columns:1fr 1fr;gap:10px;display:grid}.ed-tpl{border:1px solid var(--border);text-align:left;cursor:pointer;background:#fff;border-radius:12px;gap:4px;padding:6px 6px 10px;display:grid}.ed-tpl:hover{border-color:var(--accent)}.ed-tpl.on{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.ed-tpl-thumb{border:1px solid #0000000f;border-radius:8px;height:92px;padding:12px 10px;display:block;position:relative;overflow:hidden}.ed-tpl-thumb b{max-width:75%;font-size:14px;line-height:1.15;display:block;position:relative}.ed-tpl-thumb i{opacity:.9;border-radius:50%;width:64px;height:64px;position:absolute;bottom:-14px;right:-14px}.ed-tpl-name{color:var(--ink);flex-wrap:wrap;align-items:center;gap:6px;padding:4px 4px 0;font-size:13.5px;font-weight:600;display:flex}.ed-tpl .muted{padding:0 4px}@media (max-width:1180px){.ed-label{display:none}.ed-devices button{padding:0 12px}.ed-btn{padding:0 10px}}@media (max-width:899px){.ed-top{gap:6px;height:56px;padding:0 8px}.ed-group{gap:4px}.ed-btn,.ed-devices button{height:36px}.ed-icon{width:36px}.ed-hide-sm,.ed-devices button[data-device=desktop]{display:none}.ed-canvas{padding:10px}.ed-frame-wrap{max-width:430px;width:100%!important}.ed-frame-wrap[data-device=tablet]{max-width:820px}.ed-panel{z-index:5;border-left:0;border-radius:18px 18px 0 0;width:auto;height:62vh;transition:transform .25s;position:fixed;bottom:0;left:0;right:0;transform:translateY(105%);box-shadow:0 -10px 40px #0000002e}.ed.panel-open .ed-panel{transform:none}.ed-only-sm{display:grid}}body.editor-open .overlay{z-index:300}body.editor-open .toast{z-index:310}.lib-overlay{place-items:center;padding:24px}.lib{background:#fff;border-radius:18px;flex-direction:column;width:min(1180px,100%);height:min(86vh,860px);display:flex;overflow:hidden;box-shadow:0 30px 80px #1018284d}@media (min-width:1024px){.lib{height:min(108vh,1000px)}}.lib-head{border-bottom:1px solid var(--border);flex:none;align-items:center;gap:16px;padding:18px 20px;display:flex}.lib-head>div{flex:1;gap:2px;display:grid}.lib-head b{color:var(--ink);font-size:19px}.lib-head span{color:var(--muted);font-size:13.5px}.lib-body{flex:1;grid-template-columns:210px 1fr;min-height:0;display:grid}.lib-cats{border-right:1px solid var(--border);background:#fafbfc;align-content:start;gap:2px;padding:14px 10px;display:grid;overflow-y:auto}.lib-cats button{height:38px;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:9px;align-items:center;gap:10px;padding:0 12px;font-size:14px;display:flex}.lib-cats button:hover{background:var(--hover)}.lib-cats button.on{background:var(--accent-soft);color:var(--accent);font-weight:600}.lib-cats .i{width:17px;height:17px}.lib-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));align-content:start;gap:18px;padding:18px;display:grid;overflow-y:auto}.lib-card{text-align:left;cursor:pointer;background:0 0;border:0;gap:10px;padding:0;display:grid}.lib-card[hidden]{display:none}.lib-prev{aspect-ratio:16/10;border:1px solid var(--border);background:#f3f4f6;border-radius:12px;transition:border-color .15s,box-shadow .15s;display:block;position:relative;overflow:hidden}.lib-prev iframe{transform-origin:0 0;pointer-events:none;background:#fff;border:0;width:1280px;position:absolute;top:0;left:0}.lib-add{color:#0000;background:#0e7a4b00;justify-content:center;align-items:center;gap:8px;font-size:15px;font-weight:600;transition:background .15s,color .15s;display:flex;position:absolute;inset:0}.lib-add .i{width:20px;height:20px}.lib-card:hover .lib-prev,.lib-card:focus-visible .lib-prev{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.lib-card:hover .lib-add,.lib-card:focus-visible .lib-add{color:#fff;background:#0e7a4bb8}.lib-name{gap:1px;padding:0 2px;display:grid}.lib-name b{color:var(--ink);font-size:14.5px}.lib-name span{color:var(--muted);font-size:13px}@media (max-width:760px){.lib-overlay{padding:0}.lib{border-radius:0;width:100%;height:100%}.lib-body{grid-template-rows:auto 1fr;grid-template-columns:1fr}.lib-cats{border-right:0;border-bottom:1px solid var(--border);padding:10px;display:flex;overflow-x:auto}.lib-cats button{flex:none}.lib-grid{grid-template-columns:1fr;padding:14px}}.ed-color{align-items:center;gap:10px;display:flex}.ed-color input[type=color]{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:8px;width:42px;height:34px;padding:2px}.ed-color span{color:var(--muted);flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.ed-show{grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:8px;display:grid}.ed-show-item{border:1.5px solid var(--border);color:var(--muted);cursor:pointer;border-radius:10px;justify-items:center;gap:4px;padding:10px 6px;font-size:12.5px;font-weight:600;display:grid}.ed-show-item input{opacity:0;pointer-events:none;position:absolute}.ed-show-item .i{width:20px;height:20px}.ed-show-item.on{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}.ed-show-item:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}.ed-row[draggable=true]{cursor:grab}.ed-grip{width:16px;color:var(--muted);opacity:.55;place-items:center;margin-right:-4px;display:grid}.ed-grip .i{width:14px;height:14px}.ed-row.dragging{opacity:.45}.ed-row.drop-before{box-shadow:inset 0 2px 0 var(--accent)}.ed-row.drop-after{box-shadow:inset 0 -2px 0 var(--accent)}.tb-bar{border-bottom:1px solid var(--border);background:#fff;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 14px;display:flex}.tb-bar b{font-size:15px}.tb-bar [data-tb-reset]{margin-left:auto}.tb-bar [hidden]{display:none}body.editor-open .ed-root:has(>.tb-bar){flex-direction:column}.ed-root>.tb-bar~.ed{flex:1;min-height:0}.ed-pshows{background:#f3faf6;border:1px solid #d7ecdf;border-radius:14px;margin-bottom:14px;display:grid;overflow:hidden}.ed-pshow{cursor:pointer;align-items:center;gap:10px;padding:10px 12px;display:flex}.ed-pshow+.ed-pshow{border-top:1px solid #d7ecdf}.ed-pshow>span:first-child{flex:1;gap:1px;min-width:0;display:grid}.ed-pshow b{color:#101828;font-size:14px}.ed-pshow small{color:#667085;font-size:12px}
