.apd-access-dock {
    --apd-access-edge: clamp(10px, 2.5vw, 22px);
    position: fixed;
    z-index: 64;
    right: max(var(--apd-access-edge), env(safe-area-inset-right));
    bottom: max(var(--apd-access-edge), env(safe-area-inset-bottom));
    max-width: calc(100vw - 2 * var(--apd-access-edge));
    color: #152e51;
    font-family: inherit;
}

.apd-access-dock[hidden],
.apd-access-panel[hidden],
.apdx-chat-open .apd-access-dock { display: none; }

.apd-access-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid #476589;
    border-radius: 15px;
    background: #102b50;
    box-shadow: 0 8px 24px #10294d38;
    color: #fff;
    font: inherit;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.apd-access-toggle:hover,
.apd-access-toggle[aria-expanded="true"] { background: #193e6e; }

.apd-access-copy { display: grid; gap: 3px; min-width: 0; }
.apd-access-copy strong { font-size: .9rem; font-weight: 760; }
.apd-access-copy small { color: #e0eaff; font-size: .75rem; overflow-wrap: anywhere; }

.apd-access-icon {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: #294a72;
    flex: 0 0 27px;
}

.apd-access-icon::before {
    content: "";
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #fff 2px, transparent 2.5px) 0 0 / 7px 7px;
}

.apd-access-chevron {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin: 3px 2px 0 1px;
    border: solid #ffd18a;
    border-width: 1.5px 0 0 1.5px;
    rotate: 45deg;
}

.apd-access-toggle[aria-expanded="true"] .apd-access-chevron { rotate: 225deg; }

.apd-access-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    display: grid;
    width: 100%;
    max-height: min(55vh, 260px);
    overflow: auto;
    gap: 5px;
    padding: 6px;
    border: 1px solid #c7d6eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 30px #10294d32;
}

.apd-access-dock .apd-access-panel > .apd-access-item {
    position: static;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    min-width: 0;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #e4edf8;
    border-radius: 8px;
    background: #f4f7fc;
    box-shadow: none;
    color: #163552;
    font: inherit;
    font-size: .83rem;
    font-weight: 690;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.apd-access-dock .apd-access-panel > .apd-access-item:hover {
    border-color: #bbd3f1;
    background: #eaf2ff;
    color: #194c8b;
}

.apd-access-panel .floating > span { font-size: inherit; }
.apd-access-panel .apd334-chat-icon { color: #214d84; }
.apd-access-toggle:focus-visible { outline: 2px solid #efa941; outline-offset: 3px; }
.apd-access-panel > .apd-access-item:focus-visible { outline: 2px solid #275aaa; outline-offset: -2px; }

@media (prefers-reduced-motion: no-preference) {
    .apd-access-panel:not([hidden]) { animation: apd-access-open .18s ease-out; }
    .apd-access-chevron { transition: rotate .18s ease; }
}

@keyframes apd-access-open {
    from { opacity: .7; translate: 0 5px; }
    to { opacity: 1; translate: 0 0; }
}

@media print {
    .apd-access-dock { display: none; }
}
