:is([data-julia-launcher], [data-smarta-launcher])[hidden] { display: none !important; }
:is([data-julia-dismiss], [data-smarta-dismiss])[hidden], :is([data-julia-restore], [data-smarta-restore])[hidden] { display: none !important; }
:is(.julia-dismiss, .smarta-dismiss) {
    position: absolute;
    right: -8px;
    bottom: -8px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d1d1f;
    cursor: pointer;
}
:is(.julia-dismiss, .smarta-dismiss) span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid #86868b;
    border-radius: 50%;
    background: #fff;
    font: 20px/1 Arial, sans-serif;
}
:is(.julia-return, .smarta-return) {
    display: block;
    min-height: 48px;
    max-width: calc(100% - 32px);
    margin: 24px auto 48px;
    padding: 12px 20px;
    border: 1px solid #86868b;
    border-radius: 999px;
    background: #fff;
    color: #1d1d1f;
    font: inherit;
    cursor: pointer;
}
:is(.julia-dismiss, .smarta-dismiss):focus-visible, :is(.julia-return, .smarta-return):focus-visible { outline: 3px solid #1d1d1f; outline-offset: 3px; }
:is(.julia-chat, .smarta-chat) {
    width: min(440px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    border: 1px solid #e8e6e2;
    border-radius: 24px;
    background: #fff;
    color: #171717;
    font: inherit;
    box-shadow: 0 24px 80px #0003;
}
:is(.julia-chat, .smarta-chat)::backdrop { background: #0005; }
:is(.julia-chat__header, .smarta-chat__header) { position: absolute; top: 12px; right: 12px; z-index: 40; }
:is(.julia-chat__header, .smarta-chat__header) h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:is(.julia-chat__header, .smarta-chat__header) button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #f4f4f4;
    color: inherit;
    font: inherit;
    font-size: 28px;
    cursor: pointer;
}
:is(.julia-chat, .smarta-chat) iframe {
    display: block;
    width: 100%;
    height: min(668px, calc(100dvh - 28px));
    border: 0;
}
:is(.julia-chat, .smarta-chat) :focus-visible { outline: 3px solid #ff8a00; outline-offset: 3px; }

/* A readable portrait with space from the viewport edge; details belong in the dialog. */
.phc-page--home1 .phc-advisor:not(:hover):not(:focus-within) {
    width: 80px;
    min-height: 80px;
    height: 80px;
    padding: 6px;
    right: max(16px, env(safe-area-inset-right));
}
.phc-page--home1 .phc-advisor:not(:hover):not(:focus-within) > .phc-advisor__portrait {
    width: 66px;
    height: 66px;
}
@media (max-width: 640px) {
    .phc-page--home1 .phc-advisor:not(:hover):not(:focus-within) {
        width: 72px;
        min-height: 72px;
        height: 72px;
        right: max(12px, env(safe-area-inset-right));
    }
    .phc-page--home1 .phc-advisor:not(:hover):not(:focus-within) > .phc-advisor__portrait {
        width: 58px;
        height: 58px;
    }
}
