/* V36 only: preserve existing dashboard grid, main app sizing and existing menu assets. */
#member-resources-screen .v36-content{padding:16px 19px 60px;color:#fff;overflow-wrap:anywhere}
#member-resources-screen .v36-content h2{font-size:22px;margin:4px 0 12px;color:#fff}
#member-resources-screen .v36-content p{font-size:14px;line-height:1.5;color:#cbdcf2}
#member-resources-screen .v36-resource-card{display:block;width:100%;margin:10px 0;padding:17px;text-align:left;background:#223554;color:#fff;border:1px solid #496282;border-radius:14px;font-size:16px;font-weight:700;white-space:normal;overflow-wrap:anywhere}
#member-resources-screen .v36-resource-card:focus-visible,#member-resources-screen button:focus-visible,#member-resources-screen a:focus-visible{outline:3px solid #e8bc70;outline-offset:3px}
#member-resources-screen #v36-resource-image{display:block;max-width:100%;width:100%;max-height:225px;object-fit:contain;background:#101e34;border-radius:12px;margin:12px auto}
#member-resources-screen #v36-resource-image[hidden],#member-resources-screen [hidden]{display:none!important}
#member-resources-screen .v36-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:14px 0}
#member-resources-screen .v36-actions a,#member-resources-screen .v36-actions button{display:inline-flex;align-items:center;justify-content:center;border-radius:11px;background:#e8be73;color:#0d1c32;text-align:center;text-decoration:none;border:0;font-weight:800;padding:12px 14px;min-height:44px}
#member-resources-screen .v36-discount{background:#243553;border:1px solid #496282;padding:14px;border-radius:12px}
#member-resources-screen .v36-discount strong{display:block;word-break:break-word;letter-spacing:.04em;margin:6px 0;color:#fff}
#member-resources-screen #v36-member-status{color:#efc274;min-height:24px}
/* V35.1 correction: profile heading and controls use the full available width. */
#pet-companion-detail-screen .v35-community-panel{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box}
#pet-companion-detail-screen .v35-community-panel>summary{display:list-item!important;width:100%!important;margin-bottom:12px;line-height:1.4}
#pet-companion-detail-screen .v35-community-panel .v35-profile-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;width:100%!important;margin:12px 0!important}
#pet-companion-detail-screen .v35-community-panel .v35-profile-tabs button{min-width:0!important;width:100%!important;padding:12px 3px!important;font-size:11px!important;overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important;hyphens:none!important;line-height:1.25!important}
#pet-companion-detail-screen .v35-community-panel #v31-content{display:block;width:100%!important;min-width:0!important;clear:both!important}
#pet-companion-detail-screen .v35-community-panel #v31-content .cmp-note{width:100%!important;box-sizing:border-box!important}
@media(max-width:330px){#pet-companion-detail-screen .v35-community-panel .v35-profile-tabs{grid-template-columns:1fr!important}}

/* V39: scoped member resource search and featured tiles. */
#member-resources-screen .v39-search-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;margin:15px 0}
#member-resources-screen .v39-search-controls input,#member-resources-screen .v39-search-controls select{box-sizing:border-box;width:100%;background:#102138;color:#fff;border:1px solid #6c88a5;border-radius:10px;padding:12px;font:inherit;min-height:44px}
#member-resources-screen .v39-resource-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;line-height:1.35}
#member-resources-screen .v39-resource-card strong{font-size:16px}
#member-resources-screen .v39-resource-card small{font-size:12px;font-weight:500;color:#d2e2f5}
#member-resources-screen .v39-resource-card .v39-featured{background:#e8be73;color:#102139;border-radius:6px;padding:4px 8px;font-size:12px}
#member-resources-screen .v39-discount-flag{color:#f0ca80!important}

/* V40: resource imagery and compact featured listings, scoped to the existing 390px screen. */
#member-resources-screen .v40-resource-card{padding:0;overflow:hidden;display:flex;align-items:stretch;flex-direction:column;gap:0}
#member-resources-screen .v40-resource-image{width:100%;height:148px;object-fit:contain;background:#102038;display:block}
#member-resources-screen .v40-resource-image[hidden]{display:none!important}
#member-resources-screen .v40-resource-info{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:16px;text-align:left}
#member-resources-screen .v40-resource-info strong{font-size:16px;line-height:1.38}
#member-resources-screen .v40-view-detail{font-size:13px;color:#e8be73;text-decoration:underline;margin-top:3px}
#member-resources-screen .v40-featured-heading{font-weight:700;color:#e8be73!important;margin:12px 0 4px}
#member-resources-screen .v40-resource-card:focus-visible{outline:3px solid #e8be73;outline-offset:2px}

/* V41 — featured member offers: visual distinction only; no change to eligibility. */
#member-resources-screen .v41-featured-card{border:2px solid #e8be73!important;box-shadow:0 0 0 2px rgba(232,190,115,.10)}
#member-resources-screen .v41-featured-card .v40-resource-info{background:linear-gradient(120deg,#253955,#1b2a43)}
#member-resources-screen .v41-featured-card .v39-featured{font-weight:800;letter-spacing:.02em}
#member-resources-screen .v36-discount button{min-height:44px}
