.community-hero {
    margin: 8px 0 18px;
    padding: 28px;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #f8fbff;
}

.community-kicker {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.community-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.25;
    letter-spacing: 0;
}

.community-hero p {
    max-width: 680px;
    margin: 12px 0 0;
    color: #475569;
    font-size: 16px;
}

.community-stock-finder {
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.community-stock-form {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.2fr) auto;
    gap: 10px;
    align-items: end;
}

.community-stock-form label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.community-stock-form input {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px;
    color: #0f172a;
    font: inherit;
}

.community-stock-form input:focus {
    outline: 3px solid rgba(37, 99, 235, .18);
    border-color: #2563eb;
}

.community-stock-form button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.community-stock-form button:hover {
    background: #1d4ed8;
}

.community-stock-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.community-stock-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    color: #17324d;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.community-stock-chips a:hover {
    border-color: #aab8c8;
    background: #f8fafc;
    text-decoration: none;
}

.comment-panel {
    margin: 18px 0 36px;
    padding: 18px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
}

.comment-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.comment-panel-head span {
    display: block;
    margin-bottom: 4px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.comment-panel-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 0;
}

.comment-panel-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.comment-panel-head > a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    color: #17324d;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.comment-panel-head > a:hover {
    background: #f8fafc;
    text-decoration: none;
}

.comment-preview-list {
    display: grid;
    gap: 10px;
}

.comment-preview-list.is-hidden {
    display: none;
}

.comment-preview-item {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.comment-preview-head,
.comment-preview-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.comment-preview-head strong {
    color: #0f172a;
}

.comment-preview-head span,
.comment-preview-head em,
.comment-preview-actions span {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
}

.comment-preview-head a {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.comment-preview-item p,
.comment-empty {
    margin: 8px 0;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.55;
}

.comment-empty {
    color: #64748b;
}

.comment-preview-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.comment-preview-images img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
}

#comment-root {
    min-height: 220px;
}

@media (max-width: 640px) {
    .community-hero {
        padding: 22px 18px;
    }

    .community-hero h1 {
        font-size: 28px;
    }

    .community-stock-form {
        grid-template-columns: 1fr;
    }

    .comment-panel-head {
        flex-direction: column;
    }
}
