/* EPA V51: three independently saved view choices, no global card selectors. */
.epa-v51-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0 12px;padding:7px 9px;background:#fff;border:1px solid #e0e8f0;border-radius:12px;min-width:0;flex-wrap:wrap}
.epa-v51-toolbar-caption{font-size:12px;font-weight:750;color:#587087}
.epa-v51-modes{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid #e2e9f0;border-radius:10px;background:#f5f8fb}
.epa-v51-mode{display:flex;align-items:center;gap:5px;padding:6px 8px;min-height:34px;white-space:nowrap;background:transparent;border:0;border-radius:8px;color:#31516f;cursor:pointer;font:inherit}
.epa-v51-mode>span{font-size:15px;line-height:1}
.epa-v51-mode small{font-size:10px;font-weight:700}
.epa-v51-mode.selected{color:#fff;background:#096a75;box-shadow:0 1px 3px #0002}
.epa-v51-mode:focus-visible{outline:2px solid #b59135;outline-offset:2px}
/* Featured cards: front image always fully visible, never forced cover. */
body #epaHomeDashboard #listingCards.epa-v51-cards[data-epa-view-mode="grid"]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body #epaHomeDashboard #listingCards.epa-v51-cards[data-epa-view-mode="stack"]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:11px!important}
body #epaHomeDashboard #listingCards.epa-v51-cards[data-epa-view-mode="compact"]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
body #epaHomeDashboard #listingCards.epa-v51-cards[data-epa-view-mode="stack"] .listing-photo{height:205px!important;min-height:205px!important;max-height:205px!important}
body #epaHomeDashboard #listingCards.epa-v51-cards[data-epa-view-mode="compact"] .listing{display:grid!important;grid-template-columns:113px minmax(0,1fr)!important;min-width:0!important}
body #epaHomeDashboard #listingCards.epa-v51-cards[data-epa-view-mode="compact"] .listing-photo{height:100%!important;min-height:148px!important;max-height:none!important}
body #epaHomeDashboard #listingCards.epa-v51-cards[data-epa-view-mode="compact"] .listing-content{min-width:0!important}
/* My portfolios and search: retain every action even in two-column mode. */
body #epaWorkspace .epa-listings.epa-v51-cards[data-epa-view-mode="grid"]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body #epaWorkspace .epa-listings.epa-v51-cards[data-epa-view-mode="stack"]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
body #epaWorkspace .epa-listings.epa-v51-cards[data-epa-view-mode="compact"]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
body #epaWorkspace .epa-listings.epa-v51-cards[data-epa-view-mode="compact"]>.epa-property{display:grid!important;grid-template-columns:min(32%,128px) minmax(0,1fr)!important;align-items:stretch!important}
body #epaWorkspace .epa-listings.epa-v51-cards[data-epa-view-mode="compact"]>.epa-property>.epa-property-photo{height:100%!important;min-height:155px!important;max-height:none!important}
body #epaWorkspace .epa-listings.epa-v51-cards[data-epa-view-mode="compact"]>.epa-property>.epa-property-body{min-width:0!important;padding:8px!important}
body #epaWorkspace .epa-listings.epa-v51-cards[data-epa-view-mode="grid"] .epa-property-actions{gap:4px!important}
body #epaWorkspace .epa-listings.epa-v51-cards[data-epa-view-mode="grid"] .epa-property-actions button{font-size:10px!important;padding:6px!important;min-height:32px!important;flex:1 1 auto}
body #epaWorkspace .epa-listings.epa-v51-cards[data-epa-view-mode="grid"] .epa-property-photo{height:145px!important}
body #epaWorkspace .epa-listings.epa-v51-cards[data-epa-view-mode="stack"] .epa-property-photo{height:205px!important}
/* Personal profile / own portfolio gallery. */
body #epaWorkspace .epa-new-list.epa-v51-cards[data-epa-view-mode="grid"]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body #epaWorkspace .epa-new-list.epa-v51-cards[data-epa-view-mode="grid"] .epa-new-item{display:flex!important;flex-direction:column!important;align-items:stretch!important}
body #epaWorkspace .epa-new-list.epa-v51-cards[data-epa-view-mode="grid"] .epa-new-item-image{width:100%!important;max-width:none!important;min-width:0!important;aspect-ratio:4/3!important}
body #epaWorkspace .epa-new-list.epa-v51-cards[data-epa-view-mode="stack"]{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
body #epaWorkspace .epa-new-list.epa-v51-cards[data-epa-view-mode="stack"] .epa-new-item{display:flex!important;flex-direction:column!important;align-items:stretch!important}
body #epaWorkspace .epa-new-list.epa-v51-cards[data-epa-view-mode="stack"] .epa-new-item-image{width:100%!important;max-width:none!important;min-width:0!important;aspect-ratio:16/9!important}
body #epaWorkspace .epa-new-list.epa-v51-cards[data-epa-view-mode="compact"]{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
body #epaWorkspace .epa-new-list.epa-v51-cards[data-epa-view-mode="compact"] .epa-new-item{display:flex!important;flex-direction:row!important;align-items:center!important}
body #epaWorkspace .epa-new-list.epa-v51-cards[data-epa-view-mode="compact"] .epa-new-item-image{width:32%!important;max-width:145px!important;min-width:95px!important;aspect-ratio:4/3!important}
body #epaWorkspace .epa-new-list.epa-v51-cards .epa-new-item-image img{object-fit:contain!important;object-position:center!important;background:#eef4f9!important}
/* Salon selection and center catalogs — three real layout modes. */
body #epaWorkspace .epa-v41-room-grid.epa-v51-cards[data-epa-view-mode="grid"],body #epaWorkspace .epa-office-grid.epa-v51-cards[data-epa-view-mode="grid"]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body #epaWorkspace .epa-v41-room-grid.epa-v51-cards[data-epa-view-mode="stack"],body #epaWorkspace .epa-office-grid.epa-v51-cards[data-epa-view-mode="stack"]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
body #epaWorkspace .epa-v41-room-grid.epa-v51-cards[data-epa-view-mode="compact"],body #epaWorkspace .epa-office-grid.epa-v51-cards[data-epa-view-mode="compact"]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
body #epaWorkspace .epa-v41-room-grid.epa-v51-cards[data-epa-view-mode="grid"]>.epa-v41-room-card,body #epaWorkspace .epa-v41-room-grid.epa-v51-cards[data-epa-view-mode="stack"]>.epa-v41-room-card{display:flex!important;flex-direction:column!important;min-width:0!important}
body #epaWorkspace .epa-v41-room-grid.epa-v51-cards[data-epa-view-mode="grid"]>.epa-v41-room-card>img,body #epaWorkspace .epa-v41-room-grid.epa-v51-cards[data-epa-view-mode="grid"]>.epa-v41-room-card>.epa-v41-room-image{height:130px!important;min-height:130px!important;max-height:130px!important;width:100%!important;object-fit:contain!important}
body #epaWorkspace .epa-v41-room-grid.epa-v51-cards[data-epa-view-mode="stack"]>.epa-v41-room-card>img,body #epaWorkspace .epa-v41-room-grid.epa-v51-cards[data-epa-view-mode="stack"]>.epa-v41-room-card>.epa-v41-room-image{height:200px!important;min-height:200px!important;max-height:200px!important;width:100%!important;object-fit:contain!important}
body #epaWorkspace .epa-v41-room-grid.epa-v51-cards[data-epa-view-mode="compact"]>.epa-v41-room-card{display:grid!important;grid-template-columns:min(31%,128px) minmax(0,1fr)!important;min-width:0!important}
body #epaWorkspace .epa-v41-room-grid.epa-v51-cards[data-epa-view-mode="compact"]>.epa-v41-room-card>img,body #epaWorkspace .epa-v41-room-grid.epa-v51-cards[data-epa-view-mode="compact"]>.epa-v41-room-card>.epa-v41-room-image{height:165px!important;min-height:165px!important;max-height:165px!important;width:100%!important;object-fit:contain!important}
body #epaWorkspace .epa-v41-room-grid.epa-v51-cards .epa-v41-room-content{min-width:0!important}
body #epaWorkspace .epa-office-grid.epa-v51-cards[data-epa-view-mode="compact"]>.epa-office-tile{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;gap:7px!important}
body #epaWorkspace .epa-office-grid.epa-v51-cards[data-epa-view-mode="compact"] .epa-office-cover{grid-row:span 4!important;height:145px!important;min-height:145px!important;object-fit:contain!important}
body #epaWorkspace .epa-office-grid.epa-v51-cards[data-epa-view-mode="compact"] .epa-office-tile>*:not(.epa-office-cover){min-width:0!important}
/* A quieter, notification-like profile summary. */
body #epaWorkspace .epa-new-profile .epa-new-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;padding:9px!important;background:#f5f8fb!important;border:1px solid #dfe7ef!important;border-radius:14px!important}
body #epaWorkspace .epa-new-profile .epa-new-stats>div,body #epaWorkspace .epa-new-profile .epa-new-stats>button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;min-width:0!important;min-height:65px!important;padding:7px 3px!important;margin:0!important;grid-column:auto!important;background:#fff!important;border:1px solid #e1e9f0!important;border-radius:10px!important;box-shadow:none!important;text-align:center!important}
body #epaWorkspace .epa-new-profile .epa-new-stats b,body #epaWorkspace .epa-new-profile .epa-new-stats strong{font-size:19px!important;line-height:1.13!important;color:#133d5d!important}
body #epaWorkspace .epa-new-profile .epa-new-stats small{font-size:10px!important;line-height:1.3!important;color:#55718a!important}
.epa-v51-profile-prompt{margin:9px 0 12px;padding:12px 13px;border:1px solid #d5e6ee;border-radius:12px;background:#f2f8fb;color:#204761;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px}
.epa-v51-profile-prompt strong{display:block;font-size:13px}.epa-v51-profile-prompt small{font-size:11px;color:#5c7388;line-height:1.5}
.epa-v51-profile-prompt button{border:0;border-radius:9px;background:#0b6772;color:#fff;padding:9px 11px;font-size:12px;font-weight:700}
/* Fresh photo previews must stay inside their tiles; no broken image icons. */
#propertyMediaPreview.epa-media-preview{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(94px,1fr))!important;gap:8px!important;min-width:0!important}
#propertyMediaPreview .epa-v51-preview-tile{display:flex!important;flex-direction:column!important;gap:4px;min-width:0;min-height:92px;overflow:hidden;border:1px solid #dbe5ee;background:#f4f8fb;border-radius:10px;padding:5px}
#propertyMediaPreview .epa-v51-preview-tile img{display:block!important;width:100%!important;max-width:100%!important;height:82px!important;min-height:82px!important;object-fit:contain!important;background:#e5eef5!important;border-radius:6px;border:0!important}
#propertyMediaPreview .epa-v51-preview-tile small{color:#566c80;font-size:10px;overflow-wrap:anywhere;max-width:100%;line-height:1.3}
#propertyMediaPreview .epa-v51-preview-fail{font-size:11px;color:#a13e31;line-height:1.3;overflow-wrap:anywhere}
@media(max-width:380px){.epa-v51-toolbar-caption{display:none}.epa-v51-toolbar{justify-content:center}.epa-v51-mode{padding:6px}.epa-v51-mode small{font-size:10px}}

/* Small, notification-like portfolio statistics rather than bulky metric tiles. */
body #epaWorkspace .epa-v51-mini-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin:9px 0 12px!important}
body #epaWorkspace .epa-v51-mini-kpis>.epa-kpi{min-width:0!important;min-height:61px!important;padding:9px 7px!important;border-radius:11px!important;box-shadow:none!important;background:#f6f9fc!important;border:1px solid #e3eaf1!important}
body #epaWorkspace .epa-v51-mini-kpis>.epa-kpi small{font-size:10px!important;line-height:1.25!important;color:#587287!important}
body #epaWorkspace .epa-v51-mini-kpis>.epa-kpi b{font-size:19px!important;line-height:1.25!important;color:#17415f!important}
@media(max-width:600px){body #epaWorkspace .epa-v51-mini-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
