:root{color-scheme:dark;--bg:#090d14;--surface:#111722;--raised:#171f2c;--border:#253044;--text:#edf2fb;--muted:#8e9eb5;--blue:#a4c7ff;--blue-dark:#192b46;--green:#79d6b0;--radius:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:15px;line-height:1.6}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button,a{touch-action:manipulation}button{border:0;color:inherit;background:none}a{color:var(--blue);text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-.8px;line-height:1.35;font-weight:650}h2{font-size:17px;font-weight:600}p{line-height:1.75}small,.small{font-size:12px;line-height:1.7}.muted{color:var(--muted)}[hidden]{display:none!important}input,textarea,select{width:100%;background:#0c111b;color:var(--text);border:1px solid var(--border);border-radius:12px;padding:12px 14px;outline:none;min-width:0}input:focus,textarea:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 3px #a4c7ff12}input::placeholder,textarea::placeholder{color:#71829b}textarea{resize:vertical}label{display:block;font-size:13px;color:#b9c6d9}label>input,label>textarea,label>select,label>.input-action{margin-top:7px}button:focus-visible,a:focus-visible{outline:2px solid var(--blue);outline-offset:4px}.primary,.secondary{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:12px;min-height:46px;padding:11px 18px;font-weight:600;font-size:14px}.primary{background:var(--blue);color:#12213a}.primary span{margin-left:auto}.secondary{background:var(--raised);border:1px solid var(--border);color:#dbe7fa}.quiet{color:var(--muted);padding:10px;font-size:13px;white-space:nowrap}.quiet:hover{color:var(--text)}.stack{display:grid;gap:18px}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--muted);font-weight:650;display:block}.environment{padding:7px 12px;text-align:center;font-size:10px;color:#d6b782;background:#332718;border-bottom:1px solid #5b4225;line-height:1.5}.auth-screen{max-width:430px;margin:0 auto;padding:28px 25px 36px;display:grid;gap:23px;align-content:start;overflow-anchor:none}.auth-brand{text-align:center;display:grid;justify-items:center;gap:12px}.auth-brand img,.checkout-avatar{border-radius:24px}.auth-brand .eyebrow{margin-top:8px}.auth-brand p{font-size:13px;color:var(--muted)}.gift{display:flex;align-items:center;gap:13px;padding:16px;border:1px solid #37547b;background:linear-gradient(120deg,#192e4b,#152135);border-radius:16px}.gift-icon{font-size:29px;color:var(--blue)}.gift strong{display:block;font-size:14px;color:#d9e9ff}.gift small{display:block;color:#9baec9}.input-action{display:flex;border:1px solid var(--border);border-radius:12px;background:#0c111b;overflow:hidden}.input-action input{border:0;min-width:0;background:none}.input-action .quiet{color:var(--blue);font-size:12px;padding:12px}.check{display:flex;gap:8px;align-items:flex-start;font-size:11px;color:var(--muted)}.check input{width:15px;height:15px;margin:3px 0 0;flex-shrink:0;accent-color:var(--blue)}.notice{padding:15px;border:1px solid #30425d;border-radius:12px;color:#c0d5f4;background:#142037;font-size:13px;line-height:1.8}.notice p{margin:6px 0 12px}.notice .secondary{margin-top:10px}.brand{display:flex;align-items:center;gap:10px;color:var(--text);letter-spacing:.2px}.brand img{border-radius:11px}.cloud-label{color:var(--muted);font-size:10px;border:1px solid var(--border);border-radius:5px;padding:0 5px}.app-header{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #1b2536;max-width:840px;margin:auto}.balance-chip{padding:7px 11px;border:1px solid var(--border);border-radius:20px;color:var(--muted);font-size:11px}.balance-chip strong{margin-left:6px;color:var(--blue);font-size:12px;font-weight:550}.customer #app{max-width:840px;margin:0 auto}.customer main{padding-bottom:76px}.chat-view{height:calc(100dvh - 140px);display:flex;flex-direction:column;padding:0 18px}.environment:not([hidden])~#app .chat-view{height:calc(100dvh - 171px)}.chat-toolbar{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);flex-shrink:0;height:45px}.chat-toolbar>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:64%}.chat-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;padding:2px 0 20px}.empty-state{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px 0 25px}.empty-state img{border-radius:28px;margin-bottom:18px;animation:arrive .45s ease-out}.empty-state h1{font-size:25px;margin:9px 0 10px}.empty-state p{font-size:12px;color:var(--muted)}.suggestions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:25px;max-width:360px}.suggestions button{border:1px solid var(--border);color:#b7c7dc;padding:9px 12px;border-radius:10px;font-size:12px;background:#101723}.composer{background:linear-gradient(120deg,#192231,#131b27);border:1px solid #334058;border-radius:20px;padding:13px 14px 12px;box-shadow:0 8px 24px #0002;flex-shrink:0}.composer textarea{background:transparent;border:0;box-shadow:none;padding:0;min-height:48px;max-height:160px;resize:none;font-size:15px}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:6px}.model-label{display:flex;align-items:center;gap:7px;font-size:10px;color:#98aac3;min-width:0}.model-label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:215px}.model-label i{width:5px;height:5px;background:var(--green);border-radius:50%;flex-shrink:0}.send-button{width:41px;height:41px;border-radius:13px;background:var(--blue);color:#152b48;font-size:26px;line-height:1}.stop-button{height:38px;border-radius:11px;border:1px solid #6689bc;background:#243853;color:#d3e3fd;font-size:12px;padding:0 12px}.composer-caption{text-align:center;font-size:9px;color:#70829d;margin:8px 0 10px}.message{max-width:100%;font-size:15px;overflow-wrap:anywhere;line-height:1.85;margin:18px 0 27px;animation:arrive .2s ease-out}.message.user{margin-left:auto;background:#1d2e47;border:1px solid #30425d;border-radius:17px 17px 5px 17px;padding:11px 15px;max-width:87%;width:fit-content}.assistant-name{display:flex;gap:8px;align-items:center;font-size:11px;color:#bacbe3;font-weight:600;margin:12px 0}.assistant-name img{border-radius:8px}.markdown pre{overflow:auto;background:#141d2a;padding:14px;border:1px solid var(--border);border-radius:12px;font-size:12px}.markdown code{font-size:.9em;background:#162338;padding:2px 4px;border-radius:4px}.markdown pre code{padding:0;background:none}.markdown p{margin:10px 0}.markdown ul,.markdown ol{padding-left:24px}.markdown table{font-size:12px;display:block;overflow:auto}.markdown h1{font-size:23px}.markdown h2{font-size:19px}.markdown h3{font-size:16px}.reply-status{font-size:12px;color:#b5c9e5;margin:12px 0;padding:11px 13px;background:#142036;border-radius:10px}.reply-status.waiting:before{content:'●';font-size:8px;margin-right:8px;animation:pulse 1.3s ease-in-out infinite}.mobile-nav{display:flex;position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,840px);padding:8px 14px max(9px,env(safe-area-inset-bottom));background:#0f1520f7;border-top:1px solid #202b3e;z-index:20;backdrop-filter:blur(16px);height:73px}.mobile-nav button{flex:1;display:grid;align-content:center;justify-items:center;gap:1px;font-size:10px;color:#8193ac;border-radius:14px}.mobile-nav button>span{font-size:20px;line-height:26px}.mobile-nav button.active{color:var(--blue);background:#a4c7ff0c}.page{padding:28px 20px;animation:arrive .22s ease-out}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.page-heading h1{margin-top:5px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:21px;margin-bottom:20px}.panel h2{margin-bottom:8px}.wallet-card{padding:24px 25px 18px;background:linear-gradient(120deg,#293d5d 0%,#1e2a41 64%,#243454);border:1px solid #4c6180;border-radius:22px;position:relative;overflow:hidden;margin-bottom:24px}.wallet-card>span{font-size:12px;color:#b0c5e3}.wallet-card>strong{display:block;font-size:42px;font-weight:600;letter-spacing:-1.4px;margin:7px 0}.wallet-card>small{color:#a2b7d6;font-size:10px;display:block}.wallet-card-footer{display:flex;justify-content:space-between;border-top:1px solid #adcbff24;margin-top:22px;padding-top:14px;font-size:10px;color:#b4c9e7}.amount-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:19px 0}.amount-grid button{padding:14px 0;border-radius:12px;border:1px solid var(--border);background:#0e1420;font-size:18px}.amount-grid .selected{border-color:var(--blue);background:#1d304e;color:#c9e0ff}.payment-choices{display:grid;gap:8px;margin-bottom:12px}.payment-button{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:11px 13px;border:1px solid var(--border);border-radius:12px;font-size:13px}.payment-button>span:last-child{margin-left:auto;color:var(--muted)}.pay-mark{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;font-size:15px;font-weight:bold}.wechat{background:#173b2e;color:#69d59a}.alipay{background:#153a5b;color:#6ac0ff}.list{display:grid}.ledger-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px 0;border-bottom:1px solid #202b3e}.ledger-row:last-child{border-bottom:0;padding-bottom:0}.ledger-row strong{font-size:12px;font-weight:550}.ledger-row small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.ledger-row>strong{white-space:nowrap}.positive{color:var(--green)}.history-item{display:flex;align-items:center;gap:14px;text-align:left;padding:18px 2px;border-bottom:1px solid #202b3e}.history-item>span:last-child{margin-left:auto;color:var(--muted)}.history-item strong{display:block;font-size:14px;font-weight:500}.history-item small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.history-symbol{display:grid;place-items:center;background:#18253b;border-radius:12px;width:40px;height:40px;flex-shrink:0;color:var(--blue);font-size:22px}.account-card{display:flex;align-items:center;gap:17px}.account-card img{border-radius:17px}.account-card p{font-size:12px}.details{display:grid;grid-template-columns:1fr auto;gap:15px;font-size:12px;margin:20px 0}.details dt{color:var(--muted)}.details dd{margin:0;text-align:right;max-width:230px;overflow-wrap:anywhere}.version{text-align:center;font-size:10px;color:#5c6d85}.empty-copy{text-align:center;padding:25px;color:var(--muted);font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}#toast{position:fixed;bottom:94px;left:50%;transform:translateX(-50%);max-width:calc(100% - 36px);width:max-content;border:1px solid #3c4c66;border-radius:14px;padding:13px 18px;color:#e5efff;background:#1c2a40;z-index:100;font-size:13px;box-shadow:0 8px 30px #0008}.console{display:grid;grid-template-columns:225px 1fr;min-height:100dvh}.sidebar{background:#0e141e;border-right:1px solid var(--border);padding:27px 18px;position:sticky;top:0;height:100dvh;display:flex;flex-direction:column}.sidebar .brand{padding:0 9px}.brand-sub{display:block;font-size:10px;letter-spacing:2px;color:#7b8da8;font-weight:400}.sidebar-label{font-size:10px;color:#687b96;margin:38px 12px 13px}.sidebar nav{display:grid;gap:7px}.sidebar nav button{display:flex;gap:13px;align-items:center;text-align:left;padding:12px 14px;border-radius:11px;font-size:17px;color:#8a9cb5}.sidebar nav button>span{font-size:12px}.sidebar nav button.active{color:var(--blue);background:#1c2b43}.sidebar-bottom{margin-top:auto;padding:20px 10px 0;display:grid;gap:12px}.console-main{padding:35px min(4vw,55px);min-width:0;max-width:1600px;width:100%;margin:auto}.console-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:34px;gap:14px}.console-header h1{margin-top:8px}.console-header .secondary{font-size:12px;min-height:38px;padding:8px 14px}.console-footer{font-size:10px;color:#596d8a;margin-top:30px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.metric{padding:23px 24px;background:var(--surface);border:1px solid var(--border);border-radius:18px;min-width:0}.metric.featured{background:linear-gradient(120deg,#263b5b,#19283f);border-color:#3c567d}.metric>span{display:block;font-size:12px;color:#a1b3ce}.metric>strong{display:block;font-weight:600;font-size:32px;margin:13px 0 8px;letter-spacing:-.8px;white-space:nowrap}.metric small{display:block;font-size:10px;color:#788da9}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(290px,1fr);gap:22px;align-items:start}.section-heading{margin-bottom:17px}.section-heading h2{font-size:15px}.section-tools{display:flex;gap:10px;margin:17px 0}.section-tools input{max-width:350px;font-size:12px}.tag{display:inline-block;padding:4px 8px;border-radius:7px;background:#1b2940;color:#a9bddc;font-size:10px;white-space:nowrap}.tag.good{background:#15362d;color:#85d4b5}.table-wrap{overflow:auto;width:100%}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px}th{font-size:10px;font-weight:500;color:#7f94b1;white-space:nowrap;padding:11px 12px;background:#101a28}td{padding:16px 12px;border-bottom:1px solid #1d2a3c;vertical-align:middle}tr:last-child td{border-bottom:0}td small{display:block;color:var(--muted);font-size:10px}td code{font-size:10px;color:#8eabc9}.table-button{padding:5px 4px;color:var(--blue);font-size:11px;white-space:nowrap}.health-list>div{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #1d2a3c;font-size:12px}.health-list{margin-bottom:18px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.version-row{padding:18px 0;border-bottom:1px solid #1d2a3c}.version-row:first-child{padding-top:0}.version-row:last-child{border:0}.version-row>div{display:flex;align-items:center;gap:8px;font-size:12px}.version-row small{display:block;font-size:10px;color:var(--muted)}.version-row>div small{margin-left:auto}.version-row p{font-size:12px;margin:8px 0}.audit-detail{font-size:11px;overflow-wrap:anywhere;max-width:300px;display:block}dialog{background:var(--surface);color:var(--text);border:1px solid #354967;border-radius:21px;padding:25px;width:min(450px,calc(100% - 30px));max-height:90dvh;overflow:auto}dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading .quiet{font-size:22px}@keyframes arrive{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{50%{opacity:.3}}@media(min-width:750px){.customer .chat-view{padding:0 45px}.page{padding:35px 45px}.empty-state h1{font-size:32px}.empty-state img{width:115px;height:115px}.customer .app-header{padding:0 44px}.customer .mobile-nav{width:450px;border:1px solid #253044;border-radius:20px;bottom:12px;height:65px}.customer main{padding-bottom:90px}}@media(max-width:1100px){.console{grid-template-columns:190px 1fr}.sidebar{padding:24px 12px}.console-main{padding:28px 24px}.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-columns{grid-template-columns:1fr}.metric>strong{font-size:29px}}@media(max-width:650px){.console{display:block}.sidebar{position:relative;height:auto;padding:16px;border-right:0;border-bottom:1px solid var(--border)}.sidebar-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;overflow:auto;gap:4px;margin-top:18px}.sidebar nav button{padding:9px 10px;font-size:0;flex-shrink:0;gap:0}.sidebar nav button>span{font-size:11px}.console-main{padding:25px 16px}.console-header{margin-bottom:24px}.console-header h1{font-size:23px}.metric-grid{gap:10px}.metric{padding:18px}.metric>strong{font-size:27px}.panel{padding:17px}.form-grid{grid-template-columns:1fr 1fr}td{padding:13px 9px}.auth-screen{padding-top:35px}.empty-state h1{font-size:24px}}@media(max-height:700px){.empty-state img{width:70px;height:70px;margin-bottom:10px}.empty-state h1{font-size:22px}.empty-state .eyebrow{display:none}.suggestions{margin-top:15px}.empty-state{padding-top:6px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}
.approval-card{margin:12px 0;padding:16px;border:1px solid var(--border,#394150);border-radius:16px;background:var(--surface,#11151c)}.approval-card pre{max-height:160px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.approval-card>div{display:flex;gap:12px;justify-content:flex-end}.approval-card p{overflow-wrap:anywhere}

.boot-screen{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:28px;text-align:center;background:var(--bg)}.boot-screen img{border-radius:22px}.boot-screen p{font-size:13px;color:var(--muted)}.auth-screen input:not([type=checkbox]){font-size:16px}.input-action #send-code{flex:0 0 108px;min-width:108px;font-variant-numeric:tabular-nums}.customer .message{animation:none}.auth-screen{padding-bottom:max(36px,env(safe-area-inset-bottom))}

/* AIC mobile 0.3: own implementation of touch-first chat patterns. */
.refreshed{--bg:#0d1016;--surface:#181d26;--raised:#202734;--border:#2b3442;--text:#edf1f7;--muted:#96a3b7;--blue:#abcaff;--radius:22px;min-height:100dvh;display:flex;flex-direction:column}
.refreshed .icon-sprite{position:absolute;pointer-events:none;overflow:hidden}
.refreshed .icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;display:block}
.refreshed button,.refreshed a{transition:background-color .16s ease,color .16s ease,border-color .16s ease; -webkit-tap-highlight-color:transparent}
.refreshed button:active{filter:brightness(1.16)}
.refreshed .icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:15px;color:var(--muted);flex-shrink:0}
.refreshed .icon-button:hover{background:var(--raised);color:var(--text)}
.refreshed .icon-button.filled{background:#24344e;color:var(--blue)}
.refreshed .environment{width:100%;flex:none;min-height:27px;background:#272319;border-color:#393023;color:#c8b98e;font-size:10px;padding:6px 10px;line-height:1.5}
.refreshed[data-screen=app]{height:100dvh;min-height:0;overflow:hidden}
.refreshed #app{display:flex;flex:1;flex-direction:column;width:100%;max-width:840px;min-height:0;margin:0 auto;background:var(--bg)}
.refreshed .app-header{width:100%;height:70px;flex:none;padding:6px 19px;border:0;margin:0;gap:12px}
.refreshed .brand{padding:0;text-align:left;min-height:48px;gap:10px}
.refreshed .brand img{flex:none;object-fit:contain}
.refreshed .header-copy{display:grid;gap:1px}
.refreshed .header-copy strong{font-size:16px;font-weight:650;letter-spacing:.3px}
.refreshed .header-copy small{font-size:10px;color:var(--muted);font-weight:400;letter-spacing:0}
.refreshed .balance-chip{display:grid;gap:0;justify-items:end;border:0;border-radius:14px;background:#171f2d;min-height:44px;padding:6px 12px;line-height:1.5}
.refreshed .balance-chip span{font-size:9px;letter-spacing:.2px}
.refreshed .balance-chip strong{font-size:13px;line-height:1.5;margin:0;font-variant-numeric:tabular-nums}
.refreshed main{padding:0;flex:1;min-height:0;position:relative;overflow:hidden}
.refreshed .chat-view,.refreshed .environment:not([hidden])~#app .chat-view{height:100%;padding:0 16px;min-height:0}
.refreshed .chat-toolbar{height:44px;gap:10px;font-size:12px;flex:none}
.refreshed .chat-toolbar>span{max-width:none;flex:1;min-width:0;padding-left:3px}
.refreshed .toolbar-actions{display:flex;gap:2px}
.refreshed .toolbar-actions .icon-button{width:40px;height:40px}
.refreshed .conversation-body{flex:1;min-height:0;position:relative}
.refreshed .chat-scroll{height:100%;padding:5px 2px 24px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#344053 transparent;overflow-anchor:none;outline:none}
.refreshed .empty-state{padding:18px 0 22px;min-height:100%;justify-content:center}
.refreshed .welcome-avatar{width:84px;height:84px;display:grid;place-items:center;margin-bottom:18px}
.refreshed .empty-state img{width:84px;height:84px;margin:0;object-fit:contain;animation:none}
.refreshed .empty-state .eyebrow{font-size:11px;letter-spacing:1px;color:#a4b3ca;display:block}
.refreshed .empty-state h1{font-size:25px;font-weight:600;letter-spacing:-.5px;margin:10px 0 8px}
.refreshed .empty-state p{font-size:12px;color:#94a1b5}
.refreshed .suggestions{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:100%;max-width:410px;margin:24px 0 0}
.refreshed .suggestions button{display:flex;align-items:center;gap:9px;min-height:46px;text-align:left;border-radius:18px;border:1px solid #252e3d;background:#171e2a;padding:12px;color:#b9cef0;font-size:12px}
.refreshed .suggestions button[data-prompt-mode=task]{grid-column:1/-1}
.refreshed .suggestions button>span{min-width:0}
.refreshed .suggestions strong{color:#d5e1f4;font-size:12px;font-weight:550}
.refreshed .suggestions small{color:#8394ad;font-size:10px;line-height:1.5;white-space:nowrap}
.refreshed .suggestions .icon{width:18px;height:18px}
.refreshed .suggestion-arrow{margin-left:auto;font-size:15px;color:#7488a7}
.refreshed .composer{background:#1b2330;border:1px solid #364258;border-radius:24px;padding:13px 13px 10px;box-shadow:0 3px 20px #0002;flex:none}
.refreshed .composer:focus-within{border-color:#6482ac;box-shadow:0 0 0 2px #abcaff07}
.refreshed .composer textarea{display:block;min-height:27px;max-height:min(144px,28dvh);line-height:1.65;font-size:16px;padding:0 2px;resize:none;overflow-y:auto;scrollbar-width:thin}
.refreshed .composer textarea::placeholder{font-size:14px;color:#8695ac}
.refreshed .composer-bottom{padding-top:9px;gap:8px;min-height:46px}
.refreshed .model-label{display:flex;align-items:center;gap:7px;padding:6px 8px;min-height:38px;border-radius:12px;max-width:calc(100% - 82px);color:#abbcd5;background:#121b28;font-size:10px;text-align:left}
.refreshed .model-label #model-name{max-width:180px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.refreshed .model-label .model-dot{width:5px;height:5px;border-radius:50%;background:#87b7f7;flex-shrink:0}
.refreshed .model-label .icon{width:14px;height:14px;color:#7f94b2}
.refreshed .composer-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}
.refreshed .send-button{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:#b0cfff;color:#172c4b}
.refreshed .send-button .icon{width:23px;height:23px;stroke-width:2}
.refreshed .send-button:disabled{opacity:.35}
.refreshed .stop-button{height:43px;min-width:72px;background:#2d3644;border:1px solid #61738c;border-radius:16px;color:#dce7f8;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px}
.refreshed .composer-caption{flex:none;font-size:9px;line-height:1.5;color:#7a8ba4;margin:7px 0 9px}
.refreshed .message{margin:11px 0 24px;line-height:1.85;font-size:15px;animation:none;content-visibility:visible}
.refreshed .message.user{margin-left:auto;max-width:90%;background:none;border:0;border-radius:0;padding:0;width:fit-content}
.refreshed .user-bubble{padding:11px 15px;background:#27364d;color:#edf3ff;border:1px solid #344862;border-radius:20px 20px 6px 20px}
.refreshed .assistant-name{font-size:11px;color:#a9b8ce;gap:8px;margin:14px 0 8px;letter-spacing:.1px}
.refreshed .assistant-name::before{content:'';width:26px;height:26px;flex:none;background:url('/assets/avatar.png?v=1') center / contain no-repeat}
.refreshed .message-tools{display:flex;align-items:center;gap:3px;margin-top:3px}
.refreshed .user .message-tools{justify-content:flex-end}
.refreshed .message-tools button{min-height:40px;min-width:40px;padding:8px 10px;display:flex;align-items:center;gap:5px;color:#8c9db6;font-size:10px;border-radius:12px}
.refreshed .message-tools button:hover{background:#202a39;color:var(--blue)}
.refreshed .message-tools .icon{width:15px;height:15px}
.refreshed .markdown{user-select:text;-webkit-user-select:text}
.refreshed .markdown p{margin:7px 0 12px}
.refreshed .markdown pre{background:#141b26;border-color:#2b3748;border-radius:16px;white-space:pre;overscroll-behavior-x:contain}
.refreshed .markdown code{background:#202d40;color:#bfd8ff}
.refreshed .markdown pre code{background:none;color:#d5e1f2}
.refreshed .markdown blockquote{margin:14px 0;padding:4px 14px;border-left:3px solid #759dd3;color:#acbed8}
.refreshed .markdown table{max-width:100%}
.refreshed .reply-status{display:flex;align-items:center;gap:11px;margin:12px 0 18px;padding:13px;background:#171e29;border:1px solid #2a374b;border-radius:18px;color:#b8cbe7}
.refreshed .reply-status:before{display:none}
.refreshed .task-indicator{width:15px;height:15px;border:2px solid #526985;border-top-color:#afceff;border-radius:50%;flex:none}
.refreshed .reply-status.waiting .task-indicator{animation:aic-spin 1.4s linear infinite}
.refreshed .reply-status:is([data-phase=approval],[data-phase=review]){background:#27251c;border-color:#514832}
.refreshed .reply-status:is([data-phase=approval],[data-phase=review]) .task-indicator{animation:none;border-color:#ccb67c;background:#ccb67c;width:8px;height:8px;margin:3px}
.refreshed .reply-status[data-phase=offline] .task-indicator,.refreshed .reply-status[data-phase=error] .task-indicator{border-color:#d4a29a;animation:none}
.refreshed .task-copy{display:grid;gap:2px;flex:1;min-width:0}
.refreshed .task-copy strong{font-size:12px;font-weight:550}
.refreshed .task-copy small{font-size:10px;line-height:1.6;color:#93a5c0}
.refreshed .reply-status time{font-size:10px;font-variant-numeric:tabular-nums;color:#91a3bc;white-space:nowrap}
.refreshed .approval-card{margin:12px 0 20px;padding:17px;background:#22251f;border:1px solid #4b523d;border-radius:20px}
.refreshed .approval-heading{display:flex;gap:8px;align-items:center;color:#d3dfb2;font-size:13px}
.refreshed .approval-heading .icon{width:17px;height:17px}
.refreshed .approval-details{display:grid;gap:8px;margin:12px 0 0;color:#d6dec9;font-size:12px}
.refreshed .approval-details div{display:grid;grid-template-columns:4em minmax(0,1fr);gap:9px;align-items:start}
.refreshed .approval-details dt{color:#aeb99d}
.refreshed .approval-details dd{margin:0;overflow-wrap:anywhere}
.refreshed .approval-card p{font-size:12px;color:#c4cdb4;margin-top:9px;line-height:1.7}
.refreshed .approval-card pre{background:#161b15;border:1px solid #363e2e;border-radius:12px;padding:12px;max-height:140px;font-size:11px}
.refreshed .approval-card details{margin:10px 0;font-size:11px;color:#c2cdaa}.refreshed .approval-card summary{min-height:36px;cursor:pointer;line-height:36px}
.refreshed .clipboard-copy{position:fixed;left:-10000px;top:0;width:1px;height:1px}
.refreshed .approval-card .approval-actions{display:flex;gap:9px;margin-top:14px}
.refreshed .approval-actions button{flex:1;min-height:44px;font-size:12px;white-space:nowrap;padding:10px 8px}
.refreshed .approval-actions .primary{background:#c7dab0;color:#27331d}
.refreshed .approval-actions .secondary{background:#2b3125;border-color:#48533a;color:#d1dbc4}
.refreshed .jump-latest{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;min-height:40px;padding:9px 15px;border:1px solid #485a74;border-radius:24px;color:#cadcf8;background:#233147;box-shadow:0 4px 20px #0005;font-size:11px;z-index:2}
.refreshed .jump-latest .icon{width:15px;height:15px}
.refreshed .mobile-nav{position:relative;left:auto;bottom:auto;transform:none;flex:none;width:100%;height:auto;min-height:72px;max-width:none;padding:6px 14px max(7px,env(safe-area-inset-bottom));background:var(--bg);border:0;border-top:1px solid #202835;border-radius:0;backdrop-filter:none;gap:5px}
.refreshed .mobile-nav button{gap:2px;min-height:54px;color:#7c8ca4;border-radius:18px;background:none;font-size:10px}
.refreshed .mobile-nav .nav-symbol{width:52px;height:31px;display:grid;place-items:center;border-radius:18px;transition:background-color .16s ease;line-height:1}
.refreshed #tasks-tab .nav-symbol{position:relative}
.refreshed #task-badge{position:absolute;top:3px;right:10px;width:7px;height:7px;border-radius:50%;background:#f0bb83;box-shadow:0 0 0 2px var(--bg)}
.refreshed #task-list .needs-approval{padding-inline:12px;background:#26251e;border-color:#665131}
.refreshed #task-list .needs-approval .history-symbol{background:#393224;color:#e5be82}
.refreshed #task-record-files{margin:10px 0 14px}
.refreshed #task-record-result{margin:10px 0;color:var(--muted);font-size:13px}
.refreshed #task-record-result summary{padding:8px 0;cursor:pointer;color:var(--text)}
.refreshed #task-record-text{max-height:40vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.refreshed .mobile-nav .icon{width:20px;height:20px;stroke-width:1.6}
.refreshed .mobile-nav button.active{background:none;color:#bfd8ff}
.refreshed .mobile-nav button.active .nav-symbol{background:#263b59}
.refreshed .page{height:100%;overflow-y:auto;overscroll-behavior-y:contain;padding:22px 20px 30px;animation:aic-in .18s ease-out;scrollbar-width:thin}
.refreshed .page-heading{margin-bottom:21px;gap:12px}
.refreshed .page-heading h1{font-size:25px;margin-top:5px}
.refreshed .page-heading .eyebrow{font-size:10px;letter-spacing:.6px}
.refreshed .panel{background:#171e29;border-color:#2a3445;border-radius:22px;padding:19px;margin-bottom:17px}
.refreshed .panel h2{font-size:15px}
.refreshed .history-search{display:flex;align-items:center;gap:10px;background:#1a2230;border:1px solid #303c50;border-radius:12px;padding:0 14px;min-height:50px}
#view-history .history-search:focus-within{border-color:var(--blue)}
.refreshed .history-search .icon{width:18px;height:18px;color:#8194b1}
.refreshed #history-search{border:0;background:transparent;padding:12px 0;font-size:16px;box-shadow:none;margin:0}
.refreshed .history-search input::placeholder{font-size:13px}
.refreshed .list-caption{font-size:10px;color:#7f91ad;margin:15px 3px 9px;min-height:18px}
.refreshed .history-group{font-size:11px;font-weight:500;color:#8b9db9;padding:18px 3px 7px}
.refreshed .history-item{padding:15px 5px;gap:12px;border-color:#242f40;min-height:76px;border-radius:13px}
.refreshed .history-item.current{background:#1b2a40;padding-left:12px;padding-right:12px}
.refreshed .history-symbol{width:38px;height:38px;background:#1d2a3e;color:#9dbcec;border-radius:13px;flex-shrink:0}
.refreshed .history-symbol .icon{width:18px;height:18px}
.refreshed .history-copy{flex:1;min-width:0}
.refreshed .history-item strong{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-weight:500}
.refreshed .history-item small{font-size:10px;color:#8194b1;display:flex;align-items:center;gap:7px}
.refreshed .running-badge{color:#a4d4c1;background:#203b34;border-radius:5px;padding:1px 5px;font-size:9px}
.refreshed .history-item>.icon{width:16px;color:#7588a6}
.refreshed .wallet-card{border-color:#485f84;border-radius:24px;background:linear-gradient(115deg,#2a456b,#22344f);padding:23px 23px 18px;margin-bottom:20px}
.refreshed .wallet-card>strong{font-size:39px;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.refreshed .wallet-card>small{font-size:11px;color:#b2c4df}
.refreshed .amount-grid{gap:8px}
.refreshed .amount-grid button{font-size:17px;min-height:54px;padding:12px 0;border-radius:15px;background:#151d29}
.refreshed .amount-grid .selected{background:#293f5f;border-color:#96bcf1;color:#d6e7ff}
.refreshed .payment-button{min-height:54px;border-radius:15px;background:#1b2533;border-color:#303e53;padding:12px;font-size:13px}
.refreshed .pay-mark{width:30px;height:30px;border-radius:10px}
.refreshed .account-card{gap:13px;padding:20px}
.refreshed .account-card img{flex:none;object-fit:contain}
.refreshed .account-card h2{font-size:17px;overflow-wrap:anywhere}
.refreshed .account-card .muted{font-size:11px}
.refreshed .details{font-size:12px;gap:15px 12px}
.refreshed .details dd{max-width:205px;color:#c7d7ef}
.refreshed .account-actions{padding:0 17px}
.refreshed .settings-row{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:58px;border-bottom:1px solid #293346;color:#d2def0;font-size:13px;padding:12px 1px;text-align:left;gap:15px}
.refreshed .settings-row:last-child{border:0}
.refreshed .settings-row .icon{width:18px;height:18px;color:#8299b8}
.refreshed .logout-row{color:#baa9ae}
.refreshed .version{font-size:10px;color:#7d8ea7;margin:21px 0 10px}
.refreshed .auth-screen{width:100%;max-width:430px;padding:30px 25px 32px;gap:21px;margin:0 auto;min-height:0;align-content:start}
.refreshed .auth-brand{gap:10px;margin-bottom:6px}
.refreshed .auth-brand img{object-fit:contain}
.refreshed .auth-brand h1{font-size:25px}
.refreshed .auth-brand .eyebrow{margin-top:6px;font-size:10px;letter-spacing:1.2px}
.refreshed .gift{border-color:#354a69;background:#1c2b42;border-radius:18px;padding:14px;gap:12px}
.refreshed .gift .icon{width:25px;height:25px;color:#abcaff}
.refreshed .gift strong{font-size:13px}
.refreshed .gift small{font-size:10px;color:#a4b5ce}
.refreshed .auth-screen input:not([type=checkbox]){font-size:16px;min-height:50px;border-radius:15px}
.refreshed .input-action{border-radius:15px}
.refreshed .input-action input{height:50px}
.refreshed .auth-screen .primary{border-radius:16px;min-height:50px}
.refreshed .auth-screen .install-entry{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;font-size:12px;color:#9fb8df;border:0;background:none;padding:7px}
.refreshed .install-entry .icon{width:15px;height:15px}
.refreshed #policy{font-size:10px;line-height:1.75;color:#8495af}
html:not([data-client=android]) .android-only,html[data-client=android] .web-only{display:none!important}
html:not([data-native=android]) .native-only,html[data-native=android] .non-native-only{display:none!important}
.refreshed .boot-screen{flex:1;min-height:100svh;gap:14px}
.refreshed .boot-screen>p{max-width:330px;font-size:13px}
.boot-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}
.login-connection{display:grid;gap:12px}
.login-connection .secondary{justify-self:start}
.refreshed .mobile-sheet{position:fixed;inset:auto 0 0;width:min(100%,500px);max-width:none;max-height:85dvh;margin:0 auto;padding:10px 23px max(24px,env(safe-area-inset-bottom));border:1px solid #36455c;border-bottom:0;border-radius:28px 28px 0 0;background:#182130;overflow:auto;color:var(--text)}
.refreshed .mobile-sheet[open]{animation:aic-sheet .2s ease-out}
.refreshed .mobile-sheet::backdrop{background:#03070bb3;backdrop-filter:blur(3px)}
.refreshed .sheet-handle{width:34px;height:4px;border-radius:3px;background:#53647e;margin:1px auto 8px}
.refreshed .dialog-heading h2{font-size:17px}
.refreshed .sheet-label{font-size:11px;color:#8c9fb9;margin:15px 0 6px}
.refreshed .sheet-model{display:block;font-size:18px;font-weight:550;color:#d2e3ff;overflow-wrap:anywhere;margin-bottom:7px}
.refreshed .mobile-sheet .notice{font-size:11px;background:#202e43;border-color:#364862;border-radius:15px;margin-bottom:16px}
.refreshed .mobile-sheet .secondary{width:100%;border-radius:15px}
.refreshed #toast{background:#2b3d57;border-color:#526e96;color:#ecf3ff;font-size:12px;bottom:90px;border-radius:16px;max-width:calc(100% - 36px);z-index:100;pointer-events:none}
@keyframes aic-spin{to{transform:rotate(360deg)}}
@keyframes aic-in{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes aic-sheet{from{opacity:.5;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:750px){.refreshed .chat-view{padding:0 38px}.refreshed .app-header{padding:6px 39px}.refreshed .page{padding:28px 38px 38px}.refreshed .mobile-nav{padding-left:130px;padding-right:130px}.refreshed .empty-state h1{font-size:29px}}
@media(max-height:620px){.refreshed .empty-state{padding:8px 0 18px}.refreshed .welcome-avatar{width:54px;height:54px;border-radius:18px;margin-bottom:10px}.refreshed .empty-state img{width:54px;height:54px;border-radius:18px}.refreshed .empty-state h1{font-size:22px}.refreshed .suggestions{margin-top:17px}.refreshed .app-header{height:58px}.refreshed .composer-caption{display:none}.refreshed .mobile-nav{min-height:62px;padding-top:3px;padding-bottom:3px}}
@media(prefers-reduced-motion:reduce){.refreshed *, .refreshed *:before,.refreshed *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-height:600px){.refreshed[data-view=chat][data-composing=true] .mobile-nav{display:none}}

.refreshed .composer-bottom .model-label { min-width: 0; }
.refreshed .incoming-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 28dvh; overflow-y: auto; }
.refreshed .incoming-files { padding-left: 20px; overflow-wrap: anywhere; }
.refreshed .incoming-actions { display: grid; gap: 10px; }
.refreshed #voice-input[aria-disabled=true] { opacity: .45; }
.refreshed .phone-action-card { display: grid; gap: 5px; padding: 14px; margin: 12px 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.refreshed .phone-action-kind, .refreshed .phone-action-card small { color: var(--muted); font-size: 12px; }
.refreshed .phone-action-card p { margin: 0; font-size: 13px; }
.refreshed .phone-action-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.refreshed .phone-action-fields label { display: grid; gap: 5px; margin: 9px 0; font-size: 13px; }
.refreshed .phone-action-fields input, .refreshed .phone-action-fields select, .refreshed .phone-action-fields textarea { max-width: 100%; min-width: 0; box-sizing: border-box; }
.refreshed .phone-inline-check { display: flex !important; gap: 8px; align-items: flex-start; font-size: 13px; }
.refreshed .phone-inline-check input, .refreshed .phone-days input { width: 18px; height: 18px; flex: none; margin: 3px 0; }
.refreshed .phone-days { display: flex; flex-wrap: wrap; gap: 12px; }
.refreshed .phone-days label { display: flex; align-items: center; gap: 4px; }
.refreshed .phone-timer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.refreshed .attachment-button { background: var(--raised); color: var(--blue); border-radius: 14px; }
.refreshed .attachment-draft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-height: 90px;
  overflow-y: auto;
  margin-bottom: 6px;
}
.refreshed .draft-file {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  padding-left: 9px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--raised);
  color: var(--text);
  font-size: 12px;
}
.refreshed .draft-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refreshed .draft-file .icon { width: 16px; height: 16px; color: var(--muted); }
.refreshed .draft-file button { width: 34px; height: 36px; flex: none; display: grid; place-items: center; }
.refreshed .draft-file [data-original-file] { width: 42px; color: var(--muted); border-radius: 8px; }
.refreshed .draft-file [data-original-file][aria-pressed="true"] { color: var(--blue); box-shadow: inset 0 0 0 1px currentColor; }
.refreshed .attachment-feedback { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.refreshed .attachment-feedback button { min-height: 38px; color: var(--blue); white-space: nowrap; }
.refreshed .chat-files { display: grid; gap: 7px; width: min(100%, 440px); margin-top: 8px; }
.refreshed .chat-file-card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.refreshed .file-card-label {
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--text);
}
.refreshed .file-capsule { display: grid; place-items: center; width: 34px; height: 36px; border-radius: 10px; background: var(--task-surface, var(--raised)); color: var(--blue); }
.refreshed .file-card-label > .icon { width: 16px; color: var(--muted); }
.refreshed .file-card-copy > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refreshed .file-card-copy strong { font-size: 13px; font-weight: 650; }
.refreshed .file-card-copy small { color: var(--muted); font-size: 11px; }
.refreshed .image-file-card .file-card-label { padding: 0 0 8px; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
.refreshed .image-file-card .file-card-copy { padding-inline-start: 12px; }
.refreshed .image-file-card .file-card-label > .icon { margin-inline-end: 10px; }
.refreshed .image-file-card .file-capsule { display: none; }
.refreshed aic-image-thumb {
  position: relative; grid-column: 1 / -1; width: 100%; height: clamp(176px, 58vw, 240px); display: grid; place-items: center;
  overflow: hidden; border-radius: 13px 13px 0 0; background: var(--raised); color: var(--muted); font-size: 12px;
}
.refreshed aic-image-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.refreshed .file-card-actions { display: flex; justify-content: end; padding: 0 6px; border-top: 1px solid var(--border); }
.refreshed .file-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; color: var(--blue); font-size: 12px; }
.refreshed .file-preview { width: min(540px, calc(100% - 22px)); padding: 12px; }
.refreshed .file-preview[open] { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.refreshed .file-preview > * { flex-shrink: 0; }
.refreshed .file-preview .dialog-heading { gap: 6px; }
.refreshed .file-preview h2 { min-width: 0; overflow-wrap: anywhere; font-size: 16px; }
.refreshed #file-preview-status:empty { display: none; }
.refreshed .file-preview-body { flex: 1 1 auto; min-height: 0; max-height: 58dvh; overflow: auto; margin: 8px 0; }
.refreshed .file-preview-body :is(canvas, img) { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.refreshed .file-preview-body video { display: block; max-width: 100%; max-height: 54dvh; margin-inline: auto; }
.refreshed .file-preview-body[data-zoom="2"] :is(canvas,.print-page) { width: 200%; max-width: none; margin-inline: 0; }
.refreshed .file-preview-body[data-zoom="3"] :is(canvas,.print-page) { width: 300%; max-width: none; margin-inline: 0; }
.refreshed .pdf-navigation button { min-height: 40px; min-width: 44px; }
.refreshed .file-preview-body pre { margin: 0; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--raised); border-radius: 12px; color: var(--text); font-size: 13px; }
.refreshed .pdf-navigation,
.refreshed .file-preview-actions { display: flex; align-items: center; justify-content: center; gap: 8px; }
.refreshed .pdf-navigation { color: var(--muted); font-size: 12px; }
.refreshed .file-preview-actions a { flex: 1; }
.video-review { margin: 4px 0 12px; }
.video-review summary { padding: 10px 0; cursor: pointer; font-weight: 600; }
.video-review form, .video-review label { display: grid; gap: 6px; }
.video-review textarea { width: 100%; box-sizing: border-box; background: var(--surface); color: var(--text); }
.refreshed .file-preview:has(.video-review[open]) video { max-height: 35dvh; }
.video-review ul { list-style: none; padding: 0; margin: 0 0 8px; max-height: 18dvh; overflow: auto; }
.video-review li { display: flex; align-items: baseline; gap: 8px; overflow-wrap: anywhere; white-space: pre-wrap; }
.video-review [role=status]:empty { display: none; }

.refreshed .device-list {
  padding: 0;
  margin: 8px 0 16px;
  list-style: none;
}
.refreshed .device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.refreshed .device-row strong { font-size: 14px; }
.refreshed .device-row .secondary {
  width: auto;
  flex: none;
  padding-inline: 10px;
  font-size: 12px;
}
.refreshed .account-card #account-phone { overflow-wrap: anywhere; }
.trial-code-value {
  letter-spacing: .07em;
  font: 600 16px ui-monospace, Consolas, monospace;
}
.refreshed #phone-notes { background: var(--surface); color: var(--text); min-height: 80px; }
.history-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.refreshed .history-filters > button { min-width: 0; padding: 9px 6px; }
.refreshed .history-filters [aria-pressed=true] { border-color: var(--blue); background: var(--task-surface, var(--raised)); color: var(--blue); font-weight: 700; }
.library-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; margin: 5px 0; font-size: 14px; line-height: 1.5; }
.library-item .history-copy { min-width: 0; }
.library-item .history-copy strong { white-space: normal; overflow-wrap: anywhere; }
.history-position { color: var(--muted); font-size: 13px; line-height: 1.6; padding: 10px 0; }
.message.search-target .user-bubble, .message.search-target > .markdown { box-shadow: inset 3px 0 0 var(--blue); }
#history-more { margin-top: 16px; width: 100%; }
.library-entry { min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--border); }
.library-entry h2 { font-size: 17px; margin: 0 0 8px; overflow-wrap: anywhere; }
.library-entry .history-item { border-bottom: 0; }
.library-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.library-index-note { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 8px 0; overflow-wrap: anywhere; }
.library-sheet { max-height: 90dvh; overflow-y: auto; }
.library-sheet form { display: grid; gap: 12px; }
.library-sheet form.library-actions { display: flex; }
#library-delete-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
#library-delete-form button { width:100%; min-height:44px; }
.library-sheet label { display: grid; gap: 6px; font-size: 14px; }
.refreshed .library-sheet input, .refreshed .library-sheet textarea, .refreshed .library-sheet select { width: 100%; min-width: 0; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 10px; font: inherit; }
.library-sheet textarea { resize: vertical; max-height: 35dvh; }
.library-sheet p { overflow-wrap: anywhere; }
.refreshed .message-tools, .refreshed .file-card-actions { flex-wrap: wrap; }
.routine-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.refreshed .routine-tabs [aria-pressed=true] { color: var(--blue); border-color: var(--blue); background: var(--task-surface, var(--surface)); }
.routine-card { padding: 16px 0; border-bottom: 1px solid var(--border); min-width: 0; overflow-wrap: anywhere; }
.routine-card-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.routine-card-heading h2 { margin: 0; font-size: 17px; }
.routine-card-heading span, .routine-card small, .routine-last { font-size: 13px; color: var(--muted); }
.routine-card p { line-height: 1.65; margin: 8px 0; }
#routine-form fieldset { min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.routine-days { display: flex; gap: 12px; flex-wrap: wrap; }
.library-sheet label.routine-check { display: flex; align-items: center; gap: 8px; padding: 8px 0; overflow-wrap: anywhere; }
.refreshed .library-sheet .routine-check input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--blue); }
#routine-files { max-height: 200px; overflow-y: auto; }
#routine-history-title { overflow-wrap: anywhere; min-width: 0; }
.refreshed #routines-area > .list-caption { font-size: 13px; line-height: 1.65; }
#routine-note:empty { display: none; }
.connection-review { padding: 14px; margin-block: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--task-surface, var(--surface)); }
.connection-review > :is(a, button) { display: block; margin-top: 10px; text-align: center; }
.connection-event { padding-block: 14px; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.connection-event h3 { margin: 0 0 8px; font-size: 16px; }
.connection-event p { margin-block: 8px; line-height: 1.65; }
.connection-event > a { display: inline-block; margin-top: 6px; }
#connection-calendar-options { max-height: 34dvh; overflow-y: auto; }
#connection-calendar-title { min-width: 0; overflow-wrap: anywhere; }
#connection-calendars hr { border: 0; border-top: 1px solid var(--border); margin-block: 20px; }
#connections-status:empty, #connection-disconnect-status:empty { display: none; }
.work-calendar-fields { display: grid; gap: 12px; min-width: 0; padding: 0; margin: 0; border: 0; }
#work-calendar-receipt a { display: block; margin-block: 12px; text-align: center; }
#work-calendar-unsaved:empty { display: none; }
/* Authorized calendar data stays visible next to the request that used it. */
.work-source-composer:has(p[hidden]) { display:none; }
.work-source-composer { display:flex; flex-wrap:wrap; gap:6px; align-items:center; width:100%; }
.work-source-composer p { margin:0 0 6px; width:100%; overflow-wrap:anywhere; }
.work-source-message { margin:10px 0; }
.work-source-message button { text-align:left; white-space:normal; }
.work-source-record { margin-top:20px; overflow-wrap:anywhere; }
.work-source-record article { padding:12px 0; border-top:1px solid var(--border); }
.work-source-record article p { margin:6px 0; }
#work-source-sheet label { display:grid; gap:8px; margin:12px 0; }
#work-source-sheet .routine-check { display:flex; }
#work-source-sheet select, #work-source-sheet input { min-width:0; width:100%; }
#work-source-sheet input[type=checkbox] { width:auto; }
.memory-item { padding:16px 0; border-top:1px solid var(--border); overflow-wrap:anywhere; }
.memory-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.memory-details { margin:12px 0; }
.memory-details summary { cursor:pointer; }
#memory-text { width:100%; min-height:140px; margin-top:8px; resize:vertical; }
#memory-editor-status, #memory-status { overflow-wrap:anywhere; }
.voice-sheet { width:min(480px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:20px; }
.refreshed dialog.voice-sheet[open] { display:flex; flex-direction:column; overflow:hidden; max-height:calc(100dvh - 16px); }
.voice-body { min-height:0; overflow:auto; overscroll-behavior:contain; }
.voice-sheet > .dialog-heading, .voice-sheet > .voice-controls { flex:none; }
.voice-sheet h2 { font-size:18px; margin:0; }
.voice-presence { text-align:center; padding:16px 0 8px; }
.voice-presence h3 { font-size:20px; margin:14px 0 8px; }
.voice-presence p { min-height:3em; margin:0; color:var(--muted); font-size:14px; line-height:1.7; overflow-wrap:anywhere; }
.voice-setup { font-size:14px; line-height:1.75; color:var(--muted); }
.voice-setup p { margin:10px 0; }
.voice-local-choice { display:flex; align-items:center; gap:10px; min-height:44px; color:var(--text); cursor:pointer; }
.voice-local-choice input { width:20px; height:20px; margin:0; flex:none; accent-color:var(--blue); }
.voice-transcript { max-height:30dvh; overflow:auto; overscroll-behavior:contain; background:var(--raised); padding:4px 16px; border-radius:16px; margin:12px 0; }
.voice-transcript section { padding:12px 0; }
.voice-transcript section + section { border-top:1px solid var(--border); }
.voice-transcript h4 { margin:0 0 6px; font-size:12px; color:var(--muted); }
.voice-transcript p { margin:0; font-size:15px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.voice-transcript .voice-answer { font-size:15px; line-height:1.7; overflow-wrap:anywhere; }
.voice-transcript .voice-answer p { white-space:normal; }
.voice-transcript .voice-answer p + p { margin-top:10px; }
.voice-usage { text-align:center; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.voice-controls { display:grid; gap:10px; margin-top:16px; }
.refreshed .voice-controls :is(a,button) { display:flex; align-items:center; justify-content:center; min-height:48px; padding:12px; width:100%; white-space:normal; text-align:center; font-size:15px; text-decoration:none; border-radius:14px; }
.refreshed .voice-controls .voice-end { color:var(--stop,#e7a3b4); border-color:currentColor; }

.refreshed .phone-calendar-sheet[open] { display:flex; flex-direction:column; overflow:hidden; max-height:92dvh; }
.phone-calendar-sheet > .dialog-heading, .phone-calendar-footer { flex:none; }
.phone-calendar-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 2px 12px; }
.phone-calendar-body h3 { margin:20px 0 8px; font-size:16px; }
.phone-calendar-body label { margin:10px 0; }
.phone-calendar-body a.secondary { display:flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:44px; padding:10px; text-align:center; text-decoration:none; }
.phone-calendar-body a[aria-disabled=true] { opacity:.55; }
.phone-calendar-dates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.phone-calendar-sheet :is(label.phone-calendar-option,.phone-calendar-event label) { display:flex; align-items:flex-start; gap:10px; padding:10px 2px; min-height:44px; box-sizing:border-box; }
.refreshed .phone-calendar-sheet input[type=checkbox] { width:20px; height:20px; flex:0 0 20px; margin:2px 0; accent-color:var(--blue); }
.phone-calendar-sheet label span { min-width:0; overflow-wrap:anywhere; }
.phone-calendar-sheet label :is(strong,small) { display:block; }
.phone-calendar-sheet label small { margin-top:5px; color:var(--muted); }
.phone-calendar-event { padding:8px 12px 12px; margin:10px 0; border:1px solid var(--border); border-radius:16px; background:var(--surface); overflow-wrap:anywhere; }
.phone-calendar-event p { font-size:13px; margin:4px 0 10px; }
.phone-calendar-event .file-action { display:inline-flex; align-items:center; min-height:44px; }
.phone-calendar-event.calendar-conflict { border-color:var(--blue); box-shadow:inset 3px 0 0 var(--blue); }
.phone-calendar-footer { padding-top:12px; border-top:1px solid var(--border); }
.phone-calendar-footer button { width:100%; min-height:44px; white-space:normal; }
.phone-calendar-footer p { margin:6px 0 0; }
.phone-context-pickers { display:flex; gap:10px; }
.phone-context-pickers a { flex:1; min-width:0; }
@media(max-width:360px) { .phone-calendar-dates { grid-template-columns:minmax(0,1fr); gap:0; } }
/* Day theme shared by the browser and Android's system light mode. */
html[data-client="web"],
html[data-client="android"][data-theme="light"] {
  color-scheme: light;
  background: #f6f7fb;
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed {
  --bg: #f6f7fb;
  --surface: #fff;
  --raised: #edf0f8;
  --border: #dce2ed;
  --text: #17243d;
  --muted: #56637a;
  --blue: #2949bd;
  --blue-ink: #fff;
  --blue-dark: #e5ebff;
  --bubble: #e6edff;
  --task-surface: #edf1ff;
  --task-border: #d9e2ff;
  --green: #23694f;
  --green-surface: #e6f5ee;
  --amber: #78501c;
  --amber-surface: #fff4e0;
  --amber-border: #eddbbb;
  --stop: #972f4c;
  --day-shadow: 0 12px 32px #24385f0d;
  background: radial-gradient(ellipse at top, #edf1ff 0, var(--bg) 460px);
  color: var(--text);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(.app-header, .chat-toolbar, .settings-row, .history-item, .ledger-row) {
  border-color: var(--border);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(input, textarea, select, .input-action, .panel, .history-search, dialog, .mobile-sheet) {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(label, input::placeholder, textarea::placeholder, .composer textarea::placeholder,
    .composer-caption, .list-caption, .history-group, .history-item small, .version,
    .sheet-label, .assistant-name, .message-tools button, .task-copy small, .reply-status time, #policy) {
  color: var(--muted);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(input, textarea, select):focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #2949bd18;
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(.primary, .send-button) {
  background: var(--blue);
  color: var(--blue-ink);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(.secondary, .payment-button, .amount-grid button) {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(.gift, .notice, .mobile-sheet .notice, .reply-status, .history-item.current, .amount-grid .selected) {
  background: var(--task-surface);
  border-color: var(--task-border);
  color: var(--text);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(.gift strong, .sheet-model, .details dd, .settings-row, .suggestions strong) {
  color: var(--text);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(.gift small, .suggestions small, .suggestion-arrow, .history-item > .icon, .settings-row .icon) {
  color: var(--muted);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(.gift .icon, .install-entry, .input-action .quiet, .history-search .icon, .history-symbol) {
  color: var(--blue);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(.environment, .reply-status[data-phase="approval"], .reply-status[data-phase="review"]) {
  background: var(--amber-surface);
  border-color: var(--amber-border);
  color: var(--amber);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .auth-brand img {
  background: #000;
  box-shadow: 0 0 0 6px #fff, 0 9px 26px #2949bd26;
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .auth-screen > form {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--day-shadow);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .suggestions button {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 3px 10px #24385f08;
  color: var(--blue);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .composer {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--day-shadow);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .composer:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #2949bd16;
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .composer textarea,
    .history-search input {
  background: transparent;
  box-shadow: none;
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(.model-label, .icon-button.filled, .history-symbol, .jump-latest) {
  background: var(--raised);
  color: var(--blue);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .model-label :is(.icon, .model-dot) { color: var(--blue); }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .model-label .model-dot { background: var(--green); }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .user-bubble { background: var(--bubble); border-color: var(--task-border); color: var(--text); }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .markdown :is(pre, code) { background: var(--raised); border-color: var(--border); color: var(--text); }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .markdown pre code { background: transparent; }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .markdown blockquote { border-color: var(--blue); color: var(--muted); }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .message-tools button:hover { background: var(--raised); color: var(--blue); }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(.stop-button, .logout-row) { color: var(--stop); }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .stop-button { background: #fff1f4; border-color: #ecd0da; }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .running-badge { background: var(--green-surface); color: var(--green); }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .mobile-nav {
  background: #fffffff5;
  border-color: var(--border);
  box-shadow: 0 -5px 20px #24385f08;
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .mobile-nav button { color: var(--muted); }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .mobile-nav button.active { color: var(--blue); }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .mobile-nav button.active .nav-symbol { background: var(--task-surface); }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .wallet-card {
  background: linear-gradient(125deg, #e2eaff, #f4f6ff);
  border-color: var(--task-border);
}

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .wallet-card > :is(span, small, .wallet-card-footer) { color: var(--muted); }
:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed #wallet-balance { color: var(--text); }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .wallet-card-footer { border-color: var(--task-border); }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .sheet-handle { background: #b7c2d8; }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed dialog::backdrop { background: #14244155; }


:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed #toast { background: #21345d; border-color: transparent; color: #fff; }

:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(.balance-chip, .balance-chip strong) { background: var(--surface); color: var(--text); }
:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .balance-chip { border: 1px solid var(--border); }
:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .balance-chip strong { color: var(--blue); }
:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed :is(.empty-state p, .empty-state .eyebrow, .composer textarea::placeholder) { color: var(--muted); }
:is(html[data-client="web"], html[data-client="android"][data-theme="light"]) .refreshed .chat-scroll { scrollbar-color: #c8d1e5 transparent; }

/* Chat composer and contextual tools */
.refreshed #composer {
  border-radius: 21px;
  margin-bottom: 8px;
  padding: 13px 12px 8px;
}
.refreshed #message { padding-inline: 3px; font-size: 16px; }
.refreshed #composer .composer-bottom { padding-top: 7px; min-height: 44px; }
.compose-tools, .refreshed #composer .composer-actions { display: flex; align-items: center; gap: 4px; }
.refreshed .compose-more, .refreshed .compose-attachment, .refreshed #open-voice {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 14px;
}
.compose-more { padding: 0 8px; color: var(--text); }
.compose-attachment { width: 44px; color: var(--muted); }
.refreshed #open-voice { width: 44px; padding: 0; background: var(--task-surface, var(--raised)); color: var(--blue); }
.refreshed .compose-tools .icon, .refreshed #open-voice .icon { width: 19px; height: 19px; }
.refreshed #composer .send-button { height: 44px; width: 44px; }
.refreshed #composer:has(+ .composer-caption:not([hidden])) { margin-bottom: 0; }
.refreshed .composer-caption:not([hidden]) { display: block; }
.refreshed #chat-tools, .refreshed #voice-sheet {
  padding: 8px 20px max(20px, env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  background: var(--surface);
  color: var(--text);
}
.refreshed :is(#chat-tools,#voice-sheet) .sheet-handle { margin: 0 auto 4px; height: 4px; }
.refreshed :is(#chat-tools,#voice-sheet) .dialog-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; }
.refreshed :is(#chat-tools,#voice-sheet) .dialog-heading h2 { font-size: 18px; }
.refreshed :is(#chat-tools,#voice-sheet) .dialog-heading .icon-button { width: 44px; height: 44px; color: var(--muted); }
.chat-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.refreshed .chat-tool {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 12px 10px;
  min-height: 56px;
  border-radius: 14px;
  background: var(--raised);
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  text-align: start;
}
.refreshed .chat-tool .icon { width: 19px; height: 19px; flex: none; color: var(--blue); }

/* Voice sheet: session state, transcript, then reachable controls. */
.refreshed #voice-sheet { gap: 0; }
.refreshed #voice-sheet .voice-body { padding-inline: 1px; }
.refreshed #voice-sheet .voice-presence {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 8px 0 16px;
  text-align: start;
}
.voice-signal { width: 54px; height: 54px; flex: none; display: grid; place-items: center; color: var(--blue); background: var(--task-surface, var(--raised)); border-radius: 50%; }
.voice-signal .icon { width: 26px; height: 26px; stroke-width: 2; }
#voice-sheet[data-phase=listening] .voice-signal { color: var(--green); background: var(--green-surface, var(--raised)); }
#voice-sheet .voice-presence h3 { font-size: 22px; line-height: 1.3; margin: 0; }
#voice-sheet .voice-presence p { min-height: 0; font-size: 13px; line-height: 1.55; margin-top: 4px; }
#voice-sheet .voice-presence p:empty { display: none; }
#voice-sheet .voice-local-choice { justify-content: space-between; padding: 10px 12px; background: var(--raised); border-radius: 12px; font-weight: 550; }
#voice-sheet .voice-setup p { margin: 8px 2px 0; font-size: 12px; line-height: 1.55; }
#voice-sheet .voice-transcript { padding: 0; margin: 0; border-radius: 0; max-height: none; overflow: visible; background: transparent; }
#voice-sheet .voice-transcript section { padding: 12px 0; }
#voice-sheet .voice-transcript h4 { margin: 0 0 4px; font-size: 12px; letter-spacing: .03em; }
#voice-sheet .voice-transcript section:first-child { background: var(--raised); padding: 10px 13px; margin-bottom: 4px; border-radius: 12px; }
#voice-sheet .voice-transcript section + section { border: 0; }
#voice-sheet .voice-transcript section + section h4 { color: var(--blue); }
#voice-sheet .voice-usage { font-size: 11px; color: var(--muted); text-align: start; margin: 8px 0 0; }
#voice-sheet .voice-controls { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
#voice-sheet .voice-controls > * { grid-column: 1 / -1; }
#voice-sheet :is(#voice-mute,#voice-end) { grid-column: auto; }
#voice-sheet #voice-mute[hidden] ~ #voice-end { grid-column: 1 / -1; }
#voice-sheet #voice-end { border-color: var(--border); color: var(--stop); }
@media (max-height: 520px) {
  #voice-sheet .voice-presence { padding-block: 4px; min-height: 52px; }
  #voice-sheet .voice-controls { margin-top: 6px; padding-top: 6px; }
}

.refreshed #composer[data-action="voice"]:has(#open-voice:not([hidden])) #send,
.refreshed #composer[data-action="send"] #open-voice { display: none; }
.refreshed #composer[data-action="voice"] #open-voice { background: var(--blue); color: var(--blue-ink, white); }
#task-desktop-frame { display: block; width: 100%; height: auto; max-height: 58dvh; object-fit: contain; margin-top: 12px; border-radius: 12px; background: var(--raised); }
#refresh-task-desktop { margin-top: 12px; min-height: 44px; }
.task-desktop-controls { display: flex; flex-wrap: wrap; gap: 6px; }
#task-desktop-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
#task-desktop-keys button { width: 100%; min-width: 0; }
.task-desktop-controls:has(button:not([hidden])) { margin-top: 10px; }
.task-desktop-controls button { min-height: 44px; }
#task-desktop-frame.is-controlling { cursor: crosshair; }
.refreshed .message-more summary { display: inline-flex; align-items: center; gap: 5px; padding: 7px 8px; min-height: 44px; border-radius: 12px; color: var(--muted); font-size: 12px; cursor: pointer; list-style: none; }
.message-more summary::-webkit-details-marker { display: none; }
.refreshed .message-more summary:hover, .refreshed .message-more[open] summary { background: var(--raised); color: var(--blue); }
.refreshed .message-more[open] { flex-basis: 100%; }
.refreshed .user .message-more { text-align: end; }
.refreshed .message-extra-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.refreshed .user .message-extra-actions { justify-content: flex-end; }
.refreshed #messages .message-tools button { min-height: 44px; font-size: 12px; }

.refreshed #open-sidebar { display:flex; align-items:center; gap:12px; min-width:44px; min-height:44px; padding:0 5px; text-align:start; color:var(--text); overflow:hidden; }
.refreshed #open-sidebar > .icon { width:22px; height:22px; flex:none; }
.refreshed #open-sidebar .chat-identity-copy { min-width:0; }
.refreshed #open-sidebar :is(strong,small) { display:block; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.refreshed #open-sidebar strong { font-size:16px; line-height:1.5; }
.refreshed #open-sidebar small { color:var(--muted); font-size:11px; }
.refreshed .toolbar-actions { margin-inline-start:auto; }
.refreshed #side-drawer { box-sizing:border-box; position:fixed; inset:0 auto 0 0; margin:0; width:min(84vw,330px); height:100%; height:100dvh; max-height:none; max-width:none; padding:12px 16px max(20px,env(safe-area-inset-bottom)); border:0; border-inline-end:1px solid var(--border); border-radius:0 22px 22px 0; background:var(--surface); color:var(--text); overflow:auto; }
.refreshed #side-drawer[open] { display:flex; flex-direction:column; animation:aic-drawer-in .17s ease-out; }
@keyframes aic-drawer-in { from { transform:translateX(-100%); } }
.drawer-head { display:flex; align-items:center; gap:10px; min-height:60px; padding:0 2px 10px; border-bottom:1px solid var(--border); }
.drawer-head img { border-radius:11px; }.drawer-head strong { font-size:18px; }
.refreshed #drawer-close { margin-inline-start:auto; min-width:44px; min-height:44px; }
.drawer-links { display:grid; gap:2px; margin:14px 0 24px; }
.refreshed .drawer-links button { display:flex; align-items:center; gap:13px; padding:11px 12px; min-height:48px; border-radius:12px; text-align:start; font-size:15px; color:var(--text); }
.refreshed .drawer-links button:hover,.refreshed .drawer-links button:focus-visible { background:var(--raised); }
.refreshed .drawer-links a:not([hidden]) { display:flex; align-items:center; gap:13px; padding:11px 12px; min-height:48px; border-radius:12px; color:var(--text); text-decoration:none; }
.refreshed .drawer-links a:hover,.refreshed .drawer-links a:focus-visible { background:var(--raised); }
.drawer-links .icon { width:20px; height:20px; color:var(--blue); }
.drawer-links .drawer-conversations-chevron { margin-inline-start:auto; width:15px; height:15px; color:var(--muted); }
#drawer-conversations[aria-expanded=true] .drawer-conversations-chevron { transform:rotate(90deg); }
.drawer-conversations { margin:0 0 6px 12px; padding-inline-start:10px; border-inline-start:1px solid var(--border); min-width:0; }
.drawer-conversations h3 { margin:9px 8px 2px; color:var(--muted); font-size:12px; font-weight:600; }
.drawer-conversations p { padding-inline:8px; overflow-wrap:anywhere; }
.drawer-conversation-row { display:flex; align-items:center; min-width:0; }
.refreshed .drawer-links .drawer-conversations button { padding:6px 8px; min-height:44px; font-size:13px; }
.refreshed .drawer-links .drawer-conversation-title { flex:1; display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.refreshed .drawer-links .drawer-conversation-row button:not(.drawer-conversation-title) { flex:none; min-width:44px; justify-content:center; font-size:12px; color:var(--muted); }
.refreshed .drawer-links .drawer-chat-remove .icon { width:17px; height:17px; color:inherit; }
.library-chat-row { display:flex; align-items:center; gap:4px; border-bottom:1px solid var(--border); }
.library-chat-row .history-item { flex:1; min-width:0; border-bottom:0; }
.library-chat-row .library-chat-remove { flex:none; width:44px; height:44px; color:var(--muted); }
.library-chat-remove .icon { width:18px; height:18px; }
.drawer-conversation-title[aria-current=true] { background:var(--raised); }
#drawer-appearance { min-width:0; border:0; padding:0; margin:auto 0 0; }
#drawer-appearance legend { padding:0 0 8px; color:var(--muted); font-size:13px; }
.theme-options { display:grid; grid-template-columns:1fr 1fr 1.3fr; gap:3px; padding:4px; border-radius:14px; background:var(--raised); }
.refreshed .theme-options button { min-height:44px; border-radius:10px; color:var(--muted); font-size:13px; }
.refreshed .theme-options button[aria-pressed=true] { background:var(--surface); color:var(--blue); font-weight:650; box-shadow:0 1px 3px #101a3020; }

/* Meeting review stays beside its original chat, with controls outside the scrolling transcript. */
dialog.meeting-sheet[open] { display:flex; flex-direction:column; width:min(100%,680px); max-height:92dvh; overflow:hidden; }
.meeting-sheet .dialog-heading { flex:none; gap:12px; }
.meeting-sheet h2,.meeting-sheet h3,.meeting-chat-card strong { overflow-wrap:anywhere; }
.meeting-body { min-height:0; overflow:auto; overscroll-behavior:contain; padding:6px 2px 12px; }
.meeting-body>*,.meeting-body section>*,#meeting-alternatives>*,#meeting-form>*,.meeting-review-row>*,.meeting-segment>* { margin-bottom:12px; }
.meeting-sheet input,.meeting-sheet textarea,.meeting-sheet select { background:var(--bg); color:var(--text); }
.meeting-sheet label { color:var(--text); }
.meeting-sheet h3 { margin-top:16px; font-size:15px; }
.meeting-footer { flex:none; border-top:1px solid var(--border); padding-top:12px; background:var(--surface); }
.meeting-footer p:not(:empty) { margin-bottom:10px; font-size:13px; overflow-wrap:anywhere; }
.meeting-footer .library-actions { display:flex; flex-wrap:wrap; gap:8px; }
.meeting-footer .library-actions>button { flex:1 1 150px; min-height:44px; }
.meeting-sheet progress,.meeting-sheet audio { width:100%; }
#meeting-record { display:grid; gap:8px; }
#meeting-record p { margin:0; }
#meeting-record-start { display:inline-flex; align-items:center; justify-content:center; min-height:44px; }
#meeting-record-info:empty { display:none; }
.meeting-reader-heading { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.meeting-reader-heading p { flex:1 1 150px; }
.meeting-tabs { display:flex; gap:6px; border-bottom:1px solid var(--border); padding-bottom:8px; }
.meeting-tabs button { flex:1; min-height:44px; }
.meeting-tabs button[aria-pressed=true] { color:var(--blue); background:var(--raised); font-weight:600; }
.meeting-review-row,.meeting-segment { padding:14px 0; border-bottom:1px solid var(--border); }
.meeting-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.meeting-item-choice { display:flex; align-items:center; gap:10px; min-height:44px; }
.meeting-item-choice input { width:20px; height:20px; flex:none; }
.meeting-citation { min-height:44px; text-decoration:underline; text-underline-offset:3px; }
.meeting-original { white-space:pre-wrap; overflow-wrap:anywhere; }
.meeting-segment-heading,.meeting-pages { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.meeting-segment-heading label { flex:1; }
.meeting-draft { width:100%; display:flex; justify-content:space-between; gap:10px; margin-bottom:8px; text-align:start; overflow-wrap:anywhere; }
.meeting-draft span { flex:none; color:var(--muted); font-size:12px; }
.meeting-chat-card { margin:10px 0; padding:14px; background:var(--surface); border:1px solid var(--border); border-radius:14px; display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.meeting-chat-card>div { flex:1 1 130px; min-width:0; }.meeting-chat-card p { color:var(--muted); font-size:12px; }
.meeting-chat-card button { min-height:44px; }
@media(max-width:360px) { .meeting-fields { grid-template-columns:1fr; } .meeting-footer .library-actions>button { flex-basis:100%; } }
#hermes-skills[open] { display:flex; flex-direction:column; max-height: min(86dvh, 760px); }
#hermes-skills .dialog-heading { flex-shrink:0; }
#hermes-skills-status:empty { display:none; }
.skill-category { margin:14px 4px 3px; color:var(--muted); font-size:.86rem; }
#work-stations { max-height:88dvh; overflow:auto; }
#ws-body :is(form,fieldset,details,.ws-record) { margin-block:12px; }
#ws-body fieldset { border:1px solid var(--border); border-radius:12px; padding:12px; min-width:0; }
#ws-body summary { cursor:pointer; padding-block:8px; }
#ws-body .ws-record { border-bottom:1px solid var(--border); padding-bottom:8px; }
#ws-body .ws-record small { display:block; color:var(--muted); overflow-wrap:anywhere; }
#ws-body p { white-space:pre-wrap; overflow-wrap:anywhere; }
#ws-body .ws-select { display:flex; align-items:center; gap:8px; min-height:44px; }
#ws-body .ws-select input { width:18px; height:18px; flex:none; margin:0; }
.ws-member { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:6px 0; }
.ws-code { user-select:all; color:var(--blue); }
#ws-body .library-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(105px,1fr)); gap:8px; }
#ws-body .library-actions button { width:100%; margin:0; }
#ws-body .ws-search { grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px; }
#ws-body .ws-search label:first-child { grid-column:1/-1; }
#ws-body .ws-search button[type=submit] { width:auto; min-width:68px; margin:0; }
.care-result { white-space:pre-wrap; overflow-wrap:anywhere; }
#desktop-care { margin:12px 0; } #desktop-care summary { padding:10px 0; cursor:pointer; }
#hermes-skills-retry { margin-top:12px; }
#hermes-skill-list { overflow-y:auto; overscroll-behavior:contain; min-height:0; }
.hermes-skill-row { display:grid; width:100%; grid-template-columns:30px minmax(0,1fr) 16px; align-items:center; gap:12px; text-align:left; padding:11px 5px; color:var(--text); }
.hermes-skill-row + .hermes-skill-row { border-top:1px solid var(--task-border,var(--border)); }
.hermes-skill-row:focus-visible { outline-offset:-3px; }
.hermes-skill-row .skill-symbol { width:22px; height:22px; color:var(--blue); justify-self:center; }
.hermes-skill-row .skill-chevron { width:14px; height:14px; color:var(--muted); }
.hermes-skill-row strong, .hermes-skill-row small { display:block; }
.hermes-skill-row strong { font-size:1rem; font-weight:600; }
.hermes-skill-row small { color:var(--muted); font-size:.83rem; line-height:1.5; margin-top:2px; }
.bot-avatar { display:inline-block; width:32px; height:32px; flex:none; color:#171921; fill:currentColor; vertical-align:middle; }
.bot-byline { display:flex; align-items:center; gap:8px; }
.bot-byline .bot-avatar { width:26px; height:26px; }
.bot-room-bar { padding:6px 14px 8px; border-bottom:1px solid var(--border); background:var(--surface); flex:none; color:var(--muted); font-size:12px; }
.bot-model-picker { display:inline-flex; align-items:center; gap:6px; max-width:100%; margin-inline-end:8px; white-space:nowrap; }
.bot-model-bar { flex:none; padding:0 14px 5px; color:var(--muted); font-size:12px; }
.bot-model-picker select { min-height:36px; max-width:min(62vw, 280px); color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:8px; }
.bot-media-price { display:inline-block; white-space:nowrap; }
.bot-reply-model { min-width:0; color:var(--muted); overflow-wrap:anywhere; }
.bot-members { display:flex; gap:6px; overflow-x:auto; padding:3px 0; }
.bot-member { display:flex; align-items:center; gap:5px; max-width:150px; min-height:44px; flex:none; padding:3px 9px 3px 5px; border:1px solid var(--border); border-radius:14px; color:var(--text); background:var(--surface); }
.bot-member[aria-pressed=true], .bot-avatar-option:has(:checked) { border-color:var(--blue); box-shadow:inset 0 0 0 1px var(--blue); }
.bot-member span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-shell { display:contents; }
#bots-dialog { width:min(100%, 680px); margin-inline:auto; }
.bot-page-heading { padding:12px 14px; border:1px solid var(--border); border-radius:16px; background:var(--surface); }
.bot-page-heading h2 { margin:0; }
.bot-page-heading.bot-page-back { justify-content:flex-start; gap:8px; }
.bot-page-heading .icon-button { min-width:48px; min-height:48px; }
#bot-turn-note { margin:0; padding:2px 8px; }
.refreshed a.local-service-settings, .refreshed .drawer-links a.local-service-settings { display:none; }
.turn-notice { display: contents; }
.bot-page-heading [data-bots-action=back] .icon { transform:rotate(180deg); }
.bot-page-body { display:grid; gap:12px; margin-top:12px; padding:14px; background:var(--surface); border:1px solid var(--border); border-radius:16px; }
.bot-page-body h3, #bots-status { margin:0; }
#bots-status:empty { display:none; }
body[data-view=bots] .mobile-nav, body[data-view=bot-chat] .mobile-nav,
body[data-view=bots] .app-header, body[data-view=bot-chat] .app-header,
body[data-view=bot-chat] #open-sidebar, body[data-view=bot-chat] #open-history,
body[data-view=bot-chat] #new-chat, body[data-view=bot-chat] #chat-title, body[data-view=bot-chat] #empty { display:none; }
#bot-chat-title { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bot-session-list { display:grid; gap:6px; margin-block:12px; }
.bot-session-list button { text-align:left; overflow-wrap:anywhere; min-height:44px; }
.bot-form, .bot-list, .bot-buttons { display:grid; gap:9px; }
.bot-form > label, .bot-model-field { display:grid; gap:4px; min-width:0; }
.bot-form input:not([type=radio],[type=checkbox],[type=hidden]), .bot-form textarea, .bot-model-trigger { width:100%; min-height:44px; background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:12px; padding:8px 10px; }
.bot-model-fields { display:grid; gap:9px; }
.bot-model-trigger, .bot-model-option { display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:start; }
.bot-model-trigger span, .bot-model-option span { min-width:0; overflow-wrap:anywhere; }
.bot-model-trigger .icon { flex:none; color:var(--muted); }
#bot-model-sheet .icon-button { min-width:44px; min-height:44px; }
#bot-model-options { display:grid; gap:6px; }
#bot-model-options h3 { margin:8px 0 0; color:var(--muted); font-size:12px; }
.bot-model-option { min-height:48px; padding:9px 12px; border:1px solid var(--border); border-radius:12px; background:var(--raised); color:var(--text); }
.bot-model-option::after { content:''; flex:none; width:15px; height:15px; border:1px solid var(--muted); border-radius:50%; }
.bot-model-option[aria-pressed=true] { border-color:var(--blue); }
.bot-model-option[aria-pressed=true]::after { border-color:var(--blue); background:var(--blue); box-shadow:inset 0 0 0 3px var(--raised); }
.bot-model-option:disabled { color:var(--muted); }
.aic-picker-source { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; clip-path:inset(50%); pointer-events:none; }
.aic-picker-trigger { width:100%; min-width:0; min-height:44px; padding:8px 10px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--text); }
.aic-picker-trigger[hidden] { display:none; }
.aic-picker-trigger:disabled { opacity:.55; }
.bot-model-picker .aic-picker-trigger { width:auto; max-width:min(47vw,240px); min-height:36px; padding:4px 8px; }
.refreshed #aic-picker { overscroll-behavior:contain; }
#aic-picker .icon-button { min-width:44px; min-height:44px; }
.aic-picker-options, .aic-picker-date { display:grid; gap:8px; }
.aic-picker-options h3 { color:var(--muted); font-size:12px; margin:8px 0 0; }
.aic-picker-options .bot-model-option { overflow-wrap:anywhere; }
.aic-picker-parts { display:flex; gap:8px; }
.aic-picker-parts > * { flex:1; min-width:0; }
.aic-picker-parts input { display:block; width:100%; min-height:44px; margin-top:4px; }
.aic-picker-date p { margin:0; }
.aic-picker-date p:empty { display:none; }
.bot-extra-models summary { padding:8px 0; cursor:pointer; color:var(--muted); }
.bot-extra-models label + label { margin-top:8px; }
.bot-work-fields { display:grid; gap:8px; }
.bot-work-fields > label { display:grid; gap:4px; }
.bot-work-fields > .bot-work-scope { display:flex; align-items:center; gap:8px; min-height:44px; }
.bot-work-scope input { flex:none; width:18px; height:18px; accent-color:var(--blue); }
.bot-work-fields p { margin:0; }
.bot-form fieldset { margin:0; padding:0; border:0; min-width:0; }
.bot-form legend { margin-bottom:5px; }
.bot-avatar-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.bot-avatar-option { display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative; min-height:61px; border:1px solid var(--border); border-radius:12px; cursor:pointer; font-size:11px; }
.bot-avatar-option input { position:absolute; width:1px; height:1px; opacity:0; }
.bot-avatar-option:focus-within { outline:2px solid var(--blue); outline-offset:1px; }
.bot-avatar-option .bot-avatar { width:37px; height:37px; }
.bot-list-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:7px; }
.bot-list-row strong, .bot-roster span { overflow-wrap:anywhere; }
.bot-list-row { padding:8px 0; border-bottom:1px solid var(--border); }
.bot-list-row small { display:block; color:var(--muted); overflow-wrap:anywhere; }
.bot-list-row .secondary { padding:6px 9px; min-height:44px; }
.bot-roster label { display:flex; align-items:center; gap:8px; min-height:44px; }
.bot-roster input { width:19px; height:19px; }
.bot-buttons { margin-top:6px; }
#bots-status:empty { display:none; }
.computer-relay-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto auto; align-items:center; gap:8px; margin:6px 0; }
.computer-relay-row strong { overflow-wrap:anywhere; }
.computer-relay-row button { min-height:44px; padding:6px 9px; }
.computer-relay-form { display:grid; gap:8px; margin-block:12px; }
.computer-relay-form label { display:grid; gap:4px; }
.computer-relay-form :is(input,select,textarea) { width:100%; min-width:0; padding:8px 10px; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:12px; }
.desktop-flight-card { margin-block:8px; padding:10px; border:1px solid var(--border); border-radius:12px; }
.desktop-flight-card p { white-space:pre-wrap; overflow-wrap:anywhere; }
#computer-relay-frame { width:100%; height:auto; display:block; cursor:crosshair; margin-bottom:10px; }
#computer-relay-frame[hidden] { display:none; }
.travel-preview { display:grid; gap:7px; margin-block:12px; }
.travel-preview p { margin:0; }
.travel-option { display:grid; gap:6px; border:1px solid var(--border); border-radius:14px; padding:10px; background:var(--surface); }
.travel-option div { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 12px; }
.travel-option button, .travel-demo-button { min-height:44px; }
.travel-handoff { display:flex; align-items:center; justify-content:center; min-height:44px; text-decoration:none; }
.travel-option button[aria-pressed=true] { border-color:var(--blue); color:var(--blue); }
#hermes-skills-back .icon { transform:rotate(180deg); }
#hermes-skills-back { min-width:44px; min-height:44px; }
.admin .console-main { margin:0 auto; }
.admin .incident-filters { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.admin .incident-filters button { min-height:44px; padding:7px 12px; }
.admin .incident-filters button[aria-pressed=true] { color:var(--blue); border-color:var(--blue); }
.admin .incident-list { list-style:none; margin:0; padding:0; }
.admin .incident-list li { padding:14px 0; border-bottom:1px solid var(--border); display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; }
.admin .incident-list li:last-child { border-bottom:0; }
.admin .incident-list small, .admin .incident-list time { display:block; font-size:12px; color:var(--muted); }
.admin .incident-list li>small { grid-column:1/-1; overflow-wrap:anywhere; }
.admin .incident-list strong { font-size:15px; }
@media(max-width:650px) {
  .admin .sidebar-bottom { display:flex; position:static; align-items:center; justify-content:space-between; margin-top:8px; }
  .admin .sidebar-bottom .quiet { min-height:44px; }
  .admin .sidebar nav button { min-height:44px; }
}
#life-reminder:not([hidden]):not(.life-away) { display:grid; gap:4px; margin-bottom:6px; padding:8px 12px; background:var(--raised); color:var(--text); border-radius:12px; }
#life-reminder.life-away, #life-reminder[hidden] { display:none; }
#life-reminder strong, #life-reminder-text { display:block; font-size:14px; }
#life-reminder button { min-height:44px; margin-right:8px; }
.markdown .reply-section-icon {
  margin-inline-end: .4em;
  font: normal .93em/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  user-select: none;
}

[data-client=web] .reply-status { flex-wrap: wrap; }
[data-client=web] .task-steps { flex: 0 0 100%; min-width: 0; }
[data-client=web] .task-steps summary { cursor: pointer; padding-block: .4em; }
.task-steps .task-timeline { max-height: 12rem; overflow-y: auto; }
.task-timeline .step-content { min-width:0; flex:1; }
.task-timeline .tool-path { display:block; font-size:.72rem; font-weight:400; overflow-wrap:anywhere; line-height:1.5; }
.task-timeline time { flex:none; }
[data-client=android] body.refreshed .task-timeline .step-marker { display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; font-size:12px; line-height:1; border:0; background:transparent; color:inherit; }
[data-client=android] body.refreshed .task-timeline li[aria-current=step] .step-marker { border:0; background:transparent; }
.task-timeline li[data-step-state=succeeded],[data-client=android] body.refreshed .task-timeline li[data-step-state=succeeded] { color:var(--green); }
.task-timeline li[data-step-state=failed],[data-client=android] body.refreshed .task-timeline li[data-step-state=failed] { color:var(--stop, #b42336); }
.task-timeline li[data-step-state=unknown],[data-client=android] body.refreshed .task-timeline li[data-step-state=unknown] { color:var(--amber); }
[data-client=web] .task-timeline { margin: .25em 0; padding-inline-start: 1.8em; }
[data-client=web] .task-timeline li { padding-block: .15em; }
[data-client=web] .task-timeline time { margin-inline-start: .6em; }
/* Scoped to the existing skill sheet, including the Android WebView. */
#hermes-skill-list .hermes-skill-row { min-height:56px; }
#hermes-skill-list .hermes-skill-row[aria-disabled="true"] { opacity:.65; }
#hermes-skill-list .skill-requirement { margin:0 20px 12px 47px; font-size:.8rem; line-height:1.5; color:var(--muted); overflow-wrap:anywhere; }
#hermes-skill-list .hermes-skill-row span { overflow-wrap:anywhere; }


/* Keep the scope and close control visible while longer tool catalogs scroll. */
#tool-catalog-sheet[open] { display:flex; flex-direction:column; overflow:hidden; }
#tool-catalog-sheet > :not(#tool-catalog-list) { flex-shrink:0; }
#tool-catalog-status { margin:10px 0; }
#tool-catalog-list { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
#tool-catalog-list .phone-inline-check { min-height:44px; }
#tool-policy-scope { background:var(--surface); color:var(--text); }
/* BOT tasks share the existing account, typography, and light/dark variables. */
#ws-body :is(.primary,.secondary) { min-height:48px; }
.bot-list-row [data-bots-action="task"] { grid-column:2/-1; justify-self:start; min-height:44px; }

/* Keep the conversation visible; roster and low-frequency controls live in a sheet. */
.bot-room-bar.bot-room-compact{padding:0;margin:0;border-bottom:1px solid var(--border);background:transparent;flex-shrink:0}
.bot-controls-trigger{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;padding:6px 10px;text-align:left;color:var(--text);min-width:0}
.bot-controls-trigger>.icon{width:20px;height:20px;flex:none;color:var(--blue)}
.bot-controls-trigger>strong{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42%}
.bot-controls-trigger>span{font-size:12px;color:var(--muted);min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.refreshed .bot-controls-sheet{width:min(100% - 24px,520px);max-height:min(78dvh,680px);overflow:auto;padding:16px;border:1px solid var(--border);border-radius:20px;background:var(--surface);color:var(--text)}
.refreshed .bot-controls-sheet .dialog-heading{position:sticky;top:-16px;z-index:1;background:var(--surface);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 12px}
.bot-controls-sheet .icon-button{min-width:48px;min-height:48px}
.bot-controls-content{display:grid;gap:12px;font-size:13px}
.bot-controls-content>.bot-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:8px}
.bot-controls-content .bot-member{min-height:48px;width:100%;max-width:none;white-space:normal;text-align:left;padding:8px;gap:8px;min-width:0}
.bot-controls-content .bot-member span{overflow-wrap:anywhere}
.bot-controls-content .bot-avatar{width:24px;height:24px;flex:none}
.bot-controls-sheet .bot-model-bar{display:flex;flex-wrap:wrap;gap:10px;padding:14px 0 0;margin:14px 0 0;border-top:1px solid var(--border)}
.bot-controls-sheet .bot-model-picker{min-width:0;max-width:100%}
.bot-controls-sheet .composer-caption{font-size:11px;color:var(--muted);padding:10px 0 0;margin:0}
body[data-bot-room=true] .composer{padding:6px 9px 4px;box-shadow:none}
body[data-bot-room=true] .composer textarea{min-height:27px;max-height:112px;padding:0;resize:none}
body[data-bot-room=true] .composer-bottom{padding-top:0;min-height:48px}
@media(max-width:600px){.refreshed .bot-controls-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:80dvh;border-radius:20px 20px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom))}}

.refreshed[data-bot-room=true] .composer{gap:0}
.refreshed .bot-controls-content .bot-member span{white-space:normal;text-overflow:clip;max-width:none;overflow-wrap:anywhere;min-width:0}

/* BOT pages share the existing B palette. Information hierarchy, not decoration. */
.refreshed{--bot-positive:#2d6b52;--bot-positive-bg:#e6f3ec;--bot-caution:#805719;--bot-caution-bg:#fff4df}
html[data-theme=dark] .refreshed{--bot-positive:#a0d8bf;--bot-positive-bg:#263e34;--bot-caution:#f2cd92;--bot-caution-bg:#3b3020}
.refreshed #bots-dialog{max-width:860px;margin:auto;color:var(--text)}
.refreshed #bots-dialog .bot-page-heading{position:sticky;top:0;z-index:2;background:var(--bg);padding:12px 0;border-bottom:1px solid var(--border);margin:0 0 20px;gap:12px}
.refreshed #bots-dialog .bot-page-heading h2{font-size:22px;line-height:1.4;font-weight:650;letter-spacing:0}
.refreshed #bots-dialog .bot-page-body{padding:0 0 24px}
.refreshed #bots-dialog .icon-button{min-width:48px;min-height:48px;color:var(--muted)}
.refreshed .bot-page-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:26px}
.refreshed .bot-page-actions>button{min-height:48px;flex:1;min-width:130px}
.refreshed .bot-page-actions .icon{width:19px;height:19px}
.refreshed .bot-section{margin:0 0 28px}
.refreshed .bot-section-heading{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px;gap:12px}
.refreshed .bot-section-heading h3{font-size:16px;font-weight:650;margin:0;color:var(--text)}
.refreshed .bot-section-heading>span{font-size:12px;color:var(--muted)}
.refreshed #bots-dialog .bot-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.refreshed #bots-dialog .bot-card{padding:16px;border:1px solid var(--border);border-radius:18px;background:var(--surface);min-width:0;box-shadow:none}
.refreshed .bot-card-main{display:flex;gap:12px;align-items:flex-start}
.refreshed .bot-card-main>.bot-avatar{width:40px;height:40px;flex:none;margin:0}
.refreshed .bot-card-copy{min-width:0;flex:1}
.refreshed .bot-card-copy h3{font-size:16px;line-height:1.5;margin:0 0 5px;font-weight:650;overflow-wrap:anywhere;color:var(--text)}
.refreshed .bot-card-copy p{font-size:13px;line-height:1.65;color:var(--muted);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.refreshed .bot-capabilities{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.refreshed .bot-capabilities span{font-size:11px;line-height:1.5;color:var(--muted);background:var(--raised);padding:3px 7px;border-radius:6px}
.refreshed .bot-card-actions{display:flex;align-items:center;gap:8px;border-top:1px solid var(--border);margin-top:14px;padding-top:10px}
.refreshed .bot-card-actions>button{min-height:48px;border-radius:11px;font-size:13px;display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px}
.refreshed .bot-card-actions>button:not(.icon-button){flex:1}
.refreshed .bot-card-actions .icon{width:18px;height:18px}
.refreshed .bot-chat-action{background:var(--task-surface,var(--raised));color:var(--blue);font-weight:600}
.refreshed .bot-task-action{color:var(--text);background:transparent}
.refreshed #bots-dialog .bot-session-list{display:grid;gap:0;border:1px solid var(--border);border-radius:16px;background:var(--surface);overflow:hidden}
.refreshed #bots-dialog .bot-session-row{display:flex;width:100%;align-items:center;justify-content:space-between;text-align:left;padding:13px 14px;min-height:68px;border:0;border-radius:0;background:transparent;color:var(--text);gap:12px;min-width:0}
.refreshed #bots-dialog .bot-session-row+.bot-session-row{border-top:1px solid var(--border)}
.refreshed .bot-session-copy{display:grid;min-width:0;gap:3px}
.refreshed .bot-session-copy strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.refreshed .bot-session-copy small{font-size:12px;color:var(--muted);font-weight:400}
.refreshed .bot-session-row>.icon{width:18px;height:18px;flex:none;color:var(--muted)}
.refreshed .bot-more-sessions{margin-top:12px;font-size:13px;color:var(--muted)}
.refreshed .bot-more-sessions>summary{min-height:44px;cursor:pointer;padding-block:8px}
.refreshed .bot-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.refreshed #bots-dialog .bot-team-tile{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px 12px;min-height:88px;text-align:left;min-width:0}
.refreshed .bot-team-tile>.icon:first-child{color:var(--blue);width:22px;height:22px;flex:none}
.refreshed .bot-team-tile>.icon:last-child{color:var(--muted);width:16px;height:16px;margin-left:auto;flex:none}
.refreshed .bot-team-tile>span{display:grid;gap:4px;min-width:0}
.refreshed .bot-team-tile strong{font-size:13px;font-weight:600;line-height:1.5}
.refreshed .bot-team-tile small{font-size:11px;line-height:1.5;color:var(--muted)}
.refreshed .bot-empty-state{grid-column:1/-1;display:grid;justify-items:center;gap:14px;padding:30px 16px;color:var(--muted);font-size:14px;background:var(--surface);border:1px dashed var(--border);border-radius:16px}
.refreshed .bot-empty-state .icon{width:38px;height:38px;color:var(--blue)}
.refreshed #bot-edit,.refreshed #bot-room-form{display:grid;gap:20px}
.refreshed #bot-edit .bot-form-section{display:grid;gap:16px;padding-bottom:20px;border-bottom:1px solid var(--border)}
.refreshed .bot-form-section>h3{font-size:15px;margin:0;font-weight:650;color:var(--text)}
.refreshed #bots-dialog .bot-form label{font-size:13px;color:var(--muted);line-height:1.7}
.refreshed #bots-dialog .bot-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select){min-height:48px;padding:11px 12px;font-size:16px;line-height:1.6;border-radius:12px;color:var(--text);background:var(--surface)}
.refreshed #bots-dialog .bot-extra-models{margin:0;border:0;border-radius:0;background:transparent;padding:0}
.refreshed #bots-dialog .bot-extra-models>summary{font-size:14px;font-weight:600;min-height:48px;padding:12px 0;cursor:pointer;color:var(--text)}
.refreshed #bots-dialog .bot-work-fields{display:grid;gap:12px}
.refreshed #bots-dialog .bot-model-fields{padding:8px 0 0;border:0;margin:0;display:grid;gap:14px}
.refreshed #bots-dialog .bot-model-fields legend{font-size:12px;color:var(--muted);margin:0 0 8px}
.refreshed #bots-dialog .bot-model-trigger{min-height:52px;border:1px solid var(--border);border-radius:12px;padding:11px 12px;background:var(--surface);text-align:left;line-height:1.6;font-size:13px;gap:12px}
.refreshed #bots-dialog .bot-model-trigger span{white-space:normal;overflow-wrap:anywhere;color:var(--text)}
.refreshed #bots-dialog .bot-model-option{min-height:52px;padding:13px 12px;margin:0 0 8px;border-radius:12px;border:1px solid var(--border);font-size:13px;line-height:1.65;background:var(--surface);color:var(--text);text-align:left;overflow-wrap:anywhere}
.refreshed #bots-dialog .bot-model-option[aria-pressed=true]{border-color:var(--blue);background:var(--task-surface,var(--raised));color:var(--blue)}
.refreshed #bots-dialog #bot-model-options h3{font-size:12px;color:var(--muted);margin:18px 0 10px}
.refreshed #bots-dialog .bot-form-actions{position:sticky;bottom:0;z-index:1;background:var(--bg);padding:12px 0 4px;display:flex;gap:10px;margin:0}
.refreshed #bots-dialog .bot-form-actions .primary{flex:1;min-height:48px}
.refreshed #bots-dialog [data-bots-action=delete]{min-height:48px;color:var(--stop,#933951);background:transparent;border:1px solid var(--border);width:auto}
.refreshed #bots-dialog .bot-roster{border:0;padding:0;margin:0;display:grid;gap:8px}
.refreshed #bots-dialog .bot-roster legend{font-size:14px;font-weight:600;color:var(--text);margin-bottom:12px}
.refreshed #bots-dialog .bot-roster label{min-height:56px;border:1px solid var(--border);border-radius:12px;padding:10px 12px;display:flex;align-items:center;gap:10px;background:var(--surface);color:var(--text);font-size:14px}
.refreshed #bots-dialog .bot-roster label:has(input:checked){background:var(--task-surface,var(--raised));border-color:var(--blue)}
.refreshed #bots-dialog .bot-roster .bot-avatar{width:26px;height:26px;flex:none}
.refreshed #bots-dialog .bot-roster input{width:18px;height:18px;flex:none}
.refreshed #bot-member-count{font-size:13px;color:var(--blue)}
.refreshed .bot-controls-content [data-discussion-panel]>div{max-height:none!important;overflow:visible!important;padding-block:10px}
.refreshed .bot-controls-content [data-discussion-panel] h3{font-size:14px;font-weight:650;color:var(--text);margin:18px 0 8px}
.refreshed .bot-controls-content [data-discussion-panel] p{font-size:14px;line-height:1.85;margin:0 0 12px}
.refreshed .bot-controls-content [data-goal-dependencies] li{margin-block:10px;line-height:1.75}
.refreshed .bot-room-compact[data-state=failed] [data-bot-compact-status]{color:var(--bot-caution)}
.refreshed #work-stations{color:var(--text)}
.refreshed #work-stations #ws-body{display:grid;gap:18px;font-size:14px;line-height:1.8}
.refreshed #work-stations #ws-body>h3{font-size:16px;margin:6px 0 0}
.refreshed #work-stations .bot-task-card{display:grid;gap:9px;padding:16px;margin-block:12px;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:none}
.refreshed .bot-task-card-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
.refreshed .bot-task-card-heading>strong{font-size:15px;line-height:1.6;font-weight:600;min-width:0;overflow-wrap:anywhere}
.refreshed .bot-state{display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:12px;font-weight:500;line-height:1.5;white-space:nowrap;padding:4px 9px;border-radius:7px;color:var(--muted);background:var(--raised)}
.refreshed .bot-state[data-state=running]{color:var(--blue);background:var(--task-surface,var(--raised))}
.refreshed .bot-state[data-state=review],.refreshed .bot-state[data-state=returned]{color:var(--bot-caution);background:var(--bot-caution-bg)}
.refreshed .bot-state[data-state=archived]{color:var(--bot-positive);background:var(--bot-positive-bg)}
.refreshed .bot-state[data-state=failed]{color:var(--stop,#933951);background:var(--raised)}
.refreshed #work-stations .bot-task-card>small{font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.refreshed #work-stations .bot-task-card>button{justify-self:start;min-height:48px;padding:8px 12px;width:auto;font-size:13px;color:var(--blue);background:transparent;border:0}
.refreshed #work-stations [data-task-form]{display:grid;gap:14px}
.refreshed #work-stations [data-task-form] label{font-size:13px;color:var(--muted)}
.refreshed #work-stations [data-task-form] :is(input,textarea,select){min-height:48px;font-size:16px;line-height:1.65;color:var(--text);background:var(--surface)}
.refreshed #work-stations details{border-bottom:1px solid var(--border);padding-bottom:12px}
.refreshed #work-stations summary{min-height:48px;padding-block:10px;font-size:14px;font-weight:600;color:var(--text);cursor:pointer}
.refreshed #work-stations details p{white-space:pre-wrap;font-size:14px;line-height:1.85;margin-block:8px}
.refreshed .bot-task-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.refreshed .bot-task-summary>strong{font-size:14px;font-weight:500;color:var(--muted)}
.refreshed #work-stations .bot-task-flow{list-style:none;padding:0;margin:8px 0 4px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.refreshed .bot-task-flow li{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;color:var(--muted);position:relative;text-align:center;line-height:1.5}
.refreshed .bot-task-flow li:before{content:'';position:absolute;top:14px;inset-inline:0;height:1px;background:var(--border)}
.refreshed .bot-task-flow li:first-child:before{inset-inline-start:50%}
.refreshed .bot-task-flow li:last-child:before{inset-inline-end:50%}
.refreshed .bot-task-flow li>span{z-index:1;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--bg);border:1px solid var(--border);font-size:12px}
.refreshed .bot-task-flow .done{color:var(--bot-positive)}
.refreshed .bot-task-flow .done>span{background:var(--bot-positive-bg);border-color:var(--bot-positive-bg)}
.refreshed .bot-task-flow .current{color:var(--blue);font-weight:600}
.refreshed .bot-task-flow .current>span{background:var(--blue);color:var(--blue-ink,#fff);border-color:var(--blue)}
.refreshed #work-stations .bot-task-trace li{padding-block:7px;line-height:1.85}
.refreshed .bot-review-feedback{padding:14px;border-inline-start:3px solid var(--bot-caution);border-radius:0 12px 12px 0;background:var(--bot-caution-bg);color:var(--text)}
.refreshed .bot-review-feedback>strong{font-size:13px;color:var(--bot-caution)}
.refreshed .bot-review-feedback p{margin-top:8px;white-space:pre-wrap}
/* Reading rhythm: headings, paragraphs and source blocks stay distinct. */
body.refreshed[data-bot-room=true] #messages{max-width:72ch;margin-inline:auto}
body.refreshed[data-bot-room=true] #messages .message{margin-block:0 24px;line-height:1.85}
body.refreshed[data-bot-room=true] #messages .assistant-name.bot-byline{display:grid;grid-template-columns:26px minmax(0,1fr) auto;column-gap:9px;row-gap:2px;align-items:center;margin:14px 0 12px;font-size:14px;font-weight:600;line-height:1.5;min-width:0}
body.refreshed[data-bot-room=true] #messages .bot-byline>.bot-avatar{width:26px;height:26px;grid-row:1/3;grid-column:1}
body.refreshed[data-bot-room=true] #messages .bot-byline>span:not(.message-time){grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere}
body.refreshed[data-bot-room=true] #messages .bot-byline>.bot-reply-model{grid-column:2;grid-row:2;max-width:100%;font-size:11px;line-height:1.5;font-weight:400;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
body.refreshed[data-bot-room=true] #messages .bot-byline>.message-time{grid-column:3;grid-row:1;font-size:11px;font-weight:400;color:var(--muted);white-space:nowrap}
body.refreshed[data-bot-room=true] #messages .markdown,.refreshed #work-stations .bot-task-output{font-size:16px;line-height:1.85;letter-spacing:.01em;color:var(--text);overflow-wrap:anywhere;min-width:0}
body.refreshed[data-bot-room=true] #messages .markdown :is(p,ul,ol,blockquote),.refreshed #work-stations .bot-task-output :is(p,ul,ol,blockquote){margin:0 0 14px}
body.refreshed[data-bot-room=true] #messages .markdown h1,.refreshed #work-stations .bot-task-output h1{font-size:21px;line-height:1.5;margin:24px 0 12px}
body.refreshed[data-bot-room=true] #messages .markdown h2,.refreshed #work-stations .bot-task-output h2{font-size:19px;line-height:1.5;margin:24px 0 12px}
body.refreshed[data-bot-room=true] #messages .markdown h3,.refreshed #work-stations .bot-task-output h3{font-size:17px;line-height:1.6;margin:22px 0 10px;font-weight:650}
body.refreshed[data-bot-room=true] #messages .markdown :is(h4,h5,h6),.refreshed #work-stations .bot-task-output :is(h4,h5,h6){font-size:16px;line-height:1.6;margin:18px 0 8px}
body.refreshed[data-bot-room=true] #messages .markdown>:first-child,.refreshed #work-stations .bot-task-output>:first-child{margin-top:0}
body.refreshed[data-bot-room=true] #messages .markdown li,.refreshed #work-stations .bot-task-output li{margin-block:8px;padding-inline-start:3px;line-height:1.85}
body.refreshed[data-bot-room=true] #messages .markdown li>p,.refreshed #work-stations .bot-task-output li>p{margin-bottom:7px}
body.refreshed[data-bot-room=true] #messages .markdown :is(ul,ol),.refreshed #work-stations .bot-task-output :is(ul,ol){padding-inline-start:1.4em}
body.refreshed[data-bot-room=true] #messages .markdown strong,.refreshed #work-stations .bot-task-output strong{font-weight:650}
body.refreshed[data-bot-room=true] #messages .markdown .bot-text-decision,.refreshed #work-stations .bot-task-output .bot-text-decision{border-inline-start:3px solid var(--blue);padding-inline-start:10px;color:var(--text)}
body.refreshed[data-bot-room=true] #messages .markdown .bot-text-pending,.refreshed #work-stations .bot-task-output .bot-text-pending{border-inline-start:3px solid var(--bot-caution);padding-inline-start:10px;color:var(--bot-caution)}
body.refreshed[data-bot-room=true] #messages .markdown .bot-text-evidence,.refreshed #work-stations .bot-task-output .bot-text-evidence{border-inline-start:3px solid var(--bot-positive);padding-inline-start:10px;color:var(--bot-positive)}
body.refreshed[data-bot-room=true] #messages .markdown blockquote,.refreshed #work-stations .bot-task-output blockquote{padding:12px 14px;border-inline-start:3px solid var(--border);border-radius:0 10px 10px 0;background:var(--raised);color:var(--muted);font-size:15px;line-height:1.8}
body.refreshed[data-bot-room=true] #messages .markdown blockquote>:last-child,.refreshed #work-stations .bot-task-output blockquote>:last-child{margin-bottom:0}
body.refreshed[data-bot-room=true] #messages .markdown :is(pre,code),.refreshed #work-stations .bot-task-output :is(pre,code){font-size:13px;line-height:1.7;letter-spacing:0}
body.refreshed[data-bot-room=true] #messages .markdown pre,.refreshed #work-stations .bot-task-output pre{max-width:100%;overflow-x:auto;padding:14px;white-space:pre;overflow-wrap:normal}
body.refreshed[data-bot-room=true] #messages .markdown table,.refreshed #work-stations .bot-task-output table{font-size:14px;line-height:1.7;border-spacing:0;max-width:100%;overflow-x:auto}
body.refreshed[data-bot-room=true] #messages .markdown :is(th,td),.refreshed #work-stations .bot-task-output :is(th,td){padding:10px 12px;vertical-align:top;min-width:6.5em}
body.refreshed[data-bot-room=true] #messages .message-tools{margin-top:10px;gap:5px}
body.refreshed[data-bot-room=true] #messages .message-tools button{min-height:40px;color:var(--muted);font-size:12px}
body.refreshed[data-bot-room=true] #messages .user-bubble{font-size:15px;line-height:1.85;padding:11px 14px}
@media(max-width:600px){.refreshed #bots-dialog .bot-card-grid{grid-template-columns:1fr}.refreshed #bots-dialog .bot-page-heading h2{font-size:21px}.refreshed .bot-team-tile>.icon:last-child{display:none}.refreshed #work-stations .bot-task-card-heading{gap:8px}}
@media(min-width:800px){.refreshed #bot-edit,.refreshed #bot-room-form{max-width:680px;margin-inline:auto}.refreshed #bots-dialog .bot-roster{grid-template-columns:repeat(2,minmax(0,1fr))}}

.refreshed #bots-dialog .bot-page-body{display:block}
.refreshed #bots-dialog .bot-page-actions>button{padding:10px 12px;gap:8px;white-space:nowrap;font-size:14px;min-width:0;min-height:48px}
.refreshed #bots-dialog :is(#bot-edit,#bot-room-form){border:0;background:transparent;box-shadow:none;border-radius:0;padding:0}
.refreshed #bots-dialog .bot-form label{font-weight:500}
.refreshed #bots-dialog .bot-form :is(input,textarea,select){font-weight:400}
.refreshed #bots-dialog .bot-list-row{padding:14px;gap:12px;border:1px solid var(--border);border-radius:14px;background:var(--surface);align-items:flex-start}
.refreshed #bots-dialog .bot-list-row small{font-size:13px;line-height:1.65;color:var(--muted);white-space:normal}
body.refreshed[data-bot-room=true] #messages{width:100%;min-width:0}
body.refreshed[data-bot-room=true] #messages .message.assistant{min-width:0;max-width:100%}
body.refreshed[data-bot-room=true] #messages .markdown{min-width:0;max-width:100%}
.refreshed #work-stations .bot-task-output{min-width:0;max-width:100%}
.refreshed #work-stations .bot-task-output table{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto}
.refreshed #work-stations .bot-task-output img{max-width:100%;height:auto}

.refreshed #bots-dialog .bot-page-body{background:transparent;border:0;border-radius:0;margin-top:0}
.refreshed #bots-dialog .bot-page-heading{border:0;border-bottom:1px solid var(--border);border-radius:0}

/* Scope choices remain readable and reachable on narrow phones. */
.refreshed #approvals .approval-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.refreshed #approvals .approval-actions button{min-width:0;min-height:48px;white-space:normal;line-height:1.6;padding:10px 8px}
.refreshed #tool-catalog-sheet [data-policy-status]{margin-block:12px}
.refreshed #tool-catalog-sheet [data-policy-read],.refreshed #tool-catalog-sheet [data-policy-revoke]{min-height:48px;margin-block:8px;width:100%;white-space:normal}
