:root{--bg:#1f2023;--bg2:#26282b;--bg3:#2d2f33;--bar:#18191b;--line:#3b3d40;--fg:#e6e7e9;--mut:#9a9c9f;--nor:#f5a524;
 --sans:Arial,"Malgun Gothic","맑은 고딕","Liberation Sans","Apple SD Gothic Neo","Noto Sans KR",sans-serif;--mono:Consolas,"Liberation Mono","DejaVu Sans Mono",monospace}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--sans);word-break:keep-all}
button{background:var(--bg3);color:var(--fg);border:1px solid var(--line);border-radius:6px;padding:3px 10px;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap}
button.pri{background:var(--nor);color:var(--bg);border-color:var(--nor);font-weight:700}
button.on{border-color:var(--nor);color:var(--nor)}
button:disabled{opacity:.35;cursor:default}
.cb{color:#7aa2ff}.cr{color:#ff8a8a}
.login{position:fixed;inset:0;align-items:center;justify-content:center}
.login .card{background:var(--bg2);padding:26px;border-radius:6px;width:min(360px,92vw);display:flex;flex-direction:column;gap:10px}
.login label{display:flex;flex-direction:column;font-size:14px;color:var(--mut);gap:4px}
.login input{background:var(--bar);color:var(--fg);border:1px solid var(--line);border-radius:6px;padding:7px 9px;font:inherit;font-size:16px}
.brand{color:var(--nor);font-weight:800}
.sub{color:var(--mut);font-size:14px}
.top{position:sticky;top:0;z-index:20;height:50px;background:var(--bar);display:flex;align-items:center;gap:10px;padding:0 14px;border-bottom:1px solid var(--line)}
.top .sp{flex:1}
.sync{font-size:13px;color:var(--mut)}
.sync[data-s=connected]::before{content:"● ";color:#3fb950}
.sync[data-s=disconnected]::before{content:"● ";color:#f85149}
.users{display:flex;gap:6px;flex-wrap:wrap}
.users .u{font-size:13px;padding:0 8px;border-radius:10px;background:var(--bg3);border-left:4px solid var(--c)}
.lnk{color:var(--nor);text-decoration:none;font-size:14px}
.bar{position:sticky;top:50px;z-index:19;background:var(--bg2);display:flex;flex-wrap:wrap;gap:4px;padding:6px 14px;align-items:center;border-bottom:1px solid var(--line)}
.bar i{width:1px;height:20px;background:var(--line);margin:0 4px}
.legend{max-width:900px;margin:10px auto 0;color:var(--mut);font-size:13px;padding:0 16px}
.page{max-width:900px;margin:12px auto 80px;background:#fff;color:#111;border-radius:4px;padding:48px 56px;min-height:80vh}
.ProseMirror{outline:none;font-family:"Malgun Gothic","맑은 고딕",Arial,"Noto Sans KR",sans-serif;font-size:15px;line-height:1.75}
.ProseMirror p{margin:0 0 4px}
.ProseMirror h1{font-size:20px;margin:26px 0 8px;border-bottom:1px solid #ddd;padding-bottom:4px}
.ProseMirror h2{font-size:16px;margin:16px 0 6px}
.ProseMirror blockquote{margin:8px 0;padding:6px 12px;background:#f1f2f4;border-left:3px solid #b0b4ba;color:#555;font-size:13px}
.ProseMirror table{border-collapse:collapse;table-layout:fixed;width:100%;margin:8px 0;overflow:hidden}
.ProseMirror td,.ProseMirror th{border:1px solid #888;padding:3px 6px;vertical-align:top;position:relative;min-width:30px}
.ProseMirror th{background:#eef0f3;font-weight:700}
.ProseMirror .selectedCell:after{content:"";position:absolute;inset:0;background:rgba(37,99,235,.15);pointer-events:none}
.ProseMirror .column-resize-handle{position:absolute;right:-2px;top:0;bottom:-2px;width:4px;background:#60a5fa;pointer-events:none}
.ProseMirror.resize-cursor{cursor:col-resize}
.tableWrapper{overflow-x:auto}
.img-wrap{display:inline-block;position:relative;max-width:100%;line-height:0}
.img-wrap img{max-width:100%;height:auto}
.img-wrap.sel{outline:2px solid #2563eb}
.img-handle{position:absolute;right:-6px;bottom:-6px;width:14px;height:14px;background:#2563eb;border:2px solid #fff;border-radius:3px;cursor:nwse-resize;display:none}
.img-wrap:hover .img-handle,.img-wrap.sel .img-handle{display:block}
/* 다른 사람 커서 */
.collaboration-cursor__caret{border-left:2px solid;border-right:0;margin-left:-1px;margin-right:-1px;pointer-events:none;position:relative;word-break:normal}
.collaboration-cursor__label{border-radius:3px 3px 3px 0;color:#fff;font-size:12px;font-weight:600;left:-1px;line-height:normal;padding:1px 5px;position:absolute;top:-1.5em;user-select:none;white-space:nowrap;font-family:var(--sans)}
select{background:var(--bg3);color:var(--fg);border:1px solid var(--line);border-radius:6px;padding:3px 4px;font:inherit;font-size:14px;max-width:150px}
.bar .it{font-style:italic;width:auto;height:auto;background:none;margin:0}
.colbtn{position:relative;padding-bottom:6px}
#cbar{position:absolute;left:8px;right:8px;bottom:3px;height:3px;background:#000;border-radius:1px}
.hlbtn{background:linear-gradient(transparent 60%,#fff59d 60%) var(--bg3);color:var(--fg)}
.tblbar{display:contents}
.pop{position:fixed;z-index:60;background:var(--bg2);border:1px solid var(--line);border-radius:6px;padding:8px;color:var(--fg);font-size:13px}
.pop .sw{display:grid;grid-template-columns:repeat(6,22px);gap:4px}
.pop .sw span{width:22px;height:22px;border-radius:3px;border:1px solid #555;cursor:pointer}
.pop .sw .none{display:flex;align-items:center;justify-content:center;background:#fff;color:#c00}
.pop .cu{display:flex;align-items:center;gap:6px;margin-top:8px}
.pop .grid{display:grid;grid-template-columns:repeat(10,16px);gap:2px}
.pop .grid span{width:16px;height:16px;border:1px solid #666;background:#fff;cursor:pointer}
.pop .grid span.on{background:#93c5fd;border-color:#2563eb}
.pop .gl{text-align:center;margin-top:6px}
.drag-handle{position:fixed;width:20px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;cursor:grab;z-index:15;color:#888;font-size:16px;opacity:1;transition:opacity .15s}
.drag-handle::after{content:"⠿"}
.drag-handle:hover{background:#eef0f3;color:#333}
.drag-handle.hide{opacity:0;pointer-events:none}
.ProseMirror h3{font-size:15px;margin:12px 0 4px}
.ProseMirror mark{border-radius:2px;padding:0 1px}
.ProseMirror hr{border:0;border-top:1px solid #999;margin:12px 0}
.ProseMirror ul,.ProseMirror ol{padding-left:24px;margin:2px 0}
.ProseMirror-selectednode{outline:2px solid #2563eb}
#ov{position:fixed;inset:0;background:rgba(0,0,0,.6);display:none;align-items:center;justify-content:center;z-index:50;font-size:20px}
@media (max-width:760px){.page{padding:22px 16px;margin:8px 6px 80px}.top{gap:6px;padding:6px 8px;height:auto;flex-wrap:wrap}.top .brand{display:none}
 .sync{font-size:12px;white-space:nowrap}.bar{position:static}.legend{font-size:12px}}
