.hexxen-account {
    --hexxen-border: rgba(127, 127, 127, 0.28);
    --hexxen-muted: #737373;
    --hexxen-surface: rgba(127, 127, 127, 0.06);
    max-width: 980px;
    margin: 0 auto;
}

.hexxen-account__header,
.hexxen-account__section-heading,
.hexxen-account__connection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hexxen-account__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hexxen-account__header h1,
.hexxen-account__section h2,
.hexxen-account__connection h3 {
    margin-top: 0;
}

.hexxen-account__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 2rem;
}

.hexxen-account__nav a,
.hexxen-account__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hexxen-border);
    border-radius: 0.5rem;
    padding: 0.65rem 0.9rem;
    text-decoration: none;
}

.hexxen-account__section {
    scroll-margin-top: 2rem;
    margin: 2rem 0;
}

.hexxen-account__card,
.hexxen-account__connection {
    border: 1px solid var(--hexxen-border);
    border-radius: 0.75rem;
    background: var(--hexxen-surface);
    padding: 1rem;
}

.hexxen-account__details {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.hexxen-account__details div {
    display: grid;
    grid-template-columns: minmax(9rem, 0.35fr) 1fr;
    gap: 1rem;
}

.hexxen-account__details dt {
    font-weight: 700;
}

.hexxen-account__details dd {
    margin: 0;
}

.hexxen-account__connections {
    display: grid;
    gap: 0.75rem;
}

.hexxen-account__connection-copy h3,
.hexxen-account__connection-copy p {
    margin-bottom: 0.35rem;
}

.hexxen-account__status,
.hexxen-account__muted {
    color: var(--hexxen-muted);
}

.hexxen-account__status--connected {
    font-weight: 700;
}

.hexxen-account__button--disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.hexxen-account__metric-grid,
.hexxen-account__character-grid,
.hexxen-account__security-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.hexxen-account__metric-grid article {
    display: grid;
    gap: 0.2rem;
    border: 1px solid var(--hexxen-border);
    border-radius: 0.65rem;
    padding: 0.9rem;
}

.hexxen-account__metric-grid strong {
    font-size: 1.25rem;
}

.hexxen-account__metric-grid span,
.hexxen-account__sessions span {
    color: var(--hexxen-muted);
    font-size: 0.9rem;
}

.hexxen-account__readiness {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.hexxen-account__readiness h3,
.hexxen-account__character h3,
.hexxen-account__security-grid h3 {
    margin-top: 0;
}

.hexxen-account__readiness-icon {
    display: inline-grid;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid var(--hexxen-border);
    border-radius: 999px;
    font-weight: 800;
}

.hexxen-account__character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hexxen-account__details--compact {
    gap: 0.5rem;
}

.hexxen-account__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.hexxen-account__tags span {
    border: 1px solid var(--hexxen-border);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
}

.hexxen-account__security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0.85rem;
}

.hexxen-account__form,
.hexxen-account__form label {
    display: grid;
    gap: 0.45rem;
}

.hexxen-account__form {
    gap: 0.8rem;
}

.hexxen-account__form input {
    box-sizing: border-box;
    width: 100%;
}

.hexxen-account__sessions {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.hexxen-account__sessions > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--hexxen-border);
    padding-top: 0.5rem;
}

.hexxen-account__button--danger {
    border-color: rgba(176, 46, 46, 0.65);
}

.hexxen-account--logged-out {
    max-width: 1080px;
}

.hexxen-account__auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.hexxen-account__auth-card {
    border: 1px solid var(--hexxen-border);
    border-radius: 0.75rem;
    background: var(--hexxen-surface);
    padding: 1.25rem;
}

.hexxen-account__auth-card h3 {
    margin-top: 0;
}

.hexxen-account__auth-card label {
    display: block;
    font-weight: 700;
}

.hexxen-account__auth-card input[type="text"],
.hexxen-account__auth-card input[type="email"],
.hexxen-account__auth-card input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    margin-top: 0.35rem;
}

.hexxen-account__auth-card .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 400;
}

.hexxen-account__notice {
    border: 1px solid var(--hexxen-border);
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
}

.hexxen-account__notice--error {
    border-color: rgba(176, 46, 46, 0.65);
}

.hexxen-account__notice--warning {
    border-color: rgba(179, 132, 39, 0.65);
}

@media (max-width: 640px) {
    .hexxen-account__auth-grid {
        grid-template-columns: 1fr;
    }

    .hexxen-account__connection,
    .hexxen-account__section-heading,
    .hexxen-account__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hexxen-account__details div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .hexxen-account__metric-grid,
    .hexxen-account__character-grid,
    .hexxen-account__security-grid {
        grid-template-columns: 1fr;
    }

    .hexxen-account__readiness,
    .hexxen-account__sessions > div {
        flex-direction: column;
    }
}
