@font-face{font-family:Onest;src:url('./fonts/onest.ttf') format('truetype');font-weight:100 900;font-display:swap}@font-face{font-family:Unbounded;src:url('./fonts/unbounded.ttf') format('truetype');font-weight:200 900;font-display:swap}
:root{--bg:#F8F8FC;--surface:#FFFFFF;--text:#20202B;--muted:#626276;--accent:#6850D8;--on-accent:#fff;--line:#E4E3EE;--soft:#EFECFA;--danger:#AD304E;--study:#6850D8;--work:#2871AB;--personal:#237963;color-scheme:light}html[data-theme=dark]{--bg:#0C0C0D;--surface:#19191B;--text:#F2F2F3;--muted:#ACACB2;--accent:#B6A3FF;--on-accent:#0C0C0D;--line:#303033;--soft:#242426;--danger:#FF9CB3;--study:#B6A3FF;--work:#83BDF6;--personal:#7AD3B6;color-scheme:dark}
*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--muted) transparent}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:var(--muted);border-radius:8px}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 Onest,sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:13px;font-weight:550}button:hover{background:var(--soft)}button:active{transform:translateY(1px)}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}svg{width:22px;height:22px;flex-shrink:0}h1,h2,h3,p{margin:0}h1,h2,.wordmark{font-family:Unbounded,sans-serif;font-weight:450;letter-spacing:-.04em}h1{font-size:24px;line-height:1.3}h2{font-size:15px;line-height:1.4;letter-spacing:-.025em}h3{font-size:16px;font-weight:600}small,.muted{color:var(--muted)}a{color:var(--accent)}.shell{max-width:480px;margin:auto;min-height:100dvh;padding:0 22px calc(110px + env(safe-area-inset-bottom))}.brandbar{height:76px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:9px}.brand img{width:30px;height:30px}.wordmark{font-size:21px;letter-spacing:-1px}.demo-label{font-size:11px;font-weight:550;color:var(--muted);border:1px solid var(--line);border-radius:7px;padding:3px 7px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 23px}.page-head p{margin-top:7px;color:var(--muted);font-size:13px}.icon-button{padding:0;width:44px;height:44px;flex-shrink:0}.add{background:var(--accent);color:var(--on-accent);border-radius:15px}.add:hover,.primary:hover{filter:brightness(.95);background:var(--accent)}.section{margin-top:28px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.section-head button{color:var(--accent);padding-right:0;font-size:13px;min-height:44px}.card{background:var(--surface);border:1px solid var(--line);border-radius:21px;padding:17px}.brief{padding:21px;position:relative;overflow:hidden;background:var(--soft);border:0}.brief-label{color:var(--accent);font-size:12px;font-weight:650;display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block}.brief h2{font-size:18px;line-height:1.5;margin:10px 0 8px;max-width:255px}.brief p{max-width:260px;color:var(--muted);font-size:13px;line-height:1.6}.brief .text-link{margin:12px 0 -8px -10px;color:var(--accent);font-size:13px}.day-progress{display:flex;align-items:center;gap:12px;margin-top:17px;padding-top:16px;border-top:1px solid var(--line)}.progress-track{height:4px;flex:1;background:var(--line);border-radius:5px;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--accent);border-radius:5px}.day-progress small{font-size:11px}.list{display:flex;flex-direction:column}.row{display:flex;gap:12px;align-items:center;min-width:0;padding:13px 0;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0}.row-main{flex:1;text-align:left;padding:0;border-radius:5px;min-width:0;display:block;font-weight:450}.row-main:hover{background:none;color:var(--accent)}.row-title{display:block;font-size:15px;line-height:1.45;overflow-wrap:anywhere}.row-meta{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-top:5px;flex-wrap:wrap}.task-check{width:44px;min-width:44px;padding:0;margin-left:-10px}.task-check .box{width:20px;height:20px;border:1.5px solid var(--line);border-radius:7px;display:flex;align-items:center;justify-content:center}.task-check .box{border-color:var(--muted)}.task-check.done .box{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.box svg{width:15px;height:15px}.done-title{text-decoration:line-through;color:var(--muted)}.overdue{color:var(--danger)}.pill{font-size:11px;padding:3px 8px;background:var(--soft);color:var(--accent);border-radius:6px;white-space:nowrap}.agenda-row{display:flex;gap:13px;padding:11px 0;min-width:0}.agenda-time{width:43px;font-size:12px;color:var(--muted);padding-top:3px;flex-shrink:0}.event-line{border-left:3px solid var(--category,var(--accent));padding:1px 0 1px 12px;flex:1;min-width:0}.event-line button{text-align:left;display:block;padding:0;min-height:44px;width:100%;border-radius:3px;font-weight:500;overflow-wrap:anywhere}.event-line small{font-size:12px}.idea-card{display:block;text-align:left;width:100%;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:17px;margin-bottom:10px}.idea-card h3{font-size:14px;font-weight:550}.idea-card p{font-size:13px;color:var(--muted);margin-top:7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.debt-person{width:40px;height:40px;border-radius:14px;background:var(--soft);color:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:550;flex-shrink:0}.amount{font-variant-numeric:tabular-nums;font-weight:550;font-size:15px;white-space:nowrap}.bottom-nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);display:grid;grid-template-columns:repeat(5,1fr);background:var(--surface);border-top:1px solid var(--line);padding:8px 9px calc(10px + env(safe-area-inset-bottom));gap:2px}.bottom-nav button{flex-direction:column;gap:4px;border-radius:13px;padding:7px 1px;font-size:10px;font-weight:450;color:var(--muted);min-width:0;min-height:56px}.bottom-nav button[aria-current=page]{color:var(--accent);background:var(--soft)}.search{display:flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:0 10px;margin-bottom:14px}.search>svg{color:var(--muted);width:19px}.search input{border:0;background:none;width:100%;padding:12px 0;color:var(--text);min-width:0;outline-offset:0}.search .icon-button{width:32px}.search input::-webkit-search-cancel-button{display:none}.tabs{display:flex;gap:3px;background:var(--line);padding:3px;border-radius:13px;margin-bottom:18px}.tabs button{flex:1;min-width:0;padding:8px 7px;font-size:12px;min-height:40px}.tabs button.selected{background:var(--surface);box-shadow:0 1px 3px #00000008;color:var(--accent)}.group-label{font-size:12px;font-weight:550;color:var(--muted);margin:24px 0 2px}.group-label.overdue{color:var(--danger)}.empty{text-align:center;padding:35px 12px}.empty-symbol{display:inline-flex;padding:12px;border-radius:17px;background:var(--soft);color:var(--accent);margin-bottom:14px}.empty h3{font-size:16px}.empty p{font-size:13px;color:var(--muted);margin:8px auto 16px;max-width:280px}.totals{padding:19px 20px;background:var(--soft);border-radius:20px;margin:15px 0}.totals .total{font-size:28px;font-family:Unbounded,sans-serif;font-weight:400;letter-spacing:-.05em;line-height:1.5;overflow-wrap:anywhere}.totals .total-small{font-size:18px}.totals small{font-size:12px}.monthbar{display:flex;align-items:center;justify-content:space-between;margin:6px 0 9px}.monthbar strong{text-transform:capitalize;font-weight:550}.monthnav{display:flex;gap:0}.monthnav .prev svg{transform:rotate(180deg)}.weekdays,.monthgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.weekdays span{text-align:center;font-size:10px;color:var(--muted);padding:8px 0}.monthgrid button{padding:3px 0;min-height:46px;display:flex;flex-direction:column;gap:3px;border-radius:13px;font-size:13px;font-weight:450}.monthgrid .outside{color:var(--muted);opacity:.65}.monthgrid .today{box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent)}.monthgrid .selected{background:var(--accent);color:var(--on-accent);box-shadow:none}.dots{display:flex;gap:3px;min-height:4px}.dots i{width:3px;height:3px;border-radius:50%;background:var(--category)}.selected .dots i{background:currentColor}.calendar-card{padding:10px 10px 14px}.menu-list{overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:8px}.menu-row{width:100%;display:flex;justify-content:flex-start;padding:14px 12px;gap:13px;border-radius:12px;border-bottom:1px solid transparent;text-align:left;min-height:70px}.menu-row+.menu-row{position:relative}.menu-row+.menu-row::before{content:"";position:absolute;left:12px;right:12px;top:-1px;height:1px;background:var(--line);pointer-events:none}.menu-row:hover::before,.menu-row:hover+.menu-row::before{opacity:0}.menu-row:last-child{border-bottom:1px solid transparent}.menu-row>svg:first-child{color:var(--accent)}.menu-row>svg:last-child{margin-left:auto;color:var(--muted);width:18px}.menu-row span{display:block}.menu-row small{display:block;font-size:12px;font-weight:400}.settings-section{margin:25px 0}.settings-section h2{margin-bottom:12px}.setting-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px}.setting-card p{color:var(--muted);font-size:12px;margin:8px 0 12px}.theme-options{display:flex;gap:7px}.theme-options button{flex:1;font-size:12px;padding:10px 4px;flex-direction:column;border:1px solid var(--line)}.theme-options .selected{border-color:var(--accent);background:var(--soft);color:var(--accent)}.swatches{display:flex;gap:12px}.swatch{border:2px solid transparent;width:44px;height:44px;padding:7px;border-radius:50%}.swatch i{width:25px;height:25px;background:var(--swatch);border-radius:50%}.swatch.selected{border-color:var(--accent)}.error-banner{border:1px solid var(--danger);border-radius:14px;padding:12px;color:var(--danger);font-size:13px;margin-bottom:18px}.quiet{padding-left:0;color:var(--muted)}.danger{color:var(--danger)}.primary{background:var(--accent);color:var(--on-accent)}.secondary{background:var(--soft);color:var(--text)}.wide{width:100%}.back-title{display:flex;align-items:center;gap:6px}.back-title .icon-button{margin-left:-12px}.project-summary{color:var(--muted);font-size:13px;margin-top:6px}.checkbox{display:flex;gap:11px;align-items:center;min-height:44px;cursor:pointer;font-size:14px}.checkbox input{accent-color:var(--accent);width:19px;height:19px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--muted);margin-bottom:16px;min-width:0}.field input,.field textarea,.field select{display:block;width:100%;min-width:0;min-height:46px;border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:var(--bg);color:var(--text);font-size:16px}.field textarea{resize:none;min-height:115px}.field-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.form-error{color:var(--danger);padding:0 20px 12px;font-size:13px}dialog{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:25px;padding:0;width:calc(100% - 24px);max-width:456px;max-height:calc(100dvh - 28px);box-shadow:0 24px 90px #0004}dialog::backdrop{background:#10101b80;backdrop-filter:blur(4px)}dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 30px)}.sheet-head{padding:14px 15px 8px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.sheet-head h2{font-size:18px}.sheet-body{padding:12px 20px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.sheet-footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--line);flex-shrink:0}.sheet-footer button{flex:1}.confirm{padding:24px;max-width:370px}.confirm h2{font-size:18px}.confirm p{color:var(--muted);font-size:14px;margin:12px 0 23px}.confirm-buttons{display:flex;gap:9px}.confirm-buttons button{flex:1}.repay-preview{background:var(--soft);padding:16px;border-radius:15px;margin:14px 0}.repay-preview strong{font-size:23px;font-weight:500;display:block}.repay-preview p{font-size:12px;color:var(--muted);margin-top:5px}.demo-foot{font-size:11px;color:var(--muted);text-align:center;margin-top:30px;line-height:1.7}.bot-link{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border:1px solid var(--line);border-radius:13px;text-decoration:none;font-size:13px;margin-top:24px}#toast{position:fixed;bottom:calc(94px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,12px);background:var(--text);color:var(--bg);border-radius:13px;padding:12px 17px;max-width:calc(100% - 28px);font-size:13px;opacity:0;pointer-events:none;z-index:100;transition:opacity .15s,transform .15s}#toast.visible{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}@media(min-width:620px){body{background:var(--line)}.shell{background:var(--bg);border-left:1px solid var(--line);border-right:1px solid var(--line)}.bottom-nav{border-left:1px solid var(--line);border-right:1px solid var(--line)}}@media(max-width:350px){.shell{padding-left:16px;padding-right:16px}.amount{font-size:13px}.brief h2{font-size:17px}h1{font-size:22px}.field-pair{grid-template-columns:1fr}.bottom-nav button{font-size:9px}.debt-person{width:33px;height:36px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.event-line small{display:block;margin-top:3px;font-weight:400}.brief h2{white-space:pre-line}
.message{padding:14px 16px;border-radius:17px;background:var(--surface);border:1px solid var(--line);margin:12px 0;overflow-wrap:anywhere}.message.user{background:var(--soft);margin-left:22px}.message.assistant{margin-right:12px}.message small{font-weight:550;font-size:11px;color:var(--muted)}.message p{white-space:pre-wrap;margin-top:6px;font-size:15px;line-height:1.65}.chat-hint{font-size:12px;margin-bottom:15px}.chat-composer{position:sticky;bottom:82px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:12px;display:flex;gap:9px;flex-direction:column}.chat-composer textarea{resize:none;width:100%;min-height:86px;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px}.chat-composer button:disabled{opacity:.6;cursor:wait}.chat-composer .form-error{padding:0}.menu-row small{overflow-wrap:anywhere}.menu-row>span{min-width:0}
.focus-clock{display:block;font:400 48px/1.5 Unbounded,sans-serif;letter-spacing:-.06em;margin:16px 0}.note-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.menu-row:disabled{cursor:default;opacity:.6}.menu-row:disabled:hover{background:none}
.composer-tools{display:flex;gap:8px;flex-wrap:wrap}.attached-files>div{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.attached-files span{overflow-wrap:anywhere;min-width:0}
/* Web workspace + Telegram viewport: shared product, responsive shell. */
body{background:var(--bg)}.desktop-sidebar{display:none}.workspace{min-height:100dvh}.shell{width:100%;max-width:680px;border:0}.bottom-nav{max-width:680px;width:100%;border-left:0;border-right:0}.primary,.add{background:var(--accent-fill,var(--accent));color:var(--on-accent)}.primary:hover,.add:hover{background:var(--accent-fill,var(--accent))}.custom-accent{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.custom-accent label{display:flex;align-items:center;gap:14px}.custom-accent input[type=color]{width:52px;height:44px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer}.custom-accent code{font-size:13px;color:var(--muted)}
body[data-route=chat]{overflow:hidden}body[data-route=chat] .brandbar,body[data-route=chat] .bottom-nav{display:none}body[data-route=chat] .workspace{height:var(--app-height,100dvh);min-height:0}body[data-route=chat] .shell{height:100%;min-height:0;padding:0 14px max(10px,env(safe-area-inset-bottom))}body[data-route=chat] #content{height:100%;min-height:0}.chat-layout{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.chat-header{display:flex;align-items:center;gap:10px;flex-shrink:0;min-height:70px;border-bottom:1px solid var(--line);padding:10px 0}.chat-heading{min-width:0;flex:1}.chat-heading h1{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-heading small{display:block;font-size:12px;margin-top:2px}.chat-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 4px 20px}.messages{display:flex;flex-direction:column;gap:18px;max-width:860px;margin:auto}.message{border:0;background:none;padding:4px 0;margin:0;max-width:100%}.message.user{background:var(--soft);padding:12px 16px;margin:0;max-width:86%;align-self:flex-end;border-radius:18px 18px 5px 18px}.message.assistant{margin:0;align-self:flex-start;max-width:100%}.message p{font-size:15px;line-height:1.65}.message small{font-size:11px}.chat-composer{position:relative;bottom:auto;flex-shrink:0;width:100%;max-width:900px;margin:0 auto;padding:8px;border-radius:20px;gap:0}.composer-input{display:flex;align-items:flex-end;gap:6px}.chat-composer textarea{flex:1;min-width:0;min-height:44px;max-height:160px;padding:11px 5px;border:0;background:transparent;border-radius:0;line-height:22px;overflow-y:auto}.chat-composer textarea:focus{outline:none}.chat-composer:focus-within{outline:2px solid var(--accent);outline-offset:2px}.composer-tools{display:flex;gap:0;flex-wrap:nowrap}.composer-tool{width:36px;min-width:36px;min-height:44px;height:44px}.send-button{width:44px;min-width:44px;height:44px;padding:0;border-radius:13px}.send-button svg{transform:rotate(-90deg)}.attached-files:empty{display:none}.chat-composer .form-error{font-size:12px;padding:6px 10px}.chat-scroll>.quiet{display:block;margin:0 auto 12px;font-size:12px;min-height:32px}.chat-scroll .empty{margin:10vh auto 0;max-width:380px}.chat-scroll .empty-symbol{display:none}.chat-scroll .empty h3{font-family:Unbounded,sans-serif;font-size:20px}.chat-scroll .empty p{font-size:14px}
@media(min-width:900px){.workspace{display:grid;grid-template-columns:228px minmax(0,1fr)}.desktop-sidebar{display:flex;flex-direction:column;position:sticky;top:0;height:100dvh;padding:25px 16px 16px;border-right:1px solid var(--line);background:var(--surface);overflow-y:auto;gap:8px}.side-brand{text-decoration:none;color:var(--text);padding:2px 12px 20px}.sidebar-caption{font-size:11px;color:var(--muted);padding:0 13px 8px}.desktop-sidebar nav{display:flex;flex-direction:column;gap:3px}.side-link{width:100%;display:flex;justify-content:flex-start;gap:12px;padding:9px 12px;font-weight:450;font-size:14px;min-height:42px;text-align:left;border-radius:12px}.side-link svg{width:19px;height:19px;color:var(--muted)}.side-link[aria-current=page],.side-link.selected{background:var(--soft);color:var(--accent)}.side-link[aria-current=page] svg,.side-link.selected svg{color:var(--accent)}.sidebar-footer{margin-top:auto;padding-top:24px}.sidebar-footer small{display:block;font-size:11px;padding:12px}.shell{max-width:1320px;padding:22px 44px 50px;min-width:0;margin:0 auto}.brandbar{height:34px;margin-bottom:20px;justify-content:flex-end}.brandbar .brand{display:none}.page-head{margin:16px 0 30px}h1{font-size:28px}.bottom-nav{display:none}body[data-route=today] #content>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px 32px;align-items:start}body[data-route=today] .page-head,body[data-route=today] .brief,body[data-route=today] .bot-link,body[data-route=today] .demo-foot{grid-column:1/-1}body[data-route=today] .section{margin-top:0}.brief{padding:28px 32px}.brief h2{max-width:580px;font-size:25px}.brief p{max-width:560px}.brief .day-progress{max-width:450px}.menu-list{margin-bottom:20px}body[data-route=more] #content>div>div:last-of-type{max-width:900px}body[data-route=settings] #content>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px 28px}body[data-route=settings] .page-head{grid-column:1/-1}body[data-route=settings] .section{margin:0}.calendar-card{max-width:900px}.monthgrid button{height:66px}.shell .search{max-width:100%}body[data-route=chat] .shell{padding:0 40px 20px;max-width:1380px;width:100%}.chat-header{min-height:80px}.chat-scroll{padding:26px max(0px,calc((100% - 860px)/2)) 30px}.chat-composer{padding:10px 12px}.chat-heading h1{font-size:19px}.chat-header>button:first-child{display:none}.message.user{max-width:75%}}
@media(max-width:380px){.composer-tool{width:30px;min-width:30px}.composer-input{gap:3px}.chat-composer textarea{font-size:14px}.chat-heading h1{font-size:15px}}
.welcome-grid{display:grid;gap:14px;margin:12px 0 24px}.welcome-feature{padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}.welcome-feature>svg{color:var(--accent);margin-bottom:16px;width:26px;height:26px}.welcome-feature h2{font-size:16px}.welcome-feature p{color:var(--muted);font-size:14px;line-height:1.7;margin-top:10px}@media(min-width:1100px){.welcome-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:30px 0}.welcome-feature{min-height:210px}}
body[data-route=chat] .shell{padding-top:var(--tg-safe-top,0px);padding-bottom:max(10px,env(safe-area-inset-bottom),var(--tg-safe-bottom,0px))}
.custom-accent input[type=text]{min-width:0;width:105px;color:var(--text);border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--bg);font-size:13px}.custom-accent{flex-wrap:wrap}.custom-accent label{flex:1}.custom-accent button{font-size:13px}
.chat-composer textarea{font-size:16px}@media(min-width:900px){.desktop-sidebar{overflow:hidden}.desktop-sidebar nav{flex:1;min-height:0;overflow-y:auto}.side-brand,.sidebar-caption,.sidebar-footer{flex-shrink:0}.sidebar-footer{padding-top:12px}}

/* Vault navigation shares the application's neutral surfaces and focus treatment. */
.knowledge-layout{display:grid;gap:20px;min-width:0}.knowledge-folder-panel{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:8px;min-width:0;align-self:start}.knowledge-folder-panel>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:9px;padding:8px;font-weight:550;list-style:none}.knowledge-folder-panel>summary::-webkit-details-marker{display:none}.knowledge-folder-panel>summary:after{content:'⌄';margin-left:auto;color:var(--muted)}.knowledge-folder-panel:not([open])>summary:after{content:'›'}.knowledge-folders{max-height:290px;overflow:auto}.knowledge-folders ul{margin:0;padding:0;list-style:none}.knowledge-folders li>ul{padding-left:14px;border-left:1px solid var(--line);margin-left:20px}.knowledge-folder-row{display:flex;align-items:center;min-width:0}.folder-toggle,.folder-spacer{width:40px;min-width:40px;height:44px;padding:8px}.folder-toggle svg{width:16px;height:16px}.folder-toggle.open svg{transform:rotate(90deg)}.folder-select{justify-content:flex-start;text-align:left;width:100%;min-width:0;padding:8px;gap:8px;font-weight:450}.folder-select span{overflow-wrap:anywhere}.folder-select svg{width:18px;height:18px}.folder-select[aria-current=location]{background:var(--soft);color:var(--accent)}.folder-all{margin-bottom:4px}.knowledge-results{min-width:0}.knowledge-trail{display:flex;gap:3px;align-items:center;flex-wrap:wrap;margin:-4px -8px 12px}.knowledge-trail button{font-size:12px;padding:6px 8px;max-width:100%;overflow-wrap:anywhere}.knowledge-trail [aria-current=location]{color:var(--text);font-weight:600}.knowledge-trail>span{color:var(--muted)}.knowledge-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;font-size:12px}.knowledge-note h3{display:flex;align-items:flex-start;gap:9px;overflow-wrap:anywhere}.knowledge-note h3 svg{width:18px;height:18px;margin-top:2px}.knowledge-note .knowledge-note-path{font-size:11px;overflow-wrap:anywhere;display:block}.knowledge-note p{overflow-wrap:anywhere}.knowledge-results .form-error{margin:10px 0}.knowledge-folder-panel>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:10px}
@media(min-width:1100px){.knowledge-layout{grid-template-columns:270px minmax(0,1fr);gap:28px}.knowledge-folder-panel{position:sticky;top:20px}.knowledge-folders{max-height:65dvh}}
