:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#111;background:#fff;color-scheme:light;overscroll-behavior:none}html,body,#root{min-height:100%}html{background:#fff;overscroll-behavior:none}body{margin:0;background:#fff;overscroll-behavior:none;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;text-rendering:optimizeLegibility}button,input,textarea,select,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.app-shell{min-height:100vh;display:grid;place-items:center}.phone-frame{width:min(390px,calc(100vw - 24px));min-height:780px;border:2px solid #111111;border-radius:42px;background:#fff;padding:18px;box-sizing:border-box;position:relative;overflow:hidden}.screen{min-height:744px;position:relative}.home-screen{height:744px;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;padding-bottom:8px;scrollbar-width:none}.home-screen::-webkit-scrollbar{display:none}.pairing-screen{min-height:744px;display:grid;align-content:center;gap:16px;padding:0 8px 54px;box-sizing:border-box}.pairing-brand{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:12px;font-size:24px;font-weight:850}.pairing-brand .icon{width:34px;height:34px}.pairing-field{display:grid;gap:8px;font-size:13px;font-weight:800;color:#737373}.pairing-field input{width:100%;height:48px;border:1px solid #eeeeef;border-radius:16px;background:#f7f7f8;box-sizing:border-box;padding:0 14px;color:#111;font:inherit;font-weight:700}.pairing-button{height:46px;border:0;border-radius:999px;background:#111;color:#fff;font-weight:850}.pairing-button:disabled{background:#d4d4d8;cursor:not-allowed}.pairing-secondary{height:44px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;color:#111;font-weight:850}.pairing-status{margin:2px 0 0;text-align:center;color:#a1a1aa;font-size:12px;font-weight:800}.pairing-tutorial{height:744px;min-height:0;padding:38px 6px 18px;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch}.pairing-tutorial::-webkit-scrollbar{display:none}.tutorial-header{position:relative;display:flex;align-items:center;justify-content:center;min-height:42px;margin-bottom:18px}.tutorial-header button{position:absolute;left:0;border:0;border-radius:999px;background:#fff;padding:10px 14px;color:#555;font-weight:850}.tutorial-header h1{margin:0;font-size:18px}.tutorial-intro{display:flex;align-items:flex-start;gap:12px;border-radius:22px;background:#fff;padding:14px;margin-bottom:14px}.tutorial-intro .icon{width:34px;height:34px;flex:0 0 auto}.tutorial-intro strong{display:block;margin-bottom:4px;font-weight:900}.tutorial-intro p,.tutorial-steps p{margin:0;color:#71717a;font-size:12px;line-height:1.55;font-weight:700}.tutorial-connect{display:grid;gap:10px;border-radius:22px;background:#fff;padding:14px;margin-bottom:14px}.tutorial-connect .pairing-status{margin:0}.tutorial-steps{display:grid;gap:10px;margin:0;padding:0;list-style:none;counter-reset:tutorial-step}.tutorial-steps li{counter-increment:tutorial-step;border-radius:22px;background:#fff;padding:14px}.tutorial-steps li:before{content:counter(tutorial-step);display:inline-grid;place-items:center;width:24px;height:24px;border-radius:999px;background:#111;color:#fff;font-size:12px;font-weight:900;margin-right:8px}.tutorial-steps strong{font-size:14px;font-weight:900}.tutorial-steps .command-box{margin:10px 0 0}.command-box{position:relative}.command-box pre{margin:0;border-radius:14px;background:#111;color:#f8fafc;font-size:12px;line-height:1.6;overflow-x:auto;padding:42px 12px 12px;white-space:pre-wrap;word-break:break-word}.command-copy-button{position:absolute;top:8px;right:8px;min-height:26px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:#ffffff1a;color:#f8fafc;padding:0 10px;font-size:11px;font-weight:850}.command-copy-button:active{transform:translateY(1px)}.token-generator{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;margin-top:12px}.token-generator span{min-width:0;border-radius:12px;background:#f4f4f5;padding:10px;color:#111;font-size:12px;font-weight:900;overflow-wrap:anywhere}.token-generator button{min-height:36px;border:0;border-radius:999px;background:#111;color:#fff;padding:0 12px;font-size:12px;font-weight:850;white-space:nowrap}.tutorial-token-field{display:grid;gap:7px;margin-top:12px}.tutorial-token-field span{color:#71717a;font-size:12px;font-weight:850}.tutorial-token-field input{width:100%;min-height:38px;border:1px solid #eeeeef;border-radius:12px;box-sizing:border-box;background:#fafafa;padding:0 10px;color:#111;font:inherit;font-size:12px;font-weight:750}.home-header,.thread-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:800}.icon{width:22px;height:22px;object-fit:contain;flex:0 0 auto}.brand .icon{width:30px;height:30px}.header-actions{display:flex;gap:10px}button{font:inherit}.circle-button,.icon-only{width:44px;height:44px;border:1px solid #eeeeef;border-radius:999px;background:#ffffffe0;box-shadow:0 12px 28px #0f172a14;display:grid;place-items:center;padding:0}.search-input{width:100%;box-sizing:border-box;margin:18px 0 14px;height:44px;border:1px solid #eeeeef;border-radius:18px;background:#f7f7f8;padding:0 16px;color:#777;font:inherit}.segmented{display:flex;gap:10px;margin-bottom:18px}.segment{border:0;border-radius:999px;padding:10px 18px;background:#f4f4f5;font-weight:800}.segment.active{background:#348df6;color:#fff}.home-sync-hint{min-height:26px;display:inline-flex;align-items:center;gap:8px;border-radius:999px;background:#f7f7f8;color:#71717a;padding:0 10px;font-size:12px;font-weight:800}.home-sync-hint .connection-dot{width:7px;height:7px;box-shadow:none}.home-sync-hint.online{background:#f4fbf6;color:#15803d}.home-sync-hint.abnormal{background:#fffbeb;color:#a16207}.home-sync-hint.offline{background:#fff1f2;color:#dc2626}.system-status-banner{width:100%;min-height:48px;box-sizing:border-box;display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:9px;margin:10px 0 2px;border:1px solid #e4e7eb;border-radius:8px;background:#f7f8fa;padding:8px 10px;color:#3f4650}.system-status-banner__indicator,.sync-status-line__indicator{width:8px;height:8px;border-radius:50%;background:#8b949e}.system-status-banner__content{min-width:0;display:grid;gap:1px}.system-status-banner__title{font-size:12px;font-weight:800}.system-status-banner__detail{margin:0;overflow:hidden;color:currentColor;font-size:10px;font-weight:650;line-height:1.3;opacity:.76;text-overflow:ellipsis;white-space:nowrap}.system-status-banner__actions{display:flex;align-items:center;gap:4px}.system-status-banner__action,.sync-status-line__action{min-height:40px;border:0;border-radius:6px;background:#ffffffc7;color:inherit;display:inline-flex;align-items:center;gap:4px;padding:0 8px;font-size:10px;font-weight:800;white-space:nowrap}.system-status-banner__action .icon,.sync-status-line__action .icon{width:13px;height:13px}.system-status-banner--checking,.system-status-banner--agent_checking,.system-status-banner--recovering{border-color:#c9d8e8;background:#f0f6fc;color:#255f8f}.system-status-banner--checking .system-status-banner__indicator,.system-status-banner--agent_checking .system-status-banner__indicator,.system-status-banner--recovering .system-status-banner__indicator{background:#2f8df7;animation:status-pulse 1.25s ease-in-out infinite}.system-status-banner--reconnecting,.system-status-banner--agent_stale{border-color:#ead8a3;background:#fff9e8;color:#805b08}.system-status-banner--reconnecting .system-status-banner__indicator,.system-status-banner--agent_stale .system-status-banner__indicator{background:#d6a300}.system-status-banner--disconnected,.system-status-banner--auth_error,.system-status-banner--agent_offline{border-color:#f1c1c4;background:#fff4f4;color:#a62a32}.system-status-banner--disconnected .system-status-banner__indicator,.system-status-banner--auth_error .system-status-banner__indicator,.system-status-banner--agent_offline .system-status-banner__indicator{background:#dc3f49}.system-status-banner--recovered,.system-status-banner--connected{border-color:#bddfc7;background:#f1f9f3;color:#25643a}.system-status-banner--recovered .system-status-banner__indicator,.system-status-banner--connected .system-status-banner__indicator{background:#2fa557}.sync-status-line{min-height:32px;display:flex;align-items:center;gap:8px;margin-top:10px;border-bottom:1px solid #eceef1;padding:0 2px 8px;color:#676e78;font-size:11px}.sync-status-line__content{min-width:0;flex:1;display:flex;align-items:baseline;gap:6px;overflow:hidden}.sync-status-line__title{flex:0 0 auto;font-weight:800}.sync-status-line__detail{overflow:hidden;opacity:.78;text-overflow:ellipsis;white-space:nowrap}.sync-status-line--initial_sync .sync-status-line__indicator,.sync-status-line--refreshing .sync-status-line__indicator{box-sizing:border-box;border:2px solid #c7d8ea;border-top-color:#2f8df7;background:transparent;animation:status-spin .8s linear infinite}.sync-status-line--fresh{color:#297044}.sync-status-line--fresh .sync-status-line__indicator{background:#2fa557}.sync-status-line--stale{color:#805b08}.sync-status-line--stale .sync-status-line__indicator{background:#d6a300}.sync-status-line--error{color:#a62a32}.sync-status-line--error .sync-status-line__indicator{background:#dc3f49}.session-skeleton{display:grid;gap:12px;padding:12px 0}.session-skeleton span{height:42px;border-radius:6px;background:linear-gradient(90deg,#f2f3f5 25%,#e8eaed,#f2f3f5 75%);background-size:200% 100%;animation:skeleton-slide 1.3s ease-in-out infinite}@keyframes status-spin{to{transform:rotate(360deg)}}@keyframes status-pulse{50%{opacity:.42}}@keyframes skeleton-slide{to{background-position:-200% 0}}.thread-section{margin-top:18px}.thread-section h2,.section-heading{font-size:16px;font-weight:800;margin:0 0 12px}.section-heading{display:flex;align-items:center;justify-content:space-between}.thread-row{width:100%;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;text-align:left;color:#171717;cursor:pointer}.thread-row.highlighted{border-radius:14px;background:#fafafa;padding:12px}.thread-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-row small{color:#b3b3b8;white-space:nowrap}.project-row{width:100%;min-height:44px;box-sizing:border-box;border:0;background:transparent;display:flex;align-items:center;gap:12px;padding:10px 0;color:#171717;text-align:left}.project-session-list{margin:-2px 0 8px}.project-session-row{min-height:40px;padding:8px 0}.project-main{min-width:0;flex:1}.project-main strong{display:block;overflow:hidden;color:#171717;font-size:15px;font-weight:780;text-overflow:ellipsis;white-space:nowrap}.project-time{color:#a1a1aa;font-size:12px;font-weight:700;white-space:nowrap}.project-time{flex:0 0 auto}.home-shortcuts{position:sticky;bottom:0;z-index:4;display:flex;align-items:center;gap:8px;margin-top:22px;background:#fffffff0;padding:8px 0 2px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.shortcut,.chat-button{border:1px solid #eeeeef;border-radius:14px;background:#fff;min-height:44px;padding:0 12px;display:flex;align-items:center;gap:8px;font-weight:800}.shortcut.muted{color:#777}.chat-button{margin-left:auto;border-radius:999px;background:#2f8df7;color:#fff;border-color:#2f8df7}.chat-button .icon{filter:brightness(0) invert(1)}.thread-screen{display:flex;flex-direction:column;min-height:744px;overflow:hidden}.thread-header{align-items:flex-start;flex:0 0 auto;min-height:42px;position:sticky;top:0;z-index:12;padding-bottom:8px;background:linear-gradient(180deg,#fff 72%,#fff0)}.thread-header .circle-button{width:44px;height:44px;border:0;background:#ffffffd1;box-shadow:0 8px 22px #0f172a14}.thread-title{min-width:0;display:grid;flex:1;justify-items:center;gap:1px;padding-top:4px;line-height:1.15}.thread-title strong{max-width:178px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:760}.thread-title small{max-width:150px;overflow:hidden;color:#9a9aa0;font-size:10px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.pill-actions{min-height:44px;display:flex;align-items:center;gap:10px;border:0;border-radius:999px;padding:0 6px;background:#fffc;box-shadow:0 8px 22px #0f172a14;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.pill-actions button{width:36px;height:40px;border:0;background:transparent;padding:0;display:grid;place-items:center}.pill-actions .icon{width:18px;height:18px}.thread-header .connection-dot{width:8px;height:8px}.empty-thread{display:grid;justify-items:center;margin:30px 0 26px;text-align:center}.empty-thread .icon{width:58px;height:58px;margin-bottom:16px}.empty-thread h1{font-size:22px;font-weight:500;margin:0}.empty-thread p{color:#c5c7ce;font-size:12px;margin:8px 0 0}.thread-loading{flex:1 1 auto;display:grid;align-content:start;gap:12px;padding:28px 4px}.thread-loading span{width:min(76%,250px);height:48px;border-radius:7px;background:linear-gradient(90deg,#f2f3f5 25%,#e8eaed,#f2f3f5 75%);background-size:200% 100%;animation:skeleton-slide 1.3s ease-in-out infinite}.thread-loading span:nth-child(2){width:min(58%,210px);justify-self:end}.thread-loading span:nth-child(3){width:min(68%,230px)}.thread-sync-empty{flex:1 1 auto;display:grid;place-content:center;justify-items:center;gap:8px;padding:24px 18px;text-align:center}.thread-sync-empty>.icon{width:34px;height:34px;opacity:.58}.thread-sync-empty h1{margin:0;font-size:16px}.thread-sync-empty p{margin:0;color:#737a84;font-size:12px;line-height:1.5}.thread-sync-empty button{min-height:42px;border:1px solid #dce1e7;border-radius:6px;background:#fff;display:inline-flex;align-items:center;gap:6px;margin-top:4px;padding:0 12px;font-size:12px;font-weight:800}.thread-sync-empty button .icon{width:15px;height:15px}.composer{flex:0 0 auto;margin-top:10px;border:1px solid #eceef2;background:#ffffffeb;border-radius:18px;box-shadow:0 10px 28px #0f172a0d;padding:10px 11px;position:relative;z-index:12}.composer-file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.composer-attachments{display:flex;gap:8px;margin:0 0 9px;overflow-x:auto;padding:2px;scrollbar-width:none}.composer-attachments::-webkit-scrollbar{display:none}.composer-attachment{position:relative;width:64px;height:64px;flex:0 0 64px;margin:0;border:1px solid #e5e7eb;border-radius:8px;background:#f4f5f7}.composer-attachment img{width:100%;height:100%;display:block;border-radius:inherit;object-fit:cover}.composer-attachment button{position:absolute;top:-7px;right:-7px;width:22px;height:22px;display:grid;place-items:center;border:2px solid #ffffff;border-radius:999px;background:#30343b;color:#fff;font:inherit;font-size:16px;font-weight:700;line-height:1;padding:0 0 2px}.chips{display:flex;flex-wrap:nowrap;gap:6px;margin-bottom:10px;overflow-x:auto;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chip{border-radius:999px;padding:5px 8px;font-size:11px;font-weight:700;white-space:nowrap}.chip.blue{background:#eef6ff;color:#2563eb}.chip.purple{background:#f5f1ff;color:#7c3aed}.chip.cyan{background:#eef9fb;color:#0284c7}.composer-input-row{display:flex;align-items:center;min-height:34px;gap:8px}.composer-add-button{width:24px;height:24px;border:0;border-radius:999px;background:transparent;display:grid;place-items:center;padding:0;flex:0 0 auto}.composer-add-button[aria-expanded=true]{background:#f4f5f7}.composer-add-button .icon{width:18px;height:18px;opacity:.72}.composer-add-menu{position:absolute;left:8px;bottom:52px;z-index:14;width:min(326px,calc(100vw - 56px));max-height:min(430px,calc(100dvh - 190px));display:grid;grid-template-columns:minmax(132px,.88fr) minmax(148px,1fr);overflow:hidden;border:1px solid rgba(228,231,236,.92);border-radius:14px;background:#fffffff7;box-shadow:0 18px 44px #0f172a29;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.composer-context-chips{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:6px;min-width:0;padding:10px;border-bottom:1px solid #eef0f3}.composer-menu-list,.composer-plugin-list{min-width:0;overflow-y:auto;scrollbar-width:none}.composer-menu-list::-webkit-scrollbar,.composer-plugin-list::-webkit-scrollbar{display:none}.composer-menu-list{display:grid;align-content:start;gap:2px;padding:6px;border-right:1px solid #eef0f3}.composer-menu-item,.composer-plugin-item{width:100%;min-width:0;min-height:34px;border:0;border-radius:8px;background:transparent;color:#25272d;display:flex;align-items:center;gap:8px;padding:0 8px;text-align:left;font-size:12px;font-weight:720}.composer-menu-item:hover,.composer-plugin-item:hover{background:#f6f7f8}.composer-menu-item .icon,.composer-plugin-item .icon{width:16px;height:16px;opacity:.78}.composer-menu-item span,.composer-plugin-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer-chevron{margin-left:auto;color:#a1a1aa;font-size:18px;line-height:1}.composer-toggle{width:28px;height:17px;border-radius:999px;background:#e5e7eb;position:relative;margin-left:auto;flex:0 0 auto}.composer-toggle:after{content:"";position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:999px;background:#fff;box-shadow:0 1px 3px #0f172a29}.composer-toggle.on{background:#34c759}.composer-toggle.on:after{left:13px}.composer-plugin-list{display:grid;align-content:start;gap:2px;padding:9px 7px 7px}.composer-plugin-list small{padding:0 8px 4px;color:#a1a1aa;font-size:11px;font-weight:760}.composer-textarea-row{margin-bottom:9px}.composer-feedback{min-height:28px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-2px 0 8px;border-radius:6px;background:#f6f7f8;color:#6b7280;padding:5px 8px;font-size:10px;font-weight:700;line-height:1.35}.composer-feedback.error{background:#fff1f2;color:#a62a32}.composer-feedback button{min-height:26px;flex:0 0 auto;border:0;border-radius:5px;background:#fff;color:inherit;padding:0 8px;font-size:10px;font-weight:850}.composer-input-row .icon{width:18px;height:18px;opacity:.62}.composer-textarea-row textarea{width:100%;min-height:48px;max-height:128px;border:0;outline:0;resize:none;box-sizing:border-box;background:transparent;color:#111;font:inherit;font-size:15px;line-height:1.45;padding:2px 0}.composer-textarea-row textarea::placeholder{color:#a1a1aa}.composer-input-row input{min-width:0;flex:1;border:0;outline:0;font:inherit;font-size:14px;color:#111;text-overflow:ellipsis}.agent-selector-button,.model-selector-button{min-width:0;height:28px;border:0;border-radius:999px;background:#f4f5f7;color:#2f343b;display:inline-flex;align-items:center;gap:4px;padding:0 8px;font-size:12px;font-weight:800;white-space:nowrap}.model-selector-button{flex:0 0 auto;padding:0 7px;color:#5f6368;font-size:11px;font-weight:800}.reasoning-selector-button{padding:0 7px}.agent-selector-button .icon{width:15px;height:15px;opacity:.72}.agent-menu,.model-menu,.reasoning-menu{position:absolute;bottom:54px;width:176px;z-index:8;border:1px solid rgba(228,231,236,.9);border-radius:14px;background:#fffffff5;box-shadow:0 16px 36px #0f172a24;padding:6px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.agent-menu{right:42px}.model-menu{right:48px;width:min(280px,calc(100vw - 32px));max-height:min(60vh,420px);overflow-y:auto}.reasoning-menu{right:52px;width:150px}.agent-option{width:100%;min-height:40px;border:0;border-radius:10px;background:transparent;color:#1f2937;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 10px;text-align:left}.agent-option span{font-size:13px;font-weight:850}.agent-option small{color:#8a9099;font-size:11px;font-weight:750;white-space:nowrap}.model-menu .agent-option{min-height:54px;align-items:flex-start;justify-content:center;flex-direction:column;gap:2px;padding:7px 10px}.model-menu .agent-option span{width:100%;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.model-menu .agent-option small{width:100%;line-height:1.3;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.agent-option.active{background:#eef6ff;color:#2563eb}.send-button{width:30px;height:30px;border:0;border-radius:999px;background:#2f8df7;display:grid;place-items:center;margin-left:auto;flex:0 0 auto}.send-button .icon{width:16px;height:16px;filter:brightness(0) invert(1);opacity:1}.composer-textarea-row textarea:disabled,.composer-input-row input:disabled{color:#9ca3af;background:transparent}.send-button:disabled{background:#cbd5e1;cursor:not-allowed}.message-flow{display:flex;flex:1 1 auto;flex-direction:column;align-items:stretch;gap:13px;margin:12px -6px 0 0;padding:2px 6px 12px 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}.message-flow::-webkit-scrollbar{display:none}.message-flow-end{flex:0 0 1px}.message-delivery{display:block;margin-top:5px;color:#8a9099;font-size:10px;font-weight:700;text-align:right}.message-delivery--failed,.message-delivery--uncertain{color:#b33a42}.message-delivery--completed{color:#297044}.message-card{max-width:100%;border:0;border-radius:0;background:transparent;box-shadow:none;color:#242424;font-size:14px;line-height:1.55;padding:0 4px}.message-card>strong{display:block;margin:0 0 5px;color:#4b5563;font-size:13px;font-weight:650}.message-card>p{margin:0;line-height:1.58;white-space:pre-wrap;word-break:break-word}.message-attachments{width:min(260px,68vw);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:0 0 8px}.message-attachments.single{grid-template-columns:minmax(0,1fr)}.message-attachments img{width:100%;aspect-ratio:4 / 3;display:block;border-radius:8px;background:#f4f5f7;object-fit:contain}.assistant-card{align-self:stretch}.assistant-card .message-markdown{color:#242424;font-size:15px;line-height:1.72;word-break:break-word}.message-markdown p{margin:0 0 14px;white-space:pre-wrap}.message-markdown p:last-child,.message-markdown ol:last-child,.message-markdown ul:last-child,.message-markdown pre:last-child{margin-bottom:0}.message-markdown strong{color:inherit;font-size:inherit;font-weight:820}.message-markdown ol,.message-markdown ul{margin:0 0 14px;padding-left:23px}.message-markdown li{margin:7px 0;padding-left:2px}.message-markdown a{color:#147ad6;font-weight:680;text-decoration:underline;text-underline-offset:2px}.message-markdown code{border-radius:5px;background:#f2f3f5;color:#3b3f45;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.92em;padding:1px 4px}.message-code-block{margin:0 0 14px;overflow-x:auto;border:1px solid #eceef2;border-radius:10px;background:#f8f9fb;padding:10px}.message-code-block code{background:transparent;padding:0}.user-card{align-self:flex-end;max-width:80%;border:0;border-radius:20px 20px 7px;background:#0a84ff;box-shadow:none;color:#fff;padding:10px 13px}.user-card strong{display:none}.user-card p{color:inherit;line-height:1.45}.system-card{align-self:center;max-width:92%;border-radius:999px;background:#f4f4f5;color:#6b7280;font-size:12px;padding:6px 10px}.success-card{align-self:stretch;border:1px solid #dfeee3;border-radius:10px;background:#f8fdf9;color:#367a49;font-size:13px;padding:8px 10px}.warning-card{align-self:stretch;border:1px solid #ffe1bc;border-radius:10px;background:#fffaf3;color:#9a4f00;font-size:13px;padding:9px 10px}.activity-card{position:relative;align-self:stretch;overflow:hidden;border:1px solid #e5e7eb;border-radius:10px;background:#ffffffc7;box-shadow:none;color:#42464d;padding:0}.activity-card:before{display:none}.activity-card strong{min-height:29px;display:flex;align-items:center;gap:7px;border-bottom:1px solid #f0f1f3;color:#7d838d;font-size:12px;font-weight:650;padding:6px 10px}.activity-card strong:before{content:"";width:10px;height:10px;border:1px solid #cfd4dc;border-radius:3px;background:#f8fafc;flex:0 0 auto}.activity-card p{margin:0;color:#242a31;font-size:13px;line-height:1.5;padding:8px 10px;white-space:pre-wrap;word-break:break-word}.thinking-phase strong:before{border-color:#2f8df740;border-radius:999px;background:#2f8df7;box-shadow:0 0 0 3px #2f8df71f}.command-phase strong:before{border-color:#d1d5db;background:#9ca3af}.approval-card{align-self:stretch;border:1px solid #eceff3;border-radius:10px;background:#fafafa;box-shadow:none;color:#262626;padding:10px}.approval-card.approved{border-color:#dcefe2;background:#f8fdf9}.approval-card.rejected{border-color:#e5e7eb;background:#f8fafc}.approval-card strong{font-size:13px;font-weight:700}.approval-card p{margin:5px 0 10px;color:#6b7280;font-size:13px;line-height:1.45}.approval-actions{display:flex;gap:8px}.primary-action,.secondary-action{flex:1;min-height:34px;border-radius:8px;font-weight:750}.primary-action{border:0;background:#111;color:#fff}.secondary-action{border:1px solid #e5e7eb;background:#fff}.action-popover{position:absolute;top:72px;right:0;width:238px;z-index:5;border:1px solid rgba(255,255,255,.72);border-radius:24px;background:#ffffffd1;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 22px 60px #0f172a29;padding:16px}.action-popover small{color:#9ca3af;font-weight:800}.git-status-line,.git-branch-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.git-status-badge,.branch-pill,.change-files{min-width:0;border-radius:999px;font-size:11px;font-weight:850;line-height:1}.git-status-badge{flex:0 0 auto;padding:6px 8px;background:#f4f4f5;color:#71717a}.git-status-badge.ready{background:#eefbf2;color:#15803d}.git-status-badge.loading{background:#eef6ff;color:#2563eb}.git-status-badge.error,.git-status-badge.git_unavailable,.git-status-badge.not_git_repo{background:#fff7ed;color:#c2410c}.git-branch-line{margin-top:10px}.branch-pill{flex:1;overflow:hidden;background:#f7f7f8;color:#27272a;padding:7px 9px;text-overflow:ellipsis;white-space:nowrap}.change-files{flex:0 0 auto;color:#8a8f98;white-space:nowrap}.change-summary{display:flex;align-items:center;gap:14px;margin:13px 0 10px}.added{color:#16a34a}.removed{color:#dc2626}.git-status-message{margin:0;color:#8b9098;font-size:12px;font-weight:650;line-height:1.35}.action-popover hr{border:0;border-top:1px solid #e5e7eb;margin:12px 0}.action-list{display:grid;gap:13px;margin-top:12px}.action-list button{border:0;background:transparent;display:flex;align-items:center;gap:12px;padding:0;font:inherit;font-weight:800}.action-list button:disabled{color:#a3a3a3}.action-list button:disabled .icon{opacity:.45}.connections-sheet{position:absolute;top:0;right:0;bottom:0;left:0;z-index:30;border-radius:40px;background:#eef0f4;padding:48px 18px 18px;overflow-y:auto}.connection-diagnostics{margin:0 0 24px;border-top:1px solid #dfe3e8;border-bottom:1px solid #dfe3e8;padding:14px 2px}.diagnostic-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.diagnostic-heading strong{font-size:14px;font-weight:850}.diagnostic-heading small{min-width:0;overflow:hidden;color:#8b9199;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.connection-diagnostics dl{margin:0}.connection-diagnostics dl>div{min-height:32px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e5e8ec;font-size:12px}.connection-diagnostics dl>div:last-child{border-bottom:0}.connection-diagnostics dt{color:#747b85;font-weight:700}.connection-diagnostics dd{margin:0;color:#2f343b;font-weight:800}.diagnostic-state.connected,.diagnostic-state.online{color:#297044}.diagnostic-state.checking,.diagnostic-state.reconnecting,.diagnostic-state.abnormal,.diagnostic-state.unknown{color:#805b08}.diagnostic-state.disconnected,.diagnostic-state.auth_error,.diagnostic-state.offline,.diagnostic-error{color:#a62a32}.diagnostic-error{margin:8px 0 0;font-size:11px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}.connection-diagnostics .sync-status-line{margin-top:8px}.trusted-approval-status{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid #e5e8ec}.trusted-approval-status div{min-width:0;display:grid;gap:2px}.trusted-approval-status strong{color:#7d3a12;font-size:11px}.trusted-approval-status small{color:#747b85;font-size:10px;line-height:1.4}.trusted-approval-status button{flex:0 0 auto;min-height:44px;border:1px solid #d8b5a0;border-radius:6px;background:#fff;color:#a04318;padding:0 9px;font-size:10px;font-weight:800}.diagnostic-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}.diagnostic-actions button{min-width:0;min-height:44px;border:1px solid #dce1e7;border-radius:6px;background:#fff;color:#3f4650;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 7px;font-size:10px;font-weight:800;white-space:nowrap}.diagnostic-actions button.danger{color:#a62a32}.diagnostic-actions button:disabled{background:#e9ebee;color:#9aa0a8;cursor:not-allowed}.diagnostic-actions .icon{width:13px;height:13px}.sheet-header{position:relative;display:flex;justify-content:center;align-items:center;margin-bottom:26px}.sheet-header button{position:absolute;left:0;border:0;border-radius:999px;background:#fff;padding:10px 16px;color:#555;font-weight:800}.sheet-header h2{margin:0;font-size:18px}.sheet-label{display:block;color:#b9bec7;font-weight:900;margin:0 0 9px 12px}.device-card,.add-connection{background:#fff;border:0;border-radius:24px;padding:16px;display:flex;align-items:center;gap:13px;width:100%;box-sizing:border-box;text-align:left}.active-device{margin-bottom:24px}.device-card p{margin:4px 0 0;color:#9ca3af;font-size:12px;font-weight:700}.device-icon{width:42px;height:42px;border-radius:999px;background:#f1f2f4;display:grid;place-items:center}.device-list{display:grid;gap:1px;overflow:hidden;border-radius:24px;background:#fff;margin-bottom:22px}.device-list .device-card{border-radius:0}.device-list button.device-card{font:inherit;cursor:pointer}.device-card>div{flex:1}.status-pill{border-radius:999px;background:#f1f2f4;padding:4px 8px;font-size:11px;font-weight:900}.status-dot{width:10px;height:10px;border-radius:999px;flex:0 0 auto;background:#facc15;box-shadow:0 0 0 4px #facc1529}.status-dot.online{background:#34c759;box-shadow:0 0 0 4px #34c75924}.status-dot.abnormal{background:#facc15;box-shadow:0 0 0 4px #facc1529}.status-dot.offline{background:#ef4444;box-shadow:0 0 0 4px #ef444424}.status-dot.unknown,.connection-dot.unknown{background:#9ca3af;box-shadow:0 0 0 4px #9ca3af24}.toggle-on{width:54px;height:30px;border-radius:999px;background:#34c759;position:relative}.toggle-on:after{content:"";position:absolute;top:3px;right:3px;width:24px;height:24px;border-radius:999px;background:#fff}.add-connection{font-weight:900;font-size:16px}.setup-panel{margin-top:10px;border-radius:20px;background:#fff;padding:14px}.setup-panel .command-box{margin:8px 0 0}.status-control{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.status-control button{border:0;border-radius:999px;background:#fff;min-height:36px;color:#737373;font-weight:900}.status-control button.active{background:#111;color:#fff}.status-note{margin:0 0 22px 12px;font-size:12px;font-weight:800;color:#6b7280}.status-note.online{color:#15803d}.status-note.abnormal{color:#a16207}.status-note.offline{color:#dc2626}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid rgba(47,141,247,.35);outline-offset:2px}.thread-row span,.device-card strong,.brand span,.shortcut,.chat-button,.chip,.action-list button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.connection-dot{width:10px;height:10px;border-radius:999px;display:inline-block;box-shadow:0 0 0 4px #34c75924}.connection-dot.online{background:#34c759}.connection-dot.abnormal{background:#fc0;box-shadow:0 0 0 4px #ffcc002e}.connection-dot.offline{background:#ff3b30;box-shadow:0 0 0 4px #ff3b3029}@media(max-width:430px){html,body,#root{height:100%;overflow:hidden}.app-shell{align-items:stretch;height:100dvh;min-height:100dvh;overflow:hidden;padding:0}.phone-frame{width:100vw;height:100dvh;min-height:100vh;border:0;border-radius:0;padding:calc(10px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom))}.screen,.thread-screen{height:100%;min-height:0}.home-screen{height:100%}.pairing-tutorial{height:100%;min-height:0;padding:calc(24px + env(safe-area-inset-top)) 6px calc(18px + env(safe-area-inset-bottom))}.thread-header{top:0}.composer{margin-top:8px;border-radius:22px;padding:12px 12px 10px}.connections-sheet{border-radius:0}.system-status-banner{grid-template-columns:10px minmax(0,1fr)}.system-status-banner__actions{grid-column:2;justify-self:start}}@media(prefers-reduced-motion:reduce){.system-status-banner__indicator,.sync-status-line__indicator,.session-skeleton span,.thread-loading span{animation:none}}@media(max-width:360px){.home-shortcuts{gap:6px}.shortcut,.chat-button{padding:0 10px}.reasoning-selector-button{display:none}}@media(max-height:760px)and (min-width:431px){.phone-frame{min-height:720px}.screen{min-height:684px}.message-flow{display:flex;gap:10px}.chips{display:none}.composer{padding:9px 10px}}
