h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-brand);
    font-weight: normal;
}

.profile-panel {
    padding: 20px;
    text-align: center;
}

.profile-heading {
    margin-bottom: 30px;
    margin-top: 20px;
}

.profile-eyebrow {
    margin: 0 0 8px;
    color: var(--color-brand);
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-intro {
    margin: 10px;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--color-border-subtle);
    border-radius: 5px;
    background: var(--color-surface);
    text-align: left;
}

.profile-avatar-frame {
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border: 1px solid var(--color-brand);
    box-shadow: 0 5px 16px var(--shadow-color-soft);
}

.profile-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details h2,
.profile-details p {
    margin: 5px;
}

.profile-details h2 {
    overflow-wrap: anywhere;
    color: var(--color-text);
    font-size: large;
}

.profile-details p {
    font-size: medium;
    overflow-wrap: anywhere;
    color: var(--color-text-muted);
}

.profile-coins {
    font-size: medium;
    color: var(--color-brand-strong) !important;
}

.profile-status {
    min-height: 1.4em;
    margin: 15px;
    color: var(--color-error);
    font-size: 0.9rem;
}

.email-login-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.email-login-form[hidden] {
    display: none;
}

.email-login-form span {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 20px;
    text-align: center;
}

.email-login-form input {
    margin-bottom: 10px;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--color-border-control);
    border-radius: 4px;
    font: inherit;
    background: var(--color-surface);
    color: var(--color-text);
}

.password-field {
    position: relative;
    margin-bottom: 20px;
}

.password-field input {
    margin-bottom: 0;
    padding-right: 64px;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 10px;
    border: 0;
    padding: 4px;
    background: transparent;
    color: var(--color-brand);
    cursor: pointer;
    transform: translateY(-50%);
}


.email-login-button,
.signup-button,
.forgot-password-button,
.sign-out-button {
    border: 0;
    padding: 12px;
    width: 100%;
    margin-top: 10px;
    border-radius: 4px;
    font: inherit;
    background: var(--color-surface);
}

.list {
    margin-bottom: 30px;
    display: grid;
    min-width: 0;
}

.card {
    align-items: center;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    min-width: 0;
    width: 100%;
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: start;
    flex: 1 1 auto;
    min-width: 0;
}


.title,
.category {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.card * {
    margin: 5px;
}

.book-image {
    width: 125px;
    height: 150px;
    border-radius: 5px;
    box-shadow: 0 8px 16px var(--shadow-color);
    transition: box-shadow 0.3s ease;
}


@media (max-width: 480px) {

    .profile-card {
        gap: 10px;
        padding: 10px;
    }

    .profile-avatar-frame {
        width: 48px;
        height: 48px;
    }

    .profile-details h2 {
        overflow-wrap: anywhere;
        color: var(--color-text);
        font-size: medium;
    }

    .profile-details p {
        font-size: small;
        margin-top: 5px;
        overflow-wrap: anywhere;
        color: var(--color-text-muted);
    }

    .profile-coins {
        font-size: small;
        color: var(--color-brand-strong) !important;
    }
}