.tla-standalone-body {
    margin: 0;
    min-height: 100vh;
    background: var(--tla-bg, #f5f7fb);
}

.tla-public-page {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    min-height: 100vh;
    box-sizing: border-box;
    padding: calc(24px + var(--safe-top)) 14px calc(24px + var(--safe-bottom));
    background:
        radial-gradient(circle at 20% 0%, rgba(255,255,255,.82), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,0)),
        var(--tla-bg, #f5f7fb);
    color: var(--tla-text, #111827);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tla-public-page * {
    box-sizing: border-box;
}

.tla-card {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 24px 16px 18px;
    border-radius: 30px;
    background: color-mix(in srgb, var(--tla-card, #fff) 92%, transparent);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .14);
    border: 1px solid rgba(255,255,255,.72);
    backdrop-filter: blur(14px);
}

.tla-profile {
    text-align: center;
    padding: 6px 6px 18px;
}

.tla-avatar {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    border-radius: 999px;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.98);
    box-shadow: 0 16px 36px rgba(15,23,42,.18);
}

.tla-avatar-placeholder {
    display: grid;
    place-items: center;
    background: #111827;
    color: #fff;
    font-size: 38px;
}

.tla-profile h1 {
    margin: 0;
    color: var(--tla-text, #111827);
    font-size: clamp(24px, 6vw, 34px);
    line-height: 1.05;
    letter-spacing: -.04em;
    font-weight: 850;
}

.tla-handle {
    margin: 8px 0 0;
    color: var(--tla-muted, #6b7280);
    font-size: 15px;
    font-weight: 700;
}

.tla-tagline {
    max-width: 420px;
    margin: 12px auto 0;
    color: var(--tla-muted, #6b7280);
    font-size: 15px;
    line-height: 1.45;
}

.tla-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tla-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 19px;
    text-decoration: none !important;
    color: var(--btn-text, #fff) !important;
    background: var(--btn-bg, #111827);
    transform: translateY(0);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    overflow: hidden;
}

.tla-link:hover,
.tla-link:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.03);
    outline: none;
}

.tla-link:focus-visible {
    box-shadow: 0 0 0 4px rgba(59,130,246,.28), 0 16px 30px rgba(15,23,42,.14);
}

.tla-style-relief {
    box-shadow: 0 13px 0 color-mix(in srgb, var(--btn-bg, #111827) 76%, #000), 0 22px 34px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.18);
}

.tla-style-relief:hover {
    box-shadow: 0 10px 0 color-mix(in srgb, var(--btn-bg, #111827) 76%, #000), 0 19px 28px rgba(15,23,42,.15), inset 0 1px 0 rgba(255,255,255,.18);
}

.tla-style-flat {
    box-shadow: 0 12px 26px rgba(15,23,42,.12);
}

.tla-style-outline {
    color: var(--btn-bg, #111827) !important;
    background: transparent;
    border: 2px solid var(--btn-bg, #111827);
    box-shadow: 0 10px 24px rgba(15,23,42,.07);
}

.tla-style-glass {
    background: color-mix(in srgb, var(--btn-bg, #111827) 74%, white);
    border: 1px solid rgba(255,255,255,.34);
    box-shadow: 0 12px 28px rgba(15,23,42,.11), inset 0 1px 0 rgba(255,255,255,.28);
}

.tla-link-img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255,255,255,.18);
    display: grid;
    place-items: center;
}

.tla-link-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tla-link-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tla-link-title {
    display: block;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -.015em;
}

.tla-link-desc {
    display: block;
    opacity: .82;
    font-size: 12.5px;
    line-height: 1.25;
}

.tla-link-arrow {
    font-size: 28px;
    line-height: 1;
    opacity: .74;
    padding-left: 3px;
}

.tla-layout-cloud .tla-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tla-layout-cloud .tla-link {
    width: auto;
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 999px;
}

.tla-layout-cloud .tla-link-img {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 999px;
}

.tla-layout-cloud .tla-link-desc,
.tla-layout-cloud .tla-link-arrow {
    display: none;
}

.tla-empty {
    text-align: center;
    color: var(--tla-muted, #6b7280);
    margin: 20px 0;
}

.tla-footer {
    text-align: center;
    margin-top: 18px;
    color: var(--tla-muted, #6b7280);
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 420px) {
    .tla-public-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .tla-card {
        border-radius: 26px;
        padding: 20px 12px 16px;
    }

    .tla-link {
        border-radius: 17px;
        padding: 11px 12px;
    }
}
