/* Shared personal-page quality layer. Internal portal and approved custom PPD are excluded. */
.d360-personal:not(.ph-page){--pq-radius:22px;--pq-space:24px}
.d360-personal:not(.ph-page) .pj-stage-wrap{max-width:1120px;width:calc(100% - 48px);margin-bottom:24px}
.d360-personal:not(.ph-page) :is(.pp-frame,.pp-header,.pp-bottom){max-width:1120px}
.d360-personal:not(.ph-page) .pj-stage{min-height:192px;gap:28px;padding:30px 34px;border-radius:22px;border-color:#dce7ef;background:linear-gradient(115deg,var(--pj-soft),#fff 82%)}
.d360-personal:not(.ph-page) .pj-stage .dm-scene{width:136px;height:144px}
.d360-personal:not(.ph-page) .pj-stage :is(h1,h2){font-size:28px;font-weight:700;line-height:1.25;letter-spacing:-.6px;margin:12px 0 12px;max-width:780px}
.d360-personal:not(.ph-page) .pj-stage p{font-size:14px;line-height:1.65}
.d360-personal:not(.ph-page) .pj-stage-label{font-size:12px;font-weight:600;padding:5px 12px}
.d360-personal .pj-stage-wrap--inline{width:100%!important;max-width:none!important}
.d360-personal .pj-service-copy{min-width:0;flex:1}
.d360-personal .pj-stage .pj-company{font-size:12px;color:#6b8190;margin:0 0 14px;font-weight:500}
.d360-personal .pj-service-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:22px}
.d360-personal .pj-service-actions .btn{min-height:44px;padding:11px 18px}
.d360-personal:not(.ph-page) .pp-contact{padding:28px 32px;border-radius:22px}
.d360-personal:not(.ph-page) :is(.panel,.nri-card,.nr-card,.nm-public-panel,.fs-card,.monitor-card,.public-sign-panel,.nrs-sign-card,.nrs-batch-card,.vo-sign-card){border-radius:20px}
.d360-personal:not(.ph-page) :is(.panel,.fs-card,.monitor-card)>:is(h2,h3){margin-top:0}
.d360-personal:not(.ph-page) input[type=file]::file-selector-button{font:inherit;cursor:pointer;border:1px solid #d8e3eb;border-radius:7px;background:#f3f7fa;color:#285b78;padding:8px 10px;margin-right:10px}
/* Insurance has a compact title once and a clear fact/action split. */
.d360-personal:has([data-family=insurance]) .wrap{padding-top:0}
.d360-personal:has([data-family=insurance]) .page-layout{grid-template-columns:minmax(0,1fr) 340px;gap:24px}
.d360-personal:has([data-family=insurance]) .company-panel{padding:28px 30px}
.d360-personal:has([data-family=insurance]) .company-panel h2{font-size:22px;line-height:1.35}
.d360-personal:has([data-family=insurance]) .action-panel{background:#fff;padding:26px}
.d360-personal:has([data-family=insurance]) .action-heading{margin-bottom:18px}
.d360-personal:has([data-family=insurance]) .action-panel h2{font-size:21px;line-height:1.3}
.d360-personal:has([data-family=insurance]) .action-panel .btn{min-height:46px}
.d360-personal:has([data-family=insurance]) .help-panel{padding:0 16px 16px}
/* Fedresurs was a legacy HTML renderer; every selector stays within its page. */
.d360-personal:has([data-family=fedresurs]) .pp-frame>.wrap{width:100%;max-width:none;padding:0}
.d360-personal:has([data-family=fedresurs]) .layout{display:grid;grid-template-columns:1fr;gap:22px}
.d360-personal:has([data-family=fedresurs]) .section{padding:28px 30px;border-radius:20px;border-color:#e0e8ef}
.d360-personal:has([data-family=fedresurs]) .section-head{margin-bottom:20px}
.d360-personal:has([data-family=fedresurs]) .section h2{font-size:21px;line-height:1.35}
.d360-personal:has([data-family=fedresurs]) .eyebrow{font-size:10px;font-weight:650;letter-spacing:.1em;margin-bottom:8px;color:#7a8d9b}
.d360-personal:has([data-family=fedresurs]) .facts{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px}
.d360-personal:has([data-family=fedresurs]) .fact-row{display:block;padding:0 0 14px;border:0;border-bottom:1px solid #e6edf2;border-radius:0;background:none}
.d360-personal:has([data-family=fedresurs]) .fact-label{display:block;font-size:12px;color:#7b8d9b;margin-bottom:6px}
.d360-personal:has([data-family=fedresurs]) .fact-value{display:block;font-size:14px;color:#274354;text-align:left;font-weight:550}
.d360-personal:has([data-family=fedresurs]) :is(.btn-green,.btn-primary){background:#285b78;border-color:#285b78;color:#fff}
.d360-personal:has([data-family=fedresurs]) .btn-outline{background:#fff;color:#285b78;border-color:#d4e1ea}
.d360-personal:has([data-family=fedresurs]) .invoice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.d360-personal:has([data-family=fedresurs]) .invoice-preview{width:100%;height:560px;min-height:0;border-radius:12px}
.d360-personal:has([data-family=fedresurs]) .publication-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:20px 0}
.d360-personal:has([data-family=fedresurs]) .publication-summary div{background:#f5f8fa;border-color:#e4ebf1;border-radius:12px;padding:12px}
.d360-personal:has([data-family=fedresurs]) .publication-summary span{font-size:10px;color:#7b8d9b;letter-spacing:.02em;font-weight:600}
.d360-personal:has([data-family=fedresurs]) .publication-table :is(th,td){padding:16px 12px;vertical-align:top;overflow-wrap:anywhere}
.d360-personal:has([data-family=fedresurs]) .method-grid{gap:20px}
.d360-personal:has([data-family=fedresurs]) .method{padding:24px;border-radius:14px;border-color:#dde7ef}
.d360-personal:has([data-family=fedresurs]) .method--primary{background:#f3f8fb}
.d360-personal:has([data-family=fedresurs]) .risk{background:#f8fafc;border-color:#e0e8ef}
.d360-personal:has([data-family=fedresurs]) .risk :is(.risk-list,.muted){color:#6c7f8d;font-size:13px;line-height:1.7}
.d360-personal:has([data-family=fedresurs]) .footer{display:none}
.d360-personal:has([data-family=fedresurs]) :is(.risk,.service-options){padding:0}
.d360-personal:has([data-family=fedresurs]) :is(.risk,.service-options)>summary{cursor:pointer;font-size:15px;font-weight:600;color:#285b78;padding:22px 28px}
.d360-personal:has([data-family=fedresurs]) :is(.risk,.service-options)>.pq-disclosure{padding:0 28px 26px}
@media(max-width:760px){
 .d360-personal:not(.ph-page) .pj-stage-wrap{width:calc(100% - 28px)}
 .d360-personal:not(.ph-page) .pj-stage{padding:24px 22px;gap:18px;min-height:160px;border-radius:20px}
 .d360-personal:not(.ph-page) .pj-stage .dm-scene{width:88px;height:104px}
 .d360-personal:not(.ph-page) .pj-stage :is(h1,h2){font-size:23px;line-height:1.3;letter-spacing:-.4px}
 .d360-personal:not(.ph-page) .pj-stage p{font-size:13px}
 .d360-personal:has([data-family=insurance]) .page-layout{grid-template-columns:1fr;gap:0}
 .d360-personal:has([data-family=insurance]) .side-column{grid-row:1}
 .d360-personal:has([data-family=fedresurs]) :is(.facts,.invoice-grid,.method-grid){grid-template-columns:1fr}
 .d360-personal:has([data-family=fedresurs]) .section{padding:22px 20px}
 .d360-personal:has([data-family=fedresurs]) .publication-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
 .d360-personal:has([data-family=fedresurs]) .invoice-preview{height:450px}
 .d360-personal:has([data-family=fedresurs]) :is(.risk,.service-options){padding:0}
 .d360-personal:not(.ph-page) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]),select,textarea){font-size:16px}
}
@media(max-width:480px){
 .d360-personal:not(.ph-page) .pj-stage{position:relative;gap:14px;align-items:flex-start;padding:22px 18px}
 .d360-personal:not(.ph-page) .pj-stage .dm-scene{width:64px;height:83px;margin-top:24px}
 .d360-personal:not(.ph-page) .pj-stage :is(h1,h2){font-size:21px}
 .d360-personal:not(.ph-page) .pj-stage .pj-company{font-size:11px}
 .d360-personal .pj-service-actions{margin-left:-78px;padding-top:10px}
 .d360-personal .pj-service-actions .btn{width:100%}
 .d360-personal:not(.ph-page) .pp-contact{padding:24px 22px}
}
@media(prefers-reduced-motion:reduce){.d360-personal .dm-scene *{animation:none!important;transition:none!important;stroke-dashoffset:0!important}}
@media(min-width:651px) and (max-width:760px){.d360-personal:not(.ph-page) .pj-stage-wrap{width:calc(100% - 48px)}}

/* These legacy hero rules were white-on-white after the common shell rollout. */
.d360-personal .pp-frame :is(.install-hero,.happ-hero){color:#243c4d}
.d360-personal .pp-frame :is(.install-hero,.happ-hero) p{color:#697f8f}
.d360-personal .pp-frame .install-hero__eyebrow{color:#718b9c}

.d360-personal:has([data-family=fedresurs]) .invoice-preview-disclosure{border:1px solid #e1e9ef;border-radius:12px;margin-top:20px;overflow:hidden}
.d360-personal:has([data-family=fedresurs]) .invoice-preview-disclosure>summary{padding:16px 20px;color:#285b78;cursor:pointer;font-weight:600}
.d360-personal:has([data-family=fedresurs]) .invoice-preview-disclosure .invoice-preview{display:block;border:0;margin:0}
