/* The approved blue workspace, extended to lists and actions.
   Type: title 24 / section 17 / content 13 / meta 12px.
   Spacing: 4, 8, 12, 16px. Controls: 36px desktop, 44px mobile.
   Keep evidence text, native controls, permissions and event handlers intact. */
:root{--control:36px;--workspace-control:36px;--workspace-font:13px}
body{font-size:13px;line-height:1.6}
body main h1{font-size:24px;line-height:1.4}
body main h2{font-size:17px;line-height:1.5;margin-bottom:12px}
body main h3{font-size:15px;line-height:1.5;margin-bottom:10px}
body main p{margin-top:6px;margin-bottom:12px}
body main small,body main .muted{font-size:12px;line-height:1.6}
body .heading{margin:18px 0 12px;gap:12px}
body .heading p{margin:4px 0 0}
body .panel{padding:16px;box-shadow:none}
body .business-content{margin-top:16px}
body .ui-task-page,body .ux-page{padding:0}
body .ui-task-table,body .ux-card{padding:16px}
body .role-scope{padding:8px 12px;margin-top:12px;gap:8px;font-size:12px}
body nav{margin-top:20px}
body nav button{font-size:14px;padding:8px 12px;margin:3px 0}
body :is(main,dialog) button:not(.ac-workbench button):not(.ac-page-heading button){font-size:13px!important;line-height:1.5;height:auto!important;min-height:var(--workspace-control)!important;padding:7px 12px;border-radius:6px}
body :is(main,dialog) :is(input:not([type=checkbox]):not([type=radio]),select,textarea):not(.ac-workbench :is(input,select,textarea)):not(.business-line-control select){font-size:13px!important;line-height:1.5}
body :is(main,dialog) :is(input:not([type=checkbox]):not([type=radio]),select):not(.ac-workbench :is(input,select)):not(.business-line-control select){min-height:var(--workspace-control)!important}
body :is(main,dialog) label{font-size:12px;line-height:1.5;margin-bottom:12px}
body label :is(input,select,textarea){margin-top:6px}
body :is(.row,.b-toolbar,.ux-footer,.ui-context-actions,.ui-footer-actions,.ui-source-actions,.sales-detail-nav){gap:8px}
body :is(.b-tabs,.ux-insight-tabs){gap:12px;margin-top:12px;margin-bottom:12px}
body :is(.b-tabs,.ux-insight-tabs) button{padding:7px 10px}
body :is(.ui-context-actions,.ui-footer-actions){padding:8px 0;margin-top:12px;margin-bottom:12px}
body :is(.ux-footer,.sales-bulk-bar,.source-workspace-bulk,.ui-source-actions){padding:10px 12px;gap:8px;box-shadow:none;border-radius:8px;font-size:12px}
body :is(.sales-bulk-bar,.source-workspace-bulk){margin:12px 0;position:static}
body .source-workspace-bulk>label{display:flex;align-items:center;gap:6px;margin:0}
body .source-workspace-bulk>label input{margin:0;width:70px;padding:7px 8px}
body .source-workspace-bulk>span:first-child{margin-right:auto;white-space:nowrap}
body .page-source-groups{gap:8px;margin-bottom:10px}
body .page-source-groups button{min-width:0}
body .page-source-filter-summary{font-size:12px;margin-bottom:10px}
body .tablewrap{border-radius:8px;scrollbar-gutter:stable}
body main table{font-size:13px}
body main table :is(th,td){padding:10px 12px;line-height:1.55;vertical-align:middle}
body main table th{font-size:12px;font-weight:600}
body main table td{font-size:13px}
body main table td :is(p,small){margin:0 0 4px}
body main table td small{font-size:12px}
body main table td button{padding:5px 8px;margin:2px 4px 2px 0;white-space:nowrap}
body main table td button:last-child{margin-right:0}
body .sales-table table{min-width:820px}
body .ui-task-table table{min-width:960px}
body .ui-task-table th:first-child{min-width:150px}
body .ui-task-table th:last-child{min-width:224px}
body #membersPanel table th:last-child{min-width:230px}
body .source-workspace-table :is(th,td){padding:10px 10px;vertical-align:top}
body .source-workspace-table .source-value{line-height:1.55}
body :is(.b-status,.tag,.b-platform){font-size:12px;line-height:1.4;padding:3px 7px}
body .b-platform{min-width:54px;font-size:11px}
body .metric-grid{gap:12px;margin:12px 0 16px}
body .metric-card:nth-child(n){padding:14px 16px;min-height:76px}
body .metric-card:before{display:none}
body .metric-card small{font-size:12px}
body .metric-card strong{font-size:24px;margin-top:4px}
body .ux-lead-metrics{gap:12px;margin-bottom:12px}
body .ux-lead-metrics>div{padding:12px 14px}
body .role-empty,body .b-empty{padding:20px 16px;font-size:13px}
body .ui-notifications .ui-notification-row{padding:12px 14px;gap:8px;line-height:1.6}
body .ui-notifications>section{padding-bottom:16px;margin-bottom:16px}
body .ui-notifications .ui-notification-row>p{font-size:13px}
body .role-version-card{padding:14px 16px!important;font-size:13px;line-height:1.6}
body .role-version-card>p:first-child{font-size:14px}
body :is(.setup-navigation,.setup-guide){padding:12px 14px;border-radius:8px;box-shadow:none}
body .setup-guide-intro strong{font-size:16px}
body .setup-guide :is(p,.setup-guide-checklist){font-size:13px}
body .setup-step-buttons{gap:8px}
body .memberforms,body .ux-two,body .ux-main-side{gap:16px}
body .b-rule-editor>form,body .memberforms .panel{padding:16px}
body fieldset{padding:12px 14px;margin-bottom:16px}
body legend{font-size:13px}
body .b-rule-editor form>.ux-field-group{padding:14px;gap:12px}
body .ux-drawer{padding:20px}
body dialog{padding:20px}
body .list-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 0;margin:0;font-size:12px;min-height:0}
body .list-pagination>label{display:flex;align-items:center;gap:6px;margin:0;font-size:12px}
body .list-pagination>span{margin-right:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
body .list-pagination :is(input,select,button){box-sizing:border-box;height:var(--workspace-control)!important;min-height:var(--workspace-control)!important;font-size:13px!important;margin:0!important;padding:7px 10px}
body .list-pagination select{width:84px}
body .list-pagination input{width:64px}
body #detail.layout-b .sales-detail-nav button{font-size:13px}
body #detail.layout-b .detail-action-column label{font-size:12px;margin:6px 0}
body #detail.layout-b .detail-action-column select{font-size:13px;height:36px;min-height:36px}
body #detail.layout-b .detail-action-column h3{font-size:17px}
body #detail.layout-b .ui-evidence>h3,body #detail.layout-b .detail-history>summary,body #detail.layout-b .reference-ownership>summary{font-size:16px}
body #detail.layout-b #comment{font-size:15px;line-height:1.65}
body #detail.layout-b .follow #note{font-size:14px!important}
body #detail.layout-b .layout-b-summary-meta dd{font-size:13px}
body #detail.layout-b .reference-title h2{font-size:20px}
body #detail.layout-b .layout-b-tools :is(a,button){font-size:13px;min-height:36px;padding:7px 10px}
@media(max-width:600px){
 :root{--workspace-control:44px;--control:44px}
 body main h1{font-size:22px}
 body :is(.panel,.ux-card,.ui-task-table){padding:12px}
 body .ux-page,body .ui-task-page{padding:0}
 body nav button{min-height:44px;height:auto;padding:10px 12px}
 body :is(main,dialog) button{min-width:44px}
 body main table :is(th,td){padding:8px 10px}
 body .list-pagination{justify-content:flex-start;gap:8px}
 body .list-pagination>span{flex:1;white-space:normal}
 body .list-pagination input{flex:1;max-width:90px;min-width:64px}
 body .source-workspace-bulk>span:first-child{flex-basis:100%}
 body .source-workspace-bulk>label{min-height:44px}
 body #detail.layout-b .detail-action-column select,body #detail.layout-b .layout-b-tools a{min-height:44px;height:auto}
 body .ux-comments .comment-filter-help{width:44px}
}
/* Settings share the same rhythm, with a visible phase and a real next action. */
body .settings-create .ux-main-side{display:block}
body .settings-create-intro{padding:14px 16px;margin-bottom:16px;border:1px solid #dbe7f6;border-radius:8px;background:#f7faff}
body .settings-create-intro strong{font-size:15px}
body .settings-create-intro p{font-size:12px;margin:4px 0 0;color:#617896}
body .settings-create-phases{display:flex;gap:8px;list-style:none;padding:0;margin:0 0 12px}
body .settings-create-phases li{padding:7px 12px;border-radius:6px;background:#eef4fc;font-size:12px;color:#617896}
body .settings-create-phases li:first-child{background:#1677ff;color:white}
body .settings-create .task-create-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
body .settings-create .task-create-form>label:first-child,body .settings-create .task-create-form>:not(label){grid-column:1/-1}
body .settings-create .task-create-form>label{display:flex;align-items:center;flex-wrap:wrap;gap:6px;line-height:24px;margin:0}
body .settings-create .task-create-form>label :is(input,select){flex-basis:100%;width:100%;margin-top:0}
body .settings-create .task-create-form>label:has(select){display:grid;grid-template-columns:minmax(0,1fr) 24px;grid-template-rows:24px auto;gap:6px}
body .settings-create .task-create-form>label select{grid-column:1/-1;grid-row:2}
body .settings-create .task-create-form>label .setting-help-trigger{grid-column:2;grid-row:1}
body .settings-page .setting-help-trigger{flex:none;width:24px;height:24px!important;min-height:24px!important;min-width:24px!important;line-height:1!important;padding:0;margin-left:auto;border-radius:50%}
body .settings-page .setup-guide{position:static;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;background:#f7faff}
body .settings-page .setup-guide-intro p{margin:4px 0 0;font-size:12px}
body .settings-page .settings-task-name{display:block;color:#617896;font-size:12px;margin-top:4px}
body .settings-page .settings-phases{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;padding-bottom:10px;margin:0;border-bottom:1px solid #dbe7f6}
body .settings-page .settings-phases .simple-step-current{font-size:12px;align-self:center}
body .settings-page .setup-guide-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
body .settings-page .setup-guide-actions .primary{order:3}
body .settings-page .setup-guide-checklist{grid-column:1/-1;margin:0;padding-top:8px;border-top:1px solid #dbe7f6}
body .settings-page .setup-guide-checklist summary{font-size:12px;cursor:pointer}
body .settings-page .setup-guide-checklist p{margin:4px 0;font-size:12px}
body .settings-page .simple-rule-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px!important;padding:0;border:0;background:transparent;max-width:none}
body .settings-page .settings-field-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:12px 14px;margin:0;border:1px solid #dbe7f6;border-radius:8px;min-width:0;background:white}
body .settings-page .settings-field-group legend{font-size:13px;padding:0 6px}
body .settings-page .settings-field-group>label{margin:0;min-width:0}
body .settings-page .settings-field-group>label :is(input,select){width:100%}
body .settings-page .settings-field-group>:is(p,.simple-recipients){grid-column:1/-1}
body .settings-page .settings-field-group>p{font-size:12px;margin:0;color:#617896}
body .settings-page .simple-recipients{padding:10px 12px;margin:0;border:0;background:#f7faff}
body .settings-page .simple-recipients label{margin:4px 12px 4px 0}
body .settings-page .settings-more{grid-column:1/-1;border:1px solid #dbe7f6;border-radius:8px;background:#f7faff;margin:0;min-width:0}
body .settings-page .settings-more>summary{cursor:pointer;font-size:12px;padding:9px 12px;line-height:1.6;min-height:36px;box-sizing:border-box;overflow-wrap:anywhere}
body .settings-page .settings-more>.settings-field-group{margin:0 12px 12px}
body .settings-page .simple-impact{padding:10px 12px;font-size:12px;margin:0}
body .settings-page .settings-saved{margin-top:12px}
body .settings-page .settings-saved .simple-saved{border:0;padding:12px;margin:0}
body .settings-action-bar{position:sticky;bottom:0;z-index:4;display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:white;border-top:1px solid #dbe7f6;padding:12px 0;margin-top:8px;grid-column:1/-1}
body .settings-action-bar .primary{margin-left:auto;order:2}
body .settings-action-bar small{order:3;flex-basis:100%;font-size:12px;color:#617896;margin:0}
body #detail.settings-detail .settings-next-hint{grid-column:1/-1;box-sizing:border-box;width:100%;font-size:12px;line-height:1.6;padding:8px 10px;margin:8px 0 12px;background:#f0f6ff;border-radius:6px;color:#496586}
body #detail.settings-detail .detail-action-column h3{margin-bottom:8px}
body #detail.settings-detail .sales-save-state{font-size:12px}
body .settings-page .b-rule-editor{grid-template-columns:minmax(0,1fr)}
body .settings-page .b-rule-editor>form{max-width:none}
body .settings-page .ux-main-side{grid-template-columns:minmax(0,1fr) minmax(320px,.8fr)}
@media(max-width:1100px){body .settings-page .ux-main-side{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 body .settings-page .setup-guide{position:static;grid-template-columns:minmax(0,1fr)}
 body .settings-page .setup-guide-actions{justify-content:flex-start}
 body .settings-page .setup-guide-actions .primary{margin-left:auto}
 body .settings-page .settings-phases{gap:6px}
 body .settings-page .settings-phases button{flex:1;padding:7px 8px;white-space:normal}
}
@media(max-width:600px){
 body .settings-page .setting-help-trigger{width:44px;height:44px!important;min-height:44px!important;min-width:44px!important}
 body .settings-create .task-create-form>label:has(select){grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:44px auto}
 body .settings-create .task-create-form,body .settings-page .settings-field-group{grid-template-columns:minmax(0,1fr)}
 body .settings-create-phases{gap:6px}
 body .settings-create-phases li{padding:8px;flex:1;text-align:center}
 body .settings-page .settings-more>summary{min-height:44px;padding:12px}
 body .settings-action-bar{position:static}
 body .settings-action-bar>button{flex:1}
}
