.mh-share-host { position:relative; }
.mh-share-icon { position:absolute; z-index:4; top:10px; right:66px; display:grid; place-items:center; width:46px; height:46px; border:1px solid var(--color-border); border-radius:50%; background:var(--color-surface); color:var(--color-text); cursor:pointer; }
.mh-share-icon svg { width:23px; height:23px; stroke:currentColor; fill:none; stroke-width:1.8; }
.mh-share-icon:focus-visible, .mh-share-choice:focus-visible, .mh-share-close:focus-visible { outline:3px solid var(--color-focus); outline-offset:3px; }
.mh-compact-card.mh-share-host { padding-right:14px; }
.mh-share-dialog { box-sizing:border-box; width:min(520px,calc(100% - 32px)); max-height:calc(100dvh - 32px); overflow:auto; padding:var(--space-6); border:1px solid var(--color-border); border-radius:var(--radius-card); background:var(--color-surface); color:var(--color-text); }
.mh-share-dialog::backdrop { background:#06111bbb; backdrop-filter:blur(3px); }
.mh-share-heading { display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); }
.mh-share-heading h2 { margin:0; color:var(--color-heading); font:600 20px/1.4 var(--font-heading); }
.mh-share-close { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; border:1px solid var(--color-border); border-radius:50%; background:var(--color-bg-secondary); color:var(--color-text); cursor:pointer; }
.mh-share-close svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.mh-share-dialog .mh-share-context { margin:var(--space-3) 0 0; color:var(--color-text-secondary); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.mh-share-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--space-2); margin-top:var(--space-6); }
.mh-share-actions--phone { grid-template-columns:repeat(4,minmax(0,1fr)); }
.mh-share-choice { display:flex; flex-direction:column; align-items:center; gap:var(--space-3); min-width:0; padding:var(--space-2) 0; border:0; border-radius:var(--radius-control); background:transparent; color:var(--color-heading); font:600 13px/1.4 var(--font-body); text-align:center; text-decoration:none; cursor:pointer; }
.mh-share-choice:hover { background:var(--color-bg-secondary); text-decoration:none; }
.mh-share-choice:disabled { opacity:.6; cursor:wait; }
.mh-share-badge { display:grid; place-items:center; width:60px; height:60px; flex-shrink:0; border-radius:50%; }
.mh-share-badge img { display:block; width:100%; height:100%; object-fit:contain; }
.mh-share-badge--whatsapp { background:#25d366; }
.mh-share-badge--whatsapp img { width:36px; height:36px; }
.mh-share-badge--messenger { background:#fff; }
.mh-share-badge--messenger img { width:48px; height:48px; }
.mh-share-badge--copy { background:var(--color-brand-blue); color:#fff; }
.mh-share-badge--copy svg { display:block; width:34px; height:34px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.mh-share-feedback { margin:var(--space-4) 0 0; font-size:14px; text-align:center; }
.mh-share-feedback:empty, .mh-share-fallback[hidden] { display:none; }
.mh-share-feedback.is-success { color:var(--color-success); }
.mh-share-notice { display:flex; align-items:center; gap:var(--space-3); box-sizing:border-box; width:max-content; max-width:calc(100% - 32px); color:var(--color-text); }
.mh-share-notice p { margin:0; line-height:1.5; }
.mh-share-fallback { display:block; margin-top:var(--space-4); font-size:14px; }
.mh-share-fallback input { box-sizing:border-box; width:100%; margin-top:var(--space-2); padding:var(--space-3); background:var(--color-surface); color:var(--color-text); border:1px solid var(--color-border); border-radius:var(--radius-control); }
.mh-share-contact { display:flex; gap:var(--space-3); flex-wrap:wrap; margin-top:var(--space-4); }
.mh-share-contact > .btn { flex:1 1 190px; min-height:48px; margin:0; display:flex; align-items:center; justify-content:center; text-align:center; }
.mh-share-text { background:var(--color-brand-blue); color:white; }
.mh-share-text:hover { filter:brightness(1.1); }
[data-theme=dark] .mh-share-text { background:#285d91; border-color:#5285b5; color:white; }
.mh-photo-sharing-actions-host { position:relative; }
.mh-share-photo-link { display:grid; place-items:center; width:100%; height:100%; min-height:inherit; color:inherit; text-decoration:none; }
.mh-photo-sharing-actions-host > .mh-photo-sharing-actions { position:absolute; z-index:4; top:12px; right:12px; display:flex; flex-wrap:nowrap; gap:8px; margin:0; }
.mh-photo-sharing-actions > .mh-share-icon, .mh-photo-sharing-actions > .mh-favorite-button { position:relative; inset:auto; box-sizing:border-box; width:44px; height:44px; flex:0 0 44px; box-shadow:none; }
.mh-seo-initial-photo { max-width:100%; height:auto; }
@media(max-width:560px) { .mh-share-contact > .btn { flex-basis:100%; } .mh-share-dialog { padding:var(--space-4); } .mh-share-heading h2 { font-size:18px; } }
@media(max-width:440px) { .mh-share-actions--phone { grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-3); } }

.mh-detail-main-visual:has(.mh-media-enlarge img) { min-height:0; }

.mh-profile-share-actions { display:flex; flex-direction:column; gap:var(--space-3); min-width:0; }
.mh-profile-share-actions > button { width:100%; min-height:48px; margin:0; }
.mh-profile-share-card.home-profile-card { padding-right:14px; }
.mh-profile-card-actions { display:flex; position:relative; z-index:4; gap:8px; margin-top:var(--space-2); }
.mh-profile-card-actions > button { position:relative; inset:auto; box-sizing:border-box; width:44px; height:44px; flex:0 0 44px; box-shadow:none; }
.mh-seo-profile-photo { display:block; width:180px; height:180px; object-fit:contain; background:white; border-radius:50%; }
@media(max-width:720px) { .mh-profile-share-actions { grid-column:1/-1; } }
