/* UPSA Parliament House: shared production presentation, based on the approved preview. */
:root {
    --ph-bg: #f8faf9; --ph-surface: #fff; --ph-text: #23332c;
    --ph-muted: #64736b; --ph-line: #e0e7e2; --ph-accent: #185c3b;
    --ph-tint: #edf5ef; --ph-warning: #805a1c; --ph-danger: #a33f38;
}
html.dark {
    color-scheme: dark;
    --ph-bg: #111c17; --ph-surface: #192720; --ph-text: #e6eee9;
    --ph-muted: #a3b6a9; --ph-line: #2d4034; --ph-accent: #a0d6b2;
    --ph-tint: #243c2d; --ph-warning: #e5c48c; --ph-danger: #f0aba1;
}
[x-cloak], [hidden] { display: none !important; }
.ph-app { margin: 0; background: var(--ph-bg); color: var(--ph-text); font-family: Outfit, system-ui, sans-serif; font-size: 14px; line-height: 1.55; }
.ph-app :where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--ph-accent); outline-offset: 3px; }
.ph-app :where(button, input, select, textarea) { font: inherit; }
.ph-app :where(button, a) { -webkit-tap-highlight-color: transparent; }
.ph-app :where(button:disabled, [aria-disabled="true"]) { opacity: .5; cursor: default; }
.ph-skip { position: fixed; top: 8px; left: 8px; transform: translateY(-180%); z-index: 10000; padding: 10px 16px; background: var(--ph-surface); color: var(--ph-accent); border: 1px solid var(--ph-line); border-radius: 5px; }
.ph-skip:focus { transform: none; }
.ph-shell { display: flex; min-height: 100vh; }
.ph-sidebar { width: 224px; flex-shrink: 0; position: sticky; top: 0; height: 100dvh; background: var(--ph-surface); border-right: 1px solid var(--ph-line); display: flex; flex-direction: column; z-index: 60; }
.ph-brand { display: flex; align-items: center; gap: 10px; padding: 24px 18px; color: var(--ph-text); line-height: 1.35; }
.ph-brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; }
.ph-brand strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.ph-brand small { display: block; font-size: 10px; color: var(--ph-muted); margin-top: 4px; }
.ph-nav { overflow-y: auto; padding: 12px 14px 24px; flex: 1; scrollbar-width: thin; }
.ph-nav-label { margin: 9px 10px 18px; font-size: 10px; letter-spacing: 1.2px; color: var(--ph-muted); text-transform: uppercase; }
.ph-nav-item { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 40px; border-radius: 5px; padding: 9px 10px; color: var(--ph-muted); font-size: 12px; text-align: left; margin-block: 2px; background: transparent; border: 0; }
.ph-nav-item > i:first-child { width: 18px; text-align: center; font-size: 14px; }
.ph-nav-item:hover { background: var(--ph-bg); color: var(--ph-accent); }
.ph-nav-item.is-active { background: var(--ph-tint); color: var(--ph-accent); font-weight: 500; }
.ph-nav-sub { padding: 2px 0 8px 29px; }
.ph-nav-sub a { display: block; padding: 7px 8px; color: var(--ph-muted); font-size: 12px; border-radius: 4px; }
.ph-nav-sub a:hover, .ph-nav-sub a[aria-current] { color: var(--ph-accent); background: var(--ph-tint); }
.ph-sidebar-footer { margin: 0 18px; padding: 18px 0; border-top: 1px solid var(--ph-line); font-size: 11px; color: var(--ph-muted); }
.ph-workspace { flex: 1; min-width: 0; }
.ph-topbar { position: sticky; top: 0; z-index: 40; min-height: 72px; display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: var(--ph-surface); border-bottom: 1px solid var(--ph-line); }
.ph-topbar-context { font-size: 11px; color: var(--ph-muted); }
.ph-topbar-tools { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-left: auto; min-width: 0; }
.ph-topbar-tools details { position: relative; }
.ph-topbar-tools summary { cursor: pointer; list-style: none; }
.ph-topbar-tools summary::-webkit-details-marker { display: none; }
.ph-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; max-width: calc(100vw - 32px); max-height: 65vh; overflow-y: auto; border: 1px solid var(--ph-line); border-radius: 6px; background: var(--ph-surface); padding: 7px; box-shadow: 0 8px 24px #10271a14; z-index: 70; }
.ph-menu a, .ph-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border-radius: 4px; text-align: left; font-size: 12px; }
.ph-menu a:hover, .ph-menu button:hover { background: var(--ph-bg); }
.ph-menu [aria-current] { background: var(--ph-tint); color: var(--ph-accent); }
.ph-menu-identity { padding: 8px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--ph-line); overflow-wrap: anywhere; }
.ph-menu-identity small { display: block; color: var(--ph-muted); }
.ph-term { display: flex; gap: 7px; align-items: center; padding: 7px 9px; border: 1px solid var(--ph-line); border-radius: 4px; font-size: 11px; max-width: 220px; }
.ph-term span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-icon-button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; color: var(--ph-muted); flex-shrink: 0; }
.ph-icon-button:hover { background: var(--ph-tint); color: var(--ph-accent); }
.ph-mobile-toggle { display: none; }
.ph-account { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.ph-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--ph-tint); color: var(--ph-accent); font-size: 11px; font-weight: 500; overflow: hidden; }
.ph-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ph-content { max-width: 1264px; margin-inline: auto; padding: 32px; min-height: calc(100vh - 150px); }
.ph-footer { max-width: 1264px; margin: 0 auto; padding: 20px 32px; font-size: 11px; color: var(--ph-muted); border-top: 1px solid var(--ph-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.ph-page-stack { min-width: 0; }
.ph-page-stack > * + * { margin-top: 24px; }
.ph-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.ph-content h1, .ph-heading h1 { font-size: 27px; line-height: 1.25; font-weight: 600; letter-spacing: -.7px; color: var(--ph-text); }
.ph-content h2 { letter-spacing: -.25px; }
.ph-content > :where(div, section) > :where(h1, h2) { font-size: 27px; font-weight: 600; }
.ph-eyebrow { text-transform: uppercase; font-size: 10px; letter-spacing: 1.1px; color: var(--ph-muted); margin: 0 0 7px; }
.ph-support { color: var(--ph-muted); font-size: 13px; line-height: 1.7; margin-top: 7px; max-width: 700px; }
.ph-instructions { color: var(--ph-muted); font-size: 13px; line-height: 1.7; padding: 0; margin-bottom: 24px; border: 0; background: transparent; }
.ph-warning-text { color: var(--ph-danger); }
.ph-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.ph-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 14px; border: 1px solid #185c3b; background: #185c3b; color: white; border-radius: 5px; font-size: 12px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.ph-button:hover { background: #12482e; }
.ph-button-secondary { background: var(--ph-surface); color: var(--ph-text); border-color: var(--ph-line); }
.ph-button-secondary:hover { background: var(--ph-bg); }
.ph-button-danger { background: #a33f38; border-color: #a33f38; color: #fff; }
.ph-link { font-size: 12px; font-weight: 500; color: var(--ph-accent); }
.ph-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ph-panel { background: var(--ph-surface); border: 1px solid var(--ph-line); border-radius: 7px; min-width: 0; }
.ph-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 21px; border-bottom: 1px solid var(--ph-line); }
.ph-panel-header h2 { font-size: 15px; font-weight: 600; }
.ph-panel-body { padding: 21px; }
.ph-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ph-stack { display: grid; gap: 22px; min-width: 0; }
.ph-section-gap { margin-top: 22px; }
.ph-description-list, .ph-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ph-description-list dt { color: var(--ph-muted); font-size: 10px; margin-bottom: 5px; }
.ph-description-list dd { font-size: 12px; overflow-wrap: anywhere; }
.ph-form-label { font-size: 12px; font-weight: 500; }
.ph-prose { font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.ph-check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.7; }
.ph-check-label input { flex-shrink: 0; margin-top: 4px; }
.ph-applicant-identity { flex-wrap: wrap; }
.ph-applicant-identity .ph-identity { min-width: 0; }
.ph-applicant-identity strong { overflow-wrap: anywhere; }
.ph-evaluation { padding-block: 16px; border-bottom: 1px solid var(--ph-line); }
.ph-evaluation:first-of-type { padding-top: 0; }
.ph-evaluation:last-child { padding-bottom: 0; border: 0; }
.ph-evaluation .ph-row { border: 0; padding: 0; align-items: flex-start; flex-wrap: wrap; }
.ph-evaluation .ph-prose { margin-top: 10px; }
.ph-evaluation-result { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ph-vote-counts { font-size: 11px; color: var(--ph-muted); }
.ph-reminder-actions { min-width: 0; max-width: 100%; }
.ph-reminder-actions select { min-width: 0; max-width: 100%; }
.ph-wizard { width: 100%; max-width: 888px; margin-inline: auto; padding: 64px 24px 40px; flex: 1; }
.ph-wizard-steps { display: flex; flex-wrap: wrap; gap: 12px 22px; list-style: none; padding: 0 0 17px; margin-bottom: 24px; border-bottom: 1px solid var(--ph-line); font-size: 11px; color: var(--ph-muted); }
.ph-wizard-steps .is-current { color: var(--ph-accent); font-weight: 600; }
.ph-wizard-section-title { font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.ph-wizard :is(.form-input, .form-select, .form-textarea) { width: 100%; border: 1px solid var(--ph-line); padding: 10px 12px; border-radius: 5px; background: var(--ph-surface); color: var(--ph-text); font-size: 13px; }
.ph-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ph-line); }
.ph-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-block: 1px solid var(--ph-line); padding: 18px 0; margin-bottom: 24px; }
.ph-metric { padding: 0 20px; border-right: 1px solid var(--ph-line); }
.ph-metric:first-child { padding-left: 0; }
.ph-metric:last-child { border: 0; }
.ph-metric dt, .ph-metric small { font-size: 11px; color: var(--ph-muted); }
.ph-metric dd { font-size: 25px; font-weight: 500; letter-spacing: -.6px; margin: 6px 0 0; color: var(--ph-text); }
.ph-metric small { display: block; margin-top: 3px; }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 15px; border-bottom: 1px solid var(--ph-line); min-width: 0; }
.ph-row:first-child { padding-top: 0; }
.ph-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ph-row strong { font-size: 13px; font-weight: 500; }
.ph-row p { font-size: 12px; color: var(--ph-muted); margin-top: 4px; overflow-wrap: anywhere; }
.ph-row > div { min-width: 0; }
.ph-status { display: inline-flex; padding: 3px 7px; border-radius: 4px; font-size: 11px; font-weight: 500; color: var(--ph-muted); background: var(--ph-bg); white-space: nowrap; }
.ph-status-success { color: var(--ph-accent); background: var(--ph-tint); }
.ph-status-warning { color: var(--ph-warning); background: color-mix(in srgb, var(--ph-warning) 9%, var(--ph-surface)); }
.ph-status-danger { color: var(--ph-danger); background: color-mix(in srgb, var(--ph-danger) 8%, var(--ph-surface)); }
.ph-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.ph-field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; min-width: 0; }
.ph-field-grow { flex: 1 1 240px; }
.ph-field > span { font-weight: 500; }
.ph-app :where(.ph-content, .ph-public-main, .ph-account-main) :where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea) { min-height: 41px; border-radius: 5px; border: 1px solid var(--ph-line); background-color: var(--ph-surface); color: var(--ph-text); font-size: 13px; }
.ph-field :where(input, select, textarea) { width: 100%; padding: 10px 12px; }
.ph-app :where(input[type="checkbox"], input[type="radio"]) { accent-color: #185c3b; }
.ph-table-wrap { overflow-x: auto; }
.ph-content table, .ph-table { width: 100%; border-collapse: collapse; text-align: left; }
.ph-content :where(th), .ph-table th { background: var(--ph-bg); color: var(--ph-muted); font-size: 11px; font-weight: 500; padding: 12px 18px; border-bottom: 1px solid var(--ph-line); white-space: nowrap; }
.ph-content :where(td), .ph-table td { font-size: 12px; padding: 14px 18px; border-bottom: 1px solid var(--ph-line); vertical-align: middle; }
.ph-content tbody tr:hover, .ph-table tbody tr:hover { background: var(--ph-bg); }
.ph-content tbody tr:last-child td { border-bottom: 0; }
.ph-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--ph-line); color: var(--ph-muted); font-size: 12px; }
.ph-pagination .ph-button { min-height: 34px; padding: 6px 10px; }
.ph-empty { padding: 40px 24px; text-align: center; color: var(--ph-muted); }
.ph-empty h2 { color: var(--ph-text); font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.ph-empty p { font-size: 13px; margin: 0 auto; max-width: 420px; }
.ph-empty .ph-button { margin-top: 16px; }
.ph-identity { display: flex; align-items: center; gap: 14px; }
.ph-identity img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.ph-identity p { margin-top: 6px; color: var(--ph-muted); font-size: 12px; }
.ph-numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-flash { padding: 14px 0; margin-bottom: 20px; border-bottom: 1px solid var(--ph-line); color: var(--ph-accent); font-size: 13px; }
.ph-flash-error { color: var(--ph-danger); }
.ph-flash > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ph-public-header { min-height: 72px; background: var(--ph-surface); border-bottom: 1px solid var(--ph-line); position: sticky; top: 0; z-index: 50; }
.ph-public-header-inner { max-width: 1240px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ph-public-header .ph-brand { padding: 18px 0; }
.ph-public-header .ph-mobile-toggle { display: none; }
.ph-public-nav { display: flex; align-items: center; gap: 24px; font-size: 12px; color: var(--ph-muted); }
.ph-public-nav a:hover, .ph-public-nav [aria-current] { color: var(--ph-accent); }
.ph-public-main { flex: 1; }
.ph-public-footer { border-top: 1px solid var(--ph-line); background: var(--ph-surface); padding: 30px 24px; color: var(--ph-muted); font-size: 12px; }
.ph-public-footer > div { max-width: 1192px; margin: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.ph-public-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.ph-public-container { max-width: 1192px; margin-inline: auto; padding: 42px 24px; }
.ph-public-intro { margin-bottom: 32px; max-width: 720px; }
.ph-public-intro h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -1px; line-height: 1.2; }
.ph-home-hero { max-width: 1240px; padding: 56px 24px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.ph-home-intro h1 { font-size: clamp(30px, 4vw, 50px); font-weight: 600; letter-spacing: -1.7px; line-height: 1.15; margin: 16px 0; }
.ph-home-intro .ph-support { font-size: 15px; }
.ph-home-photo { position: relative; border-radius: 7px; overflow: hidden; background: var(--ph-surface); border: 1px solid var(--ph-line); aspect-ratio: 5/4; }
.ph-home-photo > img { width: 100%; height: 100%; object-fit: cover; }
.ph-home-photo > img.ph-home-logo { object-fit: contain; padding: 64px; }
.ph-home-photo figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px; background: #10271ab3; color: white; font-size: 12px; }
.ph-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.ph-person-card { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--ph-surface); border: 1px solid var(--ph-line); border-radius: 7px; min-width: 0; }
.ph-person-card .ph-avatar { width: 52px; height: 52px; font-size: 16px; }
.ph-person-card h2 { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.ph-person-card p { font-size: 12px; color: var(--ph-muted); margin-top: 4px; overflow-wrap: anywhere; }
.ph-person-card .ph-status { margin-top: 8px; }
.ph-form-width { max-width: 840px; }
.ph-save-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; position: sticky; bottom: 0; background: var(--ph-surface); border: 1px solid var(--ph-line); border-radius: 6px; padding: 16px 20px; z-index: 20; }
.ph-content .ph-heading nav { font-size: 11px; color: var(--ph-muted); margin-top: 7px; }
.ph-content :where(.ph-button.bg-blue-600, .ph-button.bg-indigo-600, .ph-button.bg-green-600, .ph-button.bg-brand-800) { background-color: #185c3b; color: #fff; }
.dark .ph-content .ph-button, .dark .ph-account-main .ph-button { color: #fff; }
.dark .ph-content .ph-button-secondary { color: var(--ph-text); background: var(--ph-surface); }
.dark .ph-content .ph-button:not(.ph-button-secondary):not(.ph-button-danger) { background: #185c3b; }
.dark .ph-content .ph-button-danger { background: #a33f38; }
.ph-sidebar summary { list-style: none; cursor: pointer; }
.ph-sidebar summary::-webkit-details-marker { display: none; }
.ph-menu button { background: none; border: 0; color: inherit; }
[data-ph-theme] [data-ph-icon="sun"], .dark [data-ph-theme] [data-ph-icon="moon"] { display: none; }
.dark [data-ph-theme] [data-ph-icon="sun"] { display: block; }
.ph-nav-item > svg { flex-shrink: 0; }
.ph-account-main :where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea) { min-height: 42px; border-color: var(--ph-line); border-radius: 5px; background-color: var(--ph-surface); color: var(--ph-text); font-size: 13px; }
.ph-account-main :where(h1, h2) { letter-spacing: -.6px; font-weight: 600; }
.ph-account-main :where(.text-gray-500, .text-gray-600) { color: var(--ph-muted); }
.ph-account-main :where(.text-brand-500, .text-brand-800) { color: var(--ph-accent); }
.ph-account-main :where(button.bg-brand-800, a.bg-brand-800) { background-color: #185c3b; }
.ph-account-main :where(.min-h-screen) { padding-top: 64px; padding-bottom: 48px; }
.ph-account-main :where(input, textarea)::placeholder { color: var(--ph-muted); opacity: .8; }
/* Keep access forms centered independently of the in-flow PWA controls. */
.ph-onboarding-access { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.ph-onboarding-access-main { flex: 1; display: grid; place-items: center; width: 100%; min-width: 0; padding: 64px 16px 32px; }
.ph-instructions :where(.text-blue-700, .text-blue-800, .text-yellow-800, .text-blue-500) { color: inherit; }
.dark .ph-content :is(.dark\:bg-gray-800, .dark\:bg-gray-900), .dark .ph-account-main :is(.dark\:bg-gray-800, .dark\:bg-gray-900) { background-color: var(--ph-surface); }
.dark .ph-content :is(.dark\:border-gray-700, .dark\:border-gray-800) { border-color: var(--ph-line); }
.ph-dialog { border: 1px solid var(--ph-line); border-radius: 7px; padding: 24px; width: calc(100% - 32px); max-width: 480px; color: var(--ph-text); background: var(--ph-surface); }
.ph-dialog::backdrop { background: #10271a80; }
.ph-dialog h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.ph-dialog .ph-actions { justify-content: flex-end; margin-top: 22px; }
.ph-dialog .ph-field { margin-top: 18px; }
/* Compatibility for retained PHP forms and cards while using shared tokens. */
.ph-content :where(.bg-white), .ph-account-main :where(.bg-white) { background-color: var(--ph-surface); }
.ph-content :where(.bg-gray-50, .bg-gray-100) { background-color: var(--ph-bg); }
.ph-content :where(.border-gray-100, .border-gray-200, .border-gray-300) { border-color: var(--ph-line); }
.ph-content :where(.text-gray-500, .text-gray-600, .text-gray-400) { color: var(--ph-muted); }
.ph-content :where(.text-gray-800, .text-gray-900, .text-black) { color: var(--ph-text); }
.ph-content :where(.text-white.bg-brand-500, .text-white.bg-brand-600), .ph-account-main :where(.text-white.bg-brand-500, .text-white.bg-brand-600) { background-color: #185c3b; }
.ph-content :where(span.rounded-full, span.rounded-lg)[class*="text-xs"] { border-radius: 4px; }
@media (max-width: 1100px) {
    .ph-topbar-context { display: none; }
    .ph-topbar { padding-inline: 24px; }
    .ph-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-public-nav { gap: 16px; }
}
@media (max-width: 1023px) {
    .ph-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 8px 0 30px #10271a15; }
    .ph-sidebar.is-open { transform: none; }
    .ph-mobile-toggle { display: inline-flex; }
    .ph-nav-shade { position: fixed; inset: 0; background: #10271a80; z-index: 55; }
    .ph-topbar-tools { gap: 10px; }
    .ph-content { padding: 28px 24px; }
}
@media (max-width: 767px) {
    .ph-home-hero { grid-template-columns: 1fr; gap: 28px; padding-block: 32px; }
    .ph-home-photo { aspect-ratio: 16/9; }
    .ph-public-nav { display: none; }
    .ph-public-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; width: 100%; background: var(--ph-surface); border-bottom: 1px solid var(--ph-line); flex-direction: column; align-items: stretch; padding: 16px 24px; gap: 0; }
    .ph-public-nav.is-open a { padding: 11px 0; }
    .ph-public-header .ph-mobile-toggle { display: inline-flex; }
    .ph-split { grid-template-columns: minmax(0, 1fr); }
    .ph-account-name { display: none; }
    .ph-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
    .ph-metric:nth-child(2n) { border-right: 0; }
    .ph-metric:nth-child(2n+1) { padding-left: 0; }
    .ph-toolbar > .ph-field { flex: 1 1 140px; }
}
@media (max-width: 480px) {
    .ph-topbar { padding: 12px 16px; gap: 6px; min-height: 64px; }
    .ph-topbar-tools { gap: 5px; flex: 1; }
    .ph-term { max-width: 160px; }
    .ph-topbar-tools .ph-search-label { display: none; }
    .ph-content { padding: 26px 16px; }
    .ph-content h1, .ph-heading h1 { font-size: 24px; }
    .ph-footer { padding: 20px 16px 30px; }
    .ph-heading { align-items: flex-start; margin-bottom: 24px; }
    .ph-panel-body { padding: 18px; }
    .ph-panel-header { padding: 16px 18px; }
    .ph-public-header-inner { padding-inline: 16px; gap: 8px; }
    .ph-public-header .ph-brand strong { font-size: 13px; }
    .ph-public-header .ph-brand small { font-size: 9px; }
    .ph-public-header .ph-brand img { width: 30px; height: 30px; }
    .ph-public-container { padding: 28px 16px; }
    .ph-directory { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .ph-person-card { padding: 15px; }
    .ph-person-card .ph-avatar { width: 44px; height: 44px; font-size: 13px; }
    .ph-pagination { padding: 14px 0; font-size: 11px; }
    .ph-pagination .ph-actions { gap: 6px; }
    .ph-identity { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .ph-app *, .ph-app *::before, .ph-app *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print {
    .ph-sidebar, .ph-topbar, .ph-public-header, .ph-public-footer, .ph-footer, .ph-skip, .ph-nav-shade, .ph-no-print, .ph-dialog, .pwa-float-container, .pwa-notify-float, .pwa-modal-backdrop { display: none !important; }
    .ph-shell, .ph-workspace { display: block; }
    .ph-content { padding: 0; max-width: none; min-height: 0; }
    .ph-app { background: white; color: black; }
    .ph-panel { break-inside: avoid; }
}
