*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg:#0f1117;--surface:#1a1d2e;--surface2:#252842;--border:#2e3155;--accent:#6366f1;--accent-light:#818cf8;--text:#e2e8f0;--text-muted:#94a3b8;--text-faint:#475569;--sidebar-width:280px;--header-height:56px;--sans:"Pretendard", "Noto Sans KR", system-ui, sans-serif;--mono:ui-monospace, "JetBrains Mono", Consolas, monospace}html,body,#root{width:100%;height:100%}body{font-family:var(--sans);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font-size:16px;line-height:1.7}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}.sidebar{width:var(--sidebar-width);background:var(--surface);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;transition:width .25s,opacity .2s;display:flex;overflow-y:auto}.sidebar.closed{opacity:0;width:0;overflow:hidden}.sidebar-header{border-bottom:1px solid var(--border);flex-shrink:0;padding:16px 16px 10px}.sidebar-label{letter-spacing:.08em;text-transform:uppercase;color:var(--text-faint);font-size:11px;font-weight:600}.sidebar-empty{color:var(--text-faint);padding:16px;font-size:12px;line-height:1.6}.sidebar-nav{flex:1;padding:6px 0;overflow-y:auto}.toc-item{cursor:pointer;text-align:left;width:100%;color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;background:0 0;border:none;line-height:1.4;transition:background .12s;display:block;position:relative;overflow:hidden}.toc-item:hover{background:var(--surface2)}.toc-item.active{color:var(--text);background:#6366f114}.toc-item.active:before{content:"";background:var(--accent);width:2px;position:absolute;top:0;bottom:0;left:0}.toc-h1{color:var(--text);border-top:1px solid var(--border);margin-top:4px;padding:9px 14px;font-size:12.5px;font-weight:600}.toc-h1:first-child{border-top:none;margin-top:0}.toc-h2{color:var(--text-muted);padding:5px 14px 5px 22px;font-size:12px}.toc-h3{color:var(--text-faint);padding:4px 14px 4px 32px;font-size:11.5px}@media (width<=768px){.sidebar{top:var(--header-height);z-index:90;position:fixed;bottom:0;left:0;box-shadow:4px 0 20px #0000004d}}.wb-viewer{background:#1c1c20;flex-direction:column;flex:1;min-height:0;display:flex}.wb-hwp-toolbar{background:#f2f2f2;border-bottom:1px solid #c8c8c8;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:2px;padding:5px 12px;display:flex}.wb-hwp-toolbar--view{background:#141418;border-bottom:none;padding:5px 20px}.wb-tb-select{color:#333;cursor:pointer;background:#fff;border:1px solid #ccc;border-radius:3px;outline:none;height:26px;padding:0 6px;font-size:12px}.wb-tb-div{background:#ccc;flex-shrink:0;width:1px;height:18px;margin:0 4px}.wb-tb-spacer{flex:1}.wb-tb-btn{cursor:pointer;color:#333;background:0 0;border:1px solid #0000;border-radius:3px;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;font-size:13px;transition:background .12s,border-color .12s;display:flex}.wb-tb-btn:hover{background:#e0e0e0;border-color:#bbb}.wb-tb-bold{font-weight:700}.wb-tb-italic{font-style:italic}.wb-tb-under{text-decoration:underline}.wb-tb-save{color:#3a7d44;white-space:nowrap;margin-right:6px;font-size:11.5px}.wb-tb-done{color:#fff;cursor:pointer;white-space:nowrap;background:#3a5bb0;border:none;border-radius:3px;padding:3px 12px;font-size:12px;font-weight:600}.wb-tb-done:hover{background:#2f4d9c}.wb-tb-chapter{color:#888;white-space:nowrap;text-overflow:ellipsis;letter-spacing:.03em;font-size:11px;font-weight:400;overflow:hidden}.wb-tb-pagenum{color:#555;white-space:nowrap;font-size:11px}.wb-canvas{background:#1c1c20;flex:1;justify-content:center;align-items:flex-start;min-height:0;padding:48px 40px 72px;display:flex;overflow-y:auto}.wb-stage{flex-direction:column;align-items:center;gap:28px;display:flex}.wb-spread--double{align-items:flex-start;gap:0;display:flex;position:relative;box-shadow:0 2px 6px #00000080,0 12px 40px #0000008c,0 32px 80px #0000004d}.wb-spread--double:after{content:"";pointer-events:none;z-index:2;background:linear-gradient(90deg,#00000021 0%,#0000000a 35%,#0000 50%,#0000000a 65%,#00000017 100%);width:28px;height:100%;position:absolute;top:0;left:50%;transform:translate(-50%)}.wb-spread--single{display:flex;box-shadow:0 2px 6px #00000073,0 10px 32px #00000080}.wb-page{width:var(--wb-w);height:var(--wb-h);background:#fefcf7;flex-direction:column;display:flex;position:relative;overflow:hidden}.wb-page--blank{background:#f9f7f2}.wb-page__head{height:var(--wb-mt);color:#b0a898;letter-spacing:.04em;white-space:nowrap;text-overflow:ellipsis;flex-shrink:0;align-items:flex-end;padding-bottom:8px;font-family:Noto Serif KR,Batang,바탕,Georgia,serif;font-size:9.5px;display:flex;overflow:hidden}.wb-page--l .wb-page__head{padding-left:var(--wb-mi);padding-right:var(--wb-mo);justify-content:flex-start}.wb-page--r .wb-page__head{padding-left:var(--wb-mo);padding-right:var(--wb-mi);justify-content:flex-end}.wb-page__body{padding:14px var(--wb-mo) 0;flex:1;overflow:hidden}.wb-page--l .wb-page__body{padding-left:var(--wb-mi);padding-right:var(--wb-mo)}.wb-page--r .wb-page__body{padding-left:var(--wb-mo);padding-right:var(--wb-mi)}.wb-page__foot{height:var(--wb-mb);align-items:center;display:flex}.wb-page--l .wb-page__foot{padding-left:var(--wb-mi);padding-right:var(--wb-mo);justify-content:flex-start}.wb-page--r .wb-page__foot{padding-left:var(--wb-mo);padding-right:var(--wb-mi);justify-content:flex-end}.wb-page__num--l,.wb-page__num--r{color:#b0a898;font-variant-numeric:tabular-nums;font-family:Noto Serif KR,Batang,바탕,Georgia,serif;font-size:10.5px}.wb-nav{align-items:center;gap:20px;display:flex}.wb-btn{color:#aaa;cursor:pointer;background:#ffffff14;border:1px solid #ffffff24;border-radius:50%;justify-content:center;align-items:center;width:38px;height:38px;font-size:22px;transition:background .15s,color .15s;display:flex}.wb-btn:hover:not(:disabled){color:#ddd;background:#ffffff26}.wb-btn:disabled{opacity:.2;cursor:default}.wb-label{color:#666;text-align:center;letter-spacing:.04em;min-width:60px;font-size:11px}.wb-measure{pointer-events:none;z-index:-1;position:fixed;top:0;left:-9999px;overflow:hidden}.wb-loading{flex:1;justify-content:center;align-items:center;min-height:200px;display:flex}.wb-spinner{border:2px solid #ccc;border-top-color:#3a5bb0;border-radius:50%;width:32px;height:32px;animation:.75s linear infinite wb-spin}@keyframes wb-spin{to{transform:rotate(360deg)}}.wb-body{color:#1a1a1a;word-break:keep-all;overflow-wrap:break-word;font-family:Noto Serif KR,Batang,BatangChe,바탕,Georgia,serif;font-size:12.5px;line-height:1.95}.wb-body h1{color:#111;margin:10px 0 22px;font-size:19px;font-weight:800;line-height:1.35}.wb-body h2{color:#1a1a1a;margin:22px 0 8px;font-size:14.5px;font-weight:700;line-height:1.4}.wb-body h3{color:#222;margin:16px 0 5px;font-size:13px;font-weight:600}.wb-body h4{color:#333;margin:12px 0 4px;font-size:12.5px;font-weight:600}.wb-body p{text-align:justify;text-indent:1em;margin:0}.wb-body h1+p,.wb-body h2+p,.wb-body h3+p,.wb-body h4+p,.wb-body blockquote+p,.wb-body hr+p,.wb-body ul+p,.wb-body ol+p,.wb-body pre+p{text-indent:0}.wb-body ul,.wb-body ol{margin:0 0 11px;padding-left:20px}.wb-body li{margin-bottom:3px}.wb-body li strong,.wb-body strong{color:#111;font-weight:600}.wb-body em{font-style:italic}.wb-body a{color:#2a52b0;text-underline-offset:2px;text-decoration:underline}.wb-body hr{border:none;border-top:1px solid #e0e0e0;margin:16px 0}.wb-callout{background:#f0f4ff;border-left:3px solid #3a5bb0;border-radius:0 3px 3px 0;margin:12px 0;padding:9px 14px}.wb-callout p{color:#2a3f8a;margin:0;font-size:12.5px}.wb-code-inline{color:#c0392b;font-size:11.5px;font-family:var(--mono,monospace);background:#f3f3f3;border:1px solid #e0e0e0;border-radius:3px;padding:1px 5px}.wb-code-block{background:#f8f8f8;border:1px solid #e4e4e4;border-radius:4px;margin:9px 0;padding:10px 12px;overflow-x:auto}.wb-code-block code{font-family:var(--mono,monospace);color:#333;font-size:11px;line-height:1.6}.wb-table-wrap{margin:10px 0;overflow-x:auto}.wb-body table{border-collapse:collapse;width:100%;font-size:11.5px}.wb-body th{color:#111;text-align:left;background:#f5f5f5;border:1px solid #ddd;padding:6px 9px;font-weight:600}.wb-body td{color:#333;vertical-align:top;border:1px solid #e4e4e4;padding:6px 9px}.wb-body tr:hover td{background:#fafafa}.wb-coming{color:#999;font-size:13px;font-style:italic}.wb-inline-wrap{justify-content:center;width:100%;display:flex}.wb-inline-page{width:calc(var(--wb-w) * 2);max-width:100%;min-height:var(--wb-h);filter:drop-shadow(0 4px 16px #00000038);background:#fff;flex-direction:column;display:flex}.wb-inline-chapter-label{color:#aaa;letter-spacing:.08em;text-transform:uppercase;flex-shrink:0;padding:14px 32px 0;font-size:11px;font-weight:600}.wb-inline-ta{color:#1a1a1a;resize:none;min-height:calc(var(--wb-h) - 60px);word-break:keep-all;background:#fff;border:none;outline:none;flex:1;padding:14px 32px 16px;font-family:D2Coding,Consolas,Courier New,monospace;font-size:13px;line-height:1.85}.wb-inline-ce{min-height:calc(var(--wb-h) - 80px);cursor:text;background:#fff;border:none;outline:none;flex:1;padding:14px 32px 24px;overflow-y:auto}.wb-inline-ce:empty:before{content:attr(data-placeholder);color:#bbb;pointer-events:none}.wb-inline-ce h1{border-bottom:2px solid #ddd;margin:6px 0 20px;padding-bottom:12px;font-size:20px;font-weight:700}.wb-inline-ce h2{margin:20px 0 9px;font-size:15px;font-weight:700}.wb-inline-ce h3{margin:16px 0 6px;font-size:13.5px;font-weight:600}.wb-inline-ce h4{margin:12px 0 4px;font-size:13px;font-weight:600}.wb-inline-ce p{margin:0 0 11px}.wb-inline-ce ul,.wb-inline-ce ol{margin:0 0 11px;padding-left:20px}.wb-inline-ce li{margin-bottom:3px}.wb-inline-ce blockquote{background:#f0f4ff;border-left:3px solid #3a5bb0;border-radius:0 3px 3px 0;margin:12px 0;padding:9px 14px}.wb-inline-ce pre{background:#f8f8f8;border:1px solid #e4e4e4;border-radius:4px;margin:9px 0;padding:10px 12px}.wb-inline-ce code{background:#f3f3f3;border-radius:3px;padding:1px 5px;font-family:monospace;font-size:11px}.wb-inline-ce pre code{background:0 0;padding:0}.wb-inline-foot{color:#bbb;background:#fafafa;border-top:1px solid #eee;flex-shrink:0;padding:8px 32px;font-size:11.5px}.wb-page__body{cursor:text}.wb-page--blank .wb-page__body{cursor:default}.wb-editor-overlay{z-index:200;background:#00000073;justify-content:flex-end;align-items:stretch;display:flex;position:fixed;inset:0}.wb-editor-panel{background:#fff;flex-direction:column;width:min(700px,95vw);display:flex;box-shadow:-4px 0 24px #0003}.wb-editor-header{background:#f7f7f7;border-bottom:1px solid #e0e0e0;flex-wrap:wrap;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;display:flex}.wb-editor-title{color:#333;min-width:0;font-size:13px;font-weight:600}.wb-editor-tools{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.wb-editor-tools button{cursor:pointer;color:#333;white-space:nowrap;background:#fff;border:1px solid #ddd;border-radius:3px;padding:3px 9px;font-size:12px;font-weight:600;transition:background .12s}.wb-editor-tools button:hover{background:#f0f4ff;border-color:#aac}.wb-editor-tools button:disabled{opacity:.5;cursor:default}.wb-btn-saved{color:#2e7d32!important;background:#e6f4ea!important;border-color:#a5d6a7!important}.wb-editor-sep{background:#ddd;width:1px;height:18px;margin:0 2px;display:inline-block}.wb-editor-ta{font-size:13.5px;line-height:1.85;font-family:var(--mono,"D2Coding", "Consolas", monospace);color:#1a1a1a;resize:none;background:#fefefe;border:none;outline:none;flex:1;padding:20px 24px}.wb-editor-footer{color:#999;background:#f7f7f7;border-top:1px solid #e0e0e0;flex-shrink:0;padding:6px 20px;font-size:11.5px}.wb-scroll-view{-webkit-overflow-scrolling:touch;background:#1c1c20;flex:1;padding:20px 0 80px;overflow-y:auto}.wb-scroll-chapter{background:#fefcf7;margin:16px;box-shadow:0 2px 8px #0006,0 8px 24px #0000004d}.wb-scroll-chapter:first-child{margin-top:0}.wb-scroll-chapter__head{color:#b0a898;letter-spacing:.04em;white-space:nowrap;text-overflow:ellipsis;padding:12px 22px 10px;font-family:Noto Serif KR,Batang,바탕,Georgia,serif;font-size:9.5px;overflow:hidden}.wb-scroll-chapter__body{padding:4px 22px 36px}.wb-scroll-chapter--editing{outline:2px solid #3a5bb0}.wb-scroll-edit{background:#fff;flex-direction:column;min-height:100%;padding:0 0 40px;display:flex}.wb-scroll-ce{cursor:text;background:#fff;border:none;outline:none;flex:1;min-height:400px;padding:14px 20px 24px;font-size:14px}.wb-scroll-ce:empty:before{content:attr(data-placeholder);color:#bbb;pointer-events:none}.wb-scroll-ce h1{border-bottom:2px solid #ddd;margin:6px 0 20px;padding-bottom:12px;font-size:20px;font-weight:700}.wb-scroll-ce h2{margin:20px 0 9px;font-size:15px;font-weight:700}.wb-scroll-ce h3{margin:16px 0 6px;font-size:13.5px;font-weight:600}.wb-scroll-ce p{margin:0 0 11px}.wb-scroll-ce ul,.wb-scroll-ce ol{margin:0 0 11px;padding-left:20px}.wb-scroll-ce li{margin-bottom:3px}.wb-scroll-ce blockquote{background:#f0f4ff;border-left:3px solid #3a5bb0;border-radius:0 3px 3px 0;margin:12px 0;padding:9px 14px}.wb-scroll-ce pre{background:#f8f8f8;border:1px solid #e4e4e4;border-radius:4px;margin:9px 0;padding:10px 12px}.wb-scroll-ce code{background:#f3f3f3;border-radius:3px;padding:1px 5px;font-family:monospace;font-size:11px}.wb-scroll-ce pre code{background:0 0;padding:0}.app{flex-direction:column;height:100vh;display:flex;overflow:hidden}.header{height:var(--header-height);background:var(--surface);border-bottom:1px solid var(--border);z-index:100;flex-shrink:0;align-items:center;gap:16px;padding:0 20px;display:flex}.menu-btn{cursor:pointer;background:0 0;border:none;flex-direction:column;flex-shrink:0;gap:5px;padding:6px;display:flex}.menu-btn span{background:var(--text-muted);border-radius:1px;width:20px;height:2px;transition:background .2s;display:block}.menu-btn:hover span{background:var(--text)}.header-title{align-items:center;gap:8px;font-size:14px;display:flex;overflow:hidden}.header-book{color:var(--text);white-space:nowrap;font-weight:600}.header-sep{color:var(--text-faint)}.header-sub{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.layout{flex:1;display:flex;overflow:hidden}.main{flex-direction:column;flex:1;display:flex;overflow:hidden}
