@import url('portal-notifications.css?v=20260826-3');
@import url('employer-modern.css?v=20260827-4');

/* PESO Dasmarinas production UI layer.
   Presentation only: shared tokens, component polish, responsive behavior and accessibility. */
:root {
    /* Brand anchors sampled from the City of Dasmarinas / PESO seal, then
       tuned for accessible product UI rather than reproduced literally. */
    --peso-primary: #087443;
    --peso-primary-hover: #056136;
    --peso-primary-strong: #044d2c;
    --peso-primary-soft: #eaf7ef;
    --peso-gold: #d6a514;
    --peso-gold-soft: #fff7d6;
    --peso-accent: #b77905;
    --peso-ink: #17251e;
    --peso-muted: #607168;
    --peso-canvas: #f4f8f5;
    --peso-surface: #ffffff;
    --peso-surface-soft: #edf5f0;
    --peso-line: #d8e5dd;
    --peso-danger: #c92a24;
    --peso-warning: #a86408;
    --peso-success: #087443;
    --peso-info: #43358b;
    --peso-radius-sm: 10px;
    --peso-radius: 14px;
    --peso-radius-lg: 20px;
    --peso-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .04);
    --peso-shadow: 0 14px 36px rgba(15, 23, 42, .09);
    --peso-focus: 0 0 0 3px rgba(8, 116, 67, .22);
    --peso-ease: 180ms cubic-bezier(.2, .8, .2, 1);
    --peso-space-1: .25rem;
    --peso-space-2: .5rem;
    --peso-space-3: .75rem;
    --peso-space-4: 1rem;
    --peso-space-5: 1.25rem;
    --peso-space-6: 1.5rem;
    --peso-space-8: 2rem;
    --peso-space-10: 2.5rem;
    --peso-control-height: 44px;
    --peso-sidebar-width: 248px;
    --peso-header-height: 68px;
    --peso-content-max: 1440px;
    --peso-z-dropdown: 100;
    --peso-z-sticky: 300;
    --peso-z-modal: 1000;
    --peso-z-toast: 1200;
}

/* Existing screens already expose light/dark theme hooks. These aliases make
   their page-specific CSS resolve through one consistent brand system. */
body.peso-theme-aware:not(.light),
body.dark-mode,
[data-theme="dark"] body {
    --peso-primary: #35b875;
    --peso-primary-hover: #52ca8a;
    --peso-primary-strong: #d8f4e4;
    --peso-primary-soft: #143a2a;
    --peso-gold: #f0c94d;
    --peso-gold-soft: #3b3216;
    --peso-accent: #f0c94d;
    --peso-ink: #f1f7f3;
    --peso-muted: #abc1b5;
    --peso-canvas: #071c14;
    --peso-surface: #102b20;
    --peso-surface-soft: #15372a;
    --peso-line: #2b4b3b;
    --peso-danger: #ff756f;
    --peso-warning: #f0c94d;
    --peso-success: #52ca8a;
    --peso-info: #a9a0ed;
    --peso-shadow-sm: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 24px rgba(0, 0, 0, .14);
    --peso-shadow: 0 18px 44px rgba(0, 0, 0, .25);
    --peso-focus: 0 0 0 3px rgba(240, 201, 77, .28);
    --bg-primary: #071c14;
    --bg-secondary: rgba(16, 43, 32, .82);
    --text-primary: #f1f7f3;
    --text-secondary: #abc1b5;
    --card-bg: rgba(16, 43, 32, .94);
    --card-border: #2b4b3b;
    --accent: #f0c94d;
    --accent-dark: #d7ad28;
    --header-bg: rgba(7, 28, 20, .92);
    --footer-bg: #043c24;
}

body.light,
[data-theme="light"] body {
    --peso-primary: #087443;
    --peso-primary-hover: #056136;
    --peso-primary-strong: #044d2c;
    --peso-primary-soft: #eaf7ef;
    --peso-gold: #d6a514;
    --peso-gold-soft: #fff7d6;
    --peso-accent: #b77905;
    --peso-ink: #17251e;
    --peso-muted: #607168;
    --peso-canvas: #f4f8f5;
    --peso-surface: #ffffff;
    --peso-surface-soft: #edf5f0;
    --peso-line: #d8e5dd;
    --bg-primary: #f4f8f5;
    --bg-secondary: #ffffff;
    --text-primary: #17251e;
    --text-secondary: #607168;
    --card-bg: rgba(255, 255, 255, .96);
    --card-border: #d8e5dd;
    --accent: #087443;
    --accent-dark: #056136;
    --header-bg: rgba(255, 255, 255, .94);
    --footer-bg: #044d2c;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    color: var(--peso-ink);
    background-color: var(--bg-primary, var(--peso-canvas));
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body::selection { background: var(--peso-gold-soft); color: var(--peso-primary-strong); }
img, svg, video { max-width: 100%; }
a { text-underline-offset: 3px; }
.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--peso-primary) !important;
    outline-offset: 2px !important;
    box-shadow: var(--peso-focus);
}
:where(button, input, select, textarea):disabled {
    cursor: not-allowed !important;
    opacity: .58;
}

/* Shared surfaces */
:where(.card, .stat-card, .stats-card, .job-card, .application-card, .applicant-card,
       .announcement-card, .profile-card, .settings-card, .info-card, .content-card,
       .table-card, .chart-card, .calendar-container, .form-container, .modal-content,
       .dashboard-card, .quick-action-card, .panel) {
    border-color: var(--peso-line) !important;
    border-radius: var(--peso-radius-lg) !important;
    box-shadow: var(--peso-shadow-sm);
}
:where(.card, .stat-card, .stats-card, .job-card, .application-card, .applicant-card,
       .announcement-card, .profile-card, .settings-card, .info-card, .content-card,
       .table-card, .dashboard-card, .quick-action-card) {
    transition: transform var(--peso-ease), box-shadow var(--peso-ease), border-color var(--peso-ease);
}
@media (hover: hover) {
    :where(.job-card, .application-card, .applicant-card, .announcement-card, .quick-action-card):hover {
        transform: translateY(-3px);
        box-shadow: var(--peso-shadow);
        border-color: color-mix(in srgb, var(--peso-primary) 40%, transparent) !important;
    }
}

/* Buttons and action links */
:where(button, .btn, .button, .action-btn, .primary-btn, .secondary-btn, .submit-btn,
       .save-btn, .apply-btn, .view-btn, .add-btn, .create-btn, a.btn) {
    min-height: 42px;
    border-radius: var(--peso-radius-sm) !important;
    font-weight: 700;
    letter-spacing: -.01em;
    transition: transform var(--peso-ease), box-shadow var(--peso-ease), background-color var(--peso-ease), border-color var(--peso-ease), color var(--peso-ease), opacity var(--peso-ease) !important;
}
@media (hover: hover) {
    :where(button, .btn, .button, .action-btn, .primary-btn, .secondary-btn, .submit-btn,
           .save-btn, .apply-btn, .view-btn, .add-btn, .create-btn, a.btn):not(:disabled):hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
    }
}
:where(button, .btn, .button, .action-btn):active { transform: translateY(0) scale(.985) !important; }
:where(.btn-primary, .primary-btn, .submit-btn, .save-btn, .apply-btn, .create-btn, .add-btn) {
    border-color: var(--peso-primary) !important;
    background-color: var(--peso-primary) !important;
    color: #fff !important;
}
:where(.btn-primary, .primary-btn, .submit-btn, .save-btn, .apply-btn, .create-btn, .add-btn):hover {
    border-color: var(--peso-primary-hover) !important;
    background-color: var(--peso-primary-hover) !important;
}
body.peso-theme-aware:not(.light) :where(.btn-primary, .primary-btn, .submit-btn, .save-btn, .apply-btn, .create-btn, .add-btn) {
    border-color: var(--peso-gold) !important;
    background-color: var(--peso-gold) !important;
    color: #172016 !important;
}
body.peso-theme-aware:not(.light) :where(.page-header h1, .content-header h1, .dashboard-header h1, .logo span) {
    color: var(--peso-ink) !important;
}
body.peso-theme-aware:not(.light) :where(.job-meta-item i, .verified-badge, .job-tag, .company) {
    color: var(--peso-primary) !important;
}

/* Forms */
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height: 44px;
    border: 1px solid var(--peso-line);
    border-radius: var(--peso-radius-sm) !important;
    background-color: var(--peso-surface);
    color: var(--peso-ink);
    transition: border-color var(--peso-ease), box-shadow var(--peso-ease), background-color var(--peso-ease);
}
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):hover:not(:disabled) {
    border-color: var(--peso-primary);
}
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
    border-color: var(--peso-primary) !important;
    outline: 0 !important;
    box-shadow: var(--peso-focus) !important;
}
:where(input, textarea)::placeholder { color: var(--peso-muted); opacity: .78; }
:where(label, .form-label) { color: var(--peso-ink); font-weight: 650; }
:where(.form-group, .input-group, .field-group) { margin-bottom: 1.15rem; }
:where(.error, .error-message, .invalid-feedback) { color: var(--peso-danger); font-size: .86rem; }
:where(.success, .success-message, .valid-feedback) { color: var(--peso-success); }

/* Navigation */
:where(.sidebar, .side-nav, .dashboard-sidebar) {
    box-shadow: 8px 0 30px rgba(3, 35, 26, .1);
    background: linear-gradient(180deg, #075c36 0%, #043c24 100%) !important;
}
:where(.sidebar a, .side-nav a, .dashboard-sidebar a, .nav-link) {
    border-radius: 10px;
    transition: background-color var(--peso-ease), color var(--peso-ease), transform var(--peso-ease);
}
:where(.sidebar a, .side-nav a, .dashboard-sidebar a, .nav-link):hover { transform: translateX(2px); }
:where(.sidebar a.active, .side-nav a.active, .dashboard-sidebar a.active, .nav-link.active,
       .sidebar .active > a, .side-nav .active > a) {
    font-weight: 750;
    box-shadow: inset 3px 0 0 var(--peso-gold);
}
:where(.topbar, .top-header, .main-header, .dashboard-header, .site-header) {
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
}
body.light :where(.topbar, .top-header, .main-header, .dashboard-header) {
    border-color: var(--peso-line) !important;
    background-color: rgba(255, 255, 255, .92) !important;
}

/* Tables */
:where(.table-container, .table-wrapper, .table-responsive, .data-table-wrap) {
    max-width: 100%;
    overflow-x: auto;
    border-radius: var(--peso-radius-lg);
    scrollbar-width: thin;
    scrollbar-color: var(--peso-primary) transparent;
}
table { border-collapse: separate; border-spacing: 0; width: 100%; }
:where(table) thead th {
    padding-top: .9rem !important;
    padding-bottom: .9rem !important;
    color: var(--peso-ink);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    background: var(--peso-surface-soft);
    border-bottom: 1px solid var(--peso-line) !important;
}
:where(table) tbody td { padding-top: .9rem !important; padding-bottom: .9rem !important; vertical-align: middle; }
:where(table) tbody tr { transition: background-color var(--peso-ease); }
:where(table) tbody tr:hover { background-color: color-mix(in srgb, var(--peso-primary-soft) 72%, transparent); }

/* Badges and statuses */
:where(.badge, .status, .status-badge, .job-status, .application-status, [class*="status-"]) {
    border-radius: 999px !important;
    font-weight: 750;
    letter-spacing: .01em;
}
:where(.status-pending, .status-applied, .status-review) { color: #805004 !important; background-color: #fff7d6 !important; }
:where(.status-approved, .status-accepted, .status-active, .status-hired) { color: #045b33 !important; background-color: #eaf7ef !important; }
:where(.status-rejected, .status-declined, .status-inactive) { color: #9f211d !important; background-color: #fff0ef !important; }
:where(.status-shortlisted, .status-interview, .status-scheduled) { color: #1e40af !important; background-color: #eff6ff !important; }
body.peso-theme-aware:not(.light) :where(.status-pending, .status-applied, .status-review) { color: #ffe58b !important; background-color: #443817 !important; }
body.peso-theme-aware:not(.light) :where(.status-approved, .status-accepted, .status-active, .status-hired) { color: #91e5b6 !important; background-color: #153c2a !important; }
body.peso-theme-aware:not(.light) :where(.status-rejected, .status-declined, .status-inactive) { color: #ffaaa5 !important; background-color: #48211f !important; }
body.peso-theme-aware:not(.light) :where(.status-shortlisted, .status-interview, .status-scheduled) { color: #c9c2ff !important; background-color: #29234e !important; }

/* Page hierarchy */
:where(.page-title, .dashboard-title, .content-header h1, .page-header h1, main h1) {
    color: var(--peso-ink);
    letter-spacing: -.035em;
    line-height: 1.15;
}
:where(.page-subtitle, .subtitle, .content-header p, .page-header p) { color: var(--peso-muted); }
:where(.stats-grid, .stat-grid, .dashboard-stats, .summary-grid, .cards-grid, .job-grid, .jobs-grid) { gap: clamp(.85rem, 2vw, 1.35rem); }

/* Product shell and component language extracted from NEW UI */
body.peso-product-ui :where(.main-content, .dashboard-content, .content, main) {
    width: 100%;
    max-width: var(--peso-content-max);
}
body.peso-product-ui :where(.page-header, .content-header, .dashboard-header) {
    position: relative;
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
body.peso-product-ui :where(.page-header, .content-header, .dashboard-header)::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 12px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--peso-primary), var(--peso-gold));
}
.section-eyebrow,
.peso-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--peso-primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .095em;
    text-transform: uppercase;
}
.section-eyebrow::before,
.peso-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 99px; background: var(--peso-gold); }

/* Homepage employment discovery */
.employment-search {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) minmax(190px, .8fr) auto;
    gap: 8px;
    width: min(900px, 100%);
    margin: 34px auto 0;
    padding: 8px;
    border: 1px solid var(--card-border, var(--peso-line));
    border-radius: 18px;
    background: var(--peso-surface);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}
.employment-search__field { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 14px; }
.employment-search__field + .employment-search__field { border-left: 1px solid var(--peso-line); }
.employment-search__field i { color: var(--peso-primary); }
.employment-search__field input {
    width: 100%; min-width: 0; min-height: 48px; padding: 0 !important; border: 0 !important;
    color: var(--peso-ink); background: transparent !important; box-shadow: none !important;
}
.employment-search__submit { min-width: 142px; min-height: 50px; }
.popular-searches { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px auto 0; color: var(--text-secondary, var(--peso-muted)); font-size: .8rem; }
.popular-searches span { font-weight: 700; }
.popular-searches a { padding: 5px 10px; border: 1px solid var(--card-border, var(--peso-line)); border-radius: 999px; text-decoration: none; transition: var(--peso-ease); }
.popular-searches a:hover { color: var(--peso-primary); border-color: var(--peso-primary); background: var(--peso-primary-soft); }
.hero .stats { flex-wrap: wrap; }
.hero .stat { min-width: 120px; }

.job-card__facts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; color: var(--text-secondary, var(--peso-muted)); font-size: .78rem; }
.job-card__facts span { display: inline-flex; align-items: center; gap: 6px; }
.job-card__facts i { color: var(--peso-primary); }

.employer-showcase,
.jobfair-section { padding: clamp(4rem, 8vw, 6rem) 0; background: var(--bg-primary, var(--peso-canvas)); }
.employer-showcase__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.employer-tile {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 16px; border: 1px solid var(--card-border, var(--peso-line)); border-radius: 16px;
    background: var(--card-bg, var(--peso-surface)); text-decoration: none; box-shadow: var(--peso-shadow-sm); transition: var(--peso-ease);
}
.employer-tile:hover { transform: translateY(-2px); border-color: var(--peso-primary); box-shadow: var(--peso-shadow); }
.employer-tile__logo { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border: 1px solid var(--peso-line); border-radius: 13px; background: #fff; color: var(--peso-primary); }
.employer-tile__logo img { width: 100%; height: 100%; object-fit: contain; }
.employer-tile strong { display: block; overflow: hidden; color: var(--text-primary, var(--peso-ink)); text-overflow: ellipsis; white-space: nowrap; }
.employer-tile span { display: block; margin-top: 3px; color: var(--text-secondary, var(--peso-muted)); font-size: .75rem; }
.employer-tile span i { color: var(--peso-primary); }
.employer-tile > i { color: var(--peso-muted); }
.jobfair-grid { display: grid; gap: 14px; }
.jobfair-card { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px; border: 1px solid var(--card-border, var(--peso-line)); border-radius: 18px; background: var(--card-bg, var(--peso-surface)); box-shadow: var(--peso-shadow-sm); }
.jobfair-card time { display: grid; place-items: center; min-height: 70px; border-radius: 14px; color: #fff; background: var(--peso-primary); }
.jobfair-card time strong { font-size: 1.65rem; line-height: 1; }
.jobfair-card time span { margin-top: 3px; font-size: .67rem; font-weight: 700; text-transform: uppercase; }
.jobfair-card h3 { margin: 8px 0 5px; color: var(--text-primary, var(--peso-ink)); }
.jobfair-card p { color: var(--text-secondary, var(--peso-muted)); }

/* Product panels: onboarding, application journey and hiring funnel */
.peso-product-panel {
    margin: 0 0 24px;
    padding: clamp(18px, 3vw, 24px);
    border: 1px solid var(--peso-line);
    border-radius: 18px;
    background: var(--peso-surface);
    box-shadow: var(--peso-shadow-sm);
}
.peso-product-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.peso-product-panel__head h2 { margin: 0 0 4px; color: var(--peso-ink); font-size: 1.05rem; }
.peso-product-panel__head p { margin: 0; color: var(--peso-muted); font-size: .84rem; }
.peso-profile-meter { height: 9px; overflow: hidden; border-radius: 99px; background: var(--peso-surface-soft); }
.peso-profile-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--peso-primary), var(--peso-gold)); transition: width 500ms ease; }
.peso-profile-next { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--peso-muted); font-size: .8rem; }
.peso-profile-next a { color: var(--peso-primary); font-weight: 750; }

.peso-application-timeline { display: flex; align-items: flex-start; width: 100%; margin: 20px 0 8px; }
.peso-timeline-step { position: relative; flex: 1; min-width: 0; text-align: center; color: var(--peso-muted); font-size: .68rem; }
.peso-timeline-step:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 9px; left: 55%; width: 90%; height: 2px; background: var(--peso-line); }
.peso-timeline-step.is-complete:not(:last-child)::after { background: var(--peso-primary); }
.peso-timeline-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; margin: 0 auto 7px; border: 2px solid var(--peso-line); border-radius: 50%; background: var(--peso-surface); font-size: .55rem; }
.peso-timeline-step.is-complete .peso-timeline-dot { color: #fff; border-color: var(--peso-primary); background: var(--peso-primary); }
.peso-timeline-step.is-current { color: var(--peso-primary); font-weight: 800; }
.peso-timeline-step.is-current .peso-timeline-dot { border-color: var(--peso-primary); box-shadow: var(--peso-focus); }
.peso-timeline-step.is-rejected { color: var(--peso-danger); }
.peso-timeline-step.is-rejected .peso-timeline-dot { color: #fff; border-color: var(--peso-danger); background: var(--peso-danger); }

.peso-hiring-funnel__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.peso-funnel-step { position: relative; padding: 16px; border: 1px solid var(--peso-line); border-radius: 14px; background: var(--peso-surface-soft); }
.peso-funnel-step:not(:last-child)::after { content: "›"; position: absolute; z-index: 2; top: 50%; right: -9px; width: 18px; height: 18px; margin-top: -9px; color: var(--peso-primary); background: var(--peso-surface); text-align: center; line-height: 17px; border-radius: 50%; }
.peso-funnel-step strong { display: block; color: var(--peso-primary); font-size: 1.35rem; }
.peso-funnel-step span { color: var(--peso-muted); font-size: .75rem; }

/* Data density and system states */
.peso-loading-button { position: relative; pointer-events: none; opacity: .8; }
.peso-loading-button::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 9px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: peso-spin .65s linear infinite; }
@keyframes peso-spin { to { transform: rotate(360deg); } }
.peso-empty-action { display: inline-flex; margin-top: 14px; }
.peso-mobile-table-card td::before { color: var(--peso-muted); font-weight: 750; }

/* Sticky primary action for job details on compact screens */
body.peso-page-job-details :where(.apply-actions, .application-actions, .job-actions, .action-buttons) { z-index: var(--peso-z-sticky); }

/* Dialogs, feedback and empty states */
:where(.modal, .modal-overlay, .dialog-overlay) { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
:where(.alert, .notification, .toast, .message) { border-radius: var(--peso-radius) !important; }
:where(.empty-state, .no-data, .no-results, .no-jobs, .no-applications) {
    padding: clamp(2rem, 6vw, 4.5rem) 1.25rem !important;
    text-align: center;
    color: var(--peso-muted);
    border: 1px dashed var(--peso-line);
    border-radius: var(--peso-radius-lg);
    background: linear-gradient(145deg, var(--peso-surface), var(--peso-surface-soft));
}
.peso-skip-link {
    position: fixed;
    z-index: 100000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    color: #fff;
    background: var(--peso-primary-strong);
    border-radius: 9px;
    transform: translateY(-150%);
    transition: transform var(--peso-ease);
}
.peso-skip-link:focus { transform: translateY(0); }
.peso-scroll-progress {
    position: fixed;
    z-index: 99999;
    inset: 0 auto auto 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--peso-primary), var(--peso-gold));
    pointer-events: none;
}
html.peso-offline-icons .fa-moon::before { content: "◐"; }
html.peso-offline-icons .fa-sun::before { content: "☀"; }
.peso-ready .peso-reveal { opacity: 0; transform: translateY(10px); }
.peso-ready .peso-reveal.peso-visible { opacity: 1; transform: none; transition: opacity 420ms ease, transform 420ms ease; }

/* Responsive layouts */
@media (max-width: 1024px) {
    :where(.stats-grid, .stat-grid, .dashboard-stats, .summary-grid, .cards-grid, .job-grid, .jobs-grid,
           .applications-grid, .applicants-grid, .announcements-grid, .quick-actions) {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
    }
    :where(.page-header, .content-header, .section-header, .toolbar, .filter-bar, .search-filter-bar) {
        flex-wrap: wrap;
        gap: .85rem;
    }
    .employer-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    :root { --peso-radius-lg: 16px; }
    body { font-size: 15px; }
    :where(.main-content, .dashboard-content, .content, main) { min-width: 0; }
    :where(.stats-grid, .stat-grid, .dashboard-stats, .summary-grid, .cards-grid, .job-grid, .jobs-grid,
           .applications-grid, .applicants-grid, .announcements-grid, .quick-actions, .form-grid) {
        grid-template-columns: 1fr !important;
    }
    :where(.page-header, .content-header, .section-header, .toolbar, .filter-bar, .search-filter-bar,
           .form-actions, .modal-actions) { align-items: stretch; }
    :where(.page-header .btn, .content-header .btn, .form-actions .btn, .search-filter-bar button) { width: 100%; justify-content: center; }
    :where(.modal-content, .job-modal, .modal-container, [role="dialog"]) { max-width: calc(100vw - 24px) !important; max-height: calc(100dvh - 24px) !important; overflow-y: auto; }
    :where(.table-container, .table-wrapper, .table-responsive, .data-table-wrap) { border: 1px solid var(--peso-line); }
    .site-header + .hero { padding-top: 235px !important; }
    .employment-search { grid-template-columns: 1fr; padding: 10px; border-radius: 16px; }
    .employment-search__field + .employment-search__field { border-left: 0; border-top: 1px solid var(--peso-line); }
    .employment-search__submit { width: 100%; }
    .popular-searches { display: none; }
    .employer-showcase__grid { grid-template-columns: 1fr; }
    .jobfair-card { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; }
    .jobfair-card > .btn { grid-column: 1 / -1; width: 100%; }
    .peso-hiring-funnel__steps { grid-template-columns: repeat(2, 1fr); }
    .peso-application-timeline { overflow-x: auto; padding-bottom: 8px; }
    .peso-timeline-step { min-width: 76px; }
    body.peso-page-job-details :where(.apply-actions, .application-actions, .job-actions, .action-buttons) {
        position: sticky; bottom: 0; margin: 16px -14px -14px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--peso-line); background: color-mix(in srgb, var(--peso-surface) 94%, transparent); backdrop-filter: blur(14px);
    }
    /* Convert marked data tables into readable records instead of forcing pan/zoom. */
    table.peso-mobile-table-card, table.peso-mobile-table-card tbody, table.peso-mobile-table-card tr, table.peso-mobile-table-card td { display: block; width: 100%; }
    table.peso-mobile-table-card thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
    table.peso-mobile-table-card tr { margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--peso-line); border-radius: 14px; background: var(--peso-surface); }
    table.peso-mobile-table-card td { display: grid; grid-template-columns: minmax(100px, .7fr) 1fr; gap: 12px; padding: 9px 0 !important; border-bottom: 1px solid var(--peso-line); text-align: right; }
    table.peso-mobile-table-card td:last-child { border-bottom: 0; }
    table.peso-mobile-table-card td::before { content: attr(data-label); text-align: left; }
}
@media (max-width: 480px) {
    :where(.main-content, .dashboard-content, .content, main) { padding-left: 14px !important; padding-right: 14px !important; }
    :where(.card, .stat-card, .job-card, .application-card, .applicant-card, .profile-card,
           .settings-card, .content-card, .table-card) { padding-left: 16px; padding-right: 16px; }
    :where(button, .btn, .button, .action-btn) { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .peso-ready .peso-reveal { opacity: 1; transform: none; }
}
@media print {
    .peso-scroll-progress, .peso-skip-link, :where(.sidebar, .side-nav, .dashboard-sidebar, .mobile-menu, .toast-container) { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    :where(.card, .table-card, .content-card) { box-shadow: none !important; break-inside: avoid; }
}

/* Final product-definition pass: role hierarchy, navigation and mobile UX. */
body.peso-role-jobseeker { --peso-role-accent: #087443; }
body.peso-role-employer { --peso-role-accent: #0f766e; }
body.peso-role-admin { --peso-role-accent: #43358b; }
body.peso-product-ui :where(.stat-card, .stats-card, .quick-action-card) { position: relative; overflow: hidden; }
body.peso-product-ui :where(.stat-card, .stats-card, .quick-action-card)::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
    background: var(--peso-role-accent, var(--peso-primary)); opacity: .9;
}
body.peso-product-ui :where(.stat-number, .stat-value, .stat-info .value, .metric-value) {
    color: var(--peso-role-accent, var(--peso-primary)); font-variant-numeric: tabular-nums;
}
.peso-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; color: var(--peso-muted); font-size: .78rem; }
.peso-breadcrumbs a { color: var(--peso-primary); font-weight: 700; text-decoration: none; }
.peso-breadcrumbs a:hover { text-decoration: underline; }
.peso-breadcrumbs i { font-size: .62rem; opacity: .55; }

.peso-public-nav-toggle {
    display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
    border: 1px solid var(--card-border, var(--peso-line)); border-radius: 12px !important;
    color: var(--text-primary, var(--peso-ink)); background: var(--card-bg, var(--peso-surface));
}
.peso-public-nav-toggle span,
.peso-public-nav-toggle::before,
.peso-public-nav-toggle::after { content: ""; display: block; width: 19px; height: 2px; border-radius: 99px; background: currentColor; transition: var(--peso-ease); }
.peso-public-nav-toggle span { margin: 4px 0; }
.peso-public-nav-toggle[aria-expanded="true"] span { opacity: 0; }
.peso-public-nav-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.peso-public-nav-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.peso-mobile-jobseeker-nav { display: none; }
.peso-mobile-jobseeker-nav a { position: relative; display: grid; place-items: center; gap: 3px; min-width: 0; min-height: 54px; padding: 6px 3px; color: var(--peso-muted); text-decoration: none; font-size: .62rem; font-weight: 700; }
.peso-mobile-jobseeker-nav a i { font-size: 1rem; }
.peso-mobile-jobseeker-nav a.is-active { color: var(--peso-primary); }
.peso-mobile-jobseeker-nav a.is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 99px 99px; background: var(--peso-primary); }

body.peso-product-ui :where(table) :where(.action-btn, .btn-action, .view-btn, .edit-btn, .delete-btn) {
    min-width: 36px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--peso-line);
    border-radius: 9px !important; background: var(--peso-surface);
}
body.peso-product-ui :where(.alert, .notification, .message) { border: 1px solid var(--peso-line); border-left: 4px solid var(--peso-info); box-shadow: var(--peso-shadow-sm); }
body.peso-product-ui :where(.alert-success, .notification-success, .success-message) { border-left-color: var(--peso-success); }
body.peso-product-ui :where(.alert-error, .notification-error, .error-message) { border-left-color: var(--peso-danger); }
body.peso-product-ui :where(.alert-warning, .notification-warning) { border-left-color: var(--peso-warning); }

@media (max-width: 768px) {
    body.peso-public-nav-enabled .site-header { overflow: visible; }
    body.peso-public-nav-enabled .site-header :where(.header-inner, .container.header-inner) { position: relative; flex-direction: row !important; justify-content: space-between; }
    .peso-public-nav-toggle { display: inline-flex; flex-direction: column; flex-shrink: 0; }
    body.peso-public-nav-enabled .site-header :where(.nav, .header-nav) {
        position: absolute; z-index: var(--peso-z-dropdown); top: calc(100% + 10px); right: 14px; left: 14px;
        display: grid !important; grid-template-columns: 1fr; gap: 4px !important; padding: 10px;
        border: 1px solid var(--peso-line); border-radius: 16px; background: var(--peso-surface); box-shadow: var(--peso-shadow);
        opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right;
        transition: opacity var(--peso-ease), transform var(--peso-ease), visibility var(--peso-ease);
    }
    body.peso-public-nav-enabled.peso-nav-open .site-header :where(.nav, .header-nav) { opacity: 1; visibility: visible; transform: none; }
    body.peso-public-nav-enabled .site-header :where(.nav, .header-nav) a { display: flex; align-items: center; min-height: 44px; padding: 9px 12px; border-radius: 10px; }
    body.peso-public-nav-enabled .site-header :where(.nav, .header-nav) :where(.btn-login, .btn-theme, .theme-toggle) { width: 100%; justify-content: center; }
    body.peso-public-nav-enabled .site-header + .hero { padding-top: 150px !important; }
    body.peso-role-jobseeker:not(.peso-auth-page) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
    .peso-mobile-jobseeker-nav {
        position: fixed; z-index: var(--peso-z-sticky); right: 0; bottom: 0; left: 0; display: grid;
        grid-template-columns: repeat(5, 1fr); padding: 0 6px env(safe-area-inset-bottom);
        border-top: 1px solid var(--peso-line); background: color-mix(in srgb, var(--peso-surface) 95%, transparent);
        box-shadow: 0 -10px 30px rgba(15, 23, 42, .08); backdrop-filter: blur(18px);
    }
}
@media print { .peso-public-nav-toggle, .peso-mobile-jobseeker-nav, .peso-breadcrumbs { display: none !important; } }

/* High-specificity visual unification for legacy pages with embedded styles. */
body.peso-product-ui {
    background:
        radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--peso-primary) 7%, transparent), transparent 30rem),
        var(--bg-primary, var(--peso-canvas)) !important;
}
body.peso-product-ui :where(.main-content, .dashboard-content, .content, .main, main) {
    padding-top: clamp(22px, 3vw, 36px) !important;
}
body.peso-product-ui :where(.topbar, .top-header, .main-header, .dashboard-header:not(.page-header)) {
    min-height: 68px;
    border-bottom: 1px solid var(--peso-line) !important;
    background: color-mix(in srgb, var(--peso-surface) 92%, transparent) !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03), 0 8px 28px rgba(15, 23, 42, .04) !important;
}
body.peso-product-ui :where(.sidebar, .side-nav, .dashboard-sidebar) {
    background: linear-gradient(180deg, #076b3e 0%, #044527 58%, #03351f 100%) !important;
    border-right: 1px solid rgba(255,255,255,.06) !important;
}
body.peso-product-ui :where(.sidebar, .side-nav, .dashboard-sidebar) :where(.nav-link, a):not([href="logout.php"]) {
    min-height: 42px;
}
body.peso-product-ui :where(.sidebar, .side-nav, .dashboard-sidebar) :where(.nav-link.active, a.active) {
    color: #fff !important;
    background: rgba(255,255,255,.14) !important;
    box-shadow: inset 3px 0 0 var(--peso-gold) !important;
}
body.peso-product-ui :where(.card, .stat-card, .stats-card, .job-card, .application-card, .applicant-card,
    .announcement-card, .profile-card, .settings-card, .info-card, .content-card, .table-card,
    .chart-card, .calendar-container, .form-container, .dashboard-card, .quick-action-card, .panel) {
    border: 1px solid var(--peso-line) !important;
    background-color: var(--card-bg, var(--peso-surface)) !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 30px rgba(15,23,42,.055) !important;
}
body.peso-product-ui :where(.card-header, .panel-header, .table-header) {
    border-bottom-color: var(--peso-line) !important;
}
body.peso-product-ui :where(.page-header h1, .content-header h1, .dashboard-title, main h1) {
    font-size: clamp(1.65rem, 3vw, 2.25rem) !important;
    font-weight: 800 !important;
    letter-spacing: -.04em !important;
}
body.peso-product-ui :where(.page-header p, .content-header p, .dashboard-subtitle) {
    max-width: 70ch;
    color: var(--peso-muted) !important;
}
body.peso-product-ui :where(.btn-primary, .primary-btn, .submit-btn, .save-btn, .apply-btn, .create-btn, .add-btn, .btn-search) {
    border: 1px solid var(--peso-primary) !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--peso-primary) 92%, white), var(--peso-primary)) !important;
    color: #fff !important;
    box-shadow: 0 7px 18px color-mix(in srgb, var(--peso-primary) 22%, transparent) !important;
}
body.peso-product-ui :where(.btn-secondary, .secondary-btn, .btn-outline, .btn-clear) {
    border: 1px solid var(--peso-line) !important;
    background: var(--peso-surface) !important;
    color: var(--peso-primary) !important;
}
body.peso-product-ui :where(.filters-section, .filter-panel, .filter-bar, .search-panel, .search-filter-bar) {
    border: 1px solid var(--peso-line) !important;
    border-radius: 18px !important;
    background-color: var(--peso-surface) !important;
    box-shadow: var(--peso-shadow-sm) !important;
}
body.peso-product-ui table { background: var(--peso-surface); }
body.peso-product-ui table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--peso-surface-soft) 45%, transparent); }
body.peso-product-ui :where(.modal-content, .job-modal, .modal-container) {
    border: 1px solid var(--peso-line) !important;
    background: var(--peso-surface) !important;
    box-shadow: 0 30px 80px rgba(0,0,0,.28) !important;
}
body.peso-auth-page :where(.login-card, .auth-card, .portal-card, .registration-container, .register-container, .form-container) {
    border: 1px solid var(--peso-line) !important;
    border-radius: 22px !important;
    box-shadow: 0 24px 70px rgba(15,23,42,.13) !important;
}

/* System-wide H1 contrast contract.
   This deliberately outranks the page refinement blocks emitted after this
   stylesheet. Resume rendering stays excluded so each selected resume design
   can preserve its own heading treatment. */
html body.peso-product-ui[data-peso-page]:not([data-peso-page='generate-resume']) h1 {
    color: var(--peso-h1-color, var(--peso-ink)) !important;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

/* Dark brand surfaces always use white headings in both themes. */
body.peso-product-ui :is(
    .welcome-banner,
    .job-header,
    .community-banner,
    .announcements-hero,
    .profile-hero,
    .dashboard-hero
) {
    --peso-h1-color: #ffffff;
}

body.peso-product-ui[data-peso-page='jobseeker-announcements'] .hero,
body.peso-product-ui[data-peso-page='jobseeker-calendar'] .hero,
body.peso-product-ui[data-peso-page='jobseeker-applied'] .page-header,
body.peso-product-ui[data-peso-page='jobseeker-saved'] .page-header,
body.peso-product-ui[data-peso-page='jobseeker-profile'] .page-header,
body.peso-product-ui[data-peso-page='employer-post-job'] .page-header,
body.peso-product-ui[data-peso-page='jobseeker-login'] .card-header,
body.peso-product-ui[data-peso-page='jobseeker-register'] .card-header,
body.peso-product-ui[data-peso-page='forgot-password'] .card-header,
body.peso-product-ui[data-peso-page='reset-password'] .card-header,
body.peso-product-ui[data-peso-page='employer-register'] .register-header,
body.peso-product-ui[data-peso-page='employer-login'] .header,
body.peso-product-ui[data-peso-page='admin-login'] .admin-header {
    --peso-h1-color: #ffffff;
}

body.peso-product-ui :is(
    .welcome-banner,
    .job-header,
    .community-banner,
    .announcements-hero,
    .profile-hero,
    .dashboard-hero
) h1,
body.peso-product-ui[data-peso-page='jobseeker-announcements'] .hero h1,
body.peso-product-ui[data-peso-page='jobseeker-calendar'] .hero h1,
body.peso-product-ui[data-peso-page='jobseeker-applied'] .page-header h1,
body.peso-product-ui[data-peso-page='jobseeker-saved'] .page-header h1,
body.peso-product-ui[data-peso-page='jobseeker-profile'] .page-header h1,
body.peso-product-ui[data-peso-page='employer-post-job'] .page-header h1,
body.peso-product-ui[data-peso-page='jobseeker-login'] .card-header h1,
body.peso-product-ui[data-peso-page='jobseeker-register'] .card-header h1,
body.peso-product-ui[data-peso-page='forgot-password'] .card-header h1,
body.peso-product-ui[data-peso-page='reset-password'] .card-header h1,
body.peso-product-ui[data-peso-page='employer-register'] .register-header h1,
body.peso-product-ui[data-peso-page='employer-login'] .header h1,
body.peso-product-ui[data-peso-page='admin-login'] .admin-header h1 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, .28);
}

/* Public landing titles intentionally retain the brand accent on the plain
   page canvas. */
body.peso-product-ui[data-peso-page='index'] .hero,
body.peso-product-ui[data-peso-page='jobseeker-index'] .hero,
body.peso-product-ui[data-peso-page='portal'],
body.peso-product-ui[data-peso-page='portal1'] {
    --peso-h1-color: var(--accent, var(--peso-primary));
}

/* Report previews use a print-safe white surface. */
html body.peso-product-ui[data-peso-page] .pdf-header-text h1 {
    color: #0a4d3b !important;
    text-shadow: none;
}

/* Shared Back to Top control. Existing legacy .go-top buttons are upgraded to
   this component so every page keeps a single, consistent action. */
html body.peso-product-ui .peso-back-to-top {
    position: fixed;
    right: clamp(16px, 2.5vw, 32px);
    bottom: clamp(16px, 2.5vw, 32px);
    z-index: calc(var(--peso-z-modal) - 10);
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    color: #ffffff;
    background: linear-gradient(145deg, var(--peso-primary), var(--peso-primary-hover));
    border: 1px solid color-mix(in srgb, var(--peso-primary) 76%, white);
    border-radius: 999px;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--peso-primary) 30%, transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(.92);
    transition: opacity var(--peso-ease), visibility var(--peso-ease), transform var(--peso-ease), box-shadow var(--peso-ease), background-color var(--peso-ease);
    cursor: pointer;
    touch-action: manipulation;
}

html body.peso-product-ui .peso-back-to-top:is(.is-visible, .show) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

html body.peso-product-ui .peso-back-to-top :is(svg, i) {
    width: 22px;
    height: 22px;
    font-size: 18px;
    line-height: 1;
}

html body.peso-product-ui .peso-back-to-top svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html body.peso-product-ui .peso-back-to-top:hover {
    background: linear-gradient(145deg, var(--peso-primary-hover), var(--peso-primary-strong));
    box-shadow: 0 14px 34px color-mix(in srgb, var(--peso-primary) 38%, transparent);
    transform: translateY(-3px) scale(1.02);
}

html body.peso-product-ui .peso-back-to-top:active {
    transform: translateY(0) scale(.96);
}

body.peso-theme-aware:not(.light) .peso-back-to-top,
body.dark-mode .peso-back-to-top,
[data-theme='dark'] body .peso-back-to-top {
    color: #071c14;
}

@media (max-width: 768px) {
    html body.peso-product-ui .peso-back-to-top {
        right: 14px;
        bottom: 18px;
        width: 46px;
        height: 46px;
    }

    html body.peso-product-ui.peso-role-jobseeker:not(.peso-auth-page) .peso-back-to-top {
        bottom: calc(78px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    html body.peso-product-ui .peso-back-to-top {
        transition: none;
    }
}

@media print {
    .peso-back-to-top {
        display: none !important;
    }
}

/* Search and filter placement contract.
   Toolbars remain in the normal content flow and align from the content edge;
   page-header controls stay at the top-right on wide screens. */
html body.peso-product-ui[data-peso-page] :is(
    .filter-bar,
    .filters-section,
    .filter-section,
    .filter-panel,
    .search-filter-bar,
    .search-filters-section,
    .search-panel,
    .search-bar
) {
    width: 100%;
    max-width: none;
    margin-right: 0 !important;
    margin-left: 0 !important;
    text-align: left;
}

body.peso-product-ui[data-peso-page] :is(
    .filter-bar,
    .filters-section,
    .filter-section,
    .filter-panel,
    .search-filter-bar,
    .search-filters-section,
    .search-panel,
    .search-bar
) {
    justify-content: flex-start !important;
    align-items: flex-end;
}

body.peso-product-ui[data-peso-page] :is(
    .filter-bar,
    .filters-section,
    .filter-section,
    .filter-panel,
    .search-filter-bar,
    .search-filters-section,
    .search-panel,
    .search-bar
) > form {
    width: 100%;
    margin: 0;
}

body.peso-product-ui[data-peso-page] .page-header > :is(
    .filter-search-group,
    .filter-actions,
    .search-actions,
    .search-wrapper
) {
    margin-left: auto;
}

/* Applications and Saved Jobs use a predictable title/actions header instead
   of allowing the search controls to drift toward the center when wrapping. */
html body.peso-product-ui[data-peso-page='jobseeker-applied'] .page-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    align-items: center !important;
}

html body.peso-product-ui[data-peso-page='jobseeker-applied'] .page-header .search-wrapper {
    width: 100%;
    min-width: 0;
    max-width: 360px;
    margin: 0 !important;
    justify-self: end;
}

html body.peso-product-ui[data-peso-page='jobseeker-saved'] .page-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    align-items: center !important;
}

html body.peso-product-ui[data-peso-page='jobseeker-saved'] .page-header > div:last-child {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    justify-self: end;
    justify-content: flex-end;
}

html body.peso-product-ui[data-peso-page='jobseeker-saved'] .page-header .search-wrapper {
    flex: 1 1 260px;
    min-width: 0;
}

@media (max-width: 1024px) {
    html body.peso-product-ui[data-peso-page='jobseeker-applied'] .page-header,
    html body.peso-product-ui[data-peso-page='jobseeker-saved'] .page-header {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch !important;
        text-align: left !important;
    }

    html body.peso-product-ui[data-peso-page='jobseeker-applied'] .page-header .search-wrapper,
    html body.peso-product-ui[data-peso-page='jobseeker-saved'] .page-header > div:last-child {
        width: 100%;
        max-width: none;
        margin-left: 0 !important;
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    body.peso-product-ui :where(.main-content, .dashboard-content, .content, .main, main) {
        padding: 20px 14px 84px !important;
    }
    body.peso-product-ui :where(.page-header h1, .content-header h1, .dashboard-title, main h1) { font-size: 1.65rem !important; }
    body.peso-product-ui :where(.card, .stat-card, .job-card, .application-card, .applicant-card, .table-card) { border-radius: 15px !important; }
    body.peso-product-ui :where(.filters-section, .filter-panel, .filter-bar, .search-panel, .search-filter-bar) { padding: 16px !important; }

    body.peso-product-ui[data-peso-page] :is(
        .filter-bar,
        .filters-section,
        .filter-section,
        .filter-panel,
        .search-filter-bar,
        .search-filters-section,
        .search-panel,
        .search-bar
    ) {
        align-items: stretch !important;
        text-align: left !important;
    }

    html body.peso-product-ui[data-peso-page] :is(
        .filter-bar,
        .filters-section,
        .filter-section,
        .filter-panel,
        .search-filter-bar,
        .search-filters-section,
        .search-panel
    ) > form {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch !important;
        gap: 10px;
    }

    body.peso-product-ui[data-peso-page] :is(
        .filter-bar,
        .filters-section,
        .filter-section,
        .filter-panel,
        .search-filter-bar,
        .search-filters-section,
        .search-panel
    ) > form > * {
        width: 100%;
        min-width: 0;
    }

    body.peso-product-ui[data-peso-page] .page-header > :is(
        .filter-search-group,
        .filter-actions,
        .search-actions,
        .search-wrapper
    ) {
        width: 100%;
        max-width: none;
        margin-left: 0 !important;
    }

    body.peso-product-ui[data-peso-page] .page-header > .filter-search-group {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch !important;
        gap: 10px;
    }

    body.peso-product-ui[data-peso-page] .page-header > .filter-search-group > * {
        width: 100% !important;
        min-width: 0;
    }

    html body.peso-product-ui[data-peso-page='jobseeker-saved'] .page-header > div:last-child {
        flex-direction: column;
        align-items: stretch !important;
    }

    body.peso-product-ui[data-peso-page] .search-bar .search-wrapper {
        width: 100%;
        max-width: none;
    }
}
/* Make PESO support easy to recognize in every jobseeker profile menu. */
.peso-profile-support-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
}

.peso-profile-support-link i {
    width: 18px;
    flex: 0 0 18px;
    color: var(--peso-primary, #087443);
    text-align: center;
}

.peso-profile-support-link span {
    min-width: 0;
}
