.theme-menu{display:flex;gap:4px;padding:8px 7px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:5px 0}
.theme-menu button{flex:1;border:0;border-radius:8px;padding:7px 8px;font-size:12px;background:transparent;color:var(--muted)}
.theme-menu button[aria-pressed="true"]{background:var(--control-glass-active);color:var(--text)}
.theme-menu button:hover{color:var(--text)}
:root[data-theme="light"]{color-scheme:light;--text:#202632;--muted:#626e7e;--line:#24344c20;--blue:#245ca4;--surface:#f6f8fc;--control-edge:#28374e24;--control-glass:#ffffff80;--control-glass-hover:#ffffffc0;--control-glass-active:#dfe7f4}
[data-theme="light"] body{background:#f6f8fc;color:var(--text)}
[data-theme="light"] .companion-stage,[data-theme="light"] .workspace,[data-theme="light"] .content{background:transparent}
[data-theme="light"] .companion-stage .app-shell{background:#f6f8fc}
[data-theme="light"] .companion-stage .rail{background:#e9edf3aa;border-color:var(--line)}
[data-theme="light"] .companion-stage .rail a.selected{background:#20355412}
[data-theme="light"] :is(.catchup-work,.assignment-card,.source-card,.overview-card,.shared-strip,.work-row){background:#ffffff70;border-color:var(--line)}
[data-theme="light"] .companion-stage :is(.ask,.drawer,.profile-menu>div,.conversation-search>div,.composer-menu>div,.goal-menu>div,.brief-more>div){background:#f4f7fdef;border-color:var(--control-edge);color:var(--text)}
[data-theme="light"] :is(.muted,.project-summary,.turn-label,.turn-label>span,.form-label){color:var(--muted)}
[data-theme="light"] :is(input,textarea,select){color:var(--text);background-color:transparent}
[data-theme="light"] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
[data-theme="light"] .conversation-turn.user .turn-body{background:#dbe9fb;border-color:#2f65a526;color:#202f46}
[data-theme="light"] :is(.conversation-document pre,.conversation-document code,.reply-table){background:#e9eef7;color:var(--text);border-color:var(--line)}
[data-theme="light"] :is(.modal-backdrop,.drawer-backdrop){background:#17213126}
[data-theme="light"] .toast{background:#edf3fd;color:var(--text);border-color:var(--line)}
[data-theme="light"] ::selection{background:#c3d9f8;color:#172d4a}
:root[data-theme="dark"]{color-scheme:dark;--text:#eef1f8;--muted:#a4adbe;--line:#ffffff13;--blue:#95baff;--surface:#171d2a;--control-edge:#ffffff20;--control-glass:#ffffff09;--control-glass-hover:#ffffff13;--control-glass-active:#ffffff1c}
[data-theme="dark"] body{background:#111721;color:var(--text)}
[data-theme="dark"] .companion-stage .app-shell{background:#171e2b}
[data-theme="dark"] .companion-stage .rail{background:#ffffff03;border-color:var(--line)}
[data-theme="dark"] .conversation-turn.user .turn-body{background:#243b5a;border-color:#96bfff22;color:var(--text)}
[data-theme="dark"] .companion-stage :is(.profile-menu>div,.conversation-search>div,.composer-menu>div){background:#202938f5;color:var(--text)}
.profile-menu .theme-menu{display:flex;gap:6px;justify-content:center;padding:4px 0}
.companion-stage .profile-menu .theme-menu>button{width:36px;height:30px;display:grid;place-items:center;padding:0;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted)}
.companion-stage .profile-menu .theme-menu>button[aria-pressed="true"]{background:var(--control-glass-active);border-color:var(--control-edge);color:var(--text)}
.companion-stage .profile-menu .theme-menu>button:hover{background:var(--control-glass-hover);color:var(--text)}
.companion-stage .profile-menu .theme-menu .icon{width:18px;height:18px}
:root{--modal-surface:#202938f5}
:root[data-theme="light"]{--modal-surface:#f4f7fdf5}
:root{--composer-surface:#ffffff09}
:root[data-theme="light"]{--composer-surface:#ffffffc2}
:root{--nav-icon:#bac0c9}
:root[data-theme="light"]{--nav-icon:#707782}
.companion-stage .rail>a:not(:has(.shape)){color:var(--nav-icon)}
:root[data-theme] .companion-stage .workspace button.new-conversation-control,
:root[data-theme] .companion-stage .workspace button.new-conversation-control:is(:hover,:active,:focus){color:var(--muted);background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.modal-backdrop .drawer{background:var(--modal-surface);border-color:var(--control-edge);color:var(--text)}
.modal-backdrop .drawer :is(h2,h3,dd){color:var(--text)}
.modal-backdrop .drawer :is(p,dt,.form-label){color:var(--muted)}
.modal-backdrop .drawer .evidence-content{background:var(--control-glass);color:var(--text);border:1px solid var(--line)}
.modal-backdrop .drawer :is(input,textarea,select){background:var(--control-glass);border-color:var(--control-edge);color:var(--text)}
.modal-backdrop .drawer .button{min-height:32px;background:var(--control-glass);border-color:var(--control-edge);color:var(--text)}
.modal-backdrop .drawer .button:hover{background:var(--control-glass-hover)}
.modal-backdrop .drawer .button.primary{background:var(--control-glass-active);border-color:var(--control-edge);color:var(--text)}
.modal-backdrop .drawer .icon-button{color:var(--muted)}
.modal-backdrop .drawer .icon-button:hover{background:var(--control-glass-hover);color:var(--text)}
.conversation-turn.assistant .shape::before{display:none}
.reply-pending{display:block;line-height:1.65;color:var(--muted)}
:root[data-theme] .companion-stage :is(.morning,.companion-brand,.project-title,.now-row,.brief-artifact,.update-body){color:var(--text)}
:root[data-theme] .companion-stage :is(.home-brief,.catchup-work p,.project-summary,.description,.team-project p,.quiet-label,.row-time,.compact-heading,.context-switch,.team-select select,.source-strip>span,.shared-strip>span,.shared-strip a,.now-row a span,.concept-footer){color:var(--muted)}
:root[data-theme] .companion-stage :is(.detail-back,.quiet-label a,.compact-heading a){color:var(--blue)}
:root[data-theme] .companion-stage :is(.pill,.source-strip button){color:var(--text);border-color:var(--control-edge)}
:root[data-theme] .companion-stage :is(.button.primary,.pill.primary){color:var(--text);background:var(--control-glass-active);border-color:var(--control-edge)}
:root[data-theme="light"] :is(.notice,.status.warn){color:#805400}
.modal-backdrop .drawer-head{align-items:center;gap:16px}
.modal-backdrop .drawer-head h2{margin:0;line-height:1.3;font-size:var(--type-heading);font-weight:550}
.modal-backdrop .drawer-head>.icon-button{flex:none;display:grid;place-items:center;background:transparent;border:0;box-shadow:none}
.modal-backdrop .agent-directory{display:flex;flex-direction:column;gap:10px}
.modal-backdrop .agent-directory>h3{margin:18px 0 2px;font-size:var(--type-body);font-weight:550}
.modal-backdrop .agent-directory>h3:first-child{margin-top:0}
.modal-backdrop .directory-agent{display:grid;grid-template-columns:36px minmax(0,1fr) 20px;align-items:center;gap:12px;padding:14px 16px;margin:0;min-height:76px;border:1px solid var(--control-edge);border-radius:12px}
.modal-backdrop .directory-agent>.shape{justify-self:center;align-self:center;width:30px;height:30px}
.modal-backdrop .directory-agent>.icon{justify-self:center;width:18px;height:18px}
.modal-backdrop .directory-agent strong{font-size:var(--type-body);line-height:1.5;font-weight:550}
.modal-backdrop .directory-agent>span>span{font-size:var(--type-support);line-height:1.5;margin-top:2px}
:root[data-theme] .companion-stage .profile-menu>summary,
:root[data-theme] .companion-stage .profile-menu>summary:is(:hover,:focus,:active){position:relative;background:transparent;border:0;box-shadow:none;outline:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.companion-stage .profile-menu>summary:focus-visible::after{content:'';position:absolute;bottom:-3px;left:8px;right:8px;height:2px;border-radius:1px;background:var(--blue)}
:root[data-theme] .companion-stage .recent-progress{color:var(--text)}
:root[data-theme="light"] :is(.status.good){color:#176844}
:root[data-theme="light"] :is(.status.risk){color:#9c3f24}
:root[data-theme="light"] :is(.status.blue){color:#245ca4}
:root[data-theme="light"] .draft-label{color:#805400}
:root[data-theme="light"] .button.danger{color:#9b3321}
.profile-menu>div{width:210px;padding:6px}
.profile-menu .theme-menu{border:0;margin:0;padding:4px 10px;gap:6px;justify-content:flex-start}
.profile-menu .theme-menu button{flex:0 0 32px;width:32px;min-height:30px;padding:5px}
.view-title{display:flex;align-items:center;gap:10px}
.agent-scope{font-size:12px;font-weight:450;line-height:20px;padding:0 7px;border-radius:6px;color:var(--muted);background:var(--control-glass)}
.turn-sources>summary{display:inline-flex;align-items:center;gap:8px;min-height:28px;list-style:none;color:var(--muted);font-size:var(--type-support)}
.turn-sources>summary::-webkit-details-marker{display:none}
.turn-sources>summary:hover{color:var(--text)}
.source-stack{display:inline-flex;align-items:center;padding-right:1px}
.source-circle{display:grid;place-items:center;width:22px;height:22px;box-sizing:border-box;border:1px solid var(--control-edge);border-radius:50%;background:var(--modal-surface);color:var(--muted)}
.source-circle+.source-circle{margin-left:-7px}
.source-circle .icon{width:14px;height:14px}
.ai-elements-response>*:first-child{margin-top:0}
.ai-elements-response>*:last-child{margin-bottom:0}
.ai-elements-response :is(h1,h2,h3,h4,h5,h6){font-size:var(--type-body);font-weight:600;line-height:1.5;margin:16px 0 8px}
.ai-elements-response :is(p,ul,ol,table,pre,blockquote){margin:0 0 12px}
.ai-elements-response table{border-collapse:collapse;max-width:100%;font-size:var(--type-support)}
.ai-elements-response :is(th,td){padding:8px 12px;text-align:left;border-bottom:1px solid var(--line)}
.ai-elements-response a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.ai-elements-response pre{position:relative;padding:16px;overflow:auto;background:var(--control-glass);border:1px solid var(--control-edge);border-radius:12px}
.ai-elements-response .code-copy{position:absolute;top:6px;right:6px;font-size:12px}
.ask-bar .slash-menu button{font-family:inherit;font-weight:400;color:var(--muted)}
:root[data-theme] .ask-bar>button[data-action="voice-conversation"][aria-pressed="false"],:root[data-theme] .ask-bar>button[data-action="voice-conversation"][aria-pressed="false"]:hover{background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:var(--muted)}
.tool-results{display:flex;flex-direction:column;gap:4px;margin:0 0 12px;font-size:var(--type-support);color:var(--muted)}
.tool-results summary{display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none;min-height:28px}
.tool-results summary::-webkit-details-marker{display:none}
.tool-results summary:hover{color:var(--text)}
.tool-results summary .icon{width:16px;height:16px}
.tool-status{margin-left:5px;font-size:12px}
.tool-result-detail{padding:4px 0 8px 23px;max-height:240px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.tool-result-detail p{margin:0 0 8px}
.tool-result-detail a{display:block;color:var(--blue);margin:4px 0}
.tool-result-detail .tool-query{color:var(--muted);margin-bottom:12px}
.tool-search-result{margin:0 0 14px;white-space:normal}
.tool-search-result:last-child{margin-bottom:0}
.tool-search-result a{display:flex;flex-direction:column;gap:2px}
.tool-search-result small{color:var(--muted);font-size:12px}
.tool-search-result p{margin:5px 0 0;color:var(--muted);line-height:1.5}
.tool-calculation{color:var(--text);font-variant-numeric:tabular-nums}
