/* Screen-specific layout rules replace inherited badge and fixed-height geometry. */
body.workspace-v2 :is(#contractsView,#contentView,#checksView) .op-hidden{display:none!important}
body.workspace-v2 :is(#mainWorkspace,#uxView,#uxAgencyCold) :is(button,a){float:none!important;position:static!important;white-space:normal!important;overflow-wrap:anywhere;box-sizing:border-box}
body.workspace-v2 #detailPane .op-lead-status,body.workspace-v2 .lead-item .stage-pill,body.workspace-v2 .op-school-record .ux-pill,body.workspace-v2 .op-chip{position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:fit-content!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;padding:5px 9px!important;margin:0!important;border:0!important;border-radius:6px!important;line-height:1.4!important;font-size:11px!important;font-weight:500!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;box-shadow:none!important;background:#edf3ff!important;color:#3a609e!important}
body.workspace-v2 #detailPane .op-lead-status{margin-top:12px!important}
body.workspace-v2 .op-school-record{display:flex!important;flex-direction:column!important;gap:8px!important;height:auto!important;min-height:0!important;overflow:visible!important}
body.workspace-v2 .op-school-record .ux-row{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:9px!important;width:100%;height:auto!important}
body.workspace-v2 .op-school-record :is(strong,small){position:static!important;white-space:normal!important;line-height:1.6!important;display:block;max-width:100%;overflow-wrap:anywhere!important}
body.workspace-v2 .op-school-record .ux-row strong{font-weight:600!important;font-size:14px!important}
body.workspace-v2 :is(.lead-item-top,.detail-header,.ux-cold-card header){height:auto!important;min-height:0!important;overflow:visible!important}
body.workspace-v2 .ux-base-options button,body.workspace-v2 .ux-head .ux-actions button{flex:0 1 auto!important;height:auto!important;min-height:40px!important;line-height:1.5!important;max-width:100%!important;z-index:auto!important}
body.workspace-v2 .ux-base-options{align-items:flex-start!important;gap:10px!important}
body.workspace-v2 #contentTeamWorkloadGrid{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
body.workspace-v2 #contentTeamWorkloadGrid .content-summary-card{display:grid!important;grid-template-columns:minmax(220px,1.2fr) minmax(180px,1fr) auto!important;align-items:center!important;gap:18px!important;padding:12px 16px!important;border-radius:9px!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;box-shadow:none!important}
body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-avatar{width:34px;height:34px;border-radius:9px;font-size:11px}
body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-person{gap:10px;align-items:center}
body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-person h3{font-size:13px;margin:0 0 5px;line-height:1.45}
body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-person .ux-pill{font-size:10px;padding:2px 6px;font-weight:400;line-height:1.4}
body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-person small{font-size:10px;margin-top:4px}
body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-load{border:0;padding:0;gap:16px;justify-content:flex-start;flex-wrap:nowrap}
body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-load strong{font-size:20px!important;min-width:90px;line-height:1.2}
body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-load>span{max-width:none;font-size:11px}
body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-actions{margin:0}
body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-actions button{padding:7px 10px!important;min-height:32px!important;width:auto!important}
body.workspace-v2 #contentView :is(.content-ops-grid,.content-ops-grid.admin-single-panel){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;align-items:start!important}
body.workspace-v2 #contentClientsPanel{padding:22px!important;min-height:0!important;border-radius:12px!important}
body.workspace-v2 #contentClientStatusFilterWrap{display:none!important}
body.workspace-v2 #contentAdminSectionMenu{display:flex!important;gap:8px;flex-wrap:wrap;margin-bottom:16px;padding:0!important;border:0!important;background:transparent!important}
body.workspace-v2 #contentAdminSectionMenu button{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:7px;padding:10px 14px!important;width:auto!important;min-height:40px!important;font-size:12px!important}
body.workspace-v2 #contentAdminSectionMenu button small{display:none!important}
body.workspace-v2 .op-client-stats{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
body.workspace-v2 .op-client-stat{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--ux-line);background:white;border-radius:8px;font-size:12px;color:var(--ux-sub);min-height:40px}
body.workspace-v2 .op-client-stat.active{background:#edf4ff;border-color:#94b5f2;color:#285ebd}.op-client-stat strong{font-size:15px;font-weight:550}
body.workspace-v2 .op-search{display:flex;flex-direction:column;gap:7px;max-width:460px}.op-search>span{font-size:11px;color:#738198}
body.workspace-v2 #opClientCount{display:block;font-size:11px;color:var(--ux-sub);margin:12px 0}
body.workspace-v2 #contentClientList{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;max-height:none!important;overflow:visible!important}
body.workspace-v2 #contentClientList .content-client-card{display:flex!important;flex-direction:column!important;gap:13px!important;min-width:0!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;padding:18px!important;border:1px solid var(--ux-line)!important;border-radius:11px!important;background:#fff!important;box-shadow:none!important;position:static!important;cursor:pointer}
body.workspace-v2 #contentClientList .content-client-card[hidden]{display:none!important}
body.workspace-v2 .op-client-heading{display:flex;flex-direction:column;gap:9px;min-width:0;width:100%}
body.workspace-v2 #contentClientList .op-client-heading strong{font-size:16px!important;line-height:1.5!important;min-width:0;overflow-wrap:anywhere;white-space:normal!important}
body.workspace-v2 .op-client-heading .project-status{position:static!important;width:fit-content!important;max-width:100%!important;font-size:10px!important;font-weight:450;line-height:1.5!important;padding:4px 8px!important;min-height:0!important;height:auto!important;border-radius:5px;white-space:normal!important}
body.workspace-v2 #contentClientList .op-client-service{font-size:13px!important;line-height:1.6!important;color:var(--ux-sub);margin:0!important}
body.workspace-v2 .op-client-meta{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--ux-sub);line-height:1.6;overflow-wrap:anywhere;min-width:0}
body.workspace-v2 .op-client-actions{margin-top:auto;border-top:1px solid var(--ux-line);padding-top:14px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%}
body.workspace-v2 .op-client-actions :is(a,button){position:static!important;width:auto!important;max-width:100%;min-height:36px!important;padding:8px 11px!important;font-size:11px!important;line-height:1.5!important;white-space:normal!important;text-decoration:none}
body.workspace-v2 .op-muted{font-size:11px;color:var(--ux-sub)}
body.workspace-v2 #contentClientPage{padding:22px!important;max-width:100%;min-width:0}
body.workspace-v2 #contentClientPage .content-head{align-items:flex-start!important;gap:14px;flex-wrap:wrap}
body.workspace-v2 #contentClientPageTitle{font-size:24px!important;line-height:1.4!important;overflow-wrap:anywhere}
body.workspace-v2 #contentClientPage .content-client-section{padding:18px!important;border:1px solid var(--ux-line)!important;border-radius:10px!important;box-shadow:none!important;margin-top:12px;min-width:0}
body.workspace-v2 #contentClientPage :is(input,textarea,select){max-width:100%;min-width:0}
body.workspace-v2 #contentClientPage table{font-size:12px!important;line-height:1.5!important;max-width:100%}
body.workspace-v2 #contentClientPage :is(.content-table-wrap,.content-plan-table-wrap,.ad-table-wrap){overflow-x:auto!important;max-width:100%}
body.workspace-v2 .op-project-banner{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:22px;min-width:0}
body.workspace-v2 .op-project-banner>div{flex:1;min-width:120px}.op-project-banner h3{font-size:19px!important;line-height:1.4;margin:0 0 5px!important;overflow-wrap:anywhere}.op-project-banner small{font-size:11px;color:#738198}
body.workspace-v2 .op-project-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#ecf2ff;color:#2864d5;font-size:15px;flex-shrink:0}
body.workspace-v2 .op-project-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0;padding-top:20px;border-top:1px solid var(--ux-line)}.op-project-facts dt{font-size:10px;color:#738198;margin-bottom:6px}.op-project-facts dd{font-size:13px;line-height:1.65;margin:0;overflow-wrap:anywhere}
body.workspace-v2 .op-project-note{padding-top:20px}.op-project-note h4{font-size:12px;margin:0 0 8px}.op-project-note p{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
body.workspace-v2 .op-project-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.op-project-links a{position:static!important;text-decoration:none;font-size:12px;max-width:100%;white-space:normal}
body.workspace-v2 #contractsView>.panel-view-card,body.workspace-v2 #checksView>.panel-view-card{padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
body.workspace-v2 :is(#contractsView,#checksView)>.panel-view-card>.content-head{margin-bottom:20px;max-width:700px}.content-subtitle{font-size:13px!important;line-height:1.7!important}
body.workspace-v2 #opContractSteps{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}
body.workspace-v2 #opContractSteps button{display:flex;align-items:center;gap:8px;background:white;border:1px solid var(--ux-line);border-radius:8px;padding:10px 14px;color:var(--ux-sub);font-size:12px;min-height:42px}
body.workspace-v2 #opContractSteps button>span{font-size:10px;background:#eef2f7;color:#718198;border-radius:50%;width:20px;height:20px;display:grid;place-items:center;flex-shrink:0}
body.workspace-v2 #opContractSteps button[aria-current=true]{background:#edf4ff;border-color:#8eb2f3;color:#225fc7}body.workspace-v2 #opContractSteps button:disabled{opacity:.5;cursor:default}
body.workspace-v2 #contractsView .contracts-workspace{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;max-width:1050px;align-items:start!important}
body.workspace-v2 #contractsView[data-step="3"] .contracts-workspace{grid-template-columns:minmax(0,1fr) 280px!important}
body.workspace-v2 #contractsView .contract-step-card,body.workspace-v2 #contractsView .contract-summary-card{background:white!important;border:1px solid var(--ux-line)!important;border-radius:12px!important;box-shadow:none!important;padding:22px!important;min-width:0!important;position:static!important}
body.workspace-v2 #contractsView .contract-step-number{display:none!important}
body.workspace-v2 #contractsView .contract-step-head{display:block!important;margin-bottom:20px}.contract-step-head strong{font-size:17px!important;font-weight:550}.contract-step-head p{font-size:12px!important;line-height:1.6!important;margin:8px 0 0!important;color:#738198!important}
body.workspace-v2 #contractsView :is(.contracts-form-grid,.contract-requisites-grid){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
body.workspace-v2 #contractsView :is(.text-input,.detail-textarea){font-size:14px!important;line-height:1.5!important;min-height:42px!important;max-width:100%;min-width:0}
body.workspace-v2 #contractsView textarea{min-height:200px!important;padding:12px!important;margin-top:8px}
body.workspace-v2 #contractsView .contracts-parse-row{display:flex!important;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-top:16px}.contract-parse-status{font-size:12px!important;line-height:1.7!important;flex:1 1 220px;overflow-wrap:anywhere}
body.workspace-v2 .op-contract-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:18px 0;max-width:1050px}#opContractHint{font-size:12px;color:#bd3841;line-height:1.6}
body.workspace-v2 #contractsView .contract-summary-list{display:grid;gap:16px}.contract-summary-list>div{display:block!important}.contract-summary-list dt{font-size:11px!important;margin-bottom:5px}.contract-summary-list dd{font-size:13px!important;line-height:1.6;margin:0!important;overflow-wrap:anywhere}
body.workspace-v2 #contractsView .contracts-actions{display:flex!important;flex-direction:column;align-items:stretch;gap:10px;margin-top:20px}.contracts-actions p{font-size:11px!important;line-height:1.6!important}
body.workspace-v2 .contract-extra-fields{margin-top:20px;border-top:1px solid var(--ux-line);padding-top:15px}.contract-extra-fields summary{font-size:12px;cursor:pointer;margin-bottom:15px}
body.workspace-v2 .op-check-state{display:flex;gap:12px;padding:18px;background:white;border:1px solid var(--ux-line);border-radius:12px;margin-bottom:12px}.op-check-state>div{min-width:0}.op-check-state strong{font-size:14px}.op-check-state small{display:block;font-size:12px;color:#738198;line-height:1.6;margin-top:6px;overflow-wrap:anywhere}
body.workspace-v2 .op-state-dot{width:8px;height:8px;border-radius:50%;background:#a7b3c6;flex-shrink:0;margin-top:5px}.op-state-dot.running{background:#32a477}.op-state-dot.paused{background:#e3a03b}
body.workspace-v2 .op-check-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.op-check-metrics>div{display:flex;flex-direction:column;gap:8px;padding:16px;background:white;border:1px solid #dce4ef;border-radius:10px;min-width:0}.op-check-metrics small{font-size:11px;color:#738198;line-height:1.5}.op-check-metrics strong{font-size:24px;font-weight:500}
body.workspace-v2 .op-check-channel-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.op-check-channel-results>div{padding:14px;background:#fff;border:1px solid #dce4ef;border-radius:9px;display:flex;flex-direction:column;gap:7px;min-width:0}.op-check-channel-results strong{font-size:13px}.op-check-channel-results span{font-size:12px}.op-check-channel-results small{font-size:10px;color:#738198;line-height:1.6}
body.workspace-v2 #checksView .checks-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:14px!important;margin:20px 0!important}
body.workspace-v2 #checksView .checks-box{padding:20px!important;background:white!important;border:1px solid var(--ux-line)!important;border-radius:12px!important;display:flex;flex-direction:column;gap:14px;min-width:0}
body.workspace-v2 #checksView .content-checkbox-row{display:flex!important;align-items:flex-start!important;gap:10px!important;padding:12px!important;border:1px solid #dce4ef!important;border-radius:8px!important;background:white!important;font-size:13px!important;line-height:1.6!important;min-width:0;height:auto!important;min-height:0!important}
body.workspace-v2 #checksView .content-checkbox-row input{width:16px;height:16px;flex:0 0 16px;margin-top:3px;accent-color:#2467ea}.content-checkbox-row span{min-width:0;overflow-wrap:anywhere}
body.workspace-v2 #checksView .checker-channel-grid{display:flex!important;flex-wrap:wrap!important;gap:8px!important}.checker-channel-card{min-width:0!important}.checker-channel-card span{font-size:12px!important}
body.workspace-v2 #checksView .checker-channel-card{padding:10px!important;border-radius:8px!important;display:flex!important;align-items:center;gap:8px;background:white!important;border:1px solid #dce4ef!important;min-height:40px!important}
body.workspace-v2 #checksView .checker-channel-card:has(input:checked){background:#edf4ff!important;border-color:#84abf0!important}
body.workspace-v2 #checksView .checks-actions{padding:0!important;gap:8px!important;flex-wrap:wrap!important;margin:16px 0!important}
body.workspace-v2 .op-check-details{border:1px solid var(--ux-line);background:white;border-radius:10px;padding:14px 16px;margin:12px 0}.op-check-details summary{font-size:12px;cursor:pointer}.op-check-details pre{margin-top:16px!important;white-space:pre-wrap!important;overflow-wrap:anywhere;font-size:11px!important;line-height:1.8!important;max-height:380px;overflow:auto}
body.workspace-v2 .op-diagnostics{display:grid;gap:12px;margin-top:16px}.op-diagnostics>div{padding:12px;border:1px solid #dce4ef;border-radius:8px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}.op-diagnostics strong{font-size:12px}.op-diagnostics p{font-size:12px;line-height:1.6;margin:0;width:100%;overflow-wrap:anywhere}
@media(max-width:1100px){body.workspace-v2 #contentTeamWorkloadGrid .content-summary-card{grid-template-columns:minmax(160px,1fr) minmax(130px,1fr) auto!important;gap:12px!important}body.workspace-v2 #contractsView[data-step="3"] .contracts-workspace{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:700px){body.workspace-v2 #contentTeamWorkloadGrid .content-summary-card{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;padding:12px!important}body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-person{grid-column:1/-1}body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-load{gap:10px;flex-wrap:wrap}body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-load strong{font-size:18px!important;min-width:65px}body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-load>span{font-size:10px}body.workspace-v2 #contentClientList,body.workspace-v2 #contractsView :is(.contracts-form-grid,.contract-requisites-grid),body.workspace-v2 #checksView .checks-layout{grid-template-columns:minmax(0,1fr)!important}body.workspace-v2 #contentClientsPanel,body.workspace-v2 #contentClientPage{padding:16px!important}body.workspace-v2 #contentClientPageTitle{font-size:21px!important}.op-project-facts{grid-template-columns:1fr!important}body.workspace-v2 .op-project-banner{gap:10px}body.workspace-v2 .op-check-metrics{gap:7px}.op-check-metrics>div{padding:12px}.op-check-metrics strong{font-size:20px}.op-check-metrics small{font-size:10px}.op-check-channel-results{grid-template-columns:1fr!important}body.workspace-v2 #contractsView :is(.contract-step-card,.contract-summary-card){padding:16px!important}body.workspace-v2 #opContractSteps{gap:6px}body.workspace-v2 #opContractSteps button{padding:8px 10px;font-size:11px;gap:6px}body.workspace-v2 #checksView .checks-box{padding:16px!important}}
body.workspace-v2 #checksView>.panel-view-card>.content-head .content-owner-line{font-size:13px!important;line-height:1.7!important;color:var(--ux-sub)!important}
body.workspace-v2 #opClientEmpty[hidden]{display:none!important}
body.workspace-v2 #opClientEmpty{padding:22px;border:1px dashed var(--ux-line);border-radius:10px;margin-top:12px}
@media(min-width:1101px){body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-person>div{display:grid;grid-template-columns:minmax(100px,1fr) auto;column-gap:12px;row-gap:3px;align-items:center}body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-person h3{margin:0!important}body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-person small{grid-column:1/-1;margin:0!important}body.workspace-v2 #contentTeamWorkloadGrid .ux-staff-person .ux-pill{max-width:175px}body.workspace-v2 #contentTeamWorkloadGrid .content-summary-card{padding:10px 14px!important}}
/* Keep role and page visibility stronger than the new layout rules. */
body.workspace-v2 #contentAdminSectionMenu.hidden,body.workspace-v2 #contentView #contentClientOpsGrid.hidden,body.workspace-v2 #contentView #contentClientsPanel.hidden,body.workspace-v2 #contentView #contentRemindersPanel.hidden{display:none!important}
