:root{--bg:var(--ui-page,#fafafa);--sidebar-bg:var(--ui-sidebar,#f4f5f6);--text:var(--ui-text,#24262b);--muted:var(--ui-text-muted,#686d76);--muted-light:var(--ui-text-subtle,#7c818a);--accent:var(--ui-brand,#3f8268);--accent-hover:var(--ui-brand-hover,#356f59);--border:var(--ui-border,#e1e3e6);--border-strong:var(--ui-border-strong,#c9ccd1);--ov-trigger-bg:#ffffff8c;--hover-bg:var(--ui-hover,#f0f1f3);--code-bg:var(--ui-code-surface,#f3f4f5);--table-head-bg:var(--ui-table-header-surface,#f3f4f5);--header-bg:color-mix(in srgb, var(--ui-page,#fafafa) 88%, transparent);--danger:var(--ui-danger,#bd3d34);--link:var(--ui-link,#356f59);--surface:var(--ui-surface,#fff);--accent-text:var(--ui-link,#356f59);--active-hover-bg:var(--ui-pressed,#e6e8eb);--code-text:var(--ui-code-text,#4d545d);--quote-card-bg:var(--surface);--quote-card-outline:var(--ui-border,#e1e3e6);--quote-text:var(--ui-text-muted,#686d76);--quote-border:var(--ui-border-strong,#c9ccd1);--quote-mark:var(--ui-brand,#3f8268);--quote-shadow:var(--ui-shadow-sm,0 2px 8px #14181f14);--danger-hover:color-mix(in srgb, var(--danger) 84%, var(--text));--overlay-bg:var(--ui-overlay,#14181f61);--overlay-strong-bg:var(--ui-overlay-strong,#14181f85)}:root[data-apptheme=dark]{--bg:var(--ui-page,#111214);--sidebar-bg:var(--ui-sidebar,#17181b);--surface:var(--ui-surface,#1c1d20);--text:var(--ui-text,#f1f1f2);--muted:var(--ui-text-muted,#b1b3ba);--muted-light:var(--ui-text-subtle,#92959e);--accent:var(--ui-brand,#79c19d);--accent-hover:var(--ui-brand-hover,#8bceac);--accent-text:var(--ui-link,#8bceac);--border:var(--ui-border,#35363a);--border-strong:var(--ui-border-strong,#55575f);--ov-trigger-bg:#211d188c;--hover-bg:var(--ui-hover,#292a2e);--active-hover-bg:var(--ui-pressed,#32343a);--code-bg:var(--ui-code-surface,#25262a);--code-text:var(--ui-code-text,#d8dadd);--quote-card-outline:var(--ui-border,#35363a);--quote-text:var(--ui-text-muted,#b1b3ba);--quote-border:var(--ui-border-strong,#55575f);--quote-mark:var(--ui-brand,#79c19d);--quote-shadow:var(--ui-shadow-sm,0 2px 8px #00000038);--table-head-bg:var(--ui-table-header-surface,#25262a);--header-bg:color-mix(in srgb, var(--ui-page,#111214) 88%, transparent);--danger:var(--ui-danger,#ff8176);--danger-hover:color-mix(in srgb, var(--danger) 84%, var(--text));--link:var(--ui-link,#8bceac);--overlay-bg:var(--ui-overlay,#0000008f);--overlay-strong-bg:var(--ui-overlay-strong,#000000ad)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{background:var(--bg);height:100%;color:var(--text);font-family:var(--ui-font-sans,ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif);margin:0;padding:0}.mdeditor-app{height:100vh;display:flex;overflow:hidden}.mdeditor-sidebar{background:var(--sidebar-bg);pointer-events:none;min-width:0;overflow:hidden}.mdeditor-sidebar.is-open{pointer-events:auto}.mdeditor-sidebar:not(.is-mobile){border-right:0 solid var(--border);width:0;height:100%;box-shadow:none;flex:none;transition:width .18s cubic-bezier(.2,0,0,1),border-right-width .18s cubic-bezier(.2,0,0,1);position:static}.mdeditor-sidebar:not(.is-mobile).is-open{border-right-width:1px;width:280px}.mdeditor-sidebar.is-mobile{width:min(320px,86vw);height:100vh;z-index:var(--ui-z-drawer,70);box-shadow:none;will-change:transform;border-right:none;transition:transform .18s cubic-bezier(.2,0,0,1),box-shadow .18s cubic-bezier(.2,0,0,1);position:fixed;inset:0 auto 0 0;transform:translate(-100%)}.mdeditor-sidebar.is-mobile.is-open{box-shadow:var(--ui-shadow-lg,0 20px 50px #14181f33);transform:translate(0)}.mdeditor-mobile-backdrop{inset:calc(var(--ui-control-min,44px) + 21px) 0 0;background:var(--overlay-bg);z-index:var(--ui-z-drawer-backdrop,65);opacity:0;pointer-events:none;transition:opacity .16s ease-out;position:fixed}.mdeditor-mobile-backdrop.is-open{opacity:1;pointer-events:auto}.mdeditor-main-col{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;overflow:hidden}.mdeditor-content{flex:1;overflow:hidden auto}.mdeditor-home-host,.mdeditor-keyword-graph-host,.mdeditor-reading-notes-host,.mdeditor-research-log-host{flex:1;min-height:0;overflow:hidden auto}.mdeditor-content-empty{justify-content:center;align-items:center;height:100%;display:flex}.mdeditor-content-empty p{color:var(--muted-light);text-align:center;white-space:pre-line;font-size:14px;line-height:1.8}.mdeditor-slash-hint{max-width:var(--ui-content-reading,720px);padding:0 var(--ui-space-6,24px);color:var(--ui-text-subtle,var(--muted-light));margin:0 auto;font-size:12.5px}.mdeditor-login{background:var(--ui-page,var(--bg));justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.mdeditor-login-card{text-align:center;width:100%;max-width:380px}.mdeditor-login-logo{border-radius:var(--ui-radius-panel,16px);background:var(--accent);width:48px;height:48px;color:var(--ui-on-brand,#fff);box-shadow:var(--ui-shadow-md,0 12px 32px #14181f24);justify-content:center;align-items:center;margin:0 auto 20px;font-size:22px;font-weight:800;display:flex}.mdeditor-login-card h1{color:var(--text);margin:0 0 10px;font-size:23px;font-weight:800}.mdeditor-login-card p{color:var(--muted);margin:0 0 28px;font-size:14.5px;line-height:1.7}.mdeditor-login-card button{width:100%;min-height:var(--ui-control-min,44px);border-radius:var(--ui-radius-control,12px);background:var(--accent);color:var(--ui-on-brand,#fff);cursor:pointer;box-shadow:none;border:none;padding:10px 16px;font-size:14.5px;font-weight:700}.mdeditor-login-card button:disabled{opacity:.7;cursor:default}header{background:var(--header-bg);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-bottom:1px solid var(--border);flex:none;justify-content:space-between;align-items:center;padding:10px 16px;display:flex}header h1{color:var(--muted);margin:0;font-size:15px;font-weight:600}header .actions button{border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:6px;margin-left:6px;padding:6px 12px;font-size:13px}#editor{max-width:var(--ui-content-reading,720px);padding:var(--ui-space-10,40px) var(--ui-space-6,24px) 140px;background:var(--ui-editable-surface,var(--surface));font-family:var(--ui-font-sans);line-height:var(--ui-leading-body,1.75);margin:0 auto;font-size:16px}.line{border-radius:var(--ui-radius-sm,8px);cursor:text;overflow-wrap:break-word;word-break:break-word;min-height:1.6em;margin:0 -10px;padding:3px 10px;position:relative}.line.blank{min-height:1.2em}.line .h1,.line .h2,.line .h3,.line .h4,.line .h5,.line .h6{font-family:var(--ui-font-sans);font-weight:700;display:inline-block}.line .h1{font-size:1.75em;line-height:1.3}.line .h2{font-size:1.5em;line-height:1.3}.line .h3{font-size:1.3em}.line .h4{font-size:1.15em}.line .h5{font-size:1.05em}.line .h6{color:var(--muted);font-size:1em}.line.heading{margin-top:.5em}.line.heading:has(.h1,.live-h1){margin-top:.75em}.line.hr hr{border:none;border-top:1px solid var(--border);margin:.6em 0}:is(.line.quote,.line.active:has(>.raw-editor-ce .live-quote)){border:1px solid var(--quote-card-outline);border-radius:var(--ui-radius-panel,16px);background:var(--quote-card-bg);box-shadow:none;color:var(--quote-text);font-family:var(--ui-font-sans);letter-spacing:.01em;overflow-wrap:anywhere;word-break:break-word;margin:10px 0;padding:51px 24px 22px 28px;font-size:16px;font-weight:500;line-height:1.9;overflow:hidden}.line.quote:before{background:var(--quote-border);content:"";pointer-events:none;width:4px;position:absolute;inset:0 auto 0 0}.line.active:has(>.raw-editor-ce .live-quote):before{background:var(--quote-border);content:"";pointer-events:none;width:4px;position:absolute;inset:0 auto 0 0}.line.quote:after{background:var(--quote-mark);content:"";pointer-events:none;width:28px;height:22px;position:absolute;top:22px;left:28px;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath d='M13.6 1.8C7.3 4.5 3.4 9.1 3.4 15c0 4.3 2.4 7.2 5.8 7.2 3 0 5.2-2.2 5.2-5.2 0-2.8-2-4.8-4.6-4.8-.5 0-1 .1-1.4.2.8-3.2 3-5.8 6.6-7.7l-1.4-2.9Zm15 0C22.3 4.5 18.4 9.1 18.4 15c0 4.3 2.4 7.2 5.8 7.2 3 0 5.2-2.2 5.2-5.2 0-2.8-2-4.8-4.6-4.8-.5 0-1 .1-1.4.2.8-3.2 3-5.8 6.6-7.7l-1.4-2.9Z'/%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath d='M13.6 1.8C7.3 4.5 3.4 9.1 3.4 15c0 4.3 2.4 7.2 5.8 7.2 3 0 5.2-2.2 5.2-5.2 0-2.8-2-4.8-4.6-4.8-.5 0-1 .1-1.4.2.8-3.2 3-5.8 6.6-7.7l-1.4-2.9Zm15 0C22.3 4.5 18.4 9.1 18.4 15c0 4.3 2.4 7.2 5.8 7.2 3 0 5.2-2.2 5.2-5.2 0-2.8-2-4.8-4.6-4.8-.5 0-1 .1-1.4.2.8-3.2 3-5.8 6.6-7.7l-1.4-2.9Z'/%3E%3C/svg%3E") 50%/contain no-repeat}.line.active:has(>.raw-editor-ce .live-quote):after{background:var(--quote-mark);content:"";pointer-events:none;width:28px;height:22px;position:absolute;top:22px;left:28px;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath d='M13.6 1.8C7.3 4.5 3.4 9.1 3.4 15c0 4.3 2.4 7.2 5.8 7.2 3 0 5.2-2.2 5.2-5.2 0-2.8-2-4.8-4.6-4.8-.5 0-1 .1-1.4.2.8-3.2 3-5.8 6.6-7.7l-1.4-2.9Zm15 0C22.3 4.5 18.4 9.1 18.4 15c0 4.3 2.4 7.2 5.8 7.2 3 0 5.2-2.2 5.2-5.2 0-2.8-2-4.8-4.6-4.8-.5 0-1 .1-1.4.2.8-3.2 3-5.8 6.6-7.7l-1.4-2.9Z'/%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath d='M13.6 1.8C7.3 4.5 3.4 9.1 3.4 15c0 4.3 2.4 7.2 5.8 7.2 3 0 5.2-2.2 5.2-5.2 0-2.8-2-4.8-4.6-4.8-.5 0-1 .1-1.4.2.8-3.2 3-5.8 6.6-7.7l-1.4-2.9Zm15 0C22.3 4.5 18.4 9.1 18.4 15c0 4.3 2.4 7.2 5.8 7.2 3 0 5.2-2.2 5.2-5.2 0-2.8-2-4.8-4.6-4.8-.5 0-1 .1-1.4.2.8-3.2 3-5.8 6.6-7.7l-1.4-2.9Z'/%3E%3C/svg%3E") 50%/contain no-repeat}@media (width<=520px){:is(.line.quote,.line.active:has(>.raw-editor-ce .live-quote)){border-radius:14px;padding:48px 19px 20px 22px;font-size:15px;line-height:1.85}.line.quote:after{top:19px;left:22px}.line.active:has(>.raw-editor-ce .live-quote):after{top:19px;left:22px}}.line.list-item{padding-left:28px}.line .li-marker{color:var(--muted);position:absolute;left:10px}.line.li-indent-1{padding-left:48px}.line.li-indent-2{padding-left:68px}.line.li-indent-3{padding-left:88px}.line.li-indent-4{padding-left:108px}.line.li-indent-5{padding-left:128px}.line.li-indent-6{padding-left:148px}.li-indent-1 .li-marker{left:30px}.li-indent-2 .li-marker{left:50px}.li-indent-3 .li-marker{left:70px}.li-indent-4 .li-marker{left:90px}.li-indent-5 .li-marker{left:110px}.li-indent-6 .li-marker{left:130px}.line.active{z-index:1;background:var(--ui-selected);box-shadow:none}.li-indent-btns{align-items:center;gap:16px;display:flex;position:absolute;top:50%;right:4px;transform:translateY(-50%)}.li-indent-btn{border:1px solid var(--border-strong);background:var(--surface);width:30px;height:30px;color:var(--text);cursor:pointer;border-radius:50%;justify-content:center;align-items:center;padding:0;font-size:13px;line-height:1;display:flex;position:relative;box-shadow:0 1px 4px #00000029}.li-indent-btn:before{content:"";position:absolute;inset:-7px}.li-indent-btn:active:not(:disabled){background:var(--hover-bg)}.li-indent-btn:disabled{color:var(--muted-light);cursor:default}.line code{background:var(--code-bg);border-radius:4px;padding:.15em .35em;font-size:.9em}.line a{color:var(--accent)}.raw-editor-ce{white-space:pre-wrap;word-break:break-word;outline:none;min-height:1.4em}.raw-editor-ce .live-h1{font-size:1.75em;font-weight:700;line-height:1.3}.raw-editor-ce .live-h2{font-size:1.5em;font-weight:700;line-height:1.3}.raw-editor-ce .live-h3{font-size:1.3em;font-weight:700}.raw-editor-ce .live-h4{font-size:1.15em;font-weight:700}.raw-editor-ce .live-h5{font-size:1.05em;font-weight:700}.raw-editor-ce .live-h6{color:var(--muted);font-size:1em;font-weight:700}.raw-editor-ce .live-quote{color:var(--quote-text)}.code-wrap{margin:.6em -10px}.code-editor{box-sizing:border-box;resize:none;outline:1px solid var(--border);background:var(--code-bg);border-radius:var(--ui-radius-sm,8px);width:100%;font-family:var(--ui-font-mono);color:var(--code-text);border:none;padding:10px 12px;font-size:13.5px;line-height:1.6;overflow:hidden}.slash-menu{background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-radius:var(--ui-radius-control,12px);box-shadow:var(--ui-shadow-md);min-width:200px;z-index:var(--ui-z-popover,40);margin-top:4px;padding:5px;position:absolute;top:100%;left:0;overflow:hidden}.slash-menu button{text-align:left;width:100%;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:8px;padding:9px 11px;font-size:13.5px;display:block}.slash-menu .slash-menu-empty{color:var(--muted-light);margin:0;padding:8px 10px;font-size:12.5px}.wikilink{background:var(--hover-bg);color:var(--link);border:1px solid var(--border-strong);cursor:pointer;border-radius:5px;align-items:center;gap:3px;padding:1px 7px 1px 5px;font-size:.95em;display:inline-flex}.wikilink-broken{color:var(--danger);border-style:dashed}.wikilink-menu{background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-radius:var(--ui-radius-control,12px);min-width:220px;max-width:320px;box-shadow:var(--ui-shadow-md);z-index:var(--ui-z-popover,40);margin-top:4px;padding:5px;position:absolute;top:100%;left:0;overflow:hidden}.wikilink-menu-item{text-align:left;width:100%;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:8px;align-items:center;gap:7px;padding:9px 11px;font-size:13.5px;display:flex}.wikilink-menu-item.selected{background:var(--ui-selected);color:var(--ui-text);box-shadow:none;border-color:#0000;font-weight:680}.wikilink-menu-item-path{color:var(--muted-light);margin-left:auto;font-size:11px}.wikilink-menu-empty{color:var(--muted-light);margin:0;padding:8px 10px;font-size:12.5px}.linkbox-url-input{background:var(--hover-bg);border:1px dashed var(--border-strong);border-radius:8px;align-items:center;gap:8px;padding:8px 10px;display:flex}.linkbox-url-input input{color:var(--text);background:0 0;border:none;outline:none;flex:1;font-size:14px}.linkbox-url-input .hint-icon{color:var(--muted)}.linkbox-wrap{margin:6px 0;position:relative}.linkbox{border:1px solid var(--ui-border);border-radius:var(--ui-radius-control,12px);background:var(--ui-surface);color:inherit;text-decoration:none;display:block;overflow:hidden}.linkbox-card{min-height:92px;display:flex}.linkbox-text{flex-direction:column;flex:1;gap:4px;min-width:0;padding:12px 14px;display:flex}.linkbox-title{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.linkbox-desc{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12.5px;display:-webkit-box;overflow:hidden}.linkbox-domain{color:var(--muted-light);align-items:center;gap:5px;margin-top:auto;font-size:11.5px;display:flex}.linkbox-domain img{object-fit:cover;border-radius:3px;width:14px;height:14px}.linkbox-thumb{background:var(--hover-bg);flex:none;width:92px}.linkbox-thumb img{object-fit:cover;width:100%;height:100%;display:block}.linkbox.loading .linkbox-card{color:var(--muted);justify-content:center;align-items:center;gap:8px;font-size:13px}.linkbox-spinner{border:2px solid var(--border-strong);border-top-color:var(--accent);border-radius:50%;width:16px;height:16px;animation:.8s linear infinite linkbox-spin}@keyframes linkbox-spin{to{transform:rotate(360deg)}}.linkbox.fallback .linkbox-card{color:var(--link);align-items:center;gap:8px;padding:12px 14px;font-size:13.5px}.linkbox.fallback .linkbox-card .icon{color:var(--muted)}.linkbox-blocked .linkbox-card{color:var(--muted);cursor:default}.linkbox.youtube .linkbox-card{flex-direction:column;min-height:0}.linkbox.youtube .yt-thumb{aspect-ratio:16/9;background-color:#000;position:relative}.linkbox.youtube .yt-thumb img{object-fit:cover;width:100%;height:100%;display:block}.linkbox.youtube .yt-play{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.linkbox.youtube .yt-play-btn{color:#fff;background:#000000bf;border-radius:10px;justify-content:center;align-items:center;width:56px;height:40px;font-size:18px;display:flex}.linkbox.youtube.playing .yt-thumb{display:none}.linkbox.youtube.playing iframe{aspect-ratio:16/9;border:none;width:100%;display:block}.linkbox.youtube .linkbox-text{padding:10px 14px}.linkbox-remove-btn{border:1px solid var(--border-strong);background:var(--surface);width:26px;height:26px;color:var(--muted);cursor:pointer;border-radius:50%;justify-content:center;align-items:center;font-size:13px;display:flex;position:absolute;top:6px;right:6px}.md-table-wrap{margin:.7em 0;padding-top:12px;position:relative;overflow:visible}.md-table-scroll{touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;overflow:auto hidden}table.md-table{border-collapse:collapse;table-layout:auto;width:100%;font-size:14.5px}table.md-table th,table.md-table td{border:1px solid var(--border);min-width:60px;padding:6px 8px}table.md-table th{background:var(--table-head-bg);font-weight:600}table.md-table .md-cell{cursor:text;outline:none;min-height:1.3em}table.md-table th .md-cell{font-weight:600}table.md-table .md-cell[contenteditable=true]{background:var(--hover-bg)}.md-cell a{color:var(--accent)}.md-cell-line{min-height:1.3em}.md-cell-li{padding-left:14px;position:relative}.md-cell-li-marker{color:var(--muted);position:absolute;left:0}.ov-btn{z-index:20;position:absolute;top:0;left:0;transform:translate(-50%,-50%)}.ov-btn-inner{position:relative}.ov-trigger{background:var(--ov-trigger-bg);cursor:pointer;width:18px;height:18px;color:var(--muted-light);border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;padding:0;font-size:11px;line-height:1;display:flex}.ov-trigger.open{background:var(--hover-bg);border-color:var(--border-strong);color:var(--text)}.ov-menu{background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm,8px);box-shadow:var(--ui-shadow-md);z-index:30;min-width:128px;display:none;position:absolute;overflow:hidden}.ov-menu.open{display:block}.col-btn .ov-menu{margin-top:4px;top:100%;left:50%;transform:translate(-50%)}.row-btn .ov-menu{margin-left:4px;top:0;left:100%;transform:none}.ov-menu button{text-align:left;background:var(--surface);white-space:pre;cursor:pointer;width:100%;color:var(--text);border:none;padding:7px 12px;font-size:12.5px;font-weight:400;display:block}.ov-menu button.danger{color:var(--danger);border-top:1px solid var(--border)}.ov-menu .menu-sep{border-top:1px solid var(--border);margin:2px 0}img.md-img{vertical-align:middle;border-radius:6px;max-width:100%}img.md-img.md-img-loading{background:linear-gradient(90deg, var(--hover-bg) 25%, var(--code-bg) 37%, var(--hover-bg) 63%);border:1px solid var(--border);background-size:400% 100%;min-width:120px;min-height:80px;animation:1.4s infinite md-img-skeleton;display:inline-block}@keyframes md-img-skeleton{0%{background-position:100%}to{background-position:0}}img.md-img.md-img-broken{box-sizing:border-box;background:var(--hover-bg);border:1px dashed var(--border);min-width:120px;min-height:32px;color:var(--muted);vertical-align:middle;border-radius:6px;align-items:center;gap:6px;padding:6px 10px;font-size:.85em;display:inline-flex}img.md-img.md-img-broken:before{content:"⚠︎";color:var(--muted);margin-right:2px}@media (hover:hover) and (pointer:fine){.mdeditor-login-card button:hover{background:var(--accent-hover)}header .actions button:hover,.slash-menu button:hover{background:var(--hover-bg)}.wikilink:hover{background:var(--active-hover-bg,var(--hover-bg))}.wikilink-menu-item:hover,.linkbox-card:hover{background:var(--hover-bg)}.linkbox-remove-btn{display:none}.linkbox-wrap:hover .linkbox-remove-btn{display:flex}.ov-trigger:hover{background:var(--hover-bg);border-color:var(--border-strong);color:var(--text)}.ov-menu button:hover{background:var(--hover-bg)}.ov-menu button.danger:hover{background:var(--ui-danger-surface)}}@media (prefers-reduced-motion:reduce){.mdeditor-sidebar,.mdeditor-mobile-backdrop{transition:none!important}}:root{--ui-page:#fafafa;--ui-sidebar:#f4f5f6;--ui-surface:#fff;--ui-surface-raised:#fff;--ui-surface-subtle:#f3f4f5;--ui-text:#24262b;--ui-text-muted:#686d76;--ui-text-subtle:#7c818a;--ui-text-disabled:#a8abb1;--ui-border:#e1e3e6;--ui-border-strong:#c9ccd1;--ui-divider:#eceef0;--ui-brand:#3f8268;--ui-brand-hover:#356f59;--ui-brand-pressed:#2c5c4a;--ui-brand-soft:#e7f0ec;--ui-on-brand:#fff;--ui-accent:var(--ui-brand);--ui-accent-hover:var(--ui-brand-hover);--ui-on-accent:var(--ui-on-brand);--ui-link:#356f59;--ui-selected:var(--ui-brand-soft);--ui-selected-border:var(--ui-brand);--ui-selected-indicator:var(--ui-brand);--ui-hover:#f0f1f3;--ui-pressed:#e6e8eb;--ui-success:#2f7652;--ui-info:#3269b8;--ui-warning:#996515;--ui-danger:#bd3d34;--ui-success-surface:color-mix(in srgb, var(--ui-success) 10%, var(--ui-surface));--ui-info-surface:color-mix(in srgb, var(--ui-info) 10%, var(--ui-surface));--ui-warning-surface:color-mix(in srgb, var(--ui-warning) 10%, var(--ui-surface));--ui-danger-surface:color-mix(in srgb, var(--ui-danger) 10%, var(--ui-surface));--ui-focus:color-mix(in srgb, var(--ui-brand) 72%, transparent);--ui-overlay:#14181f61;--ui-overlay-strong:#14181f85;--ui-font-sans:ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;--ui-font-mono:ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;--ui-font-emoji:"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;--ui-space-1:4px;--ui-space-2:8px;--ui-space-3:12px;--ui-space-4:16px;--ui-space-5:20px;--ui-space-6:24px;--ui-space-8:32px;--ui-space-10:40px;--ui-radius-sm:8px;--ui-radius-control:12px;--ui-radius-panel:16px;--ui-radius-pill:999px;--ui-radius-md:10px;--ui-radius-lg:var(--ui-radius-control);--ui-radius-card:var(--ui-radius-panel);--ui-radius-round:var(--ui-radius-pill);--ui-control-compact:36px;--ui-control-min:44px;--ui-content-reading:720px;--ui-content-wide:1040px;--ui-font-xs:12px;--ui-font-sm:13px;--ui-font-body:15px;--ui-font-md:17px;--ui-font-lg:21px;--ui-font-title:28px;--ui-leading-tight:1.35;--ui-leading-ui:1.5;--ui-leading-body:1.75;--ui-shadow-sm:0 2px 8px #14181f14;--ui-shadow-md:0 12px 32px #14181f24;--ui-shadow-lg:0 20px 50px #14181f33;--ui-z-popover:40;--ui-z-floating:55;--ui-z-drawer-backdrop:65;--ui-z-drawer:70;--ui-z-sheet-backdrop:78;--ui-z-sheet:80;--ui-z-modal:200;--ui-z-banner:999;--ui-z-toast:1000;--ui-z-alert:2000;--viz-primary:var(--ui-brand);--viz-secondary:#315f84;--ui-code-surface:var(--ui-surface-subtle);--ui-code-text:#4d545d;--ui-table-header-surface:var(--ui-surface-subtle);--ui-quote-surface:var(--ui-surface);--ui-quote-text:var(--ui-text-muted);--ui-quote-border:var(--ui-border-strong);--ui-editable-surface:var(--ui-surface);--ui-readonly-surface:var(--ui-page);--bg:var(--ui-page);--sidebar-bg:var(--ui-sidebar);--surface:var(--ui-surface);--text:var(--ui-text);--muted:var(--ui-text-muted);--muted-light:var(--ui-text-subtle);--border:var(--ui-border);--border-strong:var(--ui-border-strong);--accent:var(--ui-brand);--accent-hover:var(--ui-brand-hover);--accent-text:var(--ui-link);--hover-bg:var(--ui-hover);--active-hover-bg:var(--ui-pressed);--link:var(--ui-link);--danger:var(--ui-danger);--danger-hover:color-mix(in srgb, var(--ui-danger) 84%, var(--ui-text));--overlay-bg:var(--ui-overlay);--overlay-strong-bg:var(--ui-overlay-strong);--code-bg:var(--ui-code-surface);--code-text:var(--ui-code-text);--table-head-bg:var(--ui-table-header-surface);--header-bg:color-mix(in srgb, var(--ui-page) 88%, transparent);--quote-card-bg:var(--ui-quote-surface);--quote-card-outline:var(--ui-border);--quote-text:var(--ui-quote-text);--quote-border:var(--ui-quote-border);--quote-shadow:var(--ui-shadow-sm)}:root[data-apptheme=dark]{--ui-page:#111214;--ui-sidebar:#17181b;--ui-surface:#1c1d20;--ui-surface-raised:#232428;--ui-surface-subtle:#25262a;--ui-text:#f1f1f2;--ui-text-muted:#b1b3ba;--ui-text-subtle:#92959e;--ui-text-disabled:#6f727a;--ui-border:#35363a;--ui-border-strong:#55575f;--ui-divider:#2b2c30;--ui-brand:#79c19d;--ui-brand-hover:#8bceac;--ui-brand-pressed:#67ad89;--ui-brand-soft:#243a31;--ui-on-brand:#10251c;--ui-link:#8bceac;--ui-hover:#292a2e;--ui-pressed:#32343a;--ui-success:#68c99a;--ui-info:#8bb8f5;--ui-warning:#e7bd65;--ui-danger:#ff8176;--ui-overlay:#0000008f;--ui-overlay-strong:#000000ad;--ui-shadow-sm:0 2px 8px #00000038;--ui-shadow-md:0 12px 32px #0000004d;--ui-shadow-lg:0 20px 50px #0006;--viz-secondary:#8db7db;--ui-code-text:#d8dadd}html,body{font-family:var(--ui-font-sans)}:where(button,input,textarea,select,[tabindex]):focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}:where(button,input,textarea,select):disabled{color:var(--ui-text-disabled);cursor:default}:where(input[type=checkbox],input[type=radio]){accent-color:var(--ui-accent)}:where(.mdeditor-sidebar-home-link.active,.mdeditor-sidebar-file-btn.active){background:var(--ui-selected);color:var(--ui-text);box-shadow:none;border-color:#0000;font-weight:680}:where(.mdeditor-login-card,.mdeditor-newfile-dialog,.mdeditor-imagepicker-dialog,.mdeditor-conflict-dialog,.mdeditor-refresh-confirm-dialog,.mdeditor-rn-modal,.mdeditor-kg-details,.slash-menu,.wikilink-menu,.linkbox,.ov-menu){border:1px solid var(--ui-border);border-radius:var(--ui-radius-card);background:var(--ui-surface-raised);color:var(--ui-text);box-shadow:var(--ui-shadow-lg)}:where(.mdeditor-newfile-input,.mdeditor-imagepicker-url-input,.mdeditor-rn-query,.mdeditor-rn-panel textarea,.mdeditor-research-log-search,.mdeditor-research-log-sort){min-height:var(--ui-control-min);border-color:var(--ui-border-strong);border-radius:var(--ui-radius-lg);background:var(--ui-surface);color:var(--ui-text)}:where(.mdeditor-login-card,.mdeditor-home-section,.mdeditor-rn-card,.mdeditor-rn-panel,.mdeditor-tl-card){border-color:var(--ui-border);background:var(--ui-surface)}:where(.mdeditor-login-card){padding:var(--ui-space-8)}@media (hover:hover) and (pointer:fine){:where(button:not(:disabled)):hover{border-color:var(--ui-border-strong)}}@media (width<=760px){:where(input,textarea,select){font-size:max(16px,1em)}}@media (prefers-reduced-motion:reduce){:where(html:focus-within){scroll-behavior:auto}}@media (forced-colors:active){:where(button,input,textarea,select,[tabindex]){border-color:canvastext}:where(button,input,textarea,select,[tabindex]):focus-visible{outline-color:highlight}}#mdeditor-toast-container{z-index:var(--ui-z-toast,1000);pointer-events:none;flex-direction:column;align-items:flex-end;gap:8px;max-width:min(360px,100vw - 32px);display:flex;position:fixed;bottom:16px;right:16px}.mdeditor-toast{pointer-events:auto;cursor:pointer;min-height:var(--ui-control-min,44px);border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg,12px);color:var(--ui-text);background:var(--ui-surface-raised);box-shadow:var(--ui-shadow-md);opacity:0;word-break:break-word;font-size:13.5px;line-height:1.5;font-family:var(--ui-font-sans);border-left-width:4px;padding:10px 14px;transition:opacity .2s,transform .2s;transform:translateY(8px)}.mdeditor-toast-visible{opacity:1;transform:translateY(0)}.mdeditor-toast-leaving{opacity:0;transform:translateY(8px)}.mdeditor-toast-success{border-left-color:var(--ui-success);background:var(--ui-success-surface)}.mdeditor-toast-error{border-left-color:var(--ui-danger);background:var(--ui-danger-surface)}.mdeditor-toast-info{border-left-color:var(--ui-info);background:var(--ui-info-surface)}#mdeditor-banner-container{z-index:var(--ui-z-banner,999);flex-direction:column;display:flex;position:fixed;top:0;left:0;right:0}.mdeditor-banner{min-height:var(--ui-control-min,44px);border-bottom:1px solid var(--ui-warning);background:var(--ui-warning-surface);color:var(--ui-text);text-align:center;justify-content:center;align-items:center;gap:10px;padding:8px 16px;font-size:13px;display:flex}.mdeditor-banner-message{flex:auto}.mdeditor-banner-dismiss{width:var(--ui-control-min,44px);height:var(--ui-control-min,44px);min-width:var(--ui-control-min,44px);min-height:var(--ui-control-min,44px);color:inherit;cursor:pointer;border-radius:var(--ui-radius-control,12px);background:0 0;border:none;flex:none;padding:0;font-size:13px;line-height:1}@media (hover:hover) and (pointer:fine){.mdeditor-banner-dismiss:hover{background:var(--ui-hover)}}@media (prefers-reduced-motion:reduce){.mdeditor-toast{transition:none}}.mdeditor-conflict-overlay{z-index:var(--ui-z-alert,2000);background:var(--overlay-strong-bg);justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.mdeditor-conflict-dialog{background:var(--ui-surface-raised);width:100%;max-width:420px;color:var(--text);border:1px solid var(--ui-border);border-radius:var(--ui-radius-panel,16px);box-shadow:var(--ui-shadow-lg);padding:var(--ui-space-5,20px);box-sizing:border-box;font-family:var(--ui-font-sans)}.mdeditor-conflict-title{margin:0 0 8px;font-size:15px;font-weight:700;line-height:1.5}.mdeditor-conflict-desc{color:var(--muted);margin:0 0 18px;font-size:13px;line-height:1.6}.mdeditor-conflict-actions{flex-direction:column;gap:8px;display:flex}.mdeditor-conflict-btn{width:100%;min-height:var(--ui-control-min,44px);box-sizing:border-box;border-radius:var(--ui-radius-control,12px);cursor:pointer;border:1px solid #0000;padding:10px 14px;font-size:13.5px;line-height:1.4}.mdeditor-conflict-btn-overwrite{background:var(--ui-danger);color:#fff}.mdeditor-conflict-btn-reload{background:var(--ui-brand);color:var(--ui-on-brand)}.mdeditor-conflict-btn-cancel{background:var(--surface);color:var(--text);border-color:var(--border)}@media (hover:hover) and (pointer:fine){.mdeditor-conflict-btn-overwrite:hover{background:var(--danger-hover)}.mdeditor-conflict-btn-reload:hover{background:var(--ui-brand-hover)}.mdeditor-conflict-btn-cancel:hover{background:var(--hover-bg)}}.mdeditor-refresh-confirm-overlay{z-index:var(--ui-z-alert,2000);background:var(--overlay-strong-bg);justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.mdeditor-refresh-confirm-dialog{background:var(--ui-surface-raised);width:100%;max-width:420px;color:var(--text);border:1px solid var(--ui-border);border-radius:var(--ui-radius-panel,16px);box-shadow:var(--ui-shadow-lg);padding:var(--ui-space-5,20px);box-sizing:border-box;font-family:var(--ui-font-sans)}.mdeditor-refresh-confirm-title{margin:0 0 8px;font-size:15px;font-weight:700;line-height:1.5}.mdeditor-refresh-confirm-desc{color:var(--muted);margin:0 0 18px;font-size:13px;line-height:1.6}.mdeditor-refresh-confirm-actions{flex-direction:column;gap:8px;display:flex}.mdeditor-refresh-confirm-btn{width:100%;min-height:var(--ui-control-min,44px);box-sizing:border-box;border-radius:var(--ui-radius-control,12px);cursor:pointer;border:1px solid #0000;padding:10px 14px;font-size:13.5px;line-height:1.4}.mdeditor-refresh-confirm-btn-discard{background:var(--ui-brand);color:var(--ui-on-brand)}.mdeditor-refresh-confirm-btn-cancel{background:var(--surface);color:var(--text);border-color:var(--border)}@media (hover:hover) and (pointer:fine){.mdeditor-refresh-confirm-btn-discard:hover{background:var(--ui-brand-hover)}.mdeditor-refresh-confirm-btn-cancel:hover{background:var(--hover-bg)}}.mdeditor-delete-confirm-overlay{z-index:var(--ui-z-alert,2000);background:var(--overlay-strong-bg);place-items:center;padding:16px;display:grid;position:fixed;inset:0}.mdeditor-delete-confirm-dialog{box-sizing:border-box;border:1px solid var(--ui-border);border-radius:var(--ui-radius-panel,16px);background:var(--ui-surface-raised);width:min(400px,100%);color:var(--text);box-shadow:var(--ui-shadow-lg);font-family:var(--ui-font-sans);padding:24px}.mdeditor-delete-confirm-dialog h2{margin:0 0 8px;font-size:18px;line-height:1.4}.mdeditor-delete-confirm-dialog p{color:var(--ui-text-muted);overflow-wrap:anywhere;margin:0;font-size:13px;line-height:1.65}.mdeditor-delete-confirm-actions{justify-content:flex-end;gap:8px;margin-top:22px;display:flex}.mdeditor-delete-confirm-actions button{border:1px solid var(--ui-border);border-radius:var(--ui-radius-control,12px);background:var(--ui-surface);min-height:44px;color:var(--ui-text);cursor:pointer;padding:8px 15px}.mdeditor-delete-confirm-actions button.danger{background:var(--ui-danger);color:#fff;border-color:#0000;font-weight:700}.mdeditor-sidebar-inner{flex-direction:column;height:100%;display:flex;position:relative}.mdeditor-sidebar-fixed-nav{flex:none;padding:16px 10px 4px}.mdeditor-sidebar-home-link{width:100%;min-height:48px;color:var(--accent-text);text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:13px;align-items:center;gap:10px;padding:7px 10px;font-weight:700;display:flex}.mdeditor-sidebar-home-link.active{background:var(--ui-selected);color:var(--ui-text);box-shadow:none;border-color:#0000}.mdeditor-sidebar-home-icon{width:34px;height:34px;font-family:var(--ui-font-emoji,"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif);background:0 0;border:0;border-radius:0;flex:0 0 34px;justify-content:center;align-items:center;font-size:20px;font-weight:400;line-height:1;display:flex}.mdeditor-sidebar-nav-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.mdeditor-sidebar-scroll{flex-direction:column;flex:1;gap:4px;padding:6px 10px 60px;display:flex;overflow-y:auto}.mdeditor-sidebar-folder-btn{text-align:left;cursor:pointer;background:0 0;border:none;border-radius:12px;align-items:center;gap:10px;width:100%;padding:8px 10px;display:flex}.mdeditor-sidebar-folder-icon{font-size:16px}.mdeditor-sidebar-folder-name{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:13.5px;font-weight:700;overflow:hidden}.mdeditor-sidebar-folder-chevron{color:var(--muted-light);font-size:11px}.mdeditor-sidebar-file-btn{text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:14px;align-items:center;gap:12px;width:100%;padding:8px 10px;display:flex}.mdeditor-sidebar-file-btn.active{background:var(--ui-selected);color:var(--ui-text);box-shadow:none;border-color:#0000}.mdeditor-sidebar-file-icon-box{background:0 0;border-radius:0;flex:none;justify-content:center;align-items:center;width:32px;height:32px;font-size:15px;display:flex}.mdeditor-sidebar-file-text-col{flex-direction:column;flex:auto;min-width:0;display:flex}.mdeditor-sidebar-file-name{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;overflow:hidden}.mdeditor-sidebar-file-btn.active .mdeditor-sidebar-file-name{color:var(--ui-text);font-weight:700}.mdeditor-sidebar-file-folder-label{color:var(--muted-light);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.mdeditor-sidebar-empty{text-align:center;color:var(--muted-light);white-space:pre-line;padding:28px 14px;font-size:13px;line-height:1.7}.mdeditor-sidebar-status.is-loading:before{content:"";border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:20px;height:20px;margin:0 auto 10px;animation:.8s linear infinite spin;display:block}.mdeditor-sidebar-status.is-error{color:var(--danger)}.mdeditor-sidebar-fab{background:var(--accent);width:44px;height:44px;color:var(--ui-on-accent,#fff);cursor:pointer;box-shadow:none;border:none;border-radius:50%;justify-content:center;align-items:center;font-size:22px;font-weight:700;display:flex;position:absolute;bottom:16px;right:16px}@media (hover:hover) and (pointer:fine){.mdeditor-sidebar-home-link:hover,.mdeditor-sidebar-folder-btn:hover,.mdeditor-sidebar-file-btn:hover{background:var(--hover-bg)}.mdeditor-sidebar-home-link.active:hover,.mdeditor-sidebar-file-btn.active:hover{background:var(--ui-selected)}.mdeditor-sidebar-fab:hover{background:var(--accent-hover)}}.mdeditor-newfile-overlay{z-index:var(--ui-z-modal,200);background:var(--overlay-bg);justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.mdeditor-newfile-dialog{background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-radius:var(--ui-radius-panel,16px);padding:var(--ui-space-6,24px);box-sizing:border-box;width:100%;max-width:360px;box-shadow:var(--ui-shadow-lg);font-family:var(--ui-font-sans)}.mdeditor-newfile-title{color:var(--text);margin:0 0 6px;font-size:17px;font-weight:800}.mdeditor-newfile-desc{color:var(--muted-light);margin:0 0 8px;font-size:13px}.mdeditor-newfile-destination{color:var(--accent);margin:0 0 16px;font-size:12px;font-weight:600}.mdeditor-newfile-destination label{color:var(--text);gap:7px;display:grid}.mdeditor-newfile-folder-select{width:100%;min-height:var(--ui-control-min,44px);box-sizing:border-box;border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-control,12px);background:var(--ui-surface);color:var(--text);font:inherit;padding:9px 12px}.mdeditor-newfile-input{width:100%;min-height:var(--ui-control-min,44px);box-sizing:border-box;border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-control,12px);background:var(--ui-surface);color:var(--text);outline:none;margin-bottom:8px;padding:10px 14px;font-size:14px}.mdeditor-newfile-input:focus-visible{border-color:var(--ui-brand)}.mdeditor-newfile-input:disabled{opacity:.6}.mdeditor-newfile-error{color:var(--danger);margin:0 0 8px;font-size:12.5px}.mdeditor-newfile-actions{justify-content:flex-end;gap:8px;margin-top:12px;display:flex}.mdeditor-newfile-btn-cancel{min-height:var(--ui-control-min,44px);border-radius:var(--ui-radius-control,12px);border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--text);cursor:pointer;padding:9px 16px;font-size:13.5px}.mdeditor-newfile-btn-primary{min-height:var(--ui-control-min,44px);border-radius:var(--ui-radius-control,12px);background:var(--ui-brand);color:var(--ui-on-brand);cursor:pointer;border:none;padding:9px 18px;font-size:13.5px;font-weight:700}.mdeditor-newfile-btn-primary:disabled{opacity:.6;cursor:default}@media (hover:hover) and (pointer:fine){.mdeditor-newfile-btn-cancel:hover{background:var(--hover-bg)}.mdeditor-newfile-btn-primary:hover{background:var(--ui-brand-hover)}}.mdeditor-imagepicker-overlay{z-index:var(--ui-z-modal,200);background:var(--overlay-bg);justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.mdeditor-imagepicker-dialog{background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-radius:var(--ui-radius-panel,16px);padding:var(--ui-space-6,24px);box-sizing:border-box;width:100%;max-width:360px;box-shadow:var(--ui-shadow-lg);font-family:var(--ui-font-sans)}.mdeditor-imagepicker-title{color:var(--text);margin:0 0 6px;font-size:16px;font-weight:800}.mdeditor-imagepicker-desc{color:var(--muted-light);margin:0 0 18px;font-size:13.5px}.mdeditor-imagepicker-drop{min-height:var(--ui-control-min,44px);border:1px dashed var(--ui-border-strong);border-radius:var(--ui-radius-control,12px);background:var(--ui-surface-subtle);text-align:center;cursor:pointer;color:var(--muted-light);margin-bottom:18px;padding:28px 16px;font-size:13.5px}.mdeditor-imagepicker-actions{justify-content:flex-end;gap:8px;display:flex}.mdeditor-imagepicker-btn-cancel{min-height:var(--ui-control-min,44px);border-radius:var(--ui-radius-control,12px);border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--text);cursor:pointer;padding:8px 14px;font-size:13.5px}@media (hover:hover) and (pointer:fine){.mdeditor-imagepicker-drop:hover{border-color:var(--accent);color:var(--accent)}.mdeditor-imagepicker-btn-cancel:hover{background:var(--hover-bg)}}.mdeditor-header{min-height:55px}.mdeditor-header-left{align-items:center;gap:12px;min-width:0;display:flex}.mdeditor-header-sidebar-toggle{width:var(--ui-control-min,44px);height:var(--ui-control-min,44px);cursor:pointer;border-radius:var(--ui-radius-control,12px);background:0 0;border:0;flex:none;place-items:center;padding:0;display:grid;position:relative}.mdeditor-header-drawer-icon{object-fit:contain;width:40px;height:40px;display:block}.mdeditor-header-sidebar-toggle:focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}@media (hover:hover) and (pointer:fine){.mdeditor-header-sidebar-toggle:hover,.mdeditor-header-icon-btn:hover{background:var(--hover-bg)}}.mdeditor-header-info{align-items:center;gap:8px;min-width:0;display:flex}.mdeditor-header-filename{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdeditor-header-folder-label{color:var(--muted-light);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;font-size:12px;font-weight:400;overflow:hidden}.mdeditor-header-graph-path{max-width:min(42vw,320px)}@media (width<=640px){.mdeditor-header-graph-path{display:none}}.mdeditor-header-dirty-dot{background:var(--accent);border-radius:50%;flex:none;width:8px;height:8px}.mdeditor-header-actions{align-items:center;gap:10px;display:flex}.mdeditor-header-menu-wrap{position:relative}.mdeditor-header-menu-trigger{letter-spacing:2px;font-family:var(--ui-font-sans);font-weight:800}.mdeditor-header-menu{z-index:var(--ui-z-popover,40);border-radius:var(--ui-radius-control,12px);background:var(--ui-surface-raised);width:220px;box-shadow:var(--ui-shadow-lg);border:0;padding:6px;position:absolute;top:calc(100% + 7px);right:0}.mdeditor-header-menu[hidden]{display:none}.mdeditor-header .actions .mdeditor-header-menu button{width:100%;min-height:42px;box-shadow:none;color:var(--ui-text);text-align:left;background:0 0;border:0;border-radius:8px;margin:0;padding:8px 10px;display:block}.mdeditor-header .actions .mdeditor-header-menu button.danger{color:var(--ui-danger)}.mdeditor-header-offline-badge{background:var(--danger);color:#fff;white-space:nowrap;border-radius:999px;flex:none;padding:3px 9px;font-size:12px;font-weight:600}.mdeditor-header-save-btn-clean{opacity:.6}.mdeditor-header-save-btn:disabled{cursor:default;opacity:.6}.mdeditor-header-refresh-btn{align-items:center;gap:6px;display:flex}.mdeditor-header-refresh-icon{font-family:var(--ui-font-emoji,"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif);font-variant-emoji:emoji;font-weight:400;line-height:1;display:inline-block}.mdeditor-header-refresh-btn:disabled{cursor:default;opacity:.6}.is-refreshing .mdeditor-header-refresh-icon{animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.mdeditor-header-icon-btn{width:var(--ui-control-min,44px);height:var(--ui-control-min,44px);min-width:var(--ui-control-min,44px);min-height:var(--ui-control-min,44px);flex:0 0 var(--ui-control-min,44px);border-radius:var(--ui-radius-control,12px);border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;font-size:15px;font-family:var(--ui-font-emoji,"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif);font-variant-emoji:emoji;justify-content:center;align-items:center;padding:0;display:flex}.mdeditor-header-icon-btn.is-active{background:var(--ui-selected);color:var(--ui-text);box-shadow:none;border-color:#0000}.mdeditor-document-title{margin:0 0 var(--ui-space-6,24px);color:var(--text);font-family:var(--ui-font-sans);letter-spacing:-.025em;overflow-wrap:anywhere;word-break:break-word;text-align:center;font-size:2.1em;font-weight:700;line-height:1.75}.mdeditor-document-title:not(.has-frontmatter){padding-bottom:var(--ui-space-6,24px);border-bottom:1px solid var(--ui-border)}.mdeditor-frontmatter{margin:0 0 var(--ui-space-8,32px);border:1px solid var(--ui-border);border-radius:var(--ui-radius-panel,16px);background:var(--ui-surface);overflow:hidden}.mdeditor-frontmatter:focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}.mdeditor-frontmatter-table{table-layout:fixed;border-collapse:collapse;width:100%;font-size:14px;line-height:1.5}.mdeditor-frontmatter-table th,.mdeditor-frontmatter-table td{text-align:left;vertical-align:top;border-bottom:1px solid var(--ui-border);overflow-wrap:anywhere;word-break:break-word;white-space:pre-wrap;padding:11px 14px}.mdeditor-frontmatter-table th{border-right:1px solid var(--ui-border);width:38%;color:var(--ui-text-muted);background:var(--ui-surface);font-weight:600}.mdeditor-frontmatter-table tr:last-child>*{border-bottom:0}.mdeditor-frontmatter-toggle{width:100%;min-height:var(--ui-control-min,44px);border:0;border-top:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-link);cursor:pointer;font-weight:700}.mdeditor-frontmatter-editor{resize:vertical;background:var(--ui-code-surface);width:100%;min-height:180px;color:var(--ui-code-text);font:14px/1.55 var(--ui-font-mono);overflow-wrap:anywhere;word-break:break-word;border:0;padding:14px;display:block;overflow:hidden}.mdeditor-frontmatter-editor:focus{outline:none}.mdeditor-document-body-divider{margin:0 0 var(--ui-space-8,32px);border:0;border-top:1px solid var(--ui-border)}@media (hover:hover) and (pointer:fine){.mdeditor-frontmatter[tabindex]:hover{border-color:var(--ui-border-strong)}.mdeditor-frontmatter-toggle:hover{background:var(--ui-hover)}}@media (width<=520px){.mdeditor-frontmatter-table th,.mdeditor-frontmatter-table td{padding:10px}.mdeditor-frontmatter-table th{width:39%}}.mdeditor-tl-presentation{max-width:var(--ui-content-reading,720px);padding:var(--ui-space-10,40px) var(--ui-space-6,24px) 0;margin:0 auto}.mdeditor-tl-inner{max-width:var(--ui-content-reading,720px);padding:var(--ui-space-4,16px);font-family:var(--ui-font-sans);margin:0 auto}.mdeditor-tl-card{gap:var(--ui-space-3,12px);margin-bottom:var(--ui-space-3,12px);padding:14px var(--ui-space-4,16px);border:1px solid var(--ui-border);border-radius:var(--ui-radius-panel,16px);background:var(--ui-surface);display:flex}.mdeditor-tl-avatar{background:var(--hover-bg);width:44px;height:44px;color:var(--accent);border-radius:50%;flex:none;justify-content:center;align-items:center;font-size:20px;display:flex}@media (hover:hover) and (pointer:fine){.mdeditor-tl-card:hover{background:var(--hover-bg)}}.mdeditor-tl-main{flex:1;min-width:0}.mdeditor-tl-meta{flex-wrap:wrap;align-items:baseline;gap:6px;display:flex}.mdeditor-tl-name{color:var(--text);font-size:15px;font-weight:700}.mdeditor-tl-body{word-break:break-word;margin-top:2px;font-size:15px;line-height:1.5}.mdeditor-tl-body-empty{color:var(--muted);margin:6px 0}.mdeditor-tl-body .line{cursor:default;margin:6px 0;padding:0}.mdeditor-tl-body .line.blank{display:none}.mdeditor-tl-body .line.quote{max-width:100%;margin:10px 0;padding:51px 24px 22px 28px}.mdeditor-tl-body .line.list-item{padding-left:20px}.mdeditor-tl-body .line .li-marker{left:2px}.mdeditor-tl-table-wrap{margin:8px 0}.mdeditor-tl-table{border-collapse:collapse;width:100%;font-size:13px}.mdeditor-tl-table th,.mdeditor-tl-table td{border:1px solid var(--border);text-align:left;padding:4px 8px}.mdeditor-tl-table th{background:var(--table-head-bg)}.mdeditor-tl-pre{background:var(--ui-code-surface);border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm,8px);margin:8px 0;padding:10px;font-size:13px;overflow-x:auto}.mdeditor-tl-pre code{font-family:var(--ui-font-mono);background:0 0;padding:0}.mdeditor-tl-empty{text-align:center;color:var(--muted);padding:60px 16px;font-size:13px}@media (width<=520px){.mdeditor-tl-body .line.quote{padding:48px 19px 20px 22px}}.document-floating-trigger{bottom:calc(24px + env(safe-area-inset-bottom,0px));width:var(--ui-control-min,44px);height:var(--ui-control-min,44px);min-width:var(--ui-control-min,44px);min-height:var(--ui-control-min,44px);border-radius:var(--ui-radius-pill,999px);border:1px solid var(--ui-border);background:var(--ui-surface-raised);color:var(--muted-light);cursor:pointer;box-shadow:var(--ui-shadow-md);z-index:var(--ui-z-floating,55);justify-content:center;align-items:center;font-size:20px;display:flex;position:fixed}.document-back-trigger{right:20px}.toc-trigger{right:20px;bottom:calc(24px + env(safe-area-inset-bottom,0px) + var(--ui-control-min,44px) + 12px)}.toc-overlay{background:var(--overlay-bg);z-index:var(--ui-z-sheet-backdrop,78);opacity:0;pointer-events:none;transition:opacity .2s;position:fixed;inset:0}.toc-overlay.open{opacity:1;pointer-events:auto}.toc-panel{background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-top-left-radius:var(--ui-radius-panel,16px);border-top-right-radius:var(--ui-radius-panel,16px);max-height:70vh;box-shadow:var(--ui-shadow-lg);pointer-events:none;z-index:var(--ui-z-sheet,80);padding-bottom:env(safe-area-inset-bottom,0px);border-bottom:0;flex-direction:column;transition:transform .25s;display:flex;position:fixed;bottom:0;left:0;right:0;transform:translateY(100%)}.toc-panel.open{pointer-events:auto;transform:translateY(0)}.toc-panel-header,.toc-panel-body{width:100%;max-width:var(--ui-content-reading,720px);margin:0 auto}.toc-panel-header{border-bottom:1px solid var(--border);flex:none;justify-content:space-between;align-items:center;padding:14px 20px;display:flex}.toc-panel-title{color:var(--text);font-size:14.5px;font-weight:700}.toc-panel-close{width:var(--ui-control-min,44px);height:var(--ui-control-min,44px);min-width:var(--ui-control-min,44px);min-height:var(--ui-control-min,44px);flex:0 0 var(--ui-control-min,44px);border-radius:var(--ui-radius-pill,999px);color:var(--muted);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;font-size:14px;display:flex}.toc-panel-body{padding:8px 10px 20px;overflow-y:auto}.toc-item{text-align:left;border-radius:var(--ui-radius-sm,8px);width:100%;color:var(--text);cursor:pointer;background:0 0;border:1px solid #0000;padding:9px 14px;font-size:14px;display:block}.toc-item.current{background:var(--ui-selected);color:var(--ui-text);box-shadow:none;border-color:#0000;font-weight:680}@media (hover:hover) and (pointer:fine){.document-floating-trigger:hover{background:var(--hover-bg);border-color:var(--border-strong);color:var(--text)}.toc-panel-close:hover,.toc-item:hover{background:var(--hover-bg)}.toc-item.current:hover{background:var(--ui-selected)}}.toc-item-h1{padding-left:14px;font-weight:700}.toc-item-h2{padding-left:30px;font-weight:500}.toc-item-h3{color:var(--muted);padding-left:46px;font-weight:400}.toc-empty{text-align:center;color:var(--muted);padding:44px 20px;font-size:13px}@keyframes toc-heading-flash{0%{background-color:color-mix(in srgb, var(--accent) 35%, transparent)}to{background-color:#0000}}.toc-flash{animation:1.1s ease-out toc-heading-flash}:root{--kg-daily:#e86657;--kg-projects:#4f8cff;--kg-areas:#40a579;--kg-resources:#a26bd5;--kg-unclassified:#948c80;--kg-edge:#cfc7ba;--kg-label-stroke:var(--bg);--kg-shadow:#362a1e24;--kg-control-glass:color-mix(in srgb, var(--ui-surface-raised) 92%, transparent);--kg-active:var(--ui-selected);--kg-focus-ring:var(--ui-focus)}:root[data-apptheme=dark]{--kg-daily:#ff7b6d;--kg-projects:#7ab2ff;--kg-areas:#66c99c;--kg-resources:#c18af0;--kg-unclassified:#aaa195;--kg-edge:#524a3d;--kg-label-stroke:var(--bg);--kg-shadow:#00000057;--kg-control-glass:color-mix(in srgb, var(--ui-surface-raised) 88%, transparent);--kg-active:var(--ui-selected)}.mdeditor-kg{background:var(--bg);width:100%;height:100%;min-height:360px;color:var(--text);font-family:var(--ui-font-sans);position:relative;overflow:hidden}.mdeditor-kg-canvas,.mdeditor-kg-svg{width:100%;height:100%;min-height:360px;display:block}.mdeditor-kg-canvas{touch-action:none}.mdeditor-kg-svg{cursor:grab}.mdeditor-kg-svg:active{cursor:grabbing}.mdeditor-kg-edge{stroke:var(--kg-edge);stroke-linecap:round;vector-effect:non-scaling-stroke;opacity:.72}.mdeditor-kg-edge--top{opacity:.38}.mdeditor-kg-edge--middle{opacity:.5}.mdeditor-kg-edge--individual{opacity:.72}.mdeditor-kg-node{cursor:pointer;outline:none}.mdeditor-kg-node circle{fill:currentColor;stroke:var(--surface);stroke-width:3px;vector-effect:non-scaling-stroke;transition:stroke-width .12s,filter .12s}.mdeditor-kg-node-label,.mdeditor-kg-node-count{fill:var(--text);stroke:var(--kg-label-stroke);stroke-width:4px;paint-order:stroke;stroke-linejoin:round;-webkit-user-select:none;user-select:none;pointer-events:none;font-family:var(--ui-font-sans)}.mdeditor-kg-node-label{font-size:13px;font-weight:650}.mdeditor-kg-node-count{fill:var(--muted);stroke-width:3px;font-size:10px;font-weight:720}.mdeditor-kg-node--top circle{fill:color-mix(in srgb, currentColor 20%, var(--surface));stroke:currentColor;stroke-width:3px;filter:drop-shadow(0 5px 11px var(--kg-shadow))}.mdeditor-kg-node--top .mdeditor-kg-node-label{stroke-width:6px;font-size:21px;font-weight:820}.mdeditor-kg-node--top .mdeditor-kg-node-count{stroke-width:4px;font-size:12px;font-weight:760}.mdeditor-kg-node--middle circle{fill:color-mix(in srgb, currentColor 26%, var(--surface));stroke:currentColor;stroke-width:2.5px;filter:drop-shadow(0 3px 8px var(--kg-shadow))}.mdeditor-kg-node--middle .mdeditor-kg-node-label{stroke-width:5px;font-size:16px;font-weight:760}.mdeditor-kg-node--middle .mdeditor-kg-node-count{font-size:11px;font-weight:720}.mdeditor-kg-node--individual circle{filter:drop-shadow(0 2px 5px var(--kg-shadow))}.mdeditor-kg-node:focus-visible circle,.mdeditor-kg-node.is-selected circle{stroke:var(--text);stroke-width:4px;filter:drop-shadow(0 2px 4px var(--kg-shadow))}.mdeditor-kg-node:focus-visible{outline:none}.mdeditor-kg-node:focus-visible .mdeditor-kg-node-label{text-underline-offset:3px;text-decoration:underline;text-decoration-thickness:2px}.mdeditor-kg-category-daily{color:var(--kg-daily);background:var(--kg-daily)}.mdeditor-kg-category-projects{color:var(--kg-projects);background:var(--kg-projects)}.mdeditor-kg-category-areas{color:var(--kg-areas);background:var(--kg-areas)}.mdeditor-kg-category-resources{color:var(--kg-resources);background:var(--kg-resources)}.mdeditor-kg-category-unclassified{color:var(--kg-unclassified);background:var(--kg-unclassified)}.mdeditor-kg-toolbar{z-index:3;top:max(14px, env(safe-area-inset-top));right:max(14px, env(safe-area-inset-right));gap:8px;display:flex;position:absolute}.mdeditor-kg-layer-switch{z-index:3;top:max(14px, env(safe-area-inset-top));left:max(14px, env(safe-area-inset-left));border:1px solid var(--ui-border);border-radius:var(--ui-radius-control);background:var(--kg-control-glass);box-shadow:var(--ui-shadow-sm);grid-template-columns:repeat(3,minmax(54px,1fr));gap:3px;padding:3px;display:grid;position:absolute}.mdeditor-kg-layer-button{min-width:54px;min-height:44px;color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:9px;padding:0 10px;font-size:12px;font-weight:760}.mdeditor-kg-layer-button.is-active,.mdeditor-kg-layer-button[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-text);box-shadow:none;border-color:#0000;font-weight:680}.mdeditor-kg-layer-button:focus-visible{outline:3px solid var(--kg-focus-ring);outline-offset:2px}.mdeditor-kg-layer-button:disabled,.mdeditor-kg-layer-button[aria-disabled=true]{cursor:not-allowed;opacity:.46;text-decoration:line-through;text-decoration-thickness:1px}.mdeditor-kg-zoom-state{z-index:3;top:max(18px, calc(env(safe-area-inset-top) + 4px));border:1px solid var(--ui-border);border-radius:var(--ui-radius-pill);background:var(--kg-control-glass);min-height:44px;color:var(--muted);white-space:nowrap;pointer-events:none;box-shadow:var(--ui-shadow-sm);place-items:center;padding:5px 12px;font-size:11px;font-weight:760;display:grid;position:absolute;left:50%;transform:translate(-50%)}.mdeditor-kg-hierarchy-notice{z-index:3;top:max(70px, calc(env(safe-area-inset-top) + 56px));left:max(14px, env(safe-area-inset-left));border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--kg-control-glass);max-width:min(520px,100% - 28px);color:var(--muted);box-shadow:var(--ui-shadow-sm);pointer-events:none;padding:8px 11px;font-size:12px;line-height:1.45;position:absolute}.mdeditor-kg-hierarchy-notice[hidden]{display:none}.mdeditor-kg-control,.mdeditor-kg-retry,.mdeditor-kg-details-close{border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-control);background:var(--ui-surface-raised);min-width:44px;min-height:44px;color:var(--ui-text);font:inherit;cursor:pointer;box-shadow:var(--ui-shadow-sm);font-size:13px}.mdeditor-kg-control:focus-visible,.mdeditor-kg-retry:focus-visible,.mdeditor-kg-details-close:focus-visible,.mdeditor-kg-source:focus-visible{outline:3px solid var(--kg-focus-ring);outline-offset:2px}.mdeditor-kg-control:disabled{cursor:default;opacity:.55}.mdeditor-kg-reload{padding:0 13px}.mdeditor-kg.is-loading .mdeditor-kg-reload{cursor:progress}.mdeditor-kg-legend{z-index:2;left:max(14px, env(safe-area-inset-left));bottom:max(14px, env(safe-area-inset-bottom));border:1px solid var(--ui-border);border-radius:var(--ui-radius-control);background:color-mix(in srgb, var(--ui-surface-raised) 91%, transparent);max-width:min(560px,100% - 28px);min-height:44px;color:var(--muted);box-shadow:var(--ui-shadow-sm);pointer-events:none;flex-wrap:wrap;gap:7px 12px;padding:9px 12px;font-size:11px;display:flex;position:absolute}.mdeditor-kg-legend-item{align-items:center;gap:5px;display:inline-flex}.mdeditor-kg-legend-dot{border-radius:50%;width:9px;height:9px}.mdeditor-kg-status{color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:24px;display:flex;position:absolute;inset:0}.mdeditor-kg-status[hidden]{display:none}.mdeditor-kg-status p{margin:0}.mdeditor-kg-loading:before{content:"";border:3px solid var(--border);border-top-color:var(--ui-brand);border-radius:50%;width:24px;height:24px;animation:.8s linear infinite mdeditor-kg-spin}@keyframes mdeditor-kg-spin{to{transform:rotate(360deg)}}.mdeditor-kg.is-zoom-animating .mdeditor-kg-viewport{transition:transform .16s ease-out}.mdeditor-kg-details{z-index:4;top:72px;right:max(14px, env(safe-area-inset-right));bottom:max(70px, calc(14px + env(safe-area-inset-bottom)));overscroll-behavior:contain;touch-action:pan-y;border:1px solid var(--ui-border);border-radius:var(--ui-radius-panel);background:var(--ui-surface-raised);width:min(330px,100% - 28px);box-shadow:var(--ui-shadow-lg);padding:20px;position:absolute;overflow-y:auto}.mdeditor-kg-details[hidden]{display:none}.mdeditor-kg-details h2{overflow-wrap:anywhere;margin:0 40px 15px 0;font-size:20px}.mdeditor-kg-details h3{color:var(--muted);margin:22px 0 9px;font-size:13px}.mdeditor-kg-details-meta{color:var(--muted);margin:7px 0;font-size:13px;line-height:1.55}.mdeditor-kg-details-meta span{color:var(--text);overflow-wrap:anywhere}.mdeditor-kg-details-close{box-shadow:none;font-size:22px;position:absolute;top:8px;right:8px}.mdeditor-kg-sources{gap:8px;margin:0;padding:0;list-style:none;display:grid}.mdeditor-kg-source{border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-surface);width:100%;min-height:44px;color:var(--text);font:inherit;text-align:left;cursor:pointer;padding:10px 11px}.mdeditor-kg-source:disabled{opacity:.58;cursor:progress}@media (hover:hover) and (pointer:fine){.mdeditor-kg-node:hover circle{stroke:var(--text);stroke-width:4px}.mdeditor-kg-layer-button:hover:not(:disabled):not([aria-disabled=true]):not(.is-active):not([aria-pressed=true]){background:var(--ui-hover);color:var(--text)}.mdeditor-kg-control:hover,.mdeditor-kg-retry:hover,.mdeditor-kg-details-close:hover,.mdeditor-kg-source:hover{background:var(--hover-bg)}}.mdeditor-kg-source-path,.mdeditor-kg-source-location{overflow-wrap:anywhere;display:block}.mdeditor-kg-source-path{font-size:12px}.mdeditor-kg-source-location{color:var(--muted);margin-top:4px;font-size:11px}.mdeditor-kg-source-empty{color:var(--muted);font-size:12px}@media (width<=760px){.mdeditor-kg-layer-switch{top:max(10px, env(safe-area-inset-top));left:max(10px, env(safe-area-inset-left));right:max(10px, env(safe-area-inset-right));grid-template-columns:repeat(3,minmax(0,1fr))}.mdeditor-kg-layer-button{min-width:0;padding-inline:6px}.mdeditor-kg-toolbar{top:max(68px, calc(env(safe-area-inset-top) + 58px));right:max(10px, env(safe-area-inset-right));gap:5px}.mdeditor-kg-control{min-width:44px;padding-inline:8px}.mdeditor-kg-reload{width:44px;padding:0;font-size:0}.mdeditor-kg-reload:before{content:"🔄";font-family:var(--ui-font-emoji);font-variant-emoji:emoji;font-size:18px;line-height:1}.mdeditor-kg-zoom-state{top:max(72px, calc(env(safe-area-inset-top) + 62px));left:max(10px, env(safe-area-inset-left));right:auto;transform:none}.mdeditor-kg-hierarchy-notice{top:max(166px, calc(env(safe-area-inset-top) + 156px));left:max(10px, env(safe-area-inset-left));right:max(10px, env(safe-area-inset-right));max-width:none}.mdeditor-kg-legend{left:max(10px, env(safe-area-inset-left));bottom:max(10px, env(safe-area-inset-bottom));max-width:calc(100% - 20px)}.mdeditor-kg-details{width:100%;max-height:min(56vh,480px);padding:20px max(18px, env(safe-area-inset-right)) max(20px, calc(12px + env(safe-area-inset-bottom))) max(18px, env(safe-area-inset-left));border-width:1px 0 0;border-radius:18px 18px 0 0;inset:auto 0 0}.mdeditor-kg-details:not([hidden])~.mdeditor-kg-legend{display:none}}@media (prefers-reduced-motion:reduce){.mdeditor-kg-loading:before{animation:none}.mdeditor-kg-node circle,.mdeditor-kg.is-zoom-animating .mdeditor-kg-viewport{transition:none}}.mdeditor-kg-quotes-trigger{right:20px;bottom:calc(24px + env(safe-area-inset-bottom,0px) + var(--ui-control-min,44px) + 12px);font-family:var(--ui-font-emoji)}.mdeditor-kg-quotes-backdrop{z-index:var(--ui-z-sheet-backdrop,78);visibility:hidden;background:0 0;transition:background .2s;position:fixed;inset:0}.mdeditor-kg-quotes-backdrop.open{visibility:visible;background:var(--overlay-bg)}.mdeditor-kg-quotes-sheet{z-index:var(--ui-z-sheet,80);border:1px solid var(--ui-border);border-radius:var(--ui-radius-panel) var(--ui-radius-panel) 0 0;background:var(--ui-surface-raised);width:min(920px,100%);height:min(78vh,760px);box-shadow:var(--ui-shadow-lg);border-bottom:0;flex-direction:column;transition:transform .24s;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%,102%)}.mdeditor-kg-quotes-sheet.open{transform:translate(-50%)}.mdeditor-kg-quotes-header{flex:none;justify-content:space-between;align-items:center;gap:16px;padding:18px 24px 10px;display:flex}.mdeditor-kg-quotes-header h2{margin:0 0 3px;font-size:18px}.mdeditor-kg-quotes-total{color:var(--muted);font-size:12px}.mdeditor-kg-quotes-close{width:44px;height:44px;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:50%;font-size:22px}.mdeditor-kg-quotes-body{overscroll-behavior:contain;padding:0 24px max(36px, env(safe-area-inset-bottom));overflow-y:auto}.mdeditor-kg-quotes-loading,.mdeditor-kg-quotes-empty{color:var(--muted);text-align:center;margin:48px 24px}.mdeditor-kg-quotes-partial{color:var(--ui-danger);margin:10px 0 20px;font-size:12px}.mdeditor-kg-quote-group{padding:12px 0 24px}.mdeditor-kg-quote-group+.mdeditor-kg-quote-group{margin-top:2px}.mdeditor-kg-quote-group h3{margin:0 0 10px;font-size:18px}.mdeditor-kg-quote-child{margin:2px 0 14px 10px;padding-left:18px}.mdeditor-kg-quote-child h4{align-items:center;min-height:42px;margin:0;font-size:14px;display:flex}.mdeditor-kg-quote-topic{padding:2px 0 10px}.mdeditor-kg-quote-topic-toggle{width:100%;min-height:48px;color:var(--text);cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;gap:16px;padding:0 0 0 14px;display:flex}.mdeditor-kg-quote-topic-toggle span:first-child{font-size:15px;font-weight:680}.mdeditor-kg-quote-topic-toggle span:last-child{color:var(--muted);font-size:12px}.mdeditor-kg-quote-topic-body{padding:0 0 12px 14px}.mdeditor-kg-quote-item+.mdeditor-kg-quote-item{margin-top:8px}.mdeditor-kg-quote-source{border-radius:var(--ui-radius-control);background:color-mix(in srgb, var(--ui-surface-subtle) 62%, transparent);width:100%;color:var(--text);text-align:left;cursor:pointer;border:0;grid-template-columns:1fr auto;gap:7px 16px;padding:14px 16px;display:grid}.mdeditor-kg-quote-source-name{overflow-wrap:anywhere;font-size:12px;font-weight:650}.mdeditor-kg-quote-location{color:var(--muted);font-size:11px}.mdeditor-kg-quote-source q{-webkit-user-select:text;user-select:text;grid-column:1/-1;font-size:14px;line-height:1.75}.mdeditor-kg-quote-source q:before,.mdeditor-kg-quote-source q:after{content:none}.mdeditor-kg-quote-open{color:var(--ui-brand);grid-area:1/2;font-size:11px}.mdeditor-kg-quote-empty{color:var(--muted);margin:4px 0 12px 14px;font-size:12px}.mdeditor-kg-quotes-close:focus-visible,.mdeditor-kg-quote-topic-toggle:focus-visible,.mdeditor-kg-quote-source:focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}@media (width<=760px){.mdeditor-kg-quotes-sheet{border-left:0;border-right:0;height:82vh}.mdeditor-kg-quotes-header{padding:15px 16px 8px}.mdeditor-kg-quotes-body{padding:0 16px max(28px, env(safe-area-inset-bottom))}.mdeditor-kg-quote-child{margin-left:6px;padding-left:12px}.mdeditor-kg-quote-topic-toggle,.mdeditor-kg-quote-topic-body{padding-left:12px}.mdeditor-kg-quote-source{padding:13px 14px}}@media (prefers-reduced-motion:reduce){.mdeditor-kg-quotes-backdrop,.mdeditor-kg-quotes-sheet{transition:none}}.mdeditor-rn{min-height:100%;color:var(--ui-text);background:var(--ui-page);font-family:var(--ui-font-sans)}.mdeditor-rn button,.mdeditor-rn input,.mdeditor-rn textarea{font:inherit;color:inherit}.mdeditor-rn-page{max-width:1180px;margin:0 auto;padding:28px 34px 100px}.mdeditor-rn-primary,.mdeditor-rn-secondary{min-height:var(--ui-control-min,44px);border-radius:var(--ui-radius-control,12px);cursor:pointer;padding:9px 15px;font-weight:700}.mdeditor-rn-primary{border:1px solid var(--ui-brand);background:var(--ui-brand);color:var(--ui-on-brand)}.mdeditor-rn-secondary{border:1px solid var(--ui-border-strong);background:var(--ui-surface)}.mdeditor-rn-add{z-index:var(--ui-z-sticky,30);right:max(20px,env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom,0px) + var(--ui-control-min,44px) + 12px);background:var(--accent);cursor:pointer;width:44px;height:44px;box-shadow:none;border:0;border-radius:50%;justify-content:center;align-items:center;padding:0;font-weight:700;display:flex;position:fixed;color:var(--ui-on-accent,#fff)!important;font-size:22px!important}.mdeditor-rn-memo-save{background:var(--ui-surface)}.mdeditor-rn button:disabled{opacity:.55;cursor:default}.mdeditor-rn-tabs{border:1px solid var(--ui-border);border-radius:var(--ui-radius-control,12px);background:var(--ui-surface-subtle);gap:4px;width:max-content;max-width:100%;margin-bottom:18px;padding:4px;display:flex;overflow:auto}.mdeditor-rn-tab{min-height:var(--ui-control-min,44px);border-radius:var(--ui-radius-sm,8px);color:var(--ui-text-muted);cursor:pointer;white-space:nowrap;background:0 0;border:1px solid #0000;padding:7px 13px}.mdeditor-rn-tab.is-active{background:var(--ui-selected);color:var(--ui-text);font-weight:680}.mdeditor-rn-list{border-top:1px solid var(--ui-divider,var(--border));flex-direction:column;width:100%;display:flex}.mdeditor-rn-card{text-align:left;border:0;border-bottom:1px solid var(--ui-divider,var(--border));cursor:pointer;background:0 0;border-radius:0;gap:16px;width:100%;min-height:116px;padding:12px 0;display:flex;overflow:hidden}.mdeditor-rn-cover{background:var(--ui-surface-subtle);width:64px;height:92px;color:var(--ui-text-muted);text-align:center;font:700 10px/1.4 var(--ui-font-sans);border-radius:4px;flex:0 0 64px;justify-content:center;align-items:center;padding:8px 6px;display:flex;position:relative;overflow:hidden}.mdeditor-rn-cover img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.mdeditor-rn-cover.has-image .mdeditor-rn-cover-fallback{visibility:hidden}.mdeditor-rn-card-info{flex-direction:column;flex:1;align-items:flex-start;min-width:0;padding:2px 0;display:flex}.mdeditor-rn-book-status{background:var(--hover-bg);color:var(--muted);border-radius:999px;padding:3px 7px;font-size:11px;font-weight:700}.mdeditor-rn-book-status.status-読書中{color:var(--link)}.mdeditor-rn-book-status.status-読了{color:#4e8067}.mdeditor-rn-card-title{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:15px;line-height:1.45;display:-webkit-box;overflow:hidden}.mdeditor-rn-card-author,.mdeditor-rn-card-memos{max-width:100%;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.mdeditor-rn-card-author{margin-top:4px}.mdeditor-rn-card-meta{flex-wrap:wrap;align-items:center;gap:8px;margin-top:auto;padding-top:10px;display:flex}.mdeditor-rn-empty{border-bottom:1px solid var(--ui-divider,var(--border));color:var(--muted);text-align:center;padding:52px 20px}.mdeditor-rn-state{min-height:320px;color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:24px;display:flex}.mdeditor-rn-detail{max-width:980px;margin:0 auto;padding:28px 34px 100px}.mdeditor-rn-detail-nav{justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.mdeditor-rn-back{min-height:44px;color:var(--muted);cursor:pointer;background:0 0;border:0;padding:4px 0}.mdeditor-rn-detail-actions{flex-wrap:wrap;justify-content:flex-end;gap:4px 14px;display:flex}.mdeditor-rn-detail-action{min-height:44px;color:var(--link);cursor:pointer;background:0 0;border:0;padding:4px 0;font-size:13px}.mdeditor-rn-detail-hero{grid-template-columns:140px minmax(0,1fr);gap:28px;display:grid}.mdeditor-rn-detail-cover{flex-basis:140px;width:140px;height:206px;font-size:17px}.mdeditor-rn-detail h1{margin:0;font-size:27px;line-height:1.35}.mdeditor-rn-detail-author{color:var(--muted);margin:8px 0 20px}.mdeditor-rn-status-row{flex-wrap:wrap;gap:9px;margin-bottom:18px;display:flex}.mdeditor-rn-status-choice{min-height:var(--ui-control-min,44px);border:1px solid var(--ui-border);border-radius:var(--ui-radius-pill,999px);background:var(--ui-surface);cursor:pointer;padding:7px 13px}.mdeditor-rn-status-choice.is-active{background:var(--ui-selected);color:var(--ui-text);font-weight:680}.mdeditor-rn-meta{grid-template-columns:auto minmax(0,1fr);gap:7px 13px;margin:0;font-size:12px;display:grid}.mdeditor-rn-meta dt{color:var(--muted)}.mdeditor-rn-meta dd{overflow-wrap:anywhere;margin:0}.mdeditor-rn-detail-main{margin-top:28px}.mdeditor-rn-panel{border:1px solid var(--border);background:var(--surface);border-radius:15px;padding:18px}.mdeditor-rn-panel+.mdeditor-rn-panel{margin-top:16px}.mdeditor-rn-panel h2{margin:0 0 15px;font-size:15px}.mdeditor-rn-panel textarea{resize:vertical;border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-md,10px);background:var(--ui-surface);width:100%;min-height:92px;padding:11px}.mdeditor-rn-memo-actions{justify-content:space-between;align-items:center;gap:12px;margin-top:8px;display:flex}.mdeditor-rn-muted{color:var(--muted);font-size:11px}.mdeditor-rn-markdown{font-family:var(--ui-font-sans);overflow-wrap:anywhere;font-size:14px;line-height:1.75}.mdeditor-rn-markdown h1,.mdeditor-rn-markdown h2,.mdeditor-rn-markdown h3{font-family:var(--ui-font-sans);margin:1em 0 .4em;font-size:1.15em}.mdeditor-rn-markdown p{white-space:pre-wrap;margin:.55em 0}.mdeditor-rn-markdown blockquote{border:1px solid var(--quote-card-outline);background:var(--quote-card-bg);max-width:100%;color:var(--quote-text);font-family:var(--ui-font-sans);letter-spacing:.01em;overflow-wrap:anywhere;word-break:break-word;white-space:pre-wrap;border-radius:16px;margin:10px 0;padding:51px 24px 22px 28px;font-size:16px;font-weight:500;line-height:1.9;position:relative;overflow:hidden}.mdeditor-rn-markdown blockquote:before{background:var(--quote-border);content:"";pointer-events:none;width:4px;position:absolute;inset:0 auto 0 0}.mdeditor-rn-markdown blockquote:after{background:var(--quote-mark);content:"";pointer-events:none;width:28px;height:22px;position:absolute;top:22px;left:28px;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath d='M13.6 1.8C7.3 4.5 3.4 9.1 3.4 15c0 4.3 2.4 7.2 5.8 7.2 3 0 5.2-2.2 5.2-5.2 0-2.8-2-4.8-4.6-4.8-.5 0-1 .1-1.4.2.8-3.2 3-5.8 6.6-7.7l-1.4-2.9Zm15 0C22.3 4.5 18.4 9.1 18.4 15c0 4.3 2.4 7.2 5.8 7.2 3 0 5.2-2.2 5.2-5.2 0-2.8-2-4.8-4.6-4.8-.5 0-1 .1-1.4.2.8-3.2 3-5.8 6.6-7.7l-1.4-2.9Z'/%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath d='M13.6 1.8C7.3 4.5 3.4 9.1 3.4 15c0 4.3 2.4 7.2 5.8 7.2 3 0 5.2-2.2 5.2-5.2 0-2.8-2-4.8-4.6-4.8-.5 0-1 .1-1.4.2.8-3.2 3-5.8 6.6-7.7l-1.4-2.9Zm15 0C22.3 4.5 18.4 9.1 18.4 15c0 4.3 2.4 7.2 5.8 7.2 3 0 5.2-2.2 5.2-5.2 0-2.8-2-4.8-4.6-4.8-.5 0-1 .1-1.4.2.8-3.2 3-5.8 6.6-7.7l-1.4-2.9Z'/%3E%3C/svg%3E") 50%/contain no-repeat}.mdeditor-rn-path{color:var(--muted);overflow-wrap:anywhere;font-size:12px}.mdeditor-rn-modal-backdrop{z-index:var(--ui-z-modal,200);background:var(--ui-overlay-strong);place-items:center;padding:20px;display:grid;position:fixed;inset:0}.mdeditor-rn-modal{border:1px solid var(--ui-border);border-radius:var(--ui-radius-card,16px);background:var(--ui-surface-raised);width:min(620px,100%);max-height:min(760px,92dvh);color:var(--ui-text);box-shadow:var(--ui-shadow-lg);padding:24px;overflow:auto}.mdeditor-rn-modal-head{justify-content:space-between;align-items:start;gap:16px;margin-bottom:18px;display:flex}.mdeditor-rn-modal h2{margin:0;font-size:21px}.mdeditor-rn-close{inline-size:var(--ui-control-min,44px);min-inline-size:var(--ui-control-min,44px);block-size:var(--ui-control-min,44px);min-block-size:var(--ui-control-min,44px);flex:0 0 var(--ui-control-min,44px);border:1px solid var(--ui-border);border-radius:var(--ui-radius-pill,999px);background:var(--ui-surface-subtle);cursor:pointer;font-size:20px}.mdeditor-rn-query{width:100%;min-height:var(--ui-control-min,44px);border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-control,12px);background:var(--ui-surface);padding:12px 14px}.mdeditor-rn-modal-actions{justify-content:flex-end;margin-top:10px;display:flex}.mdeditor-rn-results{color:var(--ui-text-muted);gap:10px;margin-top:20px;font-size:13px;display:grid}.mdeditor-rn-candidate{border:1px solid var(--ui-border);border-radius:var(--ui-radius-control,12px);background:var(--ui-surface);text-align:left;cursor:pointer;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:12px;width:100%;min-height:82px;padding:10px;display:grid}.mdeditor-rn-candidate.is-selected{background:var(--ui-selected);color:var(--ui-text);font-weight:680}.mdeditor-rn-candidate-cover{flex-basis:42px;width:42px;height:60px;font-size:8px}.mdeditor-rn-candidate>span{flex-direction:column;min-width:0;display:flex}.mdeditor-rn-candidate span span{color:var(--muted);overflow-wrap:anywhere;font-size:11px}.mdeditor-rn-modal input,.mdeditor-rn-modal textarea,.mdeditor-rn-modal select{font-size:16px!important}@media (width<=760px){.mdeditor-rn-page,.mdeditor-rn-detail{padding:20px 18px 80px}.mdeditor-rn-detail-nav{flex-direction:column;align-items:flex-start;gap:4px}.mdeditor-rn-detail-actions{justify-content:flex-start}.mdeditor-rn-detail-hero{grid-template-columns:105px minmax(0,1fr);gap:18px}.mdeditor-rn-detail-cover{flex-basis:105px;width:105px;height:155px;font-size:13px}.mdeditor-rn-memo-actions{flex-direction:column;align-items:stretch}.mdeditor-rn-modal-backdrop{padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))}.mdeditor-rn-modal{max-height:calc(100dvh - 20px);padding:18px}}@media (width<=380px){.mdeditor-rn-card{gap:12px;min-height:106px}.mdeditor-rn-cover{flex-basis:56px;width:56px;height:82px;font-size:9px}.mdeditor-rn-card-meta{gap:6px}.mdeditor-rn-book-status{padding-inline:6px}}@media (width<=520px){.mdeditor-rn-markdown blockquote{border-radius:14px;padding:48px 19px 20px 22px;font-size:15px;line-height:1.85}.mdeditor-rn-markdown blockquote:after{top:19px;left:22px}}@media (hover:hover) and (pointer:fine){.mdeditor-rn-add:hover:not(:disabled){background:var(--accent-hover)}.mdeditor-rn-primary:hover:not(:disabled){border-color:var(--ui-brand-hover);background:var(--ui-brand-hover)}.mdeditor-rn-secondary:hover:not(:disabled){background:var(--hover-bg)}.mdeditor-rn-tab.is-active:hover:not(:disabled),.mdeditor-rn-status-choice.is-active:hover:not(:disabled),.mdeditor-rn-candidate.is-selected:hover:not(:disabled){background:var(--ui-selected)}.mdeditor-rn-card:hover{background:var(--hover-bg)}.mdeditor-rn-detail-action:hover:not(:disabled){text-decoration:underline}}.mdeditor-home-host{background:var(--ui-page,#fafafa)}:root[data-apptheme=dark] .mdeditor-home-host{background:var(--ui-page,#111214)}.mdeditor-home{width:min(100%,1040px);min-width:0;max-width:100%;color:var(--text);--home-surface:var(--ui-surface,#fff);--home-border:var(--ui-border,#e6e7e9);--home-muted:var(--ui-text-muted,#737780);margin:0 auto;padding:18px clamp(16px,4vw,42px) 72px;overflow-x:hidden}:root[data-apptheme=dark] .mdeditor-home{--home-surface:var(--ui-surface,#1c1d20);--home-border:var(--ui-border,#35363a);--home-muted:var(--ui-text-muted,#a1a1aa)}.mdeditor-home-toolbar{margin-bottom:28px;position:relative}.mdeditor-home-toolbar-primary{align-items:center;gap:9px;display:flex}.mdeditor-home-toolbar-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px;display:grid}.mdeditor-home-search{flex:auto;min-width:0;position:relative}.mdeditor-home-search-icon{z-index:1;block-size:24px;inline-size:24px;color:var(--home-muted);pointer-events:none;place-items:center;display:grid;position:absolute;top:50%;left:10px;translate:0 -50%}.mdeditor-home-icon-glyph{block-size:1.5em;inline-size:1.5em;font-family:var(--ui-font-emoji,"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif);font-variant-emoji:emoji;font-synthesis:none;white-space:nowrap;contain:layout paint;flex:0 0 1.5em;place-items:center;font-size:1em;font-style:normal;font-weight:400;line-height:1;display:inline-grid;overflow:visible}.mdeditor-home-search-input{border:1px solid var(--home-border);background:var(--home-surface);width:100%;min-height:46px;color:var(--text);font:inherit;border-radius:13px;padding:0 14px 0 41px}.mdeditor-home-search-results{z-index:var(--ui-z-popover,40);border:1px solid var(--home-border);background:var(--home-surface);max-height:min(420px,60vh);box-shadow:none;border-radius:13px;padding:6px;position:absolute;inset:calc(100% + 6px) 0 auto;overflow-y:auto}.mdeditor-home-search-status{color:var(--home-muted);padding:9px 10px;font-size:13px}.mdeditor-home-search-result{width:100%;min-height:44px;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:9px;flex-direction:column;gap:3px;padding:8px 10px;display:flex}.mdeditor-home-search-result-name{overflow-wrap:anywhere;font-weight:680}.mdeditor-home-search-result-folder{color:var(--home-muted);overflow-wrap:anywhere;font-size:12px}.mdeditor-home-toolbar button,.mdeditor-home-retry,.mdeditor-home-more,.mdeditor-home-load-more{border:1px solid var(--home-border);background:var(--home-surface);min-height:44px;color:var(--text);font:inherit;cursor:pointer;border-radius:12px;font-size:13px;font-weight:680}.mdeditor-home-icon-button{flex:0 0 44px;width:44px;padding:0;font-size:18px!important}.mdeditor-home-nav-button{text-align:left;min-width:0;box-shadow:none;align-items:center;gap:9px;padding:9px 12px;display:flex}.mdeditor-home-nav-icon{width:30px;height:30px;box-shadow:none;background:0 0;border:0;border-radius:0;flex:0 0 30px;place-items:center;font-size:18px;display:grid}.mdeditor-home-nav-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdeditor-home button:disabled{opacity:.48;cursor:default}.mdeditor-home-refresh.is-spinning .mdeditor-home-icon-glyph{animation:1s linear infinite mdeditor-home-spin}@keyframes mdeditor-home-spin{to{transform:rotate(360deg)}}.mdeditor-home :is(button,input,[tabindex]):focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}.mdeditor-home-section{box-shadow:none;background:0 0;border:0;border-radius:0;margin-top:0;padding:0}.mdeditor-home-section+.mdeditor-home-section{margin-top:30px}.mdeditor-home-section-header{justify-content:space-between;align-items:end;gap:16px;margin-bottom:14px;display:flex}.mdeditor-home-section-actions:empty{display:none}.mdeditor-home-section-title{margin:0;font-size:17px;line-height:1.35}.mdeditor-home-discovery-shuffle{width:44px;height:44px;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:12px;place-items:center;margin:-10px 0;padding:0;font-size:18px;display:grid}.mdeditor-home-discovery-shuffle.is-spinning{animation:.7s linear infinite mdeditor-home-spin}.mdeditor-home-status,.mdeditor-home-error{min-height:70px;color:var(--home-muted);align-items:center;gap:12px;display:flex}.mdeditor-home-error{justify-content:space-between}.mdeditor-home-retry,.mdeditor-home-more{padding:0 13px}.mdeditor-home-growth-summary{flex-wrap:wrap;gap:12px 24px;margin-bottom:13px;display:flex}.mdeditor-home-growth-metric{align-items:baseline;gap:7px;display:flex}.mdeditor-home-growth-metric strong{letter-spacing:-.03em;font-size:clamp(20px,4vw,28px)}.mdeditor-home-growth-metric span{color:var(--home-muted);font-size:12px}.mdeditor-home-growth-charts{border:1px solid var(--home-border);background:var(--home-surface);border-radius:14px;grid-template-columns:1fr 1fr;gap:0;display:grid;overflow:hidden}.mdeditor-home-spark{border:0;border-radius:0;min-width:0;padding:10px}.mdeditor-home-spark+.mdeditor-home-spark{border-left:1px solid var(--home-border)}.mdeditor-home-spark-label{color:var(--home-muted);font-size:12px;font-weight:680}.mdeditor-home-spark svg{width:100%;height:72px;display:block}.mdeditor-home-spark-line{stroke:var(--viz-primary,var(--ui-brand));stroke-width:3px;stroke-linecap:round;stroke-linejoin:round}.mdeditor-home-chart-characters .mdeditor-home-spark-line{stroke:var(--viz-secondary,#315f84)}.mdeditor-home-growth-table{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;table-layout:fixed;width:1px;max-width:1px;height:1px;margin:-1px;position:absolute;left:0;overflow:hidden}.mdeditor-home-daily-list,.mdeditor-home-discovery-list{flex-direction:column;display:flex}.mdeditor-home-daily-row,.mdeditor-home-discovery-row{border:0;border-bottom:1px solid var(--home-border);width:100%;min-height:44px;color:var(--text);text-align:left;cursor:pointer;background:0 0;border-radius:0;align-items:flex-start;gap:12px;padding:14px 2px;display:flex}.mdeditor-home-daily-row:first-child,.mdeditor-home-discovery-row:first-child{border-top:1px solid var(--home-border)}.mdeditor-home-document-icon{width:28px;height:28px;font-family:var(--ui-font-emoji,"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif);flex:0 0 28px;place-items:center;font-size:16px;line-height:1;display:grid}.mdeditor-home-row-content{flex-direction:column;flex:auto;min-width:0;display:flex}.mdeditor-home-row-title{overflow-wrap:anywhere;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;font-size:15px;line-height:1.5;display:-webkit-box;overflow:hidden}.mdeditor-home-row-excerpt{color:var(--home-muted);overflow-wrap:anywhere;-webkit-box-orient:vertical;margin-top:4px;font-size:13px;line-height:1.65;display:-webkit-box;overflow:hidden}.mdeditor-home-daily-row .mdeditor-home-row-excerpt{-webkit-line-clamp:2;line-clamp:2}.mdeditor-home-discovery-row .mdeditor-home-row-excerpt{-webkit-line-clamp:3;line-clamp:3}.mdeditor-home-row-meta{color:var(--home-muted);align-items:center;gap:8px;margin-bottom:3px;font-size:11px;line-height:1.4;display:flex}.mdeditor-home-discovery-label{font-weight:760}.mdeditor-home-discovery-label.is-research{color:var(--ui-link)}.mdeditor-home-discovery-label.is-bluesky{color:var(--viz-secondary,#315f84)}.mdeditor-home-discovery-date{color:var(--home-muted);font-size:11px}.mdeditor-home-load-more{width:auto;margin:16px auto 0;padding:0 13px;display:block}.mdeditor-home.is-card-layout .mdeditor-home-daily-list,.mdeditor-home.is-card-layout .mdeditor-home-discovery-list{gap:var(--ui-space-3,12px);overscroll-behavior-inline:contain;scroll-snap-type:inline proximity;scrollbar-width:thin;grid-auto-columns:minmax(250px,42%);grid-auto-flow:column;padding-bottom:8px;display:grid;overflow-x:auto}.mdeditor-home.is-card-layout .mdeditor-home-daily-row,.mdeditor-home.is-card-layout .mdeditor-home-discovery-row{box-sizing:border-box;height:184px;padding:14px var(--ui-space-4,16px);border:1px solid var(--ui-border);border-radius:var(--ui-radius-panel,16px);background:var(--ui-surface);scroll-snap-align:start}.mdeditor-home.is-card-layout :is(.mdeditor-home-daily-row,.mdeditor-home-discovery-row):first-child{border-top:1px solid var(--ui-border)}.mdeditor-home.is-card-layout .mdeditor-home-document-icon{background:var(--hover-bg);width:44px;height:44px;color:var(--accent);border-radius:50%;flex:0 0 44px;justify-content:center;align-items:center;font-size:20px;display:flex}.mdeditor-home.is-card-layout .mdeditor-home-row-content{max-height:100%;overflow:hidden}.mdeditor-home.is-card-layout .mdeditor-home-row-title{font-size:15px;font-weight:700;line-height:1.5}.mdeditor-home.is-card-layout .mdeditor-home-row-excerpt,.mdeditor-home.is-card-layout .mdeditor-home-discovery-row .mdeditor-home-row-excerpt{color:var(--text);-webkit-line-clamp:4;line-clamp:4;margin-top:2px;font-size:15px;line-height:1.5}.mdeditor-home-interest-comparisons{border-block:1px solid var(--home-border);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.mdeditor-home-interest-comparison{min-width:0;padding:20px 20px 22px 0}.mdeditor-home-interest-comparison+.mdeditor-home-interest-comparison{border-left:1px solid var(--home-border);padding-inline:20px 0}.mdeditor-home-interest-comparison-heading{flex-wrap:wrap;align-items:baseline;gap:5px 10px;margin-bottom:10px;display:flex}.mdeditor-home-interest-comparison-heading strong{color:var(--text);font-size:14px}.mdeditor-home-interest-comparison-heading span{color:var(--ui-link);font-size:11px;font-weight:760}.mdeditor-home-interest-comparison p{color:var(--home-muted);margin:0;font-size:14px;line-height:1.8}.mdeditor-home-interest .mdeditor-home-more{margin:14px auto 0;display:block}.mdeditor-home-interest-timeline{margin-top:34px}.mdeditor-home-interest-timeline-header{align-items:center;display:flex}.mdeditor-home-interest-timeline-title{color:var(--text);letter-spacing:-.015em;margin:0;font-size:16px}.mdeditor-home-interest-topics{scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:7px;margin:11px 0 0;padding-bottom:3px;display:flex;overflow-x:auto}.mdeditor-home-interest-topics::-webkit-scrollbar{display:none}.mdeditor-home-interest-topic-chip{border:1px solid var(--home-border);min-height:30px;color:var(--home-muted);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border-radius:999px;flex:none;padding:5px 11px;font-size:12px}.mdeditor-home-interest-topic-chip.is-active{border-color:var(--ui-link);background:color-mix(in srgb, var(--ui-link) 10%, transparent);color:var(--ui-link);font-weight:700}.mdeditor-home-interest-generated{color:var(--home-muted);margin:6px 0 15px;font-size:11px}.mdeditor-home-interest-generated.is-stale{color:var(--ui-warning,#9a6700)}.mdeditor-home-interest-event-list{border-top:0}.mdeditor-home-interest-event{padding:20px 0 22px 22px;position:relative}.mdeditor-home-interest-event:before{background:var(--ui-link);content:"";border-radius:50%;width:7px;height:7px;position:absolute;top:26px;left:2px}.mdeditor-home-interest-event:after{background:var(--home-border);content:"";width:1px;position:absolute;top:36px;bottom:-6px;left:5px}.mdeditor-home-interest-event:last-child:after{display:none}.mdeditor-home-interest-event-meta{color:var(--home-muted);flex-wrap:wrap;align-items:baseline;gap:7px 10px;font-size:11px;display:flex}.mdeditor-home-interest-event-meta time{color:var(--text);font-weight:700}.mdeditor-home-interest-topic{color:var(--ui-link);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:700}.mdeditor-home-interest-event-title{color:var(--text);margin:7px 0 5px;font-size:15px;line-height:1.5}.mdeditor-home-interest-event-summary{color:var(--home-muted);margin:0;font-size:13px;line-height:1.75}.mdeditor-home-interest-evidence-details{margin-top:10px}.mdeditor-home-interest-evidence-details summary{width:fit-content;color:var(--ui-link);cursor:pointer;font-size:12px;font-weight:700}.mdeditor-home-interest-evidence-list{margin-top:8px;display:grid}.mdeditor-home-interest-evidence{border:0;border-top:1px solid var(--home-border);width:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;gap:4px;padding:10px 0;display:grid}.mdeditor-home-interest-evidence:first-child{border-top:0}.mdeditor-home-interest-evidence-heading{font-size:12px;font-weight:650}.mdeditor-home-interest-evidence q{color:var(--home-muted);font-size:12px;line-height:1.65}.mdeditor-home-interest-evidence:disabled{cursor:default;opacity:.58}.mdeditor-home-interest .mdeditor-home-interest-more{margin-top:16px}@media (hover:hover) and (pointer:fine){.mdeditor-home button:not(:disabled):hover,.mdeditor-home-search-result:hover{background-color:var(--hover-bg);border-color:var(--border-strong)}}@media (width<=760px){.mdeditor-home{padding-top:14px}.mdeditor-home-interest-comparisons{grid-template-columns:1fr}.mdeditor-home-interest-comparison{padding:17px 0 19px}.mdeditor-home-interest-comparison+.mdeditor-home-interest-comparison{border-top:1px solid var(--home-border);border-left:0;padding:19px 0}.mdeditor-home-interest-timeline{margin-top:28px}.mdeditor-home-interest-event{padding-block:18px 20px}}@media (width<=480px){.mdeditor-home{padding-inline:16px}.mdeditor-home-toolbar-nav{gap:6px}.mdeditor-home-nav-button{flex-direction:column;justify-content:center;gap:2px;padding-inline:6px}.mdeditor-home-nav-label{max-width:100%;font-size:11px;display:block}.mdeditor-home-section+.mdeditor-home-section{margin-top:26px}.mdeditor-home-growth-summary{gap:14px}.mdeditor-home.is-card-layout .mdeditor-home-daily-list,.mdeditor-home.is-card-layout .mdeditor-home-discovery-list{grid-auto-columns:min(82vw,310px)}}@media (prefers-reduced-motion:reduce){.mdeditor-home-refresh.is-spinning .mdeditor-home-icon-glyph,.mdeditor-home-discovery-shuffle.is-spinning{animation:none}}.mdeditor-research-log-host{flex:1;min-width:0;min-height:0;overflow:hidden}.mdeditor-research-log{background:var(--bg);width:100%;min-width:0;height:100%;min-height:0;color:var(--text);font-family:var(--ui-font-sans);overflow:hidden}.mdeditor-research-log,.mdeditor-research-log button,.mdeditor-research-log input,.mdeditor-research-log select{font:inherit}.mdeditor-research-log-layout{grid-template-columns:clamp(340px,32vw,420px) minmax(0,1fr);width:100%;min-width:0;height:100%;min-height:0;display:grid}.mdeditor-research-log.is-direct-open .mdeditor-research-log-layout{max-width:var(--ui-content-wide,920px);margin:0 auto;display:block}.mdeditor-research-log.is-direct-open .mdeditor-research-log-list-pane{border-right:0;width:100%}.mdeditor-research-log-list-pane,.mdeditor-research-log-detail-pane{overscroll-behavior:contain;min-width:0;min-height:0;overflow:hidden auto}.mdeditor-research-log-list-pane{border-right:1px solid var(--ui-border);background:var(--ui-surface);padding:16px 20px 40px}.mdeditor-research-log-controls,.mdeditor-research-log-search-label{min-width:0;display:grid}.mdeditor-research-log-controls{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;padding:0 4px 8px}.mdeditor-research-log-search-label{color:var(--muted);gap:6px;font-size:12px;font-weight:700}.mdeditor-research-log-search,.mdeditor-research-log-sort{border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-control);background:var(--ui-surface);width:100%;min-width:0;min-height:44px;color:var(--ui-text);padding:8px 11px}.mdeditor-research-log-sort{border-color:var(--ui-border);border-radius:12px;width:auto;height:44px;min-height:44px;padding:6px 30px 6px 13px;font-size:13px;font-weight:700}.mdeditor-research-log-filter-actions,.mdeditor-research-log-sort-row{justify-content:space-between;align-items:center;gap:10px;min-width:0;display:flex}.mdeditor-research-log-filter-actions{grid-area:1/1;justify-content:flex-start}.mdeditor-research-log-sort-row{grid-area:1/2;justify-content:flex-end}.mdeditor-research-log button{min-height:var(--ui-control-min);border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-control);background:var(--ui-surface);color:var(--ui-text);cursor:pointer}.mdeditor-research-log button:disabled{cursor:default;opacity:.52}.mdeditor-research-log-filter-toggle{min-height:var(--ui-control-min);align-items:center;gap:6px;height:44px;min-height:44px;padding:6px 12px;font-size:13px;font-weight:700;display:inline-flex;background:var(--ui-brand-soft)!important;color:var(--ui-link)!important;border-color:#0000!important;border-radius:12px!important}.mdeditor-research-log-filter-toggle svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:18px;height:18px}.mdeditor-research-log-retry{padding:8px 12px;font-size:13px;font-weight:700}.mdeditor-research-log-clear-filters{width:32px;height:32px;color:var(--muted);flex:0 0 32px;place-items:center;padding:0;font-size:20px;font-weight:450;line-height:1;display:grid;border-color:#0000!important;border-radius:50%!important;min-height:32px!important}.mdeditor-research-log-clear-filters:disabled{display:none}.mdeditor-research-log-filters{border:1px solid var(--ui-border);border-radius:var(--ui-radius-control);background:var(--ui-surface);grid-area:2/1/auto/-1;gap:14px;min-width:0;padding:14px;display:grid}.mdeditor-research-log-filters[hidden]{display:none}.mdeditor-research-log-filter-group{border:0;flex-wrap:wrap;gap:6px;min-width:0;margin:0;padding:0;display:flex}.mdeditor-research-log-filter-group legend,.mdeditor-research-log-filter-heading{width:100%;color:var(--muted);margin:0 0 7px;padding:0;font-size:12px;font-weight:750}.mdeditor-research-log-filter-option{min-height:var(--ui-control-min);border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);background:var(--ui-surface);overflow-wrap:anywhere;cursor:pointer;align-items:center;gap:6px;padding:5px 9px;font-size:13px;display:flex}.mdeditor-research-log-filter-option input{width:16px;height:16px;accent-color:var(--accent);flex:0 0 16px;margin:0}.mdeditor-research-log-topic-filter{min-width:0}.mdeditor-research-log-topic-chips{flex-wrap:wrap;gap:6px;min-width:0;margin:0;padding:0;display:flex}.mdeditor-research-log-topic-chip{max-width:100%;min-height:var(--ui-control-min);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;padding:5px 10px;font-size:12px;font-weight:650;overflow:hidden;border-radius:999px!important}.mdeditor-research-log-topic-chip[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-text);font-weight:680}.mdeditor-research-log-sort-label{min-width:0;color:var(--muted);flex:0 auto;align-items:center;gap:8px;font-size:12px;font-weight:700;display:flex}.mdeditor-research-log-count{color:var(--muted);white-space:nowrap;flex:none;padding:0;font-size:13px;font-weight:650}.mdeditor-research-log-load-state{border:1px solid var(--ui-border);border-radius:var(--ui-radius-control);min-width:0;min-height:44px;color:var(--ui-text-muted);overflow-wrap:anywhere;justify-content:space-between;align-items:center;gap:10px;margin:10px 0 8px;padding:9px 11px;font-size:12px;line-height:1.5;display:flex}.mdeditor-research-log-load-state:empty{display:none}.mdeditor-research-log-load-state[role=alert],.mdeditor-research-log-detail-error{border-color:color-mix(in srgb, var(--danger) 62%, var(--border));background:color-mix(in srgb, var(--danger) 9%, var(--surface));color:var(--text)}.mdeditor-research-log-load-state[role=alert]:before{color:var(--danger);content:"!";flex:none;font-weight:850}.mdeditor-research-log-load-state .mdeditor-research-log-retry{flex:none}.mdeditor-research-log-list{gap:0;min-width:0;padding-bottom:32px;display:grid}.mdeditor-research-log button.mdeditor-research-log-item{border:0;border-bottom:1px solid var(--ui-border);text-align:left;background:0 0;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:12px;width:100%;min-width:0;padding:14px 2px;display:grid;border-radius:0!important;min-height:0!important}.mdeditor-research-log button.mdeditor-research-log-item[aria-current=true]{background:var(--ui-selected);color:var(--ui-text);font-weight:680}@media (hover:hover) and (pointer:fine){.mdeditor-research-log button:hover:not(:disabled),.mdeditor-research-log button.mdeditor-research-log-item:hover:not(:disabled){background:var(--hover-bg)}.mdeditor-research-log button.mdeditor-research-log-item[aria-current=true]:hover:not(:disabled),.mdeditor-research-log-topic-chip[aria-pressed=true]:hover:not(:disabled){background:var(--ui-selected)}}.mdeditor-research-log-document-icon{width:28px;height:28px;font-family:var(--ui-font-emoji,"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif);place-items:center;font-size:16px;line-height:1;display:grid}.mdeditor-research-log-item-content{gap:5px;min-width:0;display:grid}.mdeditor-research-log-item-title,.mdeditor-research-log-item-topics,.mdeditor-research-log-item-meta{overflow-wrap:anywhere;min-width:0}.mdeditor-research-log-item-title{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:15px;font-weight:750;line-height:1.45;display:-webkit-box;overflow:hidden}.mdeditor-research-log-item-topics{flex-wrap:wrap;gap:5px;display:flex;overflow:hidden}.mdeditor-research-log-item-topics>span{background:var(--ui-brand-soft);color:var(--ui-link);border-radius:999px;padding:3px 8px;font-size:11px;font-weight:650;line-height:1.35}.mdeditor-research-log-item-meta{min-width:0;color:var(--muted);flex-wrap:wrap;align-items:center;gap:5px 9px;font-size:12px;line-height:1.45;display:flex}.mdeditor-research-log-item-path{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.mdeditor-research-log-empty,.mdeditor-research-log-detail-empty{color:var(--muted);text-align:center;margin:0;padding:48px 16px;line-height:1.7}.mdeditor-research-log-detail-pane{background:var(--ui-surface);padding:32px clamp(28px,6vw,78px) 100px}.mdeditor-research-log-detail-header{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;min-width:0;max-width:760px;margin:0 auto 34px;display:grid}.mdeditor-research-log-detail-title{overflow-wrap:anywhere;min-width:0;font-family:var(--ui-font-sans);letter-spacing:-.025em;margin:0;font-size:clamp(26px,3.2vw,38px);line-height:1.4}.mdeditor-research-log-back,.mdeditor-research-log-edit{min-height:var(--ui-control-min);padding:7px 12px;font-size:12px;font-weight:700}.mdeditor-research-log-back{display:none}.mdeditor-research-log-edit{color:var(--ui-link)!important}.mdeditor-research-log-markdown{width:100%;min-width:0;max-width:760px;font-family:var(--ui-font-sans);overflow-wrap:anywhere;margin:0 auto;font-size:16px;line-height:1.9}.mdeditor-research-log-markdown .line{cursor:default}.mdeditor-research-log-markdown .line.heading-2{margin-top:34px}.mdeditor-research-log-markdown .mdeditor-tl-table-wrap{max-width:100%;overflow-x:auto}.mdeditor-research-log-markdown .mdeditor-tl-table{min-width:100%}.mdeditor-research-log-markdown .mdeditor-tl-pre{max-width:100%;overflow:auto}.mdeditor-research-log-markdown img{max-width:100%;height:auto}.mdeditor-research-log-detail-error{border:1px solid;border-radius:12px;justify-items:start;gap:12px;width:min(520px,100%);min-width:0;margin:48px auto;padding:18px;display:grid}.mdeditor-research-log-detail-error p{margin:0}.mdeditor-research-log :is(button,input,select):focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}@media (width<=900px){.mdeditor-research-log-layout{display:block}.mdeditor-research-log-list-pane,.mdeditor-research-log-detail-pane{border-right:0;width:100%;height:100%}.mdeditor-research-log.is-list-pane .mdeditor-research-log-detail-pane,.mdeditor-research-log.is-detail-pane .mdeditor-research-log-list-pane{display:none}.mdeditor-research-log-list-pane{padding:14px max(14px, env(safe-area-inset-right)) 40px max(14px, env(safe-area-inset-left))}.mdeditor-research-log-detail-pane{padding:16px max(16px, env(safe-area-inset-right)) 80px max(16px, env(safe-area-inset-left))}.mdeditor-research-log-back{align-items:center;display:inline-flex}.mdeditor-research-log-detail-header{grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:18px}.mdeditor-research-log-back{grid-column:1/-1;justify-self:start}.mdeditor-research-log-detail-title{font-size:26px}.mdeditor-research-log input,.mdeditor-research-log select{font-size:16px}.mdeditor-research-log-sort{font-size:13px}}@media (width<=390px){.mdeditor-research-log-controls{gap:8px;padding-inline:0}.mdeditor-research-log-sort-row{gap:8px}.mdeditor-research-log-sort{min-width:0;max-width:132px}.mdeditor-research-log-count{white-space:nowrap}.mdeditor-research-log-load-state{flex-direction:column;align-items:stretch}.mdeditor-research-log-load-state .mdeditor-research-log-retry{align-self:flex-start}.mdeditor-research-log-detail-header{grid-template-columns:minmax(0,1fr)}.mdeditor-research-log-edit{justify-self:end;width:auto}}@media (prefers-reduced-motion:reduce){.mdeditor-research-log *,.mdeditor-research-log :before,.mdeditor-research-log :after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
