/* 1.2.0: task-first role workspace, alongside the established CRM components. */
.topbar{padding:20px 28px;min-height:96px}.topbar h1{font-size:calc(24px * var(--app-font-scale,1));line-height:1.3}.page-kicker{display:none}.topbar p{font-size:calc(13px * var(--app-font-scale,1));margin-top:6px}.content{padding:24px 28px}.sidebar .brand{padding-top:20px;padding-bottom:20px}.sidebar .nav-btn{min-height:42px}.sidebar .nav-section-label{font-size:12px;margin-top:17px}.mobile-bottom-nav{display:none}
.role-home,.role-function-section,.role-business,.role-cost-workspace,.role-intro{font-size:calc(14px * var(--app-font-scale,1));line-height:1.55}
.role-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.role-intro h2{font-size:calc(21px * var(--app-font-scale,1));margin:0;color:#172033}.role-intro p{margin:5px 0 0;color:#5b6678;font-size:calc(13px * var(--app-font-scale,1))}.role-intro>.actions{flex-shrink:0}
.role-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border:1px solid #d5dce5;border-radius:8px;margin-bottom:22px;padding:17px 0}.role-metrics>div{min-width:0;padding:0 20px;border-right:1px solid #e4e9ef}.role-metrics>div:last-child{border:0}.role-metrics span{color:#5b6678;font-size:13px;display:block}.role-metrics strong{font-size:calc(28px * var(--app-font-scale,1));line-height:1.3;display:block;margin-top:5px;font-variant-numeric:tabular-nums;color:#172033}.role-metrics small{font-size:12px;font-weight:400;color:#5b6678;margin-left:6px}
.role-home-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(240px,1fr);align-items:start;gap:20px}.role-panel{margin-bottom:18px;min-width:0}.role-panel .panel-head{padding:15px 18px}.role-panel .panel-title{font-size:16px;font-weight:600}.role-panel .panel-body{padding:18px}.role-task-tabs{padding:12px 18px;border-bottom:1px solid #e4e9ef;display:flex;gap:8px;flex-wrap:wrap}.role-task{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:12px;padding:17px 18px;align-items:center;border-bottom:1px solid #e4e9ef}.role-task:last-child{border:0}.role-task-icon{width:34px;height:34px;border-radius:7px;background:#f5f7fa;display:flex;align-items:center;justify-content:center}.role-task-icon svg{width:18px;height:18px;stroke-width:1.75}.role-task-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.role-task-title strong{font-size:14px}.role-task p{font-size:12px;color:#5b6678;margin:5px 0 0;overflow-wrap:anywhere}.role-task .btn{white-space:nowrap}.role-event{padding:0 0 15px 14px;margin:0 0 15px;border-left:2px solid #d5dce5}.role-event:last-child{margin-bottom:0;padding-bottom:0}.role-event strong{font-size:13px}.role-event p{font-size:13px;color:#5b6678;line-height:1.6;margin:5px 0 8px;overflow-wrap:anywhere}.role-quick-links{display:flex;gap:8px;flex-wrap:wrap}
.role-panel .panel-head{display:flex;flex-wrap:wrap;align-items:center}.role-panel .panel-title{flex:1 1 auto;min-width:0;width:auto}.role-panel .panel-head>.actions{flex:0 0 auto;width:auto}.role-panel .panel-head>.actions:empty{display:none}
.role-function-section{margin-bottom:24px}.role-function-section h2{font-size:14px;color:#5b6678;margin:0 0 10px}.role-function-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.role-function-card{display:flex;align-items:center;gap:12px;padding:18px 15px;border:1px solid #d5dce5;border-radius:8px;background:#fff;color:#172033;text-align:left;min-width:0}.role-function-card:hover{border-color:#003f98;background:#e3ecf8}.role-function-card>span{width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:#e3ecf8;border-radius:7px;color:#003f98;flex:0 0 34px}.role-function-card svg{width:18px;height:18px}.role-function-card>svg{margin-left:auto;color:#5b6678;flex-shrink:0}.role-function-card strong{font-size:14px}.role-search{margin:0 0 16px;max-width:450px}.role-search label{display:flex;align-items:center;gap:12px;color:#5b6678;white-space:nowrap}.role-search input{min-width:0}.role-detail-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px}.role-kv{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px 16px;margin:0 0 20px}.role-kv dt{color:#5b6678}.role-kv dd{margin:0;overflow-wrap:anywhere}.role-panel details p{margin:12px 0;line-height:1.8}.role-manual{max-width:950px}.role-manual h2{font-size:20px;margin:24px 0 12px}.role-manual h3{font-size:16px;margin:20px 0 8px}.role-manual p,.role-manual li{line-height:1.85}.role-manual li{margin:6px 0}.role-manual table{width:100%;border-collapse:collapse}.role-manual td,.role-manual th{padding:10px 12px;border-bottom:1px solid #e4e9ef;text-align:left}.role-manual th{color:#5b6678;background:#f5f7fa}
.role-cost-workspace{display:grid;grid-template-columns:minmax(270px,.9fr) minmax(0,1.2fr);gap:18px;align-items:start}.role-original{position:sticky;top:14px;display:flex;flex-direction:column;background:#e4e9ef;border:1px solid #d5dce5;border-radius:8px;padding:14px;max-height:calc(100vh - 28px);min-width:0}.role-original-toolbar label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px}.role-original-toolbar>.actions{margin:10px 0}.role-original-body{overflow:auto;min-height:300px;background:#fff;border-radius:3px}.role-original-image-wrap{overflow:auto}.role-original-image-wrap img{max-width:none;display:block}.role-original-pdf{width:100%;height:580px;border:0;display:block}.role-pdf-controls{padding:10px;display:flex;align-items:center;gap:12px;font-size:12px}.role-pdf-controls label{display:flex;align-items:center;gap:8px}.role-pdf-controls input{width:70px}.role-original-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.role-cost-editor{min-width:0}.role-cost-editor .role-panel{overflow:visible}.role-cost-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.role-cost-editor label{font-size:13px}.role-cost-editor fieldset{margin:0;padding:0;border:0;min-width:0}.role-cost-editor .ops-cost-line{margin:18px 0;padding:15px 0;border:0;border-top:1px solid #e4e9ef;border-radius:0;background:transparent;min-width:0}.role-cost-editor .ops-cost-line legend{padding:0 0 8px;font-size:14px;font-weight:600}.role-cost-editor .ops-cost-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.role-cost-editor .ops-allocation{padding:12px;background:#f5f7fa;border-radius:6px;margin:10px 0}.role-cost-editor .field-control{min-width:0;max-width:100%;font-size:14px;min-height:38px;padding:8px 10px}.role-cost-editor .form-field{min-width:0}.role-basis-row{display:flex;align-items:center;gap:10px;margin:15px 0;flex-wrap:wrap}.role-cost-totals{padding:14px 0;border-top:1px solid #e4e9ef;border-bottom:1px solid #e4e9ef;margin:18px 0}.role-cost-totals>div{display:flex;justify-content:space-between;gap:12px;margin:5px 0}.role-cost-totals>span{display:block;color:#5b6678;font-size:12px;margin-top:8px}.role-cost-savebar{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:18px;flex-wrap:wrap}.role-cost-savebar>.status{margin-right:auto}.role-cost-pane-switch{display:none}.role-cost-fields:disabled .btn,.role-cost-fields:disabled .mini-btn{display:none}
@media(min-width:761px){.main .role-home .btn,.main .role-business .btn,.main .role-cost-workspace .btn{font-size:14px;min-height:36px;padding:7px 12px}}
@media(max-width:1100px){.role-home-grid{grid-template-columns:minmax(0,1.5fr) minmax(215px,1fr);gap:14px}.role-function-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.role-cost-workspace{grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr);gap:12px}.content{padding:20px}.role-cost-editor .ops-allocation{grid-template-columns:minmax(0,1fr)}.role-cost-editor .ops-cost-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
  .mobile-bottom-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;z-index:35}.mobile-home{padding-bottom:86px}.content{padding:16px 12px 96px}.topbar{padding:14px 12px;min-height:76px}.topbar h1{font-size:calc(21px * var(--app-font-scale,1))}.topbar p{display:none}.page-kicker{display:none}.mobile-back-btn{min-width:44px;min-height:44px}.mobile-home .mobile-page-head{padding:17px 12px;display:flex;align-items:center;justify-content:space-between}#roleMobileHome{padding:0 12px 20px}.mobile-root-screen[data-mobile-root=functions]{padding:0 12px}.mobile-root-screen[data-mobile-root=functions]>.mobile-page-head{padding-left:0;padding-right:0}
  .mobile-home .mobile-page-head h1{margin-right:auto;flex:0 0 auto}.mobile-home .mobile-page-head>.btn{width:44px;min-height:44px;flex:0 0 44px;padding:8px}.mobile-home .role-home .btn{width:auto;flex:0 0 auto}.mobile-home .role-home .actions,.mobile-home .role-home .role-quick-links,.mobile-home .role-home .role-task-tabs{display:flex;flex-wrap:wrap;width:auto;gap:8px}.mobile-home .role-home .role-quick-links .btn{flex:0 1 auto;white-space:normal}.mobile-home .role-home .role-panel .panel-head{display:flex;flex-wrap:wrap}.mobile-home .role-home .role-panel .panel-title{flex:1 1 auto;width:auto;min-width:0}
  .role-home,.role-business,.role-cost-workspace{font-size:calc(15px * var(--app-font-scale,1))}.role-intro{flex-direction:column;gap:12px;margin-bottom:16px}.role-intro h2{font-size:calc(20px * var(--app-font-scale,1))}.role-intro p{font-size:13px}.role-home-grid,.role-detail-grid{grid-template-columns:minmax(0,1fr);gap:0}.role-metrics{margin-bottom:16px;padding:13px 0}.role-metrics>div{padding:0 11px}.role-metrics span{font-size:12px}.role-metrics strong{font-size:calc(24px * var(--app-font-scale,1))}.role-panel .panel-head{padding:14px}.role-panel .panel-body{padding:15px}.role-task{grid-template-columns:30px minmax(0,1fr);padding:15px 14px;gap:10px}.role-task>.btn{grid-column:2;justify-self:start}.role-task-title strong{font-size:15px}.role-task-title{gap:6px}.role-task-tabs{padding:12px 14px}.role-task .btn,.role-task-tabs .btn,.role-home .btn,.role-business .btn,.role-cost-workspace .btn,.role-cost-pane-switch .btn{min-height:44px}.role-function-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.role-function-card{padding:15px 10px;min-height:78px;gap:9px}.role-function-card>svg{display:none}.role-function-card>span{width:28px;height:28px;flex-basis:28px}.role-function-card strong{font-size:14px}.role-kv{grid-template-columns:92px minmax(0,1fr);gap:12px}.role-search label{flex-direction:column;align-items:stretch;gap:6px}.role-search input,.role-cost-workspace .field-control{font-size:16px;min-height:44px}
  .role-cost-workspace{display:block}.role-original{position:static;max-height:none}.role-cost-pane-switch{display:flex;gap:8px;margin-bottom:15px}.role-cost-workspace[data-pane=details] .role-original,.role-cost-workspace[data-pane=original] #roleCostForm{display:none}.role-cost-editor .form-grid,.role-cost-editor .ops-cost-fields{grid-template-columns:minmax(0,1fr)}.role-cost-editor .ops-allocation{grid-template-columns:minmax(0,1fr)}.role-original-pdf{height:600px}.role-original-toolbar>.actions{gap:7px}.role-original-toolbar .btn{font-size:12px;padding:8px 10px}.role-pdf-controls{flex-wrap:wrap}
  .role-business .ops-table-scroll{overflow:visible}.role-business .ops-table-scroll table,.role-business .ops-table-scroll tbody,.role-business .ops-table-scroll tr,.role-business .ops-table-scroll td{display:block;width:100%}.role-business .ops-table-scroll thead{display:none}.role-business .ops-table-scroll tr{border-bottom:1px solid #d5dce5;padding:10px 14px}.role-business .ops-table-scroll td{padding:7px 0;border:0;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;text-align:right;white-space:normal;overflow-wrap:anywhere}.role-business .ops-table-scroll td:before{content:attr(data-label);text-align:left;color:#5b6678;flex:0 0 86px}.role-business .ops-table-scroll td>*{max-width:100%;min-width:0}.role-business .ops-actions{justify-content:flex-end}.role-business .ops-table-scroll td small{display:block}.role-business .ops-card-grid{grid-template-columns:minmax(0,1fr)}.role-business .ops-settings-grid{grid-template-columns:minmax(0,1fr)}
}

.lead-stage-pill{white-space:normal;overflow-wrap:anywhere;max-width:340px;line-height:1.5;height:auto;text-align:left}
@media(max-width:760px){.mobile-record-head,.mobile-detail-title{flex-wrap:wrap}.mobile-record-head .lead-stage-pill,.mobile-detail-title .lead-stage-pill{max-width:100%;flex:0 1 auto;white-space:normal}}

/* 1.2.3 approved home: identity, personal shortcuts, then unread notifications. */
.role-home-new{max-width:1440px;margin:0 auto}.home-identity{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:4px 0 26px}.home-greeting{font-size:14px;color:#5b6678;margin:0 0 3px}.home-identity h2{font-size:calc(29px * var(--app-font-scale,1));line-height:1.3;margin:0;color:#172033}.home-role{font-size:13px;color:#5b6678;margin:8px 0 0;overflow-wrap:anywhere}.home-date{font-size:14px;text-align:right;flex-shrink:0;color:#3a4658}.home-date span{display:block;font-size:12px;color:#5b6678;margin-top:4px}.role-home-new .panel{border:1px solid #e0e6ef;border-radius:12px;overflow:hidden;box-shadow:none;margin:0 0 20px}.home-section-head{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 22px}.home-section-head h2{display:flex;align-items:center;gap:8px;font-size:17px;line-height:1.4;margin:0;color:#172033}.home-text-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:0;background:none;color:#003f98;min-height:44px;padding:0;font:inherit;font-size:14px;cursor:pointer}.home-text-button svg{width:16px;height:16px}.home-text-button.muted{color:#5b6678;font-size:13px}.home-shortcut-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;padding:2px 14px 20px}.home-shortcut{border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:99px;padding:8px 2px;position:relative;font:inherit;font-size:14px;line-height:1.4;color:#273348;cursor:pointer;text-decoration:none}.home-shortcut>span:last-child{max-width:100%;overflow-wrap:anywhere;text-align:center}.home-shortcut-icon{position:relative;width:50px;height:50px;border-radius:12px;background:#edf3fb;color:#003f98;display:flex;align-items:center;justify-content:center;flex-shrink:0}.home-shortcut-icon svg{width:26px;height:26px;stroke-width:1.75}.home-shortcut:hover .home-shortcut-icon{background:#dee9f8}.home-all .home-shortcut-icon{background:#f1f3f6;color:#4b5c73}.home-badge{position:absolute;right:-5px;top:-5px;min-width:20px;height:20px;padding:0 4px;border:2px solid #fff;border-radius:11px;background:#003f98;color:#fff;font-size:11px;font-style:normal;display:flex;align-items:center;justify-content:center}.home-count{min-width:23px;line-height:23px;text-align:center;font-size:12px;border-radius:5px;background:#edf3fb;color:#003f98}.home-notice-list{padding:0 22px 5px}.home-notice{display:grid;grid-template-columns:38px minmax(0,1fr) 16px;gap:15px;align-items:center;width:100%;min-height:94px;padding:16px 0;background:none;border:0;border-top:1px solid #edf0f5;color:#172033;text-align:left;font:inherit;cursor:pointer}.home-notice-icon{position:relative;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:9px;background:#f3f6fa;color:#003f98}.home-notice-icon svg{width:21px;height:21px;stroke-width:1.75}.home-notice-icon:after{content:'';position:absolute;right:0;top:0;width:7px;height:7px;background:#003f98;border:2px solid #fff;border-radius:50%}.home-notice-copy{min-width:0;display:grid;grid-template-columns:minmax(200px,.8fr) minmax(0,1.2fr);gap:20px;align-items:center}.home-notice-copy>span{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.home-notice strong{font-size:14px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-notice time{font-size:11px;color:#68758a;flex-shrink:0}.home-notice p{font-size:13px;line-height:1.6;color:#5b6678;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.home-notice>svg{width:16px;height:16px;color:#8591a3}.home-no-notices{display:flex;align-items:center;justify-content:center;gap:10px;min-height:120px;color:#647187;font-size:14px;border-top:1px solid #edf0f5}.home-no-notices svg{width:22px;height:22px;color:#7b8fa9}.home-payment-note{white-space:pre-wrap;overflow-wrap:anywhere}
.home-editor-fields{padding:20px}.home-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px}.home-editor-heading>span{font-size:13px;color:#5b6678}.home-editor-help{font-size:12px;color:#5b6678;margin:6px 0 12px}.home-edit-grid{grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #e0e6ef;border-radius:12px;padding:10px 5px 6px;background:#fff}.home-edit-grid .home-shortcut{min-height:106px;cursor:default;padding-top:22px}.home-edit-grid .home-shortcut-icon{width:44px;height:44px}.home-editor-fields h3{font-size:15px;font-weight:600;margin:24px 0 4px}.home-candidates{border:1px solid #e0e6ef;border-radius:12px;background:#fff;padding:0 14px}.home-candidates>button{display:flex;align-items:center;gap:12px;width:100%;min-height:57px;background:none;border:0;border-top:1px solid #edf0f5;color:#172033;font:inherit;font-size:14px;text-align:left;cursor:pointer}.home-candidates>button:first-child{border:0}.home-candidates>button>svg{width:21px;height:21px;color:#61748f;flex-shrink:0}.home-candidates>button>svg:last-child{margin-left:auto;color:#003f98}.home-editor-error{min-height:20px;font-size:12px;color:#b42318;margin:10px 0 0}.home-remove,.home-sort-handle{position:absolute;top:0;width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:none;border:0;padding:0;cursor:pointer}.home-remove{right:0;color:#b42318}.home-remove svg{width:24px;height:24px;border:1px solid #d8e1ec;background:#fff;border-radius:50%;padding:3px}.home-sort-handle{left:0;color:#8291a7;touch-action:none}.home-sort-handle svg{width:17px;height:17px}.home-shortcut.is-sorting{background:#edf3fb;outline:1px solid #94b2db;border-radius:9px}.home-lock{position:absolute;top:9px;right:9px;color:#8290a2}.home-lock svg{width:13px;height:13px}.home-placeholder .home-shortcut-icon{background:#fff;border:1px dashed #b9c6d8;color:#8291a7}.home-placeholder{color:#7d8ba0}.home-editor-actions{display:flex;gap:10px;flex-wrap:nowrap}.home-editor-actions .btn{flex:1;min-height:46px}.home-editor-actions .btn.primary{flex:1.6}.home-shortcut:focus-visible,.home-text-button:focus-visible,.home-notice:focus-visible,.home-sort-handle:focus-visible,.home-remove:focus-visible,.home-candidates>button:focus-visible{outline:2px solid #003f98;outline-offset:-2px;border-radius:8px}
@media(max-width:1100px){.home-shortcut-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.home-notice-copy{display:block}.home-notice p{margin-top:5px}}
@media(max-width:760px){
  .mobile-root-screen[data-mobile-root=home]>.mobile-page-head{height:58px;min-height:58px;padding:0 18px;background:#fff;border-bottom:1px solid #e6ebf2;margin-bottom:0}.mobile-root-screen[data-mobile-root=home]>.mobile-page-head h1{font-size:20px}.mobile-root-screen[data-mobile-root=home]>.mobile-page-head>.btn{width:42px;min-height:42px;flex-basis:42px;font-size:19px;font-weight:600;padding:0;border-radius:8px}.mobile-home #roleMobileHome{padding:0 16px 20px}.home-identity{padding:20px 4px 20px;gap:10px}.home-identity h2{font-size:calc(28px * var(--app-font-scale,1))}.home-role{font-size:12px;margin-top:8px}.home-date{font-size:13px}.home-date span{font-size:11px}.role-home-new .panel{margin-bottom:16px}.home-section-head{min-height:52px;padding:0 15px}.home-section-head h2{font-size:calc(16px * var(--app-font-scale,1))}.home-shortcut-grid{padding:2px 6px 12px;gap:3px 0}.home-shortcut,.mobile-home .role-home-new .home-shortcut{min-height:86px;width:100%;gap:7px;font-size:13px;line-height:1.4;padding:8px 1px}.home-shortcut-icon{width:44px;height:44px}.home-shortcut-icon svg{width:24px;height:24px}.home-notice-list{padding:0 15px 3px}.home-notice,.mobile-home .role-home-new .home-notice{grid-template-columns:32px minmax(0,1fr) 14px;gap:9px;min-height:80px;padding:12px 0;width:100%;display:grid}.home-notice-icon{width:32px;height:32px}.home-notice-icon svg{width:19px;height:19px}.home-notice strong{font-size:13px}.home-notice time{font-size:10px;max-width:82px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-notice-copy>span{gap:5px}.home-notice p{font-size:12px;margin-top:5px}.home-notice>svg{width:14px;height:14px}.home-editor-fields{padding:16px}.home-edit-grid{padding:10px 5px 6px}.home-edit-grid .home-shortcut{min-height:106px;padding-top:24px;font-size:13px}.home-remove,.home-sort-handle{width:36px;height:36px}.home-edit-grid .home-shortcut-icon{width:42px;height:42px}.home-editor-actions{padding-bottom:max(14px,env(safe-area-inset-bottom))}.home-no-notices{min-height:100px}
}
