.fd-share-trigger[hidden], .fd-share-preview[hidden], .fd-share-dialog:not([open]) { display: none; }
.fd-share-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    background: transparent;
    color: var(--ink);
    border: 1px solid #aabaae;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 650;
    vertical-align: middle;
}
.fd-share-trigger:hover { background: #e7eee0; color: var(--ink); }
.hero [data-share] { display: inline-block; margin: 8px 0 0 8px; }
.article [data-share] { margin: 15px 0 21px; }
.fd-share-dialog {
    box-sizing: border-box;
    width: min(480px, calc(100% - 28px));
    max-height: calc(100% - 28px);
    margin: auto;
    padding: 0;
    background: #fffdf8;
    color: var(--ink);
    border: 1px solid #cbd7ca;
    border-radius: 14px;
    box-shadow: 0 18px 64px #10281d3b;
}
.fd-share-dialog::backdrop { background: #10281db3; }
.fd-share-panel { padding: clamp(16px, 5vw, 25px); }
.fd-share-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    border: 0;
}
.fd-share-head h2, .article .fd-share-head h2 { margin: 0; font-size: 27px; }
.fd-share-head p, .article .fd-share-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.fd-share-close {
    background: #edf1e7;
    color: var(--ink);
    border: 1px solid #cbd7ca;
    width: 40px;
    height: 40px;
    padding: 0;
    flex: 0 0 auto;
    border-radius: 8px;
    font-size: 24px;
    line-height: 1;
}
.fd-share-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    margin: 19px 0 16px;
    list-style: none;
}
.fd-share-options a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 9px;
    background: #f3f5ee;
    border: 1px solid #dbe3d6;
    border-radius: 7px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
}
.fd-share-options a:hover { background: #e7eee0; }
.fd-share-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 24px;
    height: 24px;
    color: #fff;
    background: #222;
    border-radius: 5px;
    font: 700 14px/1 system-ui, sans-serif;
}
[data-share-network="whatsapp"] .fd-share-mark { background: #147548; font-size: 10px; }
[data-share-network="facebook"] .fd-share-mark { background: #1559ab; }
[data-share-network="linkedin"] .fd-share-mark { background: #0a6391; }
.fd-share-label { margin: 0 0 4px; font-size: 13px; font-weight: 650; }
.fd-share-copy { display: flex; gap: 6px; }
.fd-share-copy input { min-width: 0; width: 100%; padding: 8px; font-size: 13px; }
.fd-share-copy button { flex: none; padding: 8px 12px; font-size: 13px; }
.fd-share-panel .fd-share-status, .fd-share-panel .fd-share-preview {
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
}
.fd-share-panel .fd-share-status:empty { margin: 0; }
@media print { [data-share] { display: none !important; } }
