.home-notes{--home-notes-note-accent:var(--home-network-memory-accent,#a77c58);--home-notes-note-tint:var(--home-network-memory-panel,#eee3d5);width:100%;min-width:0;min-height:620px;color:var(--workspace-ink,#34372f);background:var(--workspace-background,#e8e3d7)}
.home-notes *{box-sizing:border-box}
.home-notes button{cursor:pointer;color:inherit}
.home-notes svg,.home-notes-dialog svg{width:18px;height:18px;flex:none;vertical-align:middle}
.home-notes-navigation{display:none;align-items:center;gap:10px;min-height:29px;margin:0;padding:3px 0;border-bottom:1px solid var(--workspace-border,#cec8ba)}
.home-notes-travel{display:flex;gap:3px;flex:none}
.home-notes-travel>button{display:grid;place-items:center;padding:3px;border:0;background:transparent;color:var(--workspace-muted,#696c61)}
.home-notes-travel>button[data-hn-forward] svg{transform:rotate(180deg)}
.home-notes-breadcrumb{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--workspace-muted,#696c61);line-height:1.7}
.home-notes-mobile-tree{display:none;margin-left:auto;padding:5px 9px;border:1px solid var(--workspace-border,#cec8ba);border-radius:6px;background:var(--workspace-surface,#fbf8f2);white-space:nowrap}
.home-notes-grid{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:650px;height:calc(var(--workspace-viewport-height,100dvh) - 46px);overflow:hidden}
.home-notes-sidebar{display:flex;min-height:0;flex-direction:column;gap:14px;padding:16px 12px 12px;border-right:1px solid var(--workspace-border,#cec8ba);background:transparent}
.home-notes-sidebar>*{flex-shrink:0}
.home-notes-heading h2{flex:1;min-width:0;display:flex;align-items:center;gap:10px;margin:0;line-height:1.5}
.home-notes-heading h2>svg{width:22px;height:22px}
.home-notes-workspace{display:inline-block;margin-top:8px;padding:2px 8px;border:1px solid var(--workspace-border,#cec8ba);border-radius:14px;color:var(--workspace-muted,#696c61);background:var(--workspace-surface,#fbf8f2)}
.home-notes-search{display:flex;align-items:center;gap:7px;min-width:0;padding:7px 9px;border:1px solid var(--workspace-border,#cec8ba);border-radius:7px;background:var(--workspace-surface,#fbf8f2)}
.home-notes-search input{width:100%;min-width:0;padding:0;border:0;outline:0;background:transparent;color:inherit}
.home-notes-search:focus-within{outline:2px solid var(--workspace-accent,#596348);outline-offset:2px}
.home-notes-filter{display:flex;align-items:center;gap:8px;min-width:0;padding:3px 8px;color:var(--home-notes-note-accent);background:var(--home-notes-note-tint);border-radius:7px}
.home-notes-filter>span{min-width:0;overflow-wrap:anywhere}
.home-notes-filter>button{display:grid;place-items:center;flex:none;margin-left:auto;border:0;background:transparent;padding:3px}
.home-notes-tree{flex:1;min-height:100px;overflow:auto;overscroll-behavior:contain;padding-right:2px}
.home-notes-folder{margin:0}
.home-notes-folder summary{display:flex;align-items:center;gap:7px;min-height:32px;border-radius:5px;padding:6px 5px 6px calc(5px + var(--home-notes-depth,0)*15px);cursor:pointer;color:var(--workspace-ink,#34372f);list-style:none}
.home-notes-folder summary::-webkit-details-marker{display:none}
.home-notes-folder summary::before{content:'›';width:9px;flex:none;transition:transform .16s}
.home-notes-folder[open]>summary::before{transform:rotate(90deg)}
.home-notes-folder summary>span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.home-notes-folder summary>small{margin-left:auto;flex:none;color:var(--workspace-muted,#696c61)}
.home-notes-tree-item{display:flex;align-items:center;gap:8px;width:100%;min-width:0;min-height:32px;margin:1px 0;padding:7px 7px 7px calc(9px + var(--home-notes-depth,0)*15px);text-align:left;border:1px solid transparent;border-radius:5px;background:transparent;line-height:1.5}
.home-notes-tree-item>span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.home-notes-tree-item[aria-current=page]{background:var(--workspace-subtle,#efecdf);border-color:transparent;color:var(--workspace-ink,#34372f);font-weight:700}
.home-notes-tree-item:hover{background:var(--workspace-subtle,#efecdf)}
.home-notes-pagination>button{padding:6px 10px;border:1px solid var(--workspace-border,#cec8ba);border-radius:6px;background:var(--workspace-surface,#fbf8f2)}
.home-notes-pagination p{margin:3px 0;color:var(--workspace-muted,#696c61);line-height:1.6;overflow-wrap:anywhere}
.home-notes-pagination p[data-hn-more-error]{color:#a3424c}
.home-notes-sidebar-bottom{display:flex;gap:6px;padding-top:12px;border-top:1px solid var(--workspace-border,#cec8ba)}
.home-notes-sidebar-bottom>button,.home-notes-tab-actions>button,.home-notes-toolbar-actions>button,.home-notes-library-menu button{display:flex;justify-content:center;align-items:center;gap:6px;padding:7px 9px;border:1px solid var(--workspace-border,#cec8ba);border-radius:6px;background:var(--workspace-surface,#fbf8f2);box-shadow:0 2px 0 #4d443414;white-space:nowrap}
.home-notes-sidebar-bottom>button{flex:1;padding-left:6px;padding-right:6px}
.home-notes-library-menu{color:var(--workspace-muted,#696c61)}
.home-notes-library-menu>summary{cursor:pointer;line-height:1.6}
.home-notes-library-menu>div{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.home-notes-document{display:flex;flex-direction:column;min-width:0;min-height:0;background:transparent}
.home-notes-tabs-row{display:flex;align-items:flex-end;gap:7px;flex:none;min-height:35px;padding:0 9px 0 5px;border-bottom:1px solid var(--workspace-border,#cec8ba)}
.home-notes-tabs{display:flex;align-items:stretch;gap:3px;flex:0 1 auto;min-width:0;overflow-x:auto;overscroll-behavior:contain;padding-top:4px;scrollbar-width:thin}
.home-notes-tab{display:flex;align-items:center;flex:0 0 auto;max-width:240px;min-width:100px;border:1px solid transparent;border-bottom:0;border-radius:5px 5px 0 0;background:var(--workspace-subtle,#efecdf)}
.home-notes-tab.is-active{color:var(--home-notes-note-accent);border-color:var(--home-notes-note-accent);background:var(--workspace-surface,#fbf8f2);box-shadow:inset 0 2px 0 var(--home-notes-note-accent)}
.home-notes-tab>button{display:flex;align-items:center;gap:6px;min-width:0;padding:7px 8px;border:0;background:transparent;line-height:1.4}
.home-notes-tab>button:first-child{flex:1}
.home-notes-tab>button:first-child>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-notes-tab>button:last-child{flex:none;padding:7px 5px}
.home-notes-tab>button:last-child>svg{width:15px;height:15px}
.home-notes-tab-actions{display:flex;gap:5px;margin-left:auto;flex:none;align-self:center;padding:4px 0}
.home-notes-tab-actions>button{padding:5px 8px}
.home-notes-tab-actions>button.home-notes-primary{background:var(--home-notes-note-accent);border-color:var(--home-notes-note-accent);color:var(--workspace-surface,#fbf8f2)}
.home-notes-document-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;min-height:48px;padding:8px 18px;border-bottom:1px solid var(--workspace-border,#cec8ba)}
.home-notes-toolbar-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.home-notes-toolbar-actions>button[aria-pressed=true]{background:var(--workspace-subtle,#efecdf)}
.home-notes-scope{display:flex;align-items:center;gap:7px;flex:none;padding:6px 9px;border:1px solid var(--workspace-border,#cec8ba);border-radius:6px;background:var(--workspace-surface,#fbf8f2);color:var(--workspace-muted,#696c61);white-space:nowrap}
.home-notes-document-scroll{padding:22px 30px 42px;min-height:120px;flex:1;overflow:auto;overscroll-behavior:contain;scroll-padding:20px}
.home-notes-document-scroll article{max-width:44em;margin:0 auto}
.home-notes-document-title{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px}
.home-notes-document-title h1{flex:0 1 auto;margin:0;line-height:1.5;overflow-wrap:anywhere}
.home-notes-tags{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.home-notes-tags>button,.home-notes-tag-catalog>button{padding:3px 8px;color:var(--workspace-accent,#596348);background:var(--workspace-subtle,#efecdf);border:1px solid transparent;border-radius:20px;overflow-wrap:anywhere}
.home-notes-metadata{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;margin-top:14px;color:var(--workspace-muted,#696c61);line-height:1.7;overflow-wrap:anywhere}
.home-notes-content-rule{height:1px;margin:20px 0;background:var(--workspace-border,#cec8ba)}
.home-notes-source-note{padding:10px 13px;border:1px solid var(--workspace-border,#cec8ba);border-radius:7px;background:var(--workspace-subtle,#efecdf);color:var(--workspace-muted,#696c61);line-height:1.7}
.home-notes-body{max-width:none;line-height:1.65;overflow-wrap:anywhere}
.home-notes-body h2,.home-notes-body h3,.home-notes-body h4{margin:26px 0 10px;line-height:1.5}
.home-notes-body p{margin:10px 0}
.home-notes-body pre{max-width:100%;overflow:auto;padding:13px;border:1px solid var(--workspace-border,#cec8ba);border-radius:7px;background:var(--workspace-surface,#fbf8f2)}
.home-notes-body a{color:var(--home-notes-note-accent)}
.home-notes-wikilink{display:inline;border:0;border-radius:0;padding:0;background:transparent;color:var(--home-notes-note-accent);text-decoration:underline;text-underline-offset:3px;line-height:inherit}
.home-notes-wikilink-unresolved{color:var(--workspace-muted,#696c61);text-decoration:underline dotted;text-underline-offset:3px}
.home-notes-discuss{display:flex;align-items:center;gap:8px;margin-top:24px;padding:10px 12px;border:1px solid var(--workspace-border,#cec8ba);border-radius:7px;background:var(--workspace-subtle,#efecdf);color:var(--workspace-accent,#596348)}
.home-notes-composer{flex-shrink:0;display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:13px 20px;border-top:1px solid var(--workspace-border,#cec8ba);background:var(--workspace-surface,#fbf8f2)}
.home-notes-composer label{flex:1;min-width:160px;display:grid;gap:7px;color:var(--workspace-muted,#696c61)}
.home-notes-composer textarea{width:100%;min-height:66px;max-height:180px;padding:10px 12px;border:1px solid var(--workspace-border,#cec8ba);border-radius:7px;resize:vertical;color:inherit;background:var(--workspace-surface,#fbf8f2)}
.home-notes-composer>button{padding:10px 13px;border:1px solid var(--workspace-accent,#596348);border-radius:7px;background:var(--workspace-accent,#596348);color:var(--workspace-accent-ink,#fff);white-space:nowrap}
.home-notes-composer>p{flex-basis:100%;margin:0;color:#ad4451}
.home-notes-empty{padding:20px 4px;color:var(--workspace-muted,#696c61);line-height:1.8}
.home-notes button:focus-visible,.home-notes summary:focus-visible,.home-notes textarea:focus-visible,.home-notes-document-scroll:focus-visible,.home-notes-dialog button:focus-visible{outline:2px solid var(--workspace-accent,#596348);outline-offset:3px}
.home-notes [hidden]{display:none}
.home-notes button:disabled{opacity:.45;cursor:default}
.home-notes-dialog{width:min(680px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--workspace-border,#cec8ba);border-radius:18px;color:var(--workspace-ink,#34372f);background:var(--workspace-surface,#fbf8f2);box-shadow:0 16px 60px #25251c40;overflow:auto}
.home-notes-dialog::backdrop{background:#33372e66;backdrop-filter:blur(3px)}
.home-notes-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 22px;border-bottom:1px solid var(--workspace-border,#cec8ba)}
.home-notes-dialog h2{margin:0;line-height:1.5}
.home-notes-dialog>header>button{display:grid;place-items:center;flex:none;min-width:32px;min-height:32px;padding:5px;border:0;border-radius:5px;background:transparent;color:var(--workspace-muted,#696c61);cursor:pointer}
.home-notes-dialog-body{padding:22px}
.home-notes-dialog-caption{margin:0 0 14px;color:var(--workspace-muted,#696c61);line-height:1.7}
.home-notes-tag-catalog{display:flex;flex-wrap:wrap;gap:9px}
.home-notes-tag-catalog>button{cursor:pointer;color:var(--workspace-accent,#596348)}
.home-notes-tag-catalog>button>span{margin-left:5px;color:var(--workspace-muted,#696c61)}
.home-notes-graph{position:relative;width:100%;height:390px;margin:10px 0 16px;border:1px solid var(--workspace-border,#cec8ba);border-radius:10px;background:var(--workspace-subtle,#efecdf)}
.home-notes-graph>svg{position:absolute;inset:0;width:100%;height:100%}
.home-notes-graph line{stroke:var(--workspace-muted,#8c9477);stroke-width:1.2;opacity:.6;vector-effect:non-scaling-stroke}
.home-notes-graph-node{position:absolute;display:flex;flex-direction:column;align-items:center;gap:4px;width:110px;min-height:36px;transform:translate(-50%,-10px);border:0;padding:0;background:transparent;color:var(--workspace-muted,#696c61);cursor:pointer}
.home-notes-graph-node>i{display:block;width:13px;height:13px;border:2px solid var(--workspace-accent,#8c9477);border-radius:50%;background:var(--workspace-surface,#fbf8f2);box-shadow:0 0 0 4px var(--workspace-surface,#fbf8f2)}
.home-notes-graph-node>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:100%;padding:1px 3px;background:var(--workspace-subtle,#efecdf);line-height:1.4;overflow-wrap:anywhere}
.home-notes-graph-node.is-selected{color:var(--home-network-memory-accent,#a77c58);font-weight:700}
.home-notes-graph-node.is-selected>i{background:var(--home-network-memory-accent,#a77c58);border-color:var(--home-network-memory-accent,#a77c58)}
.home-notes-graph-links>summary{color:var(--workspace-muted,#696c61);cursor:pointer}
.home-notes-graph-links p{line-height:1.7;overflow-wrap:anywhere}
.home-notes-graph-links button{border:0;padding:0;background:transparent;color:var(--home-network-memory-accent,#a77c58);text-decoration:underline;cursor:pointer}
.home-notes-detail-list{margin:0 0 22px}
.home-notes-detail-list>div{display:grid;grid-template-columns:90px 1fr;gap:12px;padding:7px 0}
.home-notes-detail-list dt{color:var(--workspace-muted,#696c61)}
.home-notes-detail-list dd{margin:0;overflow-wrap:anywhere}
.home-notes-backlinks{display:flex;flex-wrap:wrap;gap:8px}
.home-notes-backlinks>button{display:flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid var(--workspace-border,#cec8ba);border-radius:6px;background:var(--workspace-subtle,#efecdf);color:inherit;cursor:pointer}
.home-notes-location{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.home-notes-breadcrumb a{color:inherit;text-decoration:none}
.home-notes-breadcrumb a:hover{color:var(--workspace-ink,#34372f);text-decoration:underline}
.home-notes-breadcrumb-separator{margin:0 .45em;opacity:.6}
.home-notes-breadcrumb [aria-current=page]{color:var(--workspace-ink,#34372f)}
.home-notes-toolbar-host{display:flex;align-items:center;gap:8px;flex:none;min-width:0}
.home-notes-toolbar-actions{align-items:center}
.home-notes-toolbar-actions>button.home-notes-icon-tool{width:32px;height:32px;padding:0;border-color:transparent;background:transparent;color:var(--workspace-muted,#696c61)}
.home-notes-toolbar-actions>button.home-notes-icon-tool:hover{background:var(--workspace-subtle,#efecdf);color:var(--workspace-ink,#34372f)}
.home-notes-toolbar-actions>button.home-notes-icon-tool[aria-pressed=true]{background:var(--workspace-subtle,#efecdf);color:var(--home-notes-note-accent)}
.home-notes-scope{border-color:transparent;background:transparent;padding:4px 6px}
.home-notes-folder summary:hover{background:var(--workspace-subtle,#efecdf)}
.home-notes-folder>div{position:relative}
.home-notes-folder>div::before{content:'';position:absolute;top:0;bottom:0;left:calc(9px + var(--home-notes-depth,0)*15px);border-left:1px solid var(--workspace-border,#cec8ba);pointer-events:none}
.home-notes-editor{display:flex;flex-direction:column;gap:14px;max-width:44em;margin:0 auto}
.home-notes-editor-title{width:100%;padding:2px 0;border:0;border-bottom:1px solid transparent;background:transparent;color:inherit;font-weight:700;line-height:1.5;outline:0}
.home-notes-editor-title:focus-visible{border-bottom-color:var(--home-notes-note-accent)}
.home-notes-editor-content{width:100%;min-height:240px;padding:0 0 0 10px;border:0;border-left:2px solid transparent;background:transparent;color:inherit;line-height:1.65;resize:none;outline:0;overflow:hidden}
.home-notes .home-notes-editor-content:focus-visible{outline:0;border-left-color:var(--home-notes-note-accent)}
.home-notes-editor-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding-top:12px;border-top:1px solid var(--workspace-border,#cec8ba)}
.home-notes-editor-save{padding:7px 14px;border:1px solid var(--home-notes-note-accent);border-radius:6px;background:var(--home-notes-note-accent);color:var(--workspace-surface,#fbf8f2)}
.home-notes-editor-hint{color:var(--workspace-muted,#696c61)}
.home-notes-editor-delete{margin-left:auto;padding:7px 12px;border:1px solid #c9a3a3;border-radius:6px;background:transparent;color:#a3424c}
.home-notes-editor>p{margin:0;color:#a3424c}
.home-notes-dialog.home-notes-dialog-graph{width:min(1280px,calc(100vw - 28px));height:calc(100dvh - 32px);--home-notes-graph-node:#8e9198;--home-notes-graph-link:#c9cbd0;--home-notes-graph-accent:var(--home-notes-note-accent,var(--home-network-memory-accent,#a77c58));--home-notes-graph-text:var(--workspace-muted,#55585e)}
.home-notes-graph2d{position:relative;flex:1;min-height:320px;overflow:hidden;border:1px solid var(--workspace-border,#cec8ba);border-radius:10px;background:var(--workspace-surface,#fbf8f2);touch-action:none}
.home-notes-graph2d>canvas{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:grab}
.home-notes-dialog-graph[open]{display:flex;flex-direction:column}
.home-notes-dialog-graph .home-notes-dialog-body{display:flex;flex-direction:column;flex:1;min-height:0;padding:14px 18px}
.home-notes-dialog-graph .home-notes-graph-links{flex:none;max-height:28vh;overflow:auto;margin-top:10px}
@media(max-width:1100px){.home-notes-document-toolbar{padding:12px 18px 7px;align-items:flex-start;flex-wrap:wrap}.home-notes-document-scroll{padding:19px 20px 36px}.home-notes-tab-actions>button{padding:5px 6px}.home-notes-tab-actions>button>span{max-width:90px;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:760px){.home-notes{min-height:0}
.home-notes-navigation{display:flex}
.home-notes-document-toolbar{flex-wrap:wrap}
.home-notes-location{flex-basis:100%}
.home-notes-scope>span{display:none}.home-notes-navigation{margin:0 10px;gap:7px}.home-notes-mobile-tree{display:block}.home-notes-breadcrumb{flex:1}.home-notes-grid{grid-template-columns:minmax(0,1fr);height:auto;min-height:0;overflow:visible}.home-notes-sidebar{max-height:none;padding:15px 12px;border-right:0;border-bottom:1px solid var(--workspace-border,#cec8ba);gap:10px}.home-notes-tree{min-height:70px;max-height:160px}.home-notes-sidebar-bottom{padding-top:8px}.home-notes-library-menu{display:none}.home-notes.is-tree-hidden .home-notes-sidebar{display:none}.home-notes-document{min-height:480px}.home-notes-tabs-row{flex-wrap:wrap;padding:0 9px 0 5px;gap:2px}.home-notes-tabs{flex:1 1 100%;min-height:39px;max-height:60px}.home-notes-tab-actions{margin-left:auto}.home-notes-tab{max-width:210px}.home-notes-document-toolbar{padding:12px 13px 7px;gap:8px;min-height:0}.home-notes-toolbar-actions{justify-content:flex-start}.home-notes-toolbar-actions>button{padding:6px 8px}.home-notes-document-scroll{padding:17px 14px 35px;max-height:75dvh;min-height:230px;overflow:auto}.home-notes-document-title h1{flex-basis:100%}.home-notes-metadata{gap:6px 8px}.home-notes-composer{padding:13px}.home-notes-composer label{min-width:100%}.home-notes-composer>button{margin-left:auto}.home-notes-dialog-body{padding:17px 14px}.home-notes-dialog>header{padding:15px 16px}.home-notes-graph{height:370px}.home-notes-graph-node{width:80px}.home-notes-dialog>header>button{min-width:40px;min-height:40px}}
@media(prefers-reduced-motion:reduce){.home-notes-folder summary::before{transition:none}}
.anata-note-workspace{display:grid;gap:14px;min-width:0}
.anata-note-assistant{margin:0 14px 18px;padding:16px 76px 64px 16px;border:1px solid var(--workspace-border,#cec8ba);border-radius:8px;background:var(--workspace-surface,#fbf8f2);min-width:0}
.anata-note-assistant>summary{cursor:pointer;font-weight:700}
.anata-chat-candidates{min-width:0;margin-block:16px;border:1px solid var(--workspace-border,#cec8ba);border-radius:8px;background:var(--workspace-surface,#fbf8f2)}
.anata-chat-candidates>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 14px;cursor:pointer;list-style:none;font-weight:700}
.anata-chat-candidates>summary::-webkit-details-marker{display:none}
.anata-chat-caret{display:inline-block;flex:none;line-height:1}
.anata-chat-candidates[open]>summary .anata-chat-caret{transform:rotate(90deg)}
.anata-chat-candidate-body{padding:0 14px 14px;overflow-wrap:anywhere}
.anata-chat-candidate-body :is(pre,blockquote){white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.anata-chat-candidates>summary:focus-visible{outline:2px solid var(--workspace-focus,#527c83);outline-offset:2px}
.anata-note-assistant :is(p,pre,blockquote){white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.anata-note-assistant pre,.home-notes-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.anata-note-assistant label{display:grid;gap:8px}
.anata-note-assistant textarea,.home-notes-dialog textarea{box-sizing:border-box;width:100%;padding:10px;resize:vertical;border:1px solid var(--workspace-border,#cec8ba);border-radius:6px;background:var(--workspace-surface,#fbf8f2);color:inherit;font:inherit}
.anata-note-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.anata-note-actions button{padding:9px 14px;border:1px solid var(--workspace-border,#cec8ba);border-radius:6px;background:var(--workspace-subtle,#efecdf);color:inherit;cursor:pointer}
.anata-note-proposal{border:1px solid var(--workspace-note-border,#c7ceb3);border-radius:8px;padding:14px;margin:12px 0;background:var(--workspace-note-surface,#edf0e1)}
.anata-note-proposal :is(pre,blockquote){white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font:inherit}
.anata-note-message{padding:10px 0;border-bottom:1px solid var(--workspace-border,#cec8ba)}
@media(max-width:760px){.anata-note-assistant{margin:0 8px 12px;padding:12px 64px 64px 12px}}
.home-notes-refresh{display:grid;place-items:center;flex:none;min-width:32px;min-height:32px;padding:5px;border:1px solid var(--workspace-border,#cec8ba);border-radius:6px;background:var(--workspace-surface,#fbf8f2)}
@media(max-width:760px){.home-notes-refresh{min-width:40px;min-height:40px}.home-notes-library-menu{display:block}}

.home-notes-heading{display:block;padding:0;border:0;background:transparent;letter-spacing:0}.home-notes-body blockquote{margin:18px 0;padding:14px 18px;border:1px solid var(--workspace-note-border,#c7ceb3);border-radius:8px;background:var(--workspace-note-surface,#edf0e1);color:var(--workspace-ink,#34372f)}

.home-notes-source-note{max-width:1040px}
.home-notes-metadata>span:last-child:not(:only-of-type){display:none}
@media(min-width:1500px){.home-notes-grid{grid-template-columns:270px minmax(0,1fr)}}

.home-notes-breadcrumb{display:block;padding:0;line-height:1.45}
.home-notes-breadcrumb a{color:inherit;text-underline-offset:3px}.home-notes-breadcrumb a:hover{color:var(--workspace-accent,#99734e)}
.home-notes-heading{padding:0;border:0;background:none;letter-spacing:0}

.home-notes{padding:8px 14px 0}.home-notes-search-row{display:flex;align-items:center;gap:6px;min-width:0}.home-notes-search-row .home-notes-search{flex:1;min-width:0;min-height:39px}.home-notes-search-row>button,.home-notes-add-tab{display:grid;place-items:center;flex:none;padding:7px;border:1px solid var(--workspace-border,#cec8ba);border-radius:6px;background:var(--workspace-surface,#fbf8f2);color:var(--workspace-muted,#696c61);box-shadow:0 2px 0 #4d443414}.home-notes-search-row>button{width:36px;height:39px}.home-notes-add-tab{width:32px;height:32px;margin-bottom:1px}.home-notes-more{position:relative;flex:none}.home-notes-more>summary{display:grid;place-items:center;min-width:39px;min-height:36px;padding:5px 9px;list-style:none;border:1px solid var(--workspace-border,#cec8ba);border-radius:6px;background:var(--workspace-surface,#fbf8f2);cursor:pointer;box-shadow:0 2px 0 #4d443414}.home-notes-more>summary::-webkit-details-marker{display:none}.home-notes-more>div{position:absolute;right:0;top:calc(100% + 5px);z-index:20;min-width:190px;display:grid;gap:3px;padding:7px;border:1px solid var(--workspace-border,#cec8ba);border-radius:7px;background:var(--workspace-surface,#fbf8f2);box-shadow:0 7px 24px #34372f26}.home-notes-more button{padding:8px 10px;border:0;border-radius:4px;background:none;text-align:left;white-space:nowrap;color:inherit}.home-notes-more button:hover{background:var(--workspace-subtle,#efecdf)}.home-notes-more:not([open])>div{display:none}.home-notes-dialog form{display:grid;gap:12px}.home-notes-dialog form label{display:grid;gap:8px}.home-notes-dialog form :is(input,select){width:100%;padding:10px 12px;border:1px solid var(--workspace-border,#cec8ba);border-radius:6px;background:var(--workspace-surface,#fbf8f2);color:inherit}.home-notes-dialog form button{justify-self:end;padding:8px 13px;border:1px solid var(--workspace-accent);border-radius:6px;background:var(--workspace-accent);color:#fffdf7}.home-notes-dialog [data-hn-folder-error]{margin:0;color:#a3424c}
@media(max-width:760px){.home-notes{padding:5px 8px 0}.home-notes-navigation{margin:0}.home-notes-tabs{flex:1 1 auto}.home-notes-document-scroll{padding:18px 14px 35px}.home-notes-more>div{min-width:175px}.home-notes-grid{height:auto}.home-notes-search-row .home-notes-search{min-height:40px}}
/* 個人noteの書き方（rich-text.js の note モード）：プロパティ・タグ・強調・チェックボックス・囲み枠・図 */
.home-notes-document-scroll .note-properties{display:grid;gap:4px;margin:0 0 18px;padding:10px 12px;border:1px solid var(--workspace-border,#cec8ba);border-radius:8px;background:var(--workspace-subtle,#efecdf)}
.home-notes-document-scroll .note-properties>div{display:grid;grid-template-columns:minmax(6em,10em) minmax(0,1fr);gap:12px;align-items:baseline}
.home-notes-document-scroll .note-properties dt{color:var(--workspace-muted,#6d6a5f);overflow-wrap:anywhere}
.home-notes-document-scroll .note-properties dd{display:flex;flex-wrap:wrap;gap:6px;margin:0;min-width:0;overflow-wrap:anywhere}
.home-notes-document-scroll .note-properties-empty{color:var(--workspace-muted,#6d6a5f)}
.home-notes-document-scroll .note-tag{display:inline;padding:1px 7px;color:var(--workspace-accent,#596348);background:var(--workspace-subtle,#efecdf);border:1px solid transparent;border-radius:20px;cursor:pointer;overflow-wrap:anywhere}
.home-notes-document-scroll .note-tag:hover,.home-notes-document-scroll .note-tag:focus-visible{border-color:var(--workspace-accent,#596348)}
.home-notes-document-scroll mark{padding:0 2px;color:inherit;background:color-mix(in srgb,#eda100 34%,transparent);border-radius:3px}
.home-notes-document-scroll li.note-task{list-style:none;margin-left:-1.2em}
.home-notes-document-scroll li.note-task>input{margin:0 6px 0 0;vertical-align:-2px;accent-color:var(--workspace-accent,#596348)}
.home-notes-document-scroll li.note-task.is-done{color:var(--workspace-muted,#6d6a5f);text-decoration:line-through}
.home-notes-document-scroll .note-callout{--note-callout:#2a78d6;margin:14px 0;padding:10px 14px;border:1px solid color-mix(in srgb,var(--note-callout) 40%,transparent);border-left-width:4px;border-left-color:var(--note-callout);border-radius:6px;background:color-mix(in srgb,var(--note-callout) 8%,transparent)}
.home-notes-document-scroll .note-callout-title{font-weight:700;color:var(--note-callout)}
.home-notes-document-scroll details.note-callout>summary{cursor:pointer}
.home-notes-document-scroll .note-callout-body>:first-child{margin-top:6px}.home-notes-document-scroll .note-callout-body>:last-child{margin-bottom:0}
.home-notes-document-scroll .note-callout:is([data-callout=tip],[data-callout=hint],[data-callout=success],[data-callout=check],[data-callout=done]){--note-callout:#1b8f63}
.home-notes-document-scroll .note-callout:is([data-callout=warning],[data-callout=caution],[data-callout=attention],[data-callout=question],[data-callout=help],[data-callout=faq]){--note-callout:#b97800}
.home-notes-document-scroll .note-callout:is([data-callout=danger],[data-callout=error],[data-callout=bug],[data-callout=failure],[data-callout=fail],[data-callout=missing]){--note-callout:#c53b3a}
.home-notes-document-scroll .note-callout:is([data-callout=example],[data-callout=abstract],[data-callout=summary],[data-callout=tldr]){--note-callout:#6250d6}
.home-notes-document-scroll .note-callout:is([data-callout=quote],[data-callout=cite]){--note-callout:var(--workspace-muted,#6d6a5f)}
.home-notes-document-scroll :is(.note-diagram,.note-chart){--note-figure-surface:var(--workspace-surface,#fbf8f2);margin:14px 0;padding:12px;border:1px solid var(--workspace-border,#cec8ba);border-radius:8px;background:var(--note-figure-surface);overflow:auto}
/* .home-notes svg（アイコン用の 18px）を、図だけ外す。最大の幅は Mermaid が付ける max-width に従う */
.home-notes-document-scroll .note-diagram>svg{display:block;width:100%;height:auto;margin:0 auto}
.home-notes-document-scroll .note-chart svg{display:block;width:100%;max-width:640px;height:auto;margin:0 auto}
.home-notes-document-scroll .note-chart-text{fill:var(--workspace-muted,#6d6a5f)}
.home-notes-document-scroll .note-chart-grid{stroke:var(--workspace-border,#cec8ba);stroke-width:1;opacity:.6}
.home-notes-document-scroll .note-chart-axis{stroke:var(--workspace-muted,#6d6a5f);stroke-width:1}
.home-notes-document-scroll .note-chart-title{margin:0 0 6px;font-weight:700}
.home-notes-document-scroll .note-chart-table{margin-top:8px}.home-notes-document-scroll .note-chart-table>summary{cursor:pointer;color:var(--workspace-muted,#6d6a5f)}
.home-notes-document-scroll .note-figure-error{margin:8px 0 0;color:#a3424c}
html[data-ui-design=dark] .home-notes-document-scroll .note-callout{--note-callout:#3987e5}
html[data-ui-design=dark] .home-notes-document-scroll .note-callout:is([data-callout=tip],[data-callout=hint],[data-callout=success],[data-callout=check],[data-callout=done]){--note-callout:#2fb383}
html[data-ui-design=dark] .home-notes-document-scroll .note-callout:is([data-callout=warning],[data-callout=caution],[data-callout=attention],[data-callout=question],[data-callout=help],[data-callout=faq]){--note-callout:#e0a21c}
html[data-ui-design=dark] .home-notes-document-scroll .note-callout:is([data-callout=danger],[data-callout=error],[data-callout=bug],[data-callout=failure],[data-callout=fail],[data-callout=missing]){--note-callout:#e66767}
html[data-ui-design=dark] .home-notes-document-scroll .note-callout:is([data-callout=example],[data-callout=abstract],[data-callout=summary],[data-callout=tldr]){--note-callout:#9085e9}
html[data-ui-design=dark] .home-notes-document-scroll .note-figure-error{color:#e66767}
/* 個人noteの添付（![[名前]]）：画像はそのまま、ほかはサムネイルのカード。押すと資料室の閲覧画面で開く */
.home-notes-document-scroll .note-embed{display:block;margin:12px 0;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:zoom-in}
.home-notes-document-scroll .note-embed-image img{display:block;max-width:100%;height:auto;border-radius:6px;border:1px solid var(--workspace-border,#cec8ba)}
.home-notes-document-scroll .note-embed-wait,.home-notes-document-scroll .note-embed.is-missing{color:var(--workspace-muted,#6d6a5f)}
.home-notes-document-scroll .note-embed-file{display:inline-flex;align-items:center;gap:12px;max-width:100%;padding:8px 12px 8px 8px;border:1px solid var(--workspace-border,#cec8ba);border-radius:8px;background:var(--workspace-surface,#fbf8f2);cursor:pointer}
.home-notes-document-scroll .note-embed-file:hover,.home-notes-document-scroll .note-embed:focus-visible{border-color:var(--workspace-accent,#596348)}
.home-notes-document-scroll .note-embed-thumb{display:grid;place-items:center;flex:none;width:72px;height:54px;overflow:hidden;border-radius:4px;background:var(--workspace-subtle,#efecdf);color:var(--workspace-muted,#6d6a5f)}
.home-notes-document-scroll .note-embed-thumb img{width:100%;height:100%;object-fit:cover}
.home-notes-document-scroll .note-embed-name{min-width:0;overflow-wrap:anywhere}
.home-notes-editor-attach{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid var(--workspace-border,#cec8ba);border-radius:6px;background:var(--workspace-surface,#fbf8f2);color:inherit;cursor:pointer}
.home-notes-editor-content.is-dropping{outline:2px dashed var(--workspace-accent,#596348);outline-offset:4px}
.home-notes-document-scroll .note-embed-video{display:inline-flex;align-items:center;gap:12px;max-width:100%;padding:12px 16px;border:1px solid var(--workspace-border,#cec8ba);border-radius:8px;background:var(--workspace-subtle,#efecdf);cursor:pointer}
.home-notes-document-scroll .note-embed-play{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--workspace-accent,#596348);color:var(--workspace-surface,#fbf8f2)}
.home-notes-document-scroll .note-embed-video-player{display:block;width:100%;max-height:70vh;margin:12px 0;border-radius:6px;background:#000}
/* ![[ノート名]]：別のノートの中身を枠の中に出す */
.home-notes-document-scroll .note-transclusion{margin:14px 0;padding:10px 14px 4px;border-left:3px solid var(--workspace-accent,#596348);background:var(--workspace-subtle,#efecdf);border-radius:0 6px 6px 0}
.home-notes-document-scroll .note-transclusion-title{padding:0;border:0;background:none;color:var(--workspace-accent,#596348);cursor:pointer;font-weight:700;text-align:left}
.home-notes-document-scroll .note-transclusion-title:hover{text-decoration:underline}
.home-notes-document-scroll .note-transclusion-empty{color:var(--workspace-muted,#6d6a5f)}
.home-notes-document-scroll .home-notes-body .is-target{background:color-mix(in srgb,#eda100 24%,transparent);border-radius:4px;transition:background .6s}

/* 2026-11-05 林の指定：個人noteの見た目を AIチャットと同じにする（白・灰・黒のモノクロ、ボタンは丸）。
   AIチャットの色（--chat-mono-*）を個人noteでも使えるようにし、今までのオレンジ・青緑の色の変数もモノクロに置き換える */
html body .home-notes,html body .home-notes-dialog{--chat-mono-ink:#0d0d0d;--chat-mono-soft:#f4f4f4;--chat-mono-line:#e5e5e5;--chat-mono-muted:#6b6b6b;--chat-mono-panel:#fff;--chat-mono-hover:#ececec;--home-notes-note-accent:var(--chat-mono-ink);--home-notes-note-tint:var(--chat-mono-soft);--home-network-memory-accent:var(--chat-mono-ink);--workspace-accent:var(--chat-mono-ink);--workspace-accent-ink:var(--chat-mono-panel);--workspace-border:var(--chat-mono-line);--workspace-subtle:var(--chat-mono-soft);--workspace-surface:var(--chat-mono-panel);--workspace-muted:var(--chat-mono-muted);--workspace-ink:var(--chat-mono-ink);--workspace-note-border:var(--chat-mono-line);--workspace-note-surface:var(--chat-mono-soft)}
html[data-ui-design=dark] body .home-notes,html[data-ui-design=dark] body .home-notes-dialog{--chat-mono-ink:#ececec;--chat-mono-soft:#2f2f2f;--chat-mono-line:#3a3a3a;--chat-mono-muted:#a3a3a3;--chat-mono-panel:#212121;--chat-mono-hover:#333}
html body .home-notes{color:var(--chat-mono-ink)}
html body .home-notes .home-notes-grid,html body .home-notes .home-notes-document,html body .home-notes .home-notes-sidebar{background:var(--chat-mono-panel)}
html body .home-notes button:focus-visible,html body .home-notes summary:focus-visible,html body .home-notes textarea:focus-visible,html body .home-notes .home-notes-document-scroll:focus-visible,html body .home-notes-dialog button:focus-visible{outline:2px solid var(--chat-mono-ink);outline-offset:2px}

/* 左の一覧 */
html body .home-notes .home-notes-sidebar{border-right:1px solid var(--chat-mono-line)}
html body .home-notes .home-notes-heading h2,html body .home-notes .home-notes-heading h2>svg{color:var(--chat-mono-ink)}
html body .home-notes .home-notes-search-row .home-notes-search{min-height:38px;padding:0 14px;gap:8px;border:1px solid transparent;border-radius:999px;background:var(--chat-mono-soft);color:var(--chat-mono-muted);box-shadow:none}
html body .home-notes .home-notes-search:focus-within{outline:0;border-color:var(--chat-mono-line);background:var(--chat-mono-panel)}
html body .home-notes .home-notes-search input,html[data-ui-design=dark] body .home-notes .home-notes-search input{min-width:0;border:0;background:transparent;color:var(--chat-mono-ink);box-shadow:none}
html body .home-notes .home-notes-search input::placeholder{color:var(--chat-mono-muted);opacity:1}
html body .home-notes .home-notes-search-row>button{display:grid;place-items:center;flex:none;width:36px;height:36px;min-height:0;padding:0;border:0;border-radius:999px;background:transparent;box-shadow:none;color:var(--chat-mono-muted)}
html body .home-notes .home-notes-search-row>button:hover{background:var(--chat-mono-hover);color:var(--chat-mono-ink)}
html body .home-notes .home-notes-search-row>button>span:empty{display:none}
html body .home-notes .home-notes-folder summary,html body .home-notes .home-notes-tree-item{border:0;border-radius:10px;color:var(--chat-mono-ink);background:transparent;box-shadow:none}
html body .home-notes .home-notes-folder summary>svg,html body .home-notes .home-notes-tree-item>svg,html body .home-notes .home-notes-folder summary::before,html body .home-notes .home-notes-folder summary>small{color:var(--chat-mono-muted)}
html body .home-notes .home-notes-folder summary:hover,html body .home-notes .home-notes-tree-item:hover{background:var(--chat-mono-soft)}
html body .home-notes .home-notes-tree-item[aria-current=page]{background:var(--chat-mono-hover);color:var(--chat-mono-ink);font-weight:600}
html body .home-notes .home-notes-tree-item[aria-current=page]>svg{color:var(--chat-mono-ink)}
html body .home-notes .home-notes-folder>div::before{border-left-color:var(--chat-mono-line)}
html body .home-notes .home-notes-pagination p{color:var(--chat-mono-muted)}
html body .home-notes .home-notes-sidebar-bottom{gap:8px;border-top:1px solid var(--chat-mono-line)}
html body .home-notes .home-notes-sidebar-bottom>button,html body .home-notes .home-notes-pagination>button,html body .home-notes .home-notes-refresh{min-height:34px;padding:5px 12px;border:1px solid var(--chat-mono-line);border-radius:999px;background:var(--chat-mono-panel);box-shadow:none;color:var(--chat-mono-ink)}
html body .home-notes .home-notes-sidebar-bottom>button>svg{color:var(--chat-mono-muted)}
html body .home-notes .home-notes-sidebar-bottom>button:hover,html body .home-notes .home-notes-pagination>button:hover{background:var(--chat-mono-hover)}
html body .home-notes .home-notes-filter{border-radius:999px;background:var(--chat-mono-soft);color:var(--chat-mono-ink)}

/* タブの行：タブ・＋（最後のタブのすぐ右、同じ高さ）・新規ノート（黒い丸） */
html body .home-notes .home-notes-tabs-row{align-items:center;gap:6px;min-height:48px;padding:0 12px 0 10px;border-bottom:1px solid var(--chat-mono-line)}
html body .home-notes .home-notes-tabs{display:flex;align-items:center;gap:4px;flex:0 1 auto;min-width:0;padding:0;overflow-x:auto;scrollbar-width:none}
html body .home-notes .home-notes-tabs::-webkit-scrollbar{display:none}
html body .home-notes .home-notes-tab{flex:0 1 auto;min-width:72px;max-width:220px;height:32px;margin:0;border:0;border-radius:10px;background:transparent;box-shadow:none;color:var(--chat-mono-muted)}
html body .home-notes .home-notes-tab:hover{background:var(--chat-mono-soft);color:var(--chat-mono-ink)}
html body .home-notes .home-notes-tab.is-active{background:var(--chat-mono-hover);color:var(--chat-mono-ink);border:0;box-shadow:none}
html body .home-notes .home-notes-tab.is-active>button:first-child{font-weight:600}
html body .home-notes .home-notes-tab>button:first-child{height:32px;padding:0 4px 0 10px;gap:7px;color:inherit}
html body .home-notes .home-notes-tab>button:first-child>svg{width:16px;height:16px;flex:none;color:var(--chat-mono-muted)}
html body .home-notes .home-notes-tab.is-active>button:first-child>svg{color:var(--chat-mono-ink)}
html body .home-notes .home-notes-tab>button:last-child{display:grid;place-items:center;flex:none;width:22px;height:22px;margin-right:5px;padding:0;border-radius:999px;color:var(--chat-mono-muted);opacity:.6}
html body .home-notes .home-notes-tab.is-active>button:last-child,html body .home-notes .home-notes-tab:hover>button:last-child{opacity:1}
html body .home-notes .home-notes-tab>button:last-child:hover{background:var(--chat-mono-line);color:var(--chat-mono-ink)}
html body .home-notes .home-notes-tab>button:last-child>svg{width:14px;height:14px}
html body .home-notes .home-notes-tabs-row>.home-notes-add-tab{display:grid;place-items:center;flex:none;align-self:center;width:32px;height:32px;min-height:0;margin:0;padding:0;border:0;border-radius:999px;background:transparent;box-shadow:none;color:var(--chat-mono-muted)}
html body .home-notes .home-notes-tabs-row>.home-notes-add-tab:hover{background:var(--chat-mono-hover);color:var(--chat-mono-ink)}
html body .home-notes .home-notes-tabs-row>.home-notes-add-tab>span:empty{display:none}
html body .home-notes .home-notes-tab-actions{align-self:center;gap:6px;margin-left:auto;padding:0}
html body .home-notes .home-notes-tab-actions>button.home-notes-primary{display:flex;align-items:center;gap:6px;min-height:34px;padding:0 16px 0 12px;border:1px solid var(--chat-mono-ink);border-radius:999px;background:var(--chat-mono-ink);box-shadow:none;color:var(--chat-mono-panel);font-weight:600}
html body .home-notes .home-notes-tab-actions>button.home-notes-primary:hover{background:#3a3a3a;border-color:#3a3a3a}
html[data-ui-design=dark] body .home-notes .home-notes-tab-actions>button.home-notes-primary:hover{background:#fff;border-color:#fff;color:#0d0d0d}

/* ノートの上の行：戻る・進む／場所／履歴・公開範囲・丸いアイコン */
html body .home-notes .home-notes-document-toolbar{min-height:48px;padding:6px 14px 6px 12px;border-bottom:0}
html body .home-notes .home-notes-travel{gap:2px}
html body .home-notes .home-notes-travel>button,html body .home-notes .home-notes-document-toolbar>.home-notes-history{display:grid;place-items:center;flex:none;width:32px;height:32px;min-height:0;padding:0;border:0;border-radius:999px;background:transparent;box-shadow:none;color:var(--chat-mono-muted)}
html body .home-notes :is(.home-notes-travel>button,.home-notes-document-toolbar>.home-notes-history):hover:not(:disabled){background:var(--chat-mono-hover);color:var(--chat-mono-ink)}
html body .home-notes :is(.home-notes-travel>button,.home-notes-document-toolbar>.home-notes-history)>span:empty{display:none}
html body .home-notes .home-notes-travel>button:disabled{opacity:.35}
html body .home-notes .home-notes-document-toolbar>.home-notes-history{margin-left:auto}
html body .home-notes .home-notes-breadcrumb{color:var(--chat-mono-muted)}
html body .home-notes .home-notes-breadcrumb [aria-current=page],html body .home-notes .home-notes-breadcrumb a:hover{color:var(--chat-mono-ink)}
html body .home-notes .home-notes-toolbar-host{gap:4px}
html body .home-notes .home-notes-scope{gap:6px;height:32px;padding:0 12px 0 10px;border:0;border-radius:999px;background:transparent;box-shadow:none;color:var(--chat-mono-muted)}
html body .home-notes .home-notes-toolbar-actions{gap:2px}
html body .home-notes .home-notes-toolbar-actions>button{border-radius:999px;box-shadow:none}
html body .home-notes .home-notes-toolbar-actions>button.home-notes-icon-tool{width:34px;height:34px;padding:0;border:0;background:transparent;color:var(--chat-mono-muted)}
html body .home-notes .home-notes-toolbar-actions>button.home-notes-icon-tool:hover,html body .home-notes .home-notes-toolbar-actions>button.home-notes-icon-tool[aria-pressed=true]{background:var(--chat-mono-hover);color:var(--chat-mono-ink)}
html body .home-notes .home-notes-more>summary{width:34px;min-width:0;height:34px;min-height:0;padding:0;border:0;border-radius:999px;background:transparent;box-shadow:none;color:var(--chat-mono-muted)}
html body .home-notes .home-notes-more>summary:hover{background:var(--chat-mono-hover);color:var(--chat-mono-ink)}

/* 空のタブ：探して開く・最近開いたノート・新規ノート */
html body .home-notes .home-notes-empty-tab{display:grid;gap:12px;max-width:560px;margin:56px auto 0;padding:0 20px}
html body .home-notes .home-notes-tab-search{min-height:44px;padding:0 16px;gap:8px;border:1px solid var(--chat-mono-line);border-radius:999px;background:var(--chat-mono-panel)}
html body .home-notes .home-notes-tab-search input{flex:1;min-width:0;border:0;background:transparent;color:var(--chat-mono-ink);outline:0}
html body .home-notes .home-notes-empty-tab-label{margin:8px 4px 0;color:var(--chat-mono-muted)}
html body .home-notes .home-notes-empty-tab-list{display:grid;gap:2px;margin:0;padding:0;list-style:none}
html body .home-notes .home-notes-empty-tab-list button{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;padding:6px 12px;border:0;border-radius:10px;background:transparent;box-shadow:none;color:var(--chat-mono-ink);text-align:left}
html body .home-notes .home-notes-empty-tab-list button:hover{background:var(--chat-mono-soft)}
html body .home-notes .home-notes-empty-tab-list button>svg{width:16px;height:16px;flex:none;color:var(--chat-mono-muted)}
html body .home-notes .home-notes-empty-tab-list button>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .home-notes .home-notes-empty-tab-list button>small{margin-left:auto;flex:none;color:var(--chat-mono-muted)}
html body .home-notes .home-notes-empty-tab-create{display:inline-flex;align-items:center;justify-self:start;gap:6px;min-height:36px;margin-top:8px;padding:0 16px 0 12px;border:1px solid var(--chat-mono-line);border-radius:999px;background:var(--chat-mono-panel);box-shadow:none;color:var(--chat-mono-ink)}
html body .home-notes .home-notes-empty-tab-create:hover{background:var(--chat-mono-hover)}
html body .home-notes .home-notes-empty-tab-create>svg,html body .home-notes .home-notes-empty-tab-list svg{width:16px;height:16px}

/* 本文：箇条書きを灰色にしない・リンク・引用・コード・表をモノクロで読みやすく（ダークでも） */
html body .home-notes .home-notes-body li{color:inherit}
html body .home-notes .home-notes-body a,html body .home-notes .home-notes-wikilink{color:var(--chat-mono-ink);text-decoration:underline;text-decoration-color:var(--chat-mono-muted);text-underline-offset:3px}
html body .home-notes .home-notes-body blockquote{margin:16px 0;padding:10px 16px;border:0;border-left:3px solid var(--chat-mono-line);border-radius:0;background:transparent;color:var(--chat-mono-muted)}
html body .home-notes .home-notes-body :not(pre)>code{padding:1px 6px;border:0;border-radius:6px;background:var(--chat-mono-soft);color:var(--chat-mono-ink)}
html body .home-notes .home-notes-body pre{border:1px solid var(--chat-mono-line);border-radius:12px;background:var(--chat-mono-soft);color:var(--chat-mono-ink)}
html body .home-notes .home-notes-body table{border-color:var(--chat-mono-line)}
html body .home-notes .home-notes-body :is(th,td){border-color:var(--chat-mono-line)}
html body .home-notes .home-notes-body th{background:var(--chat-mono-soft)}
html body .home-notes .home-notes-document-scroll .note-tag,html body .home-notes .home-notes-tags>button{border-radius:999px;background:var(--chat-mono-soft);color:var(--chat-mono-ink)}
html body .home-notes .home-notes-document-scroll li.note-task>input{accent-color:var(--chat-mono-ink)}
html body .home-notes .home-notes-backlinks>button{border-radius:10px;background:var(--chat-mono-soft);box-shadow:none}
html body .home-notes .home-notes-editor-save{border-color:var(--chat-mono-ink);border-radius:999px;background:var(--chat-mono-ink);color:var(--chat-mono-panel)}
html body .home-notes .home-notes-editor-delete{border-radius:999px}
html body .home-notes :is(.home-notes-composer>button,.home-notes-discuss button,.home-notes-mobile-tree){border-radius:999px;box-shadow:none}
html body .home-notes .home-notes-composer>button{border-color:var(--chat-mono-ink);background:var(--chat-mono-ink);color:var(--chat-mono-panel)}

/* 小窓（グラフビュー・タグ・詳細など）：ダークでも見出しの帯を明るくしない */
html body .home-notes-dialog{border-color:var(--chat-mono-line);background:var(--chat-mono-panel);color:var(--chat-mono-ink)}
html body .home-notes-dialog>header{border-bottom:1px solid var(--chat-mono-line);background:transparent;color:var(--chat-mono-ink)}
html body .home-notes-dialog>header>button{border-radius:999px;color:var(--chat-mono-muted)}
html body .home-notes-dialog>header>button:hover{background:var(--chat-mono-hover);color:var(--chat-mono-ink)}
html body .home-notes-dialog button:not(.home-notes-graph-node){border-radius:999px}

/* スマホ（760px以下）：タブは縮めずに横へ流し、新規ノートは丸い＋だけ */
@media(max-width:760px){
html body .home-notes .home-notes-tabs-row{flex-wrap:nowrap;gap:6px;padding:0 8px 0 4px}
html body .home-notes .home-notes-tabs{flex:1 1 0}
html body .home-notes .home-notes-tab{flex:0 0 auto;min-width:0;max-width:170px}
html body .home-notes .home-notes-tab-actions>button.home-notes-primary{width:34px;padding:0;justify-content:center}
html body .home-notes .home-notes-tab-actions>button.home-notes-primary>span{display:none}
}

/* 2026-11-05 林の指定：ノートの部品（メールの下書き・タスクの候補）と、送った返信のノートの帯。AIチャットと同じモノクロ・丸いボタン */
html body .home-notes .note-block-host{margin:16px 0}
html body .home-notes .note-block{display:grid;gap:0;overflow:hidden;border:1px solid var(--chat-mono-line);border-radius:20px;background:var(--chat-mono-panel);color:var(--chat-mono-ink)}
html body .home-notes .note-block-head{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:12px 18px;border-bottom:1px solid var(--chat-mono-line);background:transparent}
html body .home-notes .note-block-head small{margin-left:auto;color:var(--chat-mono-muted)}
html body .home-notes .note-block-icon{display:inline-grid;place-items:center;flex:none;width:18px;height:18px;color:var(--chat-mono-muted)}
html body .home-notes .note-block-icon svg{width:18px;height:18px}
html body .home-notes .note-block-fields{display:grid;gap:8px;padding:12px 18px;border-bottom:1px solid var(--chat-mono-line)}
html body .home-notes .note-block-field{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:10px}
html body .home-notes .note-block-label,html body .home-notes .note-block-empty{color:var(--chat-mono-muted)}
html body .home-notes .note-block-chips{display:flex;flex-wrap:wrap;gap:6px}
html body .home-notes .note-block-chip{display:inline-flex;flex-wrap:wrap;align-items:center;gap:0 6px;max-width:100%;padding:3px 10px;border-radius:14px;background:var(--chat-mono-soft)}
html body .home-notes .note-block-chip>:is(b,small){flex:none;white-space:nowrap}
html body .home-notes .note-block-chip>span{min-width:0;overflow-wrap:anywhere}
html body .home-notes .note-block-chip small{padding:0 6px;border:1px solid var(--chat-mono-line);border-radius:999px;color:var(--chat-mono-muted)}
html body .home-notes .note-block-subject{overflow-wrap:anywhere}
html body .home-notes .note-block .note-block-mail-body{margin:0;padding:18px 22px;border:0;border-radius:0;background:transparent;color:var(--chat-mono-ink);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}
html body .home-notes .note-block .note-block-mail-body.is-collapsed{max-height:calc(1.85em * 13);overflow:hidden;-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}
html body .home-notes .note-block-more{justify-self:start;margin:0 18px 6px;padding:4px 12px;border:1px solid var(--chat-mono-line);border-radius:999px;background:transparent;color:var(--chat-mono-ink)}
html body .home-notes .note-block-warnings{margin:0 18px 8px;padding:8px 12px 8px 28px;border-radius:12px;background:var(--chat-mono-soft);color:var(--chat-mono-muted)}
html body .home-notes .note-block-actions,html body .home-notes .home-notes-reply-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html body .home-notes .note-block-actions{padding:12px 18px;border-top:1px solid var(--chat-mono-line)}
html body .home-notes .note-block-button{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 14px;border:1px solid var(--chat-mono-line);border-radius:999px;background:var(--chat-mono-panel);box-shadow:none;color:var(--chat-mono-ink);cursor:pointer}
html body .home-notes .note-block-button:hover{background:var(--chat-mono-hover)}
html body .home-notes .note-block-button.is-primary{border-color:var(--chat-mono-ink);background:var(--chat-mono-ink);color:var(--chat-mono-panel)}
html body .home-notes .note-block-button.is-primary .note-block-icon{color:inherit}
html body .home-notes .note-block-button.is-primary:hover{background:#3a3a3a;border-color:#3a3a3a}
html[data-ui-design=dark] body .home-notes .note-block-button.is-primary:hover{background:#fff;border-color:#fff;color:#0d0d0d}
html body .home-notes .note-block-link{display:inline-flex;align-items:center;gap:6px;margin-left:auto;padding:0 6px;color:var(--chat-mono-muted);text-decoration:none}
html body .home-notes .note-block-link:hover{color:var(--chat-mono-ink);text-decoration:underline}
html body .home-notes .note-block-note{display:flex;align-items:center;gap:6px;margin:0;padding:0 18px 12px;color:var(--chat-mono-muted)}
html body .home-notes .note-block-note .note-block-icon,html body .home-notes .note-block-note .note-block-icon svg{width:15px;height:15px}
html body .home-notes .note-block-task-list{display:grid;margin:0;padding:0;list-style:none}
html body .home-notes .note-block-task-list>li{display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid var(--chat-mono-line)}
html body .home-notes .note-block-task-list>li>div{display:grid;gap:2px;flex:1;min-width:0}
html body .home-notes .note-block-task-list small,html body .home-notes .note-block-task-list p{margin:0;color:var(--chat-mono-muted)}
html body .home-notes .note-block-task-list .note-block-button{flex:none}
html body .home-notes .note-block-task .note-block-note{padding-top:12px}
html body .home-notes .note-block-failed{margin:6px 0 0;color:var(--chat-mono-muted)}
html body .home-notes .home-notes-reply-banner{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 18px;padding:12px 16px;border:1px solid var(--chat-mono-line);border-radius:16px;background:var(--chat-mono-soft)}
html body .home-notes .home-notes-reply-banner>svg{width:20px;height:20px;flex:none;color:var(--chat-mono-muted)}
html body .home-notes .home-notes-reply-banner>div:first-of-type{display:grid;gap:2px;margin-right:auto}
html body .home-notes .home-notes-reply-banner small{color:var(--chat-mono-muted)}
@media(max-width:760px){html body .home-notes .note-block-field{grid-template-columns:minmax(0,1fr);gap:4px}html body .home-notes .note-block-actions .note-block-button{flex:1;justify-content:center}html body .home-notes .note-block-link{margin-left:0}html body .home-notes .note-block-task-list>li{flex-wrap:wrap}}
@media print{html body .home-notes :is(.note-block-actions,.note-block-note,.note-block-more,.note-block-task-list .note-block-button,.home-notes-reply-actions){display:none}html body .home-notes .note-block-mail-body.is-collapsed{max-height:none;-webkit-mask-image:none;mask-image:none}}

/* 2026-11-05 林の指定：個人noteは見る場所。画面の高さに収め、外側（ホームの枠）はスクロールさせない。スクロールは一覧と本文の中だけ */
@media(min-width:761px){
html body .home-notes-panel:has(.anata-note-workspace){height:100%;min-height:560px;overflow:hidden}
html body .home-notes-panel>div:has(>.anata-note-workspace){height:100%}
html body .anata-note-workspace{height:100%;grid-template-rows:minmax(0,1fr);grid-auto-rows:auto;gap:0}
html body .anata-note-workspace>[data-an-browser]{display:flex;min-height:0}
html body .anata-note-workspace .home-notes{display:flex;flex:1;flex-direction:column;min-height:0}
html body .anata-note-workspace .home-notes-grid{flex:1;height:auto;min-height:0}
}
html body .anata-note-workspace>[data-an-index-status]{margin:0;padding:6px 18px;color:var(--chat-mono-muted,#6b6b6b)}
html body .anata-note-workspace>[data-an-index-status]:empty{display:none}
html body .anata-note-workspace>[data-an-index-retry]:not([hidden]){justify-self:start;margin:0 18px 10px;padding:6px 14px;border:1px solid var(--chat-mono-line,#e5e5e5);border-radius:999px;background:transparent;color:inherit}
/* スマホ：本文を小さな枠に閉じ込めず、ページのスクロール1つで読む（ノートを選ぶと一覧は閉じる） */
@media(max-width:760px){html body .anata-note-workspace .home-notes-document-scroll{max-height:none;overflow:visible}}

/* 長い題名は3行まで（全文はマウスを乗せると出る） */
html body .home-notes .home-notes-document-title h1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}

/* 書きかけ：タブの点と、読む画面の帯 */
html body .home-notes .home-notes-tab-draft{flex:none;width:7px;height:7px;margin-left:2px;border-radius:50%;background:currentColor}
html body .home-notes .home-notes-draft-banner{display:flex;align-items:center;gap:10px;margin:0 0 18px;padding:10px 12px 10px 16px;border:1px solid var(--chat-mono-line);border-radius:16px;background:var(--chat-mono-soft)}
html body .home-notes .home-notes-draft-banner>svg{width:18px;height:18px;flex:none;color:var(--chat-mono-muted)}
html body .home-notes .home-notes-draft-banner>span{flex:1;min-width:0}
html body .home-notes .home-notes-draft-banner>button{flex:none;min-height:32px;padding:0 14px;border:1px solid var(--chat-mono-ink);border-radius:999px;background:var(--chat-mono-ink);color:var(--chat-mono-panel);cursor:pointer}

/* 履歴：版ごとに開け閉めし、本文はノートと同じ見た目で */
html body .home-notes-dialog .anata-note-history{border-bottom:1px solid var(--chat-mono-line)}
html body .home-notes-dialog .anata-note-history>summary{display:flex;align-items:baseline;gap:10px;padding:12px 2px;cursor:pointer;list-style:none}
html body .home-notes-dialog .anata-note-history>summary::-webkit-details-marker{display:none}
html body .home-notes-dialog .anata-note-history>summary small{margin-left:auto;color:var(--chat-mono-muted)}
html body .home-notes-dialog .anata-note-history>summary span{color:var(--chat-mono-muted)}
html body .home-notes-dialog .anata-note-history>.rich-text{padding:0 2px 16px}
html body .home-notes-dialog>header>button>svg{width:18px;height:18px}
html body .home-notes-dialog :is(select,input:not([type=checkbox]):not([type=radio])){box-sizing:border-box;width:100%;min-height:40px;padding:0 14px;border:1px solid var(--chat-mono-line);border-radius:12px;background:var(--chat-mono-panel);color:var(--chat-mono-ink)}
/* 検索欄：枠は外側の丸だけ（中の入力に青緑の枠を重ねない）。消すボタンも白黒 */
html body .home-notes .home-notes-search input:focus-visible{outline:0;box-shadow:none}
html body .home-notes .home-notes-search input::-webkit-search-cancel-button{filter:grayscale(1)}
html body .home-notes-dialog select{appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px}

/* 2026-11-05 林の指定：検索欄は横幅いっぱい。その下の1行に、フォルダー作成・新規ノート・グラフビュー・タグをアイコンだけの丸いボタンで並べる（右上の道具ボタンと同じ大きさ・均等に中央へ） */
html body .home-notes .home-notes-sidebar{gap:8px}
html body .home-notes .home-notes-sidebar-tools{display:flex;align-items:center;justify-content:space-evenly;gap:4px;margin:-2px 0 2px}
html body .home-notes .home-notes-sidebar-tools>button{display:grid;place-items:center;flex:none;width:32px;height:32px;min-height:0;padding:0;border:0;border-radius:999px;background:transparent;box-shadow:none;color:var(--chat-mono-muted);cursor:pointer}
html body .home-notes .home-notes-sidebar-tools>button:hover{background:var(--chat-mono-hover);color:var(--chat-mono-ink)}
html body .home-notes .home-notes-sidebar-tools>button>span:empty{display:none}
html body .home-notes .home-notes-sidebar-tools>button>svg{width:18px;height:18px}
/* 読み込み済みの件数は小さく、高さを取らない */
html body .home-notes .home-notes-pagination{display:grid;gap:4px;padding-top:4px}
html body .home-notes .home-notes-pagination p{margin:0;line-height:1.4}
html body .home-notes .home-notes-pagination p:empty{display:none}
