/* Shared workflow and touch layout. Desktop retains the two-pane inbox. */
.mobile-topbar,.mobile-back{display:none}.lead-steps{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.lead-steps a{background:#fff6cf;border:1px solid #e2c65e;color:#2a2a28;padding:10px 14px;margin:0}.save-note{margin-top:16px;border-top:1px solid #eee;padding-top:12px}.save-note summary{font-size:14px}.customer-card summary{line-height:1.7}.customer-card .notice{margin-top:14px}.customer-card p{overflow-wrap:anywhere}.nav-shade{position:fixed;inset:0;width:100%;height:100%;background:#0008;border:0;border-radius:0;z-index:99}.paper-handle,.asset-handle{touch-action:none}.two-cols .reply-box{margin:12px 0}.two-cols .thread{padding:0}.lead-steps a:focus-visible{outline:3px solid #ddac00}.paper-pages,.pdf-pages{min-width:0}fieldset{min-width:0}img{max-width:100%}
@media(max-width:900px){
 .mobile-topbar{position:sticky;top:0;z-index:90;display:flex;justify-content:space-between;align-items:center;padding:8px 14px;background:#202223;color:#ffd334;min-height:60px}.mobile-topbar a{color:#ffd334;font-weight:800;letter-spacing:.06em}.mobile-topbar button{background:#303334;color:#fff;border-color:#555;padding:6px 12px}
 .sidebar{position:fixed!important;inset:0 auto 0 0!important;width:min(310px,86vw)!important;height:100dvh;z-index:100;transform:translateX(-105%);transition:transform .18s ease;padding:20px!important;display:flex!important;overflow-y:auto}.nav-open .sidebar{transform:translateX(0)}body.nav-open{overflow:hidden}.sidebar nav{display:block!important}.sidebar nav a{font-size:16px!important;padding:10px 12px!important}.sidebar .account{display:block!important;margin-top:18px;padding:12px 0}.sidebar .account a{margin-top:8px}.sidebar .brand-sub{display:block!important}
 .with-nav,body:has(.inbox-layout) .with-nav{margin:0!important;padding:16px!important;min-width:0;min-height:calc(100dvh - 60px)}.workspace-top{margin-bottom:12px}header{flex-wrap:wrap;gap:12px}h1{font-size:1.6rem;overflow-wrap:anywhere}.two-cols,.team-grid,.form-grid,.grid-form,.profile-cards,.paper-layout,.print-workspace{grid-template-columns:minmax(0,1fr)!important}.panel{padding:16px;margin:14px 0}input,select,textarea{font-size:16px;max-width:100%}button,.button{min-height:44px;white-space:normal}label{min-width:0}.actions{gap:8px}.actions>*{max-width:100%}pre,code{white-space:pre-wrap;overflow-wrap:anywhere}
 .inbox-layout{display:block;min-height:45vh}.inbox-layout .inbox-list{max-height:none;border:0}.inbox-layout .conversation{display:none;max-height:none}.inbox-layout.has-selection .inbox-list{display:none}.inbox-layout.has-selection .conversation{display:block}.mobile-back{display:inline-flex;margin:12px}.inbox-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}.inbox-tabs a{white-space:nowrap;flex-shrink:0}.inbox-search{width:100%;max-width:none;flex-basis:100%;order:3}.queue-filters{display:flex;flex-wrap:wrap}.queue-filters label{flex:1 1 140px;min-width:0}.row-head{flex-wrap:wrap;gap:4px}.inbox-row{padding:16px}.conversation-actions{display:flex;flex-wrap:wrap;gap:8px}.conversation-head{padding:16px}.reply-box{margin:12px;padding:14px}.thread{padding:0 12px}.message,.thread .message{padding:12px}.pre{overflow-wrap:anywhere}.lead-steps{display:grid;grid-template-columns:1fr 1fr}.lead-steps a{font-size:14px}.mail-status{margin:12px}.editor-bottom{flex-wrap:wrap}.custom-deadline{flex-wrap:wrap}
 .paper-controls,.placement-controls{position:static!important;max-height:none!important}.paper-page,.pdf-page{width:100%!important;max-width:100%!important}.paper-toolbar,.document-savebar{position:sticky;top:60px;z-index:30;flex-wrap:wrap;padding:10px;background:#fff9df;border:1px solid #e6d590}.paper-toolbar span{flex-basis:100%;font-size:12px}.paper-toolbar .button{font-size:13px;padding:8px}.paper-background,.pdf-page>img{width:100%}.table-wrap{max-width:100%;overflow-x:auto}.product-picker{min-width:0}.product-pick-row{grid-template-columns:minmax(0,1fr) auto!important}.copilot-layout,.agent-layout,.chat-layout{grid-template-columns:minmax(0,1fr)!important}.agent-status{flex-wrap:wrap}.agent-composer{position:static!important}.agent-messages,.chat-messages{max-height:60dvh}.paper-handle{font-size:12px;min-height:36px}
}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}
@media(max-width:900px){.queue-filters select{font-size:16px;min-height:44px;min-width:0}.queue-filters button,.conversation-actions .button,.ai-toolbar button{min-height:44px}.picker-result{flex-wrap:wrap}.picker-result>div{flex-basis:65%}.picker-filters{grid-template-columns:minmax(0,1fr) 80px}.picker-filters>label:first-child{grid-column:1/-1}.reply-box textarea[name=body]{font-size:16px}.workspace-top .button{min-height:44px}.inbox-list{min-height:0}.agent-history{white-space:nowrap}.agent-history h2{display:none}.agent-history .agent-thread{white-space:normal}.agent-history{max-height:95px;padding:8px}.copilot-layout,.agent-conversation{min-height:0}#agent-feed{max-height:none;min-height:200px}.agent-composer .agent-send>button{flex:1;min-width:110px}}
@media(max-width:900px){body .document-savebar{top:60px}.print-workspace .pdf-page{touch-action:pan-y}.inbox-layout .conversation-head .conversation-actions .button{min-height:44px}.paper-toolbar{scroll-margin-top:65px}}
