:root{--ink:#202a3d;--sub:#64748b;--gold:#a64d0f;--gold2:#c36b20;--paper:#fff;--cream:#fffaf1;--line:#e6e7ea;--navy:#131e33}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#f5f6f8;font-family:Apple SD Gothic Neo,Malgun Gothic,Pretendard,system-ui,sans-serif;font-size:14px;line-height:1.6}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}a{color:inherit;text-decoration:none}.hidden{display:none!important}.sitebar{background:white;border-bottom:1px solid #e5e7eb}.sitebar-inner{max-width:1290px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:12px 22px}.brand{display:flex;align-items:center;gap:10px}.brandmark{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:linear-gradient(130deg,#9a3d00,#cc711c);color:white;font-size:22px;font-weight:700}.brand strong{display:block;font-size:17px;line-height:1.1}.brand small{display:block;font-size:11px;color:#6b7280}.backlink{padding:7px 11px;border:1px solid #e5e7eb;border-radius:9px;font-size:12px;color:#495466}.backlink:hover{background:#f9fafb}.shell{max-width:1290px;padding:20px 16px 55px;margin:auto}.hero{padding:22px 27px;background:linear-gradient(115deg,#263042 0%,#192339 64%,#684327 100%);color:#fff;border-radius:18px;box-shadow:0 8px 22px #18233710;margin-bottom:18px}.hero-overline{font-size:11px;color:#f6d8a4;letter-spacing:.1em;font-weight:700}.hero h1{font-size:clamp(24px,3.5vw,34px);letter-spacing:-.05em;margin:6px 0}.hero p{font-size:13px;color:#e2e8f0;margin:0}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);gap:16px;align-items:start}.sidebar,.main-panel{background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 12px #11182706}.sidebar{overflow:hidden}.sidebar-head{display:flex;justify-content:space-between;align-items:center;padding:17px 19px 12px}.sidebar-head strong{font-size:16px}.admin-mark{color:#a34e0b;font-size:11px}.all-posts{width:calc(100% - 36px);margin:0 18px 14px;border:1px solid #f2d9b2;border-radius:9px;background:#fff8ed;color:#874409;padding:10px 12px;text-align:left;display:flex;justify-content:space-between;font-weight:700}.zone{border-top:1px solid var(--line);padding:13px 14px 16px}.zone-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;padding:0 5px}.zone-header h2{font-size:12px;letter-spacing:.03em;color:#6d4b2c;text-transform:uppercase;margin:0}.small{background:#fff6e8;border:1px solid #edc99d;border-radius:7px;color:#8e450d;font-size:11px;padding:5px 9px;font-weight:700}.node-list{min-height:19px}.empty-node{padding:12px 9px;color:#94a3b8;font-size:12px}.node{margin:3px 0}.node-main{display:flex;align-items:center;gap:4px;border-radius:9px;border:1px solid transparent;padding:2px 4px}.node-main:hover{background:#f8fafc}.node.selected>.node-main{background:#fef5e8;border-color:#f2d9b7}.node-toggle{border:none;background:none;width:25px;min-width:25px;color:#64748b;padding:5px}.node-toggle.no-children{opacity:.35}.node-open{display:flex;align-items:center;gap:5px;min-width:0;flex:1;padding:7px 5px;text-align:left;border:none;background:none;font-size:13px;color:#334155;font-weight:650}.node-open span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.node-count{font-size:10px;color:#94a3b8;padding-right:7px}.node-children{border-left:1px solid #e5e7eb;margin-left:16px;padding-left:8px}.node-admin{display:flex;gap:4px;padding:2px 7px 6px 31px;flex-wrap:wrap}.node-admin button{background:white;border:1px solid #e2e8f0;border-radius:6px;padding:2px 6px;font-size:10px;color:#475569}.node-admin button.danger{color:#b42332}.admin-tip{margin:13px 16px 18px;padding:12px;background:#f8fafc;color:#64748b;font-size:11px;border-radius:9px}.main-panel{padding:25px;min-height:530px}.content-head{display:flex;gap:18px;align-items:center;justify-content:space-between;padding-bottom:19px;border-bottom:1px solid var(--line)}.content-head h2{font-size:24px;margin:4px 0 3px}.content-head p{margin:0;color:#64748b;font-size:12px}.breadcrumb{font-size:11px;color:#bb641c}.primary{background:#a45110;color:white;border:none;border-radius:9px;padding:10px 15px;white-space:nowrap;font-weight:700;font-size:12px}.primary:hover{background:#8c400a}.status{font-size:13px;color:#64748b;padding:17px 0}.post-list{display:grid;gap:10px}.post{border:1px solid #e7e9ed;padding:14px 16px;border-radius:11px;display:flex;gap:12px;align-items:start}.post:hover{border-color:#e8caa2;background:#fffefa}.post-main{flex:1;min-width:0}.post-title{border:0;background:none;padding:0;text-align:left;color:#1e293b;font-weight:700;font-size:15px;line-height:1.5}.post-title:hover{color:#a64d0f}.post-excerpt{margin:5px 0;color:#67768a;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:12px}.meta{color:#8a94a6;font-size:11px;margin-top:8px}.post-admin{display:flex;gap:6px}.post-admin button,.node-tools button,.outline{background:#fff;border:1px solid #dbe1e8;border-radius:7px;padding:6px 10px;font-size:11px;color:#334155}.post-admin button.danger,.danger{color:#b42332}.post-detail .post-back{margin:17px 0 11px}.post-detail h2{font-size:25px;line-height:1.45;margin:9px 0}.post-content{font-size:15px;line-height:1.95;overflow-wrap:anywhere}.post-content p{white-space:pre-wrap;margin:1em 0}.post-content figure{margin:18px 0;text-align:center}.post-content img{display:block;max-width:100%;height:auto;max-height:800px;object-fit:contain;border-radius:8px;margin:0 auto}.post-content figcaption{font-size:12px;color:#64748b;margin-top:6px}.node-tools{padding:10px 0;display:flex;gap:8px;flex-wrap:wrap}.endnote{font-size:11px;color:#93a0b2;border-top:1px solid #eef0f2;margin-top:35px;padding-top:13px}.modal{position:fixed;inset:0;z-index:100;background:#0009;display:flex;align-items:center;justify-content:center;padding:14px}.modal-card{width:min(760px,100%);max-height:94vh;overflow-y:auto;background:white;border-radius:15px;padding:20px;box-shadow:0 16px 55px #0004}.modal-title{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 0 12px;margin-bottom:14px}.modal-title h2{font-size:18px;margin:0}.close{border:0;background:#f1f5f9;border-radius:8px;padding:7px 12px}.field{margin:10px 0}.field label{display:block;font-size:12px;color:#475569;font-weight:700;margin-bottom:5px}.field input,.field select,.field textarea{width:100%;border:1px solid #cfd7e0;border-radius:8px;padding:10px 12px;outline:none;background:white}.field :is(input,select,textarea):focus{border-color:#b46b26;box-shadow:0 0 0 2px #eebf8240}.field textarea{min-height:280px;resize:vertical;font-size:13px;line-height:1.75}.help{font-size:11px;color:#7a8799}.btn-row{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}.btn-row button{padding:9px 14px;border-radius:8px}.toast{position:fixed;bottom:24px;right:20px;z-index:200;max-width:430px;background:#1e293b;color:white;padding:12px 17px;border-radius:9px;box-shadow:0 6px 30px #0003}.image-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12px}.image-tools input{max-width:220px}.anchor{color:#99440b;text-decoration:underline}.loading{opacity:.5;pointer-events:none}@media(max-width:790px){.workspace{grid-template-columns:1fr}.shell{padding:10px 9px 30px}.main-panel{padding:17px;min-height:320px}.hero{padding:17px}.content-head h2{font-size:20px}.zone{padding:11px 14px}.sitebar-inner{padding:9px 13px}}@media(max-width:425px){.content-head{flex-wrap:wrap}.post{flex-direction:column}.post-admin{width:100%}.modal-card{padding:15px}}
/* V15.84.1: PDF 책갈피형 목차 + 중요 법률 칠판 */
.chalkboard{position:relative;margin:0 0 18px;padding:25px 30px 29px;border:11px solid #a87b4a;border-radius:8px;box-shadow:inset 0 0 0 2px #d5aa79,0 7px 18px #0002;background:radial-gradient(ellipse at 50% 20%,#343b3e,#242b2b 64%,#1c2425);color:#f4f5ef;min-height:214px;overflow:hidden}
.chalkboard:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.12;background:repeating-linear-gradient(0deg,transparent,transparent 4px,#a2a9a3 5px)}
.chalk-pins{position:absolute;left:24px;top:-9px;display:flex;gap:11px}.chalk-pins i{display:block;width:23px;height:23px;border-radius:50%;box-shadow:3px 5px 5px #0006;background:#e85047}.chalk-pins i:nth-child(2){background:#3990e6}.chalk-pins i:nth-child(3){background:#f0d34d}
.chalk-heading-row{position:relative;display:flex;gap:14px;justify-content:space-between;align-items:start;padding:8px 0 14px}.chalk-overline{font-size:11px;color:#e8c995;letter-spacing:.09em}.chalk-heading-row h2{font-size:clamp(23px,3.7vw,34px);letter-spacing:.04em;margin:3px 0;color:#fff6d9;text-shadow:0 1px 2px #0008}.chalk-heading-row p{font-size:13px;color:#e0e8e3;white-space:pre-wrap;margin:0}.chalk-admin{display:flex;gap:6px;flex-wrap:wrap;justify-content:end}.chalk-admin button{font-size:11px;color:#fff7df;background:#ffffff14;border:1px solid #ffffff67;padding:6px 9px;border-radius:8px}.chalk-admin button:hover{background:#fff3}
.chalk-columns{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 32px;margin:7px 0 15px}.chalk-group{min-width:0}.chalk-group h3{font-size:clamp(18px,2.4vw,22px);letter-spacing:.015em;margin:8px 0 10px;border-bottom:2px solid currentColor;padding-bottom:6px}.chalk-cyan{color:#44deed}.chalk-yellow{color:#ffec67}.chalk-pink{color:#ff85c5}.chalk-white{color:#fff}.chalk-entry{padding:1px 0 12px}.chalk-link{color:inherit;display:inline-block;cursor:pointer;font-size:clamp(16px,2vw,20px);line-height:1.35;font-weight:800;word-break:keep-all;overflow-wrap:anywhere;text-decoration:none}.chalk-link:hover,.chalk-link:focus-visible{background:#ffffff1f;border-radius:4px;text-decoration:underline;text-underline-offset:4px}.chalk-link span{opacity:.62;font-size:12px}.chalk-entry p{font-size:12px;color:#c3cfc9;line-height:1.5;margin:3px 0;white-space:pre-wrap}.chalk-empty{grid-column:1/-1;color:#dbe4dc;padding:12px 0}.chalk-link-admin{display:flex;gap:6px;margin:6px 0}.chalk-link-admin button{border:1px solid #ffffff55;border-radius:5px;color:#fff;background:#ffffff13;font-size:10px;padding:1px 7px}.chalk-link-admin .danger{color:#ffb0b4}.chalk-ledge{position:absolute;bottom:0;left:10px;right:10px;display:flex;gap:7px;align-items:end;height:11px;border-bottom:5px solid #b98c5c}.chalk-ledge span{display:block;width:67px;height:7px;background:#fff;border-radius:3px}.chalk-ledge span:first-child{background:#f5d74a}.chalk-ledge span:last-child{background:#ed7fc4}
/* 유튜브 북마크 화면을 참고한 짙은 목차 영역 */
.sidebar{background:#101a2e;border:1px solid #2b3953;color:#eaf2ff;overflow:visible}.sidebar-head{padding-bottom:7px}.sidebar-head strong{color:#f0f6ff}.sidebar .admin-mark{color:#e7c48f}.sidebar-toolbar{display:flex;gap:5px;padding:3px 13px 12px}.sidebar-toolbar button{flex:1;border-radius:6px;border:1px solid #354764;background:#192942;color:#c5d9ff;font-size:11px;padding:6px 3px}.sidebar-toolbar button:hover{background:#263d5e}.sidebar .all-posts{background:#20375f;border-color:#35578a;color:#cde4ff;margin-bottom:10px}.sidebar .zone{border-top:1px solid #2b3a55}.sidebar .zone-header{padding:0 2px}.zone-toggle{border:none;color:#dce7fb;background:transparent;cursor:pointer;font-size:13px;font-weight:800;text-align:left;padding:7px 0}.sidebar .small{background:#273a5a;color:#cfe3ff;border-color:#435776}.sidebar .empty-node{color:#8394b1}.sidebar .node-main:hover{background:#1c2e4a}.sidebar .node.selected>.node-main{background:#163a71;border-color:#3464a6}.sidebar .node-toggle{color:#b2c9ef}.sidebar .node-open{color:#e2edff}.sidebar .node-count{color:#92aed2}.sidebar .node-children{border-color:#52617b}.sidebar .node-admin button{border-color:#35445f;background:#15243a;color:#dce4fa}.sidebar .node-admin button.danger{color:#ffb6be}.sidebar .admin-tip,.sidebar .drag-help{background:#18283f;color:#becde5}.drag-help{font-size:11px;line-height:1.55;padding:9px;margin:0 14px 9px;border-radius:7px}.drag-handle{flex:0 0 14px;cursor:grab;touch-action:none;user-select:none;font-weight:900;color:#879cbe}.drag-handle:active{cursor:grabbing}.root-drop{border:1px dashed #6582ad;border-radius:6px;text-align:center;padding:8px 5px;margin:0 3px 9px;background:#182d4a;color:#abc8e7;font-size:11px}.root-drop.drop-root-active{background:#274d78;color:#fff;border-color:#a4c9fc}.node-main.drop-before{box-shadow:inset 0 3px 0 #ffda68}.node-main.drop-after{box-shadow:inset 0 -3px 0 #ffda68}.node-main.drop-inside{background:#26558b!important;outline:2px dashed #9bd1ff}.node-main.is-dragging{opacity:.38}.zone-content.hidden{display:none!important}
@media(max-width:940px){.chalk-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.chalkboard{border-width:7px;padding:20px 15px}.chalk-columns{grid-template-columns:1fr;gap:4px}.chalk-heading-row{display:block}.chalk-admin{justify-content:start;margin-top:12px}.sidebar{overflow:visible}}

/* V15.84.2: 칠판 안의 실제 하위 게시판 목차 */
.chalk-group-header{display:flex;align-items:center;gap:7px;border-bottom:2px solid currentColor;padding-bottom:5px;margin:8px 0 9px;min-width:0;flex-wrap:wrap}
.chalk-group-header h3{border:0;padding:0;margin:0;flex:1 1 auto;min-width:100px}
.chalk-title-link{color:inherit;text-decoration:none}.chalk-title-link:hover{text-decoration:underline;text-underline-offset:5px}
.chalk-title-link span{font-size:13px;opacity:.75}
.chalk-group-toggle{flex:0 0 21px;border:1px solid #ffffff49;border-radius:5px;background:#ffffff0d;color:inherit;width:23px;height:25px;font-size:14px;line-height:1;padding:0}
.chalk-group-add{margin-left:auto;border:1px solid #ffffff55;border-radius:5px;background:#ffffff15;color:#f4f4e9;font-size:10px;padding:4px 7px;white-space:nowrap}
.chalk-entry-label{display:flex;align-items:flex-start;gap:4px;min-width:0}
.chalk-caret{color:inherit;background:none;border:1px solid #ffffff4a;border-radius:4px;min-width:21px;width:21px;height:23px;padding:0;font-size:14px;line-height:1.2}
.chalk-caret-empty{color:#ffffff55;min-width:21px;width:21px;text-align:center}
.chalk-entry-label .chalk-link{flex:1;min-width:0}
.chalk-children{border-left:1px dashed #ffffff65;margin:2px 0 8px 10px;padding:5px 0 0 11px}
.chalk-entry-sub .chalk-link{font-size:clamp(14px,1.65vw,18px)}
.chalk-entry-sub .chalk-entry{padding-bottom:7px}
.chalk-link-admin{padding-left:25px;flex-wrap:wrap}
@media(max-width:660px){.chalk-group-header{gap:5px}.chalk-group-header h3{font-size:19px}.chalk-children{margin-left:7px;padding-left:8px}.chalk-group-add{font-size:10px}}

/* V15.84.3: 일반 게시판 방식의 글쓰기/대표 이미지 편집 */
.lb-editor .editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lb-editor .location-info{border:1px solid #f2d27a;background:#fffbec;border-radius:9px;padding:11px 13px;display:grid;gap:3px;font-size:12px}.location-info strong{color:#9d4b0f}.location-info small{color:#9c8260}.lb-editor .editor-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#f7f9fc;border:1px solid #e1e7f0;border-radius:9px;padding:10px;margin:14px 0}.lb-editor .editor-toolbar label{font-size:12px;font-weight:700}.lb-editor .editor-toolbar select{width:auto;min-width:88px;border:1px solid #d4dce7;border-radius:7px;padding:6px 9px;background:#fff}.lb-editor .field textarea{min-height:300px}.lb-editor .image-tools{padding:13px;background:#fff9e8;border:1px solid #f9d77b;border-radius:9px}.lb-editor .cover-editor{padding:12px;margin:0 0 14px;border:1px solid #e5d8c7;border-radius:10px;background:#fffdf9}.lb-editor .cover-crop{height:auto;aspect-ratio:16/9;width:min(100%,600px);margin:auto;background:#15243d;overflow:hidden;touch-action:none;cursor:grab;border-radius:9px;outline:2px solid #d5b389}.lb-editor .cover-crop:focus{outline:3px solid #b96f20}.lb-editor .cover-crop.is-moving{cursor:grabbing}.lb-editor .cover-crop img{width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none}.lb-editor .cover-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}.lb-editor .cover-tools small{flex-basis:100%;color:#68788e}.lb-editor .cover-tools span{color:#9d4b0f;font-size:12px}.lb-preview{border:1px solid #dbe3f0;background:#f8fafc;border-radius:9px;padding:15px;margin-top:12px;max-height:350px;overflow-y:auto}.lb-subheading{display:block;font-size:1.22em;font-weight:800;color:#844a19;padding:4px 0}.post-head-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.post-cover{width:100%;max-width:780px;margin:16px 0;border-radius:11px;overflow:hidden;background:#eef2f7;aspect-ratio:16/9}.cover-detail{width:100%;height:100%;object-fit:cover;display:block}.cover-thumb{width:148px;height:94px;object-fit:cover;flex-shrink:0;border-radius:8px}.lb-video{max-width:780px;aspect-ratio:16/9;margin:18px 0}.lb-video iframe{width:100%;height:100%;border:0;border-radius:10px}.lb-external{display:inline-block;border:1px solid #e4cdaa;border-radius:8px;padding:8px 12px;background:#fffaf1}@media(max-width:650px){.lb-editor .editor-grid{grid-template-columns:1fr}.cover-thumb{width:100%;height:180px}.post{flex-wrap:wrap}.modal-card:has(.lb-editor){padding:13px}}.modal-card:has(.lb-editor){width:min(920px,100%)}
