/* Shared screen hierarchy and component proportions. Preserve print layouts. */
@media screen {
:root{--central-title-size:26px;--central-section-size:18px;--central-title-leading:1.2;--upgrade-card-radius:12px;--upgrade-card-border:#e3dac6;--upgrade-card-shadow:0 8px 24px rgba(7,26,54,.055);--upgrade-card-padding:clamp(16px,1.8vw,22px);--upgrade-card-gap:14px;--upgrade-card-heading:16px}
body h1{font-size:var(--central-title-size)!important;line-height:var(--central-title-leading)!important;letter-spacing:-.015em}
body .upgrade-panel-heading h1,
body.match360-page .match360-intro h1,
body.industry-registration-page .ir-heading h1,
body.premium-dashboard .central-hero h1,
body.premium-industry .brandbar h1,
body.premium-profile .brandbar h1,
body.premium-access .access-hero h1,
body.premium-portal .workspace-hero h1,
body.talent-page .talent-hero h1,
body.referral-page .referral-shell h1{
font-size:var(--central-title-size);line-height:var(--central-title-leading);letter-spacing:-.015em;overflow-wrap:break-word
}

/* Upgrade premium system: one navy/gold language across public and internal screens. */
:root{--upgrade-navy:#071a36;--upgrade-navy-soft:#12345a;--upgrade-gold:#c69b4b;--upgrade-gold-pale:#f7f1e4;--upgrade-ink:#172b45;--upgrade-muted:#64748b}
body :is(button,a,input,select,textarea):focus-visible{outline:3px solid rgba(198,155,75,.42);outline-offset:2px}
body:is(.premium-form,.premium-profile,.industry-registration-page,.match360-page,.premium-dashboard,.premium-portal,.premium-reports,.premium-dispatches,.talent-page,.talent-admin-page,.financial-admin,.financial-client,.upgrade-documents-page,.upgrade-legal-page,.upgrade-contracts-page,.upgrade-proposals-page,.upgrade-proposal-public-page,.upgrade-company-page,.upgrade-checklist-page,.upgrade-admin-auth-page,.invite-registration-page,.referral-page) :is(.form-section,.opportunity-card,.portfolio-analysis,.central-card,.central-opportunity-summary,.ir-card,.ir-stage-two-card,.ir-stage-three-card,.ir-stage-four-card,.ir-stage-five-card,.match360-candidate-section,.match360-detail,.m360-config-card,.reports-card,.dispatch-card,.access-card,.talent-hero-card,.talent-form-panel,.ta-panel,.finance-panel,.client-card,.client-summary,.client-help,.charge-client-card,.editor,.footer-config,.contract-card,.proposal-card,.panel,.table-card,.detail,.report-preview,.paper,.auth-card){border-color:var(--upgrade-card-border);border-radius:var(--upgrade-card-radius);box-shadow:var(--upgrade-card-shadow)}
body:is(.premium-form,.premium-profile,.industry-registration-page,.match360-page,.premium-dashboard,.premium-portal,.premium-reports,.premium-dispatches,.talent-page,.talent-admin-page,.financial-admin,.financial-client,.upgrade-documents-page,.upgrade-legal-page,.upgrade-contracts-page,.upgrade-proposals-page,.upgrade-proposal-public-page,.upgrade-company-page,.upgrade-checklist-page,.upgrade-admin-auth-page,.invite-registration-page,.referral-page) :is(.section-head h2,.ir-card h2,.panel-head h2,.finance-panel h2,.reports-card h2,.dispatch-card h2,.ta-panel h2,.contract-card h2,.proposal-card h2,.editor h2,.paper h2,.auth-card h1,.access-card h2){color:var(--upgrade-navy)}
body:is(.premium-form,.premium-profile,.industry-registration-page,.match360-page,.premium-dashboard,.premium-portal,.premium-reports,.premium-dispatches,.talent-page,.talent-admin-page,.financial-admin,.financial-client,.upgrade-documents-page,.upgrade-legal-page,.upgrade-contracts-page,.upgrade-proposals-page,.upgrade-proposal-public-page,.upgrade-company-page,.upgrade-checklist-page,.upgrade-admin-auth-page,.invite-registration-page,.referral-page) :is(.section-head>span,.ir-building-icon,.talent-card-icon,.access-card-icon,.central-nav-icon,.rep-rail-icon,.m360-icon,.dispatch-icon,.report-icon,.finance-icon){color:var(--upgrade-gold)}
body:is(.upgrade-contracts-page,.upgrade-proposals-page,.upgrade-company-page,.upgrade-checklist-page,.upgrade-legal-page) :is(.top,.finance-top,.reports-top,.topbar){border-top:3px solid var(--upgrade-gold)}
body:is(.premium-form,.premium-profile,.industry-registration-page,.match360-page,.premium-dashboard,.premium-portal,.premium-reports,.premium-dispatches,.talent-page,.talent-admin-page,.financial-admin,.financial-client,.upgrade-documents-page,.upgrade-legal-page,.upgrade-contracts-page,.upgrade-proposals-page,.upgrade-proposal-public-page,.upgrade-company-page,.upgrade-checklist-page,.upgrade-admin-auth-page,.invite-registration-page,.referral-page) :is(.eyebrow,.section-kicker,.panel-kicker){color:#98743a}
body:is(.upgrade-contracts-page,.upgrade-proposals-page,.upgrade-company-page,.upgrade-checklist-page) :is(.hero,.finance-hero){border-color:rgba(198,155,75,.55)}
body:is(.upgrade-documents-page,.upgrade-legal-page) .shell>header{position:relative;overflow:hidden;padding:16px 18px 14px;border:1px solid rgba(198,155,75,.48);border-left:4px solid var(--upgrade-gold);border-radius:12px;background:linear-gradient(112deg,#071a36 0%,#16395f 100%);box-shadow:0 10px 26px rgba(7,26,54,.12)}
body:is(.upgrade-documents-page,.upgrade-legal-page) .shell>header .eyebrow{color:#e4c77f}
body:is(.upgrade-documents-page,.upgrade-legal-page) .shell>header h1{color:#fff}
body:is(.upgrade-documents-page,.upgrade-legal-page) .shell>header .intro{color:#d5deea}
body:is(.upgrade-documents-page,.upgrade-legal-page) .shell>header .back{color:#fff;border-color:rgba(228,199,127,.5);background:rgba(255,255,255,.07)}
body.upgrade-documents-page .shell>header{margin-bottom:14px}
body.upgrade-legal-page .shell>header{margin:18px 0 16px}
body.upgrade-legal-page .paper{border:1px solid var(--upgrade-card-border);border-top:3px solid var(--upgrade-gold);box-shadow:var(--upgrade-card-shadow)}
body.upgrade-legal-page .tabs [aria-selected="true"],body.upgrade-legal-page .tabs .active{box-shadow:inset 0 -2px var(--upgrade-gold)}
@media(max-width:620px){
body:is(.upgrade-documents-page,.upgrade-legal-page) .shell>header{padding:13px 14px;border-radius:10px}
body:is(.upgrade-documents-page,.upgrade-legal-page) .shell>header .intro{font-size:12px;line-height:1.4}
}
body .upgrade-panel-primary h2,
body .upgrade-panel-section-title h2,
body .central-summary-heading h2,
body .central-card-heading h2,
body.match360-page .match360-section-heading h2{
font-size:var(--central-section-size);line-height:1.3
}
body.talent-page .talent-hero-card h2,
body.talent-page .talent-panel-heading h2{font-size:var(--central-section-size);line-height:1.3}
body .upgrade-panel-heading{padding:6px 2px 16px}
body .upgrade-panel-heading>p:last-child{margin-top:6px;font-size:13px;line-height:1.45}
body .upgrade-panel-primary{gap:14px;padding:18px}
body .upgrade-panel-primary p{font-size:13px;line-height:1.45}
body.match360-page .match360-intro>p:last-child,
body.industry-registration-page .ir-heading p:last-child{font-size:13px;line-height:1.45}
@media(max-width:620px){
:root{--central-title-size:22px;--central-section-size:17px;--upgrade-card-padding:14px;--upgrade-card-gap:11px;--upgrade-card-heading:15px}
body .upgrade-panel-primary{padding:14px;gap:12px}
}
}

/* Complete screen frames; printed reports retain their own page layout. */
@media screen {
body.match360-page .match360-shell{box-sizing:border-box;border:1px solid #d4bb81;border-radius:10px;margin-top:14px;margin-bottom:16px;width:min(1440px,calc(100% - 32px));min-height:calc(100dvh - 116px)}
body.premium-portal #workspace:not([hidden]){box-sizing:border-box;border:1px solid #d4bb81;border-radius:10px;padding:16px;min-height:calc(100dvh - 150px)}
body.premium-representative .rep-main-column{border:1px solid #d4bb81;box-sizing:border-box;border-radius:8px}
@media(max-width:620px){body.match360-page .match360-shell{width:calc(100% - 16px);margin-top:8px;margin-bottom:10px;min-height:0}body.premium-portal #workspace:not([hidden]){padding:11px;min-height:0}}
}

/* Shared premium card system. Heights remain content-led; sibling cards align by grid. */
@media screen {
:is(body.premium-form .form-section,body.premium-profile .opportunity-card,body.premium-representative .opportunity-card,body.premium-profile .portfolio-analysis,body.premium-dashboard .central-card,body.premium-dashboard .central-opportunity-summary,body.industry-registration-page .ir-card,body.industry-registration-page .ir-stage-two-card,body.industry-registration-page .ir-stage-three-card,body.industry-registration-page .ir-stage-four-card,body.industry-registration-page .ir-stage-five-card,body.match360-page .match360-candidate-section,body.match360-page .match360-detail,body.match360-config-page .m360-config-card,body.premium-reports .reports-card,body.premium-access .access-card,body.talent-page .talent-hero-card,body.talent-page .talent-form-panel,body.talent-admin-page .ta-panel,body.financial-admin .finance-panel,body.financial-client :is(.client-card,.client-summary,.client-help,.charge-client-card),body:not(.premium-portal) :is(.editor,.footer-config,.contract-card,.proposal-card,.panel,.table-card,.detail,.report-preview)){
border-radius:var(--upgrade-card-radius);box-shadow:var(--upgrade-card-shadow)
}
body.premium-form .form-section,body.premium-profile .opportunity-card,body.premium-representative .opportunity-card,body.premium-profile .portfolio-analysis,body.premium-dashboard .central-card,body.premium-dashboard .central-opportunity-summary,body.match360-page .match360-candidate-section,body.match360-config-page .m360-config-card,body.premium-reports .reports-card,body.premium-access .access-card,body.talent-page .talent-hero-card,body.talent-page .talent-form-panel,body.talent-admin-page .ta-panel,body.financial-admin .finance-panel,body:not(.premium-portal) :is(.editor,.footer-config,.contract-card,.proposal-card,.panel){padding:var(--upgrade-card-padding)}
body.premium-dashboard .central-card,body.premium-dashboard .central-opportunity-summary,body.match360-page .match360-candidate-section,body.match360-page .match360-detail,body.match360-config-page .m360-config-card,body.premium-reports .reports-card,body.industry-registration-page .ir-card,body.industry-registration-page .ir-stage-two-card,body.industry-registration-page .ir-stage-three-card,body.industry-registration-page .ir-stage-four-card,body.industry-registration-page .ir-stage-five-card,body.premium-profile .form-section,body.premium-profile .opportunity-card,body.premium-representative .opportunity-card,body.premium-profile .portfolio-analysis,body.talent-page .talent-hero-card,body.talent-page .talent-form-panel,body.talent-admin-page .ta-panel,body.financial-admin .finance-panel,body:not(.premium-portal) :is(.contract-card,.proposal-card,.table-card,.detail,.report-preview){border-color:var(--upgrade-card-border)}
body.industry-registration-page :is(.ir-stage-two-card,.ir-stage-three-card,.ir-stage-four-card,.ir-stage-five-card)>summary{min-height:52px;padding:8px 12px}
body.industry-registration-page :is(.ir-stage-two-card,.ir-stage-three-card,.ir-stage-four-card,.ir-stage-five-card)>summary h2{font-size:var(--upgrade-card-heading);line-height:1.25}
body.industry-registration-page :is(.ir-stage-two-card,.ir-stage-three-card,.ir-stage-four-card,.ir-stage-five-card)>summary p{font-size:11px;line-height:1.4}
body.match360-page .match360-group-card{border-radius:10px}
body.match360-page .match360-candidate-section{gap:var(--upgrade-card-gap)}
body.premium-dashboard .central-card-heading h2,body.premium-dashboard .central-summary-heading h2,body.premium-access .access-card h2,body.talent-page .talent-hero-card h2{font-size:var(--central-section-size);line-height:1.3}
body.match360-config-page .m360-config-card h2,body.premium-reports .reports-card h2,body:not(.premium-portal) :is(.contract-card,.proposal-card,.panel) h2{font-size:var(--upgrade-card-heading);line-height:1.3}
@media(max-width:620px){body.industry-registration-page :is(.ir-stage-two-card,.ir-stage-three-card,.ir-stage-four-card,.ir-stage-five-card)>summary{min-height:48px;padding:7px 10px}}
}

/* Compact, aligned title row for internal legal-document editing. */
@media screen {
body.upgrade-documents-page .shell>header{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"eyebrow eyebrow" "title back" "intro intro";align-items:center;column-gap:16px;padding:8px 0 16px;border-bottom:1px solid var(--upgrade-card-border)}
body.upgrade-documents-page .shell>header .back{grid-area:back;justify-self:end;align-self:center;margin:0;padding:8px 12px;border:1px solid var(--upgrade-card-border);border-radius:9px;background:#fff;color:#17385b;font-size:12px;line-height:1.2}
body.upgrade-documents-page .shell>header .eyebrow{grid-area:eyebrow;margin:0 0 4px}
body.upgrade-documents-page .shell>header h1{grid-area:title;margin:0;color:#071a36;font-size:var(--central-title-size)!important}
body.upgrade-documents-page .shell>header .intro{grid-area:intro;max-width:720px;margin:5px 0 0;font-size:13px;line-height:1.45}
body.upgrade-documents-page .shell{padding-top:22px}
body.upgrade-documents-page .shell>header{padding-bottom:14px}
body.upgrade-documents-page .editor-head h2,body.upgrade-documents-page .footer-config h2{font-size:var(--central-section-size);line-height:1.3}
body.upgrade-documents-page .field textarea{height:260px;min-height:0}
@media(max-width:420px){body.upgrade-documents-page .shell>header{grid-template-columns:1fr;grid-template-areas:"eyebrow" "title" "back" "intro";gap:0}body.upgrade-documents-page .shell>header .back{justify-self:start;margin-top:8px}body.upgrade-documents-page .field textarea{height:220px;min-height:0}}
}

/* Final high-specificity polish for the legal surfaces. */
@media screen {
body.upgrade-documents-page .shell>header{padding:16px 18px 14px;border:1px solid rgba(198,155,75,.48);border-left:4px solid var(--upgrade-gold);border-radius:12px;background:linear-gradient(112deg,#071a36 0%,#16395f 100%);box-shadow:0 10px 26px rgba(7,26,54,.12)}
body.upgrade-documents-page .shell>header .eyebrow{color:#e4c77f}
body.upgrade-documents-page .shell>header h1{color:#fff!important}
body.upgrade-documents-page .shell>header .intro{color:#d5deea}
body.upgrade-documents-page .shell>header .back{color:#fff;background:rgba(255,255,255,.07);border-color:rgba(228,199,127,.5)}
body.upgrade-documents-page .editor{border:1px solid #dfd3b8;border-top:3px solid var(--upgrade-gold)}
body.upgrade-documents-page .footer-config{border-color:#dfd3b8;border-top:2px solid rgba(198,155,75,.8)}
body.upgrade-legal-page .shell>header{padding:17px 19px 15px;border:1px solid rgba(198,155,75,.48);border-left:4px solid var(--upgrade-gold);border-radius:12px;background:linear-gradient(112deg,#071a36 0%,#16395f 100%);box-shadow:0 10px 26px rgba(7,26,54,.12)}
body.upgrade-legal-page .shell>header .eyebrow{color:#e4c77f}
body.upgrade-legal-page .shell>header h1{color:#fff!important}
body.upgrade-legal-page .shell>header .intro{color:#d5deea}
body.upgrade-legal-page .paper{border:1px solid #dfd3b8;border-top:3px solid var(--upgrade-gold);box-shadow:var(--upgrade-card-shadow)}
body.upgrade-legal-page .tabs .active{border-color:var(--upgrade-navy);box-shadow:inset 0 -2px var(--upgrade-gold)}
body.upgrade-legal-page .tabs button:not(.active):hover{border-color:#c7a967;color:var(--upgrade-navy)}
@media(max-width:620px){
body.upgrade-documents-page .shell>header,body.upgrade-legal-page .shell>header{padding:13px 14px;border-radius:10px}
body.upgrade-documents-page .shell>header .intro,body.upgrade-legal-page .shell>header .intro{font-size:12px;line-height:1.4}
}
}
