.mg-page{gap:22px}.mg-page .page-heading{margin-bottom:4px}.mg-page h1{overflow-wrap:anywhere}.mg-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.mg-metric{display:flex;flex-direction:column;align-items:flex-start;gap:14px;text-align:left;padding:22px;background:var(--panel);border:1px solid var(--line);border-radius:12px;color:var(--ink)}button.mg-metric:hover{border-color:var(--control-line);background:var(--subtle)}.mg-metric-value{font-size:42px;font-weight:500;letter-spacing:-1.5px;line-height:1}.mg-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.mg-dashboard-card{height:100%;position:relative;padding-bottom:52px}.mg-dashboard-card:last-child:nth-child(odd){grid-column:1/-1}.mg-card-order{position:absolute;bottom:12px;right:14px;display:flex;gap:4px}.mg-card-order .button{font-size:10px;min-height:28px}.mg-status-chart{display:grid;grid-template-columns:minmax(140px,.9fr) minmax(150px,1fr);gap:25px;align-items:center}.mg-donut{width:100%;max-width:240px;margin:auto}.mg-bars{display:flex;flex-direction:column;gap:15px}.mg-bar-row{display:grid;grid-template-columns:1fr auto;gap:7px;background:transparent;border:0;text-align:left;color:var(--ink);font-size:12px;padding:0}.mg-bar-row meter{grid-column:1/-1;width:100%;height:6px}.mg-bar-row>span{overflow-wrap:anywhere}.mg-page meter{appearance:none;border:0;background:var(--selected);border-radius:5px;overflow:hidden}.mg-page meter::-webkit-meter-bar{border:0;background:var(--selected);height:100%}.mg-page meter::-webkit-meter-optimum-value{background:var(--ink)}.mg-page meter::-moz-meter-bar{background:var(--ink)}.mg-spend{display:flex;justify-content:space-between;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line)}.mg-spend strong{display:block;font-size:29px;font-weight:500;letter-spacing:-.7px;margin-top:8px}.mg-date-list{display:flex;flex-direction:column}.mg-date-row{display:flex;gap:15px;align-items:center;border:0;border-bottom:1px solid var(--line);padding:14px 0;background:transparent;color:var(--ink);text-align:left;width:100%}.mg-date-row:last-child{border-bottom:0}.mg-date-row>span:nth-child(2){flex:1;min-width:0}.mg-date-row strong{font-size:12px;line-height:1.4;display:block;overflow-wrap:anywhere}.mg-date-row small{font-size:11px;display:block;margin-top:5px}.mg-date-tile{font-size:11px;min-width:81px;font-variant-numeric:tabular-nums;line-height:1.5;color:var(--muted)}.mg-performance-row{display:grid;grid-template-columns:1fr 75px 25px;align-items:center;gap:12px;width:100%;padding:13px 0;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);color:var(--ink);font-size:12px;line-height:1.4}.mg-performance-row meter{width:100%;height:6px}.mg-performance-summary{display:flex;align-items:baseline;gap:8px}.mg-performance-summary strong{font-size:44px;font-weight:500}.mg-performance-summary span{color:var(--muted);font-size:12px}.mg-coverage{display:grid;grid-template-columns:auto 1fr;gap:9px 18px;align-items:center}.mg-coverage>strong{font-size:30px;font-weight:500}.mg-coverage>span{color:var(--muted);font-size:12px}.mg-coverage meter{grid-column:1/-1;width:100%;height:8px}.mg-quality-row{display:flex;gap:10px;flex-wrap:wrap}.mg-duplicate-group{border:1px solid var(--line);padding:15px;border-radius:7px}.mg-duplicate-group strong,.mg-duplicate-group small{display:block;margin:6px 0}.mg-footnote{font-size:11px;color:var(--muted);line-height:1.6}.mg-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:10px}.mg-filters input[type=search]{flex:1 1 250px}.mg-filters>select,.mg-filters>input:not([type=search]){width:auto;flex:1 1 130px;max-width:190px}.mg-filters .checkbox{font-size:12px;white-space:nowrap}.mg-selection{position:sticky;top:0;z-index:3;display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:14px 18px;border:1px solid var(--control-line);background:var(--panel);box-shadow:0 8px 20px var(--shadow);border-radius:9px}.mg-selection strong{margin-right:auto;font-size:13px}.mg-selection[hidden]{display:none}.mg-title-link{padding:0;min-height:0;color:var(--ink);font-weight:600;text-align:left;justify-content:flex-start;line-height:1.5}.mg-contract-name{max-width:310px}.mg-contract-name small{display:block;margin-top:6px;font-size:11px;line-height:1.4}.mg-contract-name .badge{margin-top:6px}.mg-table td{vertical-align:middle}.mg-table td small{display:block;margin-top:5px}.mg-table td:first-child input[type=checkbox]{width:17px;height:17px}.mg-table td{font-size:12px}.mg-saved-view{display:flex;align-items:center;border:1px solid var(--line);border-radius:5px}.mg-saved-view>.button{border:0}.mg-saved-view>.quiet{font-size:10px;max-width:95px}.mg-record-summary{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.mg-record-summary>strong{font-size:26px;font-weight:500;letter-spacing:-.6px}.mg-record-summary>.muted{font-size:12px}.mg-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}.mg-tabs button{flex-shrink:0;white-space:nowrap}.mg-tabs button[aria-selected=true]{background:var(--selected);color:var(--ink)}.mg-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.mg-detail-grid>.panel:last-child:nth-child(odd){grid-column:1/-1}.mg-detail-grid .facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.mg-detail-grid .fact{min-width:0}.mg-detail-grid .fact>span:last-child{overflow-wrap:anywhere}.mg-source-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 0;border-bottom:1px solid var(--line)}.mg-source-row>span{font-size:12px;overflow-wrap:anywhere}.mg-source-row small{display:block;margin-top:5px}.mg-source-row .button{flex-shrink:0}.mg-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:25px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--ink);box-shadow:0 20px 90px var(--shadow);overflow:auto}.mg-dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}.mg-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.mg-dialog-head h2{font-size:22px}.mg-dialog .form{gap:20px;display:flex;flex-direction:column}.mg-dialog .field{font-size:12px}.mg-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.mg-form-grid>.field:has([name=title]){grid-column:1/-1}.mg-dialog textarea{min-height:85px}.mg-dialog [hidden]{display:none!important}.mg-contact-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;border:1px solid var(--line);border-radius:8px;padding:18px}.mg-contact-fields legend{font-size:12px;color:var(--muted);padding:0 6px}.mg-company-seeds{display:flex;flex-direction:column;gap:16px}.mg-company-seeds .row>span{font-size:13px}.mg-company-seeds small{display:block;margin-top:5px}.mg-contact{padding-bottom:15px;border-bottom:1px solid var(--line);font-size:13px;line-height:1.6;overflow-wrap:anywhere}.mg-document-preview{max-height:65dvh;overflow:auto;display:flex;flex-direction:column;gap:20px}.mg-document-preview section{padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--subtle)}.mg-document-preview h3{margin-bottom:15px}.mg-document-preview p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.mg-trend{width:100%;height:auto;max-height:220px;background:var(--subtle);border-radius:8px;padding:12px}.mg-task-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mg-task-card{padding:22px;display:flex;flex-direction:column;align-items:stretch;gap:14px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.mg-task-card h3{font-size:16px;line-height:1.4}.mg-task-card>p{font-size:12px;color:var(--muted)}.mg-task-card>.row:last-child{margin-top:auto}.mg-task-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:11px;color:var(--muted);overflow-wrap:anywhere}.mg-approval-steps{padding-left:20px;margin:0;font-size:11px}.mg-approval-steps li{padding:6px 0;overflow-wrap:anywhere}.mg-approval-steps .badge{margin-left:10px}.mg-action-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.mg-action-top select{max-width:230px}.mg-action-top p{font-size:12px}.mg-comment{border:1px solid var(--line);border-radius:9px;padding:20px;display:flex;flex-direction:column;gap:15px}.mg-comment p{font-size:13px}.mg-timeline{display:flex;flex-direction:column;gap:0}.mg-timeline article{padding:5px 0 23px 22px;margin-left:5px;border-left:1px solid var(--line);position:relative;display:flex;flex-direction:column;gap:9px;font-size:13px}.mg-timeline article:before{content:'';width:7px;height:7px;position:absolute;left:-4px;top:9px;border-radius:50%;background:var(--ink)}.mg-timeline small{font-size:11px}.mg-comparison{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}.mg-comparison-facts{display:flex;flex-direction:column;gap:18px}.mg-comparison .panel-header h2{font-size:17px;line-height:1.4}.mg-page .evidence-text{white-space:pre-wrap;overflow-wrap:anywhere}.mg-page details>summary{cursor:pointer;font-size:13px;padding:10px 0}.nav{overflow-y:auto;min-height:0}.sidebar{overflow:hidden}.sidebar-foot{flex-shrink:0;padding-top:16px}.mg-admin-nav>summary{font-size:11px;color:var(--muted);padding:12px;cursor:pointer}.mg-admin-nav .nav-button{width:100%}
@media(min-width:1600px){.mg-dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mg-dashboard-card:last-child:nth-child(odd){grid-column:auto}.mg-dashboard-card:last-child{grid-column:span 2}}
@media(max-width:1100px){.mg-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.mg-status-chart{grid-template-columns:1fr}.mg-donut{max-width:190px}.mg-task-list{grid-template-columns:1fr}.mg-detail-grid{grid-template-columns:1fr}.mg-detail-grid>.panel:last-child:nth-child(odd){grid-column:auto}}
@media(max-width:700px){.mg-page{gap:18px}.mg-page h1{font-size:26px}.mg-dashboard-grid{grid-template-columns:1fr}.mg-dashboard-card:last-child:nth-child(odd){grid-column:auto}.mg-status-chart{grid-template-columns:140px minmax(0,1fr);gap:18px}.mg-metric{padding:17px;gap:12px}.mg-metric-value{font-size:34px}.mg-metric .metric-label{font-size:11px}.mg-metric .metric-foot{font-size:10px;line-height:1.5}.mg-metrics{gap:10px}.mg-page .page-heading{align-items:flex-start}.mg-page .page-heading>.row{width:100%}.mg-page .page-heading .button{flex:1}.mg-dashboard-card{padding:20px 18px 52px}.mg-filters{padding:13px;gap:10px}.mg-filters input[type=search]{flex-basis:100%}.mg-filters>select,.mg-filters>input:not([type=search]){max-width:none;width:calc(50% - 10px);flex:1 1 120px;font-size:12px}.mg-selection{top:0;padding:12px;gap:8px}.mg-selection strong{width:100%}.mg-table{border:0;background:transparent;overflow:visible}.mg-table table,.mg-table tbody{display:block;width:100%;min-width:0}.mg-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.mg-table tr{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:18px;margin-bottom:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.mg-table td{display:block;border:0!important;padding:0!important;min-width:0;white-space:normal;overflow-wrap:anywhere}.mg-table td:before{content:attr(data-label);display:block;font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);margin-bottom:7px}.mg-table td:has(.mg-contract-name){grid-column:1/-1;grid-row:1}.mg-table td:has(.mg-contract-name):before{display:none}.mg-contract-name{max-width:none}.mg-table td:has(input[type=checkbox]){grid-column:1/-1;display:flex;gap:10px;align-items:center}.mg-table td:has(input[type=checkbox]):before{margin:0}.mg-form-grid,.mg-contact-fields{grid-template-columns:1fr}.mg-form-grid>.field:has([name=title]){grid-column:auto}.mg-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:19px;border-radius:12px}.mg-dialog .form-actions{position:sticky;bottom:-19px;padding:14px 0;background:var(--panel);z-index:2}.mg-dialog .form-actions .button{width:100%}.mg-detail-grid .facts{gap:17px}.mg-task-card{padding:18px}.mg-record-summary{gap:10px}.mg-tabs{margin:0 -4px}.mg-tabs button{padding:10px;font-size:12px}.mg-task-meta{display:block;line-height:1.8}.mg-comparison{grid-template-columns:1fr}.mg-comparison-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.mg-action-top{align-items:flex-start;flex-direction:column}.mg-date-row{gap:10px}.mg-date-tile{min-width:68px;font-size:10px}.mg-date-row strong{font-size:12px}.mg-company-seeds>.row{align-items:flex-start}.mg-company-seeds>.row>.button{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.mg-page *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.survey-response{max-width:760px;margin:4vh auto;padding:24px}.survey-response label{display:flex;flex-direction:column;gap:10px;font-weight:600}.survey-response form{gap:24px}.survey-response textarea,.survey-response input,.survey-response select{width:100%}

.platform-tabs{padding-bottom:16px;border-bottom:1px solid var(--line)}.platform-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.platform-tabs .button{min-height:40px}.platform-metrics .metric-foot{line-height:1.5}@media(max-width:600px){.platform-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* A contained comparison table keeps policy positions and contract evidence
   aligned without changing the existing register or side-by-side view. */
.mg-policy-selected{display:flex;flex-wrap:wrap;gap:8px}.mg-policy-selected .badge{white-space:normal;line-height:1.5;overflow-wrap:anywhere}
.mg-policy-comparison{min-width:0}.mg-policy-comparison>button:first-child{align-self:flex-start}.mg-policy-comparison .button,.mg-policy-comparison select{min-height:44px}.mg-policy-comparison .button{white-space:normal;text-align:left;line-height:1.45}.mg-policy-comparison [aria-busy=true]{opacity:.75}
.mg-policy-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.mg-policy-toolbar .field{flex:1 1 300px;min-width:0}.mg-policy-toolbar select{width:100%;min-width:0;text-overflow:ellipsis}.mg-policy-toolbar>.button:last-child{margin-left:auto}
.mg-policy-guide{display:grid;grid-template-columns:1fr 1fr;gap:16px 28px;padding:20px 22px;border:1px solid var(--line);border-radius:10px;background:var(--panel);font-size:12px;line-height:1.65}.mg-policy-guide strong{display:block;margin-bottom:5px;font-size:13px}.mg-policy-guide p{color:var(--muted)}.mg-policy-guide details{grid-column:1/-1;border-top:1px solid var(--line);padding-top:2px}.mg-policy-guide details p+p{margin-top:10px}.mg-policy-comparison [data-filter][aria-pressed=true],.mg-policy-comparison [data-filter][aria-pressed=true]:hover{background:var(--ink);border-color:var(--ink);color:var(--panel)}.mg-policy-filter-status,.mg-policy-scroll-help{font-size:12px;line-height:1.6}.mg-policy-scroll-help{color:var(--muted)}
.mg-policy-matrix{max-width:100%;max-height:78dvh;overflow:auto;isolation:isolate;border:1px solid var(--control-line);border-radius:10px;background:var(--panel);scrollbar-width:thin;scrollbar-gutter:stable;overscroll-behavior:contain}.mg-policy-matrix:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.mg-policy-matrix table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:max-content;min-width:100%}.mg-policy-matrix th,.mg-policy-matrix td{width:278px;min-width:278px;max-width:278px;padding:20px;text-transform:none;letter-spacing:normal;font-size:12px;font-weight:400;line-height:1.6;vertical-align:top;white-space:normal;overflow-wrap:anywhere;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.mg-policy-matrix th:last-child,.mg-policy-matrix td:last-child{border-right:0}.mg-policy-matrix thead th{color:var(--ink);background:var(--subtle)}.mg-policy-matrix tr:hover{background:transparent}.mg-policy-matrix .mg-policy-standard{position:sticky;left:0;width:250px;min-width:250px;max-width:250px;background:var(--panel);color:var(--ink);z-index:1;border-right:2px solid var(--control-line)}.mg-policy-matrix thead .mg-policy-standard{background:var(--subtle)}.mg-policy-matrix tbody tr:last-child th,.mg-policy-matrix tbody tr:last-child td{border-bottom:0}.mg-policy-matrix h2{font-size:16px;line-height:1.5;font-weight:600;margin:0}.mg-policy-matrix p{font-size:12px;margin:0}.mg-policy-matrix small{display:block;font-size:11px;color:var(--muted);margin:0;line-height:1.6}.mg-policy-matrix .badge{display:inline-block;align-self:flex-start;white-space:normal;line-height:1.5;max-width:100%}.mg-policy-matrix details summary{min-height:44px;display:list-item;padding:11px 0;font-size:12px;line-height:1.6}.mg-policy-matrix details ul{padding-left:18px;margin:0}.mg-policy-matrix details li+li{margin-top:7px}
.mg-policy-caption{display:block;color:var(--muted);font-size:11px;font-weight:500;line-height:1.5}.mg-policy-contract,.mg-policy-cell{display:flex;flex-direction:column;gap:14px}.mg-policy-score{display:flex;flex-direction:column;gap:7px;border-bottom:1px solid var(--line);padding:3px 0 16px}.mg-policy-score>strong{font-size:30px;font-weight:500;line-height:1.2;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.mg-policy-coverage{display:flex;flex-direction:column;gap:7px}.mg-policy-coverage strong{font-size:12px}.mg-policy-coverage meter{width:100%;height:6px}.mg-policy-rule-title{display:block;font-size:14px;font-weight:600;margin-bottom:12px;line-height:1.6}.mg-policy-position{margin-top:16px}.mg-policy-position p{margin-top:7px}.mg-policy-standard>small{margin-top:12px}.mg-policy-matrix .mg-policy-departure{background:var(--error-bg)}.mg-policy-matrix .mg-policy-unknown{background:var(--subtle)}.mg-policy-risk{color:var(--red);font-size:12px}.mg-policy-cell>p{line-height:1.7}.mg-policy-next{border-top:1px solid var(--line);padding-top:10px;font-size:12px}.mg-policy-next strong{font-size:11px}.mg-policy-next p{margin-top:4px}.mg-policy-evidence{border-top:1px solid var(--line)}.mg-policy-evidence>div+div{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}.mg-policy-evidence blockquote{padding:0 0 0 10px;margin:0;border-left:2px solid var(--control-line);font-size:12px;line-height:1.7;white-space:pre-wrap}.mg-policy-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mg-policy-mobile-jump{display:none}
@media(max-width:700px){.mg-policy-guide{grid-template-columns:1fr;padding:16px;gap:14px}.mg-policy-toolbar{gap:10px}.mg-policy-toolbar .field{flex-basis:100%}.mg-policy-toolbar>.button:last-child{margin-left:0;width:100%;justify-content:center}.mg-policy-matrix{max-height:78dvh}.mg-policy-matrix th,.mg-policy-matrix td,.mg-policy-matrix .mg-policy-standard{width:250px;min-width:250px;max-width:250px;padding:16px}.mg-policy-matrix .mg-policy-standard{position:static}.mg-policy-mobile-jump{display:block}.mg-policy-mobile-jump select{max-width:100%;text-overflow:ellipsis}.mg-policy-comparison [data-filter]{flex:1 1 auto;justify-content:center;font-size:11px}.mg-policy-scroll-help{font-size:11px}}
