/* Self-contained package guide. Deliberately independent of generic form/button styles. */
.hcs-package-guide { color: #102e50; font: 16px/1.5 Arial, Helvetica, sans-serif; }
.hcs-package-guide [hidden] { display: none !important; }
.hcs-guide-launcher { position: fixed; z-index: 30; right: 22px; bottom: 22px; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; min-height: 52px; max-width: calc(100vw - 32px); padding: 12px 19px; border: 1px solid #426f2a; border-radius: 28px; background: #397126; color: #fff; box-shadow: 0 6px 22px #102e5038; cursor: pointer; font: 700 16px/1.35 Arial, Helvetica, sans-serif; }
.hcs-guide-launcher svg { width: 24px; height: 24px; flex: 0 0 auto; }
.hcs-guide-launcher:hover { background: #2d5c1d; }
.hcs-guide-dialog { position: fixed; inset: auto 22px 22px auto; inset-inline-end: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); margin: 0; padding: 0; width: 430px; max-width: calc(100vw - 32px); max-height: calc(100vh - 44px); max-height: calc(100dvh - 44px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border: 1px solid #b8cdd4; border-radius: 19px; background: #fff; color: #102e50; box-shadow: 0 20px 70px #06263d55; overflow: hidden; font: 16px/1.5 Arial, Helvetica, sans-serif; }
.hcs-guide-dialog::backdrop { background: #08263766; }
.hcs-guide-dialog:not([open]) { display: none; }
.hcs-guide-shell { display: flex; flex-direction: column; max-height: inherit; }
.hcs-guide-header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #102e50; color: #fff; padding: 19px 20px; }
.hcs-guide-header p { color: #d8ebce; font-size: 12px; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; margin: 0 0 5px; }
.hcs-guide-header h2 { font-size: 24px; line-height: 1.2; margin: 0; color: inherit; }
.hcs-guide-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #71899d; border-radius: 50%; background: transparent; color: #fff; font: 30px/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.hcs-guide-close:hover { background: #23486a; }
.hcs-guide-body { position: relative; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px; scrollbar-gutter: stable; }
.hcs-guide-intro { margin: 0 0 20px; color: #4b626d; font-size: 14px; line-height: 1.5; }
.hcs-guide-message { max-width: 93%; background: #edf5f8; padding: 11px 13px; border-radius: 11px 11px 11px 3px; margin: 10px 0; font-size: 14px; }
.hcs-guide-message-you { margin-left: auto; background: #edf4e7; border-radius: 11px 11px 3px 11px; color: #284a23; }
.hcs-guide-current { margin-top: 20px; scroll-margin-top: 14px; }
.hcs-guide-progress { margin: 0 0 7px; color: #426c31; font-size: 12px; letter-spacing: .025em; font-weight: 700; }
.hcs-guide-current h3 { font-size: 22px; line-height: 1.25; margin: 0 0 14px; color: #102e50; }
.hcs-guide-current h3:focus { outline: none; }
.hcs-guide-hint, .hcs-guide-result { margin: 0 0 15px; font-size: 15px; line-height: 1.55; color: #3b566a; }
.hcs-guide-options, .hcs-guide-result-actions { display: grid; gap: 10px; }
.hcs-guide-option { appearance: none; min-height: 48px; width: 100%; border: 1px solid #b4c9d5; border-radius: 9px; background: #fff; color: #102e50; font: 400 16px/1.45 Arial, Helvetica, sans-serif; text-align: left; padding: 12px 14px; cursor: pointer; overflow-wrap: anywhere; }
.hcs-guide-option:hover { background: #f0f7eb; border-color: #538535; }
.hcs-guide-link { display: block; min-height: 48px; padding: 12px 14px; border: 1px solid #9ab88d; border-radius: 9px; color: #2d5c1d; font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none; text-align: center; }
.hcs-guide-link:hover { background: #edf4e7; }
.hcs-guide-link-primary { color: #fff; background: #397126; border-color: #397126; }
.hcs-guide-link-primary:hover { background: #2d5c1d; }
.hcs-guide-disclaimer { margin: 17px 0 0; font-size: 13px; line-height: 1.55; color: #4b626d; }
.hcs-guide-navigation { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; }
.hcs-guide-navigation button { background: transparent; border: 0; color: #285973; padding: 10px 2px; min-height: 44px; font: 14px/1.4 Arial, Helvetica, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hcs-guide-footer { padding: 15px 20px; border-top: 1px solid #dbe5eb; background: #f8fbfc; flex-shrink: 0; }
.hcs-guide-footer > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; }
.hcs-guide-footer a { color: #285973; font-size: 13px; text-underline-offset: 3px; padding: 4px 0; }
.hcs-guide-footer p { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: #4b626d; }
.hcs-package-guide button:focus-visible, .hcs-package-guide a:focus-visible { outline: 3px solid #1680ad; outline-offset: 3px; }
.hcs-guide-header button:focus-visible { outline-color: #d5f0ff; }
.hcs-guide-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 520px) {
    .hcs-guide-launcher { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); padding: 11px 15px; font-size: 14px; min-height: 48px; }
    .hcs-guide-dialog { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); width: auto; max-width: none; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 16px; }
    .hcs-guide-header { padding: 15px 16px; }
    .hcs-guide-header h2 { font-size: 22px; }
    .hcs-guide-body { padding: 17px 16px; }
    .hcs-guide-footer { padding: 12px 16px; }
}
@media (max-height: 480px) {
    .hcs-guide-dialog { top: 8px; bottom: 8px; max-height: calc(100dvh - 16px); }
    .hcs-guide-header { padding: 10px 16px; }
    .hcs-guide-header h2 { font-size: 20px; }
    .hcs-guide-header p { margin-bottom: 2px; }
    .hcs-guide-footer { padding: 8px 16px; }
    .hcs-guide-footer p { margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    .hcs-guide-dialog, .hcs-guide-body { scroll-behavior: auto; }
}
