/* Shared page guidance and support presentation; site branding comes from context. */
#pageHelpWidget, .ph-page { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; color: #1f2937; }
.ph-widget *, .ph-page * { box-sizing: border-box; }
.ph-widget [hidden], .ph-page [hidden] { display: none !important; }
body:has(#pageHelpWidget) { padding-bottom: 84px; }
.ph-launcher { position: fixed; z-index: 220; right: 18px; bottom: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 15px; border: 1px solid #fff; border-radius: 24px; background: #0e2a47; color: #fff !important; box-shadow: 0 3px 16px #0e2a4738; font-size: 14px; font-weight: 700; text-decoration: none !important; }
.ph-launcher span { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #b7d1eb; border-radius: 50%; font-size: 13px; }
body:has(input:focus, textarea:focus, select:focus, [contenteditable]:not([contenteditable="false"]):focus) .ph-launcher { opacity: 0; pointer-events: none; }
.has-selection .ph-launcher { bottom: 110px; }
.ph-dialog { width: min(590px, calc(100% - 24px)); max-width: 590px; max-height: calc(100dvh - 32px); margin: auto; padding: 22px; overflow: auto; border: 1px solid #94a3b8; border-radius: 14px; background: #fff; color: #1f2937; box-shadow: 0 20px 70px #0e2a474d; }
.ph-dialog::backdrop { background: #0a1628b8; }
.ph-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ph-dialog-heading > div { min-width: 0; }
.ph-dialog h2 { margin: 0; color: #0e2a47; font-size: 1.25rem; line-height: 1.35; overflow-wrap: anywhere; }
.ph-dialog h3 { margin: 0 0 8px; font-size: 1rem; color: #0e2a47; }
.ph-dialog p { margin: 10px 0; }
.ph-kicker { margin: 0 0 5px !important; color: #475569; font-size: .76rem; font-weight: 700; letter-spacing: .03em; }
.ph-source { color: #475569; font-size: .78rem; }
.ph-steps { margin: 16px 0; padding-left: 22px; }
.ph-steps li + li { margin-top: 10px; }
.ph-guide-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0; }
.ph-widget a:not(.ph-launcher), .ph-page a:not(.ph-button) { color: #075985; text-decoration: underline; }
.ph-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 15px; border: 1px solid #0e2a47; border-radius: 7px; background: #0e2a47; color: #fff; font: inherit; font-size: .9rem; font-weight: 650; text-decoration: none !important; cursor: pointer; }
.ph-button:hover { background: #173f68; color: #fff; }
.ph-button--quiet { border-color: #94a3b8; background: #fff; color: #0e2a47; }
.ph-button--quiet:hover { background: #eff6ff; color: #0e2a47; }
.ph-button:disabled { opacity: .65; cursor: progress; }
.ph-widget :focus-visible, .ph-page :focus-visible { outline: 3px solid #bd861d; outline-offset: 3px; }
.ph-question-form { margin: 20px 0 12px; padding-top: 16px; border-top: 1px solid #cbd5e1; }
.ph-question-form label, .ph-support-form label { display: block; margin: 14px 0 6px; color: #0e2a47; font-size: .9rem; font-weight: 650; }
.ph-question-form textarea, .ph-support-form input, .ph-support-form textarea, .ph-support-form select, .ph-inbox-filter select { display: block; width: 100%; min-width: 0; padding: 10px 12px; min-height: 44px; border: 1px solid #94a3b8; border-radius: 7px; background: #fff; color: #1f2937; font: inherit; font-size: 1rem; }
.ph-question-form textarea, .ph-support-form textarea { resize: vertical; }
.ph-question-form button, .ph-support-form > button { margin-top: 12px; }
.ph-small { display: block; color: #475569; font-size: .82rem; line-height: 1.6; }
.ph-answer { margin: 16px 0; padding: 14px 16px; border: 1px solid #bfdbfe; border-radius: 8px; background: #f4f9ff; }
.ph-answer-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.ph-error { margin: 14px 0; padding: 11px 14px; border: 1px solid #fca5a5; border-radius: 7px; background: #fff1f2; color: #991b1b; font-size: .88rem; overflow-wrap: anywhere; }
.ph-error p { margin: 0 0 5px; }
.ph-error ul { margin: 0; padding-left: 18px; }
.ph-field-error { color: #991b1b; font-size: .82rem; margin: 5px 0; }
.ph-support-form [aria-invalid="true"] { border-color: #b91c1c; }
.ph-read-button { margin: 8px 0; }
.ph-support-link { border-top: 1px solid #cbd5e1; padding-top: 16px; margin-top: 20px !important; }
.ph-support-link a { font-weight: 650; }
.ph-support-link .ph-small { margin-top: 5px; }
.ph-page { width: 100%; max-width: 820px; margin: 24px auto 34px; }
.ph-page--wide { max-width: 1100px; }
.ph-back { margin: 0 0 16px; font-size: .9rem; }
.ph-panel { padding: 24px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; }
.ph-panel h1 { margin: 0 0 12px; color: #0e2a47; font-size: 1.5rem; line-height: 1.35; overflow-wrap: anywhere; }
.ph-panel h2 { margin: 18px 0 10px; color: #0e2a47; font-size: 1.15rem; }
.ph-panel p { margin: 10px 0; }
.ph-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ph-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ph-receipt { padding: 14px 18px; border: 1px solid #bfdbfe; border-radius: 7px; background: #eff6ff; color: #0e2a47; font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ph-inbox-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 12px; }
.ph-inbox-filter label { font-weight: 650; }
.ph-inbox-filter select { width: auto; min-width: 170px; }
.ph-table-scroll { max-width: 100%; overflow-x: auto; margin: 18px 0 0; border: 1px solid #cbd5e1; border-radius: 8px; }
.ph-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: .88rem; }
.ph-table th, .ph-table td { padding: 12px 14px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.ph-table th { color: #0e2a47; background: #f1f5f9; }
.ph-table tr:last-child td { border-bottom: 0; }
.ph-table small { display: block; color: #475569; margin-top: 4px; }
.ph-empty { padding: 20px 0; color: #475569; }
.ph-request-details { margin: 20px 0; }
.ph-request-details > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.ph-request-details dt { color: #475569; }
.ph-request-details dd { margin: 0; overflow-wrap: anywhere; }
.ph-support-message { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 7px; margin-bottom: 20px !important; }
.ph-note { padding: 12px 14px; border-radius: 7px; background: #eff6ff; color: #0e2a47; }
@media (max-width: 700px) { .has-selection .ph-launcher { bottom: 165px; } }
@media (max-width: 540px) {
  .ph-launcher { right: 12px; bottom: 12px; }
  .ph-dialog { padding: 18px; max-height: calc(100dvh - 20px); }
  .ph-dialog-heading { gap: 12px; }
  .ph-panel { padding: 18px; }
  .ph-field-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ph-actions > * { width: 100%; }
  .ph-request-details > div { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
}
@media print { #pageHelpWidget { display: none; } }
