.tps-guide-entry[hidden], .tps-guide-dialog:not([open]),
.tps-guide-dialog [hidden], .tps-guide-hint[hidden] { display: none !important; }
.tps-guide-entry-short, .tps-guide-page-top { display: none; }

.tps-guide-entry, .tps-guide-dialog {
    --guide-ink: #142b45;
    --guide-muted: #52637a;
    --guide-blue: #1e479c;
    --guide-paper: #fffefa;
    --guide-line: #e3e8ef;
    --guide-soft: #f0f4fa;
    color: var(--guide-ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
}

.tps-guide-entry {
    position: fixed;
    right: max(76px, calc(env(safe-area-inset-right, 0px) + 64px));
    bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    z-index: 44;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 46px;
    padding: 6px 14px 6px 7px;
    border: 1px solid #cfdaea;
    border-radius: 30px;
    background: var(--guide-paper);
    box-shadow: 0 4px 16px rgba(28,51,86,.12);
    font-weight: 700;
    white-space: nowrap;
}
.tps-guide-entry:hover { background: var(--guide-soft); color: var(--guide-blue); }
.tps-guide-entry[data-docked] { position: relative; inset: auto; margin-inline-end: auto; }
.tps-guide-entry img, .tps-guide-header img {
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 9px;
    background: var(--guide-soft);
}
body.tps-guide-open .tps-service-float { visibility: hidden; }

.tps-guide-dialog {
    box-sizing: border-box;
    position: fixed;
    z-index: 48;
    inset: auto max(24px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) auto;
    width: min(376px, calc(100% - 28px));
    height: min(520px, calc(100dvh - 52px));
    max-width: none;
    max-height: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    background: var(--guide-paper);
    border: 1px solid #d6dfeb;
    border-radius: 22px;
    box-shadow: 0 16px 48px rgba(24,45,76,.18);
    transform-origin: right bottom;
    animation: tps-guide-in 185ms cubic-bezier(.2,.75,.25,1);
}
@keyframes tps-guide-in { from { opacity: .8; transform: translateY(7px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.tps-guide-dialog[data-service-anchor] {
    right: var(--guide-anchor-right);
    bottom: var(--guide-anchor-bottom);
    width: var(--guide-anchor-width);
    height: min(520px, calc(100dvh - var(--guide-anchor-bottom) - var(--tps-site-header-bottom,85px) - 12px));
}
.tps-guide-dialog::backdrop { background: rgba(18,35,58,.26); }
.tps-guide-header {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    padding: 7px 12px 7px 17px;
    border-bottom: 1px solid var(--guide-line);
    flex: 0 0 auto;
}
.tps-guide-header img { width: 34px; height: 34px; }
.tps-guide-header strong { font-weight: 750; font-size: 15px; }
.tps-guide-step {
    margin-inline-start: auto;
    color: var(--guide-blue);
    background: var(--guide-soft);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}
.tps-guide-step[hidden] + .tps-guide-close { margin-inline-start: auto; }
.tps-guide-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: var(--guide-muted);
    background: transparent;
    font: 400 27px/1 system-ui,sans-serif;
}
.tps-guide-close:hover { background: var(--guide-soft); }
.tps-guide-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.tps-guide-body h2 {
    color: var(--guide-ink);
    font-size: 1.46em;
    font-weight: 750;
    line-height: 1.28;
    margin: 0 0 9px;
    overflow-wrap: anywhere;
}
.tps-guide-body h3 { color: var(--guide-ink); font-size: 1em; margin: 0 0 5px; }
.tps-guide-description { color: var(--guide-muted); margin: 0 0 14px; line-height: 1.6; }
.tps-guide-actions, .tps-guide-contact-links { display: grid; gap: 7px; margin: 0 0 10px; }
.tps-guide-choice, .tps-guide-route, .tps-guide-cta, .tps-guide-line, .tps-guide-minor, .tps-guide-text-link, .tps-guide-article {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: none;
    color: var(--guide-ink);
    text-align: start;
    font: inherit;
    font-weight: 650;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}
.tps-guide-route, .tps-guide-choice {
    border-color: var(--guide-line);
    background: #fff;
}
.tps-guide-route { justify-content: space-between; gap: 8px; padding: 10px 12px; }
.tps-guide-route::after {
    content: '';
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 1.5px 1.5px 0 0;
    transform: rotate(45deg);
    margin-inline-end: 3px;
}
.tps-guide-route-text { min-width: 0; display: grid; gap: 2px; }
.tps-guide-route-text small { color: var(--guide-muted); font-size: .84em; font-weight: 450; }
.tps-guide-route:hover, .tps-guide-choice:hover, .tps-guide-choice[aria-pressed=true] {
    border-color: #a9bfdf;
    background: var(--guide-soft);
    color: var(--guide-blue);
}
.tps-guide-route.is-primary { background: #eaf0fa; border-color: #bbcee9; color: var(--guide-blue); }
.tps-guide-cta { justify-content: center; background: var(--guide-blue); border-color: var(--guide-blue); color: #fff !important; }
.tps-guide-cta:hover { background: #153877; }
.tps-guide-line { font-weight: 750; background: #06c755; border-color: #06c755; color: #0b3720 !important; }
.tps-guide-minor, .tps-guide-text-link { color: var(--guide-blue) !important; }
.tps-guide-minor:hover, .tps-guide-text-link:hover { background: var(--guide-soft); }
.tps-guide-recommendation, .tps-guide-summary {
    margin: 12px 0;
    padding: 13px 14px;
    border: 1px solid #d9e5f6;
    border-radius: 12px;
    background: #eef4fc;
}
.tps-guide-recommendation :is(h2,h3) { color: #153e81; font-size: 1.19em; margin-bottom: 7px; }
.tps-guide-recommendation p { margin: 0; line-height: 1.6; }
.tps-guide-summary { white-space: pre-wrap; overflow-wrap: anywhere; }
.tps-guide-alternatives, .tps-guide-reading { border-top: 1px solid var(--guide-line); padding: 11px 0 3px; }
.tps-guide-alternatives .tps-guide-text-link, .tps-guide-reading > .tps-guide-text-link { padding-inline: 2px; }
.tps-guide-reading-list { min-height: 52px; }
.tps-guide-article { width: 100%; border: 0; border-radius: 0; padding-inline: 2px; color: #254a81 !important; }
.tps-guide-article:hover { text-decoration: underline !important; }
.tps-guide-reading summary { display: list-item; min-height: 44px; padding-block: 10px; color: var(--guide-blue); cursor: pointer; }
.tps-guide-reading-note { margin: 7px 0 9px; color: var(--guide-muted); }
.tps-guide-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px;
    padding: 6px 14px;
    border-top: 1px solid var(--guide-line);
}
.tps-guide-footer > .tps-guide-cta { flex: 1 0 100%; }
.tps-guide-entry:focus-visible, .tps-guide-dialog :is(button,a,summary):focus-visible,
.tps-guide-transfer button:focus-visible { outline: 2px solid #336ac4; outline-offset: 2px; }
.tps-guide-entry, .tps-guide-dialog :is(.tps-guide-route,.tps-guide-choice,.tps-guide-cta) {
    transition: background-color 145ms ease, border-color 145ms ease, transform 110ms ease;
}
.tps-guide-entry:active, .tps-guide-dialog :is(.tps-guide-route,.tps-guide-choice,.tps-guide-cta):active { transform: scale(.98); }
.tps-reader-appbar [data-guide-hint] { position: relative; }
.tps-guide-entry[data-guide-hint], .tps-reader-appbar [data-guide-hint] { overflow: visible; }
.tps-guide-hint {
    position: absolute;
    z-index: 1;
    inset-inline-end: 0;
    bottom: calc(100% + 10px);
    display: block;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: #173966;
    color: #fff;
    box-shadow: 0 6px 18px rgba(17,46,83,.17);
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    white-space: nowrap;
    animation: tps-guide-hint-in 210ms ease-out;
}
.tps-guide-hint::after {
    position: absolute;
    content: '';
    width: 8px;
    height: 8px;
    background: inherit;
    inset-inline-end: 20px;
    bottom: -4px;
    transform: rotate(45deg);
}
.tps-guide-hint:hover { background: #1e479c; }
.tps-guide-entry[data-guide-hint]::after {
    position: absolute;
    content: '';
    inset: -1px;
    border: 1px solid #557db8;
    border-radius: inherit;
    pointer-events: none;
    animation: tps-guide-hint-ring 680ms ease-out both;
}
@keyframes tps-guide-hint-in { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
@keyframes tps-guide-hint-ring { from { opacity: .65; scale: 1; } to { opacity: 0; scale: 1.10; } }
.tps-guide-status { margin: 0; padding: 0 15px; font-size: .88em; flex: 0 0 auto; }
.tps-guide-status:not(:empty) { padding-block: 5px; }
.tps-guide-transfer { --guide-blue:#1e479c; margin-bottom: 6px; }
.tps-guide-transfer-note { display: block; color: #244d8b; font-size: 13px; }

@media (max-width: 999.98px) {
    .tps-guide-dialog {
        inset: auto 0 0;
        width: 100%;
        height: min(530px, 77dvh);
        border-radius: 22px 22px 0 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .tps-guide-body { padding-inline: max(17px, env(safe-area-inset-left, 0px)) max(17px, env(safe-area-inset-right, 0px)); }
}
@media (max-width: 767.98px) {
    .tps-reader-appbar button[data-guide-mobile-primary] {
        color: #fff;
        background: #1e479c;
        font-weight: 700;
    }
    .tps-reader-appbar button[data-guide-mobile-primary]:hover {
        color: #fff;
        background: #173a80;
    }
    .tps-guide-entry[data-mobile-layout="standalone"], .tps-guide-entry[data-mobile-layout="service"]:not([data-docked]), .tps-guide-page-top {
        --guide-phone-right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px));
        --guide-phone-bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px));
        right: var(--guide-phone-right);
        bottom: var(--guide-phone-bottom);
    }
    .tps-guide-entry:is([data-mobile-layout="standalone"],[data-mobile-layout="service"]) {
        box-sizing: border-box;
        justify-content: center;
        gap: 7px;
        width: 104px;
        height: 48px;
        min-height: 48px;
        padding: 0 8px;
        border: 1px solid #1e479c;
        border-radius: 14px;
        background: #1e479c;
        color: #fff;
        box-shadow: 0 4px 12px rgba(24,53,103,.20);
        font-size: 14px;
        line-height: 1.35;
    }
    .tps-guide-entry:is([data-mobile-layout="standalone"],[data-mobile-layout="service"]):hover {
        background: #173a80;
        color: #fff;
    }
    .tps-guide-entry:is([data-mobile-layout="standalone"],[data-mobile-layout="service"]) img {
        box-sizing: border-box;
        width: 22px;
        height: 22px;
        padding: 2px;
        border-radius: 5px;
        background: #fff;
    }
    .tps-guide-entry:is([data-mobile-layout="standalone"],[data-mobile-layout="service"]) .tps-guide-entry-label { display: none; }
    .tps-guide-entry:is([data-mobile-layout="standalone"],[data-mobile-layout="service"]) .tps-guide-entry-short { display: inline; }
    .tps-guide-entry:is([data-mobile-layout="standalone"],[data-mobile-layout="service"]) .tps-guide-hint {
        box-sizing: border-box;
        width: max-content;
        max-width: min(212px, calc(100vw - 90px));
        white-space: normal;
        transform-origin: calc(100% - 52px) bottom;
    }
    .tps-guide-entry:is([data-mobile-layout="standalone"],[data-mobile-layout="service"]) .tps-guide-hint::after { inset-inline-end: 48px; }
    .tps-guide-entry[data-mobile-layout="standalone"][data-page-top-visible] .tps-guide-hint {
        inset-inline-end: 52px;
        transform-origin: calc(100% - 12px) bottom;
    }
    .tps-guide-entry[data-mobile-layout="standalone"][data-page-top-visible] .tps-guide-hint::after { inset-inline-end: 8px; }
    .tps-guide-page-top:not([hidden]) {
        box-sizing: border-box;
        position: fixed;
        z-index: 44;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border: 1px solid #d5dfed;
        border-radius: 14px;
        background: #fffefa;
        color: #1e479c;
        box-shadow: 0 3px 10px rgba(24,53,103,.10);
        font-size: 23px;
        line-height: 1;
    }
    .tps-guide-page-top[data-stacked] { bottom: calc(var(--guide-phone-bottom) + 56px); }
    .tps-guide-page-top:focus-visible { outline: 2px solid #336ac4; outline-offset: 2px; }
}
@media (min-width: 1000px) {
    .tps-guide-entry[data-docked] .tps-guide-hint {
        inset-inline-end: calc(100% + 11px);
        bottom: 50%;
        transform: translateY(50%);
    }
    .tps-guide-entry[data-docked] .tps-guide-hint::after {
        inset-inline-end: -4px;
        bottom: calc(50% - 4px);
    }
}
@media (max-height: 460px) {
    .tps-guide-dialog { height: min(520px, 88dvh); }
    .tps-guide-dialog .tps-guide-body { padding-block: 12px; }
}
@media (max-height: 340px) {
    .tps-guide-footer .tps-guide-minor { padding-inline: 7px; }
    .tps-guide-dialog .tps-guide-header, .tps-guide-footer { padding-block: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .tps-guide-dialog, .tps-guide-hint { animation: none; }
    .tps-guide-entry[data-guide-hint]::after { display: none; }
    .tps-guide-entry, .tps-guide-dialog :is(.tps-guide-route,.tps-guide-choice,.tps-guide-cta) { transition: none; }
    .tps-guide-entry:active, .tps-guide-dialog :is(.tps-guide-route,.tps-guide-choice,.tps-guide-cta):active { transform: none; }
}
