#sg-editor-launcher{position:fixed;inset:0;z-index:2147482000;display:none;align-items:center;justify-content:center;background:rgba(3,8,18,.52);backdrop-filter:blur(5px);font-family:Arial,"Noto Sans KR",sans-serif}
#sg-editor-launcher.open{display:flex}
#sg-editor-launcher .sgel-card{width:min(420px,calc(100vw - 32px));border:1px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(19,26,39,.97);box-shadow:0 24px 70px rgba(0,0,0,.45);padding:18px;color:#fff}
#sg-editor-launcher .sgel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.sgel-title{font-size:17px;font-weight:700}.sgel-close{border:0;background:transparent;color:#aab5c5;font-size:24px;cursor:pointer}
#sg-editor-launcher .sgel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#sg-editor-launcher button[data-editor]{min-height:58px;border:1px solid rgba(255,255,255,.12);border-radius:13px;background:#202b3d;color:#fff;font-size:15px;font-weight:700;cursor:pointer;transition:.15s}
#sg-editor-launcher button[data-editor]:hover{transform:translateY(-1px);background:#2a3850;border-color:#4c8dff}
#sg-editor-launcher .sgel-note{margin-top:13px;color:#8f9bad;font-size:12px;text-align:center}
@media(max-width:520px){#sg-editor-launcher .sgel-grid{grid-template-columns:1fr}#sg-editor-launcher button[data-editor]{min-height:48px}}
#sg-editor-launcher button[data-editor]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:12px 14px;text-align:left}
#sg-editor-launcher button[data-editor] b{font-size:15px}
#sg-editor-launcher button[data-editor] small{margin-top:4px;color:#9eabbc;font-size:11px;font-weight:500}
.sg-v2-single-editor .sggo-tabs{display:none!important}
.sg-v2-single-editor>h3{display:none!important}
.sg-v2-single-editor{isolation:isolate}

#sg-editor-auth{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;background:rgba(3,8,18,.58);backdrop-filter:blur(6px);font-family:Arial,"Noto Sans KR",sans-serif}
#sg-editor-auth.open{display:flex}
#sg-editor-auth .sgea-card{width:min(360px,calc(100vw - 32px));padding:22px;border:1px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(19,26,39,.98);box-shadow:0 24px 70px rgba(0,0,0,.5);color:#fff}
#sg-editor-auth .sgea-title{font-size:18px;font-weight:800}
#sg-editor-auth .sgea-sub{margin:7px 0 14px;color:#9eabbc;font-size:13px}
#sg-editor-auth .sgea-input{box-sizing:border-box;width:100%;height:44px;padding:0 13px;border:1px solid #3a465a;border-radius:11px;background:#111927;color:#fff;font-size:16px;outline:none}
#sg-editor-auth .sgea-input:focus{border-color:#4c8dff;box-shadow:0 0 0 3px rgba(76,141,255,.16)}
#sg-editor-auth .sgea-error{min-height:19px;margin-top:8px;color:#ff8f8f;font-size:12px}
#sg-editor-auth .sgea-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
#sg-editor-auth .sgea-actions button{min-width:78px;height:38px;border:0;border-radius:10px;background:#28364c;color:#fff;cursor:pointer}
#sg-editor-auth .sgea-actions button[data-auth=ok]{background:#3178f6}


/* SPACEGO shared editor shell: all editors use the same frame, title, drag and resize behavior */
.sg-editor-shell{position:fixed!important;left:18px;top:18px;width:min(520px,calc(100vw - 36px));height:min(760px,calc(100vh - 36px));min-width:320px!important;min-height:260px!important;display:flex!important;flex-direction:column!important;box-sizing:border-box!important;padding:0!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:14px!important;background:rgba(16,21,30,.97)!important;color:#fff!important;box-shadow:0 20px 64px rgba(0,0,0,.58)!important;z-index:2147483100!important;font-family:Arial,"Noto Sans KR",sans-serif!important}
.sg-editor-shell-head{height:48px;min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 15px;border-bottom:1px solid rgba(255,255,255,.13);background:#172131;cursor:move;user-select:none;touch-action:none;box-sizing:border-box}
.sg-editor-shell-title{display:flex;align-items:baseline;gap:9px;min-width:0}.sg-editor-shell-title b{font-size:15px;white-space:nowrap}.sg-editor-shell-title span{font-size:10px;color:#8391a5;letter-spacing:.08em}
.sg-editor-shell-tools{display:flex;gap:3px}.sg-editor-shell-tools button{width:31px!important;height:31px!important;min-width:31px!important;margin:0!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#aeb9c8!important;font-size:19px!important;line-height:31px!important;cursor:pointer!important}.sg-editor-shell-tools button:hover{background:rgba(255,255,255,.1)!important;color:#fff!important}.sg-editor-shell-tools button[data-shell=close]:hover{background:#b9424b!important}
.sg-editor-shell-body{position:relative;flex:1;min-height:0;overflow:auto;padding:14px;box-sizing:border-box}
.sg-editor-shell.sg-editor-minimized{height:48px!important;min-height:48px!important}.sg-editor-shell.sg-editor-minimized .sg-editor-shell-body,.sg-editor-shell.sg-editor-minimized .sg-editor-resize{display:none!important}
.sg-editor-shell.sg-editor-maximized{left:6px!important;top:6px!important;width:calc(100vw - 12px)!important;height:calc(100vh - 12px)!important;max-width:none!important;max-height:none!important}
.sg-editor-resize{position:absolute;z-index:30;display:block}.sg-editor-resize-n{left:10px;right:10px;top:-4px;height:9px;cursor:ns-resize}.sg-editor-resize-s{left:10px;right:10px;bottom:-4px;height:9px;cursor:ns-resize}.sg-editor-resize-e{top:10px;bottom:10px;right:-4px;width:9px;cursor:ew-resize}.sg-editor-resize-w{top:10px;bottom:10px;left:-4px;width:9px;cursor:ew-resize}.sg-editor-resize-ne,.sg-editor-resize-nw,.sg-editor-resize-se,.sg-editor-resize-sw{width:16px;height:16px}.sg-editor-resize-ne{right:-5px;top:-5px;cursor:nesw-resize}.sg-editor-resize-nw{left:-5px;top:-5px;cursor:nwse-resize}.sg-editor-resize-se{right:-5px;bottom:-5px;cursor:nwse-resize}.sg-editor-resize-sw{left:-5px;bottom:-5px;cursor:nesw-resize}
.sg-editor-shell .sgme-top{display:none!important}.sg-editor-shell #sgmenu-editor{position:static!important}.sg-editor-shell .sgme-body{height:100%;min-height:0}.sg-editor-shell .sg-editor-shell-body>.sgme-body{height:100%}
#sgmenu-editor.sg-editor-shell{width:min(1040px,calc(100vw - 36px));height:min(760px,calc(100vh - 36px))}
@media(max-width:700px){.sg-editor-shell{left:6px!important;top:6px!important;width:calc(100vw - 12px)!important;height:calc(100vh - 12px)!important}.sg-editor-shell-body{padding:10px}}

/* v4 shared shell: one window, one scroll area */
.sg-editor-shell-body{overflow:hidden!important;padding:0!important;min-height:0!important}
.sg-editor-shell-body>.sgme-body{height:100%!important;min-height:0!important;overflow:hidden!important}
.sg-editor-shell-body>.sgme-body>.sgme-tree,
.sg-editor-shell-body>.sgme-body>.sgme-form{overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important}
.sg-editor-shell:not(#sgmenu-editor)>.sg-editor-shell-body{overflow-y:auto!important;overflow-x:hidden!important;padding:14px!important}
.sg-editor-shell{overscroll-behavior:contain!important}
.sg-editor-shell .sg-editor-shell-head{flex:0 0 48px!important}
.sg-editor-shell.sg-editor-maximized{left:6px!important;top:6px!important;width:calc(100vw - 12px)!important;height:calc(100vh - 12px)!important}
/* v5: editor interaction hardening */
.sg-editor-shell,
.sg-editor-shell-head,
.sg-editor-shell-body,
.sg-editor-shell button,
.sg-editor-shell input,
.sg-editor-shell select,
.sg-editor-shell textarea,
.sg-editor-shell .sgme-row,
.sg-editor-shell .sgme-tree,
.sg-editor-shell .sgme-form{pointer-events:auto!important}
.sg-editor-shell{visibility:visible!important;opacity:1!important}
.sg-editor-shell-head{position:relative!important;z-index:30!important}
.sg-editor-shell-body{position:relative!important;z-index:10!important}
.sg-editor-shell-tools{position:relative!important;z-index:40!important;pointer-events:auto!important}
.sg-editor-shell-tools button{pointer-events:auto!important;touch-action:manipulation!important}
.sg-editor-resize{z-index:35!important}
#sgmenu-editor .sgme-body,#sgmenu-editor .sgme-tree,#sgmenu-editor .sgme-form,#sgmenu-editor button,#sgmenu-editor input,#sgmenu-editor select,#sgmenu-editor .sgme-row{pointer-events:auto!important}

/* v3: 단일 타이틀 / 실제 닫기 안정화 */
.sg-editor-shell-body > h3,
.sg-editor-shell-body > .sg-free-title,
.sg-editor-shell-body > .sggo-tabs{display:none!important}
.sg-editor-shell-head{overflow:hidden!important}
.sg-editor-shell-title{overflow:hidden!important}
.sg-editor-shell-title b{overflow:hidden!important;text-overflow:ellipsis!important}
/* v8: real close state must override the generic shell display:flex rule */
.sg-editor-shell[data-sg-closed="1"]{display:none!important;visibility:hidden!important;pointer-events:none!important}
.sg-editor-shell-body>.sg-free-title,
.sg-editor-shell-body>h3{display:none!important}
