:root{--bg:#f7f7f2;--surface:#fff;--sidebar:#eeefe7;--ink:#253b38;--muted:#7d8780;--muted-dark:#616e66;--line:#e5e8df;--green:#24574e;--green-hover:#19473e;--green-soft:#e6eee6;--peach:#f4e4d5;--radius:16px;--font:"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.6}button,input,textarea{font:inherit}button{cursor:pointer}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button{border:0;background:transparent;color:inherit}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:3px solid #91b5a9;outline-offset:4px}input:focus,textarea:focus{outline:none}input:focus-visible{border-color:#7d9c8c!important;box-shadow:0 0 0 3px #e4eee7}textarea{resize:none}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}.mobile-only{display:none!important}
.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--sidebar);border-right:1px solid #e3e6dc;padding:31px 18px 16px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:11px;padding:0 10px;font-size:20px;letter-spacing:1px;font-weight:650;line-height:1.35}.brand-symbol{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:var(--green);color:#fff}.brand-symbol svg{width:28px;height:28px;stroke-width:1.3}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:2px;color:var(--muted);margin-top:5px}.new-chat{display:flex;align-items:center;gap:10px;margin-top:34px;background:var(--green);color:white;padding:12px 13px;border-radius:10px;text-align:left;box-shadow:0 3px 7px #24574e0a;font-size:13px;transition:background .15s}.new-chat:hover{background:var(--green-hover)}.new-chat svg{width:18px}.keyhint{margin-left:auto;color:#c3d5cc;font-size:16px;font-weight:300}.primary-nav{display:grid;gap:5px;margin-top:21px}.nav-item{position:relative;display:flex;align-items:center;gap:12px;border-radius:9px;text-align:left;color:#69766c;padding:10px 13px;font-size:13px}.nav-item:hover{background:#e4e8de}.nav-item.active{background:#dde5d9;color:var(--green);font-weight:600}.nav-item svg{width:18px;height:18px}.nav-dot{display:none;margin-left:auto;width:5px;height:5px;border-radius:50%;background:var(--green)}.nav-item.active .nav-dot{display:block}.nav-count{margin-left:auto;background:#dce5d9;font-size:10px;line-height:17px;min-width:17px;text-align:center;border-radius:5px}.sidebar-section-head{display:flex;justify-content:space-between;font-size:11px;color:#8b958c;margin:34px 13px 10px}.quiet-label{font-size:9px;letter-spacing:.5px;color:#9ea69a}.conversation-list{flex:1;min-height:0;overflow-y:auto}.sidebar-empty{font-size:11px;line-height:1.9;color:#9aa293;margin:13px}.conversation-item{display:block;width:100%;padding:10px 13px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#6d786d;border-radius:8px}.conversation-item:hover{background:#e3e8dd}.conversation-item.active{background:#f9faf5;color:var(--green)}.sidebar-bottom{margin-top:auto;padding-top:20px}.local-note{display:flex;align-items:center;gap:7px;font-size:10px;color:#8b9587;padding:0 13px 15px}.status-dot{width:6px;height:6px;background:#a0aa9a;display:inline-block;border-radius:50%;flex-shrink:0}.status-dot.connected{background:#618d69}.profile-button{display:flex;align-items:center;gap:9px;border-top:1px solid #dce1d4;width:100%;padding:17px 10px 2px;text-align:left}.profile-avatar{width:32px;height:32px;border:1px solid #d0d8c9;display:grid;place-items:center;border-radius:50%;font-size:12px;background:#e3e8dc;color:#697d62}.profile-text{font-size:12px;line-height:1.4;flex:1;overflow:hidden}.profile-text small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:#929d8c;margin-top:3px}.profile-button>svg{width:17px;color:#7a8979}
.workspace{margin-left:238px;margin-right:284px;height:100dvh;display:flex;flex-direction:column}.topbar{height:76px;min-height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid #e7e9e1;background:#f7f7f2e8;gap:12px}.topbar-left{display:flex;align-items:center;gap:12px}.breadcrumb{display:flex;align-items:center;gap:15px;font-size:11px;white-space:nowrap}.breadcrumb>span:first-child{color:#949c91}.breadcrumb-slash{color:#c2c8bc;font-size:13px}.breadcrumb strong{font-weight:500;color:#57695e}.topbar-actions{display:flex;align-items:center;gap:15px}.model-pill{display:flex;align-items:center;gap:8px;font-size:11px;border:1px solid #e0e5d9;border-radius:20px;padding:6px 9px 6px 11px;background:#fcfcf8;max-width:210px}.model-pill span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-pill>svg{width:12px;height:12px;color:#9aa491}.icon-button{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;color:#7c897d}.icon-button:hover{background:#e9eee4}.icon-button>svg{width:18px;height:18px}.topbar #activity-toggle{display:none}.main-area{flex:1;min-height:0}.view{height:100%}.chat-view{display:flex;flex-direction:column}.chat-scroll{flex:1;overflow:auto;scroll-behavior:smooth}.welcome{max-width:760px;margin:0 auto;padding:73px 42px 38px}.welcome-eyebrow{font-size:11px;color:#82907c;letter-spacing:2px;display:flex;align-items:center;gap:7px;margin-bottom:19px}.welcome-eyebrow>span{height:1px;width:20px;background:#97a78e}.welcome h1{font-size:42px;line-height:1.42;letter-spacing:2px;margin:0;font-weight:500;color:#304a40}.welcome h1 em{font-style:normal;color:#70916f}.welcome-description{color:#8a9486;line-height:2;font-size:12px;margin:17px 0 31px;letter-spacing:.3px}.suggestion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.suggestion{position:relative;border:1px solid #e1e5d9;border-radius:12px;background:#fafbf6;text-align:left;padding:17px 17px 15px;min-height:120px;transition:transform .17s,border-color .17s,background .17s}.suggestion:hover{transform:translateY(-2px);border-color:#b9cbbb;background:#fff}.suggestion-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;margin-bottom:10px}.suggestion-icon svg{width:16px;height:16px}.sage{background:#e4eddf;color:#72906a}.peach{background:#f1e2d7;color:#af8f72}.lavender{background:#e6e4ef;color:#8f89a5}.sand{background:#ede8d6;color:#a59a6c}.suggestion strong{display:block;font-size:12px;font-weight:500;color:#53664f}.suggestion>span:not(.suggestion-icon){display:block;font-size:10px;color:#969f8d;margin-top:3px;padding-right:7px}.suggestion-arrow{position:absolute;right:15px;bottom:19px;width:13px;height:13px;color:#adb6a4}.capability-note{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:22px;font-size:10px;letter-spacing:.3px;color:#9ca591}.small-dot{width:3px;height:3px;background:#a8b49b;border-radius:50%}.composer-dock{padding:11px 36px 17px;max-width:850px;width:100%;margin:0 auto}.connection-notice{display:flex;align-items:center;gap:7px;font-size:10px;color:#809077;margin:0 4px 10px;flex-wrap:wrap}.connection-notice>svg{width:13px;height:13px}.connection-notice>button{margin-left:auto;color:var(--green);font-size:10px;padding:0}.connection-notice>button span{padding-left:3px}.composer{border:1px solid #dce3d4;border-radius:15px;background:#fff;box-shadow:0 4px 15px #344e2c04;padding:15px 15px 11px;transition:border-color .2s}.composer:focus-within{border-color:#9caf9a;box-shadow:0 4px 20px #37542c06}.composer textarea{display:block;width:100%;max-height:180px;min-height:30px;padding:0 2px;border:0;font-size:12px;line-height:1.8;background:transparent;color:var(--ink)}.composer textarea::placeholder{color:#a4ac9d}.composer textarea:disabled{opacity:.65}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.composer-hint{display:flex;align-items:center;gap:5px;font-size:9px;color:#a1aa97}.composer-hint svg{width:12px;height:12px}.send-button{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:var(--green);color:white;flex-shrink:0}.send-button:hover:not(:disabled){background:var(--green-hover)}.send-button:disabled{background:#e4e9dd;color:#b2bfa6}.send-button svg{width:18px;height:18px}.composer-footnote{display:flex;justify-content:space-between;color:#a6aea0;font-size:9px;margin:10px 4px 0}.message-list{max-width:810px;margin:0 auto;padding:32px 36px 25px;display:flex;flex-direction:column;gap:25px}.message-list:empty{display:none}.message{display:flex;align-items:flex-start;gap:11px}.message-avatar{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;flex-shrink:0;background:#e2eade;color:#527049;font-size:11px;margin-top:2px}.message-avatar svg{width:17px;height:17px}.message.user{flex-direction:row-reverse}.message.user .message-avatar{background:#eee9dc;color:#9c8e6b}.message-body{max-width:calc(100% - 40px);min-width:0}.message-label{font-size:10px;color:#929c8b;margin-bottom:6px;display:flex;align-items:center;gap:7px}.message.user .message-label{justify-content:flex-end}.message-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:13px;color:#4b5c48}.message.user .message-content{background:#eaf0e4;padding:12px 16px;border-radius:13px 3px 13px 13px;color:#3e5739}.message.error .message-content{background:#fff0e9;color:#a26046;padding:11px 14px;border-radius:10px;border:1px solid #f4dacc}.message-tools{margin-top:9px;color:#869480;font-size:10px}.working-indicator{display:flex;align-items:center;gap:7px;color:#869480;font-size:12px;padding:8px 0}.working-indicator i{height:5px;width:5px;border-radius:50%;background:#a1b395;animation:breathe 1.4s infinite}.working-indicator i:nth-child(2){animation-delay:.2s}.working-indicator i:nth-child(3){animation-delay:.4s}@keyframes breathe{0%,70%,100%{opacity:.35}35%{opacity:1}}
.activity-panel{position:fixed;right:0;top:0;bottom:0;width:284px;background:#f1f3eb;border-left:1px solid #e2e6d9;padding:31px 22px 20px;display:flex;flex-direction:column;z-index:20}.activity-heading{display:flex;justify-content:space-between;align-items:flex-start}.page-eyebrow{font-size:9px;letter-spacing:1.6px;color:#a0aa96}.activity-heading h2{font-size:16px;font-weight:500;margin:5px 0 0;letter-spacing:.5px;color:#52674d}.activity-heading .icon-button{display:none}.activity-context{margin-top:30px;padding:11px 12px;background:#e9ede1;border-radius:8px;color:#8b9a80;display:flex;align-items:center;gap:7px;font-size:10px}.activity-context>.status-dot{background:#a9b89a}.activity-list{flex:1;min-height:0;overflow:auto;margin-top:19px}.activity-empty{text-align:center;padding:64px 7px 10px;color:#a1ac96}.activity-orbit{width:57px;height:57px;display:grid;place-items:center;border:1px solid #dce3d3;border-radius:50%;margin:0 auto 18px;background:#edf1e6}.activity-orbit svg{width:22px;height:22px;color:#9baa8f}.activity-empty h3{font-size:12px;font-weight:500;color:#8c9b80;margin:0 0 7px}.activity-empty p{font-size:10px;color:#a5af9a;line-height:1.9;margin:0}.activity-footer{border-top:1px solid #dde4d3;padding-top:15px;display:flex;align-items:center;gap:7px;font-size:9px;color:#a0ac94}.activity-footer svg{width:12px;height:12px}.activity-item{position:relative;padding:0 0 20px 23px;font-size:11px;border-left:1px solid #dce4d2;margin-left:7px}.activity-item:last-child{border-left-color:transparent}.activity-item:before{content:"";position:absolute;left:-4px;top:6px;width:7px;height:7px;background:#a1b68d;border:2px solid #f1f3eb;border-radius:50%}.activity-item.failed:before{background:#bd8064}.activity-item h3{font-size:11px;font-weight:500;margin:0;color:#5c7151}.activity-item time{display:block;font-size:9px;color:#a0ac94;margin-top:3px}.activity-item p{font-size:10px;line-height:1.8;color:#8a9980;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0}.activity-item details{margin-top:7px}.activity-item summary{color:#78906d;font-size:10px;cursor:pointer}.activity-item pre{font-family:var(--font);font-size:10px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;background:#e8eddf;padding:8px;border-radius:6px;color:#6c805e}
.collection-view{overflow-y:auto;padding:46px 40px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:32px}.page-heading h1{font-size:30px;font-weight:500;letter-spacing:1px;margin:5px 0 8px;color:#38553b}.page-heading p{font-size:12px;color:#8a9781;margin:0}.secondary-button{display:flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;font-size:11px;padding:8px 12px;border:1px solid #dce4d4;background:#fafbf7;border-radius:8px;color:#73876a}.secondary-button:hover{background:#eef3e8}.secondary-button svg{width:14px;height:14px}.record-list,.memory-list{display:grid;gap:12px}.record-card,.memory-card{padding:17px 19px;background:#fff;border:1px solid #e1e7d9;border-radius:12px}.record-head,.memory-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.record-card h3{font-size:13px;font-weight:500;margin:0;color:#52694a;overflow-wrap:anywhere}.record-card time,.memory-card time{color:#a0ab95;font-size:10px;display:block;margin-top:8px}.record-card p,.memory-card p{font-size:12px;color:#809175;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0;line-height:1.9}.record-card details{margin-top:12px}.record-card summary{font-size:11px;color:#7d916e;cursor:pointer}.record-card pre{font-family:var(--font);white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f8f0;padding:12px;border-radius:8px;color:#76896a;font-size:11px;line-height:1.8}.status-badge{font-size:9px;white-space:nowrap;border-radius:5px;padding:2px 6px;background:#e9f0e2;color:#7b9667}.status-badge.failed{background:#f8e9df;color:#b48d71}.status-badge.running{background:#e6eaf2;color:#8795ab}.empty-state{text-align:center;padding:65px 20px;color:#96a28a}.empty-icon{width:58px;height:58px;display:grid;place-items:center;background:#eef2e7;border-radius:17px;margin:0 auto 18px;color:#a0b190}.empty-icon svg{width:25px;height:25px}.empty-state h2{font-size:16px;font-weight:500;color:#829577;margin:0 0 9px}.empty-state p{font-size:12px;line-height:1.9}.text-button{font-size:12px;color:var(--green);padding:8px 0}.text-button span{padding-left:4px}.empty-state .text-button{margin-top:10px}.memory-form{background:#edf2e7;border:1px solid #e0e7d8;border-radius:13px;padding:18px;margin-bottom:24px}.memory-form label{font-size:12px;color:#6b835d}.memory-input-row{display:flex;align-items:flex-end;gap:12px;margin-top:10px}.memory-form textarea{flex:1;min-width:0;background:#fff;border:1px solid #e0e7d7;border-radius:9px;padding:10px 12px;font-size:12px;line-height:1.8;color:#536a46}.memory-form textarea::placeholder{color:#a6b29a}.memory-form p{color:#a0ae93;font-size:10px;margin:8px 0 0}.primary-button{display:flex;align-items:center;justify-content:center;gap:7px;border-radius:9px;padding:10px 15px;background:var(--green);color:#fff;font-size:12px;white-space:nowrap}.primary-button:hover{background:var(--green-hover)}.primary-button:disabled{opacity:.55}.primary-button svg{width:15px;height:15px}.memory-card .memory-head p{margin:0}.memory-card .icon-button{width:28px;height:28px;flex-shrink:0;color:#a4ad9a}.memory-card .icon-button:hover{background:#faece5;color:#b77e60}.list-error{padding:18px;background:#fff0e8;border-radius:10px;font-size:12px;color:#ac7458;white-space:pre-wrap;overflow-wrap:anywhere}
.settings-dialog{width:480px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 40px);border:1px solid #e4e9dd;border-radius:22px;padding:29px 32px 25px;background:#fcfdf8;box-shadow:0 24px 100px #263f2430;color:var(--ink);overflow:auto}.settings-dialog::backdrop{background:#21382c4d;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.dialog-icon{display:grid;place-items:center;width:42px;height:42px;background:#e5eee0;border-radius:12px;color:#6a875a}.dialog-icon svg{width:23px;height:23px}.settings-dialog h2{font-size:24px;letter-spacing:.5px;font-weight:500;margin:7px 0 12px;color:#3c593b}.dialog-description{font-size:12px;line-height:1.9;color:#91a083;margin:0 0 24px}.field-label{font-size:12px;display:block;margin:16px 0 7px;color:#687d5c}.field-label>span{font-size:10px;color:#a6b29a;padding-left:7px}.settings-dialog input:not([type=checkbox]){width:100%;border:1px solid #dfe7d5;border-radius:8px;padding:10px 12px;background:white;color:#526747;font-size:12px}.settings-dialog input::placeholder{color:#b0bba5;font-size:11px}.field-help{font-size:10px;color:#a3af96;margin:6px 0}.password-field{position:relative}.password-field input{padding-right:53px!important}.password-field>button{position:absolute;right:12px;top:9px;font-size:10px;color:#92a17e}.switch-row{position:relative;display:flex;align-items:center;gap:10px;padding:20px 0;margin-top:7px}.switch-row>span:first-child{flex:1}.switch-row strong{display:block;font-size:12px;font-weight:500;color:#6a805e}.switch-row small{display:block;font-size:10px;color:#a1b092;margin-top:3px}.switch-row input{position:absolute;opacity:0;right:0;width:36px;height:22px}.switch-track{width:35px;height:20px;background:#d6dfcd;border-radius:12px;position:relative;transition:background .2s;flex-shrink:0;cursor:pointer}.switch-track:before{content:"";width:14px;height:14px;position:absolute;left:3px;top:3px;background:white;border-radius:50%;transition:transform .2s}.switch-row input:checked+.switch-track{background:var(--green)}.switch-row input:checked+.switch-track:before{transform:translateX(15px)}.switch-row input:focus-visible+.switch-track{outline:3px solid #b1c49f;outline-offset:3px}.privacy-note{display:flex;align-items:flex-start;gap:8px;background:#edf3e6;border-radius:8px;padding:11px 12px;color:#9aa98c}.privacy-note svg{width:13px;height:13px;margin-top:2px}.privacy-note p{margin:0;font-size:10px;line-height:1.8}.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:15px;margin-top:23px}.dialog-actions .danger{margin-right:auto;color:#a58972;font-size:11px}.form-error{color:#b16e50;font-size:11px;white-space:pre-wrap}.toast{position:fixed;bottom:27px;left:50%;transform:translateX(-50%);padding:11px 20px;max-width:calc(100vw - 40px);border-radius:11px;background:#2c5144;color:#fff;font-size:12px;box-shadow:0 5px 20px #21382c20;z-index:100;line-height:1.6;text-align:center}.scrim{position:fixed;inset:0;background:#293e314a;backdrop-filter:blur(2px);z-index:29}
@media(min-width:1600px){.welcome{padding-top:110px}.welcome h1{font-size:48px}.welcome-description{font-size:13px}.suggestion{padding:20px;min-height:135px}.suggestion strong{font-size:13px}.suggestion>span:not(.suggestion-icon){font-size:11px}.activity-panel{width:310px;padding-left:28px;padding-right:28px}.workspace{margin-right:310px}}
@media(max-width:1250px){.sidebar{width:212px;padding-left:14px;padding-right:14px}.workspace{margin-left:212px;margin-right:0}.activity-panel{transform:translateX(100%);transition:transform .2s;z-index:35;width:300px;box-shadow:-15px 0 55px #29402e10}.activity-panel.open{transform:translateX(0)}.activity-heading .icon-button{display:grid}.topbar #activity-toggle{display:grid}.welcome{max-width:720px}.activity-scrim{z-index:34}}
@media(max-width:760px){.sidebar{width:248px;transform:translateX(-100%);transition:transform .2s;box-shadow:15px 0 55px #29402e10}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0}.mobile-only{display:grid!important}.topbar{height:64px;min-height:64px;padding:0 18px}.topbar-left{gap:9px}.breadcrumb{gap:10px;font-size:11px}.breadcrumb>span:first-child,.breadcrumb-slash{display:none}.breadcrumb strong{font-size:14px;font-weight:500}.topbar-actions{gap:7px}.model-pill{font-size:10px;max-width:180px}.welcome{padding:38px 25px 22px;max-width:610px}.welcome-eyebrow{font-size:10px;letter-spacing:1.5px;margin-bottom:14px}.welcome h1{font-size:35px;line-height:1.4;letter-spacing:1px}.welcome-description{font-size:11px;margin:15px 0 25px;line-height:1.9}.suggestion-grid{gap:10px}.suggestion{padding:14px 13px;min-height:116px}.suggestion strong{font-size:11px}.suggestion>span:not(.suggestion-icon){font-size:9px;max-width:calc(100% - 2px)}.suggestion-arrow{right:10px;bottom:17px;width:11px;height:11px}.suggestion-icon{width:26px;height:26px;margin-bottom:10px}.capability-note{font-size:9px;margin-top:19px}.composer-dock{padding:10px 16px 13px}.connection-notice{font-size:9px;gap:5px;margin-bottom:8px}.connection-notice>button{font-size:9px}.composer{padding:12px 13px 10px;border-radius:13px}.composer textarea{font-size:13px}.composer-hint{font-size:8px}.composer-footnote{justify-content:center;font-size:8px;margin-top:8px}.desktop-only{display:none!important}.message-list{padding:27px 19px 25px;gap:23px}.message{gap:9px}.message-content{font-size:13px;line-height:1.85}.message-body{max-width:calc(100% - 38px)}.message-avatar{width:27px;height:27px}.message.user .message-content{padding:10px 13px}.activity-panel{width:min(320px,90vw);padding:26px 23px 18px}.collection-view{padding:31px 21px}.page-heading{margin-bottom:24px;gap:10px}.page-heading h1{font-size:27px}.page-heading p{font-size:11px;max-width:230px}.page-eyebrow{font-size:8px}.secondary-button{font-size:10px;padding:7px 9px}.memory-input-row{gap:8px}.memory-form{padding:15px}.memory-form textarea{font-size:11px}.memory-form .primary-button{padding:9px 11px;font-size:11px}.memory-form .primary-button svg{display:none}.settings-dialog{padding:23px 23px 21px;border-radius:18px}.settings-dialog h2{font-size:22px}.dialog-description{font-size:11px}.settings-dialog input:not([type=checkbox]){font-size:16px;padding:9px 11px}.dialog-heading{margin-bottom:15px}.switch-row small{font-size:9px;max-width:250px}.privacy-note p{font-size:9px}}
@media(max-width:370px){.welcome{padding:29px 19px 18px}.welcome h1{font-size:31px}.suggestion{padding:12px 10px}.suggestion-arrow{display:none}.suggestion>span:not(.suggestion-icon){font-size:8px}.connection-notice>svg{display:none}.composer-hint{font-size:8px}.model-pill{max-width:145px}.topbar{padding:0 13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.settings-status{font-size:10px;color:#839877;margin:11px 0 0}.settings-status.verified{color:#46754a}.connection-notice.warning{color:#a88967}.connection-notice.warning button{color:#8d704e}.task-id{font-size:9px;color:#a9b39f;margin-top:7px}.loading-note{font-size:12px;color:#9aa88e;padding:25px 5px}.activity-actions{padding-top:12px}.task-open{font-size:10px;color:var(--green);padding:8px 0 0}.form-busy{opacity:.7;pointer-events:none}
.record-actions{display:flex;gap:20px;align-items:center}

/* Phase 5 workflow checkpoints and human approval. */
.workflow-panel{display:grid;gap:12px;margin:0 0 18px;padding:13px;background:#fafcf7;border:1px solid #dfe8d9;border-radius:12px;color:#6d8164}
.workflow-actions,.approval-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.workflow-actions .secondary-button,.workflow-actions .primary-button,.approval-actions .secondary-button,.approval-actions .primary-button{font-size:10px;padding:7px 10px}
.workflow-actions .danger{font-size:10px;padding:7px 2px}
.workflow-note{margin:0;font-size:10px;line-height:1.7;color:#87987e}
.workflow-plan-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e4eadf;padding-top:10px}
.workflow-plan-heading h3{font-size:11px;font-weight:600;margin:0;color:#617658}.workflow-plan-heading span{font-size:9px;color:#9aa893}
.workflow-plan{display:grid;gap:7px;list-style:none;padding:0;margin:0}
.plan-step{display:flex;align-items:center;gap:8px;min-width:0}.plan-marker{width:19px;height:19px;display:grid;place-items:center;flex:0 0 19px;border-radius:50%;border:1px solid #d4dfcf;color:#8b9d82;font-size:9px;background:#f6f9f2}.plan-step-copy{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0;flex:1}.plan-step-copy strong{font-size:10px;font-weight:500;color:#687c5d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plan-step-copy span{font-size:8px;color:#a2ae98;white-space:nowrap}.plan-running .plan-marker{background:#dfeade;border-color:#9ab69a;color:#4f795c}.plan-completed .plan-marker,.plan-done .plan-marker{background:#dcebdd;border-color:#90b294;color:#46734f}.plan-failed .plan-marker{background:#fae9df;border-color:#dfab90;color:#ae684a}.plan-awaiting_approval .plan-marker,.plan-paused .plan-marker{background:#f5ead8;border-color:#d6b688;color:#9a7547}
.approval-card{display:grid;gap:7px;border:1px solid #e2c9a6;background:#fff9ed;border-radius:10px;padding:12px}.approval-eyebrow{font-size:9px;letter-spacing:1px;color:#ad8451}.approval-card h3{font-size:12px;font-weight:600;color:#795e3c;margin:0}.approval-summary,.approval-target,.approval-warning{font-size:10px;line-height:1.7;margin:0;color:#8d765b;white-space:pre-wrap;overflow-wrap:anywhere}.approval-target{color:#7b6a55}.approval-warning{font-size:9px;color:#a18d75}.approval-preview,.approval-arguments{margin-top:2px}.approval-preview summary,.approval-arguments summary{font-size:9px;color:#9b784e;cursor:pointer}.approval-card pre{font-family:var(--font);font-size:9px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;max-height:190px;overflow:auto;padding:8px;background:#fffdf8;border:1px solid #efe1cc;border-radius:6px;color:#796a55}.approval-actions{justify-content:flex-end;padding-top:3px}.approval-actions .primary-button{background:#9a6e3d}.approval-actions .primary-button:hover{background:#80572e}
.run-attention{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;margin:0 4px 9px;border:1px solid #e2c9a6;background:#fff9ed;border-radius:10px;color:#856743}.run-attention strong{display:block;font-size:10px;font-weight:600}.run-attention p{font-size:9px;color:#a18a6c;margin:2px 0 0;line-height:1.6}.run-attention .secondary-button{font-size:9px;padding:7px 9px;border-color:#e5cda9;color:#8d6840;background:#fffdf9}.run-attention .secondary-button:hover{background:#f8edda}
.activity-scroll{flex:1;min-height:0;overflow:auto}.activity-scroll>.activity-list{overflow:visible;min-height:auto}.activity-scroll>.workflow-panel{margin-top:19px}.activity-scroll>.activity-list{margin-top:0}
.status-badge.waiting{background:#f5ead9;color:#a17b4d}
.approval-preview-label{font-size:9px;line-height:1.6;color:#9b805d;margin:8px 0 3px}
@media(max-width:760px){.run-attention{align-items:flex-start;padding:9px 10px}.run-attention .secondary-button{flex-shrink:0}.plan-step-copy span{font-size:8px}.approval-card{padding:11px}.workflow-panel{padding:11px}}

/* Permission-aware files and credential controls. */
.settings-dialog select{font:inherit;width:100%;padding:11px 12px;border:1px solid #dce5d1;border-radius:8px;background:#fff;color:#536f46;font-size:12px}
.settings-dialog .plain-check{display:flex;gap:9px;align-items:flex-start;font-size:11px;color:#6e7e64;margin:13px 0}
.settings-dialog .plain-check input{width:15px;height:15px;margin:2px 0 0;accent-color:var(--green);flex-shrink:0}
.settings-dialog select:focus-visible,.file-dialog textarea:focus-visible{outline:2px solid #8cae9d;outline-offset:2px}
.model-preferences{padding:16px;border:1px solid #d6e2cd;background:#f1f6eb;border-radius:12px;margin:20px 0}.model-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.model-section-heading h3{font-size:13px;font-weight:600;margin:0;color:#526f45}.model-section-heading .text-button{font-size:11px;padding:5px 0}.model-selection-actions{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-top:16px}.model-selection-actions .field-help{flex:1;line-height:1.8}.model-selection-actions .primary-button{font-size:11px;flex:none}.model-preferences .field-help{color:#718265;line-height:1.8}.connection-settings{border-top:1px solid #e0e7d8;padding-top:16px;margin-top:20px}.connection-settings>summary{cursor:pointer;font-size:12px;color:#5d7950;padding:3px 0 8px}.connection-settings>.field-help{line-height:1.9}.image-launch{display:flex;align-items:center;gap:6px;font-size:11px;color:#567448;padding:9px 10px;border:1px solid #dce5d1;border-radius:8px;background:#eef4e6;flex:none}.image-launch svg{width:16px;height:16px}.images-dialog{width:680px}.images-dialog textarea{width:100%;resize:vertical;min-height:110px;max-height:280px;box-sizing:border-box;border:1px solid #dfe7d5;border-radius:9px;padding:12px;background:#fff;color:#526747;font:13px/1.8 var(--font)}.images-dialog textarea:focus-visible{outline:2px solid #8cae9d;outline-offset:2px}.image-options{display:grid;grid-template-columns:1.1fr 1fr;gap:15px;min-width:0}.image-options>div{min-width:0}.image-options select{max-width:100%;text-overflow:ellipsis}.image-submit-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:17px 0 0}.image-submit-row .field-help{flex:1;font-size:11px;line-height:1.9}.image-submit-row .primary-button{flex:none}.image-history{margin-top:25px;border-top:1px solid #dfe7d7;padding-top:20px}.image-history-list{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:14px}.image-card{min-width:0;border:1px solid #dfe7d7;border-radius:11px;padding:14px;background:#f7faf3}.image-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.image-card-heading strong{font-size:11px;font-weight:500;color:#526e45;overflow-wrap:anywhere}.image-card-heading .status-badge{flex:none}.image-card-prompt{font-size:11px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:#687e5b;margin:10px 0 6px;max-height:118px;overflow:auto}.image-card-meta{font-size:9px;color:#94a184;margin:5px 0 12px}.image-preview{display:block;overflow:hidden;border-radius:7px;background:#e9efdf;border:1px solid #dce5d3}.image-preview img{display:block;width:100%;max-height:340px;object-fit:contain}.image-card-error{font-size:11px;line-height:1.8;color:#ab7251;white-space:pre-wrap;overflow-wrap:anywhere}.image-card-actions{display:flex;align-items:center;gap:15px;margin-top:12px;flex-wrap:wrap}.image-card-actions:empty{display:none}.image-card-actions .text-button{font-size:11px;padding:5px 0}.image-card-actions .danger{color:#a57454}.image-card-actions .secondary-button{font-size:10px}.images-dialog .field-help{line-height:1.85;color:#7e9071}
@media(max-width:760px){.image-launch{min-width:37px;min-height:40px;padding:8px;justify-content:center}.image-launch>span{display:none}.topbar .model-pill{max-width:136px}.model-selection-actions{align-items:flex-start;flex-direction:column;gap:10px}.model-selection-actions .primary-button{width:100%;min-height:42px}.model-preferences{padding:14px}.settings-dialog select{font-size:16px;min-height:43px}.images-dialog textarea{font-size:16px}.image-options{grid-template-columns:1fr;gap:0}.image-history-list{grid-template-columns:1fr}.image-submit-row{align-items:flex-start;flex-direction:column;gap:10px}.image-submit-row .primary-button{width:100%;min-height:44px}.image-card{padding:15px}.image-card-heading strong{font-size:12px}.image-card-prompt{font-size:12px}.image-card-meta{font-size:10px}.image-card-actions .secondary-button,.image-card-actions .text-button{min-height:40px;font-size:12px}.connection-settings .dialog-actions{flex-wrap:wrap;gap:12px}.connection-settings .dialog-actions>.primary-button{min-height:42px}}
.files-toolbar{padding:18px 20px;margin-bottom:22px;border:1px solid var(--line);background:#eef2e9;border-radius:12px}
.file-actions,.artifact-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.file-actions .primary-button{font-size:11px;padding:9px 13px}
.files-toolbar .field-help{margin:10px 0 0;color:#6f8166}
.file-type{font-size:10px;color:#80916e;border:1px solid #dce4d4;border-radius:5px;padding:2px 7px;white-space:nowrap}
.file-card .record-actions{flex-wrap:wrap;gap:10px 20px}
.file-dialog{width:760px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #dce5d1;border-radius:18px;padding:28px;background:#fcfdf9;color:var(--ink)}
.file-dialog::backdrop{background:#263d2e55;backdrop-filter:blur(3px)}
.file-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.file-dialog h2{font-size:21px;line-height:1.5;font-weight:500;margin:5px 0;overflow-wrap:anywhere}
.file-dialog input,.file-dialog textarea{width:100%;border:1px solid #dce5d1;border-radius:8px;background:#fff;padding:11px 12px;color:#405a3a;font-size:12px}
.file-dialog input[readonly]{background:#f0f3ea;color:#829075}
.file-dialog textarea{font-family:Consolas,"Microsoft YaHei",monospace;line-height:1.8;min-height:230px;resize:vertical;white-space:pre-wrap}
.file-dialog .dialog-actions{flex-wrap:wrap;gap:12px;margin-top:20px}
.file-dialog .dialog-actions #file-delete{margin-right:auto}
.file-dialog .field-label{font-size:11px}
.inline-confirm{padding:10px 14px;margin-top:15px;background:#fff1e7;border:1px solid #efd9c8;border-radius:9px;font-size:12px;color:#966c50}
.inline-confirm p{margin:0 0 7px}.artifact-actions{gap:15px;margin-top:8px}.artifact-actions .text-button{font-size:11px;padding:0}
@media(max-width:760px){.file-dialog{padding:20px;max-height:calc(100dvh - 24px)}.file-dialog input,.file-dialog textarea,.settings-dialog select{font-size:16px}.file-dialog .dialog-actions{gap:9px}.file-dialog .dialog-actions #file-delete{width:100%;margin-bottom:5px;text-align:left}.file-dialog .dialog-actions .secondary-button,.file-dialog .dialog-actions .primary-button{font-size:11px}.files-toolbar{padding:15px}.file-card .record-actions{gap:9px 18px}}
.capability-note{align-items:flex-start;text-align:center;line-height:1.9}.capability-note>.small-dot{margin-top:8px;flex-shrink:0}.capability-note>#capability-description{min-width:0;overflow-wrap:anywhere}#model-address-help{overflow-wrap:anywhere}

/* Retrieval v1b: source evidence and explicitly confirmed memory candidates. */
.retrieval-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-bottom:15px}.retrieval-form>input{flex:1;min-width:180px;min-height:44px}.retrieval-form label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#62785a}.retrieval-form input,.retrieval-form select,.candidate-dialog select{padding:10px 12px;border:1px solid #dce5d4;border-radius:8px;background:#fff;color:#4c6541;font-size:12px;max-width:100%}.retrieval-form .primary-button{min-height:44px}.retrieval-results,.candidate-list{display:grid;gap:12px}.retrieval-evidence{min-width:0;padding:14px;border:1px solid #dce5d4;border-radius:9px;background:#fbfdf7;overflow-wrap:anywhere}.retrieval-evidence>strong{font-size:12px;font-weight:500;color:#526e48}.retrieval-evidence .file-description{font-size:10px;line-height:1.8;color:#89977d;margin:8px 0}.retrieval-excerpt{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0;max-height:180px;overflow:auto}.retrieval-evidence .text-button,.retrieval-evidence .task-open{font-size:11px;min-height:36px}.source-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:50dvh;overflow:auto;border:1px solid #e1e7da;border-radius:9px;background:#f4f7ef;padding:14px;font:12px/1.8 Consolas,"Microsoft YaHei",monospace}.source-dialog .source-text:empty{display:none}.file-retrieval-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.file-retrieval-row small{font-size:10px;line-height:1.7;color:#87977b}.retrieval-toggle{border:1px solid #d4e0c9;border-radius:7px;padding:7px 10px;font-size:11px}.retrieval-toggle.enabled{background:#e8f1e1;color:#4d7642}.retrieval-toggle:disabled{opacity:.55}.retrieval-report-sources{margin-top:10px}.retrieval-report-sources>summary{font-size:10px;color:#657b58;cursor:pointer}.workflow-panel .retrieval-evidence,.activity-item .retrieval-evidence{padding:9px;margin-top:8px}.workflow-panel .retrieval-evidence>strong,.activity-item .retrieval-evidence>strong{font-size:10px}.workflow-panel .retrieval-excerpt,.activity-item .retrieval-excerpt{font-size:10px}.candidate-panel{border:1px solid #dce5d4;border-radius:11px;padding:15px;margin-bottom:24px;background:#f2f6ec}.candidate-panel>summary{display:flex;justify-content:space-between;gap:10px;cursor:pointer;font-size:13px;color:#536e48}.candidate-panel>summary span{font-size:11px}.candidate-panel .field-help{font-size:11px;line-height:1.8}.candidate-card .record-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:12px}.candidate-card.confirmed,.candidate-card.rejected,.candidate-card.invalidated{background:#f1f3ec}.candidate-card .record-head{font-size:12px}.candidate-similar{font-size:11px;margin:12px 0;color:#87704d}.candidate-similar-item{border-top:1px solid #e2e8db;padding:8px 0;overflow-wrap:anywhere}.candidate-similar-item p{white-space:pre-wrap;margin:5px 0}.candidate-similar-item small{display:block;color:#8d9b7d}.candidate-similar-item button{font-size:11px;min-height:36px}.candidate-dialog .memory-fields label{margin-top:0}.candidate-dialog .field-label select{display:block;width:100%}.candidate-original>summary{font-size:12px;color:#657b58;cursor:pointer;min-height:36px}.candidate-original .source-text{max-height:200px}.candidate-dialog textarea{min-height:130px}.message-tools .text-button{font-size:10px;padding:4px 0;min-height:32px}.empty-note{font-size:12px;line-height:1.9;color:#8b9a7e}
@media(max-width:760px){.retrieval-form{gap:10px}.retrieval-form>input{width:100%;min-width:0;flex-basis:100%}.retrieval-form>label{flex:1;min-width:0}.retrieval-form input,.retrieval-form select,.candidate-dialog select,.candidate-dialog input{font-size:16px;width:100%}.retrieval-form .primary-button{min-width:76px}.retrieval-evidence{padding:13px}.retrieval-evidence .text-button,.retrieval-evidence .task-open,.retrieval-toggle,.candidate-card button,.candidate-dialog button,.message-tools .text-button{min-height:44px}.source-dialog,.candidate-dialog{max-width:calc(100vw - 20px);padding:18px}.source-dialog .icon-button,.candidate-dialog .icon-button{min-width:44px}.candidate-dialog .memory-fields{grid-template-columns:1fr}.candidate-dialog .memory-fields>label:last-child{grid-column:auto}.candidate-panel{padding:13px}.candidate-panel>summary{min-height:44px;align-items:center}.candidate-card .record-actions{gap:10px}.candidate-card .secondary-button{flex:1}.source-text{font-size:12px;padding:10px}.file-retrieval-row{gap:6px 12px}}

/* Context v1a: optional conversation brief, source bundle and pinned constraints. */
.task-brief-panel{margin:18px auto 0;width:calc(100% - 80px);max-width:780px;min-width:0;border:1px solid #dde6d8;border-radius:11px;background:#f2f5ed;overflow-wrap:anywhere}.task-brief-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:11px 14px;color:#4f6b48;font-size:12px;list-style:none}.task-brief-panel>summary::-webkit-details-marker{display:none}.task-brief-panel>summary>span:first-child:before{content:'›';display:inline-block;margin-right:9px;transition:transform .15s}.task-brief-panel[open]>summary>span:first-child:before{transform:rotate(90deg)}.task-brief-panel summary small,#task-brief-status{font-size:10px;font-weight:400;color:#87977b}.task-brief-panel summary small{margin-left:5px}#task-brief-status{text-align:right}.task-brief-body{padding:0 14px 14px;min-width:0}.task-brief-help,.task-brief-body>.form-error{font-size:11px;line-height:1.8;margin:8px 0;color:#7e8e72}.task-brief-body>.form-error{color:#9f573d}.task-brief-body form>label,.task-brief-fields>label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#5f7654}.task-brief-body form>label{flex-direction:row;align-items:center;margin-top:12px}.task-brief-body form>label small{font-size:10px;color:#92a187}.task-brief-body textarea{display:block;min-width:0;width:100%;padding:9px 10px;border:1px solid #d7e1d0;border-radius:8px;background:#fff;color:#405c3c;font-size:12px;line-height:1.7;resize:vertical}.task-brief-body textarea:focus-visible{outline:2px solid #8cae9d;outline-offset:2px}.task-brief-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:13px}.task-brief-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px;flex-wrap:wrap;margin-top:12px}.task-brief-actions button{font-size:11px}.brief-content{min-width:0;overflow-wrap:anywhere}.brief-content h4{font-size:11px;color:#647d57;margin:12px 0 4px}.brief-goal{font-size:12px;color:#4e6847;white-space:pre-wrap;margin:10px 0}.brief-list{padding-left:18px;margin:4px 0;font-size:11px;color:#708663;line-height:1.8;white-space:pre-wrap}.task-brief-latest{padding:10px;border:1px solid #dccdaf;border-radius:8px;background:#faf6ed;margin-top:12px}.task-brief-latest>summary{font-size:11px;color:#927445;cursor:pointer}.task-brief-snapshot{padding:10px;border:1px solid #dce5d5;border-radius:8px;background:#f9fbf5;overflow-wrap:anywhere}.task-brief-snapshot>summary{font-size:11px;color:#647a57;cursor:pointer}.task-brief-snapshot .context-note,.brief-source-id{display:block;font-size:9px;color:#8c9c7e;line-height:1.8;margin-top:8px}.task-brief-snapshot .brief-goal,.task-brief-snapshot .brief-list,.task-brief-snapshot .brief-content h4{font-size:10px}.context-bundle-items{display:grid;gap:7px;margin-top:8px;max-height:360px;overflow-y:auto;overscroll-behavior:contain}.context-bundle-item{padding:8px;border:1px solid #e1e7dc;border-radius:7px;background:#fafcf7;min-width:0}.context-bundle-item>summary{display:flex;justify-content:space-between;align-items:baseline;gap:8px;cursor:pointer;list-style:none}.context-bundle-item>summary::-webkit-details-marker{display:none}.bundle-kind{font-size:10px;color:#617657}.bundle-kind:before{content:'＋';margin-right:5px;color:#94a588}.context-bundle-item[open] .bundle-kind:before{content:'−'}.bundle-selection{font-size:9px;color:#9b896f;white-space:nowrap}.context-bundle-item.selected .bundle-selection{color:#4d7955}.context-bundle-item small{display:block;font-size:9px;color:#8e9a83;line-height:1.8;overflow-wrap:anywhere;margin-top:5px}.context-bundle-item p.bundle-reason,.context-bundle-item p.bundle-preview{font-size:10px;line-height:1.8;margin:6px 0 0;color:#6c805f;white-space:pre-wrap}.context-bundle-item p.bundle-preview{border-top:1px solid #e7eddf;padding-top:7px;color:#87977a}.memory-pin-row{display:flex;align-items:center;gap:9px 13px;flex-wrap:wrap;margin-top:12px}.memory-pin-button{border:1px solid #cddbc3;border-radius:7px;padding:6px 9px;color:#708662;font-size:10px;background:#f4f8ee}.memory-pin-button.pinned{background:#e5efdd;color:#4b733e;border-color:#b5cda6}.memory-pin-button:disabled{opacity:.55}.memory-pin-row small{font-size:10px;color:#8e9d81;line-height:1.7}.memory-card p.form-error{color:#a35f43;font-size:11px}
@media(max-width:1000px){.task-brief-panel{width:calc(100% - 48px)}.task-brief-fields{grid-template-columns:1fr}}
@media(max-width:760px){.task-brief-panel{width:calc(100% - 32px);margin-top:13px}.task-brief-panel>summary{min-height:44px;padding:10px 12px}.task-brief-body{padding:0 12px 12px}.task-brief-body textarea{font-size:16px}.task-brief-actions{gap:8px 13px}.task-brief-actions button,#task-brief-edit,#task-brief-retry{min-height:44px}.task-brief-actions .primary-button{flex:1}.task-brief-actions #task-brief-refresh{width:100%;text-align:left}.memory-pin-button{min-height:44px;font-size:11px}.memory-pin-row{align-items:flex-start;flex-direction:column;gap:6px}.context-bundle-item>summary{min-height:36px}}
/* Phase 6 editable memory and inspectable context. */
.memory-form-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.memory-form-heading label{font-weight:600;color:#536d49}.memory-form>textarea{display:block;width:100%;resize:vertical;min-height:85px}.memory-fields{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:12px;margin-top:14px}.memory-fields label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11px;color:#62785a}.memory-fields select,.memory-fields input,.memory-search>input{width:100%;min-width:0;font:inherit;font-size:12px;color:#4c6541;background:#fff;border:1px solid #dce5d4;border-radius:8px;padding:9px 10px}.memory-fields select:focus-visible{outline:2px solid #8cae9d;outline-offset:2px}.memory-form #memory-scope-help{color:#6e8263;margin-top:11px}.memory-form .form-error{color:#a35f43;font-size:11px}.memory-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:15px}.memory-search{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:11px}.memory-search>input{flex:1;min-width:120px}.memory-filter{display:flex;align-items:center;gap:6px;color:#6d8162;font-size:11px;white-space:nowrap}.memory-filter input{accent-color:var(--green);margin:0}#memory-results-note{margin:0 0 14px;color:#819175}.memory-card-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}.memory-card-actions .text-button{padding:3px 0;font-size:11px}.memory-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:12px}.memory-tag{display:inline-block;color:#738665;background:#eff3e9;border:1px solid #e1e8d9;border-radius:5px;padding:2px 7px;font-size:9px;line-height:1.5;white-space:nowrap}.memory-tag.effective{color:#4f7956;background:#e8f0e5;border-color:#d5e5cf}.memory-tag.inactive{color:#9c805f;background:#f7efe3;border-color:#ecdfcb}.memory-card p.memory-source{font-size:10px;color:#89977d;margin-top:9px;line-height:1.6}.memory-card time{line-height:1.9}.memory-head>p{flex:1;min-width:0}.context-settings{border:1px solid #e0e8d7;border-radius:10px;padding:13px 14px;margin:15px 0;color:#6e825f}.context-settings>summary{font-size:12px;cursor:pointer;color:#617b51}.context-settings>.field-help{line-height:1.8;margin-top:10px;color:#8a9b7b}.context-settings-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.context-settings .field-label{font-size:11px;margin-top:12px}.context-settings .plain-check{margin-bottom:8px}.context-report{border:1px solid #dae5d2;border-radius:9px;background:#f1f6ec;padding:10px;overflow-wrap:anywhere}.context-report>summary{font-size:11px;color:#5e7b50;cursor:pointer;font-weight:500}.context-report h4{font-size:10px;color:#647e55;margin:12px 0 6px;font-weight:600}.context-report p.context-estimate{font-size:10px;color:#526f46;line-height:1.8;margin:9px 0 0}.context-report p.context-note,.context-report p.context-warning{font-size:9px;line-height:1.8;color:#8a9b7c;margin:6px 0 0;white-space:pre-wrap}.context-report p.context-warning{color:#a17b4d}.context-source{background:#f9fcf5;border:1px solid #e4ebdd;border-radius:6px;padding:8px;margin:6px 0}.context-source p{font-size:10px;line-height:1.7;color:#657b58;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.context-source small{display:block;color:#92a084;font-size:8px;line-height:1.7;margin-top:5px}.context-summary-sources{padding-left:15px;margin:7px 0;color:#879a78;font-size:9px;line-height:1.9}.activity-item .context-report{margin-top:8px;padding:8px}.activity-item .context-report>summary{font-size:9px}.activity-item .context-source p{font-size:9px;margin:0}.context-report h4:first-child{margin-top:0}
@media(max-width:1000px){.memory-fields{grid-template-columns:1fr 1fr}.memory-fields>label:last-child{grid-column:1 / -1}}
@media(max-width:760px){.memory-fields{gap:11px}.memory-fields select,.memory-fields input,.memory-search>input,.memory-form>textarea{font-size:16px}.memory-fields select,.memory-fields input{padding:9px 7px}.memory-filter{width:100%;padding:3px 0}.memory-form-heading{align-items:flex-start}.memory-card{padding:15px}.memory-head{gap:9px}.memory-card-actions{gap:8px}.context-settings{padding:11px 12px}.context-settings-fields{gap:9px}.context-settings .field-label{font-size:10px}}

/* Phase 7 public sources and owner-paired devices. */
.device-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid #dce6d5;background:#edf3e7;border-radius:14px;padding:20px;margin-bottom:22px}.device-intro>div{min-width:0}.device-intro h2{font-size:14px;font-weight:500;color:#4b6b44;margin:0 0 9px}.device-intro p{font-size:11px;line-height:1.9;color:#7c9070;margin:0;max-width:560px}.device-intro .primary-button{flex-shrink:0}.device-card,.device-job-card{min-width:0}.device-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.device-card-head h3{min-width:0;font-size:14px;font-weight:500;line-height:1.6;color:#5b754e;margin:0 0 10px;overflow-wrap:anywhere}.device-status{padding:3px 9px;border-radius:20px;background:#eff1eb;color:#8d9783;font-size:10px;flex-shrink:0}.device-status.online{background:#e6f0e2;color:#4a7a4c}.device-status.revoked{background:#f4ece2;color:#a38565}.device-card p.device-meta,.device-job-card p.device-meta{font-size:10px;color:#89987e;line-height:1.8;margin:5px 0;overflow-wrap:anywhere}.device-card .record-actions{margin-top:15px}.device-card .text-button{font-size:11px}.device-jobs-heading{margin:34px 0 17px}.device-jobs-heading h2{font-size:17px;font-weight:500;color:#58704d;margin:0 0 7px}.device-jobs-heading p,.device-empty-note{font-size:11px;color:#8b9b80;line-height:1.8}.device-result{font-size:11px;color:#56784b;line-height:1.8;overflow-wrap:anywhere}.pairing-result{margin-top:19px;border:1px solid #dbe6d1;border-radius:10px;padding:13px;background:#f0f5e9}.pairing-result .field-label{margin-top:0}.pairing-result textarea{display:block;width:100%;min-height:72px;resize:vertical;border:1px solid #dce5d4;border-radius:7px;padding:10px;color:#4b6a41;background:#fff;font-family:Consolas,"Microsoft YaHei",monospace;font-size:11px;line-height:1.7;overflow-wrap:anywhere}.pairing-result .field-help{line-height:1.8;color:#859775}.pairing-result .secondary-button{margin-top:10px}.web-source{padding:9px 10px;margin-top:8px;border:1px solid #dfe7d8;border-radius:8px;background:#f2f6ec;overflow-wrap:anywhere}.source-link{font-size:10px;color:#557b4c;text-decoration:underline;text-underline-offset:3px;line-height:1.8}.activity-item .source-url{font-size:8px;line-height:1.7;color:#8f9e83;margin:5px 0}.activity-item .source-note{font-size:8px;color:#9aab8c;line-height:1.7;margin:4px 0}.activity-item .text-button{font-size:9px;padding:5px 0}.device-job-card .status-badge{flex-shrink:0;white-space:normal;text-align:right;max-width:45%}.device-job-card .form-error{overflow-wrap:anywhere}
@media(max-width:760px){.device-intro{align-items:flex-start;flex-direction:column;gap:16px;padding:17px}.device-intro h2{font-size:13px}.device-intro p{font-size:11px}.device-intro .primary-button{font-size:11px;padding:10px 13px}.device-card-head{gap:9px}.device-card-head h3{font-size:13px}.device-card .record-actions{gap:17px}.device-jobs-heading{margin-top:28px}.pairing-result textarea{font-size:14px}.device-job-card .status-badge{font-size:9px}}

@media(min-width:761px){.portal-page .demo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Phase 8: schedules, background budgets and account notifications. */
.automation-intro{border:1px solid #dce6d5;background:#edf3e7;border-radius:14px;padding:18px 20px;margin-bottom:22px}.automation-status{display:flex;align-items:center;gap:8px;color:#4b6b44}.automation-status strong{font-size:13px;font-weight:500}.automation-intro p{font-size:11px;line-height:1.9;color:#7c9070;margin:9px 0 0;overflow-wrap:anywhere}.schedule-create-panel{border:1px solid #dce5d4;border-radius:13px;background:#fafcf7;margin-bottom:24px;overflow:hidden}.schedule-create-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 19px;cursor:pointer;list-style:none;color:#4f714a}.schedule-create-panel>summary::-webkit-details-marker{display:none}.schedule-create-panel>summary>span{display:flex;align-items:center;gap:8px;font-size:13px}.schedule-create-panel>summary svg{width:15px;height:15px;transition:transform .15s}.schedule-create-panel[open]>summary svg{transform:rotate(45deg)}.schedule-create-panel>summary small{font-size:10px;color:#94a288}.schedule-form{padding:0 19px 19px;border-top:1px solid #e5ebdf}.schedule-form input,.schedule-form textarea,.schedule-form select{display:block;width:100%;min-width:0;background:#fff;border:1px solid #dce5d4;border-radius:8px;padding:10px 11px;font:inherit;font-size:12px;line-height:1.6;color:#4c6541}.schedule-form textarea{resize:vertical;min-height:110px}.schedule-form input::placeholder,.schedule-form textarea::placeholder{color:#a1ad98}.schedule-form .field-help{line-height:1.85;color:#8a9b7b}.schedule-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:17px}.schedule-fields label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:11px;color:#62785a}.schedule-fields select:focus-visible{outline:2px solid #8cae9d;outline-offset:2px}.schedule-budget-settings{border-top:1px solid #e1e9d9;margin-top:19px;padding-top:15px}.schedule-budget-settings summary{font-size:11px;color:#647e55;cursor:pointer}.schedule-cost-settings{margin-top:14px;padding:12px;background:#f1f5eb;border-radius:8px}.schedule-form-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:15px;margin-top:19px}.schedule-form-actions .text-button{font-size:11px}.schedule-card{min-width:0}.schedule-card .record-head h3{min-width:0}.schedule-card .status-badge{max-width:45%;white-space:normal;flex-shrink:0}.schedule-card p.schedule-prompt{line-height:1.8;margin:12px 0 14px}.schedule-card p.schedule-meta{font-size:10px;line-height:1.9;color:#85977a;margin:5px 0}.schedule-card .record-actions,.notification-card .record-actions{flex-wrap:wrap;gap:8px 20px;margin-top:13px}.schedule-card .text-button,.notification-card .text-button{font-size:11px;padding:5px 0}.schedule-card .danger{color:#a38565}.notification-explainer{font-size:11px;color:#8b9b80;line-height:1.8;margin:-7px 0 21px}.notification-card.unread{border-left:3px solid #88a37c;background:#fbfdf7}.notification-card.unread .status-badge{background:#dfead9;color:#5f8051}.notification-card h3{min-width:0}.background-budget{border:1px solid #dce6d4;border-radius:8px;background:#f1f6ec;padding:11px;margin:10px 0 2px;overflow-wrap:anywhere}.background-budget strong{font-size:11px;font-weight:500;color:#5a794e}.background-budget p,.record-card .background-budget p{font-size:10px;line-height:1.8;color:#7d916e;margin:5px 0}.background-budget small{display:block;font-size:9px;line-height:1.8;color:#9aaa8b}.workflow-panel .background-budget{margin:0}.primary-nav{gap:3px}.sidebar-section-head{margin-top:23px}
@media(max-width:760px){.automation-intro{padding:16px}.automation-intro p{font-size:11px}.schedule-create-panel>summary{padding:15px}.schedule-create-panel>summary small{font-size:9px}.schedule-form{padding:0 15px 16px}.schedule-fields{grid-template-columns:1fr;gap:13px}.schedule-form input,.schedule-form textarea,.schedule-form select{font-size:16px;max-width:100%}.schedule-form-actions .primary-button{font-size:11px}.schedule-card .record-actions,.notification-card .record-actions{gap:6px 17px}.notification-explainer{font-size:11px;margin-top:0}.primary-nav{gap:1px}.nav-item{padding-top:9px;padding-bottom:9px}.sidebar-section-head{margin-top:17px}.sidebar-bottom{padding-top:12px}.sidebar .new-chat{margin-top:25px}.sidebar{overflow-y:auto}.conversation-list{min-height:36px;flex-shrink:0}.sidebar-bottom{flex-shrink:0}}
@media(max-height:800px){.sidebar{overflow-y:auto;padding-top:20px}.sidebar .new-chat{margin-top:20px}.sidebar .primary-nav{margin-top:15px}.sidebar .nav-item{padding-top:8px;padding-bottom:8px}.sidebar-section-head{margin-top:16px}.sidebar-bottom{padding-top:10px;flex-shrink:0}.conversation-list{min-height:36px}.sidebar .profile-button{padding-top:12px}}

/* Phase 9: mobile task center and installable web app. */
.install-help-button{display:flex;align-items:center;gap:8px;width:100%;padding:12px 9px;font-size:11px;color:#748b68;border-top:1px solid #e0e7d9}.install-help-button svg{width:15px;height:15px}.install-help-button span{margin-left:auto}.task-filters{display:flex;gap:8px;flex-wrap:wrap;margin:-5px 0 14px}.task-filters button{display:flex;align-items:center;gap:7px;min-height:38px;padding:8px 11px;border:1px solid #dfe7d7;border-radius:9px;background:#fafcf7;color:#809372;font-size:11px;line-height:1.4}.task-filters button.active{background:#e7efdf;border-color:#b6c9a8;color:#4e7241}.task-filters button span{font-size:10px;background:#edf1e7;padding:1px 5px;border-radius:5px;min-width:19px;text-align:center}.task-filters button.active span{background:#d6e4cb;color:#557846}.task-sync-note{font-size:10px;color:#94a389;line-height:1.8;margin:11px 0 17px;overflow-wrap:anywhere}.task-usage-summary{padding:15px 17px;border:1px solid #dce6d3;background:#edf3e7;border-radius:12px;margin:0 0 18px}.task-usage-summary strong{font-size:12px;font-weight:500;color:#5a784d}.task-usage-summary p{font-size:11px;line-height:1.8;color:#7d906f;margin:7px 0 0;overflow-wrap:anywhere}.task-usage-summary small{display:block;font-size:10px;line-height:1.9;color:#94a184;margin-top:8px}.task-center-card{min-width:0}.task-center-card .record-head{gap:10px}.task-center-card h3{line-height:1.8;min-width:0}.task-center-card .status-badge{flex-shrink:0;white-space:normal;max-width:35%;text-align:right}.task-center-card .record-actions{display:flex;flex-wrap:wrap;gap:5px 18px;margin-top:13px}.task-center-card .task-open{min-height:38px;padding:6px 0;font-size:11px}.task-center-card p.task-brief{font-size:10px;color:#8f9d80}.task-center-card p.task-approval-note{font-size:11px;border-left:2px solid #b1c29d;padding-left:10px;color:#7e916c;line-height:1.9}.task-pagination{display:flex;justify-content:center;margin-top:20px}.task-pagination button{min-height:42px}.mobile-tabbar{display:none}.record-card .task-id{overflow-wrap:anywhere;word-break:break-word}
@media(max-width:760px){.workspace{padding-bottom:calc(66px + env(safe-area-inset-bottom));padding-top:env(safe-area-inset-top);box-sizing:border-box}.mobile-tabbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));position:fixed;z-index:24;left:0;right:0;bottom:0;gap:8px;padding:7px max(12px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#f7f9f2f5;backdrop-filter:blur(12px);border-top:1px solid #dde5d4;box-shadow:0 -3px 22px #42533205}.mobile-tabbar .nav-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:50px;padding:5px 10px;border-radius:10px;font-size:11px;line-height:1.2;margin:0}.mobile-tabbar .nav-item svg{width:20px;height:20px;margin:0}.mobile-tabbar .nav-item.active{color:#537b42;background:#e7efdf}.mobile-tabbar .mobile-badge{position:absolute;top:3px;left:calc(50% + 9px);background:#a88862;color:#fff;padding:2px 5px;border-radius:9px;min-width:16px;text-align:center;font-size:9px;line-height:1.2}.mobile-tabbar .mobile-badge[hidden]{display:none}.task-filters{gap:7px}.task-filters button{min-height:44px;padding:9px 10px;font-size:11px}.task-center-card{padding:16px}.task-center-card .task-open{min-height:44px}.task-center-card h3{font-size:13px}.task-center-card .record-actions{gap:2px 16px}.task-usage-summary{padding:14px}.task-sync-note{font-size:10px}.task-center-card .task-id{font-size:9px;line-height:1.8}.toast{bottom:calc(88px + env(safe-area-inset-bottom))}.composer textarea{font-size:16px}.activity-panel{width:min(360px,94vw);padding:24px 19px calc(18px + env(safe-area-inset-bottom))}.activity-heading .icon-button{min-width:44px;min-height:44px}.workflow-panel .primary-button,.workflow-panel .secondary-button{min-height:44px}.topbar .icon-button{min-width:40px;min-height:44px}.install-help-button{min-height:44px}.collection-view{padding-bottom:30px}.pwa-offline .topbar{padding-top:46px;height:110px;min-height:110px}}
@media(prefers-reduced-motion:reduce){.sidebar,.activity-panel,.suggestion{transition:none}.chat-scroll{scroll-behavior:auto}}
@media(max-width:360px){.topbar{gap:8px}.topbar .model-pill{max-width:110px}.topbar-left{min-width:0}.breadcrumb{min-width:0}.breadcrumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:56px}}
/* Administrator shortcuts and shared model source. */
.topbar:has(.admin-tools:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) auto;height:auto;row-gap:3px;padding-block:10px}.topbar:has(.admin-tools:not([hidden])) .topbar-actions{grid-column:2;grid-row:1 / span 2}.admin-tools{grid-column:1;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;min-width:0}.admin-tool-link{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:4px 8px;border:1px solid #dce5d7;border-radius:7px;background:#f9fbf5;color:var(--green);font-size:11px;white-space:nowrap}.admin-tool-link:hover{background:#e8efe2;border-color:#b7cbb5}.admin-tool-link svg{width:14px;height:14px}.admin-tool-link>span{font-size:12px;color:#82997b}.model-source-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.model-source-settings{padding:14px 16px;border:1px solid #dce5d3;border-radius:10px;margin:18px 0}.model-source-settings .field-label{margin-top:0}.model-source-row select{flex:1;min-width:0}.model-source-row button{flex:none}
.wechat-member-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid #e0e7d8;margin-top:20px}.wechat-member-entry strong{font-size:13px;font-weight:600}.wechat-member-entry .secondary-button{flex:none}.wechat-member-dialog{max-width:520px}.wechat-member-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}.wechat-member-qr-panel{padding:18px;background:#fff;border:1px solid #deded6;border-radius:12px;margin-top:16px;max-width:380px}.wechat-member-qr-panel img{display:block;width:250px;max-width:100%;height:250px;object-fit:contain}
@media(max-width:760px){.topbar:has(.admin-tools:not([hidden])){padding-block:7px}.topbar:has(.admin-tools:not([hidden])) .topbar-actions{grid-row:1}.admin-tools{grid-column:1 / -1;gap:6px}.admin-tool-link{min-height:40px}.pwa-offline .topbar:has(.admin-tools:not([hidden])){padding-top:46px}.model-source-row{align-items:stretch;flex-direction:column;gap:10px}.model-source-row button{min-height:42px}}
.shared-model-editor .permission-option{margin-top:8px}.shared-model-editor input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:var(--green);margin:2px 0 0;padding:0}
