.nav-actions,
.nav-actions-guest,
.nav-actions-member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-actions {
    flex-wrap: wrap;
}

.nav-member-card {
    display: grid;
    gap: 0.35rem;
    min-width: 210px;
    padding: 0.8rem 1rem;
    border: 1px solid hsla(0, 0%, 8%, 0.08);
    border-radius: 1.2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 243, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-member-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.nav-member-name {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-member-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: rgba(21, 21, 21, 0.08);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-member-email {
    font-size: 0.75rem;
    line-height: 1.2;
    color: rgb(79, 75, 70);
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.1rem;
    border: 1px solid hsla(0, 0%, 8%, 0.1);
    border-radius: 9999px;
    background: rgba(255, 250, 243, 0.76);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(238, 91, 42, 0.4);
}

.nav-pill.is-active {
    border-color: rgba(238, 91, 42, 0.55);
}

.nav-pill-primary {
    background: #151515;
    color: #fbf6ed;
}

.nav-pill-button {
    font-family: inherit;
}

.auth-layout,
.account-shell {
    display: grid;
    gap: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 4rem;
}

.auth-story,
.account-rail {
    position: relative;
    overflow: hidden;
}

.auth-story::before,
.account-rail::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(238, 91, 42, 0.25), transparent 28%),
        linear-gradient(145deg, hsla(0, 0%, 8%, 0.98), rgba(59, 73, 50, 0.92));
}

.auth-story > *,
.account-rail > * {
    position: relative;
    z-index: 1;
}

.auth-story-block,
.account-rail-note {
    padding-top: 1.25rem;
    border-top: 1px solid hsla(39, 64%, 96%, 0.12);
}

.auth-stat-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.auth-stat-list li {
    padding: 1rem 0;
    border-top: 1px solid hsla(39, 64%, 96%, 0.12);
}

.auth-stat-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.auth-stat-list strong {
    display: block;
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 600;
    color: #ffd5c8;
}

.auth-stat-list span {
    display: block;
    margin-top: 0.45rem;
    color: hsla(39, 64%, 96%, 0.82);
}

.auth-panel,
.account-stage {
    display: grid;
}

.auth-card,
.account-card,
.account-loading {
    padding: 1.5rem;
    border: 1px solid hsla(0, 0%, 8%, 0.08);
    border-radius: 2rem;
    background: rgba(255, 252, 247, 0.92);
    box-shadow: 0 24px 80px hsla(0, 0%, 8%, 0.1);
    backdrop-filter: blur(24px);
}

.auth-note-grid,
.account-grid,
.account-session-grid {
    display: grid;
    gap: 1rem;
}

.auth-note-grid {
    margin-top: 1.5rem;
}

.auth-note-card {
    padding: 1rem 1.1rem;
    border: 1px solid hsla(0, 0%, 8%, 0.08);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.5);
}

.auth-note-label,
.account-session-label {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgb(238, 91, 42);
}

.auth-note-card strong,
.account-session-item strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.auth-note-card p {
    color: rgba(21, 21, 21, 0.75);
}

.auth-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    background: rgba(21, 21, 21, 0.05);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-tab.is-active {
    border-color: rgba(238, 91, 42, 0.45);
    background: rgba(238, 91, 42, 0.12);
    color: #151515;
}

.auth-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-field {
    display: grid;
    gap: 0.45rem;
}

.auth-field span {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.auth-field input {
    width: 100%;
    padding: 1rem 1.15rem;
    border: 1px solid hsla(0, 0%, 8%, 0.12);
    border-radius: 1rem;
    background: hsla(0, 0%, 100%, 0.72);
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: rgba(238, 91, 42, 0.55);
    box-shadow: 0 0 0 4px rgba(238, 91, 42, 0.12);
    background: #fff;
}

.auth-submit {
    width: 100%;
    margin-top: 0.25rem;
}

.auth-submit:disabled,
.account-danger-button:disabled {
    opacity: 0.72;
    transform: none;
}

.auth-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
}

.auth-footnote {
    margin-top: 1rem;
    color: rgba(21, 21, 21, 0.72);
}

.auth-footnote a {
    color: #ee5b2a;
}

.auth-flash {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-flash[data-state='success'] {
    border: 1px solid rgba(60, 128, 90, 0.28);
    background: rgba(60, 128, 90, 0.12);
    color: #174b2a;
}

.auth-flash[data-state='error'] {
    border: 1px solid rgba(238, 91, 42, 0.28);
    background: rgba(238, 91, 42, 0.12);
    color: #7a2c12;
}

.auth-flash[data-state='info'] {
    border: 1px solid hsla(0, 0%, 8%, 0.08);
    background: rgba(21, 21, 21, 0.06);
    color: #151515;
}

.account-grid {
    align-content: start;
}

.account-card {
    display: grid;
    gap: 1rem;
}

.account-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.account-card-wide {
    grid-column: 1 / -1;
}

.account-badge,
.account-session-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border-radius: 9999px;
    background: rgba(21, 21, 21, 0.08);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-session-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.account-session-item {
    padding: 1rem 1.1rem;
    border: 1px solid hsla(0, 0%, 8%, 0.08);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.55);
}

.account-card-danger {
    border-color: rgba(238, 91, 42, 0.18);
    background: rgba(255, 245, 241, 0.92);
}

.account-danger-button {
    justify-self: start;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.92em;
}

@media (min-width: 768px) {
    .auth-note-grid,
    .account-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .nav-wrap {
        align-items: center;
    }

    .auth-layout,
    .account-shell {
        grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
        align-items: stretch;
    }

    .auth-card,
    .account-card,
    .account-loading {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .nav-actions,
    .nav-actions-member {
        width: 100%;
    }

    .nav-member-card {
        min-width: 0;
        flex: 1 1 auto;
    }

    .account-card-head {
        flex-direction: column;
    }

    .account-danger-button {
        width: 100%;
        justify-self: stretch;
    }
}

.oauth-bridge-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(238, 91, 42, 0.14), transparent 24%),
        linear-gradient(180deg, #fbf6ed, #f1e6d5);
    font-family: Inter, system-ui, sans-serif;
    color: #151515;
}

.oauth-bridge-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.oauth-bridge-card {
    width: min(540px, 100%);
    padding: 2rem;
    border: 1px solid hsla(0, 0%, 8%, 0.08);
    border-radius: 2rem;
    background: rgba(255, 252, 247, 0.92);
    box-shadow: 0 24px 80px hsla(0, 0%, 8%, 0.1);
    text-align: center;
}

.oauth-bridge-kicker {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ee5b2a;
}

.oauth-bridge-title {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.oauth-bridge-copy {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(21, 21, 21, 0.75);
}
