/* ===== 칼카리 시안 인페이지 에디터 (공용) ===== */
#edCluster{position:fixed;top:8px;right:10px;z-index:101;display:flex;gap:6px}
#edCluster a,#edCluster button{background:#16181c;color:#fff;border:1px solid #2c2f35;border-radius:100px;
  padding:9px 14px;font:700 13px 'Pretendard',sans-serif;cursor:pointer;text-decoration:none;line-height:1;
  box-shadow:0 4px 14px rgba(0,0,0,.25);white-space:nowrap}
#edCluster #edMemoBtn.on{background:#FFC400;color:#15171a;border-color:#FFC400}
#edCluster #edBtn.on{background:#FFC400;color:#15171a;border-color:#FFC400}
body.editing #edCluster{display:none}

#edBar{position:fixed;top:0;left:0;right:0;z-index:100;background:#16181c;color:#fff;display:none;
  flex-wrap:wrap;gap:8px 12px;align-items:flex-end;padding:10px 14px;box-shadow:0 4px 16px rgba(0,0,0,.3)}
#edBar.show{display:flex}
#edBar label{font:600 10.5px 'Pretendard',sans-serif;color:#aeb4bb;display:flex;flex-direction:column;gap:3px}
#edBar select,#edBar .step{background:#23262c;color:#fff;border:1px solid #3a3f47;border-radius:7px;padding:6px 8px;font:600 13px 'Pretendard',sans-serif}
#edBar .step{display:flex;align-items:center;gap:4px}
#edBar .step b{cursor:pointer;padding:0 6px;user-select:none;font-size:16px}
#edBar .btns{display:flex;gap:6px;margin-left:auto}
#edBar button.eb{background:#23262c;color:#fff;border:1px solid #3a3f47;border-radius:7px;padding:8px 11px;font:700 12px 'Pretendard',sans-serif;cursor:pointer}
#edBar button.eb.prim{background:#FFC400;color:#15171a;border-color:#FFC400}

body.editing [data-ed]{outline:1.5px dashed rgba(255,196,0,.75);outline-offset:2px;border-radius:3px;cursor:text}
body.editing [data-ed]:hover{background:rgba(255,196,0,.08)}
body.editing [data-ed]:focus{outline:2px solid #FFC400;background:rgba(255,196,0,.14)}

/* 메모 모드 */
#edMemoHint{position:fixed;top:54px;right:10px;z-index:100;background:#15171a;color:#fff;border-radius:10px;
  padding:8px 10px 8px 14px;font:600 12px 'Pretendard',sans-serif;display:none;align-items:center;gap:10px;box-shadow:0 6px 18px rgba(0,0,0,.3)}
#edMemoHint.show{display:flex}
#edMemoHint b{color:#FFC400}
#edMemoHint button{background:#FFC400;color:#15171a;border:0;border-radius:7px;padding:6px 10px;font:700 12px 'Pretendard',sans-serif;cursor:pointer}
body.memoing [data-ed]{outline:1px dashed #b9bdc3;outline-offset:2px;cursor:pointer}
body.memoing [data-ed]:hover{background:rgba(255,196,0,.1)}
body.memoing [data-memo]{outline:2px solid #FFC400;background:rgba(255,196,0,.14)}

#edNote{position:fixed;left:10px;right:10px;bottom:10px;max-width:560px;margin:0 auto;z-index:131;background:#fff;color:#15171a;
  border:1px solid #e2e0da;border-radius:14px;box-shadow:0 14px 44px rgba(0,0,0,.32);padding:14px;display:none}
#edNote.show{display:block}
#edNote .t{font:700 13px 'Pretendard',sans-serif;margin-bottom:6px}
#edNote .snip{font:12px 'Pretendard',sans-serif;color:#7c8086;background:#f4f3f0;border-left:3px solid #FFC400;border-radius:6px;padding:7px 9px;margin-bottom:9px;max-height:52px;overflow:hidden}
#edNote textarea{width:100%;height:88px;border:1px solid #e2e0da;border-radius:8px;padding:9px;font:14px 'Pretendard',sans-serif;resize:vertical}
#edNote .row{display:flex;gap:8px;margin-top:9px}
#edNote button{flex:1;border:0;border-radius:8px;padding:11px;font:700 13px 'Pretendard',sans-serif;cursor:pointer}
#edNote .save{background:#FFC400;color:#15171a;flex:2}
#edNote .del{background:#f4f3f0;color:#c0392b}
#edNote .close{background:#f4f3f0;color:#15171a}

#edToast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:140;background:#16181c;color:#fff;
  padding:10px 18px;border-radius:10px;font:600 13px 'Pretendard',sans-serif;opacity:0;transition:.25s;pointer-events:none}
#edToast.show{opacity:1}

#edExport{position:fixed;left:10px;right:10px;bottom:10px;max-width:620px;margin:0 auto;z-index:130;background:#fff;color:#15171a;
  border:1px solid #e2e0da;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.3);padding:14px;display:none}
#edExport.show{display:block}
#edExport .x{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font:700 14px 'Pretendard',sans-serif}
#edExport textarea{width:100%;height:200px;border:1px solid #e2e0da;border-radius:8px;padding:10px;font:13px ui-monospace,monospace;resize:vertical}
#edExport .cp{margin-top:8px;width:100%;background:#FFC400;color:#15171a;border:0;border-radius:8px;padding:12px;font:700 13px 'Pretendard',sans-serif;cursor:pointer}
#edExport .cl{background:#eef1f4;color:#15171a;border:1px solid #e2e0da;border-radius:7px;padding:7px 11px;font:700 12px 'Pretendard',sans-serif;cursor:pointer}
