.editor-touch-hint{display:none}
.editor-actionbar{display:contents}.editor-leave-dialog{box-sizing:border-box;width:min(530px,calc(100vw - 28px));max-height:calc(100dvh - 28px);border:1px solid #e6e9ef;border-radius:19px;padding:24px;color:#395363;background:#fff;overflow:auto}.editor-leave-dialog::backdrop{background:#1e333b70;backdrop-filter:blur(4px)}.editor-leave-dialog header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0;margin:0 0 12px;border:0}.editor-leave-dialog h2{font-size:21px}.leave-close{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:50%;background:#f3f5fa;color:#94a3b5;font-size:23px;line-height:1}.editor-leave-dialog p{font-size:12px;line-height:1.8;color:#9aa7b4}.leave-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}.leave-actions button{min-height:40px;padding:9px 15px;border:1px solid #e3e8ef;border-radius:9px;background:#fff;font-size:12px}.leave-actions [data-leave=discard]{color:#a57974;background:#fff8f6;border-color:#f0dfd9}.leave-actions [data-leave=save]{color:#fff;background:#7861cf;border-color:transparent}.leave-error{color:#bd7c74!important;margin-top:12px!important}.editor-status .unsaved{color:#aa8b5e}.editor-header #editor-save-top{font-size:12px;white-space:nowrap}.card-code{font:12px/1.7 ui-monospace,Consolas,monospace;min-width:150px;margin-bottom:7px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
@media(max-width:760px){
 #bead-editor[open]{display:block!important;position:fixed;inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;padding:0;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;border-radius:0;scroll-padding-top:115px}
 #bead-editor .editor-header{display:grid;grid-template-columns:60px minmax(0,1fr);height:auto;min-height:0;padding:9px 10px;gap:8px;position:sticky;top:0;z-index:12;background:#fff;box-shadow:0 2px 10px #32496308}
 #bead-editor .editor-back{min-height:33px;height:33px;min-width:56px;padding:0 7px;gap:4px;font-size:11px;border-radius:7px}#bead-editor .editor-back span{display:inline!important}
 #bead-editor .editor-document{min-width:0;overflow:hidden}#bead-editor .editor-document input{font-size:13px;line-height:1.5;max-width:100%}#bead-editor .editor-document small{font-size:9px;overflow:hidden;text-overflow:ellipsis}
 #bead-editor .editor-actionbar{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:6px;min-width:0}#bead-editor .editor-document{padding-right:68px;grid-column:2;grid-row:1}#bead-editor .editor-history{grid-area:auto;position:absolute;right:10px;top:10px;margin:0;gap:4px;display:flex}#bead-editor .editor-history button{width:29px;height:32px;min-height:32px}
 #bead-editor .editor-actionbar>.editor-secondary,#bead-editor .editor-actionbar>.editor-primary,#bead-editor .editor-actionbar>.editor-cancel{grid-column:auto;grid-row:auto;justify-self:stretch;width:auto;min-width:0;max-width:100%;padding:6px 4px;min-height:38px;height:auto;font-size:11px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;border-radius:7px}#bead-editor .editor-actionbar>.editor-primary .icon{display:none}#bead-editor .editor-how{display:none}
 #bead-editor .editor-layout{display:flex!important;flex-direction:column;min-height:0;height:auto;overflow:visible}#bead-editor .editor-tool-rail{flex:0 0 auto;height:56px;width:100%;position:static;justify-content:flex-start;overflow-x:auto;touch-action:pan-x}
 #bead-editor .editor-main{display:flex;flex-direction:column;overflow:visible;min-height:0;flex:0 0 auto}#bead-editor .editor-context{flex-wrap:wrap;gap:6px;padding:7px 9px}#bead-editor .editor-brush-controls{margin-left:0}#bead-editor .editor-zoom{margin-left:auto}
 #bead-editor .editor-quick-actions{display:flex;flex-wrap:wrap;gap:6px;overflow:visible;padding:8px 9px;min-height:0}#bead-editor .editor-quick-actions>button,#bead-editor .editor-quick-actions>label{font-size:10px;min-height:30px;white-space:nowrap;flex-shrink:0}
 #bead-editor .editor-reference-options{display:flex;flex-wrap:wrap;flex:1 0 100%;margin:0;padding:7px 0 0;border-top:1px solid #edf0f6;gap:9px;align-items:center}#bead-editor .editor-reference-options>label{font-size:10px;display:flex;align-items:center;gap:6px;white-space:nowrap}#bead-editor .editor-reference-options select{width:104px;min-width:104px;min-height:30px;font-size:11px;margin:0;padding:3px 7px;border:1px solid #e2e8ef;border-radius:6px}#bead-editor .editor-reference-upload{min-height:30px;padding:5px 8px}#bead-editor .editor-reference-controls{flex-wrap:wrap}
 #bead-editor .editor-canvas-host{display:block;flex:none;height:clamp(300px,52dvh,520px);min-height:300px;max-height:none;overflow:hidden}#bead-editor #canvas-stage{display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;height:100%!important;min-height:0!important;max-height:none!important;width:100%;overflow:auto!important;padding:14px!important;touch-action:none;overscroll-behavior:contain}#bead-editor #pattern-canvas{flex:none!important;max-width:none!important;max-height:none!important;margin:auto;touch-action:none!important}
 #bead-editor .editor-status{font-size:9px;padding:9px 11px;min-height:32px;gap:10px}#bead-editor .editor-status:before{content:none}#bead-editor .editor-touch-hint{display:inline;color:#a1aab8;font-size:10px;line-height:1.6}#bead-editor .editor-status{flex-wrap:wrap}#bead-editor #editor-position{display:none}
 #bead-editor .editor-inspector{display:flex;flex-direction:column;min-height:340px;height:auto;max-height:none;overflow:visible;border-top:1px solid #e4eaf2;border-left:0}#bead-editor .editor-inspector-tabs{position:sticky;top:99px;z-index:6;background:#fff;min-height:42px}#bead-editor .editor-panel{height:auto;max-height:none;overflow:visible;min-height:0}#bead-editor #editor-panel-palette{display:flex;flex-direction:column;gap:0;padding:0}
 #bead-editor .editor-current-color{display:flex;margin:12px 14px;padding:12px;gap:12px;align-items:center;border-radius:10px}#bead-editor #editor-current-swatch{width:42px;height:42px;min-height:42px;margin:0;flex:0 0 42px}#bead-editor .editor-current-color>div{display:block;min-width:0}#bead-editor .editor-current-color>div>span{display:block;font-size:10px}#bead-editor .editor-current-color small{font-size:10px}
 #bead-editor .editor-palette-scroll{height:auto;max-height:none;overflow:visible;padding:0 14px 18px}#bead-editor #editor-palette{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}#bead-editor #editor-palette button{min-height:37px;font-size:10px}#bead-editor .editor-search{position:static;margin-bottom:12px}#bead-editor .editor-search input{font-size:16px}#bead-editor .editor-search #editor-color-scope{width:62px;min-width:62px;font-size:11px}
 #bead-editor .editor-inspector-footer{position:static;display:flex;gap:8px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:#fff}#bead-editor .editor-inspector-footer button{flex:1;min-height:39px;font-size:11px}#bead-editor .editor-inspector-footer button span{display:inline}
 #bead-editor .editor-scroll-panel{padding:16px}#bead-editor .editor-panel[hidden]{display:none!important}.editor-leave-dialog{padding:20px;border-radius:17px}.editor-leave-dialog h2{font-size:19px}.leave-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px}.leave-actions button{padding:10px 4px;font-size:11px;min-height:42px}
 .site-feedback-dialog header button,.case-image-dialog header button,.contact-close,#modal .modal-heading #modal-close,.leave-close{position:relative!important;width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;min-height:34px!important;max-height:34px!important;flex:0 0 34px!important;border:0!important;box-shadow:none!important;outline-offset:2px;background:#f4f5f9!important;font-size:0!important;color:#96a0b1!important}
 .site-feedback-dialog header button:before,.site-feedback-dialog header button:after,.case-image-dialog header button:before,.case-image-dialog header button:after,.contact-close:before,.contact-close:after,#modal .modal-heading #modal-close:before,#modal .modal-heading #modal-close:after,.leave-close:before,.leave-close:after{content:'';position:absolute;left:10px;top:16px;width:14px;height:1.5px;border-radius:2px;background:currentColor;transform:rotate(45deg)}
 .site-feedback-dialog header button:after,.case-image-dialog header button:after,.contact-close:after,#modal .modal-heading #modal-close:after,.leave-close:after{transform:rotate(-45deg)}
}

@media(max-width:760px){.contact-popover .contact-close{position:absolute!important;right:8px;top:8px}}
