/* Pre-test presentation refinements. No form, visibility or workflow overrides. */
html body.peso-admin-workspace[data-peso-page^="admin-"] .admin-page-intro,
html body.peso-admin-workspace[data-peso-page^="admin-"] .admin-page-intro :is(h1,p) {
    text-align: left !important;
}
html body[data-peso-page="employer-calendar"] #jobFilter.filter-select {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
}
html body[data-peso-page="employer-login"] .employer-login-shell {
    width: min(100% - 32px, 480px) !important;
    margin: 36px auto 24px !important;
    padding: 0 !important;
    min-height: 0 !important;
}
html body[data-peso-page="employer-login"] .employer-login-card {
    padding: 32px !important;
    border-radius: 24px !important;
}
html body[data-peso-page="employer-login"] .auth-form-wrap { padding: 0 !important; width: 100% !important; }
html body[data-peso-page="employer-login"] .auth-form-heading { text-align: left !important; margin: 28px 0 24px !important; }
html body[data-peso-page="employer-login"] .auth-form-heading h1 { font-size: clamp(26px,5vw,32px) !important; line-height: 1.2 !important; }
html body[data-peso-page="employer-login"] .auth-field { margin-bottom: 20px !important; }
html body[data-peso-page="employer-login"] .auth-input-wrap { min-height: 52px !important; }
html body[data-peso-page="employer-login"] .auth-submit { min-height: 52px !important; border-radius: 12px !important; }
html body[data-peso-page="employer-login"] .auth-secondary-action { margin-top: 22px !important; line-height: 1.6; }
@media(max-width:480px) {
    html body[data-peso-page="employer-login"] .employer-login-card { padding: 24px !important; }
    html body[data-peso-page="employer-login"] .employer-login-shell { margin-top: 24px !important; }
}
/* Keep optional floating tools out of the job-details application area. */
html body:has(.alive-jobmodal:not([hidden])) :is(.peso-assistant,.peso-back-to-top) {
    visibility: hidden !important;
    pointer-events: none !important;
}
html body.alive-page .pretest-footer-links { display:flex; flex-wrap:wrap; gap:12px 24px; margin-block:20px; }
html body.alive-page .pretest-footer-links a { color:var(--a-ink); font-size:14px; text-decoration:underline; text-underline-offset:4px; }
html body.alive-page .alive-jobmodal__footer .alive-btn--primary { background:#087443 !important; color:#fff !important; }
html body[data-peso-page] {
    --pt-action: #087443;
    --pt-focus: #b18400;
}
html body[data-peso-page] :is(h1,h2,h3) { text-wrap: balance; }
html body[data-peso-page] :is(p,.helper-text,.field-hint) { overflow-wrap: anywhere; }
html body[data-peso-page] :is(button,a,input,select,textarea):focus-visible {
    outline: 3px solid var(--pt-focus) !important;
    outline-offset: 3px !important;
}
html body[data-peso-page] :is(button,input[type="submit"]):disabled {
    opacity: .65;
    cursor: not-allowed !important;
    transform: none !important;
}
html body[data-peso-page] [aria-busy="true"] { cursor: progress; }
html body[data-peso-page] :is(input,textarea)[aria-invalid="true"] {
    border-color: #bb3535 !important;
    box-shadow: 0 0 0 2px rgb(187 53 53 / .12);
}
html body[data-peso-page] :is(.modal,.modal-overlay) :is(.modal-content,.modal-dialog) {
    box-sizing: border-box;
    max-width: calc(100vw - 24px);
}
html body[data-peso-page] :is(.modal-content,.modal-dialog) :is(input,select,textarea) { max-width: 100%; }
html body[data-peso-page] :is(.notif-list,.notification-list) { overscroll-behavior: contain; }
html body[data-peso-page^="jobseeker-"] :is(.js-suite-card-logo,.company-logo) img {
    object-fit: contain;
}
html body[data-peso-page="jobseeker-home"] :is(.js-match-profile__head,.js-hub-center__head) {
    gap: 16px;
}
/* Keep hero animation untouched; remove costly decorative glass on operational data. */
html body[data-peso-page^="admin-"] :is(.stat-card,.metric-card,.status-badge,.admx-metric),
html body[data-peso-page^="jobseeker-"] :is(.profile-stat,.profile-skill-card) {
    backdrop-filter: none !important;
    text-shadow: none !important;
}
html body[data-peso-page="admin-reports"] #reportTable :is(th,td) {
    vertical-align: top;
    overflow-wrap: break-word;
}
@media(max-width:700px) {
    html body[data-peso-page="jobseeker-home"] .js-match-profile__head { flex-wrap: wrap; }
    html body[data-peso-page] :is(.modal-footer,.modal-actions) { flex-wrap: wrap; gap: 10px; }
    html body[data-peso-page] :is(.modal-footer,.modal-actions) > .btn { min-height: 44px; }
}
@media(prefers-reduced-motion:reduce) {
    html body[data-peso-page] { scroll-behavior: auto !important; }
    html body[data-peso-page] :is(button,.btn,.job-card,.stat-card) { transition: none !important; }
}
@media print {
    html body[data-peso-page="admin-reports"] :is(.peso-assistant,.peso-back-to-top,#notifDropdown,.admin-topbar,.admx-topbar,#sidebar) {
        display: none !important;
    }
}
