:root{font-family:-apple-system,SF Pro Text,PingFang SC,Noto Sans SC,sans-serif;color:#202622;background:#f3f1eb;font-synthesis:none;--paper: #fbfaf6;--canvas: #f3f1eb;--ink: #202622;--muted: #777d77;--green: #173f35;--green-soft: #e4ece7;--line: #dddcd5;--coral: #d96645}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;height:100%}button,input,textarea{font:inherit}button{color:inherit}.app-shell{display:grid;grid-template-columns:280px 1fr;height:100dvh;overflow:hidden;background:var(--paper)}.sidebar{display:flex;flex-direction:column;gap:16px;padding:22px 16px 16px;background:var(--canvas);border-right:1px solid var(--line);min-width:0}.brand-row{display:flex;align-items:center;gap:11px;padding:0 6px 8px}.brand-row>div:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0}.brand-row strong{font-size:15px;letter-spacing:.02em}.brand-row span{color:var(--muted);font-size:12px}.avatar-mark,.message-avatar{display:grid;place-items:center;flex:0 0 auto;color:#f8f3e9;background:var(--green)}.avatar-mark{width:38px;height:38px;border-radius:13px 13px 13px 5px;font-weight:650}.new-chat{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:0;border-radius:12px;color:#fff;background:var(--green);cursor:pointer}.new-chat:hover{background:#225548}.thread-list{display:flex;flex-direction:column;gap:3px;overflow:auto}.thread-item,.sidebar-action{display:flex;align-items:center;gap:9px;width:100%;min-height:42px;padding:0 10px;border:0;border-radius:10px;background:transparent;text-align:left;cursor:pointer}.thread-item:hover,.sidebar-action:hover{background:#173f350f}.thread-item.active{background:#e4e8e2}.thread-dot{display:grid;place-items:center;width:22px;height:22px;color:var(--muted);font-size:12px;border:1px solid #d1d4ce;border-radius:7px}.thread-item.active .thread-dot{color:var(--green);border-color:#99aa9f;background:#f7faf7}.thread-title{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.sidebar-foot{display:flex;flex-direction:column;gap:2px;margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}.sidebar-action{color:#555d57;font-size:14px}.chat-pane{display:grid;grid-template-rows:64px minmax(0,1fr) auto;min-width:0;background:var(--paper)}.chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 22px;border-bottom:1px solid rgba(221,220,213,.75)}.chat-header>div:first-of-type{display:flex;flex-direction:column;align-items:center;gap:1px}.chat-header strong{font-size:15px;font-weight:600}.chat-header span{color:var(--muted);font-size:11px}.header-actions,.tool-buttons{display:flex;align-items:center;gap:4px}.icon-button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:10px;background:transparent;cursor:pointer}.icon-button:hover{background:#173f3512}.messages{overflow-y:auto;padding:42px max(24px,calc((100% - 760px)/2)) 28px;scroll-behavior:smooth}.messages.empty{display:grid;place-items:center}.welcome{max-width:620px;margin:-5vh auto 0;text-align:center}.welcome-mark{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 22px;color:var(--coral);border:1px solid #d7d6cf;border-radius:18px 18px 18px 7px;background:#fff;box-shadow:0 10px 28px #23302814}.eyebrow{color:var(--coral);font-size:12px;font-weight:650;letter-spacing:.08em;text-transform:uppercase}.welcome h1{margin:8px 0 14px;font-family:Songti SC,"Noto Serif SC",serif;font-size:clamp(30px,4vw,44px);font-weight:500;letter-spacing:-.02em}.welcome>p:last-of-type{max-width:520px;margin:0 auto;color:var(--muted);font-size:15px;line-height:1.75}.suggestions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:28px}.suggestions button{min-height:42px;padding:0 16px;border:1px solid var(--line);border-radius:22px;background:#fff;cursor:pointer}.suggestions button:hover{border-color:#9caaa1;transform:translateY(-1px)}.message{display:flex;gap:13px;margin:0 0 30px;line-height:1.75}.message.user{justify-content:flex-end}.message-avatar{width:30px;height:30px;margin-top:2px;border-radius:10px 10px 10px 4px;font-size:12px}.message-body{max-width:min(680px,88%);font-size:15px;overflow-wrap:anywhere}.message-body>:first-child{margin-top:0}.message-body>:last-child{margin-bottom:0}.message.user .message-body{padding:10px 15px;border-radius:17px 17px 5px;background:var(--green-soft)}.message-body pre{overflow:auto;padding:14px;border-radius:10px;color:#eee;background:#27312d}.message-body code{font-family:SFMono-Regular,Consolas,monospace;font-size:.9em}.message-error{color:#a9422b;font-size:13px}.composer-wrap{width:min(800px,calc(100% - 40px));margin:0 auto;padding:10px 0 max(10px,env(safe-area-inset-bottom))}.composer{padding:12px 12px 9px 16px;border:1px solid #d6d6ce;border-radius:19px;background:#fff;box-shadow:0 10px 35px #222d2614}.attachment-list{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 10px}.attachment-chip{display:inline-flex;align-items:center;gap:7px;max-width:260px;padding:7px 9px;border-radius:10px;background:var(--green-soft);color:var(--muted);font-size:13px}.attachment-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-chip button{display:grid;place-items:center;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.composer textarea{display:block;width:100%;min-height:28px;resize:none;border:0;outline:0;color:var(--ink);background:transparent;line-height:1.6}.composer textarea::placeholder{color:#9da19c}.composer-actions{display:flex;align-items:center;justify-content:space-between;margin-top:4px}.send-button{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:12px;color:#fff;background:var(--green);cursor:pointer}.send-button:disabled{color:#a9ada8;background:#ecece8}.send-button.stop{background:#5d625e}.composer-note{margin:7px 0 0;color:#949892;font-size:11px;text-align:center}.error-banner{position:fixed;left:50%;bottom:120px;z-index:10;display:flex;align-items:center;gap:12px;transform:translate(-50%);padding:10px 14px;border-radius:10px;color:#712818;background:#fee7df;font-size:13px;box-shadow:0 8px 24px #0002}.error-banner button{border:0;color:inherit;background:transparent;cursor:pointer;text-decoration:underline}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;justify-content:flex-end;background:#1a1f1c47;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.settings-sheet{display:flex;flex-direction:column;width:min(540px,100%);height:100%;background:var(--paper);box-shadow:-20px 0 60px #1f292333;animation:slide-in .22s ease-out}.settings-sheet>header{display:flex;align-items:center;justify-content:space-between;padding:28px 28px 20px;border-bottom:1px solid var(--line)}.settings-sheet h2{margin:5px 0 0;font-family:Songti SC,serif;font-size:28px;font-weight:500}.settings-scroll{overflow-y:auto;padding:8px 28px 50px}.settings-section{padding:24px 0;border-bottom:1px solid var(--line)}.settings-section h3{margin:0 0 16px;font-size:16px}.settings-section label{display:flex;flex-direction:column;gap:7px;margin:0 0 15px;color:#5d625e;font-size:13px}.settings-section input,.settings-section textarea{width:100%;padding:11px 12px;border:1px solid #d4d5ce;border-radius:10px;outline:0;color:var(--ink);background:#fff;line-height:1.6}.settings-section input:focus,.settings-section textarea:focus{border-color:#799188;box-shadow:0 0 0 3px #dfe9e3}.primary-action{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 17px;border:0;border-radius:10px;color:#fff;background:var(--green);cursor:pointer}.section-heading{display:flex;justify-content:space-between;gap:12px}.section-heading h3{margin-bottom:4px}.section-heading p,.empty-copy{margin:0;color:var(--muted);font-size:13px}.section-heading>span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;color:var(--green);background:var(--green-soft);font-size:13px}.memory-add{display:grid;grid-template-columns:1fr 42px;gap:7px;margin:18px 0 12px}.memory-add button{display:grid;place-items:center;border:0;border-radius:10px;color:#fff;background:var(--green);cursor:pointer}.memory-list{display:flex;flex-direction:column;gap:7px}.memory-row{display:flex;align-items:center;gap:8px;padding:10px 6px 10px 12px;border:1px solid #e0e0da;border-radius:11px;background:#fff}.memory-row p{flex:1;margin:0;font-size:14px;line-height:1.6}.icon-button.danger{color:#a9422b}.admin-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.admin-metrics>div{display:flex;flex-direction:column;gap:3px;padding:12px;border-radius:12px;background:var(--canvas)}.admin-metrics strong{font-size:16px}.admin-metrics span,.account-row span{color:var(--muted);font-size:12px}.account-list{display:flex;flex-direction:column;gap:7px}.account-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid var(--line);border-radius:12px}.account-row>div{display:flex;flex-direction:column;gap:3px;min-width:0}.account-row span{overflow:hidden;text-overflow:ellipsis}.account-row button{padding:6px 10px;border:0;border-radius:8px;color:var(--coral);background:#f8eee9;cursor:pointer}.account-row button:disabled{color:var(--muted);background:var(--canvas);cursor:default}.splash{display:grid;place-content:center;height:100dvh;gap:14px;background:var(--canvas);text-align:center}.splash p{color:var(--muted)}.pulse-logo{display:grid;place-items:center;width:58px;height:58px;margin:auto;border-radius:18px 18px 18px 6px;color:#fff;background:var(--green);animation:pulse 1.8s infinite}.mobile-only,.sidebar-scrim{display:none}@keyframes slide-in{0%{transform:translate(30px);opacity:.7}}@keyframes pulse{50%{transform:scale(.95);opacity:.82}}@media(max-width:760px){.app-shell{display:block}.mobile-only{display:grid}.sidebar{position:fixed;inset:0 auto 0 0;z-index:30;width:min(86vw,320px);transform:translate(-102%);transition:transform .2s ease;box-shadow:15px 0 40px #0002}.sidebar.open{transform:translate(0)}.brand-row .mobile-only{margin-left:auto}.sidebar-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:25;display:block;border:0;background:#18211c66}.chat-pane{height:100dvh}.chat-header{padding:0 12px}.messages{padding:28px 16px 20px}.composer-wrap{width:calc(100% - 20px)}.welcome{margin-top:-2vh}.suggestions{flex-direction:column}.message-body{max-width:86%}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}.login-screen{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);min-height:100dvh;background:var(--paper)}.login-story{display:flex;flex-direction:column;justify-content:space-between;min-height:100dvh;padding:42px clamp(34px,6vw,90px);color:#f4f0e6;background:var(--green)}.login-brand{display:flex;align-items:center;gap:11px}.login-brand .avatar-mark{color:var(--green);background:#f4f0e6}.login-brand strong{letter-spacing:.04em}.login-copy{max-width:650px;padding:9vh 0}.login-copy .eyebrow{color:#e9a28d}.login-copy h1{margin:14px 0 24px;font-family:Songti SC,"Noto Serif SC",serif;font-size:clamp(52px,7vw,92px);font-weight:400;line-height:1.08;letter-spacing:-.05em}.login-copy p{max-width:520px;color:#d6dfda;font-size:16px;line-height:1.9}.login-capabilities{display:flex;flex-wrap:wrap;gap:24px;color:#d7dfda;font-size:13px}.login-capabilities span{display:flex;align-items:center;gap:8px}.login-action{display:grid;place-items:center;padding:42px}.login-action>div{width:min(360px,100%)}.login-action h2{margin:10px 0;font-family:Songti SC,serif;font-size:38px;font-weight:500}.login-action p{color:var(--muted);line-height:1.7}.login-action button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px;margin:28px 0 14px;padding:0 18px;border:0;border-radius:12px;color:#fff;background:var(--green);cursor:pointer}.login-action small{display:block;color:#969a95;font-size:11px;line-height:1.6}.login-action .login-error{color:#a9422b}@media(max-width:760px){.login-screen{grid-template-columns:1fr}.login-story{min-height:48dvh;padding:26px 24px}.login-copy{padding:7vh 0 3vh}.login-copy h1{font-size:44px}.login-capabilities{display:none}.login-action{padding:44px 24px}}
