:root{color:#1c2825;font-synthesis:none;text-rendering:optimizelegibility;--ink:#18332d;--paper:#f3efe4;--cream:#fffdf7;--coral:#ff775c;--lime:#d7e8a7;--muted:#6d766f;--line:#18332d21;--shadow:0 0 0 1px #0000000f, 0 1px 2px -1px #0000000f, 0 18px 50px -28px #18332d47;background:#f3efe4;font-family:Avenir Next,PingFang SC,Hiragino Sans GB,sans-serif}*{box-sizing:border-box}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{min-width:20rem;min-height:100dvh;margin:0}button,input,textarea{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #ff775c61}h1,h2,p{margin-top:0}h1,h2{text-wrap:balance}p{text-wrap:pretty}.brand{align-items:center;gap:.75rem;display:inline-flex}.brand__mark{width:2.75rem;height:2.75rem;color:var(--paper);background:var(--ink);border-radius:.8rem;grid-template-columns:repeat(3,.42rem);align-items:end;gap:.16rem;padding:.65rem;display:grid;position:relative;box-shadow:0 4px 14px #18332d29}.brand__mark:after{content:"";background:var(--coral);border-radius:1rem;height:.2rem;position:absolute;inset:.45rem .5rem auto}.brand__mark i{background:currentColor;border-radius:.08rem .08rem .18rem .18rem;height:.72rem;display:block}.brand__mark i:nth-child(2){background:var(--lime);height:1rem}.brand b,.brand small{display:block}.brand b{letter-spacing:.08em;font-family:Georgia,Songti SC,serif;font-size:1.42rem}.brand small{color:var(--muted);letter-spacing:.16em;margin-top:.05rem;font-size:.7rem}.brand--compact .brand__mark{border-radius:.7rem;width:2.35rem;height:2.35rem;padding:.52rem}.brand--compact .brand b{font-size:1.2rem}.brand--compact .brand small,.brand--compact>span:last-child{display:none}.language-switch{border:1px solid var(--line);background:#fffdf7b8;border-radius:.75rem;flex:none;grid-template-columns:1fr 1fr;padding:.18rem;display:inline-grid;box-shadow:0 5px 18px -14px #18332db3}.language-switch button{min-width:2.75rem;min-height:2.75rem;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:.58rem;padding:0 .55rem;font-size:.76rem;font-weight:800}.language-switch button[aria-pressed=true]{color:#fff;background:var(--ink)}.eyebrow,.step-number{color:#a14e3e;letter-spacing:.18em;font-size:.72rem;font-weight:700}.button,.text-link,.icon-button,.logout-button,.prompt-strip button,.mobile-switch button,.send-button,.chat-error{cursor:pointer;border:0;min-height:2.75rem;transition-property:scale,background-color,box-shadow,color,opacity;transition-duration:.15s;transition-timing-function:ease-out}.button:active,.text-link:active,.icon-button:active,.logout-button:active,.prompt-strip button:active,.mobile-switch button:active,.send-button:active{scale:.96}.button:disabled,.send-button:disabled{cursor:not-allowed;opacity:.5}.button{border-radius:.8rem;justify-content:space-between;align-items:center;gap:1rem;padding:.78rem 1rem .78rem 1.15rem;font-weight:700;display:inline-flex}.button--primary{color:#fff;background:var(--ink);box-shadow:0 8px 24px -14px #18332dcc}.button--primary:hover{background:#24473f}.button--accent{color:#2e201d;background:var(--coral)}.button--wide{width:100%}.text-link{color:var(--ink);background:0 0;align-items:center;gap:.5rem;padding:0;font-weight:700;display:inline-flex}.text-link span{color:var(--coral)}.auth-shell{background:var(--cream);min-height:100dvh;display:grid}.auth-story{min-height:48vh;padding:max(1.5rem, env(safe-area-inset-top)) 1.25rem 2rem;color:var(--ink);background:var(--paper);flex-direction:column;display:flex;position:relative;overflow:hidden}.auth-topbar{z-index:2;justify-content:space-between;align-items:center;gap:1rem;display:flex;position:relative}.auth-story:before{content:"";background:var(--lime);opacity:.85;border-radius:50%;width:22rem;height:22rem;position:absolute;top:24%;right:-10rem}.auth-story:after{content:"";border:2px solid var(--ink);opacity:.14;border-radius:50%;width:9rem;height:9rem;position:absolute;top:38%;right:1.5rem}.story-copy{z-index:1;max-width:36rem;margin:auto 0;padding:3rem 0 1rem;position:relative}.story-copy h1,.demo-copy h1{letter-spacing:-.045em;margin:.75rem 0 1rem;font-family:Georgia,Songti SC,serif;font-size:clamp(2.65rem,10vw,5.2rem);font-weight:500;line-height:1.02}.story-copy p{color:#54625c;max-width:31rem;font-size:1.05rem;line-height:1.7}.story-copy .text-link{margin-top:.8rem}.auth-footnote{z-index:1;color:var(--muted);margin:1rem 0 0;font-size:.8rem;position:relative}.auth-form-wrap{padding:2rem 1.25rem max(2rem, env(safe-area-inset-bottom));background:var(--cream);place-items:center;display:grid}.auth-card{width:min(100%,28rem)}.auth-card h2{margin:.55rem 0 .45rem;font-family:Georgia,Songti SC,serif;font-size:2.25rem;font-weight:500}.auth-card>div>p{color:var(--muted);margin-bottom:2rem;line-height:1.6}label{color:#43504b;gap:.5rem;margin-bottom:1.15rem;font-size:.86rem;font-weight:700;display:grid}input{width:100%;min-height:3.25rem;color:var(--ink);background:#fff;border:1px solid #18332d33;border-radius:.72rem;padding:0 .9rem;transition-property:border-color,box-shadow;transition-duration:.15s}input:hover{border-color:#18332d61}.auth-card .button{width:100%;margin-top:.65rem}.form-error{color:#8a2f23;background:#fff0ed;border-left:3px solid #c94a3a;margin:.35rem 0 .8rem;padding:.75rem .9rem;font-size:.86rem;line-height:1.45}.form-hint{text-align:center;color:var(--muted);margin:1rem 0 0;font-size:.78rem}.notice{text-align:center;background:radial-gradient(circle at 50% 35%, #fff 0 8%, transparent 34%), var(--paper);place-content:center;gap:3rem;min-height:100dvh;padding:1.5rem;display:grid}.notice .brand{justify-content:center}.notice h1{font-family:Georgia,Songti SC,serif;font-size:2rem;font-weight:500}.notice p{max-width:30rem;color:var(--muted)}.notice>.language-switch{z-index:2;top:max(1rem, env(safe-area-inset-top));position:fixed;right:1rem}.setup-shell{min-height:100dvh;padding-bottom:max(2rem, env(safe-area-inset-bottom));background:var(--paper)}.setup-header,.workspace-topbar,.demo-shell>header{min-height:4.75rem;padding:max(.75rem, env(safe-area-inset-top)) 1.25rem .75rem;border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;display:flex}.header-actions{justify-content:flex-end;align-items:center;gap:.75rem;display:flex}.header-actions>span{color:var(--muted);letter-spacing:.08em;font-size:.78rem;font-weight:700;display:none}.setup-grid{gap:2.5rem;width:min(100%,78rem);margin:0 auto;padding:2rem 1.25rem;display:grid}.setup-copy h1{margin:.7rem 0 1rem;font-family:Georgia,Songti SC,serif;font-size:clamp(2.35rem,9vw,4.2rem);font-weight:500;line-height:1.05}.setup-copy>p{color:var(--muted);line-height:1.7}.password-note{background:var(--lime);border-radius:1rem;gap:.3rem;margin:1.5rem 0;padding:1rem;display:grid}.password-note span{color:#4d5d40;font-size:.82rem;line-height:1.5}.setup-knowledge{background:var(--cream);min-width:0;box-shadow:var(--shadow);border-radius:1.4rem;padding:1.1rem}.section-heading,.panel-header,.editor-toolbar,.knowledge-footer{justify-content:space-between;align-items:center;gap:1rem;display:flex}.section-heading h2{margin:.35rem 0 0;font-family:Georgia,Songti SC,serif;font-size:1.65rem;font-weight:500}.setup-knowledge>p{color:var(--muted);font-size:.86rem}.file-chip{color:#536447;background:var(--lime);border-radius:.45rem;flex:none;padding:.42rem .62rem;font-family:SFMono-Regular,Consolas,monospace;font-size:.7rem;font-weight:700}.file-tabs{background:#18332d14;border-radius:.65rem;grid-template-columns:1fr 1fr;padding:.2rem;display:inline-grid}.file-tabs button{min-height:2.75rem;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:.5rem;padding:.5rem .7rem;font-family:SFMono-Regular,Consolas,monospace;font-size:.72rem;font-weight:700}.file-tabs button.active{color:var(--ink);background:var(--cream);box-shadow:0 1px 5px #18332d1f}.setup-knowledge>.file-tabs{width:100%;margin-top:.25rem}.markdown-editor{resize:none;color:#24322e;tab-size:2;background:#fffdf9;border:0;outline:0;width:100%;height:100%;min-height:22rem;padding:1.2rem;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.9rem;line-height:1.75;display:block}.markdown-editor--setup{border:1px solid var(--line);resize:vertical;border-radius:.85rem;height:24rem;margin:.75rem 0 1rem}.workspace-shell{background:var(--paper);min-height:100dvh}.workspace-topbar{z-index:5;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#f3efe4e0;position:relative}.shop-meta{text-align:right;min-width:0;margin-left:auto;padding:0 .5rem}.shop-meta span,.shop-meta small{white-space:nowrap;text-overflow:ellipsis;max-width:11rem;display:block;overflow:hidden}.shop-meta span{font-weight:700}.shop-meta small{color:var(--muted);margin-top:.12rem;font-size:.68rem}.logout-button{min-width:3rem;color:var(--muted);background:0 0;padding:.4rem;font-size:.82rem}.mobile-switch{background:#18332d14;border-radius:.85rem;grid-template-columns:1fr 1fr;margin:.85rem 1rem;padding:.25rem;display:grid}.mobile-switch button{min-height:2.65rem;color:var(--muted);background:0 0;border-radius:.64rem;font-weight:700}.mobile-switch button.active{color:var(--ink);background:var(--cream);box-shadow:0 2px 10px #18332d1a}.workspace-grid{padding:0 1rem max(1rem, env(safe-area-inset-bottom))}.workspace-panel{background:var(--cream);min-width:0;height:calc(100dvh - 9.5rem);min-height:34rem;box-shadow:var(--shadow);border-radius:1.3rem;overflow:hidden}.panel-header{border-bottom:1px solid var(--line);min-height:5.2rem;padding:1rem 1.15rem}.panel-header h2{margin:.25rem 0 0;font-family:Georgia,Songti SC,serif;font-size:1.55rem;font-weight:500}.panel-actions{align-items:center;gap:.75rem;display:flex}.save-state{color:var(--muted);font-variant-numeric:tabular-nums;align-items:center;gap:.38rem;font-size:.72rem;display:inline-flex}.save-state i{background:#74a159;border-radius:50%;width:.48rem;height:.48rem}.save-state--saving i,.save-state--dirty i{background:#e5a44a}.save-state--error{color:#a13a2e}.save-state--error i{background:#c94a3a}.knowledge-panel{flex-direction:column;display:flex}.editor-wrap{background:#fffdf9;border-radius:.95rem;flex-direction:column;flex:1;min-height:0;margin:.85rem;display:flex;overflow:hidden;box-shadow:inset 0 0 0 1px #18332d1a}.editor-toolbar{min-height:3.4rem;color:var(--muted);border-bottom:1px solid #18332d14;flex:none;padding:.3rem .45rem;font-family:SFMono-Regular,Consolas,monospace;font-size:.68rem}.editor-count{font-variant-numeric:tabular-nums}.editor-wrap .markdown-editor{min-height:0}.knowledge-footer{flex:none;align-items:flex-end;padding:0 1rem 1rem}.knowledge-footer p{max-width:34rem;color:var(--muted);margin:0;font-size:.76rem;line-height:1.55}.knowledge-footer p b{color:var(--coral)}.mobile-try{flex:none}.chat-panel{flex-direction:column;display:flex}.chat-header{background:var(--ink);color:#fff;border-bottom:0}.chat-identity{align-items:center;gap:.75rem;min-width:0;display:flex}.chat-identity h2{margin:0;font-family:Avenir Next,PingFang SC,sans-serif;font-size:.98rem;font-weight:700}.chat-identity p{color:#ffffffa1;align-items:center;gap:.35rem;margin:.2rem 0 0;font-size:.68rem;display:flex}.chat-identity p i{background:var(--lime);border-radius:50%;width:.42rem;height:.42rem;box-shadow:0 0 0 3px #d7e8a71f}.agent-avatar{width:2.6rem;height:2.6rem;color:var(--ink);background:var(--coral);border-radius:.78rem;flex:none;place-items:center;font-family:Georgia,Songti SC,serif;font-weight:700;display:grid}.demo-badge{color:var(--lime);letter-spacing:.14em;background:#ffffff17;border-radius:.4rem;padding:.38rem .5rem;font-size:.62rem;font-weight:700}.icon-button{color:#fff;background:#ffffff14;border-radius:50%;width:2.75rem;padding:0;font-size:1.2rem}.message-list{scroll-behavior:smooth;background-color:#e9e6dc;background-image:radial-gradient(#18332d13 .75px,#0000 .75px);background-size:.8rem .8rem;flex:1;min-height:0;padding:1.2rem .9rem .7rem;overflow-y:auto}.message-row{margin-bottom:.75rem;display:flex}.message-row--user{justify-content:flex-end}.message-bubble{color:#2b3632;background:var(--cream);white-space:pre-wrap;border-radius:.35rem 1rem 1rem;max-width:min(82%,34rem);padding:.72rem .84rem;font-size:.9rem;line-height:1.55;box-shadow:0 1px 2px #18332d17}.message-row--user .message-bubble{background:var(--lime);border-radius:1rem .35rem 1rem 1rem}.typing{align-items:center;gap:.26rem;min-height:2.5rem;display:flex}.typing i{background:#78847f;border-radius:50%;width:.35rem;height:.35rem;animation:.9s ease-in-out infinite alternate typing}.typing i:nth-child(2){animation-delay:.16s}.typing i:nth-child(3){animation-delay:.32s}@keyframes typing{to{opacity:.3;translate:0 -.18rem}}.chat-error{color:#8a2f23;background:#fff0ed;border-radius:.65rem;width:100%;min-height:2.4rem;margin-bottom:.75rem;padding:.55rem;font-size:.76rem}.prompt-strip{scrollbar-width:none;background:#e9e6dc;flex:none;gap:.5rem;padding:.7rem .85rem .25rem;display:flex;overflow-x:auto}.prompt-strip::-webkit-scrollbar{display:none}.prompt-strip button{color:#40504a;background:#fffdf7db;border-radius:10rem;flex:none;min-height:2.4rem;padding:.55rem .7rem;font-size:.72rem;box-shadow:0 0 0 1px #18332d14}.composer{background:var(--cream);flex:none;align-items:flex-end;gap:.55rem;padding:.75rem .8rem .45rem;display:flex}.composer textarea{resize:none;width:100%;min-height:2.9rem;max-height:8rem;color:var(--ink);background:#f5f2e9;border:1px solid #18332d26;border-radius:.95rem;padding:.8rem .9rem;line-height:1.35}.send-button{color:#fff;background:var(--coral);border-radius:.9rem;flex:none;width:2.9rem;height:2.9rem;padding:0;font-size:1.35rem;font-weight:700}.chat-disclaimer{color:#88918d;background:var(--cream);text-align:center;flex:none;margin:0;padding:.05rem .8rem .55rem;font-size:.62rem}.demo-shell{background:var(--paper);min-height:100dvh}.demo-layout{width:min(100%,75rem);padding:2rem 1rem max(2rem, env(safe-area-inset-bottom));gap:2rem;margin:0 auto;display:grid}.demo-knowledge{order:2;overflow:hidden}.demo-filebar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:.75rem;padding:.6rem .8rem;display:flex}.demo-filebar>span{color:var(--muted);text-align:right;font-size:.72rem}.demo-markdown{color:#24322e;white-space:pre-wrap;background:#fffdf9;min-height:20rem;margin:0;padding:1.2rem;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.82rem;line-height:1.7;overflow:auto}.chat-panel--demo{height:min(41rem,100dvh - 8.5rem);min-height:34rem}.demo-layout>.chat-panel{order:1}.workspace-grid.mobile-view--knowledge .chat-panel,.workspace-grid.mobile-view--chat .knowledge-panel{display:none}@media (width>=768px){.brand--compact>span:last-child,.header-actions>span{display:block}.auth-story,.auth-form-wrap,.setup-grid,.demo-layout{padding-left:2.5rem;padding-right:2.5rem}.setup-grid{grid-template-columns:minmax(18rem,.72fr) minmax(26rem,1.28fr);align-items:start;padding-top:3.5rem}.setup-copy{position:sticky;top:2rem}.demo-layout{grid-template-columns:minmax(20rem,.9fr) minmax(25rem,1.1fr);align-items:center;min-height:calc(100dvh - 4.75rem)}.demo-knowledge{flex-direction:column;order:1;height:min(41rem,100dvh - 8.5rem);display:flex}.demo-markdown{flex:1;min-height:0}.demo-layout>.chat-panel{order:2}}@media (width>=1024px){.auth-shell{grid-template-columns:minmax(0,1.15fr) minmax(24rem,.85fr)}.auth-story{min-height:100dvh;padding:2rem clamp(2.5rem,5vw,5rem)}.auth-form-wrap{padding:3rem}.mobile-switch{display:none}.workspace-grid{grid-template-columns:minmax(0,1.08fr) minmax(22rem,.92fr);gap:1rem;padding:1rem;display:grid}.workspace-panel{height:calc(100dvh - 6.75rem)}.workspace-grid.mobile-view--knowledge .chat-panel,.workspace-grid.mobile-view--chat .knowledge-panel{display:flex}.mobile-try{display:none}}@media (width>=1440px){.workspace-grid{gap:1.25rem;padding:1.25rem}.workspace-panel{height:calc(100dvh - 7.25rem)}.panel-header{padding-left:1.35rem;padding-right:1.35rem}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
