/* Shared broker workspace: keep desktop composition, adapt controls and records for touch. */
.mint-workspace-nav,.mint-workspace-more,.mint-mapper-tabs,.mint-mapper-hint{display:none}
.mint-fit-button{display:none}
.mint-record-filters{display:none}
.mint-details-toggle{display:none}
.mint-mobile-inline,.mint-mobile-action-label{display:none}
@media(max-width:767px) and (hover:none){
 body[data-broker-page] .mint-records :is(.actions-cell,.action-buttons) .action-btn:hover{background:transparent!important;color:var(--text-primary,#344c49)!important}
 body[data-broker-page] .mint-records :is(.actions-cell,.action-buttons) .action-btn:is(.delete,.danger):hover{color:#dc2626!important}
 body[data-broker-page] .mint-records :is(.actions-cell,.action-buttons) .action-btn:active{background:var(--brand-light,#e2f3ef)!important}
 body[data-broker-page] :is(.company-card,.doc-card):hover{transform:none!important;box-shadow:none!important}
 body[data-broker-page=companies] .company-card .url-copy-btn{opacity:1;min-width:44px;min-height:44px}
}
@media(max-width:360px){body[data-broker-page] .mint-workspace-nav :is(a,button){font-size:10px}}
body[data-broker-page] .cobra-detail-panel:not(.open){visibility:hidden}
@media(max-width:1199px){
 body[data-broker-page=dashboard] .sent-dropdown{left:auto;right:0;transform:translateY(-8px);max-width:calc(100vw - 32px);min-width:min(280px,calc(100vw - 32px))}
 body[data-broker-page=dashboard] .sent-dropdown.open{transform:translateY(0)}
}
@media(max-width:1199px){
 body[data-broker-page]:has(.mint-workspace-nav) .topbar-nav{display:none!important}
 body[data-broker-page]:has(.mint-workspace-nav)::after{content:"";display:block;height:calc(88px + env(safe-area-inset-bottom))}
 body[data-broker-page]:has(.mint-workspace-nav) .bottom-nav,body[data-broker-page]:has(.mint-workspace-nav) #mobileBottomNav{display:none!important}
 body[data-broker-page] .mint-workspace-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:1000;min-height:64px;padding:4px 8px calc(4px + env(safe-area-inset-bottom));background:var(--bg-card,#fff);border-top:1px solid var(--border-color,#e5e7eb)}
 body[data-broker-page] .mint-workspace-nav :is(a,button){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:56px;padding:4px 0;border:0;background:transparent;color:var(--text-secondary,#667085);font:500 11px MintGothic,system-ui;text-decoration:none;cursor:pointer}
 body[data-broker-page] .mint-workspace-nav i{font-size:19px}
 body[data-broker-page] .mint-workspace-nav .active{color:var(--brand-primary,#1f8f88);background:var(--brand-light,#eef8f6);border-radius:10px}
 body[data-broker-page] .mint-workspace-more:not([hidden]){display:grid;grid-template-columns:1fr 1fr;gap:4px;position:fixed;bottom:calc(76px + env(safe-area-inset-bottom));left:12px;right:12px;max-height:65dvh;overflow:auto;z-index:1001;background:var(--bg-card,#fff);border:1px solid var(--border-color,#e5e7eb);border-radius:14px;padding:10px;box-shadow:0 8px 30px #142b3026}
 body[data-broker-page] .mint-workspace-more a{min-height:48px;display:flex;align-items:center;gap:10px;padding:10px;color:var(--text-primary,#25313c);font-size:14px;text-decoration:none;border-radius:8px}
 body[data-broker-page] .mint-workspace-more a:hover{background:#eef8f6}
}
@media(max-width:767px){
 body[data-broker-page]{min-width:0}
 body[data-broker-page] :is(main,.main,.content,.page-header-inner,.page-header-left,.page-title-content,.controls,.search-box,.form-group,.form-field){min-width:0;max-width:100%;box-sizing:border-box}
 body[data-broker-page] :is(.main,.content){padding-left:16px!important;padding-right:16px!important}
 body[data-broker-page] .main>.content{padding-left:0!important;padding-right:0!important}
 body[data-broker-page] .page-header-inner{padding-left:0!important;padding-right:0!important}
 body[data-broker-page] :is(.page-header-inner,.controls,.toolbar,.filters,.filter-bar,.page-header-actions,.header-actions,.modal-footer,.form-actions,.pagination,.pagination-right){flex-wrap:wrap;gap:12px}
 body[data-broker-page] .controls>.search-box{width:100%;flex:1 0 100%;max-width:none}
 body[data-broker-page] .search-box input{width:100%;min-width:0}
 body[data-broker-page] :is(.view-toggle,.filter-tabs){max-width:100%;flex-wrap:wrap;gap:6px}
 body[data-broker-page] :is(.filter-tabs,.tabs,.tab-nav,.tabs-nav,.docs-subtab-track,.settings-tabs){overflow-x:auto;flex-wrap:nowrap;max-width:100%;scrollbar-width:thin}
 body[data-broker-page] :is(.filter-tab,.tab-btn,.tab,.docs-subtab){flex-shrink:0;white-space:nowrap}
 body[data-broker-page] :is(.page-title,h1){overflow-wrap:anywhere}
 body[data-broker-page] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){max-width:100%;min-width:0;font-size:16px!important}
 body[data-broker-page] :is(.btn,.action-btn,.filter-tab,.tab-btn,.view-btn,.controls-add,.text-drops-btn,.icon-btn,.back-btn,.tool-btn){min-height:44px}
 body[data-broker-page] :is(button[role=switch],.toggle-switch,.switch,.em-switch,.switch-track,.toggle-track){flex-shrink:0}
 body[data-broker-page] button[role=switch]{padding:0}
 body[data-broker-page] :is(.form-row,.form-grid,.settings-grid,.profile-grid,.detail-grid,.two-col,.two-columns){grid-template-columns:minmax(0,1fr)!important}
 body[data-broker-page] :is(.form-row,.form-grid)>*{min-width:0}
 body[data-broker-page] :is(.modal-overlay,.modal-backdrop){padding:12px!important;box-sizing:border-box;z-index:1200}
 body[data-broker-page] :is(.modal,.modal-content,.modal-dialog,.modal-box){width:100%!important;max-width:100%!important;max-height:calc(100dvh - 32px)!important;margin:0!important;box-sizing:border-box;overflow:auto}
 body[data-broker-page] :is(.modal-header,.modal-body,.modal-footer){padding:16px!important}
 body[data-broker-page] .modal-footer>*{flex:1 1 auto}
 body[data-broker-page] .mobile-table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 body[data-broker-page] .mint-records{display:block!important;min-width:0!important;width:100%!important;background:transparent}
 body[data-broker-page] .mint-records thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body[data-broker-page] .mint-records tbody{display:grid;gap:12px;width:100%}
 body[data-broker-page] .mint-records tbody tr{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid var(--border-color,#e5e7eb);border-radius:12px;padding:14px;background:var(--bg-card,#fff);width:100%;box-sizing:border-box}
 body[data-broker-page] .mint-records td{display:block;width:auto!important;max-width:100%;border:0!important;padding:8px 0!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere}
 body[data-broker-page] .mint-records td[data-label]:not(:first-child)::before{content:attr(data-label);display:block;font-size:11px;line-height:1.5;color:var(--text-secondary,#667085);font-weight:600;margin-bottom:4px}
 body[data-broker-page] .mint-records td>*{max-width:100%}
 /* Desktop row-hover paint must not fragment a mobile record into cell tiles. */
 body[data-broker-page] .mint-records tbody tr>td,
 body[data-broker-page] .mint-records tbody tr:hover>td{background:transparent!important}
 body[data-broker-page] .mint-records :is(a,button):focus-visible{outline:2px solid var(--brand-primary,#1f8f88)!important;outline-offset:2px}
 body[data-broker-page] .mint-records :is(a,button){-webkit-tap-highlight-color:transparent}
 body[data-broker-page] .mint-records :is(.action-btn,.url-copy-btn):active{background:var(--brand-light,#e2f3ef)!important;color:var(--brand-primary,#1f8f88)!important;transform:none!important}
 /* Summaries are composed around identity, useful facts, then named actions. */
 body[data-broker-page] .mint-company-list tbody{gap:12px}
 body[data-broker-page] .mint-company-list tbody tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px;row-gap:12px;padding:16px}
 body[data-broker-page] .mint-company-list td{padding:0!important}
 body[data-broker-page] .mint-company-list td[data-mobile-field=identity]{grid-column:1/-1;order:0}
 body[data-broker-page] .mint-company-list td[data-mobile-field=people]{order:1}
 body[data-broker-page] .mint-company-list td[data-mobile-field=dates]{order:2}
 body[data-broker-page] .mint-company-list td[data-mobile-field=progress]{grid-column:1/-1;order:3}
 body[data-broker-page] .mint-company-list td[data-mobile-field=actions]{grid-column:1/-1;order:5;border-top:1px solid var(--border-color,#e5e7eb)!important;padding-top:8px!important}
 body[data-broker-page] .mint-company-list td:not([data-mobile-field]){grid-column:1/-1;order:4}
 body[data-broker-page] .mint-company-list td:is([data-mobile-field=progress],[data-mobile-field=actions])::before{display:none!important}
 body[data-broker-page] .mint-company-list .company-cell{gap:12px;align-items:center}
 body[data-broker-page] .mint-company-list .company-icon{width:40px;height:40px;flex-shrink:0;background:var(--brand-light,#eef8f6)}
 body[data-broker-page] .mint-company-list .company-name{font-size:15px;line-height:1.4;font-weight:650;color:var(--text-primary,#172b29)}
 body[data-broker-page] .mint-company-list .url-wrap{max-width:100%;margin-top:3px;gap:4px}
 body[data-broker-page] .mint-company-list .url-text{font-size:11px;max-width:none;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body[data-broker-page] .mint-company-list .url-copy-btn{opacity:1;visibility:visible;min-width:44px;min-height:44px;flex-shrink:0}
 body[data-broker-page] .mint-company-list .enrollment-cell{display:flex;flex-direction:row;gap:12px;align-items:center}
 body[data-broker-page] .mint-company-list .enrollment-pct{font-size:12px;font-weight:600;white-space:nowrap;width:auto;flex-shrink:0}
 body[data-broker-page] .mint-company-list .enrollment-bar{flex:1;min-width:0;width:auto;height:6px}
 body[data-broker-page] .mint-mobile-inline{display:inline;font-weight:400;color:var(--text-secondary,#667085)}
 body[data-broker-page] .mint-records :is(.actions-cell,.action-buttons){display:flex;gap:6px;justify-content:flex-start;flex-wrap:wrap}
 body[data-broker-page] .mint-records :is(.actions-cell,.action-buttons) .action-btn{width:auto;flex:1;min-width:0;min-height:44px;height:auto;padding:8px 4px;font-size:12px;gap:6px;border-radius:8px;background:var(--bg-secondary,#f5f8f8);color:var(--text-primary,#344c49);text-decoration:none}
 body[data-broker-page] .mint-records .actions-cell .action-btn i{font-size:14px}
 body[data-broker-page] .mint-mobile-action-label{display:inline;font-size:12px;font-weight:600}
 body[data-broker-page] .mint-records .actions-cell .action-btn::before,body[data-broker-page] .mint-records .actions-cell .action-btn::after{display:none}
 body[data-broker-page] .mint-enrollment-list tbody tr{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;row-gap:8px;padding:16px}
 body[data-broker-page] .mint-enrollment-list td{padding:0!important}
 body[data-broker-page] .mint-enrollment-list td:first-child{grid-column:1/-1;padding-bottom:8px!important}
 body[data-broker-page] .mint-enrollment-list td:last-child{grid-column:1/-1;border-top:1px solid var(--border-color,#e5e7eb)!important;margin-top:4px;padding-top:8px!important}
 body[data-broker-page] .mint-enrollment-list td:last-child::before{display:none}
 body[data-broker-page] .mint-enrollment-list td[colspan]{grid-column:1/-1}
 body[data-broker-page] .mint-summary-list tbody tr{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:16px}
 body[data-broker-page] .mint-summary-list td{padding:0!important;min-width:0}
 body[data-broker-page] .mint-summary-list td:first-child,body[data-broker-page] .mint-summary-list td[colspan]{grid-column:1/-1}
 body[data-broker-page] .mint-summary-list td:last-child:not([colspan]){grid-column:1/-1;border-top:1px solid var(--border-color,#e5e7eb)!important;padding-top:8px!important}
 body[data-broker-page] .mint-summary-list td:last-child::before{display:none!important}
 body[data-broker-page] .mint-plan-list td:nth-child(3){display:none}
 body[data-broker-page] .mint-plan-list :is(.plan-name-cell,.plan-name-cell>div){min-width:0}
 body[data-broker-page] .mint-plan-list .plan-name{font-size:15px;line-height:1.4;white-space:normal}
 body[data-broker-page=library] .docs-list:has(.mint-records){border:0;background:transparent;overflow:visible}
 body[data-broker-page=library] .mint-document-list :is(.doc-cell,.doc-info,.doc-name-wrap){min-width:0}
 body[data-broker-page=library] .mint-document-list .doc-name{white-space:normal;line-height:1.4;font-size:15px}
 body[data-broker-page=library] .mint-document-list .doc-rename-btn{opacity:1;min-width:40px;min-height:40px;flex-shrink:0}
 body[data-broker-page=library] .row-dropdown.open{position:fixed;inset:auto 12px calc(84px + env(safe-area-inset-bottom));width:auto;min-width:0;max-height:60dvh;overflow:auto;z-index:1100}
 body[data-broker-page=library] .row-dropdown-item{min-height:44px;box-sizing:border-box}
 body[data-broker-page=library] .controls{display:flex;gap:8px;padding:16px 0}
 body[data-broker-page=library] .controls>.search-box{order:0;flex:1 0 100%}
 body[data-broker-page=library] .search-box input{opacity:1;flex:1;width:100%!important;height:44px;padding:0 10px!important}
 body[data-broker-page=library] .search-box .search-icon{height:44px;width:40px;flex-shrink:0;border-right:0;border-radius:6px 0 0 6px}
 body[data-broker-page=library] .controls>.filter-select{flex:1 1 40%;width:auto;min-height:44px}
 body[data-broker-page=library] .controls>.view-toggle{margin-left:0}
 body[data-broker-page=library] .controls>:is(.btn-primary,.btn-forms-library){min-height:44px;margin-left:0;flex:1 1 auto;justify-content:center}
 body[data-broker-page=dashboard] .companies-grid{gap:10px;margin-bottom:28px}
 body[data-broker-page=dashboard] .company-card{min-height:0;padding:16px;gap:6px}
 body[data-broker-page=dashboard] .company-card-top{align-items:center;gap:12px;overflow:visible}
 body[data-broker-page=dashboard] .company-logo{width:40px;height:40px}
 body[data-broker-page=dashboard] .company-name{white-space:normal;line-height:1.4;font-size:15px}
 body[data-broker-page=dashboard] .company-card-bottom{margin:0 0 0 52px;padding:0;border:0}
 body[data-broker-page=dashboard] .employee-count{font-size:12px}
 body[data-broker-page=dashboard] :is(.onboard-actions,.onboard-edit-btn){opacity:1}
 body[data-broker-page=dashboard] .onboard-actions .action-link{min-height:44px;font-size:13px;color:var(--text-secondary,#64748b)}
 body[data-broker-page] :is(.companies-table,.enrollments-table,.plans-table):has(.mint-records){background:transparent;border:0;box-shadow:none;overflow:visible}
 body[data-broker-page] .mobile-table-scroll:has(>.mint-records){overflow:visible}
 body[data-broker-page] .mint-record-filters{display:inline-flex;margin-bottom:12px}
 body[data-broker-page] .mint-company-roster.mint-filters-open thead{position:relative;width:auto;height:auto;clip-path:none;overflow:visible;display:block;margin-bottom:12px}
 body[data-broker-page] .mint-company-roster.mint-filters-open thead tr{display:flex;flex-wrap:wrap;gap:4px}
 body[data-broker-page] .mint-company-roster.mint-filters-open th{display:block;width:auto!important;position:relative;padding:4px}
 body[data-broker-page] .mint-company-roster .col-filter-dropdown{position:fixed!important;top:25vh!important;left:16px!important;right:16px!important;max-height:60dvh;overflow:auto;width:auto!important;z-index:1100}
 body[data-broker-page] .mint-company-roster tbody tr{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;position:relative}
 body[data-broker-page] .mint-company-roster td:nth-child(1):not([colspan]){position:absolute;top:16px;left:14px}
 body[data-broker-page] .mint-company-roster td:nth-child(2){grid-column:1/-1;padding-left:32px!important;font-weight:600}
 body[data-broker-page] .mint-company-roster td:nth-child(2)::before,body[data-broker-page] .mint-company-roster td:nth-child(3)::before,body[data-broker-page] .mint-company-roster td:last-child::before{display:none!important}
 body[data-broker-page] .mint-company-roster tr:not(.mint-details-open) .mint-roster-detail{display:none}
 body[data-broker-page] .mint-company-roster td:nth-child(3){grid-column:1/-1;padding-left:32px!important}
 body[data-broker-page] .mint-company-roster td:last-child{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
 body[data-broker-page] .mint-company-roster td:last-child>div{flex:1;min-width:0;flex-wrap:wrap;justify-content:flex-end!important}
 body[data-broker-page] .mint-company-roster .mint-details-toggle{display:inline-flex;min-height:44px;align-items:center;padding:8px;border:0;background:transparent;color:var(--brand-primary,#1f8f88);font:600 12px MintGothic,system-ui;cursor:pointer}
 body[data-broker-page] .mint-company-roster .mint-icon-btn{min-width:max-content!important;max-width:none!important;width:auto!important;min-height:44px;height:auto!important;gap:6px;padding:8px!important;flex-shrink:0}
 body[data-broker-page] .mint-company-roster .mint-mobile-action-label{white-space:nowrap}
 body[data-broker-page] #tab-employees #employeesTable .mint-icon-btn{width:auto!important;min-width:max-content!important;min-height:44px!important;height:auto!important;padding:8px!important}
 body[data-broker-page] #tab-employees #employeesTable button{min-height:44px!important}
 body[data-broker-page] #employeesTable .mint-icon-btn::before,body[data-broker-page] #employeesTable .mint-icon-btn::after{display:none!important}
 body[data-broker-page] .mint-company-roster tr:not(.mint-details-open) .mint-roster-secondary-action{display:none!important}
 body[data-broker-page] .mint-company-roster td[colspan]{grid-column:1/-1}
 body[data-broker-page] :is(#employeesPagination,#emailsPagination){position:static!important;display:flex;flex-wrap:wrap;gap:12px;justify-content:center;padding:16px 0!important;box-shadow:none;max-width:100%;box-sizing:border-box}
 body[data-broker-page] .table-container:has(.mint-company-roster){overflow:visible;background:transparent;border:0}
 body[data-broker-page] .mint-records :is(.company-info,.company-name,.company-details,.plan-info,.plan-name){min-width:0;white-space:normal;overflow-wrap:anywhere}
 body[data-broker-page] :is(.pagination,.pagination-right){position:static!important;width:auto!important;justify-content:center;max-width:100%}
 body[data-broker-page] :is(.pagination button,.pagination select){min-height:40px}
 body[data-broker-page=dashboard] :is(.stats-grid,.metrics-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
 body[data-broker-page=dashboard] .stat-card{min-width:0;margin:0!important;padding:14px!important}
 body[data-broker-page=plans] #planTypeFilter{width:100%;max-width:100%;flex:1 1 100%}
 body[data-broker-page=enrollments] .filter-tabs{flex:1 0 100%;width:100%;overflow-x:auto!important}
 body[data-broker-page=all-text-drops] .filter-tabs{overflow-x:auto!important;width:100%}
 body[data-broker-page=settings] :is(.slug-edit-row,.slug-input-prefix,.er-apps-actions){flex-wrap:wrap;min-width:0;max-width:100%;gap:8px}
 body[data-broker-page=settings] .slug-input-wrap{min-width:0;flex:1 1 100%}
 body[data-broker-page=settings] .slug-input-prefix input{flex:1 1 100%;width:100%}
 body[data-broker-page=settings] #saveErAppsBtn{margin-left:0!important}
 body[data-broker-page=settings] .settings-layout{flex-direction:column;min-height:0}
 body[data-broker-page=settings] .settings-sidebar{display:block;position:static;width:100%;height:auto;padding:12px 16px 0;box-sizing:border-box;border-right:0;opacity:1;transform:none;overflow:visible}
 body[data-broker-page=settings] .sidebar-header{padding:8px 0 12px;margin-bottom:8px}
 body[data-broker-page=settings] .sidebar-nav{display:flex;gap:4px;overflow-x:auto;max-width:100%;padding:0}
 body[data-broker-page=settings] .sidebar-nav-item{flex-shrink:0}
 body[data-broker-page=settings] .sidebar-nav-link{min-height:44px;white-space:nowrap;padding:12px}
 body[data-broker-page=settings] .sidebar-nav-divider{display:none}
 body[data-broker-page=settings] .settings-main{width:100%;min-width:0;box-sizing:border-box;padding:20px 16px 32px}
 body[data-broker-page=settings] .settings-section:not(.active){display:none}
 body[data-broker-page=text-drops] .layout{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:16px}
 body[data-broker-page=text-drops] :is(.compose-area,.preview-area,.page-header-right,.company-switcher){min-width:0;max-width:100%}
 body[data-broker-page=text-drops] .page-header-right{flex-wrap:wrap;width:100%}
 body[data-broker-page=text-drops] .company-switcher{width:100%}
 body[data-broker-page=text-drops] .preview-area{order:2}
 body[data-broker-page] .cobra-detail-panel:not(.open){visibility:hidden}
 body[data-broker-page] .cobra-detail-panel.open{max-width:100%;height:100dvh;padding-bottom:76px;box-sizing:border-box}
 body[data-broker-page=census-import] .progress-bar{padding:14px 12px;gap:4px;max-width:100%;box-sizing:border-box}
 body[data-broker-page=onboarding] .drawer-close{min-width:44px;min-height:44px}
 body[data-broker-page=onboarding] .wrap{padding:20px 16px 40px}
 body[data-broker-page=onboarding] .session-card{padding:16px}
 body[data-broker-page=onboarding] .header-title{white-space:normal;overflow-wrap:anywhere}
 body[data-broker-page=onboarding] .card-header{align-items:flex-start}
 body[data-broker-page=onboarding] .card-actions{flex-wrap:wrap;justify-content:stretch}
 body[data-broker-page=onboarding] .card-actions>.btn{flex:1 1 100%;justify-content:center;min-width:0;box-sizing:border-box}
 body[data-broker-page=onboarding] .header-sub{overflow-wrap:anywhere}
 body[data-broker-page=census-import] .header{height:auto;flex-wrap:wrap;padding:12px 16px;gap:12px}
 body[data-broker-page=census-import] .header-right{width:100%;min-width:0;justify-content:flex-start}
 body[data-broker-page=census-import] .company-badge{max-width:100%;box-sizing:border-box}
 body[data-broker-page=census-import] .company-name{white-space:normal;overflow-wrap:anywhere}
 body[data-broker-page=census-import] .step{min-width:0;flex:1}
 body[data-broker-page=census-import] .step{flex-direction:column;gap:6px}
 body[data-broker-page=census-import] .step-circle{width:28px;height:28px;min-width:28px;flex-shrink:0}
 body[data-broker-page=census-import] .step-label{font-size:10px;white-space:normal;text-align:center}
 body[data-broker-page=census-import] .step-connector{width:8px;min-width:4px;flex:0 1 8px}
 body[data-broker-page=census-import] .template-callout{flex-wrap:wrap;padding:16px}
 body[data-broker-page=census-import] .template-callout>*{min-width:0;max-width:100%}
 body[data-broker-page=census-import] .template-callout-content{flex:1 1 calc(100% - 64px)}
 body[data-broker-page=census-import] .template-callout-btn{width:100%;justify-content:center;min-height:44px;box-sizing:border-box}
 body[data-broker-page=census-import] .template-callout button{width:100%;white-space:normal}
 body[data-broker-page=form-test] :is(.topbar,.topbar-right){height:auto;flex-wrap:wrap;gap:8px}
 body[data-broker-page=form-test] .topbar{position:relative;padding:12px}
 body[data-broker-page=form-test] .test-topbar{position:relative;height:auto;flex-wrap:wrap;padding:12px;gap:8px}
 body[data-broker-page=form-test] :is(.test-topbar-left,.test-topbar-right){max-width:100%;flex-wrap:wrap;gap:8px}
 body[data-broker-page=form-test] .test-topbar-center{display:none}
 body[data-broker-page=form-test] .test-content{margin-top:0;padding:12px;min-width:0}
 body[data-broker-page=form-test] .form-preview{min-width:0;max-width:100%}
 body[data-broker-page=form-test] .form-preview-body{overflow:auto;max-width:100%;justify-content:flex-start}
 body[data-broker-page=form-test] .pdf-container{flex-shrink:0;max-width:none}
 body[data-broker-page=emails] .docs-subtab-bar-inner{flex-wrap:wrap!important;align-items:stretch!important;gap:12px;overflow:visible!important}
 body[data-broker-page=emails] .docs-subtab-track{width:100%;flex:1 0 100%;order:2;overflow-x:auto!important}
 body[data-broker-page=emails] .docs-subtab-bar-inner>.page-header-right{margin:0!important;order:1;position:static!important}
 body[data-broker-page=emails] .page-header-right{width:100%;flex-wrap:wrap}
 body[data-broker-page=emails] .company-switcher{min-width:0;flex:1 0 100%;width:100%}
 body[data-broker-page=emails] .company-switcher-btn{max-width:100%;width:100%;min-height:52px}
 body[data-broker-page=emails] .switcher-name{white-space:nowrap}
 body[data-broker-page=emails] .em-switch{min-height:24px!important;padding:0!important}
 body[data-broker-page=company] #tab-emails{width:100%!important;max-width:100%;margin-left:0!important;margin-right:0!important;left:auto!important;transform:none!important}
}
@media(max-width:1100px){body[data-broker-page=email-editor] .ed-right:not(.open){visibility:hidden}body[data-broker-page=email-editor] .ed-right.open{visibility:visible}}
/* Header backgrounds own the full band; spacing belongs inside the band and content.
   The shared navbar's main padding otherwise turns these headers into inset cards. */
@media(max-width:1199px){
 body[data-broker-page] .main:has(> :is(.page-header,.company-header,.plan-header,.employee-header)){
  padding-top:0!important;padding-left:0!important;padding-right:0!important;max-width:none;
 }
 body[data-broker-page] .main>:is(.page-header,.company-header,.plan-header,.employee-header){
  width:100%;max-width:100%;box-sizing:border-box;margin:0;padding:24px 16px!important;
 }
 body[data-broker-page] .main>:is(.page-header,.company-header,.plan-header,.employee-header)>:is(.page-header-inner,.company-header-inner,.plan-header-inner,.employee-header-inner){padding-left:0!important;padding-right:0!important}
 body[data-broker-page] .main>:is(.page-header,.company-header,.plan-header,.employee-header):has(:is(.tabs,.plans-tabs,.company-tabs,.plan-tabs,.employee-tabs)){padding-bottom:0!important}
 body[data-broker-page] .main:has(> :is(.page-header,.company-header,.plan-header,.employee-header))>.content{padding-left:16px!important;padding-right:16px!important}
 body[data-broker-page=emails]:not(.em-embed) .main>.docs-subtab-bar{width:100%;max-width:100%;box-sizing:border-box;margin-left:0!important;margin-right:0!important;padding-left:16px!important;padding-right:16px!important}
}
/* The mapping workspace uses one full-width panel at a time on touch screens. */
@media(max-width:1023px){
 body[data-broker-page=form-mapper]{height:100dvh;overflow:hidden}
 body[data-broker-page=form-mapper] .mapper-topbar{position:relative;height:auto;flex-wrap:wrap;padding:8px;gap:6px}
 body[data-broker-page=form-mapper] .mapper-topbar-left{width:100%;min-width:0}
 body[data-broker-page=form-mapper] .doc-title-wrap{min-width:0;flex:1}
 body[data-broker-page=form-mapper] .doc-title{max-width:none;min-width:0;flex:1}
 body[data-broker-page=form-mapper] .mapper-topbar-center{position:static;transform:none;max-width:100%;overflow:auto;flex:1 0 100%}
 body[data-broker-page=form-mapper] .mapper-topbar-right{max-width:100%;width:100%;gap:4px;overflow-x:auto}
 body[data-broker-page=form-mapper] :is(.tool-btn,.icon-btn,.back-btn){min-width:40px;min-height:40px;flex-shrink:0}
 body[data-broker-page=form-mapper] .mint-fit-button{display:inline-flex}
 body[data-broker-page=form-mapper] .action-btn{white-space:nowrap;padding:8px;font-size:12px;min-height:40px;flex-shrink:0}
 body[data-broker-page=form-mapper] .mint-mapper-tabs{display:flex;gap:4px;padding:6px 8px;background:#fff;border-bottom:1px solid #e5e7eb}
 body[data-broker-page=form-mapper] .mint-mapper-tabs button{flex:1;min-height:44px;border:0;border-radius:8px;background:#f3f4f6;color:#4b5563;font:600 13px MintGothic,system-ui}
 body[data-broker-page=form-mapper] .mint-mapper-tabs button[aria-pressed=true]{background:#e2f3ef;color:#176c66}
 body[data-broker-page=form-mapper] .mint-mapper-hint:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;background:#e2f3ef;font-size:12px}
 body[data-broker-page=form-mapper] .mint-mapper-hint button{min-height:40px;border:0;background:transparent;color:inherit}
 body[data-broker-page=form-mapper] .mapper-layout{margin:0;height:var(--mint-mapper-height,60dvh);display:block;min-width:0}
 body[data-broker-page=form-mapper] :is(.fields-panel,.pdf-area,.properties-panel-wrapper){width:100%;height:100%;box-sizing:border-box;display:none;overflow:auto}
 body[data-broker-page=form-mapper][data-mapper-panel=fields] .fields-panel{display:flex}
 body[data-broker-page=form-mapper][data-mapper-panel=document] .pdf-area{display:flex;justify-content:flex-start;padding:12px}
 body[data-broker-page=form-mapper][data-mapper-panel=properties] .properties-panel-wrapper{display:block}
 body[data-broker-page=form-mapper] .pdf-pages-wrapper{padding:0;min-width:min-content;margin:0 auto}
 body[data-broker-page=form-mapper] .properties-panel-wrapper .properties-panel{width:100%;display:block;opacity:1;height:auto}
 body[data-broker-page=form-mapper] .properties-toggle{display:none}
 body[data-broker-page=form-mapper] .field-item{min-height:48px}
 body[data-broker-page=form-mapper] :is(input,select){min-height:40px;font-size:16px}
}
