/* Meldo — Teilen-Dialog + Vollbild-QR  (v0.27.71) */

.mshare-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17,20,22,0.55);
    backdrop-filter: blur(3px);
    animation: mshareFade .16s ease both;
}
@keyframes mshareFade { from { opacity: 0; } to { opacity: 1; } }

.mshare-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(17,20,22,0.28);
    font-family:var(--msc-schrift-text);
    color: #111416;
    animation: msharePop .18s ease both;
}
@keyframes msharePop {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.mshare-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border: none;
    border-radius: 50%;
    background: #F2F4F5;
    color: #6B7280;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.mshare-close:hover,
.mshare-close:focus { background: #E7EAEC !important; color: #111416 !important; }

.mshare-title {
    margin: 0 0 6px;
    padding-right: 34px;
    font-family:var(--msc-schrift-titel);
    font-size: 21px;
    font-weight: 700;
}
.mshare-sub {
    margin: 0 0 20px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #6B7280;
    overflow-wrap: anywhere;
}

.mshare-form { display: flex; flex-direction: column; gap: 14px; }
.mshare-field { display: flex; flex-direction: column; gap: 5px; }
.mshare-label {
    font-family:var(--msc-schrift-titel);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #4B5563;
}
.mshare-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #E7EAEC;
    border-radius: 12px;
    background: #fff;
    font-family:var(--msc-schrift-text);
    font-size: 14px;
    color: #111416;
}
.mshare-input:focus {
    outline: none;
    border-color: var(--msc-akzent);
    box-shadow: 0 0 0 3px var(--msc-akzent-a13);
}

.mshare-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 18px;
    border: none;
    border-radius: 999px;
    font-family:var(--msc-schrift-titel);
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .16s ease, transform .12s ease, border-color .16s ease;
}
.mshare-btn--primary {
    width: 100%;
    margin-top: 20px;
    background: var(--msc-akzent) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px var(--msc-akzent-a26);
}
.mshare-btn--primary:hover:not(:disabled),
.mshare-btn--primary:focus:not(:disabled) {
    background: var(--msc-akzent-l22) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.mshare-btn--primary:disabled { opacity: .6; cursor: default; }
/* v0.27.74 — Hintergrund in JEDEM Zustand festnageln.
   Der Dialog läuft im BuddyBoss-Kontext, und dessen button:hover setzt einen
   tealen Hintergrund. Zusammen mit meiner tealen Hover-Schriftfarbe wurde der
   Text unsichtbar (teal auf teal). Farbe UND Hintergrund gehören zusammen. */
.mshare-btn--ghost,
.mshare-btn--ghost:link,
.mshare-btn--ghost:visited {
    flex: 1;
    background: #fff !important;
    border: 1.5px solid #E7EAEC;
    color: #111416 !important;
}
.mshare-btn--ghost:hover,
.mshare-btn--ghost:focus,
.mshare-btn--ghost:active {
    background: var(--msc-akzent-a08) !important;
    border-color: var(--msc-akzent);
    color: var(--msc-akzent-l22) !important;
}
.mshare-btn--ghost:focus-visible { outline: 2px solid var(--msc-akzent); outline-offset: 2px; }

/* ── Ergebnis ─────────────────────────────────────────────────── */
.mshare-result:empty { display: none; }
.mshare-qr {
    width: 100%;
    max-width: 260px;
    margin: 4px auto 0;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #E7EAEC;
}
.mshare-qr svg { display: block; width: 100%; height: auto; }
.mshare-hint {
    margin: 8px 0 16px;
    text-align: center;
    font-size: 12.5px;
    color: #6B7280;
}
.mshare-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px;
    border-radius: 14px;
    background: var(--msc-akzent2-a14);
    border: 1px solid var(--msc-akzent2-a35);
}
.mshare-code-label {
    font-family:var(--msc-schrift-titel);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--msc-akzent2-l28s72);
}
.mshare-code-value {
    font-family:var(--msc-schrift-titel);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #111416;
}

.mshare-linkrow { display: flex; gap: 8px; align-items: stretch; }
.mshare-link {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1.5px solid #E7EAEC;
    border-radius: 12px;
    background: #FAF8F3;
    font-family:var(--msc-schrift-text);
    font-size: 13px;
    color: #4B5563;
}
.mshare-linkrow .mshare-btn { flex: 0 0 auto; padding: 10px 16px; font-size: 13.5px; }

.mshare-actions { display: flex; gap: 8px; margin-top: 12px; }
.mshare-meta { margin-top: 12px; text-align: center; font-size: 12px; color: #6B7280; }
.mshare-error {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #FEE2E2;
    color: #991B1B;
    font-size: 13.5px;
}

/* ── Vollbild-QR (Projektion) ─────────────────────────────────── */
.mshare-present {
    position: fixed;
    inset: 0;
    z-index: 2147483002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vmin;
    background: #FAF8F3;
    cursor: pointer;
    animation: mshareFade .18s ease both;
}
.mshare-present-box { text-align: center; max-width: min(80vh, 92vw); }
.mshare-present .mshare-qr {
    max-width: min(62vh, 78vw);
    padding: 3vmin;
    border-radius: 24px;
    border: none;
    box-shadow: 0 18px 50px rgba(17,20,22,0.14);
}
.mshare-present-title {
    margin-top: 3vmin;
    font-family:var(--msc-schrift-titel);
    font-size: clamp(20px, 3.4vmin, 40px);
    font-weight: 700;
    color: #111416;
}
.mshare-present-code {
    margin-top: 1.4vmin;
    font-family:var(--msc-schrift-titel);
    font-size: clamp(18px, 3vmin, 34px);
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--msc-akzent);
}
.mshare-present-url {
    margin-top: 1.4vmin;
    font-size: clamp(13px, 1.8vmin, 20px);
    color: #6B7280;
    overflow-wrap: anywhere;
}
.mshare-present-hint {
    margin-top: 2.4vmin;
    font-size: 12.5px;
    color: #9CA3AF;
}

@media (max-width: 520px) {
    .mshare-modal { padding: 22px 18px; border-radius: 18px; }
    .mshare-linkrow { flex-direction: column; }
    .mshare-linkrow .mshare-btn { width: 100%; }
    .mshare-actions { flex-direction: column; }
}

/* v0.27.74 — Inline-Icons erben die Textfarbe */
.mshare-btn svg { flex-shrink: 0; }
.mh-menu-label { display: inline-flex; align-items: center; gap: 8px; }
.mh-menu-label svg { flex-shrink: 0; opacity: .8; }

/* v0.27.80 — Abgabeordner-Optionen im Teilen-Dialog */
.mshare-upload-opt {
    padding: 12px 14px;
    border-radius: 14px;
    background: #FAF8F3;
    border: 1px solid #E7EAEC;
}
.mshare-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.mshare-check input { width: 17px; height: 17px; accent-color: var(--msc-akzent); cursor: pointer; }
.mshare-upload-sub { display: flex; flex-direction: column; gap: 8px; margin-top: 11px; }
.mshare-upload-hint {
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--msc-akzent-l22);
}
.mshare-check-sub { margin-top: 11px; font-size: 13px; color: #4B5563; }
