
        .public-profile {
            display: flex;
            flex-direction: column;
            gap: clamp(1.5rem, 4vw, 2.8rem);
            color: #f8fafc;
        }

        .public-profile p,
        .public-profile small,
        .public-profile span,
        .public-profile strong {
            color: inherit;
        }

        body.theme-light .public-profile,
        body.theme-light .public-profile p,
        body.theme-light .public-profile small,
        body.theme-light .public-profile span,
        body.theme-light .public-profile strong {
            color: #0f172a;
        }

        .public-profile__flash {
            display: flex;
            gap: 0.6rem;
            align-items: center;
            padding: 0.9rem 1.2rem;
            border-radius: 18px;
            border: 1px solid rgba(148, 163, 184, 0.25);
            background: rgba(15, 23, 42, 0.8);
            color: #e2e8f0;
        }

        .public-profile__flash--success {
            border-color: rgba(34, 197, 94, 0.35);
            background: rgba(34, 197, 94, 0.1);
        }

        .public-profile__flash--warning {
            border-color: rgba(248, 113, 113, 0.35);
            background: rgba(248, 113, 113, 0.12);
        }

        .public-profile__hero {
            position: relative;
            border-radius: 32px;
            border: 1px solid rgba(99, 102, 241, 0.35);
            background: rgba(15, 23, 42, 0.94);
            overflow: hidden;
            padding: clamp(1.8rem, 4vw, 3rem);
        }

        .public-profile__cover {
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        .public-profile__gridlines {
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.15), transparent 50%);
            opacity: 0.8;
        }

        .public-profile__orb {
            position: absolute;
            width: 220px;
            height: 220px;
            border-radius: 50%;
            filter: blur(60px);
            opacity: 0.45;
        }

        .public-profile__orb--one {
            top: -60px;
            inset-inline-start: -40px;
            background: rgba(99, 102, 241, 0.8);
        }

        .public-profile__orb--two {
            bottom: -80px;
            inset-inline-end: -20px;
            background: rgba(14, 165, 233, 0.7);
        }

        .public-profile__hero-body {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 1.75rem;
        }

        .public-profile__identity {
            display: flex;
            gap: 1.25rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .public-profile__avatar {
            width: 96px;
            height: 96px;
            border-radius: 24px;
            background: rgba(15, 23, 42, 0.65);
            border: 1px solid rgba(148, 163, 184, 0.4);
            display: grid;
            place-items: center;
            color: #f8fafc;
            font-size: 2rem;
            overflow: hidden;
        }

        .public-profile__avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .public-profile__avatar--ghost {
            background: rgba(148, 163, 184, 0.2);
            border-style: dashed;
        }

        .public-profile__eyebrow {
            letter-spacing: 0.25em;
            text-transform: uppercase;
            font-size: 0.75rem;
            color: rgba(248, 250, 252, 0.85);
            margin-bottom: 0.35rem;
        }

        .public-profile__hero h1 {
            margin: 0;
            font-size: clamp(2rem, 5vw, 2.8rem);
            color: #f8fafc;
        }

        .public-profile__identity-tags {
            display: flex;
            gap: 0.6rem;
            flex-wrap: wrap;
            margin: 0.5rem 0;
        }

        .public-profile__chip {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.35rem 0.85rem;
            border-radius: 999px;
            font-size: 0.85rem;
            font-weight: 600;
            border: 1px solid rgba(148, 163, 184, 0.3);
            color: #e2e8f0;
            background: rgba(15, 23, 42, 0.4);
        }

        .public-profile__chip--live {
            border-color: rgba(34, 197, 94, 0.4);
            background: rgba(34, 197, 94, 0.15);
            color: #bbf7d0;
        }

        .public-profile__chip--ghost {
            border-color: rgba(248, 113, 113, 0.4);
            background: rgba(248, 113, 113, 0.15);
            color: #fecaca;
        }

        .public-profile__chip--owner {
            border-color: rgba(99, 102, 241, 0.4);
            background: rgba(99, 102, 241, 0.15);
            color: #c7d2fe;
        }

        .public-profile__subtitle {
            margin: 0;
            color: rgba(248, 250, 252, 0.95);
        }

        .public-profile__meta-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1rem;
        }

        .public-profile__meta-grid article {
            padding: 1rem;
            border-radius: 20px;
            border: 1px solid rgba(148, 163, 184, 0.25);
            background: rgba(15, 23, 42, 0.65);
        }

        .public-profile__meta-grid p {
            margin: 0;
            font-size: 0.85rem;
            color: rgba(248, 250, 252, 0.92);
        }

        .public-profile__meta-grid strong {
            display: block;
            font-size: 1.6rem;
            margin-top: 0.35rem;
            color: #f8fafc;
        }

        .public-profile__meta-grid small {
            color: rgba(248, 250, 252, 0.85);
        }

        .public-profile__cta-row {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: space-between;
            align-items: center;
        }

        .public-profile__cta {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
            min-width: 220px;
        }

        .public-profile__cta--actions {
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.6rem;
            justify-content: flex-end;
        }

        .public-profile__cta-hint {
            margin: 0;
            color: rgba(248, 250, 252, 0.95);
        }

        .public-profile__report {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.65rem 1.2rem;
            border-radius: 999px;
            border: none;
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: #fff;
            font-weight: 600;
            box-shadow: 0 15px 30px rgba(220, 38, 38, 0.3);
        }

        .public-profile__report svg {
            width: 18px;
            height: 18px;
        }

        .public-profile__report:hover {
            transform: translateY(-1px);
            box-shadow: 0 18px 32px rgba(220, 38, 38, 0.35);
        }

        body.theme-light .public-profile__report {
            background: linear-gradient(135deg, #ef4444, #f97316);
            color: #fff;
        }

        .public-profile__layout {
            display: grid;
            grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
            gap: 1.5rem;
        }

        .public-profile__feed,
        .public-profile__aside-card {
            border-radius: 28px;
            border: 1px solid rgba(148, 163, 184, 0.25);
            background: rgba(15, 23, 42, 0.85);
            padding: clamp(1.25rem, 3vw, 2rem);
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .public-profile__feed-head {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: wrap;
            align-items: flex-start;
        }

        .public-profile__feed-count {
            padding: 0.4rem 0.9rem;
            border-radius: 999px;
            background: rgba(99, 102, 241, 0.2);
            border: 1px solid rgba(99, 102, 241, 0.35);
            color: #c7d2fe;
            font-weight: 700;
        }

        .public-profile__card {
            border-radius: 22px;
            border: 1px solid rgba(148, 163, 184, 0.2);
            background: rgba(2, 6, 23, 0.4);
            padding: 1.2rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .public-profile__card-head {
            display: flex;
            justify-content: space-between;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .public-profile__card-badges {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .public-profile__pill {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.25rem 0.85rem;
            border-radius: 999px;
            border: 1px solid rgba(148, 163, 184, 0.3);
            color: rgba(248, 250, 252, 0.95);
            font-size: 0.85rem;
        }

        .public-profile__answers {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.25rem 0.85rem;
            border-radius: 999px;
            background: rgba(20, 184, 166, 0.12);
            border: 1px solid rgba(20, 184, 166, 0.35);
            color: #5eead4;
            font-weight: 600;
        }

        .public-profile__question {
            margin: 0;
            font-size: 1.1rem;
            color: #f8fafc;
        }

        .public-profile__actions {
            display: flex;
            gap: 0.6rem;
            flex-wrap: wrap;
        }

        .public-profile__empty {
            text-align: center;
            border: 1px dashed rgba(148, 163, 184, 0.4);
            padding: 2rem 1rem;
            border-radius: 22px;
            color: rgba(248, 250, 252, 0.92);
        }

        .public-profile__empty--locked {
            border-color: rgba(248, 113, 113, 0.35);
            background: rgba(248, 113, 113, 0.08);
        }

        .public-profile__feed-footer {
            border-top: 1px solid rgba(148, 163, 184, 0.2);
            padding-top: 1rem;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 0.75rem;
            align-items: center;
        }

        .public-profile__pagination-buttons {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .public-profile__sidebar {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .public-profile__aside-card h3 {
            margin: 0 0 0.35rem;
            color: #f8fafc;
        }

        .public-profile__facts {
            list-style: none;
            margin: 0;
            padding: 0;
            display: grid;
            gap: 0.65rem;
        }

        .public-profile__facts li {
            display: flex;
            justify-content: space-between;
            font-size: 0.95rem;
            color: rgba(248, 250, 252, 0.92);
        }

        .public-profile__facts strong {
            color: #f8fafc;
        }

        .public-profile__link-pill {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            padding: 0.65rem 0.75rem;
            border-radius: 16px;
            border: 1px solid rgba(148, 163, 184, 0.25);
            background: rgba(2, 6, 23, 0.4);
            font-size: 0.85rem;
            color: rgba(248, 250, 252, 0.95);
            word-break: break-all;
        }

        .public-profile__aside-card--muted {
            background: rgba(15, 23, 42, 0.7);
            border-style: dashed;
        }

        body.theme-light .public-profile__hero,
        body.theme-light .public-profile__feed,
        body.theme-light .public-profile__aside-card,
        body.theme-light .public-profile__card {
            background: rgba(255, 255, 255, 0.96);
            border-color: rgba(203, 213, 225, 0.6);
            color: #0f172a;
        }

        /* Light theme text adjustments */
        body.theme-light .public-profile__aside-card h3 { color: #0f172a; }
        body.theme-light .public-profile__meta-grid strong { color: #0f172a; }
        body.theme-light .public-profile__meta-grid small { color: #475569; }

        body.theme-light .public-profile__chip,
        body.theme-light .public-profile__facts strong,
        body.theme-light .public-profile__question {
            color: #0f172a;
        }

        body.theme-light .public-profile__subtitle {
            color: #475569;
        }

        body.theme-light .public-profile__flash {
            background: rgba(248, 250, 252, 0.96);
            color: #1f2937;
        }

        body.theme-light .public-profile__empty {
            background: rgba(248, 250, 252, 0.95);
            color: #475569;
        }

        @media (max-width: 992px) {
            .public-profile__layout {
                grid-template-columns: 1fr;
            }

            .public-profile__cta-row {
                flex-direction: column;
                align-items: flex-start;
            }

            .public-profile__cta--actions {
                width: 100%;
                justify-content: flex-start;
            }
        }

        @media (max-width: 576px) {
            .public-profile__identity {
                flex-direction: column;
                align-items: flex-start;
            }

            .public-profile__actions {
                flex-direction: column;
                align-items: stretch;
            }

            .public-profile__hero {
                padding: 1.5rem;
            }
        }
    

        /* Enforce text color per theme for profile/{user} */
        body.theme-dark .public-profile,
        body.theme-dark .public-profile * { color: #f8fafc !important; }
        body.theme-light .public-profile,
        body.theme-light .public-profile * { color: #0f172a !important; }
