/* One workspace navigation, inspired by the Mirr landing page. */
body{--sidebar-width:244px;--workspace-accent:#6450db;--workspace-soft:#eeebff;--workspace-line:#e4e1ec}
body[data-workspace-theme=customer]{--workspace-accent:#176e67;--workspace-soft:#d9f2e9;--workspace-line:#d7e2dc}
.app-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--workspace-line);padding:28px 18px;z-index:20;overflow:auto}
.app-sidebar header{padding:0;background:transparent!important;border:0;gap:8px;flex-wrap:wrap;align-items:center}
.app-sidebar .brand{font-size:35px}.app-sidebar #brand-role{font-size:10px;padding:6px 8px}.app-sidebar #account-status{width:100%;margin-top:24px;display:flex;flex-direction:column;align-items:stretch;gap:12px}
#account-context{display:none}.app-sidebar select{width:100%;font:inherit;font-size:13px;padding:12px}.app-sidebar .account-link{margin:0;display:block;padding:12px;font-size:13px}
.app-sidebar .modules{padding:24px 0;border:0;background:transparent;display:flex;flex-direction:column;gap:8px;overflow:visible}.app-sidebar .modules a{padding:13px 14px;font-size:14px;font-weight:550}
#sidebar-bottom{margin-top:auto;padding-top:32px;border-top:1px solid var(--workspace-line)}#sidebar-bottom a{margin:0;display:block}
body:not(.auth-mode) main,body:not(.auth-mode) main:has(.builder:not([hidden])){margin-left:var(--sidebar-width);width:calc(100% - var(--sidebar-width));max-width:none;padding:28px 32px;min-height:0;flex:1 0 auto;margin-top:0;margin-bottom:0}
body:not(.auth-mode) .foot{display:none}#refresh{display:none!important}
.builder-top{min-height:42px;margin:0 0 16px;gap:12px}.builder-top h1{margin:0;flex:1}.builder-top select{margin-left:auto;max-width:280px}.builder-back{padding:8px 0;border:0;background:transparent;font-size:13px;color:var(--workspace-accent);margin-right:auto}.builder-back:hover{text-decoration:underline}.builder-notice{margin:0 0 18px}.builder-layout{margin-top:0}
.builder-chat{height:calc(100vh - 160px);min-height:500px}.builder-panel{max-height:calc(100vh - 235px)}.builder-inspector{min-width:0}.builder-composer{display:flex;align-items:flex-end;gap:12px}.builder-composer label{flex:1}.builder-composer textarea{height:84px;min-height:84px}.builder-composer button{margin-bottom:10px}.builder-messages{scroll-behavior:auto}
.builder-working{position:relative;border:1px solid var(--workspace-line);border-radius:12px;padding:16px 18px 16px 45px;margin:10px 0 20px;background:transparent}.builder-working strong{font-size:13px;color:var(--workspace-accent)}.builder-working p{font-size:12px;color:#526861;line-height:1.6;margin:8px 0 0}.working-icon{position:absolute;left:15px;top:13px;color:var(--workspace-accent);font-size:24px;animation:mirr-working 1.5s ease-in-out infinite}.builder[aria-busy=true] .builder-chat-head .muted{visibility:hidden}.builder-rule details{font-size:12px;margin-top:8px}
.settings-actions{display:flex;gap:12px;margin-top:24px}.site-footer{margin-left:var(--sidebar-width);padding:32px;background:#f0f3ed;color:#182925;border-top:1px solid #d7e2dc}.footer-main{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:24px}.site-footer .brand{font-size:34px}.site-footer h3{font-size:12px;margin:0 0 12px}.site-footer a:not(.brand),.site-footer button{display:block;color:#526861;font-size:12px;text-decoration:none;padding:5px 0;background:none;border:0}.site-footer a:hover,.site-footer button:hover{text-decoration:underline}.site-footer p{font-size:12px;color:#526861}.footer-bottom{display:flex;justify-content:space-between;border-top:1px solid #d7e2dc;padding-top:16px;margin-top:24px;font-size:11px;color:#526861}
body[data-workspace-theme=admin] .site-footer{background:#f0edf8;color:#242638}
body.auth-mode .app-sidebar{display:contents}body.auth-mode .app-sidebar header{justify-content:center;padding:40px 20px 10px;gap:16px}body.auth-mode #sidebar-bottom,body.auth-mode .site-footer{display:none}body.auth-mode main{width:100%;margin:auto;min-height:0}
@keyframes mirr-working{0%,100%{opacity:.4;transform:scale(.85)}50%{opacity:1;transform:scale(1.1)}}
@media(max-width:1100px){body{--sidebar-width:210px}.builder-layout{grid-template-columns:1fr}.builder-panel{max-height:none}.builder-chat{height:650px}.footer-main{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.app-sidebar{position:static;width:auto;padding:16px}.app-sidebar header{flex-wrap:wrap}.app-sidebar #account-status{margin-top:8px}.app-sidebar .modules{padding:12px 0;flex-direction:row;flex-wrap:wrap}.app-sidebar #sidebar-bottom{padding:0;border:0;margin:0}.app-sidebar #sidebar-bottom a{padding:6px 12px}body:not(.auth-mode) main,body:not(.auth-mode) main:has(.builder:not([hidden])){margin:0;width:100%;padding:20px 14px}.site-footer{margin:0;padding:24px}.builder-top select{max-width:160px}.builder-chat{height:600px;min-height:450px}.builder-composer{padding:14px}.builder-composer textarea{font-size:16px}.builder-tabs button{font-size:12px}.builder-panel{padding:18px}}
@media(prefers-reduced-motion:reduce){.working-icon{animation:none}}

.builder-chat{display:flex;flex-direction:column}.builder-messages{flex:1;min-height:90px;height:auto}.app-sidebar .account-link[aria-current=page]{background:var(--workspace-soft);color:var(--workspace-accent)}
/* Compact builder workspace */
.sidebar-toggle{position:fixed;top:12px;left:12px;z-index:30;width:32px;height:32px;padding:0;border:1px solid var(--workspace-line);background:white;font-size:18px;border-radius:8px;color:var(--workspace-accent)}
.app-sidebar{padding-top:58px}.sidebar-collapsed{--sidebar-width:56px!important}.sidebar-collapsed .app-sidebar{width:56px;padding:56px 0 0}body:not(.auth-mode).sidebar-collapsed .app-sidebar>*{display:none!important}body.auth-mode .sidebar-toggle{display:none}
.compact-top{height:30px;min-height:30px;margin:0 0 10px!important;justify-content:flex-start}.compact-top .builder-back{margin:0;padding:0 8px;font-size:18px}.compact-top select{margin:0!important;border:0;background:transparent;padding:4px;max-width:280px;font-size:13px}.compact-top .compact-icon{margin:0;padding:0;width:28px;height:28px}.compact-top h1{font-size:22px}
.builder-layout{gap:12px!important;margin:0!important;grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr)}
.builder-chat,.builder-inspector{border-radius:12px}.builder-chat{height:calc(100vh - 100px);min-height:500px}.compact-head{padding:8px!important;align-items:center;gap:8px}.left-tabs{padding:0;border:0;flex:1}.left-tabs button{font-size:12px;padding:9px 8px;flex:initial}.merge-button{margin:0;padding:8px 14px;font-size:12px}.builder-version-bar{display:flex;gap:10px;align-items:center;padding:7px 16px;border-bottom:1px solid var(--workspace-line);font-size:11px;color:#526861}.builder-version-bar time{margin-left:auto}.compact-icon{background:transparent;border:0;padding:4px;font-size:18px;line-height:1.2}.builder-left-content{flex:1;min-height:0;overflow:auto}.builder-left-content>.builder-messages{height:100%;overflow:auto}.builder-left-content:has(>.builder-source),.builder-left-content:has(>.builder-badge){padding:20px}.builder-left-content>h2{margin-top:0}.builder-left-content li,.builder-left-content p{font-size:13px}.builder-left-content>form{margin-top:16px}.builder-left-content>.builder-primary{font-size:12px}
.compact-composer{position:relative;display:block!important;padding:0!important;margin:12px!important;border:1px solid var(--workspace-line);border-radius:14px;flex-shrink:0;background:white}.compact-composer textarea{display:block;border:0!important;outline-offset:0;resize:vertical;background:transparent!important;padding:14px 88px 14px 14px;margin:0!important;width:100%;min-height:64px!important;height:72px;font-size:13px}.compact-composer .compact-send{position:absolute;right:8px;bottom:8px;width:32px;height:32px;padding:0;margin:0!important;border-radius:9px;font-size:20px}.compact-composer .attach-button{position:absolute;right:47px;bottom:8px;width:30px;height:32px;padding:0;margin:0;font-size:24px}.builder-inspector>.builder-tabs{padding:8px}.builder-inspector>.builder-panel{height:calc(100vh - 149px);max-height:none;min-height:450px;padding:16px}.builder-panel h2{font-size:19px;margin-top:0}.test-actions{display:flex;gap:8px;margin:8px 0}.test-actions button{padding:5px 10px;background:transparent;border:0;color:#526861}.builder-test-log{max-height:350px}.builder-conditions{font-size:11px}.builder-left-content .builder-notice{font-size:12px}
@media(max-width:1100px){.builder-layout{grid-template-columns:1fr!important}.builder-chat{height:600px}.builder-inspector>.builder-panel{height:auto;min-height:380px}.builder-test-log{max-height:350px}}
@media(max-width:650px){.app-sidebar{padding-top:52px}.sidebar-collapsed .app-sidebar{display:none}.sidebar-collapsed main{margin:0!important;width:100%!important;padding-top:52px!important}.sidebar-collapsed .site-footer{margin:0}.compact-top{flex-wrap:nowrap}.compact-top select{max-width:230px}.builder-chat{height:560px;min-height:420px}.left-tabs button{font-size:11px;padding:8px 5px}.merge-button{padding:8px}.compact-composer textarea{font-size:16px}.builder-layout{gap:16px!important}}

/* Let the content fill the space above the actual footer height. */
body:not(.auth-mode){display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body:not(.auth-mode) .site-footer{flex-shrink:0}
@media(max-width:650px){body:not(.auth-mode) .app-sidebar{flex-shrink:0}}

/* Conversation: right-aligned customer bubbles and unboxed Mirr replies. */
body:not(.auth-mode) .builder-chat .builder-message.user{width:fit-content;max-width:85%;margin:12px 0 24px auto;padding:12px 16px;border-radius:18px;background:var(--workspace-soft)}
body:not(.auth-mode) .builder-chat .builder-message.assistant{max-width:100%;margin:0 0 28px;padding:0;background:transparent;border:0;border-radius:0}
.builder-chat .builder-message p{margin:0;line-height:1.7}
.compact-composer .attach-button{width:28px;height:28px;bottom:10px;right:48px;border-radius:50%;background:#f2f4f2;font-family:inherit;font-size:22px;line-height:1;font-weight:400;color:#526861}
.compact-composer [data-tooltip]::after{content:attr(data-tooltip);position:absolute;right:0;bottom:calc(100% + 12px);width:max-content;max-width:220px;background:#182925;color:white;border-radius:8px;padding:8px 11px;font-size:12px;font-weight:500;line-height:1.4;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;z-index:40}
.compact-composer [data-tooltip]:hover::after,.compact-composer [data-tooltip]:focus-visible::after{opacity:1;visibility:visible}

/* Knowledge Base is a document library; creation stays in Build. */
.builder-left-content.knowledge-base{padding:20px}
.knowledge-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.knowledge-header h2{margin:0;font-size:20px}
.knowledge-add{width:32px;height:32px;padding:0;border:1px solid var(--workspace-line);border-radius:50%;background:var(--workspace-soft);color:var(--workspace-accent);font-size:24px;line-height:1}
.knowledge-document{border:1px solid var(--workspace-line);border-radius:10px;padding:14px;margin:12px 0}
.knowledge-document summary{cursor:pointer;overflow-wrap:anywhere;line-height:1.5}
.knowledge-name{margin-right:10px}
.knowledge-format{display:inline-block;vertical-align:middle;font-size:10px;font-weight:600;letter-spacing:.4px;background:var(--workspace-soft);color:var(--workspace-accent);border-radius:5px;padding:3px 7px}
.knowledge-document[open] summary{margin-bottom:12px}
.knowledge-document button,.knowledge-recordings button{font-size:12px}
.knowledge-empty{padding:28px 16px;border:1px dashed var(--workspace-line);border-radius:10px;color:#526861;text-align:center}
.knowledge-recordings{margin-top:20px;font-size:12px}
.knowledge-recordings select{margin:12px 0}

/* Shared reading scale, with a comfortable conversation measure. */
:root{font-size:16px}
body{font-size:16px;line-height:24px;font-weight:400}
main p,main li,.builder .builder-message p,.builder .builder-rule p,.builder .builder-left-content p,.builder .builder-left-content li,.builder .builder-panel p,.builder .builder-panel li,.builder .compact-composer textarea,.knowledge-document summary,.knowledge-document pre{font-size:16px;line-height:24px;font-weight:400}
main h2,main h3,.builder .knowledge-header h2,.builder .builder-panel h2,.builder .builder-panel h3{font-size:20px;line-height:28px;font-weight:600}
.builder .builder-caption,main small,.builder .builder-message small,.builder .builder-rule small,.builder .builder-version-bar,.builder .builder-working p,.builder .builder-working strong,.builder .builder-conditions,.builder .builder-trace,.builder .builder-trace p,.builder .builder-check,.builder .builder-rule details,.knowledge-format,.knowledge-recordings,.site-footer p,.site-footer a:not(.brand),.site-footer button,.footer-bottom{font-size:14px!important;line-height:20px;font-weight:400}
.builder .builder-tabs button,.builder .merge-button,.builder .test-actions button,.builder .compact-top select,.builder .knowledge-document button{font-size:14px;line-height:20px}
.builder-chat .builder-messages{width:100%;max-width:calc(48rem + 40px);margin-inline:auto;padding:24px 20px}
.builder-chat>.builder-composer{width:calc(100% - 24px);max-width:48rem;align-self:center;margin-inline:auto!important}
.builder .builder-panel>p,.builder .builder-panel>ol,.builder .builder-panel>ul,.builder .builder-test-log,.builder .builder-rule,.builder .knowledge-document{max-width:48rem}
.builder .builder-panel .builder-message p{font-size:16px;line-height:24px}
.builder .builder-version-bar{flex-wrap:wrap}
@media(max-width:650px){.builder .compact-head{flex-wrap:wrap}.builder .left-tabs{flex-wrap:wrap}.builder-chat .builder-messages{padding:20px 16px}.builder .builder-version-bar{gap:6px}}

/* Files remain in the composer until the message is submitted. */
.attachment-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.compact-composer>.attachment-chips{padding:12px 12px 0;margin:0;max-height:150px;overflow:auto}
.attachment-chip{display:flex;align-items:center;gap:8px;max-width:100%;padding:7px 10px;border:1px solid var(--workspace-line);border-radius:9px;background:var(--workspace-soft);font-size:14px;line-height:20px}
.attachment-chip>span{overflow-wrap:anywhere;min-width:0}
.attachment-chip button{flex-shrink:0;padding:0 4px!important;margin:0!important;border:0;background:transparent;font-size:20px}

/* Reserve status space above the composer so progress never shifts it. */
.builder-chat>.builder-status-slot,.builder-chat>.builder-status-slot:empty{display:block;height:44px;min-height:44px;flex:0 0 44px;overflow:auto;margin:0;padding:10px 20px;font-size:14px;line-height:20px}
.builder-test-history{border:0;border-top:1px solid var(--workspace-line);padding:12px 0;margin:16px 0 24px;overflow-wrap:anywhere}
.builder-test-history summary{font-size:14px;line-height:20px;color:#526861;cursor:pointer}
.builder-test-history strong{font-size:14px;line-height:20px;font-weight:600}
.builder-test-history p{white-space:pre-wrap;margin:8px 0 16px}

.source-update-badge{display:inline-block;margin-left:8px;padding:3px 7px;border-radius:5px;background:#fff2d7;color:#79531b;font-size:14px;line-height:20px}
.source-update{border-left:3px solid #d6a342;padding:10px 14px;margin:16px 0;background:#fffbf1;border-radius:6px}
.source-update p{margin:6px 0 12px}

.agent-library-toolbar,.connector-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.agent-library-toolbar input{flex:1;min-width:180px;margin:0}.agent-library{grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr))}
.agent-card-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.agent-card-heading h2{overflow-wrap:anywhere}.agent-card-heading .builder-badge{white-space:nowrap}
.agent-card dl{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px 12px;font-size:14px;line-height:20px}.agent-card dt{color:#526861}.agent-card dd{margin:0;overflow-wrap:anywhere}.agent-card-actions{display:flex;align-items:flex-start;gap:12px;margin-top:16px}.agent-card-menu{position:relative;border:0}.agent-card-menu button{display:block;margin-top:8px}
.agent-setup{max-width:48rem;margin:24px auto;padding:24px;border:1px solid var(--workspace-line);border-radius:16px;background:white}
.agent-setup label,.agent-settings-panel label{font-size:14px;line-height:20px}.agent-setup select,.agent-settings-panel select{font:inherit}.agent-setup textarea{min-height:100px}
.agent-dialog{max-width:480px;width:calc(100% - 32px);border:1px solid var(--workspace-line);border-radius:16px;padding:24px;color:#182925}.agent-dialog::backdrop{background:#18292566}.agent-dialog button{margin-right:8px}
.builder-left-content.connector-panel,.builder-left-content.agent-settings-panel{padding:20px}.connector-card{border:1px solid var(--workspace-line);border-radius:10px;padding:14px;margin:12px 0}.connector-card summary{font-size:16px;line-height:24px}.connector-filters select{max-width:100%;flex:1}.compact-head .left-tabs{flex-wrap:wrap}.compact-head{flex-wrap:wrap}

.connector-logo{width:32px;height:32px;object-fit:contain;vertical-align:middle;flex:none;border-radius:6px;background:#fff;padding:3px;box-sizing:content-box;margin:0 10px 0 4px}.connector-card summary span{vertical-align:middle}.connector-card summary{overflow-wrap:anywhere}
.workspace-intro{max-width:48rem;color:#526861;margin:12px 0 24px}.company-steps{display:flex;gap:20px;flex-wrap:wrap;margin:20px 0 28px}.company-steps a{color:var(--workspace-accent,#18756d)}.company-notice{padding:20px;border:1px solid var(--workspace-line);border-radius:12px;background:#f0f6f3;margin:20px 0}.company-notice p{max-width:48rem}.company-connectors{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin:20px 0}.company-connector{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.company-connector p{flex:1;margin:0}.connector-heading{display:flex;align-items:center;gap:8px}.connector-heading h2{margin:0}.knowledge-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font:inherit}.journey-card{padding:16px;border:1px solid var(--workspace-line);border-radius:12px;margin-bottom:16px}.channel-row{display:flex!important;align-items:flex-start;gap:12px;padding:16px 0;border-bottom:1px solid var(--workspace-line)}.channel-row input{width:auto!important;margin-top:5px}.channel-row span span{display:block;margin-top:4px}

.shared-source-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:8px 0}.shared-source-row span{overflow-wrap:anywhere;min-width:0}

/* Compact conversation and quiet navigation. */
body:not(.auth-mode){font-family:Arial,Helvetica,sans-serif}
.builder .builder-message p,.builder .builder-panel .builder-message p,.builder .compact-composer textarea{font-size:15px;line-height:23px}
.builder .builder-message.user{padding:10px 16px;border-radius:22px;max-width:85%;margin-left:auto}
.builder .builder-message.assistant{padding:12px 0;background:transparent;border:0}
.builder .builder-working{border:0;background:transparent;padding:10px 0 10px 28px;margin:8px 0 20px}
.builder .builder-working strong,.builder .builder-working p{font-size:13px!important;line-height:20px}
.builder .working-icon{left:0;top:9px;font-size:18px}
.builder .compact-composer{border-radius:24px;box-shadow:0 2px 8px #00000006}
.builder .compact-composer textarea{padding:14px 18px 48px;min-height:96px;height:96px;resize:none}
.builder .compact-send,.builder .attach-button{width:32px;height:32px;border-radius:50%;font-size:22px}
.builder-chat>.builder-status-slot,.builder-chat>.builder-status-slot:empty{height:28px;min-height:28px;flex-basis:28px;padding:4px 20px;font-size:13px}
.app-sidebar{background:#f8f9f8;border-right:1px solid #eeeeec;padding-inline:12px}
.app-sidebar .brand{font-size:28px}.app-sidebar #account-status{margin-top:14px;gap:6px}
.app-sidebar select{padding:8px 10px;border-color:#e5e7e5;border-radius:10px;background:transparent}
.app-sidebar .modules{gap:3px;padding:18px 0}
.app-sidebar .modules a,.app-sidebar .account-link{display:flex;align-items:center;gap:10px;padding:9px 12px;font-size:14px;line-height:20px;font-weight:400;border-radius:10px;color:#242927}
.app-sidebar .modules a:hover,.app-sidebar .account-link:hover{background:#ededeb}
.app-sidebar .modules a[aria-current=page],.app-sidebar .account-link[aria-current=page]{background:#e9ece9;color:#182925;font-weight:500}
.sidebar-toggle{border:0;background:transparent;color:#555f59}
#sidebar-bottom{padding-top:12px}.nav-icon{width:18px;height:18px;flex:none}

/* Keep destination icons available when the navigation is collapsed. */
body:not(.auth-mode).sidebar-collapsed .app-sidebar>.modules{display:flex!important;flex-direction:column;padding:12px 6px;gap:6px}
body:not(.auth-mode).sidebar-collapsed .app-sidebar>#sidebar-bottom{display:block!important;padding:10px 6px;margin-top:auto}
.sidebar-collapsed .app-sidebar .nav-label{display:none}
.sidebar-collapsed .app-sidebar .modules a,.sidebar-collapsed .app-sidebar #sidebar-bottom a{display:flex;justify-content:center;align-items:center;width:44px;height:40px;padding:10px;gap:0;margin:0}
.sidebar-collapsed .app-sidebar .nav-icon{width:20px;height:20px}
@media(max-width:650px){
 body:not(.auth-mode).sidebar-collapsed .app-sidebar{display:flex;position:fixed;width:56px;height:100dvh;inset:0 auto 0 0;padding:56px 0 0}
 body:not(.auth-mode).sidebar-collapsed main{margin-left:56px!important;width:calc(100% - 56px)!important}
 body:not(.auth-mode).sidebar-collapsed .site-footer{margin-left:56px}
}

/* Open conversation canvas with a single, lightweight workspace toolbar. */
.builder .builder-chat{background:transparent;border:0;border-radius:0;box-shadow:none;height:calc(100dvh - 56px)}
.builder .builder-chat-head.compact-head{background:transparent;border:0;border-bottom:1px solid var(--workspace-line);border-radius:0;padding:0 0 8px!important;flex-wrap:nowrap;flex-shrink:0}
.builder .compact-head .left-tabs{background:transparent;display:flex;flex-wrap:nowrap;overflow-x:auto;min-width:0;gap:4px;padding:0}
.builder .left-tabs button{white-space:nowrap;border-radius:8px;padding:8px 10px;font-size:13px;line-height:20px;background:transparent}
.builder .left-tabs button[aria-selected=true]{background:var(--workspace-soft);color:var(--workspace-accent)}
.builder .merge-button{flex-shrink:0;border-radius:9px;font-size:13px;padding:8px 12px}
.builder .builder-version-bar{background:transparent;border:0;padding:8px 4px;flex-shrink:0}
.builder .builder-left-content,.builder .builder-messages{background:transparent}
.builder .builder-chat>.builder-composer{background:#fff;margin-bottom:8px!important}
@media(max-width:1100px){.builder .builder-chat{height:calc(100dvh - 80px);min-height:450px}}

/* Fine conversation rhythm and softer, compact reading text. */
body:not(.auth-mode) .builder .builder-message,
body:not(.auth-mode) .builder .builder-message p,
body:not(.auth-mode) .builder .builder-message li,
body:not(.auth-mode) .builder .compact-composer textarea{font-size:14px;line-height:22px;font-weight:400;color:#373a3c}
body:not(.auth-mode) .builder .compact-composer textarea::placeholder{color:#85888b;opacity:1}
body:not(.auth-mode) .builder-chat .builder-message.assistant{border-top:1px solid #e6e8e7;padding-top:16px;margin-top:20px;margin-bottom:28px}
body:not(.auth-mode) .builder-chat .builder-message.assistant:first-child{margin-top:0}
body:not(.auth-mode) .builder .builder-working{border-top:1px solid #e6e8e7;padding-top:16px}
body:not(.auth-mode) .builder .builder-working .working-icon{top:15px}
body:not(.auth-mode) .builder .builder-working strong,
body:not(.auth-mode) .builder .builder-working p{color:#73777a;font-size:12px!important;line-height:18px}
body:not(.auth-mode) .builder .builder-test-history summary{color:#73777a;font-size:12px;line-height:18px}

/* Authentication never inherits the workspace's collapsed navigation. */
body.auth-mode .app-sidebar{display:contents!important}
body.auth-mode .app-sidebar>header{display:flex!important}
body.auth-mode .app-sidebar>.modules,body.auth-mode .app-sidebar>#sidebar-bottom{display:none!important}

/* Stable authentication identity; only the selected access changes color. */
body.auth-mode{--auth-accent:#18756d;--auth-soft:#d9f2e9;background:#fafbf9;color:#373a3c}
body.auth-mode[data-auth-audience=mirr-admin]{--auth-accent:#99497f;--auth-soft:#f5e6f0}
body.auth-mode[data-auth-audience=agent]{--auth-accent:#286fb2;--auth-soft:#e6f0fa}
body.auth-mode #brand-role,body.auth-mode #account-status{display:none!important}
body.auth-mode .app-sidebar>header{width:100%;height:132px;padding:40px 20px 24px;flex:none;justify-content:center;gap:0}
body.auth-mode .app-sidebar .brand{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:40px;font-weight:750;line-height:48px;letter-spacing:-1px;color:#27332f;display:inline-flex;align-items:center;white-space:nowrap}
body.auth-mode .app-sidebar .brand span{color:#18756d;margin-left:3px}
body.auth-mode .auth-access a{color:#373a3c}
body.auth-mode .auth-access a[aria-current=page]{background:var(--auth-soft);color:var(--auth-accent)}
body.auth-mode form>button,body.auth-mode form>button[type=submit]{background:var(--auth-accent)!important;border-color:var(--auth-accent)!important;color:#fff}
body.auth-mode form>button:hover{filter:brightness(.94)}
body.auth-mode .auth-links a,body.auth-mode .auth-links a:visited,body.auth-mode .form-message{color:var(--auth-accent)}
body.auth-mode :is(input,button,a):focus-visible{outline-color:var(--auth-accent)}

.home-content{max-width:800px;margin:36px auto 64px;color:#373a3c}.home-content h1{font-size:28px;line-height:36px;font-weight:600;letter-spacing:-.5px}.home-content h2{font-size:18px;margin:28px 0 16px}.home-intro{max-width:640px;color:#727778;font-size:15px}.home-choices{display:grid;gap:12px}.home-action{display:flex;flex-direction:column;gap:6px;padding:16px 20px;border-radius:14px;background:#f0f3f0;text-decoration:none;color:#373a3c;margin:8px 0}.home-action:hover{background:#e5eee9}.home-action strong{font-size:15px;font-weight:600}.home-action span{font-size:13px;color:#697370}.home-explore{display:inline-block;margin:20px 0;color:#18756d}.home-next{padding:4px 24px 20px;border:1px solid #d7e2dc;border-radius:18px;background:#fff;margin-top:28px}.home-progress{border-top:1px solid #e6e8e7;margin-top:32px}.home-progress .home-action{flex-direction:row;justify-content:space-between;flex-wrap:wrap;background:transparent;padding:12px 0;border-bottom:1px solid #e6e8e7;border-radius:0}

/* Compact Mirr rail expands over the canvas on pointer or keyboard focus. */
body:not(.auth-mode) .app-sidebar>header{display:none!important}
body:not(.auth-mode) .sidebar-toggle{font-size:23px;font-weight:750;letter-spacing:-1px;color:#18756d;border-radius:9px}
body:not(.auth-mode) .app-sidebar{overflow:visible;transition:width .16s ease;background:#f8f9f8}
body:not(.auth-mode).sidebar-collapsed .app-sidebar:is(:hover,:focus-within){width:244px;box-shadow:5px 0 18px #00000009}
body:not(.auth-mode).sidebar-collapsed .app-sidebar:is(:hover,:focus-within) .nav-label{display:inline}
body:not(.auth-mode).sidebar-collapsed .app-sidebar:is(:hover,:focus-within) .modules a,
body:not(.auth-mode).sidebar-collapsed .app-sidebar:is(:hover,:focus-within) #sidebar-bottom>a{width:100%;justify-content:flex-start;gap:10px}
.sidebar-profile{position:relative;border:0;padding:0;margin-top:6px}
.sidebar-profile>summary{display:flex;align-items:center;gap:10px;padding:8px;list-style:none;border-radius:10px;font-size:14px;cursor:pointer}
.sidebar-profile>summary::-webkit-details-marker{display:none}
.sidebar-profile>summary:hover{background:#e9ece9}
.profile-avatar{width:28px;height:28px;flex:none;display:grid;place-items:center;border-radius:50%;background:#dbe7e1;color:#32534a;font-size:13px;font-weight:600}
.profile-popover{position:absolute;left:calc(100% + 12px);bottom:0;width:290px;max-width:calc(100vw - 76px);padding:20px;background:#fff;border:1px solid #e2e5e3;border-radius:14px;box-shadow:0 8px 32px #00000016;z-index:40;color:#373a3c}
.profile-popover p{font-size:13px;overflow-wrap:anywhere;margin:6px 0 18px}
.profile-popover label{font-size:13px}.profile-popover a,.profile-popover button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:10px 8px!important;color:#373a3c;text-decoration:none;font-size:14px}
.profile-popover a:hover,.profile-popover button:hover{background:#f0f3f0;border-radius:8px}
body:not(.auth-mode).sidebar-collapsed .app-sidebar:is(:hover,:focus-within) .profile-popover{left:8px;bottom:54px;width:280px}
@media(prefers-reduced-motion:reduce){body:not(.auth-mode) .app-sidebar{transition:none}}

/* A quiet, focused starting point for the conversation with Mirr. */
.home-content.home-conversation{width:100%;max-width:680px;margin:clamp(48px,12vh,128px) auto 48px;color:#636361}
.home-conversation>h1{font-size:28px;line-height:1.3;font-weight:400;letter-spacing:-.7px;text-align:center;color:#636361;margin:0 0 12px}
main .home-conversation>.home-intro{max-width:480px;margin:0 auto 28px;text-align:center;font-size:14px;line-height:22px;font-weight:400;color:#636361}
.home-conversation>select{display:block;width:auto;max-width:100%;margin:0 auto 24px;padding:7px 28px 7px 12px;border:1px solid #e7e7e4;border-radius:8px;background:transparent;font:inherit;font-size:12px;color:#636361}
.home-chat-composer{position:relative;background:#fff;border:1px solid #e4e4e1;border-radius:18px;box-shadow:0 2px 6px #00000007;padding:0;margin:0;transition:border-color .15s,box-shadow .15s}
.home-chat-composer:focus-within{border-color:#b6c6c0;box-shadow:0 2px 10px #00000008}
.home-chat-composer textarea{display:block;box-sizing:border-box;width:100%;border:0;background:transparent;resize:none;height:112px;min-height:112px;max-height:240px;padding:17px 18px 46px;font:inherit;font-size:14px;line-height:22px;font-weight:400;color:#636361;border-radius:18px;outline:none}
.home-chat-composer textarea::placeholder{color:#636361;opacity:1}
.home-chat-composer button{position:absolute;right:12px;bottom:10px;width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:#18756d;color:white;font-size:21px;line-height:1}
.home-chat-composer button:disabled{opacity:1;background:#f2f3f0!important;color:#a4a5a0!important;cursor:default}
main .home-chat-status{font-size:12px;line-height:18px;color:#636361;margin:10px 0}
.home-chat-status:empty{display:none}
.home-conversation .home-choices{display:grid;gap:10px;margin-top:28px}
.home-conversation .home-choices[hidden]{display:none}
.home-conversation .home-action{display:flex;flex-direction:row;align-items:center;gap:15px;width:100%;min-height:68px;box-sizing:border-box;padding:13px 17px;text-align:left;border:1px solid #e5e5e1;border-radius:13px;background:transparent;margin:0;color:#636361;transition:background .15s,border-color .15s}
.home-conversation .home-action:hover{background:#f0f2ee;border-color:#ced8d2}
.home-conversation .home-action>svg{width:20px;height:20px;flex:none;color:#636361}
.home-conversation .home-choice-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.home-conversation .home-action strong{font-size:14px;line-height:20px;font-weight:500;color:#636361}
.home-conversation .home-action span{font-size:12px;line-height:18px;font-weight:400;color:#636361}
.home-conversation .home-explore{display:table;margin:22px auto 0;padding:7px 13px;border-radius:20px;background:#f0f2ee;color:#636361;font-size:12px;text-decoration:none}
.home-conversation .home-explore:hover{background:#e7ece6}
.home-chat-message{font-size:14px;line-height:23px;margin:24px 0;color:#636361;white-space:pre-wrap;overflow-wrap:anywhere}
main .home-chat-message p{margin:0;font-size:14px;line-height:23px;color:#636361;font-weight:400}
.home-chat-message.user{margin-left:auto;max-width:85%;width:fit-content;padding:10px 15px;border-radius:18px;background:#e5efe8}
.home-chat-message.assistant{border-top:1px solid #e6e8e3;padding-top:18px}
.home-thinking{color:#636361;font-size:13px}
.home-open-agent{display:inline-block;color:#636361;font-size:13px;margin:18px 0}
@media(max-width:650px){.home-content.home-conversation{margin-top:40px}.home-conversation>h1{font-size:24px}.home-conversation .home-action{padding:12px;gap:12px}main .home-conversation>.home-intro{font-size:13px}}
@media(prefers-reduced-motion:reduce){.home-conversation *{transition:none}}

/* Shared back-office typography across customer, admin and agent workspaces. */
body:not(.auth-mode){--text-heading:#1a1a1a;--text-body:#636361;color:var(--text-body);font-size:14px;line-height:22px}
body:not(.auth-mode) main :is(p,li,dd,dt,label,td,pre,input,textarea,select){color:var(--text-body)!important;font-size:14px;line-height:22px;font-weight:400}
body:not(.auth-mode) main :is(h1,h2,h3,h4,h5,h6){color:var(--text-heading)!important;letter-spacing:-.3px}
body:not(.auth-mode) main h1{font-size:26px;line-height:34px;font-weight:500}
body:not(.auth-mode) main :is(h2,h3){font-size:18px;line-height:26px;font-weight:500}
body:not(.auth-mode) main :is(h4,h5,h6){font-size:14px;line-height:22px;font-weight:500}
body:not(.auth-mode) main :is(summary,.home-action strong,.agent-card strong,.connector-heading strong){color:var(--text-heading)!important;font-size:14px;font-weight:500;line-height:22px}
body:not(.auth-mode) main :is(.muted,.module-description,.workspace-intro,.builder-caption,.builder-version-bar,.builder-conditions,.builder-trace,.builder-check,.home-intro,.home-action span,.home-thinking){color:var(--text-body)!important}
body:not(.auth-mode) main :is(small,.builder-caption,.builder-version-bar,.builder-trace,.builder-check){font-size:12px!important;line-height:18px}
body:not(.auth-mode) main :is(input,textarea)::placeholder{color:var(--text-body);opacity:1}
body:not(.auth-mode) .builder :is(.builder-message p,.builder-message li,.builder-left-content p,.builder-left-content li,.builder-panel p,.builder-panel li,.compact-composer textarea){font-size:14px;line-height:22px;color:var(--text-body)!important}
body:not(.auth-mode) .app-sidebar :is(.nav-label,.profile-popover){color:var(--text-body)}
body:not(.auth-mode) .home-conversation>.home-intro{font-size:14px;line-height:22px}
body:not(.auth-mode) .home-conversation .home-action span{font-size:12px;line-height:18px}
body:not(.auth-mode) .home-conversation .home-action strong{color:var(--text-heading);font-size:14px}
body:not(.auth-mode) .home-conversation>select{font-size:12px;line-height:18px}
@media(max-width:650px){body:not(.auth-mode) main h1{font-size:23px;line-height:31px}}

/* Role selection: one agent throughout the customer journey. */
.build-overview{display:grid;grid-template-columns:220px minmax(0,1fr);gap:12px;min-height:calc(100vh - 56px);margin:-16px -20px}
.build-role-sidebar{display:flex;flex-direction:column;padding:22px 14px 14px;border:1px solid #e6e6e2;background:#fafbf8;border-radius:20px;min-width:0}
body:not(.auth-mode) main .build-role-sidebar h2{font-size:21px;line-height:28px;margin:0 8px 24px;font-weight:600}
.build-role-sidebar select{width:100%;padding:11px 12px;border:1px solid #e3e3df;border-radius:9px;background:#fff}
.build-role-sidebar nav{display:grid;gap:5px;margin-top:16px}
.build-role-sidebar nav a{display:flex;align-items:center;gap:10px;padding:9px 10px;color:#636361;text-decoration:none;font-size:14px;border-radius:8px}
.build-role-sidebar nav a:hover{background:#eeeeea;color:#1a1a1a}
.build-role-sidebar svg{width:18px;height:18px;flex:none}
.build-setup-note{margin-top:auto;padding:14px 12px;background:white;border:1px solid #e7e7e2;border-radius:14px;box-shadow:0 2px 6px #00000006}
.build-setup-note strong{color:#1a1a1a;font-size:13px;font-weight:600}
body:not(.auth-mode) main .build-setup-note p{font-size:12px;line-height:18px;margin:6px 0 12px}
.build-setup-note a{display:block;text-align:center;border:1px solid #e5e5df;border-radius:18px;padding:5px 8px;color:#1a1a1a;text-decoration:none;font-size:12px;font-weight:500}
.build-role-canvas{padding:34px clamp(20px,3vw,52px) 22px;background:white;border:1px solid #e7e7e3;border-radius:20px;min-width:0}
.build-role-hero{text-align:center;max-width:670px;margin:0 auto 42px;padding:0;background:none;border:0;display:block}
.build-role-mark{font-size:36px;font-weight:750;letter-spacing:-2px;line-height:44px;color:#1a1a1a;margin-bottom:18px}
body:not(.auth-mode) main .build-role-hero h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(30px,3.1vw,46px);line-height:1.1;letter-spacing:-1px;font-weight:400;margin:0 auto 20px;max-width:640px;text-wrap:balance}
body:not(.auth-mode) main .build-role-hero p{font-size:14px;line-height:21px;max-width:570px;margin:0 auto;text-wrap:balance}
.build-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.build-role-card{padding:8px;border:1px solid #e6e6e2;border-radius:18px;display:flex;flex-direction:column;min-width:0;background:white}
.build-role-card[hidden]{display:none}
.role-preview{height:172px;border-radius:13px;overflow:hidden;position:relative;display:flex;align-items:flex-start;justify-content:center;padding:15px 18px 0;isolation:isolate}
.role-preview::before,.role-preview::after{content:'';position:absolute;inset:-70% -25%;border:28px solid #ffffff4a;border-radius:45%;transform:rotate(-35deg);z-index:-1}
.role-preview::after{inset:-30% -55%;border-width:20px;transform:rotate(35deg)}
.role-preview.service{background:linear-gradient(130deg,#f6af91,#ea7969 55%,#f7c4a6)}
.role-preview.sales{background:linear-gradient(140deg,#b4b9ff,#5e7397 60%,#a9b9ff)}
.role-preview.commerce{background:linear-gradient(135deg,#c6d65d,#bfd75d 30%,#24584e 31%,#1c5349 75%,#c8da68 76%)}
.role-preview-window{width:100%;max-width:215px;padding:10px;border-radius:10px 10px 0 0;background:#fff;box-shadow:0 6px 14px #00000018;font-size:9px;line-height:13px;color:#636361}
.role-preview-top{font-weight:600;color:#1a1a1a;border-bottom:1px solid #eee;padding-bottom:7px;margin-bottom:9px}
.preview-bubble{padding:7px;border-radius:7px;background:#f3f3f1;max-width:88%;margin:6px 0;font-size:9px}
.preview-bubble.customer{margin-left:auto;background:#333;color:white}
.preview-mini-title{font-weight:500;color:#1a1a1a;font-size:10px;margin:7px 0}
.preview-calendar{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;text-align:center;font-size:9px}.preview-calendar span{padding:3px;background:#f0f1f6;border-radius:3px}.preview-calendar span:nth-child(13){background:#617593;color:white}
.preview-mini-action{padding:6px;background:#222b38;color:white;text-align:center;border-radius:7px;font-size:8px;margin-top:8px}
.preview-products{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.preview-products>div{padding:8px 4px;background:#f2f2ef;border-radius:7px;text-align:center}.preview-products span{font-size:7px;line-height:9px;display:block;margin-top:10px}
.product-shape{height:48px;width:35px;margin:10px auto 0;background:#bbaa92;position:relative;border-radius:5px}.product-shape:before{content:'';position:absolute;left:9px;right:9px;top:-9px;height:16px;border:3px solid #9d8d77;border-radius:9px}.product-shape.bottle{width:20px;background:#6a857b;border-radius:7px}.product-shape.bottle:before{left:4px;right:4px;top:-6px;height:7px;border:0;border-radius:2px;background:#354c44}.product-shape.bag{width:42px;height:34px;margin-top:24px;background:#424d59;border-radius:7px}.product-shape.bag:before{border-color:#424d59}
.build-role-copy{padding:16px 9px 8px;display:flex;flex:1;flex-direction:column}.build-role-title{display:flex;gap:9px;align-items:center}
body:not(.auth-mode) main .build-role-title h2{font-family:Georgia,'Times New Roman',serif;font-size:25px;line-height:32px;font-weight:400;margin:0;letter-spacing:-.5px}
.role-icon{width:26px;height:26px;border-radius:7px;display:grid;place-items:center;color:white;flex:none}.role-icon svg{width:18px;height:18px}.role-icon.service{background:#d9794c}.role-icon.sales{background:#50899c}.role-icon.commerce{background:#8b9947}
body:not(.auth-mode) main .role-tagline{font-size:13px;margin:8px 0 18px}
.build-role-copy ul{border-top:1px dashed #deded8;padding:16px 0 0 16px;margin:0 0 20px;flex:1}
body:not(.auth-mode) main .build-role-copy li{font-size:12px;line-height:20px;padding:0}
.build-role-copy .role-start{align-self:flex-start;border:0;border-radius:18px;background:#232323!important;color:#fff!important;font-size:12px;font-weight:500;line-height:18px;padding:5px 12px;cursor:pointer}
.build-role-copy .role-start:hover{background:#454545!important}
.build-more-roles{display:flex;align-items:center;justify-content:center;gap:16px;padding:14px;border:1px solid #e7e7e3;border-radius:16px;margin-top:18px}.build-more-roles>span{font-size:30px;color:#be78ad}
body:not(.auth-mode) main .build-more-roles p{font-family:Georgia,'Times New Roman',serif;font-size:20px;color:#1a1a1a!important;margin:0}
.build-roles-back{border:0;background:transparent;color:#636361;padding:8px 0;font-size:13px}
@media(min-width:1600px){.role-preview{height:220px}.build-role-copy{padding:18px 14px 12px}.build-role-hero{margin-bottom:52px}}
@media(max-width:1100px){.build-overview{grid-template-columns:180px minmax(0,1fr)}.build-role-grid{grid-template-columns:1fr}.build-role-card{display:grid;grid-template-columns:210px minmax(0,1fr);gap:12px}.role-preview{height:100%;min-height:190px}.build-role-copy{padding:8px}.build-role-copy ul{margin-bottom:12px}.build-role-hero{margin-bottom:26px}}
@media(max-width:650px){.build-overview{display:block;margin:0}.build-role-sidebar{padding:14px;margin-bottom:12px}.build-role-sidebar nav{display:flex;flex-wrap:wrap;gap:0}.build-role-sidebar nav a{font-size:12px;padding:8px}.build-setup-note{display:none}.build-role-sidebar h2{margin-bottom:12px!important}.build-role-canvas{padding:26px 14px 16px}.build-role-card{display:flex}.role-preview{height:180px;min-height:0}.build-role-copy{padding:14px 8px}.build-more-roles{gap:10px}body:not(.auth-mode) main .build-more-roles p{font-size:17px}}

/* Persistent secondary navigation for the agent lifecycle and its resources. */
body:not(.auth-mode).workflow-mode main,body:not(.auth-mode).workflow-mode main:has(.builder:not([hidden])){padding-left:252px}
.workflow-sidebar{position:fixed;top:12px;bottom:12px;left:calc(var(--sidebar-width) + 12px);width:216px;z-index:10}
body:not(.auth-mode) main .workflow-sidebar h2{font-size:20px}
.workflow-mode .build-overview{display:block;min-height:calc(100vh - 40px);margin:-16px -20px -16px -8px}
.workflow-mode .build-role-canvas{min-height:calc(100vh - 24px)}
.workflow-sidebar nav a[aria-current=page]{background:#eeefeb;color:#1a1a1a;font-weight:500}
.workflow-sidebar .workflow-resources{border-top:1px solid #e5e5df;border-radius:0;margin-top:14px;padding-top:18px}
.build-role-picker{position:relative;padding:0;border:0;margin:0 0 8px}
.build-role-picker summary{display:flex;align-items:center;gap:9px;list-style:none;background:#fff;border:1px solid #e4e4df;border-radius:10px;padding:10px;cursor:pointer}
.build-role-picker summary::-webkit-details-marker{display:none}
.role-picker-symbol{display:grid;place-items:center;width:25px;height:25px;background:#262626;color:white;border-radius:6px}
.role-picker-chevron{margin-left:auto}
.role-picker-options{position:absolute;left:0;top:calc(100% + 6px);width:286px;max-width:calc(100vw - 88px);padding:6px;background:#fff;border:1px solid #e5e5df;border-radius:14px;box-shadow:0 8px 24px #00000012;z-index:12}
.role-picker-option{display:flex;align-items:center;gap:10px;width:100%;padding:11px 9px;border:0;border-radius:9px;background:transparent;text-align:left;color:#636361}
.role-picker-option:hover,.role-picker-option[aria-pressed=true]{background:#f2f3ef}
.role-picker-option>span:last-child{display:flex;flex-direction:column;gap:3px}
.role-picker-option strong{color:#1a1a1a;font-size:14px;font-weight:500}
.role-picker-option small{color:#636361;font-size:12px}
.role-icon.train{background:#262626}
body.auth-mode .workflow-sidebar{display:none}
body:not(.auth-mode) .app-sidebar .modules a[href="#build/new"] .nav-label{font-size:12px;line-height:17px;white-space:normal}
@media(max-width:1450px){.workflow-mode .builder-layout{grid-template-columns:1fr}.workflow-mode .builder-inspector .builder-panel{height:auto;max-height:none}}
@media(max-width:1100px){body:not(.auth-mode).workflow-mode main,body:not(.auth-mode).workflow-mode main:has(.builder:not([hidden])){padding-left:216px}.workflow-sidebar{width:184px}.workflow-mode .build-role-card{grid-template-columns:160px minmax(0,1fr)}}
@media(max-width:650px){body:not(.auth-mode).workflow-mode main,body:not(.auth-mode).workflow-mode main:has(.builder:not([hidden])){padding-left:14px}.workflow-sidebar{position:relative;inset:auto;width:100%;z-index:10}.workflow-mode .build-overview{margin:0}.workflow-mode .build-role-canvas{min-height:0}.workflow-sidebar .workflow-resources{border:0;margin:0;padding:8px}.build-role-picker{max-width:100%}}

body:not(.auth-mode) main .build-role-hero{background:transparent!important}
body:not(.auth-mode) main .workflow-sidebar{height:calc(100vh - 24px);max-height:none;overflow:visible}
@media(max-width:650px){body:not(.auth-mode) main .workflow-sidebar{height:auto}}

/* The primary rail and agent menu never expand side by side. */
body:not(.auth-mode):is(.workflow-mode,.nav-dismissed) .app-sidebar,
body:not(.auth-mode).sidebar-collapsed:is(.workflow-mode,.nav-dismissed) .app-sidebar:is(:hover,:focus-within){width:56px!important;box-shadow:none}
body:not(.auth-mode):is(.workflow-mode,.nav-dismissed) .app-sidebar .nav-label{display:none!important}
body:not(.auth-mode):is(.workflow-mode,.nav-dismissed) .app-sidebar :is(.modules a,#sidebar-bottom>a){width:44px!important;justify-content:center!important;gap:0!important}
body:not(.auth-mode).workflow-mode{--sidebar-width:56px!important}
body:not(.auth-mode).workflow-mode .sidebar-toggle{cursor:default}
body:not(.auth-mode).workflow-mode .app-sidebar .profile-popover{left:calc(100% + 12px)!important;bottom:0!important}

/* Profile actions retain their full width inside the collapsed navigation rail. */
.app-sidebar #sidebar-bottom .profile-popover{box-sizing:border-box;max-height:calc(100dvh - 32px);overflow-y:auto}
.app-sidebar #sidebar-bottom .profile-popover>strong{display:block;color:#1a1a1a;line-height:1.4}
.app-sidebar #sidebar-bottom .profile-popover>label{display:flex;flex-direction:column;gap:8px;margin:0 0 16px;color:#636361;line-height:1.4}
.app-sidebar #sidebar-bottom .profile-popover select{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:40px;margin:0;font:inherit}
.app-sidebar #sidebar-bottom .profile-popover>a,
.app-sidebar #sidebar-bottom .profile-popover>button{display:flex;box-sizing:border-box;align-items:center;justify-content:flex-start;width:100%;height:auto;min-height:40px;margin:2px 0;gap:8px;padding:10px 12px!important;font-size:14px;line-height:20px;white-space:normal;overflow-wrap:normal;color:#636361;border-radius:8px}
.app-sidebar #sidebar-bottom .profile-popover>button{margin-top:12px;border-top:1px solid #e2e5e3;border-radius:0 0 8px 8px}
.app-sidebar #sidebar-bottom .profile-popover :is(a,button,select):focus-visible{outline:2px solid #176e67;outline-offset:2px}

/* Operator and the editable agent share one persistent workspace. */
.operator-workspace{display:grid;grid-template-columns:minmax(330px,.9fr) minmax(540px,1.2fr);gap:24px;height:calc(100dvh - 56px);min-height:560px}
.operator-workspace .operator-conversation{height:100%;min-height:0;border:0;border-radius:0;background:transparent;overflow:visible}
.operator-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 4px 18px;background:none;border:0;flex-shrink:0}
.operator-header>strong{color:#1a1a1a;font-size:16px}.operator-context{position:relative;max-width:60%}.operator-context summary{cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 10px;border-radius:8px;background:#f0f2ef}
.operator-context-options{position:absolute;right:0;top:100%;margin-top:6px;background:white;border:1px solid var(--workspace-line);border-radius:12px;box-shadow:0 8px 25px #0001;padding:6px;z-index:10;width:260px;max-height:320px;overflow:auto}.operator-context-options button{display:block;width:100%;text-align:left;border:0;background:none;padding:10px;border-radius:7px;margin:0}.operator-context-options button:hover{background:#f2f4f1}
.operator-workspace .operator-messages{padding:20px 12px;flex:1;min-height:0;overflow:auto}.operator-workspace .builder-message small{display:block;margin-bottom:6px;font-weight:500;color:var(--workspace-accent)}
.operator-workspace .builder-composer{margin:0;border:1px solid var(--workspace-line);background:white;border-radius:20px;padding:12px 14px 36px;flex-shrink:0;position:relative}.operator-workspace .builder-composer textarea{background:none;border:0;box-shadow:none;min-height:56px;height:70px;padding:0;margin:0;resize:vertical}.operator-workspace .builder-composer button{margin:0;bottom:10px}.operator-workspace .operator-hint{font-size:11px!important;line-height:16px!important;text-align:center;margin:10px 6px 0}.operator-workspace .builder-status-slot{min-height:0;padding:0 8px 8px}.operator-workspace .builder-status-slot:empty{display:none}
.operator-canvas{display:flex;flex-direction:column;background:white;border:1px solid var(--workspace-line);border-radius:16px;min-width:0;overflow:hidden}.operator-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e9ece7;padding:10px 16px;background:#fafbf9}.operator-breadcrumb{font-size:12px;color:#68706b;overflow-wrap:anywhere}.operator-toolbar .builder-tabs{padding:0;border:0;gap:3px}.operator-toolbar .builder-tabs button{padding:7px 12px;font-weight:500;font-size:12px;white-space:nowrap}.operator-toolbar .builder-tabs button[aria-selected=true]{background:var(--workspace-soft);color:var(--workspace-accent)}
.operator-progress{padding:12px 18px;border-bottom:1px solid #edf0eb}.operator-progress progress{height:4px;width:100%;border:0;border-radius:4px;appearance:none;accent-color:var(--workspace-accent);display:block}.operator-progress progress::-webkit-progress-bar{background:#e9eeea;border-radius:4px}.operator-progress progress::-webkit-progress-value{background:var(--workspace-accent);border-radius:4px}.operator-progress nav{display:flex;justify-content:space-between;gap:4px;margin-top:7px}.operator-progress button{border:0;background:none;font-size:11px;padding:4px 2px;margin:0;color:#777}.operator-progress button.is-complete{color:var(--workspace-accent)}
.operator-canvas-body{display:flex;flex:1;min-height:0;min-width:0}.operator-workspace .operator-panel{flex:1;min-width:0;min-height:0;max-height:none;padding:22px;overflow:auto}.operator-outline{width:132px;flex-shrink:0;border-left:1px solid #edf0eb;background:#fafbf9;padding:20px 8px;overflow:auto}.operator-outline>strong{display:block;font-size:11px;color:#79827a;padding:0 10px 10px}.operator-outline button{display:block;width:100%;text-align:left;padding:8px 10px;margin:2px 0;border:0;border-radius:7px;background:none;font-size:12px}.operator-outline button[aria-current=page]{background:#eaf0e9;color:var(--workspace-accent)}
.operator-panel h2{margin:0 0 8px}.operator-panel .operator-form{display:grid;gap:14px;margin-top:22px}.operator-form>label,.operator-publication>label{display:flex;flex-direction:column;gap:6px}.operator-form :is(input,select,textarea),.operator-publication input{width:100%;border:1px solid var(--workspace-line);border-radius:9px;background:white;padding:9px 11px;margin:0;font-family:inherit}.operator-form textarea{resize:vertical;min-height:78px}.operator-form-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.operator-workspace .builder-primary{background:var(--workspace-accent);border-color:var(--workspace-accent);color:white;margin:0;padding:9px 14px}.operator-form-actions button{margin:0}.operator-panel>button{margin:8px 8px 0 0}.operator-workspace button:disabled{cursor:not-allowed}.operator-shopify{border:1px solid var(--workspace-line);border-radius:12px;padding:14px;margin:18px 0;background:#f6faf7}.operator-shopify p{margin:8px 0}.operator-link{display:inline-block;margin:10px 12px 0 0;color:var(--workspace-accent);font-size:12px}.operator-publication{display:grid;gap:12px;margin-top:20px}.operator-publication .operator-link{margin:0}.operator-panel .knowledge-header{margin-top:20px}.operator-panel .company-notice{padding:12px}.operator-panel .shared-source-row{gap:8px;flex-wrap:wrap}.operator-panel pre{max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap}.operator-panel .test-composer{margin-top:18px}
.agent-start{max-width:680px;margin:8vh auto;padding:28px}.agent-start p{margin:14px 0}.agent-resume{display:block;margin:8px 0}.home-agent-choice{display:flex;gap:8px;flex-wrap:wrap;align-items:center;border:1px solid var(--workspace-line);border-radius:12px;padding:12px;background:white}.home-agent-choice select{flex:1;min-width:180px}.home-operator-question{margin:20px 0 10px}.home-conversation .home-choice-symbol{font-size:22px!important;color:var(--workspace-accent)!important;min-width:24px;text-align:center}.home-agent-choice button{font-size:12px;padding:8px 12px}
.operator-journey{border:1px solid var(--workspace-line);border-radius:10px;padding:14px;margin:12px 0}.operator-journey label{display:flex;flex-direction:column;gap:5px;margin:10px 0}.operator-journey input{width:100%}
@media(max-width:1100px){.operator-workspace{grid-template-columns:minmax(280px,1fr) minmax(420px,1.25fr);gap:14px}.operator-outline{width:110px;padding:16px 4px}.operator-workspace .operator-panel{padding:16px}.operator-toolbar{padding:10px}.operator-breadcrumb{width:100%}}
@media(max-width:850px){.operator-workspace{display:flex;flex-direction:column;height:auto;min-height:0;gap:24px}.operator-workspace .operator-conversation{height:520px;min-height:360px}.operator-canvas{min-height:600px;max-height:85dvh}.operator-outline{width:108px}.operator-progress{padding:10px}.operator-progress button{font-size:10px}.operator-workspace .operator-panel{padding:14px}}

/* Readable assistant responses; user messages retain their original line breaks. */
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose{font-size:14px;line-height:1.75;overflow-wrap:anywhere;min-width:0}
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose p{white-space:normal;margin:0 0 1em;line-height:1.75}
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose :is(h3,h4,h5,h6){font-family:inherit;font-size:1.1em;font-weight:650;line-height:1.4;margin:1.4em 0 .6em;letter-spacing:normal}
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose :is(ul,ol){padding-left:1.6em;margin:.65em 0 1.1em}
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose li{margin:.4em 0;line-height:1.75}
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose li :is(ul,ol){margin:.4em 0}
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose strong{font-weight:650}
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose blockquote{margin:1em 0;padding:.2em 1em;border-left:3px solid #cdd8d4}
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose code{font-family:ui-monospace,monospace;font-size:.9em;background:#eef1ef;padding:.15em .35em;border-radius:4px}
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose pre{max-width:100%;overflow:auto;background:#f1f3f2;padding:14px 16px;border-radius:10px;white-space:pre;margin:1em 0}
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose pre code{padding:0;background:none}
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose a{color:var(--workspace-accent);text-decoration:underline;text-underline-offset:3px}
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose hr{border:0;border-top:1px solid #e0e5e2;margin:1.4em 0}
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose>:first-child{margin-top:0}
body:not(.auth-mode) :is(.builder,.home-chat-log) .builder-prose>:last-child{margin-bottom:0}

/* Separate the scrollable text from controls so long drafts never run underneath them. */
.operator-workspace .builder-composer.compact-composer{overflow:hidden}
.operator-workspace .builder-composer.compact-composer textarea{
 box-sizing:border-box;width:100%;max-width:100%;min-height:50px!important;max-height:240px;height:auto;
 padding:14px 18px!important;margin:0!important;resize:none;overflow-y:auto;
 border-radius:0;font-family:inherit;line-height:22px;
}
.operator-workspace .operator-composer-controls{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:4px 12px 12px}
.operator-workspace .operator-composer-controls :is(.compact-send,.attach-button){
 position:static;display:flex;align-items:center;justify-content:center;box-sizing:border-box;
 width:40px;height:40px;min-width:40px;min-height:40px;padding:0!important;margin:0!important;
 border-radius:50%;font-size:24px;line-height:1;
}

/* Focus belongs to the whole composer, not an internal textarea border. */
body:not(.auth-mode) .operator-workspace .builder-composer.compact-composer textarea{height: auto;outline:none!important;border:0!important;box-shadow:none!important;}
.operator-workspace .builder-composer.compact-composer:focus-within{border-color:var(--workspace-accent);box-shadow:0 0 0 1px var(--workspace-accent);}

.agent-record-fields{margin:20px 0;display:grid;gap:0}.agent-record-fields>div{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:12px;align-items:start;padding:14px 0;border-bottom:1px solid var(--workspace-line)}.agent-record-fields dt{font-size:12px;color:#66756f}.agent-record-fields dd{margin:0;overflow-wrap:anywhere}.agent-record-fields .operator-link{margin:0}.agent-record-section{padding:18px 0;border-bottom:1px solid var(--workspace-line)}.agent-record-section h3{margin:0 0 10px}.agent-record-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.operator-canvas-body:not(:has(.operator-outline)){grid-template-columns:minmax(0,1fr)}.agent-record .operator-shopify{margin-top:0}.agent-record-fields+section{padding-top:0}
