.google-login,
.login-card {
    background: var(--color-surface)
}

.user-info b,
.user-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.comments-section,
.google-login,
.logout-button {
    font-family: var(--font-body)
}

#comment-text:hover,
.logout-button:hover {
    border-color: var(--color-faint)
}

#submit-comment,
.logout-button {
    cursor: pointer;
    font-weight: 600
}

#submit-comment:active,
.google-login:active {
    transform: translateY(1px)
}

#submit-comment:disabled,
.google-login:disabled {
    opacity: .6;
    cursor: not-allowed
}

.comments-section {
    --color-primary: #0c6e8c;
    --color-primary-dark: #08526a;
    --color-primary-soft: #e6f2f6;
    --color-success: #157a5e;
    --color-success-soft: #e5f5f0;
    --color-ink: #142330;
    --color-text: #3d4a57;
    --color-muted: rgb(61, 61, 61);
    --color-faint: rgb(61, 61, 61);
    --color-surface: #ffffff;
    --color-surface-alt: #f7f9fa;
    --color-border: #e1e6ea;
    --color-border-b: #c7ced4;
    --font-body: Rubik, Helvetica, Arial, sans-serif;
    --fs-eyebrow: 12.5px;
    --fs-sm: 13px;
    --fs-base: 14.5px;
    --fs-md: 15px;
    --fs-lg: 20px;
    --fs-xl: 28px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --radius-sm: 7px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --shadow-card: 0 1px 2px rgba(20, 35, 48, .04), 0 4px 14px rgba(20, 35, 48, .05);
    --shadow-hover: 0 4px 16px rgba(12, 110, 140, .12);
    --ease: cubic-bezier(.4, 0, .2, 1);
    width: 100%;
    max-width: auto;
    padding: 0;
    color: var(--color-text)
}

.comments-header {
    margin-bottom: var(--space-6)
}

.comments-header h2 {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #3d3d3d;
    padding: 0
}

#comment-form label,
.comments-header p,
.comments-header a,
.login-info b,
.user-info b {
    font-size: var(--fs-md)
}

.comments-header p,
a {
    max-width: 100%;
    height: auto;
    color: var(--color-muted);
    line-height: 1.6
}

.logar {
    color: #4d4c4c;
    margin: 0px;
    font-size: 14px;
    line-height: 20px
}

#comment-form label,
.google-login,
.login-info b,
.user-info b {
    color: var(--color-ink)
}

#comment-message,
#comment-text,
#submit-comment,
.google-login {
    font-size: var(--fs-base)
}

.login-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card)
}

.login-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1)
}

.login-info b {
    font-weight: 600
}

.google-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    max-width: 260px;
    min-height: 44px;
    padding: 10px var(--space-4);
    border: 1px solid var(--color-border-b);
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease)
}

.google-login:hover {
    background: var(--color-surface-alt);
}

.google-login:active {
    background: #eef1f3
}

.logout-button:hover,
.user-card {
    background: var(--color-surface-alt)
}

.google-login:focus-visible {
    outline: rgba(12, 110, 140, .22) solid 3px;
    outline-offset: 2px
}

.google-logo {
    width: 20px;
    height: 20px;
    flex: 0 0 20px
}

.user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg)
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0
}

.user-info>div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0
}

.comment-form-footer small,
.user-info span {
    color: var(--color-muted);
    font-size: var(--fs-sm)
}

.user-photo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-surface);
    box-shadow: 0 1px 4px rgba(20, 35, 48, .14)
}

.logout-button {
    padding: 8px 14px;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border-b);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    transition: background-color .15s var(--ease), border-color .15s var(--ease)
}

.comment,
.comment-form-card,
.comment-item {
    padding: var(--space-5);
    background: var(--color-surface)
}

.logout-button:focus-visible {
    outline: rgba(12, 110, 140, .18) solid 3px;
    outline-offset: 2px
}

.comment-form-card {
    margin-bottom: var(--space-7);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card)
}

#comment-form {
    width: 100%
}

#comment-form label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600
}

#comment-text {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
    padding: 13px 14px;
    resize: vertical;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border-b);
    border-radius: var(--radius-sm);
    font-family: inherit;
    line-height: 1.6;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease)
}

#comment-text::placeholder {
    color: var(--color-faint)
}

#comment-text:focus {
    outline: 0;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(12, 110, 140, .12)
}

.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    margin-top: var(--space-3)
}

#comment-hint {
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    margin-top: 0;
    margin-right: var(--space-2);
}

.comment-form-footer small {
    line-height: 1.5
}

#submit-comment {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px var(--space-5);
    background: var(--color-primary);
    color: #fff;
    border: 0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: background-color .15s var(--ease), transform .1s var(--ease), box-shadow .15s var(--ease)
}

#submit-comment:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-hover)
}

#submit-comment:focus-visible {
    outline: rgba(12, 110, 140, .22) solid 3px;
    outline-offset: 2px
}

#submit-comment:disabled {
    box-shadow: none
}

#comment-message {
    margin-top: var(--space-3);
    line-height: 1.5
}

#comment-message:empty,
.comment-form-card[hidden],
.google-login[hidden],
.login-card[hidden],
.user-card[hidden] {
    display: none
}

#comment-message.is-success,
#comment-message.success-message {
    color: var(--color-success)
}

#comment-message.error-message,
#comment-message.is-error {
    color: #b3261e
}

.published-comments {
    margin-top: var(--space-7)
}

.published-comments h3 {
    margin: 0 0 var(--space-5);
    color: var(--color-ink);
    font-size: var(--fs-lg);
    font-weight: 500;
    line-height: 1.3
}

#comments-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4)
}

.comment,
.comment-item {
    display: block;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md)
}

.comment-item-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: var(--space-3)
}

.comment-avatar,
.comment-item-photo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--color-surface-alt)
}

.comment-body,
.comment-item-user {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.comment-body b,
.comment-item-user b {
    color: var(--color-ink);
    font-size: var(--fs-base)
}

.comment-date {
    color: var(--color-faint);
    font-size: 12px
}

.comment-body p,
.comment-item-text {
    margin: 4px 0 0;
    color: var(--color-faint);
    font-size: var(--fs-base);
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.comments-loading,
.no-comments {
    margin: 0;
    padding: 25px;
    color: var(--color-muted);
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: var(--fs-base)
}

.comments-loading {
    border: 1px solid var(--color-border)
}

.no-comments {
    border: 1px dashed var(--color-border-b)
}

@media (max-width:700px) {
    .comments-section {
        padding: 0
    }

    .comments-header h2 {
        font-family: Rubik, Helvetica, Arial, sans-serif;
        font-size: 16px;
        color: #3d3d3d;
        line-height: 24px;
        padding: 0
    }

    .login-card {
        align-items: stretch;
        flex-direction: column
    }

    .comment-form-footer {
        align-items: stretch;
        flex-direction: column;
        gap: var(--space-5)
    }

    #comment-hint {
        display: block;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 0;
    }

    .google-login {
        max-width: none
    }

    .user-card {
        align-items: flex-start;
        flex-direction: column
    }

    #submit-comment,
    .logout-button {
        width: 100%
    }

    .comment-form-card,
    .comment-item {
        padding: var(--space-4)
    }

    .comment,
    .comment-item {
        display: block
    }
}

@media (prefers-reduced-motion:reduce) {

    #comment-text,
    #submit-comment,
    .google-login,
    .logout-button {
        transition: none
    }
}