/* Functional Stitch workspace: loaded last to replace legacy layout overrides. */
body.stitch-theme #app.inbox-focus{display:grid;grid-template-columns:220px minmax(0,1fr);height:100dvh;background:var(--st-bg)}
body.stitch-theme #app.inbox-focus .sidebar{display:flex;width:auto;background:var(--st-surface-lowest);padding:12px;color:var(--st-text)}
body.stitch-theme #app.inbox-focus .sidebar nav button{justify-content:flex-start;font-size:12px;border-radius:8px;color:var(--st-muted);padding:11px 9px}
body.stitch-theme #app.inbox-focus .sidebar nav button.active{background:var(--st-surface-high);color:var(--st-primary)}
body.stitch-theme #app.inbox-focus .sidebar-bottom .org-chip>div:nth-child(2),body.stitch-theme #app.inbox-focus #logoutBtn{display:block}
body.stitch-theme #app.inbox-focus .main{height:100dvh;background:var(--st-bg);min-width:0}
body.stitch-theme #app.inbox-focus .topbar{display:flex;height:68px;padding:0 20px}
body.stitch-theme #app.inbox-focus .view{height:calc(100dvh - 68px);padding:0}
body.stitch-theme #app.inbox-focus .pass3-layout.walo-layout{height:100%!important;display:grid!important;grid-template-columns:280px minmax(340px,1fr) 320px!important;overflow:hidden}
body.stitch-theme .pass3-layout .chat-pane{min-width:0;height:100%!important;overflow:hidden}
body.stitch-theme .pass3-layout .conversation-list{height:100%!important;min-height:0}
body.stitch-theme .pass3-layout .customer-drawer{display:block!important;position:relative!important;inset:auto;width:auto;min-width:0;box-shadow:none;height:100%;overflow-y:auto;padding:16px}
body.stitch-theme .pass3-layout .customer-drawer:before{content:'CLIENTE · 360';color:var(--st-primary)}
body.stitch-theme .pass3-layout .drawer-close,body.stitch-theme .pass3-layout #customerPanelBtn{display:none!important}
body.stitch-theme .pass3-layout .conv-item{background:var(--st-surface-low)!important}
body.stitch-theme .pass3-layout .conv-item.active{background:var(--st-surface-high)!important;box-shadow:inset 3px 0 var(--st-primary)}
body.stitch-theme .pass3-layout .mini-pill{background:var(--st-surface-high);color:var(--st-muted)}
body.stitch-theme .pass3-layout .mini-pill.active{background:#134638;color:var(--st-primary);border-color:#28644e}
body.stitch-theme .pass3-layout .walo-chat-head{flex-wrap:wrap;gap:8px}
body.stitch-theme .pass3-layout .walo-chat-actions{flex-wrap:wrap;justify-content:flex-start}
body.stitch-theme .pass3-layout .window-pill{display:inline-flex}
body.stitch-theme .pass3-layout .composer-main{flex-wrap:wrap}
body.stitch-theme .pass3-layout .composer-main>input[name=body]{min-width:140px;flex:1 1 180px}
body.stitch-theme .pass3-layout .quick-action-grid button,body.stitch-theme .pass3-layout .catalog-mini{background:var(--st-surface);color:var(--st-text);border-color:var(--line)}
.customer-contact-details{display:grid;grid-template-columns:auto 1fr;gap:8px;font-size:12px;margin:16px 0}.customer-contact-details dt{color:var(--st-muted)}.customer-contact-details dd{margin:0;text-align:right;overflow-wrap:anywhere}
.customer-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:18px 0 12px}.customer-tabs button{flex:1;padding:10px 2px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--st-muted);font-size:11px;cursor:pointer}.customer-tabs button[aria-selected=true]{color:var(--st-primary);border-bottom-color:var(--st-primary)}
[role=tabpanel][hidden]{display:none!important}body.stitch-theme button:focus-visible,body.stitch-theme [role=button]:focus-visible{outline:2px solid var(--st-primary);outline-offset:2px}
@media(max-width:1350px){body.stitch-theme #app.inbox-focus{grid-template-columns:64px minmax(0,1fr)}body.stitch-theme #app.inbox-focus .sidebar{padding:8px 4px}body.stitch-theme #app.inbox-focus .sidebar nav button{font-size:0;justify-content:center}body.stitch-theme #app.inbox-focus .sidebar nav button span{font-size:18px}body.stitch-theme #app.inbox-focus .sidebar-logo{width:46px;height:auto}body.stitch-theme #app.inbox-focus .sidebar-bottom .org-chip>div:nth-child(2){display:none}body.stitch-theme #app.inbox-focus .pass3-layout.walo-layout{grid-template-columns:260px minmax(300px,1fr) 290px!important}}
@media(max-width:1100px){body.stitch-theme #app.inbox-focus .pass3-layout.walo-layout{grid-template-columns:280px minmax(0,1fr)!important}body.stitch-theme .pass3-layout .customer-drawer{display:none!important;position:absolute!important;right:0;top:0;bottom:0;width:min(360px,100%);z-index:40}body.stitch-theme .pass3-layout .customer-drawer.open{display:block!important}body.stitch-theme .pass3-layout .drawer-close,body.stitch-theme .pass3-layout #customerPanelBtn{display:block!important}}
@media(max-width:880px){body.stitch-theme #app.inbox-focus{grid-template-columns:52px minmax(0,1fr)}body.stitch-theme #app.inbox-focus .topbar{height:60px;padding:0 8px}body.stitch-theme #app.inbox-focus .topbar h2{font-size:14px}body.stitch-theme #app.inbox-focus .top-actions .stitch-api-pill,body.stitch-theme #app.inbox-focus #quickAdd{display:none}body.stitch-theme #app.inbox-focus .view{height:calc(100dvh - 60px)}body.stitch-theme #app.inbox-focus .pass3-layout.walo-layout{display:block!important}body.stitch-theme .pass3-layout .conversation-list{height:100%!important}body.stitch-theme .pass3-layout .chat-pane{display:none!important}body.stitch-theme .pass3-layout.chat-open .conversation-list{display:none!important}body.stitch-theme .pass3-layout.chat-open .chat-pane{display:flex!important;height:100%!important}body.stitch-theme .pass3-layout .chat-back{display:block!important}body.stitch-theme .pass3-layout .composer-main>input[name=body]{flex-basis:100%!important;order:-1!important}body.stitch-theme .pass3-layout .customer-drawer{width:100%}body.stitch-theme .sidebar-logo{max-width:40px}body.stitch-theme #app.inbox-focus #logoutBtn{font-size:10px;padding:4px}}

body.stitch-theme #app .inbox-search{background:var(--st-surface-lowest)!important;color:var(--st-text)!important}
body.stitch-theme #app .walo-messages .bubble.contact{background:var(--st-surface-high)!important;color:var(--st-text)!important;border:1px solid var(--line)!important}
body.stitch-theme #app .walo-messages .bubble.agent{background:#064a36!important;color:#eafff6!important}
body.stitch-theme #app .workspace-title{color:var(--st-muted)!important}body.stitch-theme #app .org-chip{gap:8px;align-items:center}body.stitch-theme #app .org-chip>div:last-child{min-width:0}body.stitch-theme #app .org-chip small{display:block;overflow-wrap:anywhere}body.stitch-theme #app .org-chip .avatar{flex:0 0 32px}
