.experience-bar{max-width:1340px;width:100%;margin:0 auto;padding:22px 40px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}
.experience-label{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:600}.experience-label>span:not(.experience-dot){color:var(--faint)}.experience-dot,.botx-dot{width:7px;height:7px;background:var(--accent);border-radius:50%;display:inline-block;flex-shrink:0}.experience-controls{display:flex;align-items:center;gap:22px}.experience-controls button{font:inherit;font-size:13px;cursor:pointer;border:0;background:none;color:var(--text);display:flex;align-items:center;gap:8px}.company-video-trigger i{font-size:20px}.experience-divider{height:22px;width:1px;background:var(--line)}.experience-switch-track{width:36px;height:21px;border-radius:20px;background:#d5d9e4;padding:3px;transition:background .2s}.experience-switch-track>span{display:block;width:15px;height:15px;border-radius:50%;background:white;box-shadow:0 1px 4px #1112;transition:transform .2s}.experience-switch[aria-checked=true] .experience-switch-track{background:var(--accent)}.experience-switch[aria-checked=true] .experience-switch-track>span{transform:translateX(15px)}
.company-video-trigger:disabled{opacity:.5;cursor:default}
.company-video{position:fixed;inset:0;z-index:100;background:rgba(15,18,34,.55);display:flex;align-items:center;justify-content:center;padding:24px 16px}.company-video-box{width:min(1100px,100%);background:var(--surface,var(--surface));border-radius:24px;padding:16px;box-shadow:0 30px 80px #0005}.company-video-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:2px 4px 14px}.company-video-head b{display:block;font-size:16px}.company-video-head span{font-size:12.5px;color:var(--muted)}.company-video-head button{border:0;background:none;font-size:20px;cursor:pointer;color:var(--text)}
.hub-intelligence-toggle{margin-top:30px}.hub-intelligence-toggle>button{margin-bottom:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- BotX: a personal assistant thread for business ---------- */
.shell:has(.botx){height:100dvh;min-height:0;overflow:hidden;grid-template-rows:68px minmax(0,1fr)}
.shell:has(.botx)>main{min-height:0;display:flex;flex-direction:column;overflow:hidden}
.shell:has(.botx) .experience-bar{flex:none;padding:12px 28px}
.shell:has(.botx) .ds-icon{display:inline-grid}
.botx{--thread:744px;--bubble:var(--text);max-width:1340px;width:100%;margin:0 auto;flex:1;min-height:0;height:100%;overflow:hidden;display:grid;grid-template-columns:264px minmax(0,1fr)}

/* rail */
.botx-sidebar{min-height:0;overflow-y:auto;padding:22px 18px 18px 28px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.botx-identity{display:flex;gap:12px;align-items:center;padding:0 4px 14px}
.botx-avatar,.botx-small-mark,.botx-hero-mark{position:relative;display:inline-flex;align-items:center;justify-content:center;line-height:1;background:var(--text);color: #fff;font-family:var(--display);font-weight:700;letter-spacing:-.06em;flex:none}
.botx-avatar span,.botx-small-mark span,.botx-hero-mark span{color:var(--lime);margin-left:.02em}
.botx-avatar{height:40px;width:40px;border-radius:13px;font-size:21px}
.botx-identity b{font-size:15px;display:block;letter-spacing:-.01em}.botx-identity small{display:block;font-size:11.5px;color:var(--muted);margin-top:2px}
.botx-new{display:flex;align-items:center;gap:9px;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font:inherit;font-size:13px;font-weight:600;color:var(--text);cursor:pointer;transition:border-color .2s,box-shadow .2s}
.botx-new:hover{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.botx-new i{font-size:16px;color:var(--accent)}
.botx-sidebar-title{font-size:11.5px;font-weight:600;color:var(--muted);display:flex;justify-content:space-between;padding:18px 6px 6px}.botx-sidebar-title span{color:var(--faint)}
.botx-empty-note{font-size:12px;line-height:1.6;color:var(--muted);margin:0;padding:0 6px}
.botx-work-list{display:grid;gap:2px}
.botx-work-link{display:flex;align-items:flex-start;gap:10px;text-align:left;border:0;background:none;padding:9px 10px;border-radius:10px;cursor:pointer;color:var(--text);font:inherit;font-size:13px;transition:background .15s}
.botx-work-link:hover{background:var(--surface-2)}
.botx-work-link.selected{background:var(--surface);box-shadow:0 1px 0 var(--line),0 4px 14px #1a2a5c0d}
.botx-work-link>i{font-size:16px;color:var(--muted);margin-top:1px}.botx-work-link.selected>i{color:var(--accent)}
.botx-work-link span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}
.botx-work-link small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.botx-profile{margin-top:auto;padding-top:18px;display:grid;gap:12px}
.botx-role{font-size:11px;color:var(--muted);display:grid;gap:5px}
.botx-role select,.botx-mobile-work select{width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;font-size:13px}
.botx-context{display:flex;align-items:flex-start;gap:9px;font-size:12px;padding:12px;border-radius:12px;background:var(--surface-2)}
.botx-dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex:none;background:var(--ok);margin-top:5px;box-shadow:0 0 0 3px #138a4b1f}
.botx-context small{display:block;line-height:1.5;margin-top:2px;font-size:11px;color:var(--muted)}
.botx-all-work{font-size:12px;display:flex;justify-content:space-between;align-items:center;color:var(--muted);text-decoration:none;padding:2px 6px}.botx-all-work:hover{color:var(--accent)}
.botx-mobile-work{display:none}

/* main thread */
.botx-main{min-height:0;display:flex;flex-direction:column;overflow:hidden;position:relative}
.botx-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:32px 24px 24px}
.botx-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.botx-thread{width:100%;max-width:var(--thread);margin:0 auto}
.botx-conversation{display:grid;gap:28px}
.botx-exchange{display:grid;gap:14px;animation:botx-in .45s cubic-bezier(.2,.8,.2,1) both}
.botx-user-message{justify-self:end;max-width:78%;padding:11px 16px;border-radius:20px 20px 6px 20px;background:var(--bubble);color: #fff;font-size:14.5px;line-height:1.55;white-space:pre-wrap}
.botx-assistant-message{display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;align-items:start}
.botx-small-mark{height:30px;width:30px;border-radius:10px;font-size:15px}
.botx-assistant-body{min-width:0}
.botx-assistant-body>p{margin:4px 0 0;font-size:15px;line-height:1.65;white-space:pre-wrap}
.botx-work-chip{margin-top:12px;display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font:inherit;font-size:12.5px;font-weight:600;color:var(--text);cursor:pointer;transition:border-color .2s,transform .2s}
.botx-work-chip:hover{border-color:var(--accent);transform:translateY(-1px)}.botx-work-chip i:first-child{color:var(--accent)}.botx-work-chip i:last-child{color:var(--faint)}
.botx-typing{display:inline-flex;align-items:center;gap:5px;padding:10px 14px;border-radius:16px;background:var(--surface);border:1px solid var(--line);font-size:13px;color:var(--muted);margin-top:0}
.botx-typing i{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:botx-dot 1.2s ease-in-out infinite}.botx-typing i:nth-child(2){animation-delay:.15s}.botx-typing i:nth-child(3){animation-delay:.3s}
.botx-typing span{margin-left:6px}
@keyframes botx-dot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@keyframes botx-in{from{opacity:0;transform:translateY(10px)}}

/* empty state: the composer sits centre stage */
.botx.is-empty .botx-scroll{display:flex;align-items:center;padding-bottom:12vh}
.botx-welcome{text-align:center;padding:0 0 28px;animation:botx-in .6s cubic-bezier(.2,.8,.2,1) both}
.botx-hero-mark{height:56px;width:56px;border-radius:18px;font-size:30px;margin-bottom:22px;box-shadow:0 14px 34px #0f122233}
.botx-welcome h1{font-family:var(--display);font-size:clamp(32px,3.4vw,48px);line-height:1.1;font-weight:600;letter-spacing:-.04em;margin:0}
.botx-welcome h1 em{font-style:normal;color:var(--accent)}
.botx-welcome p{font-size:15px;color:var(--muted);line-height:1.6;margin:14px auto 0;max-width:520px}
.botx-welcome-composer{animation:botx-in .6s .08s cubic-bezier(.2,.8,.2,1) both}
.botx-suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:18px;animation:botx-in .6s .16s cubic-bezier(.2,.8,.2,1) both}
.botx-suggestions button{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;font:inherit;font-size:13px;border:1px solid var(--line);border-radius:999px;background:var(--surface);cursor:pointer;color:var(--text);transition:border-color .2s,transform .2s,box-shadow .2s}
.botx-suggestions button:hover{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 6px 18px #2b59ff1a}
.botx-suggestions i{font-size:16px;color:var(--accent)}

/* composer */
.botx-dock{flex:none;padding:8px 24px 10px;background:linear-gradient(to bottom,transparent,var(--bg) 26%)}
.botx-composer{position:relative;margin:0;border:1px solid var(--line-2);border-radius:24px;background:var(--surface);padding:12px 12px 10px 18px;box-shadow:0 10px 34px #1a2a5c14;transition:border-color .2s,box-shadow .2s}
.botx-composer:focus-within{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft),0 10px 34px #1a2a5c14}
.botx-composer textarea{display:block;resize:none;min-height:26px;max-height:160px;width:100%;background:none;border:0;outline:none;font:inherit;font-size:15px;line-height:1.6;color:var(--text);padding:2px 0}
.botx-composer-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}
.botx-context-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:var(--surface-2);font-size:11.5px;color:var(--muted);font-weight:500}
.botx-composer-bar button[type="submit"]{width:36px;height:36px;flex:none;background:var(--text);color: #fff;border:0;border-radius:50%;font-size:17px;cursor:pointer;display:grid;place-content:center;transition:transform .15s,background .2s}
.botx-composer-bar button[type="submit"]:not(:disabled):hover{background:var(--accent)}
.botx button:disabled{opacity:.45;cursor:default}
.botx-footnote{font-size:11px;color:var(--faint);text-align:center;margin:8px 0 0;line-height:1.5}

/* work card inside a BotX message */
.botx-task{margin-top:14px;border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:18px;box-shadow:0 8px 28px #1a2a5c0f}
.botx-task.has-decision{border-color:#ffd3c6;box-shadow:0 10px 32px #e8481f14}
.botx-task header{display:flex;align-items:center;gap:12px}
.botx-task header>div{flex:1;min-width:0}
.botx-task-icon{height:36px;width:36px;border-radius:11px;display:grid;place-content:center;background:var(--accent-soft);color:var(--accent);font-size:18px;flex:none}
.botx-task h2{font-size:15px;margin:0;letter-spacing:-.01em;font-weight:650}
.botx-task-stage{display:block;font-size:12px;color:var(--muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.botx-state{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:650;padding:5px 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent);flex:none}
.botx-state::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.botx-state.live::before{animation:botx-live 1.6s ease-in-out infinite}
.botx-state.decision{background:var(--warn-soft);color:var(--warn)}
.botx-state.done{background:var(--lime-soft);color:var(--lime-ink)}
.botx-state.failed{background:var(--warn-soft);color:var(--warn)}
@keyframes botx-live{50%{opacity:.3}}
.botx-task-summary{font-size:13.5px;line-height:1.65;color:var(--muted);margin:14px 0 0}
.botx-task>p{font-size:13.5px;line-height:1.65}
.botx-decision{margin-top:16px;padding:16px;border-radius:16px;background:#fff8f5}
.botx-decision-lead{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:650;color:var(--warn)}
.botx-decision h3{font-size:17px;line-height:1.4;margin:6px 0 4px;letter-spacing:-.015em;font-family:var(--display);font-weight:600}
.botx-decision p{font-size:13.5px;line-height:1.6;color:var(--muted);margin:0}
.botx-decision label{display:grid;gap:6px;font-size:12px;margin:12px 0;color:var(--muted)}
.botx-decision select,.botx-decision textarea{border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--surface);font:inherit;font-size:13px;color:var(--text);min-width:0;width:100%}
.botx-decision .botx-check{display:flex;align-items:flex-start;gap:8px;line-height:1.5;color:var(--text)}.botx-check input{margin-top:3px}
.botx-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin-top:14px}
.botx-options button{display:grid;gap:4px;align-content:start;text-align:left;padding:14px;border:1px solid #f0dcd2;border-radius:14px;background:var(--surface);cursor:pointer;font:inherit;font-size:13.5px;color:var(--text);transition:border-color .2s,transform .2s,box-shadow .2s}
.botx-options button b{font-weight:650}
.botx-options button:not(:disabled):hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:0 8px 20px #2b59ff1a}
.botx-options span,.botx-options small{font-size:12.5px;color:var(--muted);line-height:1.5}
.botx-decision-question{display:flex;gap:6px;margin-top:12px;padding:5px 5px 5px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);transition:border-color .2s,box-shadow .2s}
.botx-decision-question:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.botx-decision-question input{flex:1;min-width:0;border:0;outline:none;background:none;font:inherit;font-size:13px;color:var(--text)}
.botx-decision-question button{display:inline-flex;align-items:center;gap:5px;border:0;border-radius:999px;background:var(--text);color: #fff;font:inherit;font-size:12.5px;font-weight:600;padding:7px 13px;cursor:pointer}
.botx-decision-reply{display:grid;grid-template-columns:24px 1fr;gap:10px;margin-top:12px;animation:botx-in .4s both}
.botx-decision-reply .botx-small-mark{height:24px;width:24px;border-radius:8px;font-size:12px}
.botx-decision-reply p{color:var(--text)!important}
.botx-buyer{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.botx-buyer p{font-size:12.5px;line-height:1.6;color:var(--muted);margin:0}
.botx-evidence{font-size:12.5px;line-height:1.65;margin-top:14px}
.botx-evidence summary{cursor:pointer;color:var(--muted);font-weight:550;list-style:none;display:flex;align-items:center;gap:6px}
.botx-evidence summary::-webkit-details-marker{display:none}
.botx-evidence summary::before{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .2s}
.botx-evidence[open] summary::before{transform:rotate(45deg)}
.botx-evidence summary:hover{color:var(--text)}
.botx-task>.botx-evidence{border-top:1px solid var(--line);padding-top:12px}
.botx-evidence ol{padding-left:18px}.botx-evidence li{margin:10px 0}.botx-evidence p{margin:4px 0}
.botx-text-button{display:inline-flex;align-items:center;gap:4px;border:0;background:none;padding:10px 0 0;color:var(--accent);font:inherit;font-size:12.5px;font-weight:550;text-decoration:none;cursor:pointer}
.botx-task .botx-task{margin-top:14px;padding:14px;box-shadow:none;background:var(--surface-2)}

@media(max-width:800px){
 .shell:has(.botx) .experience-bar{padding:10px 16px}
 .shell:has(.botx)>footer,.shell:has(.botx) .foot-links,.shell:has(.botx) .sales-btn{display:none}
 .botx{display:flex;flex-direction:column}
 .botx-sidebar{flex:none;overflow:visible;border-right:0;border-bottom:1px solid var(--line);padding:8px 16px;display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:6px 10px;align-items:center}
 .botx-identity{padding:0}.botx-identity small,.botx-new,.botx-sidebar-title,.botx-empty-note,.botx-work-list,.botx-all-work,.botx-context{display:none}
 .botx-avatar{height:30px;width:30px;border-radius:10px;font-size:16px}
 .botx-profile{display:contents}.botx-role{grid-column:2;grid-row:1;font-size:10px;gap:2px}.botx-role select{padding:5px 8px}
 .botx-mobile-work{display:grid;grid-column:1/-1;gap:2px;font-size:10px;color:var(--muted)}.botx-mobile-work select{height:30px;padding:4px 8px;min-width:0}
 .botx-scroll{padding:18px 14px}.botx-dock{padding:6px 12px 8px}
 .botx-user-message{max-width:88%}
 .botx-assistant-message{grid-template-columns:24px minmax(0,1fr);gap:9px}.botx-small-mark{height:24px;width:24px;border-radius:8px;font-size:12px}
 .botx-welcome h1{font-size:30px}.botx-hero-mark{height:46px;width:46px;font-size:24px;margin-bottom:16px}
 .botx-suggestions{justify-content:flex-start}.botx-options{grid-template-columns:1fr}
 .botx-task{padding:14px}.botx-decision{padding:13px}.botx-footnote{display:none}
}
@media(prefers-reduced-motion:reduce){.botx *{animation:none!important;transition:none!important}.botx-scroll{scroll-behavior:auto}}
.botx-buyer .botx-decision-question{margin-top:10px}
@media(max-width:800px){.experience-bar{padding:16px 20px}.experience-label{display:none}.experience-controls{width:100%;justify-content:space-between;gap:10px}.experience-divider{display:none}}
@media(prefers-reduced-motion:reduce){.experience-switch-track,.experience-switch-track>span{transition:none}}

/* Composer: translucent glass, hairline edge, light until it has something to send */
.botx-dock{background:linear-gradient(to bottom,transparent,color-mix(in srgb,var(--bg) 85%,transparent) 40%)}
.botx-composer{background:color-mix(in srgb,var(--surface) 55%,transparent);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);border:1px solid color-mix(in srgb,var(--text) 9%,transparent);border-radius:18px;box-shadow:inset 0 1px 0 #ffffffb3;padding:10px 10px 8px 16px}
.botx-composer::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;background:linear-gradient(110deg,transparent 20%,var(--accent) 50%,var(--lime) 62%,transparent 80%) 0 0/250% 100%;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:opacity .3s;pointer-events:none}
.botx-composer:focus-within{border-color:transparent;box-shadow:inset 0 1px 0 #ffffffb3,0 12px 40px #2b59ff12}
.botx-composer:focus-within::before{opacity:.9;animation:botx-sheen 3.2s linear infinite}
@keyframes botx-sheen{to{background-position:-250% 0}}
.botx-composer textarea{font-size:14.5px}
.botx-composer textarea::placeholder{color:color-mix(in srgb,var(--muted) 70%,transparent)}
.botx-composer-bar{margin-top:4px}
.botx-context-chip{background:none;padding:2px 0;font-size:11px;color:var(--faint);letter-spacing:.01em}
.botx-context-chip i{font-size:12px}
.botx-composer-bar button[type="submit"]{width:32px;height:32px;font-size:15px;background:transparent;color:var(--faint);border:1px solid color-mix(in srgb,var(--text) 12%,transparent)}
.botx-composer-bar button[type="submit"]:not(:disabled){background:var(--text);color:var(--lime);border-color:var(--text)}
.botx-composer-bar button[type="submit"]:not(:disabled):hover{background:var(--accent);color: #fff}
.botx button.botx-composer-send:disabled,.botx-composer-bar button[type="submit"]:disabled{opacity:1}
.botx-footnote{opacity:.7}
@media(prefers-reduced-motion:reduce){.botx-composer:focus-within::before{animation:none}}

/* Sector and specialty remain reachable without making the page itself scroll. */
.botx-industry-controls {display:grid;gap:8px}
.botx-industry-controls>small {color:var(--muted);font-size:11px;line-height:1.4}
.botx-input-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.botx-input-grid label {display:grid;gap:5px;font-size:12px}
.botx-input-grid input {width:100%;min-width:0;border:1px solid var(--line,#ddd);border-radius:8px;padding:9px;background:var(--surface,var(--surface));color:inherit}
.botx-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}
.botx-facts>div {padding:8px 10px;background:color-mix(in srgb, var(--surface) 65%, transparent);border-radius:8px}
.botx-facts dt {font-size:12px;color:var(--muted)}
.botx-facts dd {margin:3px 0 0;font-weight:600}
@media(max-width:760px){.botx-industry-controls{grid-template-columns:1fr 1fr;gap:6px}.botx-industry-controls>small{grid-column:1/-1}.botx-input-grid,.botx-facts{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.botx-industry-controls{grid-column:1/-1;grid-row:2;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.botx-industry-controls .botx-role{grid-column:auto;grid-row:auto}.botx-industry-controls>small{display:none}.botx-mobile-work{grid-row:3}}

.botx-quick-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 8px}.botx-quick-actions:empty{display:none}.botx-quick-actions small{font-size:11px;color:#64748b}.botx-quick-actions .btn{white-space:nowrap}
@media(max-width:640px){.botx-quick-actions small{display:none}}
.email-preview-overlay{position:fixed;inset:0;z-index:1000;background:color-mix(in srgb,var(--tx-text) 40%,transparent);display:grid;place-items:center;padding:20px}.email-preview{width:min(850px,100%);height:min(850px,92dvh);display:flex;flex-direction:column;overflow:hidden;background:var(--tx-side);color:var(--tx-text);border:1px solid var(--tx-line);border-radius:var(--tx-radius-box);box-shadow:var(--tx-shadow);font-family:var(--tx-font)}.email-preview:focus{outline:none}.email-preview header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;background:var(--tx-bg);gap:15px}.email-preview h2{font-size:20px;font-weight:600;margin:0 0 5px;color:var(--tx-text)}.email-preview header p,.email-preview footer p{font-size:12px;color:var(--tx-sub);margin:0;line-height:1.5}.email-preview-controls{padding:14px 24px;border-block:1px solid var(--tx-line);background:var(--tx-bg)}.email-preview-controls label{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:600;color:var(--tx-text)}.email-preview-controls select{padding:8px;border:1px solid var(--tx-line);border-radius:var(--tx-radius-sm);background:var(--tx-raised);color:var(--tx-text);max-width:100%}.email-preview-controls p{font-size:12px;margin:8px 0 0;color:var(--tx-sub)}.email-preview-thread{overflow-y:auto;min-height:0;padding:20px 24px;overscroll-behavior:contain}.email-preview article{padding:20px;background:var(--tx-bg);border:1px solid var(--tx-line);border-radius:var(--tx-radius-box);margin-bottom:14px}.email-preview-meta{display:flex;justify-content:space-between;font-size:12px;color:var(--tx-sub)}.email-preview-meta b{color:var(--tx-text)}.email-preview h3{font-size:15px;font-weight:600;margin:12px 0;color:var(--tx-text)}.email-preview article p{font-size:14px;line-height:1.6;color:var(--tx-text)}.email-preview article aside{background:var(--tx-raised);border:1px solid var(--tx-line);padding:12px;border-radius:var(--tx-radius-sm);font-size:12px;color:var(--tx-text)}.email-preview article aside p{font-size:12px;margin:4px 0;color:var(--tx-sub)}.email-preview-attachment{display:inline-flex;gap:7px;align-items:center;margin-top:12px;padding:9px;border:1px solid var(--tx-line-strong);border-radius:var(--tx-radius-sm);font-size:12px;color:var(--tx-link);text-decoration:none}.email-preview footer{padding:16px 24px;background:var(--tx-bg);display:flex;gap:16px;align-items:center;border-top:1px solid var(--tx-line)}.email-preview footer p{flex:1}.email-preview footer button{flex-shrink:0}@media(max-width:640px){.email-preview-overlay{padding:8px}.email-preview{height:96dvh}.email-preview header,.email-preview-thread,.email-preview-controls,.email-preview footer{padding:14px}.email-preview footer{flex-direction:column;align-items:stretch}.email-preview-controls label{align-items:flex-start;flex-direction:column}}
.botx-shared{margin-bottom:20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:16px}.botx-shared header{display:flex;justify-content:space-between;align-items:center;gap:12px}.botx-shared small{display:block;font-size:11px;color:#64748b;line-height:1.5}.botx-shared h3{font-size:15px;margin:10px 0}.botx-shared p{font-size:13px;line-height:1.5}.botx-shared-compose,.botx-shared-card{padding:16px;margin-top:12px;background:#f5f7fb;border-radius:10px}.botx-shared label{display:block;font-size:12px;margin:10px 0}.botx-shared input,.botx-shared textarea,.botx-shared select{display:block;width:100%;box-sizing:border-box;padding:10px;border:1px solid #cbd5e1;border-radius:8px;background:white;margin-top:5px}.botx-shared textarea{min-height:70px;resize:vertical}.botx-shared-actions{display:flex;gap:8px;flex-wrap:wrap}.botx-shared summary{cursor:pointer;font-size:13px}.botx-shared dd{margin:0 0 8px}.botx-shared dt{font-weight:600}

/* Gmail connector card in the BotX sidebar */
.botx-gmail{display:flex;gap:10px;align-items:center;margin-top:10px}
.botx-gmail>i{font-size:18px;color:var(--accent,#2f5bea)}
.botx-gmail>div{flex:1;min-width:0}

/* All connectors list in the BotX sidebar */
.botx-connectors{margin-top:8px}
.botx-connectors-toggle{width:100%;display:flex;align-items:center;gap:8px;background:none;border:0;padding:6px 2px;font:inherit;font-size:13px;color:var(--ink,var(--text));cursor:pointer}
.botx-connectors-toggle small{margin-left:auto;color:var(--muted,var(--muted))}
.botx-connector-list{list-style:none;margin:4px 0 0;padding:0;max-height:320px;overflow:auto;display:grid;gap:2px}
.botx-connector{width:100%;display:flex;align-items:center;gap:10px;padding:7px 8px;border:0;border-radius:10px;background:none;text-align:left;font:inherit;font-size:13px;color:inherit;cursor:pointer;text-decoration:none}
.botx-connector:hover,.botx-connector:focus-visible{background:var(--surface-2)}
.botx-connector span{flex:1;min-width:0;display:flex;flex-direction:column}
.botx-connector small{color:var(--muted,var(--muted));font-size:11.5px}
.botx-connector.live small{color:#2e7d32}
.botx-connector .ph-lock-simple{color:var(--muted,var(--muted))}

/* @ connector picker above the composer */
.botx-composer{position:relative}
.mention-picker{position:absolute;left:0;right:0;bottom:calc(100% + 8px);z-index:20;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 32px rgba(20,30,70,.14);padding:6px;display:grid;gap:2px}
.mention-item{display:flex;align-items:center;gap:12px;width:100%;padding:9px 10px;border:0;border-radius:10px;background:none;font:inherit;font-size:14px;text-align:left;color:inherit;cursor:pointer}
.mention-item:hover,.mention-item.active{background:var(--surface-2)}
.mention-item span{flex:1;display:flex;flex-direction:column;min-width:0}
.mention-item small{color:var(--muted);font-size:12px}
.mention-item kbd{font:inherit;font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:2px 6px}
.mention-item>.ph-lock-simple{color:var(--faint)}
.mention-empty{padding:10px;color:var(--muted);font-size:13px}
/* Email sources table under a mailbox answer */
.mail-sources{margin-top:10px;overflow-x:auto;border:1px solid var(--line);border-radius:14px}
.mail-sources table{width:100%;border-collapse:collapse;font-size:13px}
.mail-sources th{text-align:left;font-weight:600;color:var(--muted);background:var(--surface-2);padding:8px 10px}
.mail-sources td{padding:8px 10px;border-top:1px solid var(--line);vertical-align:top}
.mail-sources a{color:var(--accent);text-decoration:none}
.mail-sources a:hover{text-decoration:underline}

/* Google action confirmation card */
.action-card{margin-top:10px;border:1px solid var(--line);border-radius:16px;padding:12px 14px;background:var(--surface);display:grid;gap:8px;font-size:13px}
.action-card.done{border-color:#b7e1c1}.action-card.failed{border-color:#f2b8b5}
.action-head{display:flex;align-items:center;gap:8px;font-size:14px}.action-head i{color:var(--accent);font-size:18px}
.action-card dl{display:grid;gap:4px;margin:0}.action-card dl div{display:grid;grid-template-columns:90px 1fr;gap:8px}
.action-card dt{color:var(--muted)}.action-card dd{margin:0;word-break:break-word}
.action-body{margin:0;white-space:pre-wrap;font:inherit;background:var(--surface-2);border-radius:10px;padding:10px;max-height:240px;overflow:auto}
.action-buttons{display:flex;gap:8px}.action-note{margin:0;color:var(--muted)}.action-note.ok{color:#1e7b3a}.action-note.error{color:#b42318}
.action-note a{color:var(--accent)}

.action-details summary{cursor:pointer;color:var(--muted);font-size:12px}
.action-details[open] dl{margin-top:6px}
.file-actions{display:flex;gap:6px;flex-wrap:wrap}

/* Hand-offs between personas, and recent chats */
.handoff-card .ph-users-three{color:var(--accent)}
.botx-incoming .botx-assistant-body>p{margin-bottom:8px}
.botx-incoming .botx-shared-card{margin:0}
.botx-thread-list{display:grid;gap:2px;margin-bottom:10px}

/* In-chat request cards: full-width response box and wrapping actions */
.botx-incoming .botx-shared-card label{display:grid;gap:6px;width:100%}
.botx-incoming .botx-shared-card textarea{width:100%;min-height:72px;box-sizing:border-box}
.botx-incoming .botx-shared-actions{display:flex;flex-wrap:wrap;gap:8px}

/* Reply to a specific message (ChatGPT-style) */
.botx-reply-btn{opacity:0;border:0;background:none;color:var(--muted);cursor:pointer;padding:4px;border-radius:8px;font-size:15px;transition:opacity .15s}
.botx-assistant-message:hover .botx-reply-btn,.botx-reply-btn:focus-visible{opacity:1}
.botx-reply-btn:hover{background:var(--surface-2);color:var(--accent)}
@media (hover:none){.botx-reply-btn{opacity:1}}
.botx-reply-ref{display:flex;gap:6px;justify-content:flex-end;align-items:center;color:var(--muted);font-size:12px;margin:0 0 4px auto;max-width:80%}
.botx-reply-ref span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.botx-replying{display:flex;align-items:center;gap:8px;padding:6px 8px;margin-bottom:6px;border-radius:10px;background:var(--surface-2);font-size:12.5px;color:var(--muted)}
.botx-replying span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.botx-replying button{border:0;background:none;cursor:pointer;color:var(--muted)}

/* ---------- tx-ui adoption (docs/UI-LIBRARY.md): BotX surfaces use the library's look ---------- */
body { font-family: var(--tx-font); }
.botx-composer { border-radius: 26px; background: var(--tx-raised); border: 1px solid var(--tx-line); box-shadow: none; padding: 10px 10px 8px 18px; }
.botx-composer:focus-within { border-color: var(--tx-line-strong); box-shadow: none; }
.botx-composer textarea { font-size: var(--tx-text-lg); color: var(--tx-text); background: transparent; }
.botx-composer-bar button[type="submit"] { width: 34px; height: 34px; border-radius: 999px; background: var(--tx-accent); color: var(--tx-accent-ink); border: 0; }
.botx-composer-bar button[type="submit"]:disabled { opacity: .35; }
.botx-context-chip { color: var(--tx-faint); }
.botx-user-message { background: var(--tx-bubble); color: var(--tx-text); border-radius: 20px; padding: 10px 16px; box-shadow: none; }
.botx-assistant-body, .botx-assistant-body p { color: var(--tx-text); font-size: var(--tx-text-md); line-height: 1.65; }
.botx-typing { background: transparent; border: 0; box-shadow: none; color: var(--tx-sub); }
.nav-inbox, .budget { background: transparent; box-shadow: none; border: 1px solid var(--tx-line); color: var(--tx-text); }
.nav-inbox:hover { background: var(--tx-hover); }
.botx-sidebar { background: var(--tx-side); }
.botx-new { border-radius: 10px; border: 0; background: transparent; color: var(--tx-text); }
.botx-new:hover, .botx-work-link:hover { background: var(--tx-hover); }
.botx-work-link.selected { background: var(--tx-hover); }
.botx-connector { border-radius: 10px; }
.botx-connector:hover, .botx-connector:focus-visible { background: var(--tx-hover); }
.botx-context, .botx-shared, .botx-shared-card { background: transparent; border: 1px solid var(--tx-line); box-shadow: none; border-radius: var(--tx-radius); }
.action-card { background: transparent; border: 1px solid var(--tx-line); border-radius: var(--tx-radius); }
.action-card:hover { border-color: var(--tx-line-strong); }
.action-card.done { border-color: color-mix(in srgb, var(--tx-ok) 40%, var(--tx-line)); }
.mention-picker { background: var(--tx-raised); border: 1px solid var(--tx-line); box-shadow: var(--tx-shadow); }
.mention-item:hover, .mention-item.active { background: var(--tx-hover); }
.mail-sources { border-color: var(--tx-line); }
.mail-sources th { background: transparent; color: var(--tx-sub); border-bottom: 1px solid var(--tx-line); }
.mail-sources td { border-top: 0; border-bottom: 1px solid var(--tx-line); }
.mail-sources a { color: var(--tx-link); }
.botx-quick-actions .btn, .botx-welcome .btn { border-radius: 999px; background: transparent; border: 1px solid var(--tx-line); box-shadow: none; }
.botx-footnote { color: var(--tx-faint); }

/* BotX mark: a dark tile with white "b" and lime "x" in every theme, with a hairline so it reads on near-black */
.botx-avatar,.botx-small-mark,.botx-hero-mark{background:#0d0d0d;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
/* Other departments reply automatically: the switch in the persona panel, and an incoming request shown as a quoted
   note from its sender (left-aligned, full text), not as a message the user typed. tx-ui tokens only. */
.botx-auto-toggle{display:flex;gap:8px;align-items:flex-start;min-height:34px;font-size:var(--tx-text-sm);color:var(--tx-text);cursor:pointer}
.botx-auto-toggle input{margin-top:3px;accent-color:var(--tx-accent);width:16px;height:16px;flex:none}
.botx-auto-toggle input:focus-visible{outline:2px solid var(--tx-accent);outline-offset:2px}
.botx-auto-toggle span{display:grid;gap:2px}
.botx-auto-toggle small{color:var(--tx-sub);font-size:12px;line-height:1.4}
.botx-reply-ref.botx-incoming{justify-content:flex-start;margin:0 auto 6px 0;max-width:100%;color:var(--tx-sub);font-size:var(--tx-text-sm)}
.botx-reply-ref.botx-incoming span{white-space:pre-wrap;overflow:visible}
.botx-assistant-body>.tx-badge{margin-bottom:6px}

/* Inbox demo: product master, consent, then a 10:00-10:10 inbox that BotX triages. tx-ui tokens only. */
.inbox-demo-overlay{position:fixed;inset:0;z-index:1000;background:color-mix(in srgb,var(--tx-text) 40%,transparent);display:grid;place-items:center;padding:16px}
.inbox-demo{width:min(720px,100%);max-height:min(860px,92dvh);display:flex;flex-direction:column;overflow:hidden;background:var(--tx-bg);color:var(--tx-text);border:1px solid var(--tx-line);border-radius:var(--tx-radius-box);box-shadow:var(--tx-shadow);font-family:var(--tx-font)}
.inbox-demo:focus{outline:none}
.inbox-demo>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 24px 16px;border-bottom:1px solid var(--tx-line)}
.inbox-demo h2{font-size:18px;font-weight:600;margin:0 0 4px}
.inbox-demo>header p{margin:0;font-size:var(--tx-text-sm);color:var(--tx-sub);line-height:1.5}
.inbox-demo-body{display:flex;flex-direction:column;gap:16px;padding:16px 24px 24px;overflow-y:auto;min-height:0;overscroll-behavior:contain}
.inbox-demo-body footer{display:flex;justify-content:flex-end;gap:8px}
.inbox-demo-lead,.inbox-demo-empty{margin:0;font-size:var(--tx-text-md);color:var(--tx-sub)}
.inbox-demo-question{margin:0;font-size:var(--tx-text-md);font-weight:600}
.inbox-demo-product{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:16px;border:1px solid var(--tx-line);border-radius:var(--tx-radius-box)}
.inbox-demo-product legend{padding:0 6px;font-size:var(--tx-text-sm);font-weight:600}
.inbox-demo-product label{display:flex;flex-direction:column;gap:6px;font-size:var(--tx-text-sm);color:var(--tx-sub);min-width:0}
.inbox-demo-product input,.inbox-demo-product select{height:38px;padding:0 10px;background:var(--tx-raised);color:var(--tx-text);border:1px solid var(--tx-line);font:inherit;font-size:14px;min-width:0}
.inbox-demo-clock{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:12px}
.inbox-demo-clock b{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums}
.inbox-demo-clock small{font-size:var(--tx-text-sm);color:var(--tx-sub);white-space:nowrap}
.inbox-demo-track{height:4px;border-radius:var(--tx-pill);background:var(--tx-raised);overflow:hidden}
.inbox-demo-track span{display:block;height:100%;background:var(--tx-text);transition:width .25s linear}
.inbox-demo-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border-top:1px solid var(--tx-line)}
.inbox-demo-list>li{border-bottom:1px solid var(--tx-line)}
.inbox-demo-list .tx-row{grid-template-columns:40px minmax(0,1fr) auto;padding:12px 8px}
.inbox-demo-list .tx-tile{font-size:13px;font-weight:600;color:var(--tx-sub)}
.inbox-demo-mail{display:flex;flex-direction:column;gap:2px;min-width:0}
.inbox-demo-mail>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inbox-demo-mail>span:first-child{display:flex;gap:8px;align-items:baseline}
.inbox-demo-mail time{font-size:12px;color:var(--tx-sub);font-variant-numeric:tabular-nums}
.inbox-demo-open{padding:4px 8px 16px 60px;display:flex;flex-direction:column;gap:10px}
.inbox-demo-from{margin:0;font-size:var(--tx-text-sm);color:var(--tx-sub);overflow-wrap:anywhere}
.inbox-demo-text{margin:0;white-space:pre-wrap;font-size:14px;line-height:1.6}
.inbox-demo-summary{display:flex;flex-direction:column;gap:12px;padding-top:4px}
.inbox-demo-summary p{margin:0;font-size:var(--tx-text-md);line-height:1.6}
@media(max-width:640px){.inbox-demo-overlay{padding:8px}.inbox-demo>header,.inbox-demo-body{padding-left:16px;padding-right:16px}.inbox-demo-product{grid-template-columns:1fr}.inbox-demo-clock{grid-template-columns:auto 1fr auto}.inbox-demo-clock .tx-btn{grid-column:1/-1;justify-self:start}.inbox-demo-open{padding-left:8px}.inbox-demo-list .tx-badge{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.inbox-demo-track span{transition:none}}
@media(max-width:640px){.inbox-demo-list .tx-row{grid-template-columns:40px minmax(0,1fr)}.inbox-demo-list .tx-row>.tx-badge{grid-column:2;justify-self:start}}

/* Decision card on tx-ui tokens: it kept a cream fill in Dim and Dark, which hid its question. */
.botx-decision{background:var(--tx-raised);border:1px solid var(--tx-line);border-radius:var(--tx-radius-box);color:var(--tx-text)}
.botx-decision-lead{color:var(--tx-warn)}
.botx-decision h3{color:var(--tx-text);font-family:var(--tx-font)}
.botx-decision p,.botx-decision label{color:var(--tx-sub)}
.botx-decision select,.botx-decision textarea{background:var(--tx-bg);color:var(--tx-text);border-color:var(--tx-line);border-radius:var(--tx-radius-sm)}
.botx-decision .botx-check{color:var(--tx-text)}
.botx-options button{background:var(--tx-bg);color:var(--tx-text);border-color:var(--tx-line);border-radius:var(--tx-radius-sm);transform:none}
.botx-options button:not(:disabled):hover{border-color:var(--tx-line-strong);background:var(--tx-hover);transform:none;box-shadow:none}
.botx-options span,.botx-options small{color:var(--tx-sub)}
.botx-decision-question{background:var(--tx-bg);border-color:var(--tx-line)}
.botx-decision-question input{color:var(--tx-text)}
.botx-decision-question button{background:var(--tx-text);color:var(--tx-bg)}
.botx-decision-question:focus-within{border-color:var(--tx-accent);box-shadow:none}
.botx-facts>div{background:var(--tx-bg);border-radius:var(--tx-radius-sm)}
.botx-facts dt{color:var(--tx-sub)}

/* Inbox demo, live step: a mail client. The list on the left; on the right, BotX reading the selected email.
   The meter with its threshold mark is the one bold element; everything else stays on the library. */
.inbox-demo:has(.inbox-demo-live){width:min(1040px,100%);height:min(820px,92dvh);max-height:none}
.inbox-demo-live{flex:1}
.inbox-demo-panes{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);flex:1;min-height:0;border:1px solid var(--tx-line);border-radius:var(--tx-radius-box);overflow:hidden}
.inbox-demo-pane-list{border-right:1px solid var(--tx-line);overflow-y:auto;background:var(--tx-side)}
.inbox-demo-pane-list .inbox-demo-empty{padding:16px}
.inbox-demo-pane-list .inbox-demo-list{border-top:0}
.inbox-demo-list .tx-row.selected{background:var(--tx-hover)}
.inbox-demo-pane-detail{overflow-y:auto;padding:20px 24px;min-width:0}
.inbox-demo-pane-detail>.inbox-demo-empty{max-width:36ch}
.inbox-demo-inline{display:none}
.inbox-demo-reading{display:flex;flex-direction:column;gap:16px;max-width:620px}
.inbox-demo-reading>header{display:flex;flex-direction:column;gap:4px}
.inbox-demo-reading>header b{font-size:17px;font-weight:600;line-height:1.35}
.inbox-demo-reading>header small{font-size:var(--tx-text-sm);color:var(--tx-sub);overflow-wrap:anywhere}
.inbox-demo-verdict{display:flex;flex-direction:column;gap:14px;padding-top:16px;border-top:1px solid var(--tx-line)}
.inbox-demo-verdict-head{display:flex;flex-direction:column;gap:2px}
.inbox-demo-verdict-head b{font-size:var(--tx-text-md);font-weight:600}
.inbox-demo-verdict-head small{color:var(--tx-warn);font-size:var(--tx-text-sm)}
.inbox-demo-meter{position:relative;height:10px;margin-bottom:22px;border-radius:var(--tx-pill);background:var(--tx-raised);border:1px solid var(--tx-line)}
.inbox-demo-meter-fill{position:absolute;inset:0 auto 0 0;border-radius:var(--tx-pill);background:var(--tx-line-strong);transition:width .6s var(--tx-ease)}
.inbox-demo-meter-fill.lead{background:var(--tx-ok)}
.inbox-demo-meter-mark{position:absolute;top:-5px;bottom:-5px;width:2px;margin-left:-1px;background:var(--tx-text)}
.inbox-demo-meter-mark small{position:absolute;top:calc(100% + 4px);left:50%;transform:translateX(-50%);white-space:nowrap;font-size:12px;color:var(--tx-sub)}
.inbox-demo-reasons td:last-child{width:4em;text-align:right;font-variant-numeric:tabular-nums;color:var(--tx-sub)}
.inbox-demo-reading .tx-route{margin:4px 0 0}
@media(max-width:760px){.inbox-demo:has(.inbox-demo-live){height:96dvh}.inbox-demo-panes{display:block;border:0;border-radius:0;overflow:visible}.inbox-demo-pane-list{border-right:0;background:transparent;overflow:visible}.inbox-demo-pane-detail{display:none}.inbox-demo-inline{display:block;padding:4px 8px 16px}.inbox-demo-list .tx-row{grid-template-columns:40px minmax(0,1fr) auto}.inbox-demo-list .tx-row>.tx-badge{grid-column:auto}.inbox-demo-reading .tx-route{grid-template-columns:repeat(2,minmax(0,1fr))!important;row-gap:14px}}
@media(prefers-reduced-motion:reduce){.inbox-demo-meter-fill{transition:none}}


/* Header on the library: one face and one size for every control, so nothing in the bar shouts. */
.topbar .brand{font-family:var(--tx-font);font-size:17px;font-weight:600;letter-spacing:-.01em;color:var(--tx-text)}
.topbar .crumbs:empty{display:none}
.top-right{font-family:var(--tx-font);font-size:14px;color:var(--tx-sub)}
.top-right .nav-inbox,.top-right .budget,.top-right .sales-btn,.top-right .nav-signout{height:34px;padding:0 14px;font-family:var(--tx-font);font-size:14px;font-weight:500;border-radius:var(--tx-pill);display:inline-flex;align-items:center;gap:6px;box-shadow:none}
.top-right .budget{color:var(--tx-text)}
.top-right .budget i{color:var(--tx-sub)}
.top-right .avatar{width:32px;height:32px;font-size:12px;font-family:var(--tx-font)}
.top-right .tb-icon{width:34px;height:34px}


/* ===== Library adoption, from the BotX consistency review (28 Oct 2026) =====
   One face (Geist), one size scale (13 / 14 / 15 px), one corner scale (10 / 20 / pill), tokens only. */

/* Legacy variables read the library's tokens on every BotX surface, so neighbouring fills stop drifting in Dim and Dark. */
.shell:has(.botx),.inbox-demo-overlay,.company-video{--bg:var(--tx-bg);--surface:var(--tx-surface);--surface-2:var(--tx-raised);--line:var(--tx-line);--line-2:var(--tx-line-strong);--text:var(--tx-text);--muted:var(--tx-sub);--faint:var(--tx-faint);--accent:var(--tx-accent);--accent-soft:color-mix(in srgb,var(--tx-accent) 10%,transparent);--warn:var(--tx-warn);--warn-soft:var(--tx-warn-soft);--ok:var(--tx-ok)}

/* Headings use the library face, never the marketing display face. The "bx" mark stays a logo. */
.shell:has(.botx) :is(h1,h2,h3,h4),.inbox-demo h2,.company-video :is(h2,h3){font-family:var(--tx-font);letter-spacing:normal;font-weight:600}
.botx-welcome h1{font-family:var(--tx-font);font-size:clamp(28px,3vw,36px);font-weight:600;letter-spacing:-.01em}
.inbox-demo h2{font-size:17px}

/* Dialog backdrops darken in every theme. */
.inbox-demo-overlay,.company-video{background:rgb(0 0 0 / .5)}
.company-video-box{border-radius:var(--tx-radius-box);box-shadow:var(--tx-shadow);background:var(--tx-surface)}
.company-video-head span{font-size:var(--tx-text-sm);color:var(--tx-sub)}

/* Header: flat, token border, same pill behaviour everywhere. */
.topbar{border-bottom:1px solid var(--tx-line);background:var(--tx-bg);backdrop-filter:none;-webkit-backdrop-filter:none}
.top-right .btn:hover{transform:none;box-shadow:none}
.top-right .btn-ghost:hover{background:var(--tx-hover)}
.top-right .tb-icon{background:transparent;border:1px solid var(--tx-line);box-shadow:none;color:var(--tx-text);border-radius:var(--tx-pill)}
.top-right .tb-icon:hover{background:var(--tx-hover)}
.top-right .avatar{background:var(--tx-raised);color:var(--tx-text);border:1px solid var(--tx-line);font-weight:600}
.top-right .budget i{color:inherit}
@media(max-width:760px){.top-right .nav-inbox{font-size:0;gap:0;width:34px;padding:0;justify-content:center}.top-right .nav-inbox i{font-size:16px}}
@media(max-width:640px){.shell:has(.botx) .sales-btn{display:none}}

/* Bar under the header: one size for the label and the walkthrough button. */
.experience-label{font-size:14px;font-weight:500}
.experience-controls button{font-size:14px}
.company-video-trigger i{font-size:16px}
.experience-switch-track{background:var(--tx-line-strong);border-radius:var(--tx-pill)}
.experience-switch-track>span{background:var(--tx-bg);box-shadow:none}

/* Reply chip above the composer, and the @ connector picker: real controls, not send buttons. */
.botx-replying{font-size:var(--tx-text-sm);background:var(--tx-raised);color:var(--tx-sub)}
.botx-replying button{width:34px;height:34px;display:inline-grid;place-items:center;flex:none;border:0;border-radius:var(--tx-pill);background:transparent;color:var(--tx-sub)}
.botx-replying button:hover{background:var(--tx-hover);color:var(--tx-text)}
.mention-item kbd{border-radius:var(--tx-radius-sm)}

/* Composer: no gradient ring or glass. */
.botx-composer::before{content:none}
.botx-composer{backdrop-filter:none;-webkit-backdrop-filter:none;border-radius:var(--tx-radius-box)}
.botx-context-chip{font-size:12px;color:var(--tx-sub)}
.botx-footnote{font-size:12px;opacity:1;color:var(--tx-sub)}

/* Pills above and below the composer share one style. */
.botx-suggestions button{font-size:14px;font-weight:500;background:transparent;border-color:var(--tx-line);min-height:34px;transition:background .15s}
.botx-suggestions button:hover{transform:none;box-shadow:none;border-color:var(--tx-line);background:var(--tx-hover)}
.botx-quick-actions .btn,.botx-welcome .btn{font-size:14px;font-weight:500}
.botx-quick-actions small{font-size:var(--tx-text-sm);color:var(--tx-sub)}

/* Legacy buttons inside BotX and the data popup: no lift, no glow, library sizes. */
:is(.botx,.data-settings-panel) .btn{font-size:14px;font-weight:500;box-shadow:none;transform:none}
:is(.botx,.data-settings-panel) .btn-primary{background:var(--tx-text);color:var(--tx-bg);box-shadow:none}
.data-settings-panel{border-radius:var(--tx-radius-box);background:var(--tx-raised);border-color:var(--tx-line);box-shadow:var(--tx-shadow);font-size:var(--tx-text-sm)}
.data-settings-panel p{font-size:var(--tx-text-sm);color:var(--tx-sub)}

/* Work card and its decision. */
.botx-task{background:transparent;border:1px solid var(--tx-line);box-shadow:none}
.botx-task.has-decision{border-color:color-mix(in srgb,var(--tx-warn) 40%,var(--tx-line));box-shadow:none}
.botx-task .botx-task{background:var(--tx-raised)}
.botx-task-icon{border-radius:var(--tx-radius-sm)}
.botx-state{border-radius:var(--tx-radius-sm);font-size:12px;font-weight:500;padding:2px 8px;background:var(--tx-raised);color:var(--tx-sub)}
.botx-state.done{background:var(--tx-ok-soft);color:var(--tx-ok)}
.botx-state.decision,.botx-state.failed{background:var(--tx-warn-soft);color:var(--tx-warn)}
.botx-task h2,.botx-decision h3,.botx-options button b{font-weight:600}
.botx-decision h3{font-size:var(--tx-text-md)}
.botx-task-stage,.botx-decision label,.botx-options span,.botx-options small,.botx-evidence,.botx-text-button,.botx-decision-lead,.action-details summary{font-size:var(--tx-text-sm);font-weight:500}
.botx-options button,.botx-decision select,.botx-decision-question input{font-size:14px}
.botx-decision-question button{font-size:14px;font-weight:500;min-height:34px}

/* Messages. */
.botx-user-message{font-size:var(--tx-text-md)}
.botx-reply-ref{font-size:var(--tx-text-sm)}
.botx-reply-btn{width:34px;height:34px;display:inline-grid;place-items:center;border-radius:var(--tx-pill)}
.botx-reply-btn:hover{background:var(--tx-hover)}
.botx-work-chip{font-size:var(--tx-text-sm);font-weight:500}
.botx-work-chip:hover{transform:none;border-color:var(--tx-line-strong)}

/* "Across your team" and the shared-request form. */
.botx-shared input,.botx-shared textarea,.botx-shared select{border:1px solid var(--tx-line);border-radius:var(--tx-radius-sm);background:var(--tx-raised);color:var(--tx-text);font:inherit;font-size:var(--tx-text-md)}
.botx-shared,.botx-shared-card,.botx-shared-compose{border-radius:var(--tx-radius-box)}
.botx-shared b{font-weight:600}
.botx-shared small{font-size:var(--tx-text-sm);color:var(--tx-sub)}
.botx-shared>.botx-footnote{text-align:left;opacity:1;color:var(--tx-sub);font-size:var(--tx-text-sm)}

/* Cards on the box corner; hand-off and action states on tokens. */
.botx-context,.action-card,.mail-sources{border-radius:var(--tx-radius-box)}
.action-card.failed{border-color:color-mix(in srgb,var(--tx-warn) 40%,var(--tx-line))}
.action-note.ok{color:var(--tx-ok)}
.action-note.error{color:var(--tx-warn)}
.action-head{font-size:var(--tx-text-md)}
.action-head b{font-weight:600}

/* Evidence disclosures: a bordered row with its chevron at the end. */
.botx-evidence summary{min-height:34px;padding:0 14px;border:1px solid var(--tx-line);border-radius:var(--tx-radius-box);justify-content:flex-start;color:var(--tx-sub);font-size:var(--tx-text-sm);font-weight:500}
.botx-task>.botx-evidence{border-top:0}

/* Sidebar: one secondary size, one inset, token fields. */
.botx-identity small,.botx-sidebar-title,.botx-empty-note,.botx-role,.botx-context,.botx-context small,.botx-industry-controls>small,.botx-all-work,.botx-connector small,.botx-connectors-toggle small,.botx-work-link small{font-size:var(--tx-text-sm);color:var(--tx-sub)}
.botx-new,.botx-work-link,.botx-connectors-toggle,.botx-connector{font-size:14px}
.botx-new{font-weight:500}
.botx-sidebar select{background:var(--tx-raised);border-color:var(--tx-line);color:var(--tx-text)}
.botx-dot{box-shadow:0 0 0 3px var(--tx-ok-soft)}
.botx-connector.live small{color:var(--tx-ok)}
.botx-connectors-toggle,.botx-all-work{min-height:34px}
@media(max-width:800px){.botx-gmail,.botx-connectors,.botx-auto-toggle small{display:none}}

/* Empty state starts at the top, centred only when there is room. */
.botx.is-empty .botx-scroll{align-items:flex-start}
.botx.is-empty .botx-thread{margin-block:auto}

/* Decorative motion off; the typing indicator only pulses. */
.botx-exchange,.botx-welcome,.botx-welcome-composer,.botx-suggestions{animation:none}

/* Inbox demo leftovers. */
.inbox-demo-product input,.inbox-demo-product select{font-size:var(--tx-text-md)}
.inbox-demo-deliver{display:flex;gap:8px;align-items:flex-start;font-size:var(--tx-text-md);color:var(--tx-text)}
.inbox-demo-reading>header small+small{color:var(--tx-ok)}


/* Live review fixes (28 Oct 2026). */
.botx-sidebar{overflow-x:hidden}
.botx-industry-controls,.botx-role,.botx-role select,.botx-profile{min-width:0;max-width:100%;box-sizing:border-box}
.inbox-demo-mail>span:first-child b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inbox-demo-mail time{flex:none}
.inbox-demo-product.two{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:640px){.inbox-demo-product.two{grid-template-columns:1fr}}
.botx-shared details>summary{min-height:34px;display:flex;align-items:center;gap:8px;padding:0 14px;margin-top:8px;border:1px solid var(--tx-line);border-radius:var(--tx-radius-box);color:var(--tx-sub);font-size:var(--tx-text-sm);font-weight:500;cursor:pointer;list-style:none}
.botx-shared details>summary::-webkit-details-marker{display:none}
.botx-shared details>summary::before{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
.botx-shared details[open]>summary::before{transform:rotate(45deg)}
.botx-from-inbox{display:flex;gap:8px;align-items:flex-start;font-size:var(--tx-text-md);color:var(--tx-text)}
.botx-from-inbox i{color:var(--tx-sub);margin-top:3px}
.botx-profile{grid-template-columns:minmax(0,1fr)}
.botx-industry-controls{width:100%}
@media(min-width:801px){.botx-sidebar{padding-left:20px;padding-right:20px}}
.botx-conversation-log ol{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.botx-conversation-log li{padding:10px 14px;border-radius:var(--tx-radius-box);background:var(--tx-raised);max-width:92%}
.botx-conversation-log li.seller{background:transparent;border:1px solid var(--tx-line);margin-left:auto}
.botx-conversation-log li b{display:block;font-size:var(--tx-text-sm);font-weight:600;color:var(--tx-sub)}
.botx-conversation-log li p{margin:2px 0 0;font-size:14px;line-height:1.55;color:var(--tx-text);white-space:pre-wrap}
.botx-auto-note{display:block;margin-top:4px;font-size:var(--tx-text-sm);color:var(--tx-sub)}


/* ChatGPT-simple pass: one sidebar list, a quiet business block, flat work cards. */
.botx-sidebar{gap:4px}
.botx-new{font-weight:500}
.botx-thread-list .botx-work-link{min-height:34px}
.botx-thread-list .botx-work-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.botx-profile{margin-top:auto;padding-top:14px;border-top:1px solid var(--tx-line);gap:10px}
.botx-business b{display:block;font-size:14px;font-weight:600;color:var(--tx-text)}
.botx-business small{font-size:var(--tx-text-sm);color:var(--tx-sub)}
.botx-auto-toggle span{font-size:var(--tx-text-sm);color:var(--tx-sub)}
.botx-suggestion-main{border-color:var(--tx-line-strong)!important;color:var(--tx-text)!important}
.botx-task .botx-task{border:0;border-top:1px solid var(--tx-line);border-radius:0;background:transparent;padding:16px 0 0;margin-top:12px}
.botx-task>.botx-evidence{margin-top:8px}


/* Live design review, 29 Oct 2026. */
/* Phone: New chat and the three selects in one strip; the chat gets the rest of the screen. */
@media(max-width:800px){
 .botx-sidebar{display:flex;flex-direction:column;gap:8px;padding:8px 16px;overflow:visible}
 .botx-new{display:flex;min-height:34px;width:auto;align-self:flex-start}
 .botx-sidebar .botx-sidebar-title,.botx-thread-list,.botx-business,.botx-auto-toggle{display:none}
 .botx-profile{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0;border:0}
 .botx-industry-controls{display:contents}
 .botx-profile .botx-role{grid-column:auto;grid-row:auto;font-size:12px;gap:2px}
 .botx-profile .botx-role select{font-size:16px;height:34px;padding:0 8px}
 .botx-task .botx-footnote,.botx-dock .botx-footnote{display:block}
 .top-right .nav-inbox{min-width:34px}
}
.botx-thread-list{display:grid;grid-template-columns:minmax(0,1fr)}
.botx-thread-list .botx-work-link{min-width:0}
.botx-thread-list small{color:var(--tx-sub);font-size:12px}
/* Text inside cards follows the scale: only an answer's own paragraphs are body size. */
.botx-assistant-body p{font-size:inherit}
.botx-assistant-body>p{font-size:var(--tx-text-md)}
.botx-evidence p,.botx-conversation-log li p{font-weight:400}
.botx-task .botx-footnote{font-size:var(--tx-text-sm);color:var(--tx-sub);text-align:left}
.botx-scenario input,.botx-scenario label{font-size:var(--tx-text-md);font-weight:400}
.botx-sidebar select{font-size:14px}
.company-video-head b{font-size:17px;font-weight:600}
.botx-task h2,.botx-shared h3{line-height:1.35}
.botx-welcome h1 em{color:inherit;font-style:normal}
.botx-hero-mark{border-radius:var(--tx-radius-box)}
/* Layout: the app sits flush, and the composer lines up with the thread. */
.botx{max-width:none}
.botx-scroll{scrollbar-gutter:stable both-edges}
html{scrollbar-gutter:stable}
.top-right{gap:8px}
.botx-work-chip{margin-top:8px}
.tx-actions{margin-top:4px}
.botx-assistant-body>.tx-actions .tx-icon-btn{opacity:0;transition:opacity .15s}
.botx-exchange:hover .tx-actions .tx-icon-btn,.tx-actions .tx-icon-btn:focus-visible{opacity:1}
@media(hover:none){.botx-assistant-body>.tx-actions .tx-icon-btn{opacity:1}}
/* Fewer boxes: messages are bubbles, shared request cards are rows. */
.botx-conversation-log li{border:0}
.botx-conversation-log li.seller{border:0;background:var(--tx-bubble)}
.botx-conversation-log li.buyer{background:transparent;padding-left:0}
.botx-shared-card{border:0;border-top:1px solid var(--tx-line);border-radius:0;background:transparent;padding-left:0;padding-right:0}
.action-details summary{min-height:34px;display:flex;align-items:center;gap:8px;padding:0 14px;border:1px solid var(--tx-line);border-radius:var(--tx-radius-box);color:var(--tx-sub);font-size:var(--tx-text-sm);font-weight:500;cursor:pointer;list-style:none}
.action-details summary::-webkit-details-marker{display:none}
.botx-evidence dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 16px;margin:8px 0}
.botx-evidence dd{margin:0}
.botx-evidence dt{color:var(--tx-sub)}
/* Welcome suggestions: quiet icons, one border weight. */
.botx-suggestions button i{color:var(--tx-sub)}
.botx-suggestion-main{border-color:var(--tx-line)!important}
.botx-new:hover{border-color:transparent;box-shadow:none;background:var(--tx-hover)}
.botx-new i{color:var(--tx-sub)}
.botx-new:focus-visible{outline:2px solid var(--tx-accent);outline-offset:1px}
.top-right .nav-icon{width:34px;padding:0;justify-content:center}


/* Account menu behind the avatar. */
.account-menu{position:relative}
.top-right .account-menu .avatar{width:34px;height:34px;border-radius:var(--tx-pill);cursor:pointer;font:inherit;font-size:12px;font-weight:600}
.account-menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:50;min-width:240px;display:flex;flex-direction:column;gap:2px;padding:8px;background:var(--tx-surface);border:1px solid var(--tx-line);border-radius:var(--tx-radius-box);box-shadow:var(--tx-shadow)}
.account-menu-who{display:flex;flex-direction:column;padding:6px 10px 10px;border-bottom:1px solid var(--tx-line);margin-bottom:4px}
.account-menu-who b{font-size:14px;font-weight:600;color:var(--tx-text)}
.account-menu-who small{font-size:var(--tx-text-sm);color:var(--tx-sub);overflow-wrap:anywhere}
.account-menu-row{display:flex;align-items:center;justify-content:space-between;padding:0 4px 0 10px;min-height:38px;font-size:14px;color:var(--tx-text)}
.account-menu-panel>button,.account-menu-panel .link-btn,.account-menu-panel .nav-inbox{display:flex;align-items:center;gap:8px;width:100%;min-height:38px;padding:0 10px;border:0;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-text);font:inherit;font-size:14px;text-align:left;cursor:pointer;box-shadow:none;text-decoration:none}
.account-menu-panel>button:hover,.account-menu-panel .link-btn:hover,.account-menu-panel .nav-inbox:hover{background:var(--tx-hover)}
.account-menu-panel i{color:var(--tx-sub)}


/* Connectors page on the library: two plain lists of rows. */
.page:has(.connectors-head){max-width:760px}
.connectors-head h1{font-family:var(--tx-font);font-size:28px;font-weight:600;letter-spacing:-.01em;color:var(--tx-text);margin:0 0 6px}
.connectors-head p{margin:0 0 24px;font-size:var(--tx-text-md);color:var(--tx-sub)}
.connectors-group{font-family:var(--tx-font);font-size:var(--tx-text-sm);font-weight:600;color:var(--tx-sub);margin:20px 0 6px}
.connectors-list{display:flex;flex-direction:column;border-top:1px solid var(--tx-line)}
.connector-row{grid-template-columns:40px minmax(0,1fr) auto;border-bottom:1px solid var(--tx-line);border-radius:0;padding:12px 4px;min-height:64px;background:transparent;box-shadow:none;transform:none}
.connector-row b{display:block;font-weight:600;font-size:var(--tx-text-md);color:var(--tx-text)}
.connector-row small{display:block;font-size:var(--tx-text-sm);color:var(--tx-sub)}
.connector-row small a{color:var(--tx-link)}
.connector-row .tx-badge.ok{margin-top:4px}
.connector-row .tx-tile i{color:var(--tx-sub)}
.connector-row.erp-tile.locked{background:transparent;border-left:0;border-right:0}

/* Welcome suggestions: a calm two-column list instead of wrapped pills. */
.botx-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:640px;margin-left:auto;margin-right:auto}
.botx-suggestions button{justify-content:flex-start;text-align:left;border-radius:var(--tx-radius-box);min-height:44px;padding:10px 14px;white-space:normal}
@media(max-width:640px){.botx-suggestions{grid-template-columns:1fr}}
.company-video-head .tx-icon-btn i{font-size:16px}
.player-frame{border-radius:var(--tx-radius-box)}
.handoff-card.cancelled .action-head b{font-weight:500;color:var(--tx-sub)}
.connector-row.erp-tile::after,.connector-row.erp-tile::before{content:none}
.connector-row.erp-tile,.connector-row.erp-tile:hover{transform:none;box-shadow:none;opacity:1;border-color:var(--tx-line);overflow:visible}
.connector-row.erp-tile:hover{background:var(--tx-hover)}
.botx-confirmed{position:fixed;top:72px;left:50%;transform:translateX(-50%);z-index:60}


/* Talk to sales, Feedback and the usage page on the library. */
.sales-modal{background:var(--tx-surface);color:var(--tx-text);border:1px solid var(--tx-line);border-radius:var(--tx-radius-box);box-shadow:var(--tx-shadow);font-family:var(--tx-font)}
.sales-modal h3,.sales-modal h2{font-family:var(--tx-font);font-size:17px;font-weight:600;letter-spacing:normal;color:var(--tx-text)}
.sales-modal .kicker,.sales-modal .eyebrow,.page-head .kicker{display:none}
.sales-modal p,.sales-modal label{color:var(--tx-sub);font-size:var(--tx-text-sm)}
.sales-modal input,.sales-modal textarea,.sales-modal select{background:var(--tx-raised);color:var(--tx-text);border:1px solid var(--tx-line);border-radius:var(--tx-radius-sm);font:inherit;font-size:var(--tx-text-md)}
.sales-modal .btn-primary{background:var(--tx-text);color:var(--tx-bg);box-shadow:none;transform:none;font-size:14px;font-weight:500}
.sales-modal .btn-primary:hover{box-shadow:none;transform:none;opacity:.88}
.page-head h1{font-family:var(--tx-font);font-size:28px;font-weight:600;letter-spacing:-.01em}
.page .panel{border-radius:var(--tx-radius-box);box-shadow:none;border:1px solid var(--tx-line);background:transparent}
.page .panel h2{font-family:var(--tx-font);font-size:17px;font-weight:600;letter-spacing:normal}
.page .panel details>summary{min-height:34px;display:flex;align-items:center;gap:8px;padding:0 14px;border:1px solid var(--tx-line);border-radius:var(--tx-radius-box);color:var(--tx-sub);font-size:var(--tx-text-sm);font-weight:500;cursor:pointer;list-style:none}
.page .panel details>summary::-webkit-details-marker{display:none}
.page .btn-primary{background:var(--tx-text);color:var(--tx-bg);box-shadow:none;transform:none}
.page details.panel>summary{display:flex;align-items:center;gap:8px;min-height:34px;color:var(--tx-sub);font-size:var(--tx-text-sm);font-weight:500;cursor:pointer;list-style:none}
.page details.panel>summary::-webkit-details-marker{display:none}
.page details.panel>summary::before{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
.page details.panel[open]>summary::before{transform:rotate(45deg)}

/* First visit, any screen: a short bar with Essential only and Options, so it never covers the page it sits on. */
.data-settings-panel:not(.expanded){width:min(380px,calc(100vw - 24px));padding:12px 14px}
.data-settings-panel:not(.expanded)>p{margin:2px 0 10px}
.data-settings-panel:not(.expanded) .ds-details,.data-settings-panel:not(.expanded) .ds-save{display:none}
.data-settings-panel:not(.expanded) .ds-more{display:inline-flex}
