html,body,#root{height:100%}body{margin:0;font-family:system-ui,sans-serif;color:#222;background:#fafafa}button{cursor:pointer}.icon{display:inline-block;margin-right:.2rem;font-style:normal;line-height:1;vertical-align:-.12em}.tree_action{display:inline-flex;align-items:center;white-space:nowrap}.tree_action .icon{margin-right:0}.tree_tip{position:fixed;z-index:30;background:#222;color:#fff;padding:.2rem .4rem;border-radius:4px;font-size:.75rem;white-space:nowrap;pointer-events:none}.row_actions{display:flex;gap:.2rem;margin-left:auto}.folder_label .row_actions button{margin-left:0}.github_icon{font-size:1em;margin-right:.25rem;vertical-align:-.12em}.tree button{white-space:nowrap}a{cursor:pointer}.app_shell{display:flex;flex-direction:column;height:100%}.app_body{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:0;flex:1}.app_body.sidebar_closed{grid-template-columns:minmax(0,1fr)}.sidebar{overflow:auto;border-right:1px solid #ddd;background:#fff;padding:.75rem}.sidebar_header{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.5rem}.sidebar_toggle{padding:.15rem .4rem;font-size:.8rem}.sidebar_open{margin-bottom:.75rem}.graph_view{width:100%;position:relative}.graph_toolbar{display:flex;justify-content:flex-end;margin-bottom:.5rem}.graph_svg{width:100%;height:auto;background:#fff;border:1px solid #ddd;border-radius:6px;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.graph_svg:active{cursor:grabbing}.graph_svg line{stroke:#aaa}.graph_node{cursor:grab}.graph_node:active{cursor:grabbing}.graph_node circle{fill:#4a7fc1}.graph_node text{font-size:12px;fill:#333;pointer-events:none;-webkit-user-select:none;user-select:none}.graph_node.unresolved circle{fill:#fff;stroke:#999;stroke-dasharray:3 2}.graph_node.unresolved text{fill:#999}.graph_node.active circle{stroke:#d33;stroke-width:3}.main_pane{overflow:auto;padding:1.5rem 2rem}.tree{font-size:.95rem}.tree_children{margin-left:1rem;border-left:1px solid #eee;padding-left:.4rem}.folder_label,.note_row{display:flex;align-items:center;gap:.4rem;padding:.2rem .35rem;border-radius:4px;cursor:pointer}.folder_label:hover,.note_row:hover{background:#f1f1f1}.note_link{display:flex;align-items:center;gap:.4rem;flex:1;min-width:0;color:inherit;text-decoration:none}.note_link:focus-visible{outline:2px solid #4a7fc1;outline-offset:1px}.note_row.active{background:#e3efff}.folder_label button,.note_row button{margin-left:auto;font-size:.75rem}.note_pane{max-width:900px}.note_header h1,.note_title_input,.editor,.markdown{font-family:Special Elite,Georgia,serif}.note_header{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.note_header h1{margin:0}.note_title_input{flex:1;font-size:1.6rem;font-weight:700;padding:.25rem .4rem}.toolbar{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid #ddd}.dirty{color:#a65b00;font-size:.8rem}.private_toggle{display:inline-flex;align-items:center;gap:.25rem;margin-left:auto}.private_toggle .icon{margin-right:0}.editor{width:100%;min-height:320px;font-family:ui-monospace,monospace;font-size:.95rem;line-height:1.5;padding:.75rem;box-sizing:border-box}.editor_split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;align-items:start}.editor_split .editor{min-height:60vh}.editor_split .preview{margin-top:0;border-top:0;border-left:1px solid #ddd;padding-top:0;padding-left:1rem}.preview{margin-top:1rem;border-top:1px dashed #ddd;padding-top:1rem}.markdown{line-height:1.6}.markdown pre{overflow:auto;background:#f4f4f4;padding:.75rem}.markdown code{background:#f4f4f4;padding:.1rem .25rem}.error{color:#a00;margin:.5rem 0}.empty_note{color:#777}.modal_backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;display:flex;align-items:center;justify-content:center;padding:1rem;z-index:10}.modal{background:#fff;border-radius:6px;padding:1rem 1.25rem;max-width:640px;width:100%;max-height:80vh;overflow:auto;box-shadow:0 10px 30px #0003}.modal ul{max-height:40vh;overflow:auto}.modal_actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem}.authForm{display:grid;grid-template-columns:40% 60%;max-width:420px}.authForm label{grid-column:1}.authForm button,.authForm input{grid-column:2}.authForm button{grid-column:1 / 3}@media(max-width:800px){.app_body{grid-template-columns:1fr}.editor_split{grid-template-columns:minmax(0,1fr)}.editor_split .preview{margin-top:1rem;border-top:1px dashed #ddd;border-left:0;padding-top:1rem;padding-left:0}.sidebar{max-height:40vh;border-right:0;border-bottom:1px solid #ddd}.main_pane{padding:1rem}}
