.li-portal-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1200px 480px at 10% -10%, rgba(14, 116, 144, 0.18), transparent 60%),
        linear-gradient(180deg, #f4f8f9 0%, #eef3f5 45%, #f7f5f1 100%);
    color: #14212b;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.li-portal-shell {
    width: min(1080px, calc(100% - 2rem));
    margin-inline: auto;
}

.li-portal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(244, 248, 249, 0.88);
    border-bottom: 1px solid rgba(20, 33, 43, 0.08);
}

.li-portal-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 1rem;
}

.li-portal-brand {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f3d4c;
    text-decoration: none;
}

.li-portal-nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.li-portal-nav a {
    color: #243746;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.li-portal-nav__form {
    display: inline;
    margin: 0;
}

.li-portal-nav__form button,
.li-portal-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #0e7490;
    color: #fff;
    font: inherit;
    font-weight: 650;
    padding: 0.55rem 1.05rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.li-portal-nav__form button {
    background: transparent;
    color: #243746;
    padding: 0.35rem 0.5rem;
}

.li-portal-btn--block {
    width: 100%;
}

.li-portal-hero {
    padding: 3.5rem 0 2rem;
}

.li-portal-kicker {
    margin: 0 0 0.5rem;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #0f3d4c;
}

.li-portal-hero h1 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 650;
}

.li-portal-support {
    margin: 0.75rem 0 1.25rem;
    max-width: 42rem;
    color: #405463;
    font-size: 1.05rem;
}

.li-portal-feed {
    padding: 0 0 3rem;
}

.li-portal-feed--single {
    padding-top: 2rem;
}

.li-portal-feed__inner {
    display: grid;
    gap: 1rem;
}

.li-portal-feed__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.li-portal-feed__head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.li-portal-feed__head p {
    margin: 0;
    color: #546878;
}

.li-portal-back a {
    color: #0e7490;
    text-decoration: none;
    font-weight: 600;
}

.li-portal-cta {
    margin-top: 1rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(20, 33, 43, 0.08);
    display: grid;
    gap: 0.75rem;
    justify-items: start;
}

.li-portal-auth {
    padding: 3rem 0 4rem;
}

.li-portal-auth-card {
    width: min(420px, 100%);
    margin: 0 auto;
    padding: 1.75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(20, 33, 43, 0.08);
    box-shadow: 0 18px 40px rgba(15, 61, 76, 0.08);
}

.li-portal-auth-card h1 {
    margin: 0 0 0.35rem;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.8rem;
}

.li-portal-auth-card > p {
    margin: 0 0 1.25rem;
    color: #546878;
}

.li-portal-field {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.li-portal-field input {
    border: 1px solid rgba(20, 33, 43, 0.16);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    font: inherit;
    background: #fff;
}

.li-portal-remember {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: #405463;
}

.li-portal-footer {
    padding: 1.5rem 0 2rem;
    color: #667888;
    font-size: 0.92rem;
}

.li-privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.25rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.li-privacy-badge--public {
    background: rgba(14, 116, 144, 0.12);
    color: #0e7490;
}

.li-privacy-badge--staff {
    background: rgba(20, 33, 43, 0.08);
    color: #405463;
}

.li-compose-privacy {
    margin: 0.75rem 0;
}

.li-compose-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: #243746;
}

.li-compose-privacy small {
    display: block;
    color: #667888;
    font-weight: 400;
    margin-top: 0.15rem;
}

.li-post__guest-actions {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.li-post__guest-actions a {
    color: var(--li-blue, #0a66c2);
    font-weight: 650;
    text-decoration: none;
}

/* Guest feed chrome (parity with /feed) */
.li-app--guest .li-guest-signin {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

.li-compose--guest .li-compose__guest-start {
    display: flex;
    align-items: center;
    flex: 1;
    height: 48px;
    border-radius: 24px;
    border: 1px solid var(--li-card-border);
    background: transparent;
    color: var(--li-text-muted);
    text-align: left;
    padding: 0 16px;
    font: inherit;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.li-compose--guest .li-compose__action {
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.li-guest-cta-card,
.li-guest-promo-card {
    padding: 16px;
}

.li-guest-cta-card__title,
.li-guest-promo-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 650;
    color: var(--li-text, #191919);
}

.li-guest-cta-card__body,
.li-guest-promo-card p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--li-text-muted, #666);
}

.li-guest-back {
    margin: 0 0 8px;
    font-size: 14px;
}

.li-guest-back a {
    color: var(--li-blue, #0a66c2);
    text-decoration: none;
    font-weight: 600;
}

.li-guest-back a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .li-portal-hero {
        padding-top: 2rem;
    }

    .li-portal-nav a:not(.li-portal-btn) {
        display: none;
    }
}
