
.mc-share-panel {
 width: min(540px,calc(100% - 24px)); max-height: min(88dvh,760px);
 padding: 16px; border: 0; border-radius: 18px; color: #20222a;
 background: white; box-sizing: border-box; overflow: auto;
}
.mc-share-panel::backdrop { background: #20222a66; }
.mc-share-panel .mc-share { margin: 0; padding: 0; background: white; border: 0; }
.mc-share-panel #mc-share-title { padding-right: 44px; margin-bottom: 12px; }
#mc-share-close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; background: white; color: #20222a; border: 0; font-size: 1.6rem; }
.mc-share-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; border: 0; margin: 0 0 12px; }
.mc-share-formats label { display: flex; align-items: center; gap: 7px; padding: 8px; border: 1px solid #cdb8fa; border-radius: 10px; cursor: pointer; }
.mc-share-formats label:has(:checked) { background: #eee6ff; border-color: #2339ea; }
.mc-share-formats input { accent-color: #2339ea; }
.mc-share-formats small { display: block; }
.mc-share-panel .mc-share-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
.mc-share-panel .mc-share-actions #mc-share-native { grid-column: 1/-1; min-height: 44px; background: #2339ea; color: white; }
.mc-share-panel .mc-share-actions #mc-share-native svg { stroke: currentColor; }
.mc-share-panel .mc-save { margin-top: 8px; }
@media (max-width: 620px) {
 .mc-share-panel { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 18px 18px 0 0; padding-bottom: max(16px,env(safe-area-inset-bottom)); }
}
