/* Shared People Hub presentation. Official print layouts and desktop retain
   their original geometry; records remain plain, high-contrast reading surfaces. */
.project-mobile-chrome, .project-mobile-scroll-hint { display: none; }
@media screen and (max-width: 767.98px) {
    body.people-hub-mobile {
        --oa-bg: #edf0f8; --oa-surface: #fbfcff; --oa-ink: #2c3650; --oa-muted: #57637c;
        --oa-accent: #3c5d9b; --oa-tint: #dde5f6; --oa-shadow: #cbd2e3; --oa-border: #c6cede;
        --oa-raised: 6px 6px 14px #cbd2e3, -6px -6px 14px #fff;
        --oa-inset: inset 3px 3px 7px #cbd2e3, inset -3px -3px 7px #fff;
        --mobile-radius: 20px; --mobile-ink: var(--oa-ink); --mobile-muted: var(--oa-muted);
        --mobile-accent: var(--oa-accent); --people-mobile-dock-space: 108px;
        color: var(--oa-ink); background: var(--oa-bg) !important; font-size: 16px; line-height: 1.6;
    }
    body.people-hub-mobile-global { padding-top: 0 !important; padding-bottom: calc(var(--people-mobile-dock-space) + env(safe-area-inset-bottom, 0px)) !important; }
    body.people-hub-mobile-global > header { display: none; }
    body.people-hub-mobile-global > .container-xl.flex-grow-1 { width: 100%; max-width: 760px; padding: 0 18px; }
    body.people-hub-mobile-global > main { width: 100%; max-width: 760px; margin: auto; padding: 0 18px; }
    body.people-hub-mobile-global > .container-xl > main { min-width: 0; padding-bottom: 24px !important; }
    body.people-hub-mobile-framed { padding-top: 0 !important; }
    body.people-hub-mobile [hidden] { display: none !important; }
    body.people-hub-mobile :where(h1, h2, h3, h4, p, dd, label, .text-break) { overflow-wrap: anywhere; }
    body.people-hub-mobile :where(a, button, input, select, textarea, summary, [tabindex="0"]):focus-visible { outline: 3px solid var(--oa-accent); outline-offset: 3px; }
    body.people-hub-mobile :where(button, a, summary, label) { touch-action: manipulation; }
    body.people-hub-mobile :where(input, select, textarea) { scroll-margin-block: 100px 160px; }
    body.people-hub-mobile :where(.form-control, .form-select):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
        min-width: 0; min-height: 48px; max-width: 100%; padding: 11px 12px; font-size: 16px !important;
        color: var(--oa-ink); background-color: var(--oa-surface); border: 1px solid var(--oa-border); border-radius: 13px;
    }
    body.people-hub-mobile .form-select { padding-right: 34px; }
    body.people-hub-mobile :where(textarea.form-control) { min-height: 108px; line-height: 1.6; }
    body.people-hub-mobile :where(.form-control:disabled, .form-select:disabled, .form-control[readonly]) { background-color: #e3e7f0; color: #515c72; opacity: 1; box-shadow: none; }
    body.people-hub-mobile :where(.form-label, .form-check-label) { font-size: 14px; line-height: 1.6; color: var(--oa-ink); }
    body.people-hub-mobile :where(.form-text, small.text-muted) { color: var(--oa-muted) !important; font-size: 13px; line-height: 1.6; }
    body.people-hub-mobile :where(.form-check) { min-height: 44px; padding-block: 8px; }
    body.people-hub-mobile :where(.form-check-input) { width: 21px; height: 21px; flex-shrink: 0; accent-color: var(--oa-accent); }
    body.people-hub-mobile :where(.form-check-label) { padding-left: 5px; }
    body.people-hub-mobile :where(.btn, .page-link) { min-height: 44px; padding: 10px 14px; border-radius: 13px; font-size: 14px; line-height: 1.5; white-space: normal; }
    body.people-hub-mobile :where(.btn-primary) { background-color: var(--oa-accent); border-color: var(--oa-accent); color: #fff; }
    body.people-hub-mobile :where(.btn-outline-primary) { background-color: var(--oa-surface); color: var(--oa-accent); border-color: var(--oa-accent); }
    body.people-hub-mobile :where(.btn:disabled, button:disabled) { opacity: .6; cursor: not-allowed; box-shadow: none; }
    body.people-hub-mobile :where(.card) { min-width: 0; background-color: var(--oa-bg); border: 1px solid #ffffffa6; border-radius: 22px !important; box-shadow: var(--oa-raised); }
    body.people-hub-mobile :where(.card-header, .card-footer) { padding: 16px; background-color: transparent; border-color: var(--oa-border); }
    body.people-hub-mobile :where(.card-body) { padding: 20px 16px !important; }
    body.people-hub-mobile :where(.card h2, .card h3, .card h4) { line-height: 1.35; }
    body.people-hub-mobile :where(.alert) { font-size: 14px; line-height: 1.6; border-radius: 16px; }
    body.people-hub-mobile :where(.validation-summary-errors, .field-validation-error, .invalid-feedback) { font-size: 14px; line-height: 1.6; }
    body.people-hub-mobile :where(.input-group) { min-width: 0; }
    body.people-hub-mobile :where(.input-group > .form-control, .input-group > .form-select) { width: 1%; }
    body.people-hub-mobile :where(.nav-tabs, .nav-pills) { gap: 8px; flex-wrap: wrap; border-color: var(--oa-border); }
    body.people-hub-mobile :where(.nav-tabs .nav-link, .nav-pills .nav-link) { min-height: 44px; padding: 10px 14px; white-space: normal; font-size: 14px; border-radius: 12px; }
    body.people-hub-mobile :where(.nav-pills .nav-link.active) { color: #fff; background-color: var(--oa-accent); }
    body.people-hub-mobile :where(.table-responsive, [data-people-mobile-scroll]) { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; border-radius: 16px; }
    body.people-hub-mobile [data-people-mobile-scroll] { width: 100%; }
    body.people-hub-mobile .project-mobile-scroll-hint { display: block; margin: 12px 0 8px; color: var(--oa-muted); font-size: 12px; }
    body.people-hub-mobile :where(table) { font-variant-numeric: tabular-nums; }
    body.people-hub-mobile :where(.table td, .table th) { font-size: 14px; line-height: 1.5; }
    body.people-hub-mobile :where(.modal-content) { background: var(--oa-bg); color: var(--oa-ink); border: 1px solid var(--oa-border); border-radius: 22px !important; }
    body.people-hub-mobile :where(.modal-header, .modal-body, .modal-footer) { padding: 20px 16px !important; }
    body.people-hub-mobile :where(.modal-header) { align-items: flex-start; gap: 14px; }
    body.people-hub-mobile :where(.modal-title) { font-size: 21px; line-height: 1.4; }
    body.people-hub-mobile :where(.modal-header .btn-close, .offcanvas-header .btn-close) { box-sizing: border-box; width: 44px; height: 44px; margin: -8px -8px -8px 0; padding: 12px; flex: 0 0 44px; background-size: 14px; }
    body.people-hub-mobile :where(.modal-footer) { gap: 12px; }
    body.people-hub-mobile :where(.offcanvas) { max-width: 100%; color: var(--oa-ink); background: var(--oa-bg); }
    body.people-hub-mobile :where(.offcanvas-body) { padding: 20px 18px; }
    body.people-hub-mobile :where(dialog) { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
    body.people-hub-mobile :where(dialog)::backdrop { background: #1c2b46a8; }

    /* A single application dock; role workspaces keep their existing menus. */
    body.people-hub-mobile-global > .project-mobile-chrome { display: block; width: 100%; }
    body.people-hub-mobile .project-mobile-chrome [hidden] { display: none !important; }
    .people-hub-mobile .project-mobile-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 760px; padding: 20px 18px 26px; margin: auto; }
    .people-hub-mobile .project-mobile-brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--oa-ink); }
    .people-hub-mobile .project-mobile-brand > span:last-child { min-width: 0; }
    .people-hub-mobile .project-mobile-brand strong { display: block; font-size: 17px; font-weight: 650; }
    .people-hub-mobile .project-mobile-brand small { display: block; margin-top: 2px; color: var(--oa-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
    .people-hub-mobile .project-mobile-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; padding: 10px; border: 1px solid #ffffffa6; border-radius: 16px; background: var(--oa-bg); color: var(--oa-accent); box-shadow: var(--oa-raised); font-size: 21px; }
    .people-hub-mobile .project-mobile-logo { padding: 5px; }
    .people-hub-mobile .project-mobile-logo img { display: block; width: 34px; height: 34px; max-width: 100%; object-fit: contain; }
    .people-hub-mobile .project-mobile-dock { display: flex; position: fixed; z-index: 1025; bottom: 0; inset-inline: 0; gap: 12px; width: 100%; max-width: 760px; margin: auto; padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--oa-bg); border-top: 1px solid #ffffffb3; }
    .people-hub-mobile .project-mobile-dock > :is(a, button) { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; flex: 1; gap: 6px; min-width: 0; min-height: 64px; padding: 8px 2px; border: 1px solid #ffffff70; border-radius: 18px; color: var(--oa-muted); background: var(--oa-bg); box-shadow: 4px 4px 10px var(--oa-shadow), -4px -4px 10px #fff; text-decoration: none; font-size: 11px; font-weight: 600; line-height: 1.2; }
    .people-hub-mobile .project-mobile-dock i { font-size: 21px; line-height: 1; }
    .people-hub-mobile .project-mobile-dock :is([aria-current="page"], [data-current]) { color: #fff; background: var(--oa-accent); border-color: var(--oa-accent); box-shadow: inset 2px 2px 6px #284572; }
    .people-hub-mobile .project-mobile-badge { position: absolute; top: 3px; right: 3px; min-width: 18px; padding: 2px 4px; border-radius: 10px; font-size: 10px; background: #a92d48; color: #fff; }
    .people-hub-mobile.people-mobile-keyboard .project-mobile-dock { visibility: hidden; pointer-events: none; }
    .people-hub-mobile .project-mobile-menu:not([open]) { display: none; }
    .people-hub-mobile .project-mobile-menu[open] { position: fixed; inset: auto 0 0; width: 100%; max-width: 680px; max-height: 90dvh; margin: auto; padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)); overflow: auto; overscroll-behavior: contain; color: var(--oa-ink); background: var(--oa-bg); border: 1px solid #fff; border-radius: 26px 26px 0 0; box-shadow: 0 -12px 40px #23354f30; }
    .people-hub-mobile .project-mobile-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
    .people-hub-mobile .project-mobile-menu-heading p { margin: 0 0 4px; font-size: 12px; color: var(--oa-muted); }
    .people-hub-mobile .project-mobile-menu-heading h2 { margin: 0; font-size: 23px; line-height: 1.3; font-weight: 650; }
    .people-hub-mobile .project-mobile-menu .navbar-nav { display: grid; gap: 16px; margin: 0 !important; padding: 0; list-style: none; }
    .people-hub-mobile .project-mobile-menu .nav-item { width: 100%; min-width: 0; border: 1px solid #ffffffa6; border-radius: 18px; color: var(--oa-ink); background: var(--oa-bg); box-shadow: var(--oa-raised); }
    .people-hub-mobile .project-mobile-menu .nav-item:hover { transform: none; }
    .people-hub-mobile .project-mobile-menu :is(.nav-link, .project-mobile-fallback a) { display: flex; align-items: center; justify-content: flex-start; flex-direction: row; gap: 14px; width: 100%; min-height: 58px; padding: 16px; color: var(--oa-ink) !important; font-size: 15px; font-weight: 600; text-align: left !important; text-decoration: none; white-space: normal; }
    .people-hub-mobile .project-mobile-menu .nav-link > i { color: var(--oa-accent) !important; font-size: 21px !important; }
    .people-hub-mobile .project-mobile-menu .nav-link > img { width: 24px; height: 24px; flex-shrink: 0; }
    .people-hub-mobile .project-mobile-menu .notification-trigger { align-items: center; justify-content: flex-start; flex-direction: row; }
    .people-hub-mobile .project-mobile-menu .dropdown-menu { position: static !important; inset: auto !important; transform: none !important; width: 100%; min-width: 0; max-width: 100%; margin: 0; border-color: var(--oa-border); border-radius: 16px; }
    .people-hub-mobile .project-mobile-menu .notification-dropdown::before, .people-hub-mobile .project-mobile-menu .notification-dropdown::after { display: none; }
    .people-hub-mobile .project-mobile-menu .notification-list { max-height: 48dvh; }
    .people-hub-mobile .project-mobile-menu .notification-header { gap: 12px; flex-wrap: wrap; }
    .people-hub-mobile .project-mobile-menu :is(.notification-mark-read, .notification-retry, .notification-footer a) { min-height: 44px; padding: 10px; font-size: 13px; }
    .people-hub-mobile .project-mobile-menu .notification-copy-main { font-size: 14px; }
    .people-hub-mobile .project-mobile-menu :is(.notification-copy-sub, .notification-time) { font-size: 12px; line-height: 1.6; }
    .people-hub-mobile .project-mobile-fallback { display: grid; gap: 16px; }
    .people-hub-mobile .project-mobile-fallback a { border: 1px solid var(--oa-border); border-radius: 16px; background: var(--oa-surface); }
    body.people-hub-mobile-global #homeServices { scroll-margin-top: 20px; scroll-margin-bottom: 120px; }

    /* Quick Action retains its scanner and decision steps inside a readable sheet. */
    body.people-hub-mobile .qa { --qa-ink: var(--oa-ink); --qa-muted: var(--oa-muted); --qa-line: var(--oa-border); --qa-blue: var(--oa-accent); }
    body.people-hub-mobile .qa > summary { min-height: 52px; background: var(--oa-bg); color: var(--oa-accent); border-color: var(--oa-border); box-shadow: var(--oa-raised); }
    body.people-hub-mobile .qa-panel { color: var(--oa-ink); background: var(--oa-bg); }
    body.people-hub-mobile .qa-panel::before { background: var(--oa-accent); }
    body.people-hub-mobile .qa :is(.qa-header, .qa-footer, .qa-guide-top) { background: var(--oa-bg); border-color: var(--oa-border); }
    body.people-hub-mobile .qa-header { gap: 16px; padding: calc(22px + env(safe-area-inset-top, 0px)) 20px 20px; }
    body.people-hub-mobile .qa-body { padding: 22px 20px 28px; }
    body.people-hub-mobile .qa-footer { padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); font-size: 12px; }
    body.people-hub-mobile .qa :is(h2, h3, h4) { color: var(--oa-ink); font-weight: 600; }
    body.people-hub-mobile .qa h2 { font-size: 22px; }
    body.people-hub-mobile .qa h4 { font-size: 15px; line-height: 1.5; }
    body.people-hub-mobile .qa :is(p, label, .qa-pending, .qa-guide-body > p, .qa-permission-body p, .qa-permission li) { font-size: 14px; line-height: 1.65; }
    body.people-hub-mobile .qa :is(.qa-camera-note, .qa-permission-note, .qa-permission-alternative, .qa-history time) { font-size: 12px; line-height: 1.6; }
    body.people-hub-mobile .qa :is(button, .qa-upload) { min-height: 46px; padding: 12px 14px; border-radius: 14px; border-color: var(--oa-border); background: var(--oa-bg); color: var(--oa-accent); box-shadow: 3px 3px 8px var(--oa-shadow), -3px -3px 8px #fff; font-size: 14px; font-weight: 600; }
    body.people-hub-mobile .qa :is(.qa-info, .qa-guide-close, [data-close]) { width: 46px; min-width: 46px; padding: 10px; }
    body.people-hub-mobile .qa .qa-primary { color: #fff; background: var(--oa-accent); border-color: var(--oa-accent); }
    body.people-hub-mobile .qa .qa-primary:hover:not(:disabled) { color: #fff; background: #304d83; }
    body.people-hub-mobile .qa .qa-upload { color: var(--oa-accent); font-size: 14px; }
    body.people-hub-mobile .qa :is(input:not([type=file]):not([type=hidden]), textarea, select) { min-height: 48px; padding: 12px; color: var(--oa-ink); background: var(--oa-surface); border: 1px solid var(--oa-border); border-radius: 14px; box-shadow: var(--oa-inset); font-size: 16px; line-height: 1.5; }
    body.people-hub-mobile .qa :is(.qa-permission, .qa-history, .qa-guide, [data-confirm]) { background: var(--oa-bg); border-color: var(--oa-border); border-radius: 18px; }
    body.people-hub-mobile .qa :is(.qa-permission > summary, .qa-history > summary) { min-height: 48px; padding: 14px; font-size: 14px; color: var(--oa-ink); }
    body.people-hub-mobile .qa .qa-guide h3 { color: var(--oa-ink); font-size: 22px; font-weight: 600; }
    body.people-hub-mobile .qa :is(.qa-guide-body, .qa-guide-top) { padding: 20px; }
    body.people-hub-mobile .qa .qa-buttons { gap: 12px; margin-top: 18px; }
    body.people-hub-mobile .qa :is([data-applicant], [data-fields], [data-route], .qa-document-list) { overflow-wrap: anywhere; }

    /* Entry screens center their natural height; tall content can still scroll. */
    body.people-hub-mobile:has(.kiosk-shell) {
        height: auto; min-height: 100svh !important; min-height: 100dvh !important;
        padding: max(20px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
    }
    body.people-hub-mobile:has(.kiosk-shell) > .container-xl { flex-grow: 0 !important; width: 100%; max-width: 440px; margin: auto; padding: 0; }
    body.people-hub-mobile:has(.kiosk-shell) > .container-xl > main { padding: 0 !important; }
    body.people-hub-mobile .page-wrap:has(.kiosk-shell) { padding: 0 !important; width: 100%; }
    body.people-hub-mobile .kiosk-shell { min-height: 0; padding: 0 !important; align-items: center; text-align: center; }
    body.people-hub-mobile .kiosk-card { min-width: 0; max-width: 440px; border: 1px solid #ffffffb3; border-radius: 24px; background: var(--oa-bg); box-shadow: var(--oa-raised); -webkit-backdrop-filter: none; backdrop-filter: none; }
    body.people-hub-mobile .kiosk-card-body { padding: 22px 18px !important; }
    body.people-hub-mobile .kiosk-card .mobile-topbar { flex-direction: column; align-items: center !important; justify-content: center !important; gap: 14px !important; margin-bottom: 22px !important; }
    body.people-hub-mobile .kiosk-card .mobile-logos { justify-content: center; gap: 14px !important; }
    body.people-hub-mobile .kiosk-card .mobile-logos img { width: auto; height: 56px; max-width: 45%; object-fit: contain; }
    body.people-hub-mobile .kiosk-card .mobile-datetime { justify-content: center; align-items: center !important; flex-wrap: wrap; margin-top: 0 !important; }
    body.people-hub-mobile .kiosk-card .mobile-datetime :is(.time, .date-stack) { margin-top: 0 !important; color: var(--oa-muted); }
    body.people-hub-mobile .kiosk-card .time { font-size: 22px; }
    body.people-hub-mobile .kiosk-card .date-stack { font-size: 12px; line-height: 1.4; text-align: left; }
    body.people-hub-mobile .kiosk-card .hero-title h6 { margin: 0 0 4px !important; font-size: 20px !important; line-height: 1.4; color: var(--oa-muted) !important; }
    body.people-hub-mobile .kiosk-card .hero-title h1 { font-size: clamp(32px, 9vw, 40px) !important; line-height: 1.2 !important; color: var(--oa-ink) !important; }
    body.people-hub-mobile .kiosk-card .hero-title > p { margin: 16px 0 0 !important; color: var(--oa-muted); font-size: 14px; line-height: 1.6; }
    body.people-hub-mobile .kiosk-card .hero-btn { margin: 22px 0 20px !important; }
    body.people-hub-mobile .kiosk-card .hero-btn .btn { width: 100% !important; max-width: 320px; min-height: 50px; margin: 0 !important; padding: 12px 16px; border-radius: 14px !important; font-size: 16px; }
    body.people-hub-mobile .kiosk-card .hero-title > small { display: block; color: var(--oa-muted); font-size: 11px; line-height: 1.6; }

    /* Standalone sign-in shares the same surfaces without authenticated links. */
    body.people-hub-mobile.login-page {
        min-height: 100svh; min-height: 100dvh;
        padding: max(20px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
    }
    .people-hub-mobile .login-shell { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 0; width: 100%; padding: 0; max-width: 440px; margin: auto; }
    .people-hub-mobile .login-card { width: 100%; padding: 26px 20px; background: var(--oa-bg); border: 1px solid #ffffffa6; border-radius: 26px; box-shadow: var(--oa-raised); }
    .people-hub-mobile .login-card h1 { font-size: 30px; font-weight: 650; color: var(--oa-ink); }
    .people-hub-mobile :is(.login-intro, .login-help, .login-pin-help) { color: var(--oa-muted); font-size: 14px; line-height: 1.6; }
    .people-hub-mobile .login-field input { min-height: 50px; font-size: 16px; color: var(--oa-ink); background: var(--oa-surface); border: 1px solid var(--oa-border); border-radius: 14px; box-shadow: var(--oa-inset); }
    .people-hub-mobile .login-field input::placeholder { color: var(--oa-muted); }
    .people-hub-mobile .login-submit { min-height: 50px; font-size: 16px; background: var(--oa-accent); border-radius: 14px; }
    .people-hub-mobile .login-pin-help summary { min-height: 44px; padding-block: 12px; }
    .people-hub-mobile .login-welcome { display: none; }
    .people-hub-mobile .login-welcome h2 { font-size: 26px; color: var(--oa-ink); }
    .people-hub-mobile .login-welcome-note { font-size: 14px; color: var(--oa-muted); }
}
@media screen and (max-width: 359.98px) {
    body.people-hub-mobile-global > .container-xl.flex-grow-1, body.people-hub-mobile-global > main { padding-inline: 14px; }
    .people-hub-mobile .project-mobile-header { padding-inline: 14px; }
    .people-hub-mobile .project-mobile-dock { gap: 9px; padding-inline: 14px; }
}
@media print { .project-mobile-chrome, .project-mobile-scroll-hint { display: none !important; } }
