:root{font-family:Inter,"Noto Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#293e38;background:#f5f7f3;font-synthesis:none;--teal:#39776a;--teal-dark:#245d51;--muted:#87958c;--line:#e5eae2;--cream:#faf9f4;--orange:#c4814d;--danger:#a34e3c}*{box-sizing:border-box}body{margin:0;font-size:14px}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #8bbdad;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #8bbdad;outline-offset:2px}button{border:0}button, .link-button{transition:background .15s,transform .15s}button:hover:not(:disabled){filter:brightness(.97)}[hidden]{display:none!important}.app{height:100dvh;min-height:600px;display:grid;grid-template-columns:224px minmax(320px,1fr) 340px;max-width:1800px;margin:auto;overflow:hidden}.sidebar{background:#eaf0e9;padding:34px 20px 20px;display:flex;flex-direction:column;border-right:1px solid #dce4da}.brand{display:flex;align-items:center;gap:11px;font-size:16px;font-weight:600;letter-spacing:.3px;white-space:nowrap}.brand small{display:block;font-size:10px;font-weight:400;color:#7c9081;letter-spacing:1.8px;margin-top:5px}.hearth-mark{width:62px;height:62px;border-radius:21px 21px 18px 18px;background:#487c69;color:#f7f2e7;display:grid;place-items:center;font-size:29px;font-family:serif;position:relative;box-shadow:inset 0 0 0 5px #ffffff14}.hearth-mark.small{width:40px;height:43px;font-size:22px;border-radius:14px 14px 10px 10px;flex-shrink:0}.sidebar-rule{height:1px;background:#dce4da;margin:28px 0}.section-label{font-size:11px;letter-spacing:1px;color:#819182;margin:0 12px 13px}.space-link{width:100%;padding:13px 14px;background:transparent;text-align:left;border-radius:9px;font-weight:600;color:#3d6253;display:flex;align-items:center;gap:12px}.space-link.active{background:#dbe7da}.space-link>span:first-child{font-size:19px}.live-tag{font-size:9px;color:#7e927d;font-weight:400;margin-left:auto}.sidebar-note{font-size:11px;line-height:1.9;color:#91a08f;margin:17px 13px}.people-section{margin-top:36px}.actors{display:flex;flex-direction:column;gap:16px;padding:3px 12px}.person{display:flex;align-items:center;gap:10px;min-width:0}.avatar{height:32px;width:32px;display:grid;place-items:center;border-radius:11px;background:#d6e5dc;color:#46705e;flex-shrink:0;font-size:12px;font-weight:600}.avatar.assistant{background:#f0e3ce;color:#9c7346}.avatar.reviewer{background:#e4e0ed;color:#7d7096}.person strong{font-size:12px;font-weight:500}.person small{font-size:10px;color:#98a292;margin-left:auto}.sidebar-bottom{margin-top:auto;padding-top:26px}.you{display:flex;gap:10px;align-items:center;padding:15px 4px 0;border-top:1px solid #dbe4d8}.you strong{font-size:12px}.you small{display:block;margin-top:4px;color:#8b998a;font-size:10px}.you .icon-button{margin-left:auto;color:#839380}.icon-button{background:transparent;display:grid;place-items:center;width:30px;height:30px;border-radius:8px;font-size:22px;color:#6d897b;flex-shrink:0}.main-pane{background:#fdfcf8;display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}.room-header{height:137px;flex-shrink:0;padding:31px 35px 22px;display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid var(--line)}.eyebrow{font-size:9px;letter-spacing:1.7px;color:#9aa498;margin:0 0 8px;font-weight:500}.room-header h1{font-size:24px;font-weight:500;margin:0;letter-spacing:2px}.header-spark{display:inline-block;font-size:24px;color:#cb9868;margin-left:8px;font-weight:400}.room-header p:last-child{font-size:11px;color:#9aa293;margin:8px 0 0}.connection{font-size:10px;color:#85978b;display:flex;align-items:center;gap:6px;white-space:nowrap}.status-dot{width:6px;height:6px;border-radius:50%;background:#c0c6bc;display:inline-block;flex-shrink:0}.status-dot.online{background:#6ba58a;box-shadow:0 0 0 3px #6ba58a10}.status-dot.error{background:#c99157}.chat-pane{display:flex;flex-direction:column;flex:1;min-height:0;position:relative}.messages{overflow-y:auto;flex:1;padding:28px 35px 18px;scrollbar-width:thin;scrollbar-color:#d8e1d4 transparent;overscroll-behavior:contain}.empty-chat{min-height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:50px 10px}.empty-hearth{font-size:48px;color:#bd966b;display:grid;place-items:center;background:#f3f0e5;width:92px;height:92px;border-radius:45% 45% 40% 40%;margin-bottom:18px}.empty-chat h2{font-size:18px;font-weight:500;letter-spacing:1px;margin:5px 0 9px;color:#657f6b}.empty-chat p{font-size:12px;line-height:2;color:#a1aa9b;margin:0}.date-divider{display:flex;align-items:center;gap:14px;color:#a2ab9c;font-size:10px;margin:4px 0 27px}.date-divider:before,.date-divider:after{content:"";flex:1;height:1px;background:#edf0e7}.message{display:flex;align-items:flex-start;gap:11px;margin-bottom:25px}.message .avatar{height:33px;width:33px;margin-top:1px}.message-body{min-width:0;max-width:100%}.message-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-height:22px;margin-bottom:5px}.message-meta strong{font-size:12px;font-weight:600}.message-meta time{font-size:10px;color:#acb2a6;margin-left:2px}.role-label{font-size:9px;border:1px solid #e1e7db;border-radius:4px;padding:1px 4px;color:#8a9b83;background:#f4f6ef}.message-text{white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;font-size:13px;line-height:1.85;color:#556251}.message.own .message-text{background:#eaf1e7;padding:11px 15px;border-radius:0 10px 10px 10px}.message.own .message-body{max-width:calc(100% - 45px)}.composer{margin:7px 28px 0;background:#fff;border:1px solid #dfe6da;border-radius:13px;box-shadow:0 3px 10px #3e594003;flex-shrink:0;padding:13px 15px 10px}.composer:focus-within{border-color:#8bad97;box-shadow:0 0 0 3px #86a88b0c}.composer textarea{border:0;outline:none;background:transparent;padding:0;resize:vertical;width:100%;font-size:12px;min-height:65px;max-height:200px;line-height:1.7;color:#445d4a;display:block}.composer textarea:focus{outline:none}.composer textarea::placeholder{color:#acb4a5}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px}.composer-bottom>span{font-size:9px;color:#b1b9a9}.primary{background:var(--teal);color:#fffdf5;border:0;border-radius:7px;padding:10px 17px;display:inline-flex;align-items:center;justify-content:center;gap:13px;font-size:12px;font-weight:500;min-height:37px}.primary:hover{background:var(--teal-dark)}.chat-foot{font-size:9px;color:#adb6a5;text-align:center;padding:12px 15px 16px;margin:0}.new-messages{position:absolute;bottom:180px;left:50%;transform:translateX(-50%);background:var(--teal);color:white;border-radius:20px;padding:8px 15px;font-size:11px;box-shadow:0 3px 12px #223c3120}.work-pane{border-left:1px solid var(--line);background:#f5f6f0;padding:30px 24px 20px;overflow:auto;scrollbar-width:thin}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:10px}.section-heading h2{font-size:15px;font-weight:500;margin:0;letter-spacing:1px}.section-heading .eyebrow{font-size:8px;letter-spacing:1.2px;margin-bottom:8px}.count{font-size:10px;color:#97a28f;background:#e8ece2;border-radius:5px;padding:2px 5px;margin-left:4px;font-weight:400;vertical-align:middle}.add-button{border:1px solid #dce3d5;border-radius:8px;width:26px;height:26px;font-size:19px}.device-list{display:flex;flex-direction:column;gap:9px}.device-card{border:1px solid #e0e6d8;background:#fcfcf7;padding:14px 13px;border-radius:10px}.device-top{display:flex;gap:11px;align-items:center}.device-icon{display:grid;place-items:center;color:#78927d;background:#eaf0e5;width:35px;height:35px;border-radius:10px;flex-shrink:0}.device-icon svg{width:19px;height:19px}.device-info{min-width:0;flex:1}.device-info strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere}.device-info small{display:block;font-size:10px;color:#a0aa97;margin-top:5px}.device-state{font-size:9px;display:flex;align-items:center;gap:5px;color:#a1aa99;white-space:nowrap}.device-state.is-online{color:#7d9b70}.device-detail{font-size:9px;line-height:1.7;color:#a3ac9a;margin:10px 0 0 46px;overflow-wrap:anywhere}.text-button{display:inline-block;color:#7c947b;background:transparent;padding:12px 0;font-size:11px}.device-section>.text-button{font-size:10px;margin-top:1px}.task-section{border-top:1px solid #e0e6d9;padding-top:25px;margin-top:18px}.task-list{display:flex;flex-direction:column;gap:11px}.task-card{background:#fcfcf7;border:1px solid #e2e7da;border-radius:10px;padding:13px}.task-top{display:flex;align-items:flex-start;gap:8px;justify-content:space-between}.task-top h3{font-size:12px;margin:1px 0 0;font-weight:500;line-height:1.6;overflow-wrap:anywhere}.task-status{font-size:9px;padding:3px 5px;border-radius:4px;white-space:nowrap;background:#eaf0e5;color:#839979}.task-status.proposed,.task-status.queued{background:#f3ebdc;color:#b49561}.task-status.failed{background:#f5e8e2;color:#b37b66}.task-status.running{background:#e2eee9;color:#5b9580}.task-status.completed,.task-status.succeeded,.task-status.success{background:#e5eee0;color:#7a9669}.task-status.cancelled{background:#eeeee7;color:#a0a394}.task-caption{font-size:9px;line-height:1.8;color:#a4ac9a;margin:8px 0}.task-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.task-actions button{padding:6px 9px;border:1px solid #dce5d5;background:#f4f7ef;color:#719066;border-radius:5px;font-size:10px}.task-actions button.cancel{color:#a28c78;border-color:#e6e0d4;background:#f7f5ee}.task-card details{margin-top:9px;border-top:1px solid #edf0e6;padding-top:9px;font-size:10px;color:#8a9a7e}.task-card summary{cursor:pointer}.task-card pre{white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;line-height:1.7;background:#f2f4ec;padding:9px;border-radius:5px;max-height:300px;overflow:auto;color:#66795d}.task-prompt{line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:#7d8c72}.timeline{list-style:none;padding:0;margin:10px 0}.timeline li{padding:0 0 10px 13px;border-left:1px solid #dce5d4;position:relative;font-size:9px;line-height:1.5;color:#8b9b7e}.timeline li:before{content:"";position:absolute;width:5px;height:5px;left:-3px;top:4px;background:#a5b498;border-radius:50%}.timeline time{display:block;color:#a7b19d}.work-foot{font-size:10px;color:#adb69e;display:flex;align-items:center;gap:7px;margin-top:26px}.work-foot span{color:#b4a17d;font-size:17px}.panel-empty{padding:22px 12px;text-align:center;border:1px dashed #dce3d3;border-radius:10px;color:#9ca991;font-size:11px;line-height:1.9}.panel-empty strong{display:block;font-weight:500;color:#85967c;margin-bottom:5px}.error-banner{margin:12px 28px 0;border:1px solid #ead6c2;background:#fcf2e6;color:#a17850;border-radius:7px;padding:10px 12px;font-size:11px;line-height:1.7}.inline-error{color:var(--danger);font-size:11px;line-height:1.7;margin:8px 0;overflow-wrap:anywhere}.mobile-tabs{display:none}dialog{width:min(460px,calc(100vw - 30px));padding:27px;border:1px solid #dbe5d9;border-radius:17px;background:#fdfcf7;color:#3f5948;box-shadow:0 20px 80px #142d2826;max-height:90dvh;overflow:auto}dialog::backdrop{background:#253e3659;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.dialog-heading h2{font-size:18px;font-weight:500;margin:0}dialog p{font-size:12px;line-height:1.9}label,.field-label{display:block;font-size:11px;color:#7c917b;margin:15px 0 7px}input,select{display:block;width:100%;padding:12px;border:1px solid #dce5d6;border-radius:7px;background:white;color:#526b51;font-size:12px}dialog textarea{width:100%;padding:11px;border:1px solid #dce5d6;border-radius:7px;background:white;resize:vertical;color:#526b51;font-size:12px;line-height:1.8}.muted{color:#9ca58f;font-size:11px}.wide{width:100%;margin-top:18px}.pair-code{display:block;background:#ebf1e4;color:#63825c;border:1px dashed #bdcdb0;border-radius:8px;padding:17px;font-size:22px;letter-spacing:3px;text-align:center;overflow-wrap:anywhere}.link-button{margin-top:12px}.pair-code+ .muted{font-size:10px}dialog pre{font-size:12px;padding:12px;border-radius:7px;background:#edf2e7;overflow:auto;color:#607c59}dialog .text-button{display:block}.gate{min-height:100dvh;display:flex;justify-content:center;align-items:center;flex-direction:column;padding:32px 20px;background:radial-gradient(ellipse at 20% 15%,#deebe3 0,transparent 50%),radial-gradient(ellipse at 90% 90%,#eee4d2 0,transparent 50%),#f4f5ed}.gate-card{width:min(400px,100%);padding:36px 37px 30px;background:#fdfcf6ee;border:1px solid #ffffff;border-radius:22px;box-shadow:0 15px 60px #57674e0a}.gate-card>.hearth-mark{margin-bottom:26px}.gate-card .eyebrow{font-size:8px;letter-spacing:1.5px;color:#a0ac95}.gate-card h1{font-size:27px;letter-spacing:2px;font-weight:500;margin:9px 0}.gate-subtitle{font-size:13px;color:#99a38d;letter-spacing:2px}.gate-art{height:86px;position:relative;margin:24px 0 20px;background:linear-gradient(0deg,#e9eddf 0 2px,transparent 2px)}.gate-art span{position:absolute;width:62px;height:57px;background:#e2b17e;bottom:2px;left:43%;border-radius:60% 5% 50% 50%;transform:rotate(-38deg);opacity:.7}.gate-art i{position:absolute;width:25px;height:37px;background:#f7d5a2;bottom:1px;left:49%;border-radius:60% 5% 50% 50%;transform:rotate(-20deg)}.gate-art b{position:absolute;bottom:0;left:32%;width:120px;height:8px;border-radius:8px;background:#d9c7a7}.gate-card label{font-size:12px}.gate-status{font-size:11px;line-height:1.8;color:#a1aa94;margin:16px 0 0;min-height:20px}.gate-status.error{color:var(--danger)}.gate-foot{color:#a3ad97;font-size:10px;letter-spacing:1px;margin-top:22px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1450px){.app{grid-template-columns:245px minmax(500px,1fr) 370px}.sidebar{padding:38px 25px 24px}.room-header{padding:33px 46px}.messages{padding-left:46px;padding-right:46px}.composer{margin-left:38px;margin-right:38px}.work-pane{padding:34px 30px}}@media(max-width:1100px){.app{grid-template-columns:184px minmax(300px,1fr) 290px}.sidebar{padding:28px 14px 18px}.brand{font-size:14px;gap:8px}.brand small{font-size:8px;letter-spacing:1px}.hearth-mark.small{height:35px;width:33px;font-size:18px}.sidebar-note{font-size:10px}.room-header{padding:26px 25px;height:126px}.connection{font-size:9px}.messages{padding:23px}.work-pane{padding:28px 17px 18px}.composer{margin-left:18px;margin-right:18px}.section-heading .eyebrow{font-size:7px}.device-state{font-size:8px}.device-card{padding:11px}.device-top{gap:8px}.device-detail{margin-left:0}.device-icon{height:29px;width:29px}.device-info strong{font-size:11px}.task-card{padding:11px}}@media(max-width:850px){.app{grid-template-columns:68px minmax(290px,1fr) 280px}.sidebar{padding:25px 10px 17px;align-items:center}.brand>span:last-child,.sidebar-rule,.section-label,.sidebar-note,.live-tag,.person strong,.person small,.you>div,.you .icon-button{display:none}.space-link{font-size:0;padding:13px 8px;margin-top:28px;gap:0}.space-link>span:first-child{font-size:21px}.people-section{margin-top:32px}.actors{padding:0;gap:14px}.sidebar-bottom{width:100%}.you{justify-content:center;padding-top:16px}.room-header{padding:23px 22px}.room-header h1{font-size:22px}.room-header .connection{max-width:94px;white-space:normal;line-height:1.6}.messages{padding:22px}.composer-bottom>span{font-size:8px}}@media(max-width:690px){body{background:#fdfcf8}.app{min-height:0;grid-template-columns:1fr;height:100dvh;overflow:hidden}.sidebar{display:none}.main-pane{height:100dvh;min-height:0}.room-header{padding:19px 21px 15px;height:107px;align-items:center}.room-header .eyebrow{font-size:8px;letter-spacing:1.3px}.room-header h1{font-size:23px}.room-header h1:before{content:"明谦的"}.room-header p:last-child{font-size:10px;margin-top:6px}.room-header .connection{max-width:130px;font-size:9px}.mobile-tabs{display:flex;flex-shrink:0;border-bottom:1px solid var(--line);padding:0 21px;gap:28px;background:#fdfcf8;height:43px}.mobile-tabs button{background:transparent;color:#a0ad94;font-size:12px;position:relative;padding:0 6px}.mobile-tabs button.selected{color:#548164}.mobile-tabs button.selected:after{content:"";height:3px;position:absolute;bottom:0;left:5px;right:5px;border-radius:4px;background:#6d9979}.work-pane{display:none;position:absolute;top:150px;bottom:0;left:0;right:0;border:0;padding:24px 22px 35px}.app[data-view="tasks"] .chat-pane,.app[data-view="devices"] .chat-pane{display:none}.app[data-view="tasks"] .work-pane,.app[data-view="devices"] .work-pane{display:block}.app[data-view="tasks"] .device-section,.app[data-view="devices"] .task-section{display:none}.app[data-view="tasks"] .task-section{border:0;margin:0;padding:0}.error-banner{margin:10px 16px 0}.app[data-view="tasks"] .error-banner,.app[data-view="devices"] .error-banner{position:absolute;top:150px;left:0;right:0;z-index:2}.app:has(.error-banner:not([hidden])) .work-pane{padding-top:80px}.messages{padding:23px 20px 14px}.message{gap:9px;margin-bottom:24px}.message-text{font-size:13px}.composer{margin:3px 12px 0;padding:11px 12px 9px;border-radius:11px}.composer textarea{min-height:57px;max-height:140px;font-size:13px}.composer-bottom>span{font-size:9px}.composer .primary{min-height:34px;padding:8px 14px}.chat-foot{font-size:8px;padding:9px 10px max(12px,env(safe-area-inset-bottom))}.empty-chat{padding:30px 0}.empty-chat h2{font-size:17px}.empty-chat p{font-size:11px}.empty-hearth{width:78px;height:78px;font-size:41px}.task-card{padding:16px}.task-top h3{font-size:13px}.task-caption{font-size:10px}.device-card{padding:17px 15px}.device-info strong{font-size:13px}.device-icon{width:36px;height:36px}.device-state{font-size:10px}.device-info small{font-size:11px}.device-detail{font-size:10px;margin-left:44px}.work-foot{margin-top:23px}.section-heading .eyebrow{font-size:8px}.new-messages{bottom:165px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Readability: keep the same layout while giving working text room to read. */
:root{--muted:#65745f}
.brand small{font-size:12px;letter-spacing:.5px;color:#61775e}
.section-label{font-size:12px;color:#60755c}
.live-tag{font-size:12px;color:#5f755a}
.sidebar-note{font-size:12px;color:#677a62}
.person strong,.you strong{font-size:13px}
.person small,.you small{font-size:12px;color:#61745a}
.eyebrow,.section-heading .eyebrow,.gate-card .eyebrow{color:#64745c}
.room-header p:last-child{font-size:12px;color:#68745f}
.connection{font-size:12px;color:#60755e}
.date-divider{font-size:12px;color:#69795f}
.empty-chat h2{color:#526e54}
.empty-chat p{font-size:13px;color:#6c795f}
.message-meta strong{font-size:14px}
.message-meta time{font-size:12px;color:#6c775f}
.role-label{font-size:12px;color:#5d7454;border-color:#d7e0ce}
.message-text{font-size:15px;line-height:1.85;color:#40523d}
.composer textarea{font-size:14px;color:#40563d}
.composer textarea::placeholder{color:#6a795f}
.composer-bottom>span{font-size:12px;color:#6e7b61}
.primary{font-size:13px}
.chat-foot{font-size:12px;color:#6d795f}
.count{font-size:12px;color:#5e7152}
.device-info strong{font-size:13px}
.device-info small{font-size:12px;color:#68785c}
.device-state{font-size:12px;color:#69775d}
.device-state.is-online{color:#577447}
.device-detail{font-size:12px;color:#65745a}
.text-button,.device-section>.text-button{font-size:12px;color:#526f4e}
.task-top h3{font-size:14px;color:#40553b}
.task-status{font-size:12px;color:#536e47}
.task-status.proposed,.task-status.queued{color:#7d6534}
.task-status.failed{color:#8b533f}
.task-status.running{color:#3d705c}
.task-status.completed,.task-status.succeeded,.task-status.success{color:#536f42}
.task-status.cancelled,.task-status.canceled{color:#666c59}
.task-status.unknown{color:#825a36;background:#f3e7d8}
.task-caption{font-size:12px;color:#68755c}
.task-actions button{font-size:12px;color:#4d6d40}
.task-actions button.cancel{color:#7b6550}
.task-card details{font-size:12px;color:#5b7050}
.task-card pre{font-size:12px;color:#4e6643}
.task-prompt{font-size:13px;color:#5b6d50}
.timeline li{font-size:12px;color:#60724f}
.timeline time{color:#6c795e}
.panel-empty{font-size:12px;color:#68795a}
.panel-empty strong{color:#58714b}
.work-foot{font-size:12px;color:#6e795c}
.error-banner,.inline-error{font-size:12px}
label,.field-label{font-size:12px;color:#5b7354}
input,select,dialog textarea{font-size:13px;color:#435e42}
input::placeholder,dialog textarea::placeholder{color:#708064}
.muted{font-size:12px;color:#69765d}
.pair-code+.muted{font-size:12px}
.gate-subtitle{color:#63765a}
.gate-status,.gate-foot{font-size:12px;color:#69775b}
@media(max-width:1100px){
  .brand small{font-size:12px;letter-spacing:0}
  .room-header .connection{font-size:12px}
  .device-info strong{font-size:13px}
  .device-state{font-size:12px}
}
@media(max-width:690px){
  .room-header p:last-child,.room-header .connection{font-size:12px}
  .empty-chat p{font-size:13px}
  .message-text{font-size:15px}
  .composer textarea{font-size:14px}
  .composer-bottom>span,.chat-foot{font-size:12px}
  .task-top h3{font-size:14px}
  .task-caption,.device-info small,.device-state,.device-detail{font-size:12px}
}
.new-messages{font-size:12px}
