:root{--mgr-ink:#202C34;--mgr-deep:#111A20;--mgr-gold:#C8A66B;--mgr-gold-dark:#9A7435;--mgr-cream:#F7F4EE;--mgr-white:#fff;--mgr-line:#DDD4C3;--mgr-muted:#5E6664;--mgr-danger:#A12622}
.mgrsp-wrap,.mgrsp-wrap *{box-sizing:border-box}.mgrsp-wrap{max-width:1180px;margin:28px auto;padding:0 18px;color:var(--mgr-ink);font-family:Arial,Helvetica,sans-serif;line-height:1.45}
.mgrsp-wrap h1,.mgrsp-wrap h2,.mgrsp-wrap h3,.mgrsp-wrap h4,.mgrsp-wrap p{color:var(--mgr-ink)}.mgrsp-wrap h1{font-size:34px;margin:0 0 8px}.mgrsp-wrap h2{font-size:26px;margin:0 0 8px}.mgrsp-wrap h3{font-size:21px;margin:0 0 6px}.mgrsp-wrap h4{font-size:17px;margin:0 0 10px}
.mgrsp-shell,.mgrsp-card,.mgrsp-command-shell,.mgrsp-quick-todo,.mgrsp-workspace,.mgrsp-section-panel,.mgrsp-agent-profile{background:#fff;border:1px solid var(--mgr-line);border-radius:14px;box-shadow:0 8px 24px rgba(32,44,52,.06)}
.mgrsp-shell{overflow:hidden}.mgrsp-header,.mgrsp-topbar,.mgrsp-workspace-head,.mgrsp-command-hero{display:flex;align-items:center;justify-content:space-between;gap:18px}.mgrsp-header,.mgrsp-topbar{padding:18px 22px;border-bottom:1px solid var(--mgr-line)}
.mgrsp-brand,.mgrsp-card-label{font-weight:800;letter-spacing:.06em;text-transform:uppercase}.mgrsp-card-label{display:block;color:#6D5A32;font-size:11px;margin-bottom:5px}
.mgrsp-primary,.mgrsp-secondary,.mgrsp-inline-primary,.mgrsp-wrap button,.mgrsp-wrap input[type=button],.mgrsp-wrap input[type=submit]{appearance:none;border:1px solid var(--mgr-ink);border-radius:7px;background:var(--mgr-ink);color:#fff!important;padding:10px 14px;font-weight:700;cursor:pointer;text-decoration:none;line-height:1.2}
.mgrsp-secondary{background:#fff;color:var(--mgr-ink)!important}.mgrsp-wrap button:hover,.mgrsp-primary:hover{filter:brightness(1.08)}.mgrsp-wrap button:focus,.mgrsp-wrap a:focus,.mgrsp-wrap select:focus,.mgrsp-wrap input:focus,.mgrsp-wrap textarea:focus{outline:3px solid var(--mgr-gold);outline-offset:2px}.mgrsp-wrap button:disabled{opacity:.55;cursor:not-allowed}
.mgrsp-tabs,.mgrsp-section-nav,.mgrsp-quick-actions,.mgrsp-command-actions{display:flex;gap:8px;flex-wrap:wrap}.mgrsp-tabs button,.mgrsp-section-nav button{border-radius:7px}.mgrsp-tabs button.active,.mgrsp-section-nav button.active{background:var(--mgr-gold);border-color:var(--mgr-gold-dark);color:var(--mgr-deep)!important}
.mgrsp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.mgrsp-card{padding:18px}.mgrsp-card>strong{display:block;font-size:27px;color:var(--mgr-ink);margin:4px 0}.mgrsp-card p{margin:5px 0 0;color:var(--mgr-muted)}
.mgrsp-command-shell,.mgrsp-quick-todo,.mgrsp-workspace,.mgrsp-section-panel{padding:20px;margin:18px 0}.mgrsp-section-panel[hidden],.mgrsp-modal[hidden],[hidden]{display:none!important}
.mgrsp-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.mgrsp-module{min-height:100px;text-align:left;display:flex;flex-direction:column;gap:5px}.mgrsp-module b{font-size:16px}.mgrsp-module span{font-weight:400;color:#E9EEF1}.mgrsp-module em{font-style:normal;font-size:10px;color:var(--mgr-gold)}
.mgrsp-admin-table-wrap{overflow:auto;border:1px solid var(--mgr-line);border-radius:10px;margin:12px 0}.mgrsp-admin-table,.mgrsp-table{width:100%;border-collapse:collapse;background:#fff}.mgrsp-admin-table th,.mgrsp-table th{background:var(--mgr-ink);color:#fff;text-align:left;padding:11px}.mgrsp-admin-table td,.mgrsp-table td{padding:10px;border-bottom:1px solid #E9E3D8;vertical-align:top}.mgrsp-admin-table tr:last-child td,.mgrsp-table tr:last-child td{border-bottom:0}
.mgrsp-wrap input[type=text],.mgrsp-wrap input[type=email],.mgrsp-wrap input[type=tel],.mgrsp-wrap input[type=date],.mgrsp-wrap input[type=time],.mgrsp-wrap input[type=number],.mgrsp-wrap input[type=url],.mgrsp-wrap select,.mgrsp-wrap textarea{width:100%;min-height:44px;background:#fff;color:var(--mgr-ink);border:1px solid #AEB8BF;border-radius:7px;padding:9px 11px}.mgrsp-wrap textarea{min-height:100px}
.mgrsp-impersonate-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}.mgrsp-impersonate-grid article{border:1px solid var(--mgr-line);border-radius:11px;padding:16px;background:#fff}.mgrsp-impersonate-grid select{margin:8px 0}.mgrsp-notice{background:#FFF7E4;color:var(--mgr-ink);border-left:4px solid var(--mgr-gold);border-radius:7px;padding:11px 13px;margin:12px 0}
.mgrsp-status,.mgrsp-empty{padding:12px;color:var(--mgr-muted)}.mgrsp-ref-id{display:block;color:var(--mgr-muted);font-size:11px}.mgrsp-badge,.mgrsp-chip{display:inline-block;border-radius:999px;padding:4px 8px;background:var(--mgr-cream);color:var(--mgr-ink);font-size:11px;font-weight:800}
.mgrsp-modal{position:fixed;inset:0;z-index:999999;background:rgba(17,26,32,.72);display:flex;align-items:center;justify-content:center;padding:20px}.mgrsp-modal-card,.mgrsp-modal-content{background:#fff;color:var(--mgr-ink);width:min(900px,96vw);max-height:90vh;overflow:auto;border-radius:14px;padding:22px;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.mgrsp-modal-open{overflow:hidden}.mgrsp-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mgrsp-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.mgrsp-priority-todo-compact,.mgrsp-priority-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mgrsp-priority-item,.mgrsp-todo-card{border:1px solid var(--mgr-line);background:var(--mgr-cream);color:var(--mgr-ink);border-radius:10px;padding:13px}
.mgrsp-cal-grid,.mgrsp-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.mgrsp-cal-head{background:var(--mgr-ink);color:#fff;padding:7px;text-align:center;font-weight:800;font-size:11px}.mgrsp-cal-day{min-height:92px;border:1px solid var(--mgr-line);padding:5px;background:#fff}.mgrsp-cal-day.muted{opacity:.45}.mgrsp-cal-event{width:100%;margin:3px 0;padding:5px!important;font-size:10px!important;text-align:left}.mgrsp-cal-event span,.mgrsp-cal-event em{display:block;color:#fff}
.mgrsp-login{max-width:520px;margin:50px auto;background:#fff;border:1px solid var(--mgr-line);border-top:5px solid var(--mgr-gold);border-radius:14px;padding:26px;box-shadow:0 15px 40px rgba(32,44,52,.10)}
.mgrsp-login button{width:100%;margin-top:10px}.mgrsp-login input{margin:7px 0}
.mgrsp-pager{display:flex;gap:6px;align-items:center;justify-content:flex-end;margin:10px 0}.mgrsp-pager button{padding:7px 10px}
@media(max-width:900px){.mgrsp-grid,.mgrsp-module-grid{grid-template-columns:1fr 1fr}.mgrsp-impersonate-grid,.mgrsp-form-grid,.mgrsp-priority-todo-compact,.mgrsp-priority-grid{grid-template-columns:1fr}.mgrsp-header,.mgrsp-topbar,.mgrsp-workspace-head,.mgrsp-command-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.mgrsp-wrap{padding:0 10px}.mgrsp-grid,.mgrsp-module-grid{grid-template-columns:1fr}.mgrsp-wrap h1{font-size:28px}.mgrsp-command-shell,.mgrsp-quick-todo,.mgrsp-workspace,.mgrsp-section-panel{padding:14px}}

/* v1.12.8 interaction restoration: broker pills switch .active on panels. */
.mgrsp-section-panel{display:none}
.mgrsp-section-panel.active{display:block}
.mgrsp-section-tab{background:#fff!important;color:#202C34!important;border:1px solid #202C34!important}
.mgrsp-section-tab.active{background:#C8A66B!important;color:#111A20!important;border-color:#9A7435!important}

/* v1.12.9 Clients: compact searchable 10-row workspace. */
[data-panel="leads"] .mgrsp-admin-toolbar{display:grid;grid-template-columns:minmax(260px,2fr) repeat(3,minmax(145px,1fr));gap:10px;align-items:center;margin:12px 0}
[data-panel="leads"] #mgrsp-lead-search{min-width:0}
[data-panel="leads"] .mgrsp-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0}
[data-panel="leads"] .mgrsp-pager-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
[data-panel="leads"] .mgrsp-page-btn{padding:7px 10px!important}
@media(max-width:850px){[data-panel="leads"] .mgrsp-admin-toolbar{grid-template-columns:1fr 1fr}[data-panel="leads"] #mgrsp-lead-search{grid-column:1/-1}}


/* === v1.13.1 MGR Professional Dashboard Presentation === */
.mgrsp-wrap{max-width:1280px!important;margin:26px auto 60px!important;padding:0 24px!important;color:#202C34!important}
.mgrsp-shell{border:0!important;border-radius:18px!important;overflow:visible!important;background:#F7F4EE!important;box-shadow:0 18px 55px rgba(32,44,52,.10)!important}
.mgrsp-header{position:relative!important;padding:20px 28px!important;background:#202C34!important;border:0!important;border-radius:18px 18px 0 0!important;color:#fff!important;box-shadow:0 6px 18px rgba(32,44,52,.15)!important}
.mgrsp-header:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:#C8A66B;border-radius:18px 0 0 0}
.mgrsp-header .mgrsp-brand strong,.mgrsp-header .mgrsp-brand span{color:#fff!important}.mgrsp-header .mgrsp-brand strong{font-size:12px!important;letter-spacing:.13em!important}.mgrsp-header .mgrsp-brand span{display:block!important;font-size:10px!important;letter-spacing:.16em!important;color:#DCC99D!important;margin-top:3px!important}
.mgrsp-top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:wrap!important}
.mgrsp-view-switch{display:inline-flex!important;padding:4px!important;background:#111A20!important;border:1px solid #46525A!important;border-radius:999px!important;gap:4px!important}
.mgrsp-view-btn{border:0!important;border-radius:999px!important;padding:9px 15px!important;background:transparent!important;color:#fff!important;font-size:12px!important}
.mgrsp-view-btn.active{background:#C8A66B!important;color:#111A20!important;box-shadow:0 3px 10px rgba(0,0,0,.18)!important}
.mgrsp-help-open,.mgrsp-logout{border-radius:999px!important;padding:9px 14px!important;font-size:12px!important;font-weight:800!important}.mgrsp-help-open{background:#fff!important;color:#202C34!important;border:1px solid #fff!important}.mgrsp-logout{color:#fff!important;border:1px solid #6A747B!important;text-decoration:none!important}
.mgrsp-main{padding:30px!important;background:linear-gradient(180deg,#F7F4EE 0,#FFFFFF 220px)!important;border-radius:0 0 18px 18px!important}
.mgrsp-hero{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:20px!important;padding:0 0 22px!important;margin:0 0 22px!important;border-bottom:1px solid #D8C9AC!important}
.mgrsp-kicker{font-size:10px!important;letter-spacing:.15em!important;font-weight:900!important;color:#8A6B34!important;margin-bottom:5px!important}.mgrsp-hero h1{font-size:32px!important;line-height:1.08!important;margin:0 0 6px!important;color:#202C34!important;font-weight:750!important}.mgrsp-hero p{margin:0!important;color:#647079!important;font-size:13px!important}
.mgrsp-broker-agent-view{margin:0!important;border:1px solid #E1D2B5!important;border-left:4px solid #C8A66B!important;background:#FFF9EC!important;color:#202C34!important;box-shadow:none!important}
.mgrsp-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;margin:0 0 20px!important}
.mgrsp-card{position:relative!important;min-height:132px!important;padding:20px!important;border:1px solid #DED7CA!important;border-radius:14px!important;background:#fff!important;box-shadow:0 8px 24px rgba(32,44,52,.06)!important;overflow:hidden!important}
.mgrsp-card:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#C8A66B;opacity:.85}
.mgrsp-card-label{font-size:10px!important;letter-spacing:.12em!important;color:#846A3A!important;margin-bottom:8px!important}.mgrsp-card>strong{font-size:24px!important;line-height:1.15!important;color:#202C34!important;word-break:break-word!important}.mgrsp-card p{font-size:12px!important;color:#69747B!important;line-height:1.45!important;margin-top:8px!important}
.mgrsp-quick-todo,.mgrsp-command-shell,.mgrsp-workspace,.mgrsp-agent-profile{border:1px solid #DED7CA!important;border-radius:15px!important;background:#fff!important;box-shadow:0 10px 28px rgba(32,44,52,.055)!important;padding:22px!important;margin:18px 0!important}
.mgrsp-workspace-head h2,.mgrsp-command-hero h2{font-size:22px!important;margin:2px 0 5px!important;color:#202C34!important}.mgrsp-workspace-head p,.mgrsp-command-hero p{margin:0!important;color:#66727A!important;max-width:760px!important}
.mgrsp-command-shell{border-top:4px solid #202C34!important}.mgrsp-command-hero{padding-bottom:16px!important;border-bottom:1px solid #E6DED0!important}
.mgrsp-module-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin-top:18px!important}
.mgrsp-module{position:relative!important;min-height:145px!important;padding:18px!important;border:1px solid #202C34!important;border-radius:12px!important;background:#202C34!important;color:#fff!important;text-align:left!important;box-shadow:0 8px 18px rgba(32,44,52,.12)!important;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important}
.mgrsp-module:hover{transform:translateY(-2px)!important;box-shadow:0 12px 25px rgba(32,44,52,.18)!important;border-color:#C8A66B!important}.mgrsp-module b{font-size:16px!important;line-height:1.2!important;color:#fff!important}.mgrsp-module span{font-size:11px!important;line-height:1.45!important;color:#E9EDF0!important}.mgrsp-module em{position:absolute!important;right:12px!important;bottom:11px!important;padding:3px 7px!important;border-radius:999px!important;background:#C8A66B!important;color:#111A20!important;font-size:9px!important;font-weight:900!important;letter-spacing:.08em!important}
.mgrsp-command-actions .mgrsp-primary,.mgrsp-inline-primary{border-radius:999px!important;background:#202C34!important;color:#fff!important;border-color:#202C34!important;padding:10px 16px!important}
.mgrsp-broker-bulk-reassign{border-left:4px solid #C8A66B!important;background:#FFFDF8!important}.mgrsp-bulk-reassign-controls{display:grid!important;grid-template-columns:minmax(170px,.8fr) minmax(220px,1.2fr) repeat(4,auto)!important;gap:9px!important;align-items:center!important;margin-top:16px!important}.mgrsp-bulk-reassign-controls select{min-width:0!important}
#mgrsp-agent-lead-grid,.mgrsp-section{scroll-margin-top:20px}.mgrsp-admin-table-wrap{border-radius:12px!important;box-shadow:0 6px 18px rgba(32,44,52,.045)!important}.mgrsp-admin-table th,.mgrsp-table th{background:#202C34!important;color:#fff!important;font-size:11px!important;letter-spacing:.03em!important}.mgrsp-admin-table td,.mgrsp-table td{font-size:12px!important}
.mgrsp-primary,.mgrsp-secondary,.mgrsp-wrap button{min-height:38px!important;font-weight:800!important}.mgrsp-secondary{background:#fff!important;color:#202C34!important;border-color:#AFA48F!important}.mgrsp-secondary:hover{border-color:#C8A66B!important;background:#FFF9EC!important}
.mgrsp-status{font-size:12px!important}.mgrsp-empty{padding:18px!important;border:1px dashed #D8C9AC!important;border-radius:10px!important;background:#FBF9F5!important;color:#69747B!important}
@media(max-width:1050px){.mgrsp-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.mgrsp-bulk-reassign-controls{grid-template-columns:1fr 1fr!important}.mgrsp-bulk-reassign-controls>button{width:100%!important}}
@media(max-width:760px){.mgrsp-wrap{padding:0 10px!important}.mgrsp-header,.mgrsp-main{padding:18px!important}.mgrsp-header,.mgrsp-hero{align-items:flex-start!important;flex-direction:column!important}.mgrsp-top-actions{justify-content:flex-start!important}.mgrsp-grid,.mgrsp-module-grid,.mgrsp-bulk-reassign-controls{grid-template-columns:1fr!important}.mgrsp-card{min-height:auto!important}.mgrsp-hero h1{font-size:27px!important}}

/* === v1.13.2 Client Workspace / Roadmap modal repair ===
   The PHP renders #mgrsp-lead-workspace with a dedicated class, not .mgrsp-modal.
   v1.13.1 had no CSS for that class, so JS locked body scrolling while the
   workspace itself remained in normal document flow. */
.mgrsp-lead-workspace-modal[hidden]{display:none!important}
.mgrsp-lead-workspace-modal{
 position:fixed!important;inset:0!important;z-index:1000000!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 padding:22px!important;background:rgba(17,26,32,.76)!important;
 overflow:auto!important;overscroll-behavior:contain!important
}
.mgrsp-lead-workspace-shell{
 position:relative!important;width:min(1180px,96vw)!important;max-height:92vh!important;
 display:flex!important;flex-direction:column!important;background:#fff!important;
 color:#202C34!important;border:1px solid #C8A66B!important;border-radius:16px!important;
 box-shadow:0 28px 80px rgba(0,0,0,.35)!important;overflow:hidden!important
}
.mgrsp-lw-header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;padding:20px 22px 15px!important;background:#202C34!important;color:#fff!important;border-bottom:3px solid #C8A66B!important;flex:0 0 auto!important}
.mgrsp-lw-header h2{margin:2px 0 6px!important;color:#fff!important;font-size:26px!important}.mgrsp-lw-header .mgrsp-card-label{color:#DCC99D!important}.mgrsp-lw-meta{display:flex!important;gap:8px 14px!important;flex-wrap:wrap!important;font-size:12px!important;color:#E9EEF1!important}.mgrsp-lw-meta b{color:#fff!important}
#mgrsp-lw-close{flex:0 0 auto!important;width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;border-radius:999px!important;background:#fff!important;color:#202C34!important;border:1px solid #fff!important;font-size:25px!important;line-height:1!important}
.mgrsp-lw-training{padding:9px 20px!important;background:#FFF4D6!important;border-bottom:1px solid #E5C878!important;font-weight:800!important;font-size:12px!important;flex:0 0 auto!important}
.mgrsp-lw-tabs{display:flex!important;gap:6px!important;flex-wrap:wrap!important;padding:12px 18px!important;background:#F7F4EE!important;border-bottom:1px solid #DDD4C3!important;flex:0 0 auto!important}
.mgrsp-lw-tab{min-height:34px!important;padding:8px 11px!important;border-radius:999px!important;background:#fff!important;color:#202C34!important;border:1px solid #AFA48F!important;font-size:11px!important}.mgrsp-lw-tab.active{background:#C8A66B!important;color:#111A20!important;border-color:#9A7435!important}
.mgrsp-lw-body{padding:20px 22px 28px!important;overflow:auto!important;min-height:0!important;flex:1 1 auto!important;background:#fff!important}
.mgrsp-lw-panel{display:none!important}.mgrsp-lw-panel.active{display:block!important}
.mgrsp-lw-section-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;margin:0 0 16px!important;padding-bottom:12px!important;border-bottom:1px solid #E6DED0!important}.mgrsp-lw-section-head h3{margin:2px 0 4px!important;font-size:21px!important}.mgrsp-lw-section-head p{margin:0!important;color:#66727A!important;font-size:12px!important}
.mgrsp-lw-overview-grid,.mgrsp-lw-score-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin-bottom:16px!important}.mgrsp-lw-overview-grid article,.mgrsp-lw-score-grid article{border:1px solid #DED7CA!important;border-radius:10px!important;background:#FBF9F5!important;padding:13px!important}.mgrsp-lw-overview-grid span,.mgrsp-lw-score-grid span{display:block!important;font-size:10px!important;font-weight:900!important;letter-spacing:.08em!important;color:#846A3A!important}.mgrsp-lw-overview-grid strong,.mgrsp-lw-score-grid strong{display:block!important;margin-top:5px!important;color:#202C34!important;word-break:break-word!important}
.mgrsp-lw-commercial,.mgrsp-guidance{border-left:4px solid #C8A66B!important;background:#FFF9EC!important;border-radius:8px!important;padding:13px 15px!important;margin:14px 0!important}.mgrsp-lw-notes{margin-top:18px!important}.mgrsp-note-item,.mgrsp-lw-record{border:1px solid #DED7CA!important;border-radius:9px!important;padding:12px!important;margin:9px 0!important;background:#fff!important}.mgrsp-note-item>div,.mgrsp-lw-record>div{display:flex!important;justify-content:space-between!important;gap:10px!important;flex-wrap:wrap!important}.mgrsp-note-item span,.mgrsp-lw-record span,.mgrsp-lw-record time{font-size:11px!important;color:#69747B!important}.mgrsp-note-entry{margin-top:14px!important;padding:14px!important;border:1px solid #DED7CA!important;border-radius:10px!important;background:#FBF9F5!important}.mgrsp-note-actions{display:flex!important;gap:8px!important;align-items:center!important;margin-top:8px!important}.mgrsp-note-actions select{max-width:220px!important}
.mgrsp-roadmap-progress{margin:0 0 16px!important}.mgrsp-roadmap-progress-head{display:flex!important;justify-content:space-between!important;gap:12px!important;margin-bottom:7px!important}.mgrsp-roadmap-progress-track{height:10px!important;background:#E9E3D8!important;border-radius:999px!important;overflow:hidden!important}.mgrsp-roadmap-progress-track>span{display:block!important;height:100%!important;background:#C8A66B!important;border-radius:999px!important}
.mgrsp-lw-phase{border:1px solid #DED7CA!important;border-radius:11px!important;padding:14px!important;margin:12px 0!important;background:#fff!important}.mgrsp-lw-phase.current{border-left:5px solid #C8A66B!important;background:#FFFDF8!important}.mgrsp-lw-phase h4{margin:0 0 10px!important}.mgrsp-check-row{display:flex!important;align-items:flex-start!important;gap:10px!important;padding:10px 8px!important;border-top:1px solid #EEE8DD!important;cursor:pointer!important}.mgrsp-check-row:first-of-type{border-top:0!important}.mgrsp-check-row input{margin-top:3px!important;flex:0 0 auto!important}.mgrsp-check-copy{display:block!important;min-width:0!important}.mgrsp-check-copy b,.mgrsp-check-copy small,.mgrsp-step-guidance{display:block!important}.mgrsp-check-copy small{margin-top:2px!important;color:#69747B!important}.mgrsp-step-guidance{margin-top:5px!important;font-size:12px!important;color:#4E5A62!important}.mgrsp-check-row.done .mgrsp-check-copy b{text-decoration:line-through!important;opacity:.65!important}.mgrsp-check-row.overdue{background:#FFF5F3!important}.mgrsp-check-row.critical{border-left:3px solid #C8A66B!important}
.mgrsp-lw-transaction{margin:18px 0!important;padding:15px!important;border:1px solid #DED7CA!important;border-radius:11px!important;background:#FBF9F5!important}.mgrsp-tx-group{border:1px solid #DED7CA!important;border-radius:9px!important;padding:12px!important;margin:12px 0!important}.mgrsp-tx-field{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:end!important;margin:9px 0!important}.mgrsp-tx-field small{grid-column:1/-1!important}.mgrsp-waiting-on{display:grid!important;grid-template-columns:auto 180px minmax(220px,1fr) auto!important;gap:8px!important;align-items:center!important;margin-top:12px!important}
body.mgrsp-modal-open{overflow:hidden!important}
@media(max-width:760px){.mgrsp-lead-workspace-modal{padding:8px!important;align-items:flex-start!important}.mgrsp-lead-workspace-shell{width:100%!important;max-height:96vh!important}.mgrsp-lw-header,.mgrsp-lw-body{padding:15px!important}.mgrsp-lw-tabs{padding:10px!important;flex-wrap:nowrap!important;overflow-x:auto!important}.mgrsp-lw-tab{white-space:nowrap!important}.mgrsp-lw-overview-grid,.mgrsp-lw-score-grid{grid-template-columns:1fr!important}.mgrsp-lw-section-head{flex-direction:column!important}.mgrsp-note-actions,.mgrsp-waiting-on{display:grid!important;grid-template-columns:1fr!important}.mgrsp-note-actions select{max-width:none!important}.mgrsp-tx-field{grid-template-columns:1fr!important}}

/* v1.13.4 Roadmap checklist interaction */
.mgrsp-lw-phase .mgrsp-check-row{position:relative!important;min-height:48px!important;align-items:center!important;user-select:none!important}
.mgrsp-lw-phase .mgrsp-check-row input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;width:20px!important;height:20px!important;min-width:20px!important;margin:0 4px 0 0!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;cursor:pointer!important;position:relative!important;z-index:2!important}
.mgrsp-lw-phase .mgrsp-check-row.saving{opacity:.65!important;cursor:wait!important}
.mgrsp-lw-phase .mgrsp-check-row.saving input{cursor:wait!important}

/* v1.13.4 hard interaction layer: roadmap rows are real click targets */
.mgrsp-lw-phase .mgrsp-check-row{pointer-events:auto!important;z-index:5!important;touch-action:manipulation!important}
.mgrsp-lw-phase .mgrsp-check-row *{pointer-events:none!important}
.mgrsp-lw-phase .mgrsp-check-row input[type=checkbox]{pointer-events:none!important}

/* v1.13.5 Roadmap control: independent of theme/native checkbox styling */
.mgrsp-lw-phase .mgrsp-check-row[role="checkbox"]{display:flex!important;align-items:flex-start!important;gap:12px!important;cursor:pointer!important;pointer-events:auto!important;outline:none!important}
.mgrsp-lw-phase .mgrsp-check-row[role="checkbox"]:focus-visible{box-shadow:0 0 0 3px rgba(200,166,107,.32)!important;border-radius:8px!important}
.mgrsp-roadmap-box{display:inline-grid!important;place-items:center!important;width:22px!important;height:22px!important;min-width:22px!important;box-sizing:border-box!important;border:2px solid #C8A66B!important;border-radius:5px!important;background:#fff!important;color:#202C34!important;font-size:16px!important;font-weight:900!important;line-height:1!important;margin-top:1px!important;visibility:visible!important;opacity:1!important}
.mgrsp-check-row.done .mgrsp-roadmap-box{background:#C8A66B!important}
.mgrsp-check-row.saving .mgrsp-roadmap-box{opacity:.55!important}

#mgrsp-resend{margin-right:8px;background:#F7F4EE;color:#202C34;border:1px solid #C8A66B}

/* MGR ACCESSIBLE CONTRAST CONTRACT v1.12.1
   Brand rule: dark surface = light text; light surface = dark text.
   Interactive states must never rely on inherited theme colors. */
:root{--mgr-navy:#202C34;--mgr-gold:#C8A66B;--mgr-cream:#F7F4EE;--mgr-white:#FFF;--mgr-ink:#14232C}

body a:focus-visible,body button:focus-visible,body input:focus-visible,
body select:focus-visible,body textarea:focus-visible,body [role="button"]:focus-visible{
 outline:3px solid var(--mgr-gold)!important;outline-offset:3px!important
}

/* Portal action controls: explicit foreground prevents invisible inherited text. */
#mgr-secure-portal button,#mgr-secure-portal .button,#mgr-secure-portal [role="button"],
.mgrsp-dashboard button,.mgrsp-dashboard .button,.mgrsp-dashboard [role="button"]{color:var(--mgr-white)}
#mgr-secure-portal button:not(:disabled):hover,#mgr-secure-portal .button:hover,
.mgrsp-dashboard button:not(:disabled):hover,.mgrsp-dashboard .button:hover{filter:brightness(1.08)}

/* Sign Out is a light secondary action: white + navy, navy + white on hover. */
#mgr-secure-portal a[href*="signout"],#mgr-secure-portal a[href*="logout"],
#mgr-secure-portal .mgrsp-signout,#mgr-secure-portal #mgrsp-signout,
.mgrsp-dashboard a[href*="signout"],.mgrsp-dashboard a[href*="logout"],
.mgrsp-dashboard .mgrsp-signout,.mgrsp-dashboard #mgrsp-signout{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:44px!important;padding:0 18px!important;border:1.5px solid var(--mgr-navy)!important;
 border-radius:999px!important;background:var(--mgr-white)!important;color:var(--mgr-navy)!important;
 text-decoration:none!important;font-weight:800!important;line-height:1.2!important
}
#mgr-secure-portal a[href*="signout"]:hover,#mgr-secure-portal a[href*="logout"]:hover,
#mgr-secure-portal .mgrsp-signout:hover,#mgr-secure-portal #mgrsp-signout:hover,
.mgrsp-dashboard a[href*="signout"]:hover,.mgrsp-dashboard a[href*="logout"]:hover,
.mgrsp-dashboard .mgrsp-signout:hover,.mgrsp-dashboard #mgrsp-signout:hover{
 background:var(--mgr-navy)!important;color:var(--mgr-white)!important
}

/* Forms and disabled controls remain legible. */
#mgr-secure-portal input,#mgr-secure-portal select,#mgr-secure-portal textarea,
.mgrsp-dashboard input,.mgrsp-dashboard select,.mgrsp-dashboard textarea{
 background-color:var(--mgr-white);color:var(--mgr-ink)
}
#mgr-secure-portal input::placeholder,#mgr-secure-portal textarea::placeholder,
.mgrsp-dashboard input::placeholder,.mgrsp-dashboard textarea::placeholder{color:#59656C;opacity:1}
#mgr-secure-portal button:disabled,#mgr-secure-portal input:disabled,#mgr-secure-portal select:disabled,
.mgrsp-dashboard button:disabled,.mgrsp-dashboard input:disabled,.mgrsp-dashboard select:disabled{
 opacity:.62!important;cursor:not-allowed!important
}

/* v1.12.2 — Consolidated Roadmap + Scorecard presentation */
.mgrsp-lw-tabs [data-lw-tab="roadmap"]{font-weight:800}
[data-lw-panel="roadmap"] .mgrsp-lw-section-head{border-bottom:1px solid #DDD4C3;padding-bottom:14px;margin-bottom:16px}
#mgrsp-lw-roadmap .mgrsp-roadmap-progress{margin:0 0 18px}
#mgrsp-lw-roadmap .mgrsp-phase{border:1px solid #DDD4C3;border-radius:14px;padding:16px;margin:0 0 14px;background:#fff}
#mgrsp-lw-roadmap .mgrsp-phase.current{border-left:5px solid #C8A66B;background:#F7F4EE}
#mgrsp-lw-roadmap .mgrsp-phase h4{margin:0 0 12px;color:#202C34}
#mgrsp-lw-roadmap .mgrsp-roadmap-check-v137{border-top:1px solid #EEE7DC;padding:12px 0}
#mgrsp-lw-roadmap button{background:#202C34;color:#fff;border-color:#202C34}
#mgrsp-lw-roadmap button:hover,#mgrsp-lw-roadmap button:focus{background:#C8A66B;color:#202C34;border-color:#C8A66B}

/* v1.12.3 — Roadmap workspace */
#mgrsp-lw-roadmap{display:block}
.mgrsp-roadmap-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:20px 22px;background:#202C34;color:#fff;border-radius:16px 16px 8px 8px}
.mgrsp-roadmap-hero h3{margin:4px 0 8px;color:#fff;font-size:25px}
.mgrsp-roadmap-hero p{margin:0;max-width:700px;color:#fff;opacity:.92;line-height:1.55}
.mgrsp-roadmap-meter{min-width:130px;text-align:center;border-left:1px solid rgba(255,255,255,.25);padding-left:20px}
.mgrsp-roadmap-meter strong{display:block;font-size:34px;color:#fff}
.mgrsp-roadmap-meter span{display:block;font-size:12px;color:#fff}
.mgrsp-roadmap-progressbar{height:9px;background:#e8e2d8;border-radius:999px;overflow:hidden;margin:10px 0 18px}
.mgrsp-roadmap-progressbar i{display:block;height:100%;background:#C8A66B;border-radius:999px}
.mgrsp-roadmap-next{border:1px solid #C8A66B;border-left:6px solid #C8A66B;border-radius:12px;padding:14px 16px;margin-bottom:18px;background:#faf8f3}
.mgrsp-roadmap-next span{display:block;font-size:10px;font-weight:900;letter-spacing:.14em;color:#8b641f}
.mgrsp-roadmap-next strong{display:block;font-size:17px;color:#202C34;margin:3px 0}
.mgrsp-roadmap-next small{display:block;color:#4f5e67;line-height:1.45}
.mgrsp-roadmap-phase-card{border:1px solid #ddd4c3;border-radius:14px;margin:0 0 14px;background:#fff;overflow:hidden}
.mgrsp-roadmap-phase-card.current{border:2px solid #C8A66B;box-shadow:0 8px 24px rgba(32,44,52,.08)}
.mgrsp-roadmap-phase-card.complete{background:#fbfaf7}
.mgrsp-roadmap-phase-card>header{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;padding:14px 16px;background:#f7f4ee;border-bottom:1px solid #e5ddcf}
.mgrsp-roadmap-phase-card.current>header{background:#202C34;color:#fff}
.mgrsp-roadmap-phase-card.current>header h4,.mgrsp-roadmap-phase-card.current>header span,.mgrsp-roadmap-phase-card.current>header b{color:#fff}
.mgrsp-roadmap-stepno{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#C8A66B;color:#202C34;font-weight:900}
.mgrsp-roadmap-phase-card header span{display:block;font-size:9px;font-weight:900;letter-spacing:.14em;color:#8b641f}
.mgrsp-roadmap-phase-card header h4{margin:2px 0 0;color:#202C34;font-size:18px}
.mgrsp-roadmap-phase-card header b{color:#202C34}
.mgrsp-roadmap-items{padding:4px 16px}
.mgrsp-roadmap-task{display:grid;grid-template-columns:34px 1fr;gap:13px;padding:15px 2px;border-bottom:1px solid #eee8dd;align-items:start}
.mgrsp-roadmap-task:last-child{border-bottom:0}
.mgrsp-roadmap-task.saving{opacity:.65}
#mgrsp-lw-roadmap .mgrsp-roadmap-checkbox{appearance:none!important;-webkit-appearance:none!important;width:30px!important;height:30px!important;min-width:30px!important;padding:0!important;margin:1px 0 0!important;border:2px solid #C8A66B!important;border-radius:7px!important;background:#fff!important;color:#202C34!important;display:grid!important;place-items:center!important;font:900 20px/1 Arial,sans-serif!important;cursor:pointer!important;box-shadow:none!important}
#mgrsp-lw-roadmap .mgrsp-roadmap-checkbox[aria-pressed="true"]{background:#C8A66B!important}
#mgrsp-lw-roadmap .mgrsp-roadmap-checkbox:hover,#mgrsp-lw-roadmap .mgrsp-roadmap-checkbox:focus-visible{outline:3px solid rgba(200,166,107,.35)!important;outline-offset:2px}
.mgrsp-roadmap-taskcopy>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mgrsp-roadmap-taskcopy strong{font-size:15px;color:#202C34}
.mgrsp-roadmap-taskcopy p{margin:5px 0;color:#4f5e67;line-height:1.45;font-size:13px}
.mgrsp-roadmap-taskcopy small{display:block;color:#68747b;font-size:11px}
.mgrsp-required,.mgrsp-optional{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;border-radius:999px;padding:3px 7px}
.mgrsp-required{background:#202C34;color:#fff}.mgrsp-optional{background:#eee8dd;color:#202C34}
.mgrsp-roadmap-task.done .mgrsp-roadmap-taskcopy strong{text-decoration:line-through;text-decoration-thickness:1px;color:#617078}
@media(max-width:700px){.mgrsp-roadmap-hero{display:block}.mgrsp-roadmap-meter{border-left:0;border-top:1px solid rgba(255,255,255,.25);padding:12px 0 0;margin-top:14px;text-align:left}.mgrsp-roadmap-phase-card>header{grid-template-columns:40px 1fr auto}}
