/* ========================================================================
   APD 33.0.0 · DETALLES DE LOS VIDEOS 16:28 Y 16:32
   Rutas, hover, sombras, mensajes, ayuda y configuración de la cuenta.
   ======================================================================== */

body.apd33-video-reference {
    --apd33-ink: #222222;
    --apd33-muted: #6a6a6a;
    --apd33-line: #dddddd;
    --apd33-line-soft: #ebebeb;
    --apd33-soft: #f7f7f7;
    --apd33-blue: #18439f;
    --apd33-blue-soft: #edf3ff;
    --apd33-green: #7cc70a;
    --apd33-card-shadow: 0 6px 20px rgba(0, 0, 0, .09);
    --apd33-float-shadow: 0 12px 34px rgba(0, 0, 0, .16);
    --apd33-dialog-shadow: 0 24px 72px rgba(0, 0, 0, .26);
    color: var(--apd33-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.apd33-video-reference a,
body.apd33-video-reference button,
body.apd33-video-reference [role="button"] {
    -webkit-tap-highlight-color: transparent;
}

body.apd33-video-reference [data-apd33-interactive] {
    transition: transform .17s ease, background-color .17s ease, border-color .17s ease, box-shadow .17s ease, color .17s ease, opacity .17s ease !important;
}

body.apd33-video-reference [data-apd33-interactive].is-pressed {
    transform: scale(.975) !important;
}

/* Encabezado: cada ícono responde como una pieza independiente. */
body.apd33-video-reference .apd5-main-nav > a {
    border-radius: 14px !important;
    transition: background-color .18s ease, transform .18s ease !important;
}

body.apd33-video-reference .apd5-main-nav > a:hover {
    background: #f7f7f7 !important;
    transform: translateY(-1px) !important;
}

body.apd33-video-reference .apd5-main-nav > a > span {
    transform-origin: 50% 70%;
    transition: transform .22s cubic-bezier(.2,.75,.25,1), filter .22s ease !important;
}

body.apd33-video-reference .apd5-main-nav > a:hover > span {
    transform: translateY(-2px) scale(1.055) !important;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,.12));
}

body.apd33-video-reference .apd5-main-nav > a:active > span {
    transform: scale(.94) !important;
}

body.apd33-video-reference .apd25-account-cluster,
body.apd33-video-reference .apd5-account-button,
body.apd33-video-reference .apd5-host-trigger {
    transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease !important;
}

body.apd33-video-reference .apd25-account-cluster:hover,
body.apd33-video-reference .apd5-account-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,.12) !important;
}

body.apd33-video-reference .apd5-host-trigger:hover {
    background: #f5f5f5 !important;
}

body.apd33-video-reference .apd5-account-menu {
    transform-origin: calc(100% - 28px) 0;
    box-shadow: var(--apd33-float-shadow) !important;
}

body.apd33-video-reference .apd5-account-menu:not([hidden]) {
    animation: apd33PopoverIn .18s cubic-bezier(.2,.75,.25,1) both;
}

body.apd33-video-reference .apd5-account-menu > a,
body.apd33-video-reference .apd5-account-menu > button {
    transition: background-color .14s ease, padding-left .14s ease !important;
}

body.apd33-video-reference .apd5-account-menu > a:hover,
body.apd33-video-reference .apd5-account-menu > button:hover {
    padding-left: 19px !important;
    background: #f5f5f5 !important;
}

/* Tarjetas: zoom leve de foto, corazón e indicador separados. */
body.apd33-video-reference :is(.apd5-card, .apd10-card, .apd31-market-card, .item-wrap, .listing-card) {
    transition: transform .2s ease, box-shadow .2s ease !important;
}

body.apd33-video-reference :is(.apd5-card, .apd10-card, .apd31-market-card, .item-wrap, .listing-card):hover {
    transform: translateY(-2px) !important;
}

body.apd33-video-reference :is(.apd5-card, .apd10-card, .apd31-market-card, .item-wrap, .listing-card) img {
    transition: transform .36s cubic-bezier(.2,.75,.25,1), filter .25s ease !important;
}

body.apd33-video-reference :is(.apd5-card, .apd10-card, .apd31-market-card, .item-wrap, .listing-card):hover img {
    transform: scale(1.025) !important;
    filter: saturate(1.025) contrast(1.01);
}

body.apd33-video-reference :is([data-apd-favorite], .add_fav, .remove_fav, .apd5-heart):hover {
    transform: scale(1.09) !important;
}

body.apd33-video-reference :is([data-apd-favorite], .add_fav, .remove_fav, .apd5-heart):active {
    transform: scale(.91) !important;
}

/* El pie del video subraya cada destino y conserva la ubicación. */
body.apd33-video-reference .apd5-footer a {
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
}

body.apd33-video-reference .apd5-footer a:hover {
    color: #111 !important;
    text-decoration: underline !important;
}

/* Centro de ayuda y páginas públicas: cabecera compacta. */
body.apd33-resource-page .apd5-header,
body.apd30-help-page.apd33-video-reference .apd5-header {
    position: relative !important;
    min-height: 72px !important;
    height: 72px !important;
    border-bottom: 1px solid var(--apd33-line-soft) !important;
    box-shadow: none !important;
}

body.apd33-resource-page .apd5-header-row,
body.apd30-help-page.apd33-video-reference .apd5-header-row {
    width: min(calc(100% - 96px), 1470px) !important;
    min-height: 72px !important;
    height: 72px !important;
    grid-template-columns: 200px minmax(0, 1fr) 320px !important;
}

body.apd33-resource-page .apd5-main-nav,
body.apd33-resource-page .apd5-header-search-row,
body.apd30-help-page.apd33-video-reference .apd5-main-nav,
body.apd30-help-page.apd33-video-reference .apd5-header-search-row {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.apd33-resource-page .apd5-logo,
body.apd33-resource-page .apd5-logo img {
    width: 96px !important;
    min-width: 96px !important;
    height: 40px !important;
}

.apd33-resource-main,
.apd33-resource-main * { box-sizing: border-box; }

.apd33-resource-main {
    --resource-wide: min(calc(100% - 80px), 1280px);
    background: #fff;
    color: var(--apd33-ink);
}

.apd33-resource-hero {
    width: min(calc(100% - 48px), 860px);
    margin: 0 auto;
    padding: 74px 0 48px;
    text-align: center;
}

.apd33-resource-hero > p {
    margin: 0 0 12px;
    color: var(--apd33-muted);
    font-size: 13px;
    font-weight: 650;
}

.apd33-resource-hero h1 {
    margin: 0;
    color: var(--apd33-ink);
    font-size: clamp(38px, 4.3vw, 68px);
    font-weight: 670;
    line-height: 1.04;
    letter-spacing: -.048em;
}

.apd33-resource-hero > span {
    display: block;
    width: min(100%, 700px);
    margin: 22px auto 0;
    color: #5f5f5f;
    font-size: 17px;
    line-height: 1.55;
}

.apd33-community-visual {
    width: var(--resource-wide);
    min-height: 270px;
    margin: 8px auto 78px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(145deg, #fbf1e7, #f4ded0);
}

.apd33-community-visual i {
    position: relative;
    width: 104px;
    height: 195px;
    border-radius: 52px 52px 24px 24px;
    background: #18439f;
    transform: translateY(20px);
    box-shadow: 0 -45px 0 -27px #d9a17c;
}

.apd33-community-visual i:nth-child(2) { height: 225px; background: #7cc70a; box-shadow: 0 -45px 0 -27px #8b5d43; }
.apd33-community-visual i:nth-child(3) { height: 180px; background: #ef5b67; box-shadow: 0 -45px 0 -27px #e0ad89; }
.apd33-community-visual i:nth-child(4) { height: 235px; background: #e6ab35; box-shadow: 0 -45px 0 -27px #69412f; }
.apd33-community-visual i:nth-child(5) { height: 200px; background: #5b8ecc; box-shadow: 0 -45px 0 -27px #c88867; }

.apd33-access-visual {
    width: var(--resource-wide);
    min-height: 470px;
    margin: 0 auto 84px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    overflow: hidden;
    border-radius: 24px;
    background: #f4f4f4;
}

.apd33-access-visual > i {
    width: 210px;
    height: 360px;
    display: grid;
    place-items: center;
    border: 11px solid #232323;
    border-radius: 36px;
    background: #fff;
    color: var(--apd33-blue);
    font-size: 78px;
    font-style: normal;
    box-shadow: 0 22px 45px rgba(0,0,0,.18);
}

.apd33-access-visual > span {
    width: 62%;
    height: 18px;
    border-radius: 9px;
    background: #222;
    box-shadow: 0 44px 0 #d4d4d4, 0 88px 0 #d4d4d4, 0 132px 0 #d4d4d4;
}

.apd33-protection-visual {
    width: min(calc(100% - 48px), 760px);
    min-height: 310px;
    margin: 0 auto 76px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 22px;
    background: #161616;
    color: #fff;
    box-shadow: 0 20px 48px rgba(0,0,0,.18);
}

.apd33-protection-visual strong { color: #7cc70a; font-size: 76px; letter-spacing: -.07em; }
.apd33-protection-visual span { margin-top: 6px; font-size: 20px; }

.apd33-resource-layout {
    width: var(--resource-wide);
    margin: 0 auto;
    padding: 24px 0 88px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 270px;
    align-items: start;
    gap: 60px;
}

.apd33-resource-index {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--apd33-line);
}

.apd33-resource-index a {
    padding: 8px 0 8px 17px;
    color: #555 !important;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none !important;
    transition: color .15s ease, border-color .15s ease, transform .15s ease;
}

.apd33-resource-index a:hover { color: #111 !important; transform: translateX(2px); }

.apd33-resource-copy section {
    padding: 0 0 42px;
    scroll-margin-top: 28px;
}

.apd33-resource-copy h2 {
    margin: 0 0 14px;
    font-size: 27px;
    font-weight: 670;
    letter-spacing: -.025em;
}

.apd33-resource-copy p {
    margin: 0;
    color: #4f4f4f;
    font-size: 15px;
    line-height: 1.68;
}

.apd33-resource-support {
    position: sticky;
    top: 24px;
    padding: 22px;
    border: 1px solid var(--apd33-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

.apd33-resource-support strong { display: block; margin-bottom: 9px; font-size: 15px; }
.apd33-resource-support p { margin: 0 0 15px; color: var(--apd33-muted); font-size: 13px; line-height: 1.5; }
.apd33-resource-support a { color: #222 !important; font-size: 13px; font-weight: 700; text-decoration: underline !important; }

.apd33-contact-grid,
.apd33-resource-cards,
.apd33-community-forum {
    width: min(calc(100% - 64px), 1020px);
    margin: 0 auto 92px;
}

.apd33-contact-grid { display: grid; gap: 13px; }
.apd33-contact-grid > a {
    min-height: 94px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--apd33-line);
    border-radius: 14px;
    color: #222 !important;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.apd33-contact-grid > a:hover { transform: translateY(-2px); border-color: #bbb; box-shadow: var(--apd33-card-shadow); }
.apd33-contact-grid > a > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--apd33-blue-soft); color: var(--apd33-blue); font-size: 20px; }
.apd33-contact-grid strong { display: block; margin-bottom: 5px; font-size: 15px; }
.apd33-contact-grid p { margin: 0; color: var(--apd33-muted); font-size: 13px; }
.apd33-contact-grid b { font-size: 22px; font-weight: 400; }

.apd33-resource-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.apd33-resource-cards a { color: #222 !important; text-decoration: none !important; }
.apd33-resource-cards img { width: 100%; aspect-ratio: 1.25; display: block; border-radius: 14px; object-fit: cover; transition: transform .3s ease, box-shadow .3s ease; }
.apd33-resource-cards a:hover img { transform: translateY(-3px); box-shadow: var(--apd33-card-shadow); }
.apd33-resource-cards strong { display: block; margin: 13px 0 4px; font-size: 16px; }
.apd33-resource-cards span { color: var(--apd33-muted); font-size: 13px; }

.apd33-community-forum { padding: 34px; border-radius: 22px; background: #f7f7f7; }
.apd33-community-forum h2 { margin: 0 0 18px; font-size: 22px; }
.apd33-forum-featured > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apd33-forum-featured article { min-height: 164px; padding: 22px; border-radius: 14px; background: #fff; box-shadow: 0 4px 13px rgba(0,0,0,.06); transition: transform .18s ease, box-shadow .18s ease; }
.apd33-forum-featured article:hover { transform: translateY(-2px); box-shadow: var(--apd33-card-shadow); }
.apd33-forum-featured small { color: var(--apd33-blue); font-weight: 700; }
.apd33-forum-featured strong { display: block; margin: 13px 0 7px; font-size: 18px; }
.apd33-forum-featured span { color: var(--apd33-muted); font-size: 13px; }
.apd33-forum-stream { margin-top: 38px; }
.apd33-forum-stream article { padding: 20px; display: grid; grid-template-columns: 46px 1fr; gap: 14px; border-top: 1px solid #ddd; }
.apd33-forum-stream i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--apd33-blue); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; }
.apd33-forum-stream p { margin: 6px 0 0; color: var(--apd33-muted); }

.apd33-resource-help {
    width: var(--resource-wide);
    margin: 0 auto 70px;
    padding: 34px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-radius: 18px;
    background: #f7f7f7;
}
.apd33-resource-help h2 { margin: 0 0 6px; font-size: 24px; }
.apd33-resource-help p { margin: 0; color: var(--apd33-muted); }
.apd33-resource-help > a { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 9px; background: #222; color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none !important; transition: transform .16s ease, box-shadow .16s ease; }
.apd33-resource-help > a:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }

/* Ayuda: más roles y movimiento exacto de tarjetas. */
body.apd30-help-page.apd33-video-reference .apd30-help-tabs { overflow-x: auto !important; scrollbar-width: none; }
body.apd30-help-page.apd33-video-reference .apd30-help-tabs::-webkit-scrollbar { display: none; }
body.apd30-help-page.apd33-video-reference .apd30-help-tabs a { white-space: nowrap !important; }
body.apd30-help-page.apd33-video-reference .apd30-help-recommendations > a,
body.apd30-help-page.apd33-video-reference .apd30-help-guides > a,
body.apd30-help-page.apd33-video-reference .apd30-help-more-cards > a {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
body.apd30-help-page.apd33-video-reference .apd30-help-recommendations > a:hover,
body.apd30-help-page.apd33-video-reference .apd30-help-guides > a:hover,
body.apd30-help-page.apd33-video-reference .apd30-help-more-cards > a:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--apd33-card-shadow) !important;
}

/* Configuración de la cuenta: proporciones y estados de los videos. */
body.apd-account-body.apd33-video-reference .apd-account-topbar {
    height: 68px !important;
    padding: 0 48px !important;
    border-bottom-color: #eeeeee !important;
    box-shadow: none !important;
    transition: box-shadow .18s ease !important;
}
body.apd-account-body.apd33-video-reference.apd33-has-scroll .apd-account-topbar { box-shadow: 0 4px 16px rgba(0,0,0,.06) !important; }
body.apd-account-body.apd33-video-reference .apd-account-logo { width: 96px !important; height: 36px !important; }
body.apd-account-body.apd33-video-reference .apd-account-done { min-width: 62px !important; height: 34px !important; }
body.apd-account-body.apd33-video-reference .apd-account-layout {
    min-height: calc(100vh - 68px) !important;
    grid-template-columns: 326px minmax(0, 1fr) !important;
}
body.apd-account-body.apd33-video-reference .apd-account-sidebar {
    position: sticky !important;
    top: 68px !important;
    height: calc(100vh - 68px) !important;
    overflow-y: auto !important;
    padding: 25px 42px 46px !important;
    border-right: 1px solid #e8e8e8 !important;
}
body.apd-account-body.apd33-video-reference .apd-account-sidebar h1 { margin-bottom: 16px !important; font-size: 22px !important; }
body.apd-account-body.apd33-video-reference .apd-account-sidebar nav { gap: 2px !important; }
body.apd-account-body.apd33-video-reference .apd-account-sidebar nav a {
    min-height: 42px !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    transition: background-color .14s ease, transform .14s ease, box-shadow .14s ease !important;
}
body.apd-account-body.apd33-video-reference .apd-account-sidebar nav a:hover {
    background: #f4f4f4 !important;
    transform: translateX(2px) !important;
}
body.apd-account-body.apd33-video-reference .apd-account-sidebar nav a.is-active {
    background: #eeeeee !important;
    box-shadow: inset 3px 0 0 #222 !important;
}
body.apd-account-body.apd33-video-reference .apd-account-content { padding: 24px 76px 84px !important; }
body.apd-account-body.apd33-video-reference .apd-account-panel { width: min(100%, 548px) !important; }
body.apd-account-body.apd33-video-reference .apd-account-panel-wide { width: min(100%, 680px) !important; }
body.apd-account-body.apd33-video-reference .apd-account-panel > h2 { font-size: 24px !important; }
body.apd-account-body.apd33-video-reference .apd-account-rows article {
    position: relative !important;
    min-height: 66px !important;
    margin: 0 -12px !important;
    padding: 14px 12px !important;
    border-radius: 10px 10px 0 0 !important;
    transition: background-color .14s ease, opacity .14s ease !important;
}
body.apd-account-body.apd33-video-reference .apd-account-rows article:not(.apd-personal-edit-row):hover { background: #f8f8f8 !important; }
body.apd-account-body.apd33-video-reference .apd-account-rows article strong { font-size: 13.5px !important; }
body.apd-account-body.apd33-video-reference .apd-account-rows article span { font-size: 12.5px !important; line-height: 1.45 !important; }
body.apd-account-body.apd33-video-reference :is(.apd-link-button, .apd-dark-button, .apd-primary-button, .apd-danger-button) {
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease !important;
}
body.apd-account-body.apd33-video-reference :is(.apd-link-button, .apd-dark-button, .apd-primary-button, .apd-danger-button):hover { transform: translateY(-1px) !important; }
body.apd-account-body.apd33-video-reference :is(.apd-dark-button, .apd-primary-button):hover { box-shadow: 0 6px 15px rgba(0,0,0,.18) !important; }
body.apd-account-body.apd33-video-reference :is(.apd-link-button, .apd-dark-button, .apd-primary-button, .apd-danger-button):active { transform: scale(.97) !important; }
body.apd-account-body.apd33-video-reference .apd-inline-edit-form { animation: apd33FadeUp .2s ease both; }
body.apd-account-body.apd33-video-reference :is(input, select, textarea):focus {
    border-color: #222 !important;
    box-shadow: 0 0 0 1px #222 !important;
    outline: 0 !important;
}
body.apd-account-body.apd33-video-reference .apd-account-dialog {
    border-radius: 18px !important;
    box-shadow: var(--apd33-dialog-shadow) !important;
}
body.apd-account-body.apd33-video-reference .apd-account-dialog[open] { animation: apd33DialogIn .2s cubic-bezier(.2,.75,.25,1) both; }
body.apd-account-body.apd33-video-reference .apd-account-dialog::backdrop { background: rgba(0,0,0,.52) !important; animation: apd33ShadeIn .18s ease both; }
body.apd-account-body.apd33-video-reference .apd-dialog-close button:hover { background: #e8e8e8 !important; transform: scale(1.04); }
body.apd-account-body.apd33-video-reference .apd-switch span,
body.apd-account-body.apd33-video-reference .apd-switch span::after { transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease !important; }
body.apd-account-body.apd33-video-reference .apd-switch:hover span { box-shadow: 0 0 0 4px rgba(0,0,0,.06) !important; }
body.apd-account-body.apd33-video-reference :is(.apd-identity-option-card, .apd-identity-upload-tile, .apd-account-chevron-row, .apd-notification-row) {
    transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease !important;
}
body.apd-account-body.apd33-video-reference :is(.apd-identity-option-card, .apd-identity-upload-tile):hover {
    transform: translateY(-2px) !important;
    border-color: #222 !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.09) !important;
}
body.apd-account-body.apd33-video-reference :is(.apd-identity-option-card, .apd-identity-upload-tile):active { transform: scale(.985) !important; }
body.apd-account-body.apd33-video-reference :is(.apd-account-chevron-row, .apd-notification-row):hover { background: #f8f8f8 !important; }

body.apd-host-body.apd33-video-reference :is(.apd-host-nav a, .apd-host-actions a, .apd-host-actions button, .apd-ai-sidebar-tools button, .apd-ai-filters button) {
    transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease, color .16s ease !important;
}
body.apd-host-body.apd33-video-reference :is(.apd-host-nav a, .apd-host-actions a, .apd-host-actions button, .apd-ai-sidebar-tools button, .apd-ai-filters button):hover {
    transform: translateY(-1px);
    background-color: #f2f2f2 !important;
}
body.apd-host-body.apd33-video-reference :is(.apd-host-nav a, .apd-host-actions a, .apd-host-actions button, .apd-ai-sidebar-tools button, .apd-ai-filters button):active { transform: scale(.96); }

.apd33-archived-empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 58px 20px;
    color: var(--apd33-muted);
    text-align: center;
}
.apd33-archived-empty > span { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 50%; background: #f1f1f1; color: #222; font-size: 24px; }
.apd33-archived-empty strong { color: #222; font-size: 14px; }
.apd33-archived-empty small { max-width: 210px; font-size: 12px; line-height: 1.45; }
body.apd33-messages-archived .apd-ai-chat-panel { opacity: .34; pointer-events: none; }

/* Menú pequeño de Mensajes antes de abrir editores o preferencias. */
.apd33-message-menu {
    position: fixed;
    z-index: 100200;
    width: 300px;
    padding: 8px;
    border: 1px solid #e6e6e6;
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--apd33-float-shadow);
    transform-origin: 100% 0;
}
.apd33-message-menu[hidden] { display: none !important; }
.apd33-message-menu.is-open { animation: apd33PopoverIn .16s cubic-bezier(.2,.75,.25,1) both; }
.apd33-message-menu > strong { display: block; padding: 10px 12px 8px; font-size: 14px; }
.apd33-message-menu button {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #222;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background-color .13s ease, transform .13s ease;
}
.apd33-message-menu button:hover { background: #f3f3f3; transform: translateX(1px); }
.apd33-message-menu button > span { color: #555; font-size: 16px; text-align: center; }

.apd33-modal-shade {
    position: fixed;
    z-index: 100210;
    inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0;
    transition: opacity .18s ease;
}
.apd33-modal-shade[hidden] { display: none !important; }
.apd33-modal-shade.is-open { opacity: 1; }
.apd33-suggestion-dialog {
    position: fixed;
    z-index: 100220;
    top: 50%;
    left: 50%;
    width: min(92vw, 430px);
    padding: 28px;
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--apd33-dialog-shadow);
    opacity: 0;
    transform: translate(-50%, -48%) scale(.975);
    transition: opacity .18s ease, transform .18s cubic-bezier(.2,.75,.25,1);
}
.apd33-suggestion-dialog[hidden] { display: none !important; }
.apd33-suggestion-dialog.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.apd33-suggestion-dialog h2 { margin: 2px 34px 24px; text-align: center; font-size: 17px; }
.apd33-dialog-back { position: absolute; top: 19px; left: 19px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f2f2f2; font-size: 26px; line-height: 1; cursor: pointer; }
.apd33-suggestion-dialog > label { display: grid; grid-template-columns: minmax(0,1fr) 46px; align-items: center; gap: 20px; cursor: pointer; }
.apd33-suggestion-dialog label > span strong { display: block; margin-bottom: 4px; font-size: 14px; }
.apd33-suggestion-dialog label > span small { display: block; color: var(--apd33-muted); font-size: 12px; line-height: 1.4; }
.apd33-suggestion-dialog label > input { position: absolute; opacity: 0; pointer-events: none; }
.apd33-suggestion-dialog label > i { position: relative; width: 46px; height: 28px; border-radius: 999px; background: #b0b0b0; transition: background-color .16s ease; }
.apd33-suggestion-dialog label > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.22); transition: transform .16s ease; }
.apd33-suggestion-dialog label > input:checked + i { background: #222; }
.apd33-suggestion-dialog label > input:checked + i::after { transform: translateX(18px); }
.apd33-suggestion-dialog > a { display: inline-block; margin-top: 24px; color: #222 !important; font-size: 12px; font-weight: 650; text-decoration: underline !important; }

body.apd33-is-navigating.apd33-resource-page .apd33-resource-main,
body.apd33-is-navigating.apd-account-body .apd-account-content { opacity: .45; transform: translateY(2px); transition: opacity .14s ease, transform .14s ease; }

@keyframes apd33PopoverIn { from { opacity: 0; transform: translateY(-5px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes apd33FadeUp { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes apd33DialogIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes apd33ShadeIn { from { background: rgba(0,0,0,0); } to { background: rgba(0,0,0,.52); } }

@media (max-width: 1080px) {
    .apd33-resource-layout { grid-template-columns: 190px minmax(0,1fr); gap: 42px; }
    .apd33-resource-support { display: none; }
    body.apd-account-body.apd33-video-reference .apd-account-layout { grid-template-columns: 278px minmax(0,1fr) !important; }
    body.apd-account-body.apd33-video-reference .apd-account-sidebar { padding-right: 28px !important; padding-left: 28px !important; }
    body.apd-account-body.apd33-video-reference .apd-account-content { padding-right: 42px !important; padding-left: 42px !important; }
}

@media (max-width: 820px) {
    body.apd33-resource-page .apd5-header-row,
    body.apd30-help-page.apd33-video-reference .apd5-header-row { width: calc(100% - 28px) !important; grid-template-columns: 120px 1fr auto !important; }
    body.apd33-resource-page .apd5-host-trigger,
    body.apd30-help-page.apd33-video-reference .apd5-host-trigger { display: none !important; }
    .apd33-resource-main { --resource-wide: calc(100% - 32px); }
    .apd33-resource-hero { padding-top: 48px; }
    .apd33-resource-hero h1 { font-size: clamp(34px, 9vw, 52px); }
    .apd33-community-visual { min-height: 210px; gap: 10px; }
    .apd33-community-visual i { width: 58px; height: 140px; }
    .apd33-community-visual i:nth-child(2), .apd33-community-visual i:nth-child(4) { height: 170px; }
    .apd33-community-visual i:nth-child(3), .apd33-community-visual i:nth-child(5) { height: 135px; }
    .apd33-access-visual { min-height: 360px; }
    .apd33-access-visual > i { width: 160px; height: 280px; }
    .apd33-resource-layout { display: block; }
    .apd33-resource-index { position: static; margin-bottom: 36px; }
    .apd33-resource-cards { grid-template-columns: 1fr; }
    .apd33-forum-featured > div { grid-template-columns: 1fr; }
    .apd33-resource-help { align-items: flex-start; flex-direction: column; }
    body.apd-account-body.apd33-video-reference .apd-account-layout { display: block !important; }
    body.apd-account-body.apd33-video-reference .apd-account-sidebar { position: static !important; width: 100% !important; height: auto !important; padding: 18px 20px !important; border-right: 0 !important; border-bottom: 1px solid #eee !important; }
    body.apd-account-body.apd33-video-reference .apd-account-sidebar nav { flex-direction: row !important; overflow-x: auto !important; scrollbar-width: none; }
    body.apd-account-body.apd33-video-reference .apd-account-sidebar nav a { min-width: max-content !important; }
    body.apd-account-body.apd33-video-reference .apd-account-sidebar nav hr { display: none !important; }
    body.apd-account-body.apd33-video-reference .apd-account-content { padding: 28px 22px 80px !important; }
}

@media (max-width: 560px) {
    .apd33-resource-hero { width: calc(100% - 30px); }
    .apd33-resource-hero > span { font-size: 15px; }
    .apd33-community-visual i:nth-child(5) { display: none; }
    .apd33-access-visual { min-height: 310px; grid-template-columns: 1fr; }
    .apd33-access-visual > i { width: 135px; height: 230px; }
    .apd33-access-visual > span { display: none; }
    .apd33-contact-grid, .apd33-resource-cards, .apd33-community-forum { width: calc(100% - 30px); }
    .apd33-community-forum { padding: 22px 16px; }
    .apd33-resource-help { padding: 26px 22px; }
    .apd33-message-menu { width: min(calc(100vw - 24px), 330px); }
    .apd33-suggestion-dialog { width: calc(100vw - 24px); padding: 24px 20px; }
    body.apd-account-body.apd33-video-reference .apd-account-topbar { height: 64px !important; padding: 0 18px !important; }
    body.apd-account-body.apd33-video-reference .apd-account-sidebar h1 { font-size: 18px !important; }
    body.apd-account-body.apd33-video-reference .apd-account-rows article { margin: 0 !important; padding-right: 0 !important; padding-left: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
    body.apd33-video-reference *,
    body.apd33-video-reference *::before,
    body.apd33-video-reference *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
