/* Profile-only share dialog. The approved app shell is intentionally untouched. */
body.profile-share-open { overflow: hidden; }
.profile-share {
    width: min(440px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    color: var(--t-text);
    background: var(--t-card);
    border: 1px solid var(--t-border);
    border-radius: 22px;
    box-shadow: 0 24px 90px rgb(0 0 0 / 28%);
    font-family: inherit;
}
.profile-share:not([open]) { display: none; }
.profile-share::backdrop { background: rgb(5 7 12 / 62%); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.profile-share__panel { position: relative; min-width: 0; padding: 28px 28px 12px; }
.profile-share__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--t-muted);
    background: transparent;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}
.profile-share__close:hover { color: var(--t-text); background: var(--t-hover); }
.profile-share__close svg { width: 19px; height: 19px; }
.profile-share__symbol { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border: 1px solid var(--t-border); border-radius: 13px; color: var(--t-text); background: var(--t-elevated); }
.profile-share__symbol svg { width: 21px; height: 21px; }
.profile-share h2 { margin: 0; padding-right: 20px; color: var(--t-text); font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.profile-share__identity { display: flex; align-items: center; gap: 11px; min-width: 0; margin: 21px 0 25px; }
.profile-share__identity > div { min-width: 0; }
.profile-share__avatar { flex: 0 0 40px; width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--t-border); border-radius: 12px; }
.profile-share__name { margin: 0; overflow-wrap: anywhere; color: var(--t-text); font-size: 14px; font-weight: 620; line-height: 1.35; }
.profile-share__handle { margin: 3px 0 0; color: var(--t-muted); font-size: 12px; line-height: 1.35; }
.profile-share__languages { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-share__languages legend,
.profile-share__link-label { display: block; margin: 0 0 9px; color: var(--t-muted); font-size: 12px; font-weight: 550; line-height: 1.4; }
.profile-share__language-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.profile-share__language { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; min-height: 46px; padding: 11px 12px; color: var(--t-muted); background: var(--t-elevated); border: 1px solid var(--t-border); border-radius: 11px; font-size: 13px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.profile-share__language input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.profile-share__language svg { flex: 0 0 18px; width: 18px; height: 18px; opacity: 0; }
.profile-share__language:has(input:checked) { color: var(--t-text); background: var(--t-hover); border-color: color-mix(in srgb, var(--t-text) 38%, var(--t-border)); }
.profile-share__language:has(input:checked) svg { opacity: 1; }
.profile-share__language:has(input:disabled) { cursor: wait; }
.profile-share__link-label { margin-top: 21px; }
.profile-share__link { display: block; box-sizing: border-box; width: 100%; min-height: 46px; padding: 11px 12px; color: var(--t-muted); background: var(--t-elevated); border: 1px solid var(--t-border); border-radius: 11px; font-family: inherit; font-size: 12px; line-height: 1.5; text-overflow: ellipsis; }
.profile-share__hint { margin: 9px 0 21px; color: var(--t-muted); font-size: 11px; line-height: 1.55; }
.profile-share__copy { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 46px; padding: 11px 15px; color: var(--t-bg); background: var(--t-text); border: 1px solid transparent; border-radius: 11px; font-family: inherit; font-size: 13px; font-weight: 650; line-height: 1.4; cursor: pointer; transition: opacity .15s; }
.profile-share__copy:hover { opacity: .88; }
.profile-share__copy:disabled { opacity: .6; cursor: wait; }
.profile-share__copy svg { flex: 0 0 17px; width: 17px; height: 17px; }
.profile-share__status { min-height: 17px; margin: 8px 0 0; text-align: center; color: var(--t-muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-share__status[data-error] { color: var(--t-text); }
.profile-share__close:focus-visible,
.profile-share__copy:focus-visible,
.profile-share__link:focus-visible,
.profile-share__language:has(input:focus-visible) { outline: 2px solid var(--ac); outline-offset: 3px; }
.profile-share.is-fallback[open] { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; box-sizing: border-box; width: 100%; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 16px; background: rgb(5 7 12 / 62%); border: 0; border-radius: 0; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.profile-share.is-fallback .profile-share__panel { width: min(440px, 100%); max-height: 100%; box-sizing: border-box; overflow: auto; background: var(--t-card); border: 1px solid var(--t-border); border-radius: 22px; }
@media (max-width: 480px) {
    .profile-share { width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 19px; }
    .profile-share__panel { padding: 24px 20px 11px; }
    .profile-share__identity { margin-bottom: 22px; }
    .profile-share__language { padding-inline: 10px; }
    .profile-share.is-fallback[open] { padding: 12px; }
    .profile-share.is-fallback .profile-share__panel { border-radius: 19px; }
}
@media (prefers-reduced-motion: reduce) { .profile-share * { transition: none !important; } }
