:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,Roboto,Inter,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;--r-sm: 10px;--r-md: 12px;--r-lg: 16px;--r-xl: 20px;--spring: cubic-bezier(.32, .72, .24, 1);--safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-top, 0px));--safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-bottom, 0px))}:root[data-theme=dark]{color-scheme:dark;--bg: #000000;--bg-soft: #0a0a0c;--panel: #1c1c1e;--panel-solid: #1c1c1e;--panel-2: #2c2c2e;--glass: rgba(28, 28, 30, .82);--border: rgba(255, 255, 255, .08);--border-strong: rgba(255, 255, 255, .16);--text: #f2f2f7;--text-dim: #98989f;--text-faint: #636366;--accent: #0a84ff;--accent-2: #409cff;--accent-soft: rgba(10, 132, 255, .16);--accent-softer: rgba(10, 132, 255, .08);--on-accent: #ffffff;--teal: #30d5c8;--teal-soft: rgba(48, 213, 200, .14);--danger: #ff453a;--danger-soft: rgba(255, 69, 58, .14);--ok: #30d158;--shadow: 0 14px 44px rgba(0, 0, 0, .5);--shadow-soft: 0 6px 24px rgba(0, 0, 0, .35);--input-bg: rgba(118, 118, 128, .18);--overlay: rgba(0, 0, 0, .55);--scroll-thumb: rgba(255, 255, 255, .16)}:root[data-theme=light]{color-scheme:light;--bg: #f2f2f7;--bg-soft: #eaeaef;--panel: #ffffff;--panel-solid: #ffffff;--panel-2: #f7f7fa;--glass: rgba(249, 249, 251, .85);--border: rgba(60, 60, 67, .1);--border-strong: rgba(60, 60, 67, .2);--text: #1c1c1e;--text-dim: #6c6c70;--text-faint: #aeaeb2;--accent: #007aff;--accent-2: #0068d9;--accent-soft: rgba(0, 122, 255, .12);--accent-softer: rgba(0, 122, 255, .06);--on-accent: #ffffff;--teal: #0e9f8e;--teal-soft: rgba(14, 159, 142, .12);--danger: #ff3b30;--danger-soft: rgba(255, 59, 48, .1);--ok: #28a745;--shadow: 0 14px 40px rgba(0, 0, 0, .14);--shadow-soft: 0 6px 20px rgba(0, 0, 0, .08);--input-bg: rgba(118, 118, 128, .12);--overlay: rgba(0, 0, 0, .32);--scroll-thumb: rgba(60, 60, 67, .22)}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);overflow:hidden;font-size:15px;line-height:1.45}::selection{background:var(--accent-soft)}button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}button:disabled{cursor:default}input,textarea,select{font-family:inherit;font-size:16px;color:var(--text);background:var(--input-bg);border:1px solid transparent;border-radius:var(--r-md);padding:10px 14px;outline:none;transition:background .15s,box-shadow .15s}input:focus,textarea:focus,select:focus{background:var(--input-bg);box-shadow:0 0 0 3px var(--accent-soft)}input::placeholder,textarea::placeholder{color:var(--text-faint)}img{max-width:100%;display:block}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border-radius:99px}::-webkit-scrollbar-track{background:transparent}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@keyframes fadeUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes popIn{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}@keyframes pageIn{0%{opacity:0}to{opacity:1}}@keyframes sheetUp{0%{transform:translateY(100%)}to{transform:none}}@keyframes toastUp{0%{opacity:0;transform:translate(-50%,14px)}to{opacity:1;transform:translate(-50%)}}@keyframes overlayIn{0%{opacity:0}to{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmerMove{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes caretBlink{0%,55%{opacity:1}56%,to{opacity:0}}@keyframes typingBounce{0%,70%,to{transform:translateY(0);opacity:.4}35%{transform:translateY(-3px);opacity:1}}@keyframes sparkFade{0%{transform:scale(.5);opacity:0}to{transform:none;opacity:1}}@keyframes logoFloat{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.app-shell{display:flex;height:100%;height:100dvh}.app-content{flex:1;display:flex;flex-direction:column;min-width:0;position:relative}.page-view{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;animation:pageIn .22s ease;scrollbar-gutter:stable}.side-rail{width:248px;flex-shrink:0;display:flex;flex-direction:column;gap:4px;padding:22px 14px 16px;background:var(--bg-soft);border-right:1px solid var(--border)}.brand{display:flex;align-items:center;gap:11px;padding:2px 10px 20px}.brand.compact{padding:0;gap:9px}.brand-text{display:flex;flex-direction:column;line-height:1.15}.brand-name{font-size:16px;font-weight:700;letter-spacing:-.01em}.brand-tag{font-size:11px;color:var(--text-faint)}.logo{flex-shrink:0;border-radius:8px}.rail-nav{display:flex;flex-direction:column;gap:2px;flex:1}.rail-item{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:var(--r-md);color:var(--text-dim);text-align:left;transition:background .12s,color .12s}.rail-item:hover{background:var(--input-bg);color:var(--text)}.rail-item.active{background:var(--accent-soft);color:var(--accent)}.rail-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;flex-shrink:0}.rail-label{font-size:14px;font-weight:550}.rail-hint{margin-left:auto;font-size:11px;color:var(--text-faint);opacity:0;transition:opacity .15s}.rail-item:hover .rail-hint{opacity:1}.rail-foot{display:flex;align-items:center;gap:8px;padding-top:12px;border-top:1px solid var(--border)}.mode-badge,.user-badge{display:inline-flex;align-items:center;gap:6px;flex:1;min-width:0;padding:6px 10px;border-radius:999px;background:var(--input-bg);font-size:12px;color:var(--text-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mode-badge.err,.user-badge.err{color:var(--danger);background:var(--danger-soft)}.user-avatar{border-radius:50%;object-fit:cover;flex-shrink:0}.avatar-letter{display:inline-grid;place-items:center;background:var(--accent);color:var(--on-accent);font-size:9px;font-weight:700}.top-bar{display:none;align-items:center;gap:10px;padding:calc(10px + var(--safe-top)) 16px 10px;background:var(--glass);backdrop-filter:blur(20px) saturate(1.6);-webkit-backdrop-filter:blur(20px) saturate(1.6);border-bottom:.5px solid var(--border);z-index:20}.top-bar .user-badge{margin-left:auto;flex:0 1 auto}.top-bar .icon-btn{margin-left:0;flex-shrink:0}.bottom-nav{display:none;align-items:stretch;padding:4px 8px calc(4px + var(--safe-bottom));background:var(--glass);backdrop-filter:blur(20px) saturate(1.6);-webkit-backdrop-filter:blur(20px) saturate(1.6);border-top:.5px solid var(--border);z-index:20}.bottom-nav .tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 4px;font-size:10px;font-weight:550;color:var(--text-faint);transition:color .12s,transform .1s}.bottom-nav .tab:active{transform:scale(.95)}.bottom-nav .tab svg{width:22px;height:22px}.bottom-nav .tab.active{color:var(--accent)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 18px;border-radius:var(--r-md);font-size:15px;font-weight:600;letter-spacing:-.01em;transition:transform .1s,opacity .15s,background .15s,color .15s}.btn:active{transform:scale(.97);opacity:.85}.btn-primary{background:var(--accent);color:var(--on-accent)}.btn-primary:disabled{opacity:.4;transform:none}.btn-ghost{background:var(--input-bg);color:var(--text-dim)}.btn-ghost:hover{color:var(--text)}.icon-btn{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--input-bg);color:var(--text-dim);transition:color .12s,transform .1s;flex-shrink:0}.icon-btn:hover{color:var(--accent)}.icon-btn:active{transform:scale(.9)}.notes-page{display:flex;flex-direction:column;gap:14px;padding:24px 28px 96px;max-width:1080px;margin:0 auto;width:100%;min-height:100%}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.page-title{font-size:30px;font-weight:700;letter-spacing:-.025em;line-height:1.15}.page-sub{margin-top:3px;font-size:13px;color:var(--text-dim)}.new-note-btn{flex-shrink:0}.notes-toolbar{display:flex;flex-direction:column;gap:10px}.search-wrap{position:relative}.search-wrap svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--text-faint);pointer-events:none}.search-input{width:100%;height:40px;padding-left:38px;border-radius:10px}.chips-row{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.chips-row::-webkit-scrollbar{display:none}.chip{flex-shrink:0;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:500;color:var(--text-dim);background:var(--input-bg);transition:color .12s,background .12s,transform .1s}.chip:active{transform:scale(.96)}.chip.on-entity{color:var(--on-accent);background:var(--accent)}.notes-list{display:flex;flex-direction:column;flex:1}.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}.note-card{position:relative;border-radius:var(--r-lg);animation:fadeUp .3s var(--spring) both;overflow:hidden}.note-card-inner{position:relative;height:100%;padding:14px 16px 12px;border-radius:var(--r-lg);background:var(--panel);transition:transform .15s var(--spring),background .15s;cursor:pointer;touch-action:pan-y;z-index:1}.note-card-inner:hover{background:var(--panel-2)}.note-card-inner:active{opacity:.85}.note-delete{position:absolute;top:0;right:0;bottom:0;width:88px;border-radius:0 var(--r-lg) var(--r-lg) 0;display:grid;place-items:center;background:var(--danger);color:#fff;opacity:0;transition:opacity .15s;z-index:0}.note-card.reveal .note-delete{opacity:1}.note-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.note-title{font-size:15.5px;font-weight:650;letter-spacing:-.01em;line-height:1.3}.note-status{flex-shrink:0;padding-top:3px}.note-summary{margin-top:4px;font-size:13.5px;line-height:1.5;color:var(--text-dim);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.note-summary.processing{color:var(--text-faint)}.shimmer{background:linear-gradient(90deg,var(--text-faint) 25%,var(--text-dim) 50%,var(--text-faint) 75%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent!important;animation:shimmerMove 1.8s linear infinite}.note-atts{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.att-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:5px 10px;border-radius:999px;background:var(--input-bg);font-size:12px;color:var(--text-dim);transition:color .12s}.att-chip:hover{color:var(--accent)}.att-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.att-chip.pending{opacity:.6}.att-item{display:flex;align-items:center;gap:6px}.att-remove{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:var(--text-faint);font-size:15px;transition:color .12s,background .12s}.att-remove:hover{color:var(--danger);background:var(--danger-soft)}.note-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.tag{padding:3px 9px;border-radius:999px;font-size:11px;font-weight:550;color:var(--text-faint);background:var(--input-bg)}.tag.entity-tag{color:var(--teal);background:var(--teal-soft)}.tag-more{color:var(--text-dim);transition:color .12s}.tag-more:hover{color:var(--accent)}.note-meta{margin-top:10px;font-size:11.5px;color:var(--text-faint)}.empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:48px 24px;animation:fadeUp .35s var(--spring) both}.empty-state .logo{border-radius:16px;opacity:.9}.empty-title{font-size:19px;font-weight:700;letter-spacing:-.015em;margin-top:12px}.empty-sub{font-size:14px;color:var(--text-dim);max-width:300px;line-height:1.5}.empty-state .btn{margin-top:14px}.breathing{animation:logoFloat 3.8s ease-in-out infinite}.fab{position:fixed;right:18px;bottom:calc(18px + var(--safe-bottom));width:54px;height:54px;border-radius:50%;display:none;place-items:center;background:var(--accent);color:var(--on-accent);box-shadow:0 6px 20px #00000047;z-index:40;transition:transform .12s var(--spring);animation:popIn .25s var(--spring) both}.fab svg{width:24px;height:24px}.fab:active{transform:scale(.9)}.toast{position:fixed;left:50%;bottom:calc(24px + var(--safe-bottom));transform:translate(-50%);display:flex;align-items:center;gap:14px;padding:10px 10px 10px 16px;border-radius:999px;background:var(--panel-2);box-shadow:var(--shadow);font-size:13.5px;z-index:60;animation:toastUp .28s var(--spring) both;max-width:min(92vw,480px)}.toast-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toast-undo{flex-shrink:0;padding:6px 14px;border-radius:999px;color:var(--accent);font-size:13px;font-weight:650}.agent-page{display:flex;flex-direction:column;height:100%;max-width:760px;margin:0 auto;width:100%;padding:8px 14px calc(10px + var(--safe-bottom));gap:8px}.agent-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:4px 4px 2px}.agent-title{font-size:26px}.agent-welcome{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 12px 32px;animation:fadeUp .35s var(--spring) both}.agent-avatar{display:grid;place-items:center;width:88px;height:88px;border-radius:26px;background:var(--accent-soft);margin-bottom:20px;animation:logoFloat 4s ease-in-out infinite}.agent-avatar .logo{border-radius:13px}.agent-welcome-title{font-size:24px;font-weight:700;letter-spacing:-.02em}.agent-welcome-sub{margin-top:6px;font-size:14px;color:var(--text-dim);max-width:320px;line-height:1.5}.suggest-grid{display:flex;flex-direction:column;gap:8px;width:100%;max-width:380px;margin-top:26px}.suggest-chip{padding:12px 16px;border-radius:var(--r-md);background:var(--panel);border:.5px solid var(--border);color:var(--text);font-size:14px;font-weight:500;text-align:left;transition:background .12s,transform .1s,color .12s}.suggest-chip:hover{background:var(--panel-2)}.suggest-chip:active{transform:scale(.98);background:var(--accent-soft)}.chat-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:6px;padding:8px 2px}.msg{max-width:80%;padding:9px 13px;border-radius:17px;font-size:15px;line-height:1.45;word-break:break-word;animation:popIn .2s var(--spring) both}.msg.user{align-self:flex-end;background:var(--accent);color:var(--on-accent);border-bottom-right-radius:4px}.msg.bot{align-self:flex-start;background:var(--panel);border-bottom-left-radius:4px}.msg.bot.error{background:var(--danger-soft);color:var(--danger)}.msg.bot strong{font-weight:650}.tool-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:7px}.tool-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;font-size:11.5px;font-weight:550;background:var(--input-bg);color:var(--text-dim)}.tool-chip.done{color:var(--ok)}.tool-chip .check{font-size:11px}.source-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.source-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 11px;border-radius:999px;font-size:12px;font-weight:550;background:var(--accent-soft);color:var(--accent);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.caret{display:inline-block;width:2px;height:1em;margin-left:2px;vertical-align:-.15em;background:var(--accent);animation:caretBlink 1s steps(1) infinite}.typing-dots{display:inline-flex;gap:5px;padding:4px 2px}.typing-dots i{width:6px;height:6px;border-radius:50%;background:var(--text-faint);animation:typingBounce 1.2s ease-in-out infinite}.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}.chat-input-row{display:flex;align-items:center;gap:6px;padding:5px 5px 5px 16px;border-radius:999px;background:var(--input-bg);transition:box-shadow .15s}.chat-input-row:focus-within{box-shadow:0 0 0 3px var(--accent-soft)}.chat-input{flex:1;min-width:0;border:none;background:transparent;padding:8px 0;font-size:16px}.chat-input:focus{box-shadow:none}.send-btn{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--accent);color:var(--on-accent);flex-shrink:0;transition:transform .12s var(--spring),opacity .15s}.send-btn svg{width:17px;height:17px;margin-left:-1px}.send-btn:active{transform:scale(.88)}.send-btn:disabled{opacity:.35;transform:none}.graph-page{position:relative;height:100%;overflow:hidden;display:flex;flex-direction:column}.graph-wrap{position:absolute;top:0;right:0;bottom:0;left:0}.graph-canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.graph-canvas.hover{cursor:pointer}.graph-canvas.dragging{cursor:grabbing}.graph-controls{position:absolute;top:14px;right:14px;display:flex;flex-direction:column;gap:6px;z-index:5}.graph-ctl{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:var(--text-dim);font-size:18px;font-weight:500;transition:color .12s,transform .1s}.graph-ctl:hover{color:var(--accent)}.graph-ctl:active{transform:scale(.9)}.graph-legend{position:absolute;left:14px;bottom:calc(14px + var(--safe-bottom));border-radius:var(--r-md);background:var(--glass);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);z-index:5;overflow:hidden;min-width:148px;box-shadow:var(--shadow-soft)}.legend-toggle{display:flex;align-items:center;gap:9px;width:100%;padding:10px 13px;font-size:12.5px;font-weight:600;color:var(--text-dim)}.legend-mini-dots{display:inline-flex}.legend-mini-dots i{width:8px;height:8px;border-radius:50%;margin-left:-3px}.legend-mini-dots i:first-child{margin-left:0}.legend-chevron{margin-left:auto;transition:transform .2s var(--spring)}.graph-legend.open .legend-chevron{transform:rotate(180deg)}.legend-body{padding:4px 13px 11px;display:flex;flex-direction:column;gap:7px;animation:fadeUp .22s var(--spring) both}.legend-item{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-dim)}.legend-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}.legend-line{width:14px;height:2px;border-radius:2px;flex-shrink:0;margin-left:-2px}.legend-stats{margin-top:4px;padding-top:8px;border-top:.5px solid var(--border);font-size:11px;color:var(--text-faint)}.graph-filters{position:absolute;top:14px;left:14px;right:58px;display:flex;gap:6px;overflow-x:auto;z-index:5;scrollbar-width:none;-webkit-overflow-scrolling:touch}.graph-filters::-webkit-scrollbar{display:none}.graph-filter{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:6px 11px;border-radius:999px;background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);font-size:12px;font-weight:550;color:var(--text-dim);transition:opacity .15s,transform .1s}.graph-filter i{width:8px;height:8px;border-radius:50%}.graph-filter:active{transform:scale(.95)}.graph-filter.off{opacity:.4}.graph-hint{position:absolute;left:50%;bottom:calc(14px + var(--safe-bottom));transform:translate(-50%);padding:6px 13px;border-radius:999px;background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);font-size:11.5px;color:var(--text-faint);white-space:nowrap;z-index:4;pointer-events:none}.node-card{position:absolute;left:14px;right:14px;bottom:calc(14px + var(--safe-bottom));max-width:420px;padding:15px 16px;border-radius:var(--r-lg);background:var(--glass);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:var(--shadow);z-index:6;animation:fadeUp .28s var(--spring) both}.node-card h3{font-size:16px;font-weight:700;letter-spacing:-.01em;margin:7px 0 4px;padding-right:24px}.node-card p{font-size:13px;color:var(--text-dim);line-height:1.5;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.node-kind{display:inline-block;padding:2px 9px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.05em}.node-kind.note{color:var(--accent);background:var(--accent-soft)}.node-kind.entity{color:var(--teal);background:var(--teal-soft)}.node-card-close{position:absolute;top:11px;right:11px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;color:var(--text-faint);font-size:12px;transition:color .12s,background .12s}.node-card-close:hover{color:var(--text);background:var(--input-bg)}.related{margin-top:9px;display:flex;flex-direction:column;gap:5px;max-height:130px;overflow-y:auto}.rel{font-size:12.5px;color:var(--text)}.rel-label{color:var(--text-faint);font-size:11.5px;margin-right:4px}.node-open{width:100%;min-height:40px;margin-top:12px;font-size:14px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--overlay);display:flex;align-items:flex-end;justify-content:center;z-index:80;animation:overlayIn .18s ease both}.modal{width:100%;max-width:520px;max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;padding:6px 20px calc(20px + var(--safe-bottom));border-radius:var(--r-xl) var(--r-xl) 0 0;background:var(--panel-solid);animation:sheetUp .3s var(--spring) both}.sheet-grabber{display:block;width:36px;height:5px;border-radius:99px;background:var(--scroll-thumb);margin:7px auto 14px}.modal h2{font-size:19px;font-weight:700;letter-spacing:-.015em;margin-bottom:16px}.field{margin-bottom:14px}.field label{display:block;font-size:12.5px;font-weight:550;color:var(--text-dim);margin-bottom:6px}.field input,.field textarea{width:100%}.field textarea{resize:vertical;min-height:110px;line-height:1.55}.att-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.attach-btn{min-height:38px;font-size:13px}.modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:18px}.modal-hint{margin-right:auto;font-size:12px;color:var(--text-faint)}.att-modal{width:100%;max-width:640px;max-height:92dvh;display:flex;flex-direction:column;padding:6px 16px calc(16px + var(--safe-bottom));border-radius:var(--r-xl) var(--r-xl) 0 0;background:var(--panel-solid);animation:sheetUp .3s var(--spring) both;overflow:hidden}.att-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0 12px}.att-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.att-title em{font-style:normal;font-size:12px;font-weight:500;color:var(--text-faint);flex-shrink:0}.att-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.att-actions .btn{min-height:34px;padding:0 14px;font-size:13px}.att-body{flex:1;min-height:0;overflow:auto;border-radius:var(--r-md);background:var(--input-bg);display:grid;place-items:center}.att-body img{width:100%;height:100%;object-fit:contain}.att-body pre{width:100%;padding:14px;font-size:13px;line-height:1.55;white-space:pre-wrap;word-break:break-word;font-family:SF Mono,Cascadia Code,Consolas,monospace;justify-self:start;align-self:start}.att-fallback{display:flex;flex-direction:column;align-items:center;gap:10px;padding:36px 20px;color:var(--text-faint);font-size:13px}.att-fallback svg{width:34px;height:34px}.onboarding{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:20px;background:var(--bg);animation:overlayIn .25s ease both}.onboard-card{width:100%;max-width:340px;display:flex;flex-direction:column;align-items:center;padding:34px 26px 24px;border-radius:26px;background:var(--panel-solid);box-shadow:var(--shadow);animation:popIn .35s var(--spring) both;text-align:center}.onboard-logo{margin-bottom:22px;animation:logoFloat 4s ease-in-out infinite}.onboard-logo .logo{border-radius:18px}.onboard-body{animation:fadeUp .3s var(--spring) both}.onboard-icon{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 12px;border-radius:12px;background:var(--accent-soft);color:var(--accent)}.onboard-title{font-size:19px;font-weight:700;letter-spacing:-.015em;line-height:1.25;margin-bottom:8px}.onboard-text{font-size:14px;line-height:1.5;color:var(--text-dim)}.onboard-dots{display:flex;gap:7px;margin:20px 0 16px}.onboard-dot{width:7px;height:7px;border-radius:99px;background:var(--scroll-thumb);transition:width .22s var(--spring),background .15s}.onboard-dot.on{width:20px;background:var(--accent)}.onboard-actions{display:flex;gap:10px;width:100%}.onboard-actions .btn-primary{flex:1}.spinner{display:inline-block;width:14px;height:14px;border-radius:50%;border:2px solid var(--accent-soft);border-top-color:var(--accent);animation:spin .85s linear infinite}.mini-spinner{display:inline-block;width:10px;height:10px;border-radius:50%;border:1.5px solid var(--accent-soft);border-top-color:var(--accent);animation:spin .85s linear infinite}.spark{display:inline-block;color:var(--ok);font-size:13px;animation:sparkFade .35s var(--spring) both}.top-bar,.bottom-nav{display:none}@media(max-width:960px){.side-rail{display:none}.top-bar,.bottom-nav{display:flex}.fab{display:grid}.new-note-btn{display:none}}html.tg-narrow .side-rail{display:none}html.tg-narrow .top-bar,html.tg-narrow .bottom-nav{display:flex}html.tg-narrow .fab{display:grid}html.tg-narrow .new-note-btn{display:none}@media(max-width:960px){.notes-page{padding:14px 14px calc(96px + var(--safe-bottom));gap:12px}.page-title{font-size:26px}.notes-grid{grid-template-columns:1fr;gap:8px}.msg{max-width:84%}.graph-controls{top:12px;right:12px}.toast{bottom:calc(148px + var(--safe-bottom))}.fab{bottom:calc(82px + var(--safe-bottom))}.graph-legend{bottom:12px;left:12px}.graph-hint{bottom:12px}.node-card{left:12px;right:12px;bottom:12px;max-width:none}}html.tg-narrow .notes-page{padding:14px 14px calc(96px + var(--safe-bottom));gap:12px}html.tg-narrow .page-title{font-size:26px}html.tg-narrow .notes-grid{grid-template-columns:1fr;gap:8px}html.tg-narrow .msg{max-width:84%}html.tg-narrow .graph-controls{top:12px;right:12px}html.tg-narrow .toast{bottom:calc(148px + var(--safe-bottom))}html.tg-narrow .fab{bottom:calc(82px + var(--safe-bottom))}html.tg-narrow .graph-legend{bottom:12px;left:12px}html.tg-narrow .graph-hint{bottom:12px}html.tg-narrow .node-card{left:12px;right:12px;bottom:12px;max-width:none}@media(min-width:961px){html:not(.tg-narrow) .modal-overlay{align-items:center;padding:24px}html:not(.tg-narrow) .modal,html:not(.tg-narrow) .att-modal{border-radius:var(--r-xl);animation:popIn .24s var(--spring) both;max-height:86dvh;box-shadow:var(--shadow)}html:not(.tg-narrow) .sheet-grabber{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
