@import "https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,600;0,700;1,400&display=swap";*{box-sizing:border-box;margin:0;padding:0}body{color:#1a1a1a;background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.layout{grid-template-columns:260px 1fr;min-height:100vh;display:grid}.hamburger{z-index:1000;cursor:pointer;background:#fff;border:1px solid #e0e0e0;border-radius:4px;padding:6px 10px;font-size:1.2rem;display:none;position:fixed;top:12px;left:12px}.sidebar-overlay{display:none}@media (width>=1200px){.content{justify-self:center}}@media (width<=768px){.layout{grid-template-columns:1fr}.hamburger{display:block}.sidebar{z-index:999;width:260px;height:100vh;transition:left .2s;position:fixed;top:0;left:-280px;overflow-y:auto}.sidebar-open .sidebar{left:0}.sidebar-open .sidebar-overlay{z-index:998;background:#0000004d;display:block;position:fixed;inset:0}.content{padding:56px 20px 40px}}.sidebar{background:#f8f9fa;border-right:1px solid #e0e0e0;flex-direction:column;padding:20px 12px;display:flex}.sidebar-title{color:#333;margin-bottom:16px;padding-left:8px;font-size:1.1rem;font-weight:700}.sidebar-title.active{color:#1d4ed8;background:#dbeafe;border-radius:4px;padding:4px 8px}.tree-list{list-style:none}.tree-separator{border:none;border-top:1px solid #e0e0e0;margin:6px 0}.tree-list li{margin:1px 0}.tree-folder,.tree-page{text-align:left;cursor:pointer;color:#444;background:0 0;border:none;border-radius:4px;width:100%;padding:4px 8px;font-size:.875rem;line-height:1.5;display:block}.tree-folder:hover,.tree-page:hover{background:#e8e8e8}.tree-folder{font-weight:600}.tree-arrow{width:14px;font-size:.75rem;display:inline-block}.tree-page.active,.tree-folder.active{color:#1d4ed8;background:#dbeafe;font-weight:500}.content{width:100%;max-width:800px;min-height:100vh;padding:40px 60px;position:relative}.loading{color:#888;font-style:italic}.prose{font-family:Spectral,Georgia,serif;font-size:1.125rem}.prose h1{margin:0 0 1rem;font-size:2rem;font-weight:700;line-height:1.2}.prose h2{margin:2rem 0 .75rem;font-size:1.5rem;font-weight:600}.prose h3{margin:1.5rem 0 .5rem;font-size:1.25rem;font-weight:600}.prose p{margin:.75rem 0;line-height:1.7}.prose ul,.prose ol{margin:.75rem 0;padding-left:1.5rem}.prose li{margin:.25rem 0;line-height:1.6}.prose a{color:#2563eb;text-decoration:none}.prose a:hover{text-decoration:underline}.prose strong{font-weight:600}.prose blockquote{color:#555;border-left:3px solid #d1d5db;margin:1rem 0;padding-left:1rem}.prose code{background:#f3f4f6;border-radius:3px;padding:2px 5px;font-size:.875em}.prose pre{background:#f3f4f6;border-radius:6px;margin:1rem 0;padding:16px;overflow-x:auto}.prose pre code{background:0 0;padding:0}.prose table{border-collapse:collapse;width:100%;margin:1rem 0}.prose th,.prose td{text-align:left;border:1px solid #e0e0e0;padding:8px 12px}.prose th{background:#f8f9fa;font-weight:600}.prose hr{border:none;border-top:1px solid #e0e0e0;margin:2rem 0}.prose img{border-radius:4px;max-width:100%}.gallery{margin:1.5rem 0}.gallery-featured{aspect-ratio:4/3;background:#f3f4f6;border-radius:6px;justify-content:center;align-items:center;width:100%;display:flex;overflow:hidden}.gallery-featured img{object-fit:contain;width:100%;height:100%}.gallery-thumbs{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.gallery-thumb{cursor:pointer;background:0 0;border:2px solid #0000;border-radius:4px;flex-shrink:0;width:72px;height:54px;padding:0;overflow:hidden}.gallery-thumb.active{border-color:#2563eb}.gallery-thumb img{object-fit:cover;width:100%;height:100%}.lightbox{z-index:1000;cursor:pointer;background:#000000e6;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.lightbox img{object-fit:contain;max-width:95vw;max-height:95vh}.gallery-featured{cursor:pointer}.edit-button{cursor:pointer;background:#f8f8f8;border:1px solid #ddd;border-radius:4px;padding:.4rem 1rem;font-size:.85rem;position:absolute;top:1rem;right:1rem}.edit-button:hover{background:#eee}.editor-container{flex-direction:column;height:calc(100vh - 2rem);padding:1rem;display:flex}.editor-toolbar{border-bottom:1px solid #eee;justify-content:space-between;align-items:center;margin-bottom:.5rem;padding:.5rem 0;display:flex}.editor-mode-toggle button{cursor:pointer;background:#f8f8f8;border:1px solid #ddd;padding:.3rem .8rem;font-size:.85rem}.editor-mode-toggle button:first-child{border-radius:4px 0 0 4px}.editor-mode-toggle button:last-child{border-left:none;border-radius:0 4px 4px 0}.editor-mode-toggle button.active{color:#fff;background:#1a1a1a;border-color:#1a1a1a}.editor-actions{align-items:center;gap:.5rem;display:flex}.editor-actions button{cursor:pointer;background:#f8f8f8;border:1px solid #ddd;border-radius:4px;padding:.4rem 1rem;font-size:.85rem}.editor-save{color:#fff!important;background:#1a1a1a!important;border-color:#1a1a1a!important}.editor-save:hover{background:#333!important}.editor-error{color:#c00;font-size:.85rem}.editor-raw{resize:none;border:1px solid #ddd;border-radius:4px;outline:none;flex:1;width:100%;padding:1rem;font-family:SF Mono,Fira Code,monospace;font-size:.9rem;line-height:1.6}.editor-raw:focus{border-color:#999}.milkdown-wrapper{border:1px solid #ddd;border-radius:4px;flex:1;padding:1rem;overflow-y:auto}.milkdown-wrapper .ProseMirror{outline:none;min-height:100%;font-family:Spectral,serif;font-size:1.05rem;line-height:1.7}.milkdown-wrapper .ProseMirror h1{margin:1.5rem 0 .75rem;font-size:1.8rem}.milkdown-wrapper .ProseMirror h2{margin:1.25rem 0 .5rem;font-size:1.4rem}.milkdown-wrapper .ProseMirror h3{margin:1rem 0 .5rem;font-size:1.15rem}.milkdown-wrapper .ProseMirror p{margin:.5rem 0}.milkdown-wrapper .ProseMirror ul,.milkdown-wrapper .ProseMirror ol{padding-left:1.5rem}.milkdown-wrapper .ProseMirror code{background:#f4f4f4;border-radius:3px;padding:.15rem .3rem;font-size:.85em}.milkdown-wrapper .ProseMirror pre{background:#f4f4f4;border-radius:4px;padding:.75rem 1rem;overflow-x:auto}.sidebar-footer{margin-top:auto;padding-top:1rem}.user-info{color:#666;flex-direction:column;gap:.1rem;margin-bottom:.5rem;font-size:.8rem;display:flex}.user-role{text-transform:uppercase;color:#888;font-size:.7rem;font-weight:600}.auth-button{cursor:pointer;background:0 0;border:1px solid #ccc;border-radius:4px;width:100%;padding:.25rem .75rem;font-size:.85rem}
