@font-face{font-family:system;src:local("Inter"),local("Segoe UI")}
:root{font-family:system,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20242a;background:#f7f8fa;font-synthesis:none;--muted:#747d85;--line:#e5e8eb;--accent:#24594d}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #86b8a7;outline-offset:4px}input:focus,textarea:focus{outline:2px solid #86b8a7;outline-offset:1px}[hidden]{display:none!important}
.topbar{height:84px;display:flex;justify-content:space-between;align-items:center;padding:0 44px;position:sticky;top:0;background:#f7f8faf5;z-index:3}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit;font-size:23px;font-weight:650;letter-spacing:-.7px}.brandmark{display:grid;place-items:center;background:#24594d;color:#fff;border-radius:12px;width:32px;height:35px;font-size:30px;font-family:Georgia,serif;font-style:italic;padding-bottom:6px}.header-right{display:flex;align-items:center;gap:26px}.private-label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px}.dot{width:5px;height:5px;border-radius:50%;background:#5a927d}.quiet{background:transparent;color:#687078;border-radius:9px;padding:9px 11px}.quiet:hover{background:#e9edee;color:#222}.welcome{text-align:center;margin:clamp(48px,14vh,165px) auto 60px;padding:0 20px}.orb{position:relative;margin:0 auto 36px;display:grid;place-items:center;width:83px;height:83px;border-radius:29px;background:linear-gradient(145deg,#f2faf6 3%,#b7d6ca 57%,#6c9d8b);box-shadow:inset 0 2px 5px #fff,0 14px 30px #1b4f3f18;color:#24594d;font-size:74px;line-height:1;padding-bottom:16px;font-family:Georgia,serif;font-style:italic;transform:rotate(-6deg)}.eyebrow{letter-spacing:2px;font-size:9px!important;font-weight:600;color:#8a9792!important;margin-bottom:18px!important}.welcome h1{font-size:clamp(32px,4.3vw,48px);font-weight:450;letter-spacing:-1.8px;margin:0 0 18px}.welcome p{font-size:15px;line-height:1.75;color:var(--muted);margin:0}.conversation{max-width:800px;margin:18px auto 255px;padding:0 24px;min-height:1px}.message{margin:26px 0;max-width:100%;line-height:1.8;overflow-wrap:anywhere}.message.user{display:flex;justify-content:flex-end}.bubble{white-space:pre-wrap;border-radius:20px 20px 5px 20px;background:#e9eeec;padding:12px 18px;max-width:82%;font-size:15px}.message.assistant{padding:0 4px}.speaker{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#668477;font-weight:650;display:flex;gap:8px;align-items:center;margin-bottom:10px}.answer{white-space:pre-wrap;margin:7px 0;font-size:15px;line-height:1.8}.source{margin:0 4px;font-size:12px;color:var(--accent)}.tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.tools button,.tools a{font-size:12px;border-radius:9px;padding:7px 10px;background:#edf1ef;color:#3b5a4f;text-decoration:none}.tools .subtle{background:transparent;color:#959b9e;padding-left:0}.activity{font-size:13px;color:var(--muted);padding:12px 0}.activity.pending:before{content:"";display:inline-block;width:6px;height:6px;background:#537b69;border-radius:50%;margin-right:9px;animation:pulse 1.2s infinite}.action-status{font-size:12px;color:#63746d}.composer-wrap{position:fixed;z-index:2;bottom:0;left:50%;transform:translateX(-50%);width:min(800px,calc(100% - 40px));padding:24px 0 calc(14px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#f7f8fa 14%)}.composer{background:#fff;border:1px solid #e1e7e3;border-radius:23px;padding:13px 14px 10px;box-shadow:0 5px 24px #1c383c06}.composer textarea{display:block;width:100%;max-height:160px;min-height:38px;resize:none;border:0;outline:0!important;padding:8px 8px 5px;font-size:15px;line-height:1.6;background:transparent}.composer textarea::placeholder{color:#929a9e}.composer-actions,.composer-left,.composer-right{display:flex;align-items:center;gap:8px}.composer-actions{justify-content:space-between;margin-top:8px}.composer-caption{font-size:11px;color:#9a9fa1}.round{width:37px;height:37px;display:grid;place-items:center;border-radius:50%;padding:0;font-size:24px}.send{background:#233d34;color:white;font-weight:500}.voice-button{background:#eef3f0;color:#24594d}.voice-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}.voice-button.active{background:#cfe5d9}.footnote{font-size:10px;color:#949c9b;text-align:center;margin:12px 0 0}.attachment{display:flex;align-items:center;gap:12px;max-width:100%;width:max-content;border:1px solid var(--line);border-radius:9px;padding:5px 9px;font-size:12px;color:#47564d}.attachment span{overflow:hidden;text-overflow:ellipsis;max-width:90%;white-space:nowrap}.attachment button{background:transparent;color:#777}.voice-bar{display:flex;align-items:center;gap:10px;font-size:12px;color:#436252;padding:0 8px 10px}.voice-bar button{margin-left:auto;font-size:12px}.voice-dot{background:#407b60;border-radius:50%;width:7px;height:7px;animation:pulse 1.5s infinite}.notice{position:fixed;z-index:8;top:82px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);margin:0;border-radius:12px;background:#243c32;color:#fff;font-size:13px;box-shadow:0 4px 12px #0001}.notice:not(:empty){padding:12px 18px}.pairing{width:min(390px,calc(100% - 40px));margin:70px auto;text-align:center}.pairing h1{font-size:34px;letter-spacing:-1px;font-weight:500}.pairing p{color:var(--muted);line-height:1.7;font-size:14px}.pairing form{text-align:left}.small-orb{width:65px;height:65px;font-size:58px;border-radius:23px}.primary{background:#24594d;color:white;padding:12px 18px;border-radius:11px;width:100%;margin:12px 0 0;display:flex;justify-content:center;gap:14px}.secondary{background:#f0f3f1;color:#2d4e40;border:1px solid #e0e8e2;border-radius:10px;padding:10px 13px;margin:5px 0;font-size:13px}.inline{display:flex;gap:8px}label{display:block;font-size:12px;font-weight:600;color:#505a54;margin:16px 0 7px}input,dialog textarea{border:1px solid #dce4df;border-radius:9px;padding:10px 12px;width:100%;background:#fff;color:#24302a}dialog textarea{min-height:82px;resize:vertical}input[type=checkbox]{width:16px;height:16px;accent-color:#24594d}.check{display:flex;gap:10px;align-items:center;line-height:1.5;font-weight:400}dialog{border:0;padding:0;border-radius:22px;max-height:86dvh;width:min(500px,calc(100% - 28px));box-shadow:0 30px 80px #0002;color:#20242a}dialog::backdrop{background:#253c3466;backdrop-filter:blur(4px)}.settings-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#fff;padding:20px 26px;border-bottom:1px solid var(--line);z-index:1}.settings-head h2{font-size:20px;margin:0;font-weight:550}.settings-content{padding:0 26px 22px}.settings-content section,.settings-content>form{padding:22px 0;border-bottom:1px solid var(--line)}h3{font-size:14px;font-weight:650;margin:0 0 12px}.fine{font-size:12px;line-height:1.65;color:#89918d;margin:7px 0 14px}.setting-row{display:flex;align-items:center;justify-content:space-between;margin-top:22px}.setting-row strong{font-size:12px;font-weight:600}.pill{background:#edf4ef;color:#407458;padding:4px 8px;font-size:11px;border-radius:7px}.version{margin:20px 0 0}.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}#remoteAudio[controls]{position:fixed;bottom:200px;left:20px;z-index:8;max-width:90%}@keyframes pulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){*{animation:none!important}}@media(max-width:600px){.topbar{height:70px;padding:0 20px}.brand{font-size:21px}.private-label{display:none}.header-right{gap:0}.welcome{margin-top:16vh}.eyebrow{font-size:8px!important;letter-spacing:1.5px}.welcome h1{letter-spacing:-1.1px}.conversation{padding:0 19px;margin-top:8px}.composer-wrap{width:calc(100% - 24px)}.composer-caption{font-size:10px}.composer{padding:10px 10px 9px}.bubble{max-width:90%}.notice{top:70px}.settings-content{padding:0 21px 18px}.settings-head{padding:16px 21px}}
/* Jiv 2.1: conversation-first layout. */
:root{background:#fff;color:#202020;--muted:#777;--line:#e7e7e7;--accent:#1c1c1c;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.topbar{height:68px;background:#ffffffef;padding:0 28px;position:sticky;top:0}.header-left,.header-right{display:flex;align-items:center;gap:14px}.brand{font-weight:600;font-size:21px;letter-spacing:-.4px}.chat-title{font-size:13px;color:#777;max-width:270px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-button{width:36px;height:36px;padding:7px;border-radius:9px;background:transparent;color:#555;display:grid;place-items:center;font-size:25px}.icon-button:hover,.quiet:hover{background:#ededed}.icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sidebar{position:fixed;left:0;top:0;bottom:0;width:260px;background:#f9f9f9;z-index:6;padding:18px 12px 90px;overflow:auto;border-right:1px solid #f0f0f0}.sidebar-top{display:flex;align-items:center;justify-content:space-between;padding:0 10px 20px}.sidebar-brand{font-size:21px;font-weight:600}.new-chat-button{display:flex;align-items:center;gap:9px;background:transparent;width:100%;padding:11px 12px;text-align:left;border-radius:9px;color:#333;font-size:14px}.new-chat-button:hover{background:#ededed}.new-chat-button span{font-size:22px;line-height:1}.sidebar input{font-size:13px;background:#fff;border:1px solid #e9e9e9;margin:12px 0 9px;border-radius:9px;padding:10px 11px}.sidebar-label{font-size:12px;font-weight:600;color:#818181;margin:20px 12px 10px}.history-row{display:flex;align-items:center;border-radius:8px;min-width:0}.history-row:hover,.history-row.selected{background:#eaeaea}.history-chat{padding:11px 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;text-align:left;background:transparent;color:#333;font-size:13px}.history-menu{font-size:19px;color:#777;background:transparent;padding:2px 9px;opacity:0}.history-row:hover .history-menu,.history-row.selected .history-menu,.history-row:focus-within .history-menu{opacity:1}.history-empty{font-size:12px;color:#888;padding:0 12px;line-height:1.7}.sidebar-footer{position:fixed;bottom:0;left:0;width:259px;padding:20px;display:flex;align-items:center;gap:11px;background:#f9f9f9;font-size:13px;font-weight:500}.sidebar-footer small{display:block;color:#888;font-size:11px;font-weight:400;margin-top:3px}.owner-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e1e8e4;color:#3b574c;font-size:13px}.history-backdrop{position:fixed;inset:0;z-index:5;background:#0005;border-radius:0}.welcome{margin:clamp(90px,26vh,270px) auto 50px;padding:0 20px}.welcome h1{font-size:clamp(27px,3vw,34px);font-weight:550;letter-spacing:-1px;margin:0}.conversation{max-width:820px;margin:28px auto 245px;padding:0 34px}.message{line-height:1.8;margin:28px 0 38px}.message.assistant{padding:0}.bubble{background:#f1f1f1;border-radius:24px;padding:12px 19px;max-width:85%;font-size:15px}.composer-wrap{background:linear-gradient(transparent,#fff 18%);max-width:800px;padding-top:24px}.composer{background:#f4f4f4;border:1px solid #ececec;border-radius:26px;padding:12px 15px 10px;box-shadow:0 2px 6px #00000003}.composer textarea{font-size:15px;min-height:44px;padding:8px 7px;max-height:180px}.composer textarea::placeholder{color:#868686}.composer-actions{margin-top:3px}.composer-left{gap:0}.composer-caption{display:none}.send{background:#202020}.voice-button{background:#e8e8e8;color:#222}.voice-button.active{background:#d9e7dd}.footnote{color:#999;font-size:10px;margin-top:11px}.quiet{color:#666;font-size:13px}.primary{background:#222}.secondary{background:#f6f6f6;color:#333;border-color:#e7e7e7}.notice{background:#252525;top:70px}.tools{gap:12px;margin-top:13px}.tools .subtle{color:#888;padding:4px 0}.activity.pending:before{background:#333}.action-card{border:1px solid #ececec;border-radius:15px;padding:13px 16px!important;color:#555;font-size:13px}.action-title{font-weight:550;margin:0}.action-status{font-size:12px;margin:4px 0;color:#888}.action-card .markdown{font-size:13px}.error-text{color:#9a3939}.markdown{font-size:15px;line-height:1.85;overflow-wrap:anywhere}.markdown p{margin:0 0 16px;white-space:normal}.markdown p:last-child{margin-bottom:0}.markdown h2,.markdown h3,.markdown h4,.markdown h5{font-size:18px;font-weight:650;line-height:1.5;margin:24px 0 12px}.markdown h3{font-size:16px}.markdown ul,.markdown ol{padding-left:25px;margin:12px 0 18px}.markdown li{padding-left:3px;margin:6px 0}.markdown strong{font-weight:650}.markdown a{color:#2c6655;text-decoration:underline;text-underline-offset:3px}.markdown code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.88em;background:#f2f2f2;padding:2px 5px;border-radius:4px}.code-block{border:1px solid #e8e8e8;border-radius:12px;overflow:hidden;margin:18px 0;background:#f8f8f8}.code-bar{display:flex;justify-content:space-between;align-items:center;background:#eee;padding:8px 13px;font-size:11px;color:#666}.code-bar button{background:transparent;font-size:11px;color:#555}.code-block pre{overflow:auto;padding:16px;margin:0;line-height:1.6}.code-block pre code{white-space:pre;background:transparent;padding:0;overflow-wrap:normal;font-size:13px}.table-wrap{overflow:auto;margin:18px 0;max-width:100%}.markdown table{border-collapse:collapse;width:100%;font-size:14px}.markdown th,.markdown td{border:1px solid #e6e6e6;padding:9px 12px;text-align:left;min-width:90px}.markdown th{background:#f7f7f7;font-weight:600}.markdown blockquote{border-left:3px solid #ddd;padding-left:16px;margin:15px 0;color:#666}.markdown hr{border:0;border-top:1px solid #e6e6e6;margin:25px 0}.sources{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.source{display:inline-block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#f5f5f5;color:#666!important;font-size:11px;text-decoration:none!important;border:1px solid #eee;border-radius:6px;padding:3px 7px;margin:0}.signed-in .pairing{display:none}#closeHistory{display:none}.pairing .orb{background:#e8ece9;box-shadow:none;transform:none;color:#36453e}#moreHistory{width:100%;text-align:left;margin-top:10px}
@media(min-width:1000px){body.signed-in{padding-left:260px}.signed-in .composer-wrap{left:calc(50% + 130px);width:min(800px,calc(100% - 320px))}.signed-in #openHistory{display:none}.history-backdrop{display:none!important}}
@media(max-width:999px){.sidebar{transform:translateX(-100%);transition:transform .18s ease;width:280px}.history-open .sidebar{transform:translateX(0)}.sidebar-footer{width:279px}#closeHistory{display:grid}.topbar{padding:0 16px}.chat-title{display:none}.welcome{margin-top:28vh}.history-menu{opacity:1}.composer-wrap{width:calc(100% - 24px)}.conversation{padding:0 21px}.composer{padding:10px 12px 9px}.header-left,.header-right{gap:10px}.message{margin-bottom:30px}.notice{top:68px}}

#smartHomePanel{margin-top:16px}#smartHomePanel summary{cursor:pointer;font-weight:600;padding:10px 0}#homeDeviceList{display:grid;gap:12px;margin:12px 0}.home-device{border:1px solid var(--line,#e5e7eb);border-radius:14px;padding:14px;min-width:0}.home-device>p{overflow-wrap:anywhere}.home-device-fields{padding-top:8px}.home-device input:not([type=checkbox]){width:100%;box-sizing:border-box}.home-buttons{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.home-buttons button{padding:7px 13px}.home-help{margin:18px 0;font-size:14px;line-height:1.6}.home-help a{color:inherit;text-decoration:underline}#homeMessage{white-space:pre-wrap}#smartHomePanel [hidden]{display:none!important}

.camera-snapshot{display:block;max-width:100%;max-height:70vh;border-radius:12px;object-fit:contain;margin-top:12px}
/* DC 2.3: personal conversation workspace */
:root{--ink:#18273f;--muted:#7b879a;--line:#e8edf5;--blue:#164c9b;--paper:#f6f8fc;--accent:#e9f1ff}body{background:var(--paper);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif}button,input,textarea,select{font:inherit}button{transition:background .15s,transform .15s}button:focus-visible,a:focus-visible{outline:3px solid #91b9f4;outline-offset:3px}button:hover{filter:brightness(.97)}button:active{transform:translateY(1px)}.logo-frame{display:inline-flex;position:relative;overflow:hidden;background:#fff;flex-shrink:0;border-radius:12px;width:36px;height:36px;vertical-align:middle}.logo-frame img{width:100%;height:100%;object-fit:cover;transform:scale(1.65);pointer-events:none}.sidebar{background:#fff;border-right:1px solid var(--line);width:262px;padding:26px 17px 20px}.sidebar-top{padding:0 9px 26px}.sidebar-brand{font-size:24px;font-weight:700;letter-spacing:-.8px;display:flex;align-items:center;gap:11px}.sidebar-brand .logo-frame{width:37px;height:37px}.new-chat-button{border:1px solid #dce7f7;background:#edf3fc;color:#164b90;border-radius:12px;padding:13px 16px;font-size:13px;font-weight:600;gap:10px;display:flex;align-items:center;box-shadow:none}.new-chat-button span{font-size:22px;font-weight:400}#historySearch{margin-top:23px;border:1px solid #edf0f6;background:#fafbfd;font-size:12px;padding:11px 13px}.sidebar-label{text-transform:uppercase;letter-spacing:1.7px;font-size:9px;font-weight:650;color:#9aa6b7;margin:29px 12px 12px}.history-row{border-radius:9px;margin:3px 0}.history-row.selected{background:#edf3fc}.history-chat{font-size:12px;line-height:1.5;color:#64748a;padding:11px 12px}.history-row.selected .history-chat{color:#174d97}.history-menu{color:#8997aa}.history-empty{font-size:12px;color:#98a3b3;line-height:1.7;padding:0 12px}.sidebar-footer{border-top:1px solid var(--line);padding-top:20px;color:#344459;font-size:12px;gap:12px}.owner-avatar{background:#e8effa;color:#17457d;font-size:11px;border-radius:50%;width:34px;height:34px;display:grid;place-items:center}.sidebar-footer small{color:#9aa6b5;font-size:10px;margin-top:4px}.signed-in .topbar{margin-left:262px}.topbar{height:82px;border-bottom:1px solid #ebeff7;background:rgba(246,248,252,.94);padding:0 42px;backdrop-filter:blur(14px)}.header-left{gap:18px}.brand{display:flex;align-items:center;gap:10px;color:#172b4b;font-size:20px;letter-spacing:-.5px}.brand-logo{width:30px;height:30px}.chat-title{color:#8793a4;font-size:12px;max-width:250px}.private-label{display:flex;align-items:center;gap:7px;font-size:10px;color:#8693a6;letter-spacing:.1px;margin-right:12px}.private-label span{width:5px;height:5px;border-radius:50%;background:#68998c}.icon-button{color:#74839a;border-radius:9px}#openSettings{border:1px solid #e0e6f0;border-radius:9px;font-size:11px;background:#fff;padding:9px 13px;color:#55657b}.signed-in #workspace{margin-left:262px}.welcome{margin:calc(12vh + 16px) auto 48px;text-align:center;max-width:680px;padding:0 24px}.welcome-mark{width:88px;height:88px;border-radius:26px;box-shadow:0 12px 34px #123d7310;border:1px solid #edf0f6}.eyebrow{font-size:9px!important;letter-spacing:2.4px;color:#8594aa;font-weight:650;margin:27px 0 15px}.welcome h1{font-size:clamp(28px,3.2vw,43px);line-height:1.2;letter-spacing:-1.6px;font-weight:550;margin:0;color:#20334f}.welcome-note{font-size:13px;color:#9aa4b2;line-height:1.8;margin:17px 0 0}.welcome-voice{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#fff;border:1px solid #dae5f5;border-radius:28px;color:#245a9f;padding:12px 18px;font-size:12px;margin-top:28px;box-shadow:0 4px 14px #153d7306}.welcome-voice svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.welcome-voice span{margin-left:10px;color:#8eafd9}.signed-in .composer-wrap{left:calc(50% + 131px);width:min(780px,calc(100% - 326px));margin:0;transform:translateX(-50%);bottom:18px;background:linear-gradient(0deg,var(--paper) 80%,transparent);padding-top:20px}.composer{border:1px solid #e0e7f1;background:#fff;border-radius:22px;padding:16px 17px 12px;box-shadow:0 8px 40px #1b3d6a07}.composer textarea{color:#263a56;font-size:14px;min-height:42px;line-height:1.7;padding:6px 4px 10px}.composer textarea::placeholder{color:#9ba6b6}.composer-caption{color:#9ba7b7;font-size:10px}.composer-actions{margin-top:7px}.composer-left{gap:10px}.round{width:35px;height:35px}.send{background:#1d4e95;color:#fff;box-shadow:0 3px 9px #164c9b22}.voice-button{background:#eaf1fb;color:#2a5a9c;width:39px;border-radius:12px}.voice-button.active{background:#cddff8}.footnote{font-size:9px;color:#a3adbb;margin-top:13px}.conversation{width:min(780px,calc(100% - 60px));padding:0;margin:35px auto 220px}.message{font-size:14px;line-height:1.85;margin:25px 0 31px}.message.user .bubble{background:#e9eff9;color:#304a70;border:1px solid #e0e8f4;border-radius:19px 19px 5px 19px;padding:13px 18px;max-width:83%}.assistant-label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:650;color:#385473;margin-bottom:12px}.assistant-label .logo-frame{width:26px;height:26px;border-radius:8px}.message.assistant>.markdown{padding-left:34px}.tools{padding-left:34px;gap:14px}.tools button,.tools a{font-size:10px;color:#8796aa}.action-card{border:1px solid #e0e7f2;background:#fff;border-radius:15px;padding:18px}.action-card .tools,.action-card>.markdown{padding-left:0}.sources{padding-left:34px}.source{background:#eef3fb;color:#5076a8;border:1px solid #e0e9f7}.pending{color:#7c95b5}.notice{background:#1b3457;border-radius:12px;top:88px;z-index:30}.pairing{margin:10vh auto}.login-logo{width:90px;height:90px;border-radius:27px}.pairing h1{font-size:32px;color:#263b5b}.pairing .eyebrow{margin-top:25px}.primary{background:#1d4e95;color:#fff}.secondary{background:#eff4fc;color:#2d5487;border-color:#e0e8f5}.pill{color:#2c639e;background:#edf4ff}input[type=checkbox]{accent-color:#245a9f}dialog{border-radius:22px;box-shadow:0 30px 120px #122c4936;color:#223751}dialog::backdrop{background:#172e4d70;backdrop-filter:blur(7px)}.settings-head{padding:22px 26px}.settings-content select{width:100%;border:1px solid #dce4ef;border-radius:9px;padding:11px;color:#344d70;background:#fff}.voice-panel{width:min(470px,calc(100% - 24px));padding:0;background:#fcfdff;max-height:92dvh}.voice-panel-head{display:flex;justify-content:space-between;align-items:center;padding:23px 25px}.voice-brand{font-size:18px;letter-spacing:-.4px;font-weight:700;color:#1a3c6c}.voice-brand span{font-size:12px;font-weight:400;color:#8c9bb1;border-left:1px solid #dfe7f4;padding-left:10px;margin-left:9px}.voice-stage{text-align:center;padding:26px 26px 5px}.voice-halo{width:128px;height:128px;border-radius:50%;display:grid;place-items:center;margin:5px auto 20px;background:#eaf1fc;box-shadow:0 0 0 13px #f3f7fd,0 0 0 26px #f8faff}.voice-logo{width:83px;height:83px;border-radius:25px;box-shadow:0 8px 28px #2a518820}.voice-panel[data-state="speaking"] .voice-halo,.voice-panel[data-state="listening"] .voice-halo{animation:voice-pulse 2.4s ease-in-out infinite}.voice-stage .eyebrow{margin:38px 0 11px}.voice-stage h2{font-size:26px;font-weight:550;letter-spacing:-.8px;margin:0 0 12px}.voice-stage #voiceDetail{font-size:12px;line-height:1.6;color:#8b9ab0;margin:0 auto;max-width:330px}.voice-caption{font-size:14px;line-height:1.8;color:#526783;max-height:120px;overflow:auto;min-height:23px;margin:16px 0 5px}.voice-error{background:#fff1ef;border:1px solid #f4d8d3;color:#934c43;font-size:12px;line-height:1.7;padding:13px;border-radius:11px;margin:13px 0}.voice-diagnostics{font-family:ui-monospace,monospace;white-space:pre-line;overflow-wrap:anywhere;color:#73839b;font-size:10px;line-height:1.8;background:#f2f6fc;padding:10px;border-radius:9px;text-align:left}.mic-meter{height:24px;display:flex;align-items:center;justify-content:center;gap:5px;margin-top:21px}.mic-meter span{width:4px;height:8px;background:#5790d9;border-radius:5px;transform:scaleY(var(--mic-scale,1));transition:transform .08s}.mic-meter span:nth-child(2),.mic-meter span:nth-child(4){height:12px}.mic-meter span:nth-child(3){height:17px}.voice-panel-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;padding:22px 23px 10px}.voice-control{background:#edf3fc;color:#315b92;border:1px solid #dce6f5;border-radius:22px;padding:12px 17px;font-size:12px}.voice-end{background:#263e60;color:#fff;border-radius:22px;padding:12px 24px;font-size:12px}.voice-privacy{text-align:center;font-size:9px;color:#a1adbf;margin:9px 20px 24px}.voice-bar{background:#eaf2fe;border:1px solid #dce8f8;padding:9px 13px;border-radius:12px;margin-bottom:9px;font-size:11px;color:#37639c}.voice-dot{background:#5189d1}#remoteAudio[controls]{z-index:50}.home-device{border-color:#e3eaf5}.home-device .home-name,.home-device .home-aliases{font-size:13px}.settings-content label{color:#586e8a}.settings-content h3{color:#294668}@keyframes voice-pulse{50%{box-shadow:0 0 0 18px #edf4fd,0 0 0 33px #f7faff}}@media(min-width:901px){#openHistory{display:none}.sidebar{display:flex;flex-direction:column}.sidebar-footer{margin-top:auto}#historyList{overflow:auto}}@media(max-width:900px){.signed-in .topbar,.signed-in #workspace{margin-left:0}.topbar{padding:0 20px;height:70px}.signed-in .composer-wrap{left:50%;width:calc(100% - 28px);bottom:max(12px,env(safe-area-inset-bottom));max-width:740px}.sidebar{width:280px;z-index:22;transform:translateX(-100%);box-shadow:none}.history-open .sidebar{transform:translateX(0);box-shadow:20px 0 70px #19355620}.history-backdrop{z-index:21;background:#19324d55}.welcome{margin-top:11vh}.brand-logo{display:none}.brand{font-size:21px}.header-left{gap:12px}.chat-title{max-width:30vw}.private-label{display:none}.conversation{width:calc(100% - 38px);margin-top:23px}.message.assistant>.markdown{padding-left:0}.tools{padding-left:0}.sources{padding-left:0}.composer-caption{font-size:9px}.composer{border-radius:20px;padding:12px}.notice{top:76px}.welcome h1{font-size:30px}.welcome-note{font-size:12px}.welcome-mark{width:75px;height:75px;border-radius:22px}.voice-stage{padding-top:18px}.voice-stage .eyebrow{margin-top:30px}.voice-halo{width:112px;height:112px}.voice-panel-actions{padding-top:16px}#closeHistory{display:block}}@media(max-height:650px){.welcome{margin-top:26px}.welcome-mark{width:52px;height:52px;border-radius:16px}.welcome .eyebrow{margin-top:15px}.welcome-voice{margin-top:15px}.voice-stage{padding-top:0}.voice-halo{width:80px;height:80px}.voice-logo{width:60px;height:60px}.voice-stage .eyebrow{margin-top:25px}.voice-caption{max-height:65px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
body.signed-in{padding-left:0}@media(min-width:901px){.sidebar{transform:none}#closeHistory{display:none}}

html{background:var(--paper)}body{min-height:100dvh}.welcome-voice .arrow{width:13px;height:13px;margin-left:8px;color:#8eafd9}

/* Agent work stays inside the conversation. */
.agent-progress{margin:12px 0 20px 34px;border:1px solid #dde6f3;background:#f8faff;border-radius:14px;padding:12px 15px;font-size:12px;color:#526c8c}.agent-progress summary{cursor:pointer;font-weight:600;color:#2b507f}.agent-progress ol{padding-left:21px;line-height:1.9;margin:8px 0 14px}.agent-small-label{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#91a1b7;margin:14px 0 5px}.agent-events{display:grid;gap:8px}.agent-event{display:flex;gap:10px;align-items:baseline}.agent-event-mark{color:#3b8b70;width:14px;flex-shrink:0}.agent-event.running .agent-event-mark{color:#2f6cbb;animation:pulse 1s infinite}.agent-event.failed .agent-event-mark{color:#ba625a}.agent-event.unverified .agent-event-mark{color:#a37b30}.agent-files{display:grid;gap:10px;margin:14px 0 18px 34px}.agent-file{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#fff;border:1px solid #d9e3f3;border-radius:13px;text-decoration:none;color:#254f89;font-size:13px;overflow-wrap:anywhere}.file-type{background:#eaf1fc;color:#3467aa;font-size:9px;font-weight:700;padding:9px 7px;border-radius:6px}.file-download{margin-left:auto;font-size:10px;color:#7b94b5}.capability-row{display:grid;gap:5px;padding:12px 0;border-bottom:1px solid #edf1f7;font-size:12px}.capability-row strong{font-weight:600;color:#365477}.capability-row span{font-size:11px;color:#8192a9;line-height:1.6}.memory-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:13px 0;border-bottom:1px solid #edf1f7;font-size:12px}.memory-row p{color:#71849d;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.memory-row button{flex-shrink:0}.tools .stop-work{color:#a24c45;border:1px solid #ead8d5;background:#fff7f5;border-radius:8px;padding:7px 13px}@media(max-width:900px){.agent-progress,.agent-files{margin-left:0}.file-download{display:none}}
.pairing-code{overflow-wrap:anywhere;user-select:all;background:#edf4ff;padding:12px;border-radius:10px}.agent-progress summary{cursor:pointer}.agent-event.unverified{color:#916217}.agent-settings .fine{line-height:1.6}
/* Reserve real scrollable space for the fixed composer, including action cards. */
#tasks.conversation{margin-bottom:0;padding-bottom:calc(var(--composer-space,245px) + env(safe-area-inset-bottom))}
#tasks:empty{padding-bottom:0}
html{scroll-padding-top:100px;scroll-padding-bottom:240px}
/* DC 3.0: one conversation, optional project context and durable work. */
.project-picker{display:grid;grid-template-columns:1fr auto auto;gap:4px;align-items:center;margin:12px 0}.project-picker label{grid-column:1/-1;font-size:11px;letter-spacing:.1em;color:#7484a3;text-transform:uppercase}.project-picker select{min-width:0;padding:9px;border:1px solid #dbe4f2;border-radius:10px;background:transparent;color:inherit}.project-picker button{padding:8px}.attention{max-width:780px;margin:0 auto 220px;padding:0 20px}.attention-item{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;width:100%;padding:14px 16px;margin:8px 0;border:1px solid #dae4f6;background:#fff;border-radius:14px;color:#243a60;overflow-wrap:anywhere}.attention-item small{color:#7484a3}.saved-file{padding:15px 0;border-bottom:1px solid #dbe4f2}.file-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.file-heading a{overflow-wrap:anywhere}.usage-number{font-size:20px;font-weight:650}.saved-file .tools{flex-wrap:wrap}#projectDialog,#filesDialog,#controlsDialog,#continueDialog{max-width:620px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;padding:24px}#controlsForm{margin:24px 0}#controlsDialog label{margin-top:14px}#projectForm textarea,#continueForm textarea{margin:10px 0}#fileList{margin-top:14px}#filesSearch{margin-top:8px}.composer-left{min-width:0}.composer-left #openFiles{font-size:12px;padding:6px}.attention:not([hidden])~#tasks:empty{display:none}
html[data-theme=dark]{color-scheme:dark;background:#101722}html[data-theme=dark] body{background:#101722;color:#e1e9f6}html[data-theme=dark] .sidebar,html[data-theme=dark] dialog,html[data-theme=dark] .composer,html[data-theme=dark] .action-card,html[data-theme=dark] .attention-item,html[data-theme=dark] .agent-file{background:#192332;color:#e1e9f6;border-color:#344458}html[data-theme=dark] .topbar{background:#101722ef;border-color:#344458}html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select,html[data-theme=dark] .history-chat,html[data-theme=dark] .brand,html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3{color:#e1e9f6}html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select{background:#192332;border-color:#344458}html[data-theme=dark] .quiet,html[data-theme=dark] .secondary{color:#c4d5ef;background:#233147;border-color:#3d5373}html[data-theme=dark] .bubble,html[data-theme=dark] .agent-progress,html[data-theme=dark] .history-row.selected,html[data-theme=dark] .new-chat-button{background:#203451;color:#d8e7ff;border-color:#385574}html[data-theme=dark] .fine,html[data-theme=dark] .footnote,html[data-theme=dark] .welcome-note,html[data-theme=dark] .composer-caption{color:#a6b5ca}html[data-theme=dark] .composer-wrap{background:linear-gradient(transparent,#101722 25%)}html[data-theme=dark] a{color:#95bfff}html[data-theme=dark] .code-block,html[data-theme=dark] .code-bar,html[data-theme=dark] pre,html[data-theme=dark] .markdown code{background:#0c121b;color:#d8e7ff}
@media(max-width:600px){.composer-caption{display:none}.project-picker{margin:8px 0}.attention{padding:0 16px;margin-bottom:190px}.saved-file .tools{gap:8px}#projectDialog,#filesDialog,#controlsDialog,#continueDialog{padding:18px}.welcome:has(~.attention:not([hidden])){min-height:35vh}}
html[data-theme=dark] .settings-head,html[data-theme=dark] .sidebar-footer,html[data-theme=dark] .voice-panel{background:#192332;color:#dce7f7;border-color:#344458}
html[data-theme=dark] #historySearch,html[data-theme=dark] #openSettings{background:#192332;color:#dce7f7;border-color:#344458}
html[data-theme=dark] .history-row.selected .history-chat,html[data-theme=dark] .agent-progress summary,html[data-theme=dark] .assistant-label,html[data-theme=dark] label,html[data-theme=dark] .capability-row strong,html[data-theme=dark] .voice-brand{color:#c3d8f8}
html[data-theme=dark] .message.user .bubble{background:#203451;color:#d8e7ff;border-color:#385574}
html[data-theme=dark] .markdown th,html[data-theme=dark] .source,html[data-theme=dark] .voice-diagnostics,html[data-theme=dark] .voice-bar{background:#203451;color:#d8e7ff;border-color:#385574}
html[data-theme=dark] .markdown th,html[data-theme=dark] .markdown td{border-color:#344458}
html[data-theme=dark] .error-text{color:#f5a198}
html[data-theme=dark] .tools button:not(.send),html[data-theme=dark] .tools a{color:#c3d8f8;background:#233147}
html[data-theme=dark] .tools .subtle{background:transparent;color:#a6b5ca}

.next-dialog{width:min(680px,94vw);max-height:88dvh;overflow:auto;padding:24px}.next-card{padding:18px 0;border-bottom:1px solid var(--border,#d9dce3)}.next-card h3{margin:0 0 10px}.next-card button,.next-actions button{margin:6px 6px 6px 0}.next-card label{display:block;margin-top:12px}.next-card .check{display:flex;gap:10px}.next-card input:not([type=checkbox]),.next-card select{width:100%;box-sizing:border-box;padding:10px;margin:6px 0;border:1px solid var(--border,#d9dce3);border-radius:10px;background:transparent;color:inherit}.next-card .check input{width:auto}.next-actions{display:flex;flex-wrap:wrap;gap:8px}.search-hit{padding:12px;border:1px solid var(--border,#d9dce3);border-radius:10px;margin:10px 0}.search-hit p{white-space:pre-wrap;font-size:13px}.streaming-answer{opacity:.95}

.settings-gear svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}.profile-trigger{height:35px;min-width:35px;border-radius:50%;background:#e7ecf6;color:#153b71;font-size:12px;font-weight:700;border:1px solid #d5dfed}.profile-card{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#edf4ff,#f7f9fd);border:1px solid #d8e4f5!important;padding:18px!important;border-radius:18px;color:#162c4e}.profile-card h3{margin:0}.profile-card p{margin:5px 0}.profile-card>div:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.profile-avatar{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:#1c477f;color:white;font-size:19px;font-weight:700;flex-shrink:0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.settings-tile{text-align:left;padding:14px!important;display:flex;flex-direction:column;gap:6px;border-radius:14px!important;min-height:84px}.settings-tile small{font-size:12px;opacity:.7;line-height:1.45}.settings-launcher input{width:100%;box-sizing:border-box}.settings-highlight{outline:2px solid #6a9bdd;outline-offset:5px;border-radius:12px}.permission-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 0;border-bottom:1px solid var(--border,#d9dce3)}.permission-row p{margin:4px 0}.permission-ok{font-size:11px;color:#27804c}.permission-off{font-size:11px;color:#9b7223}[data-theme=dark] .profile-card{background:linear-gradient(135deg,#1a2b43,#172333);color:#e4ebf7;border-color:#294263!important}[data-theme=dark] .profile-trigger{background:#233b5e;color:#e5efff;border-color:#39506d}@media(max-width:430px){.profile-card{flex-wrap:wrap}.profile-card>button{margin-left:66px}.settings-tile{padding:12px!important}.settings-grid{gap:8px}.profile-trigger{height:32px;min-width:32px}.permission-row>button{font-size:12px;min-width:95px}}

/* Profile remains readable at narrow phone widths. */
.profile-card{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px 14px}
.profile-card>div:nth-child(2){width:auto;min-width:0}.profile-card>button{grid-column:2;justify-self:start;margin:0!important}.profile-card h3{font-size:17px}.profile-card p{line-height:1.5}
.settings-tile{background:#f5f8fd;color:#243e64;border:1px solid #dce6f3;cursor:pointer}.settings-tile:hover{background:#eaf1fb;border-color:#a9c2e4}.settings-tile strong{font-size:14px;line-height:1.35}.settings-tile small{color:#5e718c;opacity:1}
[data-theme=dark] .settings-tile{background:#203047;color:#e3edff;border-color:#344b67}[data-theme=dark] .settings-tile small{color:#b0c1d8}
.settings-gear{display:grid;place-items:center;width:36px;height:36px;padding:0!important;flex:0 0 36px}

.profile-avatar img,.profile-trigger img{width:100%;height:100%;object-fit:cover;border-radius:50%}

/* Compact chat actions; deliberately separate from full-screen settings pages. */
.chat-popup{box-sizing:border-box;position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;width:min(360px,calc(100% - 32px))!important;height:fit-content!important;max-height:calc(100dvh - 48px)!important;padding:20px!important;border-radius:24px!important;overflow:auto!important;border:1px solid #444;background:#202020;color:#eee}
.chat-popup::backdrop{background:#0008}.chat-popup-header{display:flex;align-items:center;gap:12px}.chat-popup h2{font-size:18px;line-height:1.4;flex:1;overflow-wrap:anywhere;margin:0}.chat-popup-header button{background:none;border:0;min-height:44px;padding:8px;color:inherit;font-size:14px}.chat-popup .next-actions{display:flex;flex-direction:column;gap:4px;margin-top:14px}.chat-popup .next-actions button{width:100%;min-height:48px;text-align:left;background:transparent;border:0;border-radius:12px;color:inherit;padding:12px;font-size:16px}.chat-popup .next-card{border:0;background:none;padding:14px 0 0;margin:0}.chat-popup .next-card h3{font-size:16px;overflow-wrap:anywhere}.chat-popup .next-card p{font-size:14px;line-height:1.5}.chat-popup .next-card button{min-height:44px;margin:8px 8px 0 0}.chat-popup .danger,.chat-popup .next-actions button:last-child{color:#ff8c87!important}.history-chat{touch-action:pan-y;-webkit-touch-callout:none;user-select:none}
html[data-theme=light] .chat-popup{background:#fff;color:#222;border-color:#ddd}html[data-theme=light] .chat-popup .danger,html[data-theme=light] .chat-popup .next-actions button:last-child{color:#b3261e!important}
