:root{font-family:Inter,Segoe UI,Microsoft YaHei,system-ui,sans-serif;color:#172e36;background:#f5f8fa;font-synthesis:none;font-size:14px;--teal:#007e76;--teal-dark:#00645e;--line:#e0e8eb;--muted:#6a7e85}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}button{border:0;background:none;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #66c8bd;outline-offset:3px}input,textarea,select{width:100%;border:1px solid #ccdadd;border-radius:10px;padding:12px;background:#fff;color:#172e36;min-width:0}input:focus,textarea:focus,select:focus{outline:2px solid #b3e5de;border-color:#3daca1}input:disabled,textarea:disabled{background:#f4f7f8}label{display:flex;flex-direction:column;gap:9px;font-weight:550;font-size:13px}h1,h2,h3,p{margin-top:0}h1{font-size:32px;font-weight:650;letter-spacing:-1px;line-height:1.3;margin-bottom:12px}h2{font-size:19px;font-weight:650;margin-bottom:10px}h3{font-size:16px;margin-bottom:8px}p{line-height:1.7}.muted{color:var(--muted);font-size:13px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--teal);font-weight:750;display:block;margin-bottom:14px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 17px;min-height:42px;border-radius:9px;font-weight:600;line-height:1.4;text-align:center}.primary{background:var(--teal);color:#fff;border:1px solid var(--teal)}.primary:hover:not(:disabled){background:var(--teal-dark)}.secondary{border:1px solid #cddcde;background:#fff;color:#34545c}.secondary:hover:not(:disabled){background:#f0f7f6}.full{width:100%}.quiet{font-size:12px;padding:9px 10px;border-radius:7px;color:#536f77}.quiet:hover{background:#e9f0f1}.link{color:var(--teal);padding:10px 0;font-size:13px;font-weight:600}.danger{color:#ae4947}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 13px #24434b04}.splash{min-height:100dvh;display:grid;place-items:center;color:var(--muted)}.mini-brand{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:650}.mini-brand b{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#d9efe9;color:var(--teal);font-size:19px}.mini-brand small{font-size:12px;font-weight:450;color:#617780}.alert{padding:12px 15px;border-radius:10px;font-size:13px;margin-bottom:12px;overflow-wrap:anywhere;line-height:1.65}.alert.error{color:#9b3f3a;background:#fff0ed;border:1px solid #f1d5ce}.alert.success{color:#27705c;background:#edf9f2;border:1px solid #cfebdc}.alert.warning{color:#976025;background:#fff5de;border:1px solid #efdcaf}.alert button{float:right}.auth-page{min-height:100dvh;display:grid;grid-template-columns:1.1fr 1fr;background:#fff}.auth-art{position:relative;background:#e9f2ef;padding:clamp(45px,7vw,110px);display:flex;flex-direction:column;justify-content:center;overflow:hidden}.brand-mark{width:80px;height:80px;background:#c9e3d9;color:#196f60;border-radius:24px;font-size:49px;font-weight:700;position:relative;display:grid;place-items:center;margin-bottom:55px}.brand-mark span{position:absolute;font-size:22px;right:12px;top:7px}.auth-art h1{font-size:clamp(29px,3.3vw,49px);line-height:1.5;margin:10px 0 24px;color:#21473e;letter-spacing:-1.5px}.auth-art p{color:#617e72;line-height:2}.art-lines{display:flex;gap:12px;margin-top:55px}.art-lines span{height:6px;width:35px;background:#c6dfd3;border-radius:8px}.art-lines span:first-child{background:#5c9f89;width:70px}.auth-card{padding:60px 55px;margin:auto;width:100%;max-width:470px}.auth-card .mini-brand{margin-bottom:50px}.auth-card h2{font-size:25px;margin-bottom:12px}.auth-tabs{display:flex;background:#f1f5f6;padding:4px;border-radius:10px;margin:26px 0}.auth-tabs button{flex:1;padding:10px;color:#708189}.auth-tabs button.active{background:#fff;border-radius:7px;color:var(--teal);box-shadow:0 2px 5px #00000007}.auth-card form,.form-panel{display:flex;flex-direction:column;gap:20px}.auth-note{font-size:11px;line-height:1.9;color:#8b9ba0;border-top:1px solid var(--line);margin-top:30px;padding-top:22px}.topbar{height:73px;background:#fff;border-bottom:1px solid var(--line);padding:0 35px;display:flex;justify-content:space-between;align-items:center;gap:12px}.top-right{display:flex;align-items:center;gap:12px}.username{font-size:12px;max-width:150px;overflow:hidden;text-overflow:ellipsis}.main-nav{display:flex;gap:26px;min-height:52px;border-bottom:1px solid var(--line);padding:0 35px;background:#fff}.main-nav button{padding:17px 2px 14px;color:#789096;border-bottom:3px solid transparent;font-size:12px}.main-nav button.active{border-color:var(--teal);color:var(--teal);font-weight:650}.global-messages{max-width:1220px;margin:auto;padding:0 25px}.global-messages:has(.alert){padding-top:15px}.page{max-width:1220px;padding:48px 25px 60px;margin:auto}.page.narrow{max-width:640px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px}.page-heading p{margin-bottom:0}.device-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(275px,1fr));gap:22px}.device-card{padding:25px}.device-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.computer-icon{display:grid;place-items:center;background:#edf4f6;color:#61818b;font-size:34px;width:50px;height:50px;border-radius:13px}.badge{display:inline-flex;gap:6px;align-items:center;font-size:11px;padding:5px 9px;border-radius:15px;white-space:nowrap}.badge.online{background:#e9f7f0;color:#287b61}.badge.offline{background:#f1f3f5;color:#8b969b}.badge i,.device-dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:currentColor}.device-card h2{overflow-wrap:anywhere}.device-card .muted{font-size:12px;min-height:24px}.device-actions{display:flex;align-items:center;justify-content:space-between;margin-top:24px}.device-actions .primary{font-size:12px;padding:9px 14px}.add-device{padding:27px;display:flex;flex-direction:column;align-items:flex-start;border-style:dashed;background:#ffffff7d}.add-icon{font-size:30px;display:block;color:#94b3b6;margin-bottom:23px}.add-device .muted,.add-device .secondary{font-size:12px}.pairing{margin-top:25px;padding:28px;display:flex;justify-content:space-between;align-items:center;gap:25px}.pairing h2{font-size:16px}.pairing .muted{margin-bottom:0;font-size:12px}.pair-code{display:block;font-size:22px;letter-spacing:2px;padding:16px;background:#f2f8f5;border-radius:10px;color:#206f59;margin-bottom:10px;overflow-wrap:anywhere}.footnote{padding:30px 4px;color:#7b8f96;max-width:750px;margin-top:20px}.footnote b{font-size:12px}.footnote p{font-size:12px;margin-top:8px}.form-panel{padding:30px;margin-top:30px}.chat-layout{display:grid;grid-template-columns:300px 1fr;height:calc(100dvh - 128px);min-height:480px;border-bottom:1px solid var(--line)}.global-messages:has(.alert)+.chat-layout{height:calc(100dvh - 205px)}.thread-sidebar{background:#f9fbfc;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;padding:0 12px}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 6px}.sidebar-heading strong{font-size:12px;margin-left:9px;overflow-wrap:anywhere}.device-dot{background:#afbec3}.device-dot.online{background:#42a77e}.new-task{font-size:12px;margin-bottom:15px;background:transparent;min-height:38px}.thread-list{overflow:auto;padding-bottom:25px}.thread-row{display:flex;flex-direction:column;gap:7px;width:100%;text-align:left;padding:14px 12px;margin-bottom:3px;border-radius:9px;line-height:1.5}.thread-row span{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.thread-row small{font-size:10px;color:#8a9ca2}.thread-row:hover{background:#eef3f4}.thread-row.selected{background:#e3f0eb;color:#216b58}.empty-mini{padding:20px 10px;font-size:12px}.offline-note{font-size:12px;color:#976025;background:#fff5df;padding:10px;border-radius:8px}.chat-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px;background:#fff}.empty-symbol{font-size:55px;background:#e9f5f1;color:#398b74;border-radius:24px;width:90px;height:90px;margin-bottom:30px}.chat-empty h2{font-size:24px}.chat-empty p{max-width:400px}.chat-main{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}.conversation-heading{min-height:72px;display:flex;align-items:center;gap:14px;border-bottom:1px solid #edf1f2;padding:14px 25px}.conversation-heading>div{flex:1;min-width:0}.conversation-heading h2{font-size:15px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:4px}.conversation-heading p{font-size:11px;margin:0}.back-button{display:none}.conversation{overflow:auto;flex:1;padding:25px max(25px,calc((100% - 800px)/2));scroll-behavior:smooth;overflow-wrap:anywhere}.message{margin:17px 0 25px;line-height:1.8}.message-role{display:block;font-size:11px;color:#648279;font-weight:650;margin-bottom:8px}.message-text{white-space:pre-wrap;font-size:13px;line-height:1.9;overflow-wrap:anywhere}.preview,.user-message{background:#f3f7f6;padding:15px 18px;border-radius:12px}.preview .message-text{font-size:12px;color:#516d65}.turn-divider{display:flex;gap:15px;border-top:1px solid #edf1f2;padding-top:15px;font-size:10px;color:#94a3a8;margin-top:25px}.tool-output{border:1px solid #e9eef0;padding:10px 12px;border-radius:8px;margin:10px 0;color:#758b93;font-size:11px}.tool-output summary{cursor:pointer}.tool-output pre{max-height:400px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.8}.history-button{display:block;margin:0 auto 20px;color:var(--teal);font-size:12px}.composer{padding:12px max(25px,calc((100% - 800px)/2)) 12px;border-top:1px solid #eef1f2;background:#fff}.composer textarea{resize:vertical;min-height:90px;max-height:250px;border-radius:13px 13px 0 0;border-bottom:0;display:block;font-size:13px;padding:14px;line-height:1.6}.composer-actions{border:1px solid #ccdadd;border-top:0;border-radius:0 0 13px 13px;display:flex;gap:15px;align-items:center;justify-content:space-between;padding:10px}.composer-actions select{border:0;background:#f3f6f7;font-size:11px;padding:9px;max-width:260px;width:auto}.composer-actions .primary{font-size:12px;white-space:nowrap;padding:8px 14px;min-height:35px}.composer-note{font-size:10px;text-align:center;color:#8b9ca2;margin:8px 0 0}.new-form{display:flex;flex-direction:column;gap:22px;padding-top:10px}.new-form .muted{font-size:12px}.users-list{overflow:hidden}.user-row{display:flex;align-items:center;gap:22px;padding:23px;border-bottom:1px solid var(--line)}.user-row:last-child{border-bottom:0}.user-row>div:first-child{flex:1;min-width:0}.user-row h3{overflow-wrap:anywhere;font-size:14px}.user-row h3 small{font-size:10px;color:var(--muted);font-weight:400}.user-row p{margin:0;font-size:11px}.user-actions{display:flex;align-items:center;gap:7px}.user-actions button{font-size:11px;padding:8px 12px;min-height:32px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#13313966;display:grid;place-items:center;padding:22px;z-index:20}.modal{padding:30px;max-width:470px;width:100%}.modal label{margin:20px 0}.modal-actions{display:flex;justify-content:flex-end;gap:12px}@media(min-width:1500px){.chat-layout{grid-template-columns:340px 1fr}}@media(max-width:800px){.auth-art{display:none}.auth-page{display:block;background:#f5f8fa;padding:30px 15px;min-height:100dvh}.auth-card{padding:28px 22px;background:#fff;border:1px solid var(--line);border-radius:18px;margin:7dvh auto}.auth-card .mini-brand{margin-bottom:32px}.auth-card h2{font-size:23px}.topbar{height:62px;padding:0 16px}.mini-brand{font-size:13px;gap:8px}.mini-brand small{display:none}.mini-brand b{width:31px;height:31px;font-size:17px}.top-right{gap:3px}.username{font-size:11px;max-width:100px}.top-right .quiet{padding:9px 7px;font-size:11px}.main-nav{padding:0 17px;gap:25px;min-height:49px}.main-nav button{padding-top:16px}.page{padding:30px 17px 40px}.page-heading{align-items:flex-start;gap:10px;margin-bottom:25px}.page-heading h1{font-size:24px;letter-spacing:-.6px}.page-heading .muted{font-size:12px}.page-heading .secondary{font-size:11px;min-height:35px;padding:8px 10px;white-space:nowrap}.eyebrow{font-size:9px;margin-bottom:11px}.device-grid{grid-template-columns:1fr;gap:15px}.device-card{padding:22px}.device-top{margin-bottom:22px}.add-device{padding:23px}.add-icon{margin-bottom:15px}.pairing{flex-direction:column;align-items:stretch;padding:22px;gap:18px}.pair-code{font-size:17px;letter-spacing:1px;text-align:center;padding:13px}.footnote{padding:24px 4px;margin-top:8px}.global-messages{padding-left:15px;padding-right:15px}.global-messages .alert{font-size:12px}.chat-layout{display:block;height:calc(100dvh - 111px);min-height:400px}.global-messages:has(.alert)+.chat-layout{height:calc(100dvh - 195px)}.thread-sidebar{height:100%;border-right:0;padding:0 14px}.has-thread .thread-sidebar{display:none}.chat-main{height:100%}.chat-empty{display:none}.conversation-heading{padding:12px 13px;min-height:64px;gap:8px}.back-button{display:block;white-space:nowrap;padding:8px 5px}.conversation-heading h2{font-size:13px}.conversation-heading p{font-size:10px}.conversation{padding:8px 17px 20px}.message-text{font-size:13px}.composer{padding:10px 12px max(10px,env(safe-area-inset-bottom))}.composer textarea{min-height:82px;font-size:16px;padding:12px}.composer-actions select{font-size:10px;max-width:60%;padding:8px}.composer-note{font-size:9px}.new-form input,.new-form select,input{font-size:16px}.form-panel{padding:23px}.user-row{padding:19px;gap:12px;flex-wrap:wrap}.user-row>div:first-child{flex-basis:70%}.user-actions{width:100%;justify-content:flex-end}.modal{padding:23px}}
