@layer components {
    .tr-container { width: var(--tr-content); margin-inline: auto; }
    .tr-section { width: var(--tr-content); margin-inline: auto; padding-block: var(--tr-section-top) var(--tr-section-bottom); }
    .tr-section > .tr-container { width: 100%; margin-inline: 0; }
    .tr-section--full { width: 100%; }
    .tr-section--compact { padding-top: 24px; padding-bottom: 16px; }
    .tr-section--pulse { padding-top: 32px; }
    .tr-section--last { padding-bottom: var(--tr-section-last-bottom); }
    .tr-section--flush-bottom { padding-bottom: 0; }

    .tr-section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 0 0 40px; }
    .tr-section-heading--centered { align-items: center; text-align: center; }
    .tr-section-heading--split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 20px; }
    .tr-section-heading__group { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
    .tr-section-badge {
        width: fit-content;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0 18px;
        border: 0;
        border-radius: var(--tr-radius-pill);
        background: #232526;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: -.1px;
    }
    .tr-section-badge::before { content: ""; width: 16px; height: 16px; flex: 0 0 16px; background: url('/imgs/triangle-right.svg') center / contain no-repeat; }
    .tr-section-title { margin: 0; color: var(--tr-text); font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
    .tr-section-copy { max-width: 720px; margin: 0; color: var(--tr-text-secondary); font-size: 16px; }

    .tr-card {
        min-width: 0;
        border: 1px solid var(--tr-card-border);
        border-radius: var(--tr-radius-card);
        background: var(--tr-surface);
        box-shadow: none;
    }
    .tr-card--interactive {
        --tr-component-transition: border-color 180ms ease, background-color 180ms ease;
        transition: var(--tr-component-transition);
    }
    .tr-card--interactive:hover { border-color: var(--tr-card-border-hover); background: var(--tr-surface-hover); }
    .tr-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
    .tr-card__title { margin: 0; color: var(--tr-text); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
    .tr-card__meta { color: var(--tr-text-muted); font-size: 12px; }

    .tr-data-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
    .tr-data-card-head > b { color: var(--tr-text); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
    .tr-data-card-head > span { color: var(--tr-text-muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

    .tr-market-row {
        min-height: 44px;
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        color: var(--tr-text);
        text-decoration: none;
    }
    .tr-market-row > span { min-width: 0; }
    .tr-market-row > img { width: 26px; height: 26px; border-radius: 50%; object-fit: contain; }
    .tr-market-row b,
    .tr-market-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tr-market-row b { color: var(--tr-text); font-size: 14px; font-weight: 600; }
    .tr-market-row small { margin-top: 2px; color: var(--tr-text-muted); font-size: 12px; }
    .tr-market-row strong,
    .tr-market-row em { color: var(--tr-text-secondary); font-size: 14px; font-style: normal; font-weight: 600; white-space: nowrap; }
    .tr-market-row .up { color: var(--tr-positive); }
    .tr-market-row .down { color: var(--tr-negative); }

    .sentiment-card { --sentiment-angle: 0deg; --sentiment-color: #67c7f3; }
    .sentiment-card .tr-data-card-head > span { display: inline-flex; align-items: center; gap: 6px; color: var(--sentiment-color); }
    .sentiment-card .tr-data-card-head > span::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--sentiment-color); }
    .sentiment-chart { width: min(240px, 84%); height: 112px; margin: -2px auto 4px; }
    .sentiment-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
    .sentiment-arc-track,
    .sentiment-zone { fill: none; stroke-width: 8; stroke-linecap: butt; }
    .sentiment-arc-track { stroke: #292d33; }
    .sentiment-zone { stroke-dasharray: 18 82; }
    .sentiment-zone.zone-red { stroke: #ff6b72; stroke-dashoffset: 0; }
    .sentiment-zone.zone-yellow { stroke: #f5c84b; stroke-dashoffset: -20; }
    .sentiment-zone.zone-cyan { stroke: #67c7f3; stroke-dashoffset: -40; }
    .sentiment-zone.zone-green-light { stroke: #a7e86d; stroke-dashoffset: -60; }
    .sentiment-zone.zone-green { stroke: #43d17a; stroke-dasharray: 20 80; stroke-dashoffset: -80; }
    .sentiment-marker { transform: rotate(var(--sentiment-angle)); transform-box: view-box; transform-origin: 120px 112px; transition: transform 350ms var(--tr-motion-ease-out); }
    .sentiment-marker circle { fill: var(--tr-text); stroke: var(--sentiment-color); stroke-width: 3; }
    .sentiment-score { fill: var(--sentiment-color); font: 600 24px var(--tr-font); }
    .sentiment-bound { fill: var(--tr-text-muted); font: 500 10px var(--tr-font); }
    .sentiment-factors { display: grid; margin-top: 2px; }
    .sentiment-factor { --factor-size: 0%; min-height: 34px; display: grid; grid-template-columns: 78px minmax(0, 1fr) 40px; align-items: center; gap: 8px; }
    .sentiment-factor > span { overflow: hidden; color: var(--tr-text-secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
    .sentiment-factor > strong { color: var(--factor-color, var(--tr-text-secondary)); font-size: 12px; font-weight: 600; text-align: right; white-space: nowrap; }
    .factor-scale { position: relative; height: 6px; overflow: hidden; border-radius: 2px; background: var(--tr-card-border-hover); }
    .factor-scale::before { content: ""; position: absolute; inset: 0 auto 0 50%; z-index: 2; width: 1px; background: rgba(255, 255, 255, .34); }
    .factor-scale i { position: absolute; inset-block: 0; width: var(--factor-size); background: var(--factor-color, var(--tr-text-muted)); transition: width 300ms ease; }
    .sentiment-factor[data-direction="up"] .factor-scale i { left: 50%; }
    .sentiment-factor[data-direction="down"] .factor-scale i { right: 50%; }
    .sentiment-factor.no-data { opacity: .42; }

    .tr-banner { width: 100%; border: 0; border-radius: 0; }
    .tr-banner__content { width: var(--tr-content); margin-inline: auto; }

    .tr-list-row { min-width: 0; border: 0; border-radius: 0; background: transparent; }
    .tr-list-row + .tr-list-row {
        margin-top: var(--tr-list-row-space);
        padding-top: var(--tr-list-row-space);
        border-top: 1px solid var(--tr-card-border);
    }
    .tr-separated-list > * + * { border-top: 1px solid var(--tr-card-border); }

    .tr-icon-button {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: var(--tr-radius-control);
        background: var(--tr-control-surface);
        color: var(--tr-text);
        font: inherit;
        line-height: 1;
        cursor: pointer;
    }
    .tr-icon-button--accent { color: var(--tr-control-accent); }
    .tr-icon-button__glyph { display: block; font-size: 20px; font-weight: 500; line-height: 1; transform: translateY(-1px); }

    .tr-menu-button {
        width: 24px;
        height: 28px;
        flex: 0 0 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: var(--tr-radius-control);
        background: transparent;
        color: var(--tr-text-muted);
        font-size: 0;
        line-height: 1;
        cursor: pointer;
    }
    .tr-menu-button::before { content: "⋮"; font-size: 18px; line-height: 1; }
    .tr-menu-button:hover { background: var(--tr-surface-soft); color: var(--tr-text); }

    .tr-selection-button {
        border: 0;
        border-radius: var(--tr-radius-control);
        background: var(--tr-surface-soft);
        color: var(--tr-text-muted);
        cursor: pointer;
    }
    .tr-selection-button:hover { background: var(--tr-surface-hover); color: var(--tr-text-secondary); }
    .tr-selection-button[aria-selected="true"] { background: var(--tr-selection-surface); color: var(--tr-link); }

    .tr-button {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
        border: 1px solid var(--tr-border);
        border-radius: 14px;
        background: var(--tr-surface);
        color: var(--tr-text);
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
    }
    .tr-button:hover { border-color: var(--tr-border-strong); background: var(--tr-surface-hover); }
    .tr-button--accent { border-color: transparent; background: var(--tr-accent); color: #ffffff; }
    .tr-button--accent:hover { border-color: transparent; background: var(--tr-accent-hover); color: #ffffff; }
    .tr-button--secondary { border-color: var(--tr-border); background: var(--tr-surface); color: var(--tr-text); }
    .tr-button--secondary:hover { border-color: var(--tr-border-strong); background: var(--tr-surface-hover); color: var(--tr-text); }
    .tr-button--danger { border-color: transparent; background: var(--tr-negative); color: #ffffff; }
    .tr-button--danger:hover { border-color: transparent; background: #d62d44; color: #ffffff; }
    .tr-text-link {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--tr-text-muted);
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
    }
    .tr-text-link::after { content: "→"; font-size: 15px; line-height: 1; transition: transform 160ms ease; }
    .tr-text-link:hover { color: var(--tr-text-secondary); }
    .tr-text-link:hover::after { transform: translateX(2px); }
    .tr-value--positive { color: var(--tr-positive); }
    .tr-value--negative { color: var(--tr-negative); }
    .tr-empty { min-height: 132px; display: grid; place-items: center; color: var(--tr-text-secondary); font-size: 14px; text-align: center; }

    .tr-pagination { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
    .tr-pagination > a,
    .tr-pagination > span { min-width: 34px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 0; border-radius: var(--tr-radius-control); background: transparent; color: var(--tr-text-muted); font-size: 12px; font-weight: 500; text-decoration: none; }
    .tr-pagination > a:hover { background: var(--tr-surface-soft); color: var(--tr-text-secondary); }
    .tr-pagination > .is-active { background: var(--tr-selection-surface); color: var(--tr-link); }
    .tr-pagination > .tr-pagination__gap { min-width: 20px; padding: 0; }
    .tr-pagination > .tr-pagination__control { padding-inline: 13px; background: var(--tr-surface-soft); color: var(--tr-text-secondary); }

    /* Community content is shared by the homepage and every public community surface. */
    .news-community-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; padding: 18px 14px 14px; }
    .news-community-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 4px 14px; }
    .news-community-head > span { min-width: 0; display: grid; gap: 5px; }
    .news-community-head b { color: var(--tr-text); font-size: 22px; font-weight: 500; }
    .news-community-head small { color: var(--tr-text-muted); font-size: 13px; }
    .news-community-list { min-height: 0; display: grid; gap: 0; }
    .news-community-post { min-width: 0; padding: 0 4px; }
    .community-web-author { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 4px 9px; }
    .community-web-author > a { min-width: 0; display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
    .community-web-author img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; object-fit: cover; }
    .community-web-author span { min-width: 0; }
    .community-web-author b, .community-web-author small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .community-web-author b { color: var(--tr-text); font-size: 13px; font-weight: 600; }
    .community-web-author small, .community-post-meta { color: var(--tr-text-muted); font-size: 11px; }
    .community-post-meta { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
    .community-post-meta time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .community-post-link { display: block; color: inherit; text-decoration: none; }
    .community-web-text { margin-bottom: 14px; padding: 5px 4px 0; color: var(--tr-text); font-size: 13px; font-weight: 300; line-height: 1.48; overflow-wrap: anywhere; }
    .community-web-text-clamp { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
    .news-community-media { margin: 0 4px 12px; overflow: hidden; border-radius: 10px; }
    .news-community-media img, .news-community-media video { width: 100%; height: 128px; display: block; object-fit: cover; }
    .news-community-post > footer { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 4px; color: var(--tr-text-muted); font-size: 12px; }
    .news-community-post > footer .community-web-reactions { min-width: 0; flex: 1; }
    .news-community-post > footer > a, .news-community-post > footer > span { flex: 0 0 auto; color: inherit; text-decoration: none; white-space: nowrap; }
    .news-community-more { align-self: center; margin-top: 16px; }

    .community-web-poll { margin: 0 4px 10px; padding: 0; }
    .community-web-poll h3 { margin: 0 0 8px; color: var(--tr-text); font-size: 13px; font-weight: 500; }
    .community-web-poll button { position: relative; width: 100%; min-width: 0; min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; padding: 7px 8px; overflow: hidden; border: 1px solid var(--tr-border); border-radius: var(--tr-radius-control); background: #111; color: var(--tr-text-secondary); cursor: pointer; font-size: 12px; text-align: left; white-space: nowrap; }
    .community-web-poll button > * { position: relative; z-index: 1; }
    .community-web-poll button > i { position: absolute; inset: 0 auto 0 0; z-index: 0; background: rgba(103,152,255,.12); }
    .community-web-poll button > b { flex: 0 0 auto; margin-left: auto; }
    .community-poll-answer { min-width: 0; flex: 1; display: flex; align-items: center; gap: 6px; overflow: hidden; }
    .community-poll-answer > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .community-poll-answer em { flex: 0 0 auto; color: var(--tr-link); font-style: normal; }
    .community-web-poll > small { display: block; margin-top: 6px; color: var(--tr-text-muted); font-size: 11px; }

    .community-posts-head { width: 100%; max-width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
    .community-posts-head-copy { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
    .community-posts-head-copy .community-breadcrumb { margin-bottom: 0; }
    .community-posts-head-copy .tr-section-title { margin: 0; }
    .community-propose-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 4px 4px 4px 18px; border-radius: 9999px; border: 1px solid #383d4a; background: #272a33; color: #ffffff; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background-color 180ms ease, border-color 180ms ease, transform 140ms ease; }
    .community-propose-btn:hover { background: #323642; border-color: #484f60; }
    .community-propose-btn:active { transform: scale(0.98); }
    .community-propose-btn-label { display: inline-flex; align-items: center; justify-content: center; color: #ffffff; letter-spacing: -.01em; }
    .community-propose-btn-icon { width: 32px; height: 32px; flex: 0 0 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #14161a; color: #ffffff; transition: background-color 180ms ease; }
    .community-propose-btn:hover .community-propose-btn-icon { background: #0f1013; }
    .community-propose-btn-icon svg { width: 16px; height: 16px; flex: 0 0 16px; display: block; }
    .community-posts-card { padding: 4px 18px 10px; }
    .community-web-post { min-width: 0; }
    .community-web-media { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 10px 4px 14px; }
    .community-web-media img, .community-web-media video { display: block; width: auto; max-width: 100%; height: auto; max-height: 480px; object-fit: contain; border-radius: var(--tr-radius-control); background: #08090a; }
    .community-web-media[data-count="1"] { display: block; }
    .community-web-media[data-count="1"] img, .community-web-media[data-count="1"] video { max-width: min(100%, 540px); width: auto; height: auto; max-height: 480px; border-radius: var(--tr-radius-control); }
    .community-web-text--clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; margin-bottom: 6px; }
    .community-read-more { display: inline-flex; align-items: center; gap: 4px; margin: 0 4px 10px; color: var(--tr-text-muted); font-size: 12px; font-weight: 400; text-decoration: none; transition: color 140ms ease; }
    .community-read-more:hover { color: var(--tr-text); text-decoration: underline; }
    .community-comment-media { margin: 8px 0 0; }
    .community-comment-media img, .community-comment-media video { max-width: min(100%, 360px); max-height: 240px; }
    .community-post-foot { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 8px 4px 12px; color: var(--tr-text-muted); font-size: 12px; }
    .community-post-foot .community-web-reactions { min-width: 0; flex: 1 1 auto; }
    .community-stat-link, .community-stat-item { display: inline-flex; align-items: center; gap: 4px; color: var(--tr-text-muted); text-decoration: none; white-space: nowrap; font-size: 12px; }
    .community-stat-link:hover { color: var(--tr-text); }
    .community-report-btn { margin-left: auto; border: 0; background: transparent; color: var(--tr-text-muted); font-size: 11px; cursor: pointer; flex-shrink: 0; white-space: nowrap; }
    .community-report-btn:hover { color: var(--tr-text-secondary); }

    .community-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tr-text-muted); margin-bottom: 24px; }
    .community-breadcrumb a { color: var(--tr-text-muted); text-decoration: none; }
    .community-breadcrumb a:hover { color: var(--tr-text); }
    .community-author-name { display: inline-flex; align-items: baseline; gap: 6px; color: inherit; text-decoration: none; }
    .community-author-name:hover b { color: var(--tr-link); }
    .community-author-handle { color: var(--tr-text-muted); font-size: 12px; }

    .community-single-post-card { padding: 22px 24px; }
    .community-single-post-card .forecast-chat-msg.is-lead { padding-bottom: 8px; }
    .community-single-post-card .forecast-chat-msg.is-lead.has-tree::after { left: 16px; top: 36px; bottom: -16px; width: 2px; background: #383c46; }
    .community-single-title { margin: 10px 0 6px; color: var(--tr-text); font-size: clamp(20px, 2.5vw, 26px); font-weight: 600; line-height: 1.3; }
    .community-single-text { color: var(--tr-text); font-size: 15px; line-height: 1.6; margin: 10px 0 14px; }
    .community-post-tree { position: relative; display: flex; flex-direction: column; margin-top: 16px; margin-left: 7px; }
    .community-post-tree .forecast-chat-tree-row { position: relative; min-width: 0; display: flex; align-items: flex-start; padding-left: 28px; padding-bottom: 18px; }
    .community-post-tree .forecast-chat-tree-row:last-child { padding-bottom: 4px; }
    .community-post-tree .forecast-chat-tree-row:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: #383c46; pointer-events: none; z-index: 1; }
    .community-comment-msg { position: relative; min-width: 0; display: flex; align-items: flex-start; gap: 12px; flex: 1; }
    .community-comment-body { color: var(--tr-text); font-size: 13px; line-height: 1.5; margin-top: 4px; }
    .community-comment-reply-ref { color: var(--tr-link); text-decoration: none; margin-right: 4px; }
    .community-comment-foot { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 11px; }
    .community-comment-foot button { border: 0; background: transparent; color: var(--tr-text-muted); font-size: 11px; cursor: pointer; padding: 0; }
    .community-comment-foot button:hover { color: var(--tr-text-secondary); }
    .community-comment-foot .community-comment-del-btn:hover { color: #f87171; }
    .community-comment-deleted-msg { color: var(--tr-text-muted); font-style: italic; font-size: 13px; }
    .community-comment-children { position: relative; display: flex; flex-direction: column; margin-top: 12px; margin-left: 0; }
    .community-comment-children > .forecast-chat-tree-row { position: relative; min-width: 0; display: flex; align-items: flex-start; padding-left: 28px; padding-bottom: 14px; }
    .community-comment-children > .forecast-chat-tree-row:last-child { padding-bottom: 2px; }
    .community-comment-children > .forecast-chat-tree-row:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: #383c46; pointer-events: none; z-index: 1; }
    .community-comment-children > .forecast-chat-tree-row > .forecast-tree-branch { position: absolute; left: 9px; top: 0; }

    .community-single-comment-composer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--tr-card-border); }
    .community-comment-form { position: relative; overflow: hidden; border: 1px solid var(--tr-border); border-radius: var(--tr-radius-card); background: #111; padding: 12px 14px; }
    .community-comment-input { min-height: 48px; color: var(--tr-text); font-size: 16px; line-height: 1.5; outline: none; }
    .community-comment-input[data-placeholder]:empty::before { content: attr(data-placeholder); color: var(--tr-text-muted); pointer-events: none; }
    .community-comment-form [data-comment-media] { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .comment-media-chip { position: relative; display: inline-block; width: 76px; height: 58px; border-radius: 8px; overflow: hidden; border: 1px solid var(--tr-card-border); background: #08090a; flex-shrink: 0; }
    .comment-media-chip img, .comment-media-chip video { display: block; width: 100%; height: 100%; object-fit: cover; }
    .comment-media-chip button { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .75); color: #ffffff; font-size: 14px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); transition: background-color 140ms ease, transform 140ms ease; }
    .comment-media-chip button:hover { background: rgba(0, 0, 0, .95); transform: scale(1.1); }
    .community-comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .06); }
    .community-comment-form-foot label { cursor: pointer; }
    .community-comment-form-foot [data-comment-status] { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; color: var(--tr-text-muted); }
    .comment-status-loading { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; color: var(--tr-text-muted); }
    .comment-status-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--tr-accent); border-radius: 50%; animation: comment-spin 600ms linear infinite; }
    .comment-reply-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 320px; padding: 3px 10px; border-radius: var(--tr-radius-pill); background: rgba(255, 255, 255, .06); color: var(--tr-text-secondary); font-size: 11px; font-weight: 400; line-height: 1.2; }
    .comment-reply-pill > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .comment-reply-cancel { border: 0; background: transparent; color: var(--tr-text-muted); font-size: 14px; cursor: pointer; padding: 0 0 0 2px; line-height: 1; }
    .comment-reply-cancel:hover { color: var(--tr-text); }
    .comment-saving-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(13, 13, 13, .82); backdrop-filter: blur(2px); color: var(--tr-text-secondary); font-size: 13px; font-weight: 500; z-index: 10; pointer-events: all; }
    .comment-saving-spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--tr-link); border-radius: 50%; animation: comment-spin 600ms linear infinite; }
    @keyframes comment-spin { to { transform: rotate(360deg); } }
    .community-login-callout { padding: 16px; text-align: center; border-radius: var(--tr-radius-control); background: rgba(255, 255, 255, .03); }
    .community-login-callout a { color: var(--tr-link); text-decoration: none; font-size: 14px; font-weight: 500; }

    .forecasts-list { min-width: 0; display: grid; gap: 12px; align-items: start; }
    .forecast-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; padding: 0; color: var(--tr-text); }
    .forecast-card-link { min-width: 0; flex: 1; display: grid; gap: 10px; padding: 14px 14px 10px; color: inherit; text-decoration: none; }
    .forecast-card-top, .forecast-author, .forecast-symbol, .forecast-card-foot, .forecast-leader { min-width: 0; display: flex; align-items: center; }
    .forecast-card-top { justify-content: space-between; gap: 10px; }
    .forecast-symbol { flex: 1; min-width: 0; gap: 8px; min-height: 36px; color: inherit; text-decoration: none; }
    .forecast-symbol img { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; }
    .forecast-symbol-copy, .forecast-author span, .forecast-leader span { min-width: 0; }
    .forecast-symbol-copy { display: grid; gap: 3px; }
    .forecast-symbol-copy > small { min-width: 0; display: flex; align-items: center; gap: 7px; overflow: hidden; }
    .forecast-symbol-copy > small > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .forecast-author b, .forecast-author time, .forecast-leader b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .forecast-symbol strong { display: inline-flex; align-items: center; max-width: 100%; color: var(--tr-text); font-size: 15px; font-weight: 600; }
    .forecast-exchange-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(103,152,255,.14); color: var(--tr-link); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; line-height: 1.4; vertical-align: middle; white-space: nowrap; }
    .forecast-exchange-badge[data-exchange="bybit"] { background: rgba(247,166,0,.15); color: #f7a600; }
    .forecast-exchange-badge[data-exchange="bingx"] { background: rgba(0,102,255,.16); color: #3b82f6; }
    .forecast-exchange-badge[data-exchange="okx"] { background: rgba(255,255,255,.14); color: #fff; }
    .forecast-exchange-badge[data-exchange="mexc"] { background: rgba(0,184,122,.15); color: #00b87a; }
    .forecast-exchange-badge[data-exchange="coinbase"] { background: rgba(0,82,255,.16); color: #3b82f6; }
    .forecast-exchange-badge[data-exchange="binance_spot"] { background: rgba(240,185,11,.15); color: #f0b90b; }
    .forecast-symbol small, .forecast-author time, .forecast-leader small, .forecast-side-head small { color: var(--tr-text-muted); font-size: 12px; }
    .forecast-symbol em { flex: 0 0 auto; color: var(--tr-link); font-size: 11px; font-style: normal; font-weight: 500; }
    .forecast-status { min-width: 0; min-height: 32px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 4px 11px; border-radius: var(--tr-radius-control); background: rgba(20,20,20,.82); text-align: left; }
    .forecast-status-icon { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; display: block; }
    .forecast-status b { display: inline-block; color: var(--tr-text); font-size: 14px; font-weight: 400; line-height: 1; }
    .forecast-status[data-state="win"] { background: rgba(10,210,166,.15); }
    .forecast-status[data-state="win"] b { color: var(--tr-positive); }
    .forecast-status[data-state="loss"], .forecast-status[data-state="lose"] { background: rgba(234,54,79,.15); }
    .forecast-status[data-state="loss"] b, .forecast-status[data-state="lose"] b { color: #ff5d72; }
    .forecast-status[data-state="active"] { background: rgba(103,152,255,.12); }
    .forecast-status[data-state="active"] b { color: var(--tr-link); font-size: 12px; font-weight: 400; }
    .forecast-status[data-state="waiting"] { background: rgba(103,152,255,.09); }
    .forecast-status[data-state="waiting"] b { color: var(--tr-text-secondary); font-size: 12px; font-weight: 400; }
    .forecast-snapshot { margin: 0; aspect-ratio: 2.25 / 1; overflow: hidden; border: 0; border-radius: var(--tr-radius-control); background: #050505; }
    .forecast-snapshot img { width: 100%; height: 100%; display: block; object-fit: cover; }
    .forecast-author { min-height: 36px; gap: 8px; }
    .forecast-avatar, .forecast-leader-avatar { position: relative; width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(103,152,255,.26); border-radius: 50%; background: #0a0a0a; font-size: 12px; font-weight: 600; }
    .forecast-leader-avatar { width: 36px; height: 36px; flex-basis: 36px; }
    .forecast-avatar::after, .forecast-leader-avatar::after { content: attr(data-initials); }
    .forecast-avatar[data-photo="1"]::after, .forecast-leader-avatar[data-photo="1"]::after { display: none; }
    .forecast-avatar img, .forecast-leader-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .forecast-author b { color: var(--tr-text); font-size: 13px; font-weight: 600; }
    .forecast-card-link > p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--tr-text-secondary); font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .forecast-card-foot { flex-wrap: nowrap; gap: 8px; margin: 0 14px; padding: 10px 0 12px; border-top: 1px solid var(--tr-card-border); }
    .forecast-card-foot .community-web-reactions { min-width: 0; flex: 1; }
    .forecast-stats { min-width: 0; flex: 0 0 auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-left: auto; color: inherit; text-decoration: none; }
    .forecast-stat { min-height: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--tr-text-muted); font-size: 12px; font-weight: 600; }
    .forecast-stat i { width: 13px; height: 13px; background-position: center; background-repeat: no-repeat; background-size: contain; opacity: .8; }
    .forecast-stat.is-views i { background-image: url('/imgs/view.svg'); }
    .forecast-stat.is-comments i { background-image: url('/imgs/comments.svg'); }
    .forecast-stat.is-subs i { background-image: url('/imgs/icons/star.svg'); }

    /* Community ideas: unified card container with separator rows, app-like chat, and uncropped snapshot preview. */
    .community-ideas-card {
        min-width: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
    }
    .forecast-card--row {
        position: relative;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--tr-text);
        box-shadow: none;
    }
    .forecast-card--row.tr-list-row + .forecast-card--row.tr-list-row,
    .forecast-card--row + .forecast-card--row {
        border-top: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .community-ideas-card .forecast-card--row + .forecast-card--row::before {
        content: "";
        position: absolute;
        top: 0;
        left: 22px;
        right: 22px;
        height: 1px;
        background: var(--tr-card-border);
        pointer-events: none;
    }
    .forecast-card--row .forecast-card-content {
        min-width: 0;
        display: flex;
        flex-direction: column;
        padding: 20px 22px 16px;
        gap: 16px;
    }
    .forecast-card--row .forecast-card-top {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: inherit;
        text-decoration: none;
    }
    .forecast-card--row .forecast-card-middle {
        min-width: 0;
        display: block;
        width: 100%;
    }
    .forecast-card--row .forecast-card-chat-col {
        min-width: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        padding-left: 36px;
    }
    .forecast-card--row .forecast-card-link {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        color: inherit;
        text-decoration: none;
    }
    .forecast-chat-msg {
        position: relative;
        min-width: 0;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    /* Линия от иконки символа к аватару автора */
    .forecast-symbol-curve-svg {
        position: absolute;
        left: -36px;
        top: -16px;
        width: 36px;
        height: 35px;
        color: #383c46;
        pointer-events: none;
        overflow: visible;
        z-index: 1;
    }
    .forecast-chat-avatar-wrap {
        flex: 0 0 34px;
        width: 34px;
        display: flex;
        align-items: flex-start;
        padding-top: 2px;
    }
    .forecast-chat-body {
        min-width: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .forecast-chat-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        width: 100%;
    }
    .forecast-chat-meta .community-post-meta {
        margin-left: auto;
    }
    .forecast-chat-author {
        color: var(--tr-text);
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
    }
    .forecast-chat-time {
        color: var(--tr-text-muted);
        font-size: 11px;
        line-height: 1.2;
    }
    .forecast-chat-text {
        color: var(--tr-text);
        font-size: 14px;
        font-weight: 300;
        line-height: 1.56;
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: pre-wrap;
    }
    .forecast-chat-msg.is-lead .forecast-chat-text {
        font-size: 15px;
        line-height: 1.58;
    }
    /* Вертикальная нить строго под аватаром автора к поддереву комментариев */
    .forecast-chat-msg.is-lead.has-tree::after {
        content: "";
        position: absolute;
        left: 16px;
        top: 36px;
        bottom: -16px;
        width: 2px;
        background: #383c46;
        pointer-events: none;
        z-index: 1;
    }
    /* Поддерево комментариев (выровнено с нитью автора) */
    .forecast-chat-tree {
        position: relative;
        display: flex;
        flex-direction: column;
        margin-top: 14px;
        margin-left: 7px;
    }
    .forecast-chat-tree-row {
        position: relative;
        min-width: 0;
        display: flex;
        align-items: flex-start;
        padding-left: 28px;
        padding-bottom: 14px;
    }
    .forecast-chat-tree-row:last-child {
        padding-bottom: 0;
    }
    /* Вертикальное продолжение только между промежуточными комментариями (на последнем отсутствует, исключая хвостики) */
    .forecast-chat-tree-row:not(:last-child)::before {
        content: "";
        position: absolute;
        left: 9px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #383c46;
        pointer-events: none;
        z-index: 1;
    }
    /* Плавное ответвление из рельса в комментарий */
    .forecast-tree-branch {
        position: absolute;
        left: 9px;
        top: 0;
        width: 19px;
        height: auto;
        color: #383c46;
        pointer-events: none;
        z-index: 2;
        overflow: visible;
    }
    .forecast-chat-system-pill {
        position: relative;
        align-self: flex-start;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 4px 10px;
        border-radius: var(--tr-radius-control);
        background: rgba(103, 152, 255, .08);
        border: 1px solid rgba(103, 152, 255, .16);
        font-size: 12px;
        line-height: 1.35;
        color: var(--tr-link);
    }
    .forecast-chat-system-icon {
        font-style: normal;
        font-size: 12px;
        line-height: 1;
    }
    .forecast-chat-system-text {
        font-weight: 500;
    }
    .forecast-chat-system-time {
        font-size: 11px;
        color: var(--tr-text-muted);
        margin-left: 4px;
    }
    .forecast-rank-pill {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 8px;
        border-radius: var(--tr-radius-pill);
        background: rgba(255, 255, 255, .08);
        color: var(--tr-text-secondary);
        font-size: 11px;
        font-weight: 600;
        line-height: 1.3;
    }
    .forecast-rank-pill i { font-style: normal; font-size: 11px; line-height: 1; }
    .forecast-rank-pill.rank-master { background: rgba(245, 200, 75, .14); color: #f5c84b; }
    .forecast-rank-pill.rank-junior { background: rgba(255, 255, 255, .09); color: #e2e3e8; }
    .forecast-rank-pill.rank-sniper { background: rgba(103, 199, 243, .14); color: #67c7f3; }
    .forecast-rank-pill.rank-pro { background: rgba(255, 107, 114, .14); color: #ff6b72; }
    .forecast-rank-pill.rank-elite { background: rgba(167, 139, 250, .14); color: #a78bfa; }
    .forecast-rank-pill.rank-legend { background: rgba(255, 215, 0, .2); color: #ffd700; }

    .forecast-card-media {
        margin-top: 10px;
        width: 100%;
        max-width: min(100%, 600px);
    }
    .forecast-card--row .forecast-card-media {
        max-width: min(100%, 320px);
    }
    .forecast-card-media-link {
        display: block;
        width: 100%;
        color: inherit;
        text-decoration: none;
    }
    .forecast-card--row .forecast-snapshot {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9.5;
        max-height: 180px;
        border-radius: 10px;
        background: #050608;
        border: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition: border-color 180ms ease, box-shadow 180ms ease;
    }
    .forecast-card--row .forecast-snapshot:hover {
        border-color: rgba(255, 255, 255, .2);
        box-shadow: 0 6px 20px rgba(0, 0, 0, .55);
    }
    .forecast-card--row .forecast-snapshot img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
    }
    .forecast-card--row .forecast-snapshot--fallback { display: grid; place-items: center; background: var(--tr-surface-soft); }
    .forecast-card--row .forecast-snapshot--fallback img { width: 62px; height: 62px; object-fit: contain; }
    .forecast-snapshot-overlay {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, .6);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        border-radius: inherit;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 180ms ease, visibility 180ms;
    }
    .forecast-snapshot-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        color: #fff;
        transform: scale(.88);
        transition: transform 200ms cubic-bezier(.16, 1, .3, 1), opacity 180ms ease;
    }
    .forecast-snapshot-action svg {
        width: 52px;
        height: 52px;
        display: block;
        filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6));
    }
    .forecast-card-media-link:hover .forecast-snapshot {
        border-color: rgba(255, 255, 255, .18);
        box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
    }
    .forecast-card-media-link:hover .forecast-snapshot-overlay,
    .forecast-card-media-link:focus-visible .forecast-snapshot-overlay {
        opacity: 1;
        visibility: visible;
    }
    .forecast-card-media-link:hover .forecast-snapshot-action,
    .forecast-card-media-link:focus-visible .forecast-snapshot-action {
        transform: scale(1.04);
    }
    .forecast-card--row .forecast-status { min-width: 54px; min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; }
    .forecast-card--row .forecast-card-foot {
        width: 100%;
        margin: 2px 0 0;
        padding: 0;
        border-top: 0;
    }
    .forecasts-side { min-width: 0; display: grid; gap: 12px; }
    .forecast-roi-card, .forecast-leaders-card { padding: 20px; }
    .forecast-side-head { margin-bottom: 14px; }
    .forecast-side-head b { display: block; color: var(--tr-text); font-size: 18px; font-weight: 600; }
    .forecast-side-head small { display: block; margin-top: 7px; }
    .forecast-roi-body { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 14px; }
    .forecast-roi-visual { display: grid; justify-items: center; gap: 10px; }
    .forecast-roi-summary { width: 100%; min-height: 20px; overflow: hidden; color: var(--tr-text-muted); font-size: 12px; text-align: center; }
    .forecast-roi-summary b { display: block; overflow: hidden; color: var(--tr-text-secondary); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
    .forecast-roi-chart { position: relative; width: 128px; height: 128px; display: grid; place-items: center; border-radius: 50%; background: #171717; }
    .forecast-roi-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
    .forecast-roi-table { width: 100%; display: grid; overflow: hidden; }
    .forecast-roi-head, .forecast-roi-row { min-width: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr) 30px 52px; align-items: center; gap: 8px; }
    .forecast-roi-head { min-height: 22px; color: var(--tr-text-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
    .forecast-roi-head span:nth-child(3), .forecast-roi-head span:nth-child(4) { text-align: right; }
    .forecast-roi-row { min-height: 34px; padding: 5px 0; border-top: 1px solid rgba(255,255,255,.07); color: inherit; text-decoration: none; }
    .forecast-roi-row img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
    .forecast-roi-row b { overflow: hidden; color: var(--tr-text); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
    .forecast-roi-row em { color: var(--tr-text-muted); font-size: 12px; font-style: normal; text-align: right; }
    .forecast-roi-row strong { color: var(--tr-positive); font-size: 12px; text-align: right; white-space: nowrap; }
    .forecast-leaders { display: grid; gap: 6px; }
    .forecast-leader { min-height: 52px; gap: 9px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.07); color: inherit; text-decoration: none; }
    .forecast-leader:first-child { padding-top: 0; border-top: 0; }
    .forecast-leader > i { flex: 0 0 22px; color: var(--tr-text-muted); font-size: 12px; font-style: normal; font-weight: 600; }
    .forecast-leader b { color: var(--tr-text); font-size: 13px; font-weight: 600; }
    .forecast-leader-score { flex: 0 0 auto; display: grid; gap: 3px; margin-left: auto; text-align: right; }
    .forecast-leader-score strong { color: var(--tr-link); font-size: 14px; font-weight: 600; }
    .forecast-leader-score em { color: var(--tr-positive); font-size: 11px; font-style: normal; font-weight: 600; white-space: nowrap; }
    .community-related-posts-card { padding: 20px; }
    .community-related-posts-list { display: grid; gap: 4px; margin-top: 8px; }
    .community-related-post-item { display: grid; gap: 6px; padding: 10px 8px; border-radius: 10px; border-top: 1px solid rgba(255, 255, 255, .06); color: inherit; text-decoration: none; transition: background-color 140ms ease; }
    .community-related-post-item:first-child { border-top: 0; padding-top: 4px; }
    .community-related-post-item:hover { background: rgba(255, 255, 255, .04); }
    .community-related-post-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .community-related-post-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
    .community-related-post-author { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tr-text); font-size: 13px; font-weight: 600; }
    .community-related-post-time { margin-left: auto; flex-shrink: 0; color: var(--tr-text-muted); font-size: 11px; }
    .community-related-post-text { color: var(--tr-text-secondary); font-size: 13px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }

    .community-web-reactions { position: relative; min-width: 0; display: flex; align-items: center; overflow: visible; }
    .community-reaction-summary { min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 3px; overflow: visible; }
    .community-reaction-summary-button {
        min-width: 28px;
        min-height: 26px;
        display: none;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 2px 5px;
        border: 0;
        border-radius: var(--tr-radius-pill);
        background: rgba(255,255,255,.04);
        color: var(--tr-text-secondary);
        line-height: 1;
        cursor: pointer;
    }
    .community-reaction-summary-button[data-summary-rank="1"], .community-reaction-summary-button[data-summary-rank="2"], .community-reaction-summary-button[data-summary-rank="3"] { display: inline-flex; }
    .community-reaction-summary-button > span { display: grid; place-items: center; width: 19px; height: 19px; font-size: 17px; line-height: 1; }
    .community-reaction-summary-button b { font-size: 11px; font-weight: 500; }
    .community-reaction-summary-button:hover, .community-reaction-summary-button.selected { background: var(--tr-surface-hover); color: var(--tr-text); }
    .community-reaction-summary-button:disabled, .community-reaction-choice:disabled { opacity: .5; cursor: wait; }
    .community-reaction-overflow { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; }
    .community-reaction-more { min-height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; border: 0; border-radius: var(--tr-radius-pill); background: rgba(255,255,255,.04); color: var(--tr-text-muted); font-size: 11px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: default; }
    .community-reaction-more:hover, .community-reaction-more:focus-visible { background: var(--tr-surface-hover); color: var(--tr-text-secondary); outline: 0; }
    .community-reaction-overflow-popover { position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 10051; width: max-content; max-width: calc(100vw - 16px); min-height: 34px; display: flex; align-items: center; gap: 8px; padding: 6px 9px; border: 0; border-radius: var(--tr-radius-control); background: #202020; color: var(--tr-text-secondary); opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(0, 5px, 0); transition: opacity 120ms ease, transform 120ms ease, visibility 120ms; }
    .community-reaction-overflow-popover.is-portal-open { position: fixed; right: auto; bottom: auto; opacity: 1; visibility: visible; pointer-events: auto; transform: translate3d(0, 0, 0); }
    .community-reaction-overflow-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
    .community-reaction-overflow-item > span { font-size: 17px; line-height: 1; }
    .community-reaction-overflow-item > b { font-size: 11px; font-weight: 500; }
    .community-reaction-picker {
        position: absolute;
        bottom: calc(100% + 7px);
        left: 0;
        z-index: 10050;
        width: max-content;
        max-width: calc(100vw - 16px);
        min-height: 42px;
        display: flex;
        align-items: center;
        gap: 3px;
        padding: 6px;
        border: 0;
        border-radius: 10px;
        background: #202020;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, 6px, 0);
        transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
    }
    .community-reaction-picker.is-portal-open { position: fixed; right: auto; bottom: auto; opacity: 1; visibility: visible; pointer-events: auto; transform: translate3d(0, 0, 0); }
    .community-reaction-choice { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--tr-radius-control); background: transparent; color: var(--tr-text); line-height: 1; cursor: pointer; }
    .community-reaction-choice > span { display: grid; place-items: center; width: 24px; height: 24px; font-size: 21px; line-height: 1; transition: transform 120ms ease; }
    .community-reaction-choice:hover, .community-reaction-choice.selected { background: var(--tr-surface-hover); }
    .community-reaction-choice:hover > span { transform: scale(1.12); }

    .home-reference-body .reveal-on-scroll {
        --tr-reveal-delay: 0ms;
        opacity: 0;
        transform: translateY(var(--tr-motion-reveal-distance));
        transition: var(--tr-component-transition, visibility 0s), opacity var(--tr-motion-reveal-duration) var(--tr-motion-ease-out) var(--tr-reveal-delay), transform var(--tr-motion-reveal-duration) var(--tr-motion-ease-out) var(--tr-reveal-delay);
    }
    .home-reference-body .reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }
    .home-reference-body .delay-100 { --tr-reveal-delay: var(--tr-motion-delay-1); }
    .home-reference-body .delay-200 { --tr-reveal-delay: var(--tr-motion-delay-2); }
    .home-reference-body .delay-300 { --tr-reveal-delay: var(--tr-motion-delay-3); }
    .home-reference-body .delay-400 { --tr-reveal-delay: var(--tr-motion-delay-4); }
    .home-reference-body .delay-500 { --tr-reveal-delay: var(--tr-motion-delay-5); }
    .home-reference-body .delay-600 { --tr-reveal-delay: var(--tr-motion-delay-6); }

    .tr-reveal-glint { position: relative; isolation: isolate; overflow: hidden; }
    .tr-reveal-glint::after {
        content: "";
        position: absolute;
        inset: -35% auto -35% -38%;
        z-index: 5;
        width: 24%;
        pointer-events: none;
        opacity: 0;
        transform: translateX(0) skewX(-18deg);
        background: linear-gradient(100deg, transparent, var(--tr-glint-neutral), var(--tr-glint-accent), transparent);
    }
    .tr-reveal-glint.revealed::after { animation: trRevealGlint var(--tr-motion-glint-duration) var(--tr-motion-ease-glint) calc(var(--tr-reveal-delay) + var(--tr-motion-glint-lag)) both; }

    @keyframes trRevealGlint {
        0% { opacity: 0; transform: translateX(0) skewX(-18deg); }
        22% { opacity: .72; }
        100% { opacity: 0; transform: translateX(680%) skewX(-18deg); }
    }

    @media (max-width: 760px) {
        .community-posts-head { flex-direction: column; align-items: flex-start; gap: 14px; }
        .community-single-post-card { padding: 16px 14px; }
        .forecast-detail-header { padding: 12px 14px; flex-wrap: wrap; gap: 10px 12px; }
        .forecast-detail-chart-section { padding: 14px; }
        .forecast-symbol-and-actions { flex: 1 1 auto; min-width: 0; gap: 8px; }
        .forecast-symbol { min-width: 0; }
        .forecast-symbol strong { flex-wrap: wrap; gap: 4px; }
        .forecast-exchange-badge { margin-left: 0; }
        .forecast-status { margin-left: auto; }
        .forecast-roi-card, .forecast-leaders-card { padding: 16px; }
        .forecast-card--row .forecast-card-content { padding: 14px 14px 12px; gap: 10px; }
        .forecast-card--row .forecast-card-middle { gap: 12px; }
        .forecast-card--row .forecast-card-chat-col { padding-left: 28px; }
        .forecast-symbol-curve-svg { left: -28px; width: 28px; }
        .forecast-chat-msg.is-lead.has-tree::after { left: 13px; top: 30px; bottom: -16px; }
        .community-ideas-card .forecast-card--row + .forecast-card--row::before { left: 14px; right: 14px; }
        .forecast-card-media { max-width: 100%; margin-top: 8px; }
        .forecast-card--row .forecast-card-media { max-width: min(100%, 300px); }
        .forecast-card--row .forecast-snapshot { max-height: 170px; }
        .forecast-chat-tree { margin-left: 5px; margin-top: 12px; }
        .forecast-chat-tree-row { padding-left: 24px; }
        .forecast-chat-tree-row:not(:last-child)::before { left: 8px; }
        .forecast-tree-branch { left: 8px; width: 16px; }
        .forecast-chat-msg { gap: 8px; }
        .forecast-chat-avatar-wrap { flex: 0 0 28px; width: 28px; }
        .forecast-chat-avatar-wrap .forecast-avatar { width: 28px; height: 28px; flex-basis: 28px; }
        .forecast-chat-author { font-size: 13px; }
        .forecast-chat-text { font-size: 13px; }
        .forecast-chat-system-pill { padding: 3px 8px; font-size: 11px; }
        .forecast-snapshot-action { width: 34px; height: 34px; }
        .forecast-snapshot-action svg { width: 17px; height: 17px; }
        .forecast-card--row .forecast-card-top { gap: 7px; }
        .forecast-card--row .forecast-symbol { gap: 7px; }
        .forecast-card--row .forecast-symbol img { width: 28px; height: 28px; flex-basis: 28px; }
        .forecast-card--row .forecast-symbol strong { font-size: 13px; }
        .forecast-card--row .forecast-exchange-badge { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .forecast-card--row .forecast-card-foot { flex-wrap: wrap; row-gap: 6px; }
        .forecast-card--row .forecast-card-foot .community-web-reactions { flex: 1 1 100%; }
        .forecast-card--row .forecast-stats { margin-left: 0; }
    }

    a.forecast-symbol { text-decoration: none; color: inherit; transition: opacity 140ms ease; }
    a.forecast-symbol:hover strong { color: var(--tr-link); }

    .forecast-detail-unified-card { padding: 0; overflow: visible; margin-bottom: 24px; display: flex; flex-direction: column; }
    .forecast-detail-header { padding: 18px 24px; border-bottom: 1px solid var(--tr-card-border); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top-left-radius: inherit; border-top-right-radius: inherit; }
    .forecast-detail-header .forecast-status { min-height: 36px; padding: 6px 14px; gap: 8px; }
    .forecast-detail-header .forecast-status-icon { width: 22px; height: 22px; }
    .forecast-detail-header .forecast-status b { font-size: 15px; font-weight: 400; }
    .forecast-symbol-and-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .forecast-bell-btn {
        position: relative;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: var(--tr-radius-control);
        background: var(--tr-control-surface);
        color: var(--tr-text-secondary);
        cursor: pointer;
        transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
    }
    .forecast-bell-btn:hover { background: var(--tr-surface-hover); color: var(--tr-text); }
    .forecast-bell-btn:active { transform: scale(0.94); }
    .forecast-bell-btn.is-active {
        background: rgba(0,240,181,0.12);
        color: var(--tr-accent-cyan, #00f0b5);
    }
    .forecast-bell-btn.is-active:hover { background: rgba(0,240,181,0.2); color: var(--tr-accent-cyan, #00f0b5); }
    .forecast-bell-icon { width: 16px; height: 16px; display: block; pointer-events: none; }
    .forecast-bell-btn.is-active .forecast-bell-icon { fill: currentColor; }
    .forecast-bell-tooltip {
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%) translateY(4px);
        background: #14171d;
        border: 1px solid var(--tr-card-border);
        color: #ffffff;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.3;
        white-space: nowrap;
        padding: 6px 10px;
        border-radius: 6px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
        z-index: 100;
    }
    .forecast-bell-tooltip::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 4px;
        border-style: solid;
        border-color: #14171d transparent transparent transparent;
    }
    .forecast-bell-btn:hover .forecast-bell-tooltip,
    .forecast-bell-btn:focus-visible .forecast-bell-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    .forecast-detail-chart-section { padding: 20px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--tr-card-border); }
    .forecast-detail-chart-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
    .forecast-detail-chart-preview { display: block; width: 100%; border-radius: 12px; overflow: hidden; background: #08090a; border: 1px solid var(--tr-card-border); }
    .forecast-detail-chart-preview img { width: 100%; height: auto; max-height: 540px; object-fit: contain; display: block; }
    .forecast-detail-chart-actions { display: flex; align-items: center; justify-content: flex-start; }
    .forecast-detail-chart-btn { text-decoration: none; }

    .forecast-detail-idea-section { padding: 22px 24px 20px; border: none; border-bottom: 1px solid var(--tr-card-border); border-radius: 0; }
    .forecast-detail-idea-section .forecast-card-copy { -webkit-line-clamp: unset; max-height: none; }
    .forecast-detail-idea-card { margin-bottom: 20px; }
    .forecast-detail-idea-card .forecast-card-copy { -webkit-line-clamp: unset; max-height: none; }

    .forecast-detail-composer-section { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
    .forecast-comment-composer-card { margin-top: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
    .forecast-composer-head h4 { font-size: 16px; font-weight: 600; color: #ffffff; margin: 0; }
    .forecast-composer-row { display: flex; align-items: flex-start; gap: 14px; }
    .forecast-composer-row .forecast-chat-avatar-wrap { flex: 0 0 40px; width: 40px; height: 40px; }
    .forecast-composer-row .forecast-chat-avatar-wrap .forecast-avatar,
    .forecast-composer-row .forecast-chat-avatar-wrap img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
    .forecast-composer-field-wrap { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
    .forecast-composer-textarea { width: 100%; min-height: 90px; resize: vertical; background: #111317; border: 1px solid var(--tr-card-border); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: #ffffff; font-family: inherit; line-height: 1.5; transition: border-color 140ms ease, background-color 140ms ease; }
    .forecast-composer-textarea:focus { outline: none; border-color: #3b82f6; background: #14161a; }
    .forecast-composer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .forecast-composer-tools { display: flex; align-items: center; gap: 8px; }
    .forecast-emoji-toggle-btn { width: 38px; height: 38px; border-radius: 10px; background: #16181d; border: 1px solid var(--tr-card-border); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 19px; transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease; }
    .forecast-emoji-toggle-btn:hover { background: #222630; border-color: #383d4a; transform: scale(1.05); }
    .forecast-emoji-toggle-btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
    .forecast-composer-actions { display: flex; align-items: center; gap: 12px; }
    .forecast-composer-submit-btn { text-decoration: none; padding: 0 22px; height: 38px; }
    .forecast-composer-submit-btn:disabled,
    .community-propose-btn:disabled { opacity: 0.55; cursor: wait !important; pointer-events: none; }
    .forecast-composer-textarea:disabled { opacity: 0.65; background: #0c0d10; cursor: not-allowed; }
    .forecast-comment-delete-link {
        background: transparent;
        border: none;
        padding: 0;
        margin-left: 8px;
        font-size: 11px;
        font-weight: 400;
        color: #717784;
        cursor: pointer;
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color 140ms ease, opacity 140ms ease;
        line-height: 1;
        vertical-align: baseline;
    }
    .forecast-comment-delete-link:hover { color: #ef4444; }
    .forecast-comment-delete-link:disabled { opacity: 0.5; cursor: wait; pointer-events: none; }
    .forecast-comment-status { font-size: 13px; font-weight: 400; color: var(--tr-text-muted); line-height: 1.4; }
    .forecast-comment-status.is-error { color: #f87171; }
    .forecast-btn-spinner {
        display: inline-block;
        width: 13px;
        height: 13px;
        margin-right: 6px;
        vertical-align: -2px;
        border: 2px solid rgba(255, 255, 255, 0.25);
        border-top-color: #ffffff;
        border-radius: 50%;
        animation: forecast-btn-spin 0.65s linear infinite;
    }
    @keyframes forecast-btn-spin {
        to { transform: rotate(360deg); }
    }
    .forecast-emoji-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; padding: 12px; background: #14171d; border: 1px solid var(--tr-card-border); border-radius: 12px; max-height: 190px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
    .forecast-emoji-btn { background: transparent; border: 0; font-size: 20px; cursor: pointer; padding: 6px; border-radius: 8px; display: flex; align-items: center; justify-content: center; line-height: 1; transition: background-color 100ms ease, transform 100ms ease; }
    .forecast-emoji-btn:hover { background: #222731; transform: scale(1.25); }
    .forecast-composer-guest { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: 12px; background: #111317; border: 1px solid var(--tr-card-border); }
    .forecast-composer-guest p { margin: 0; font-size: 14px; color: var(--tr-text-muted); }

    /* --- Unified user-photo and profile-share design tokens from app.css --- */
    .user-photo {
        --user-photo-ring: 2px;
        --user-photo-gap: 2px;
        --user-photo-ring-bg: conic-gradient(from -90deg, #c7c7c7 0deg, #f1f1f1 140deg, #8d8d8d 260deg, #c7c7c7 360deg);
        position: relative;
        width: 36px;
        height: 36px;
        display: block;
        border-radius: 50%;
        padding: 0;
        border: var(--user-photo-ring) solid transparent;
        overflow: visible;
        background:
            linear-gradient(#141414, #141414) padding-box,
            var(--user-photo-ring-bg) border-box;
    }
    .user-photo > img.user-avatar-img {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 2;
        width: calc(100% - var(--user-photo-gap) * 2);
        height: calc(100% - var(--user-photo-gap) * 2);
        transform: translate(-50%, -50%);
        border-radius: 50%;
        margin: 0;
        object-fit: cover;
    }
    .user-photo > img.user-rank-badge {
        position: absolute;
        right: -4px;
        bottom: -4px;
        z-index: 5;
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .forecast-author-profile-card { padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; margin-bottom: 20px; }
    .forecast-author-card-head { margin-bottom: 2px; }
    .forecast-author-card-head h4 { font-size: 15px; font-weight: 600; color: #ffffff; margin: 0; }
    .forecast-author-profile-card .user-photo {
        --user-photo-ring: 3px;
        --user-photo-gap: 3px;
        width: 84px;
        height: 84px;
        margin: 0 auto;
    }
    .profile-share-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .profile-share-name { max-width: 100%; margin-top: 10px; overflow: hidden; color: #ffffff; font-size: 17px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
    .profile-share-followers { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: #a7a7a7; font-size: 11px; font-weight: 500; }
    .profile-share-followers span { width: 10px; height: 10px; background: url(/imgs/icons/followers.png) center / contain no-repeat; opacity: .86; }
    .profile-share-followers b { color: #ffffff; font-size: inherit; }

    .profile-share-level { display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px; align-items: center; gap: 8px; width: 100%; margin-top: 4px; padding: 0 6px; }
    .profile-share-rank { display: flex; flex-direction: column; align-items: center; gap: 5px; }
    .profile-share-rank img { width: 44px; height: 44px; object-fit: contain; }
    .profile-share-rank span { max-width: 66px; overflow: hidden; padding: 2px 7px; border-radius: 999px; background: var(--rank-pill-bg, rgba(238,231,215,.14)); color: #ffffff; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
    .profile-share-rank span[data-rank="1"] { color: #22BBFE; --rank-pill-bg: rgba(34,187,254,.13); }
    .profile-share-rank span[data-rank="2"] { color: #EEE7D7; --rank-pill-bg: rgba(238,231,215,.14); }
    .profile-share-rank span[data-rank="3"] { color: #EF0F27; --rank-pill-bg: rgba(239,15,39,.14); }
    .profile-share-rank span[data-rank="4"] { color: #FFDB3A; --rank-pill-bg: rgba(255,219,58,.14); }
    .profile-share-rank span[data-rank="5"] { color: #EE9902; --rank-pill-bg: rgba(238,153,2,.16); }
    .profile-share-rank span[data-rank="6"] { color: #0074B1; --rank-pill-bg: rgba(203,238,255,.88); }
    .profile-share-rank span[data-rank="7"] { color: #AC5D03; --rank-pill-bg: rgba(255,229,194,.86); }

    .profile-share-progress { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
    .profile-share-progress .progress { width: 100%; align-self: center; height: 7px; overflow: hidden; border-radius: 999px; background: #242424; }
    .profile-share-progress .progress i { display: block; width: var(--progress); min-width: 9px; height: 100%; border-radius: inherit; background: #6798ff; }
    .profile-share-progress b { align-self: center; color: #ffffff; font-size: 11px; font-weight: 700; }

    .profile-share-params { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 4px; border-radius: 10px; background: #121212; border: 1px solid var(--tr-card-border); }
    .profile-share-params > div { min-width: 0; padding: 12px 4px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .profile-share-params > div + div { border-left: 1px solid rgba(255,255,255,.08); }
    .profile-param-icon { width: 36px; height: 36px; object-fit: contain; margin: 0 auto 2px; display: block; filter: brightness(0) invert(1); opacity: 0.95; }
    .profile-share-params span { display: block; width: 100%; overflow: hidden; color: #ffffff; font-size: 8.5px; font-weight: 500; letter-spacing: 0.02em; text-overflow: ellipsis; white-space: nowrap; }
    .profile-share-params b { display: block; margin-top: 8px; color: #ffffff; font-size: 14px; font-weight: 400; }
    .profile-share-params b[data-positive="true"] { color: #0AD2A6; }
    .profile-share-params b[data-positive="false"] { color: #F8273D; }
    .forecast-author-avatar-link { text-decoration: none; cursor: pointer; transition: transform 140ms ease; }
    .forecast-author-avatar-link:hover { transform: scale(1.04); }
    .forecast-author-name-link { text-decoration: none; color: #ffffff; transition: color 140ms ease; }
    .forecast-author-name-link:hover { color: #3b82f6; }

    .forecast-author-ideas-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
    .forecast-author-ideas-head h4 { font-size: 15px; font-weight: 600; color: #ffffff; margin: 0; }
    .forecast-author-ideas-list { display: flex; flex-direction: column; gap: 0; }
    .forecast-author-compact-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 2px;
        border-radius: 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid var(--tr-card-border);
        text-decoration: none;
        color: inherit;
        transition: background-color 140ms ease;
    }
    .forecast-author-compact-row:last-child {
        border-bottom: none;
    }
    .forecast-author-compact-row:hover {
        background: rgba(255, 255, 255, 0.03);
    }
    .forecast-author-compact-row .forecast-symbol {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }
    .forecast-author-compact-row .forecast-symbol img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }
    .forecast-author-compact-row .forecast-symbol-copy {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }
    .forecast-author-compact-row .forecast-symbol-copy strong {
        font-size: 14px;
        font-weight: 700;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .forecast-author-compact-row .forecast-symbol-copy small {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        color: var(--tr-text-muted);
    }
    .forecast-author-compact-row .forecast-symbol-copy em[data-side="long"] {
        color: #388ae6;
        font-style: normal;
        font-weight: 500;
    }
    .forecast-author-compact-row .forecast-symbol-copy em[data-side="short"] {
        color: #ef4444;
        font-style: normal;
        font-weight: 500;
    }
    .forecast-author-compact-row .forecast-status {
        flex-shrink: 0;
        min-height: 30px;
        padding: 4px 10px;
        gap: 6px;
    }
    .forecast-author-compact-row .forecast-status-icon {
        width: 18px;
        height: 18px;
    }
    .forecast-author-compact-row .forecast-status b {
        font-size: 13px;
        font-weight: 400;
    }

    /* --- Profile Page Redesign --- */
    .profile-hero {
        position: relative;
        margin-bottom: 24px;
        border-radius: 16px;
        background: var(--tr-surface-card);
        border: 1px solid var(--tr-card-border);
        overflow: hidden;
    }
    .profile-hero-cover {
        height: 180px;
        width: 100%;
        background-color: #101217;
        background-image: var(--profile-banner, url('/imgs/bgs/43508920975863.jpg'));
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
    }
    .profile-hero-cover::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(10, 11, 14, 0.05) 0%, rgba(10, 11, 14, 0.5) 60%, rgba(10, 11, 14, 0.9) 100%);
    }
    .profile-summary {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 20px;
        padding: 0 24px 22px;
        align-items: flex-end;
        position: relative;
    }
    .profile-avatar-wrap {
        position: relative;
        width: 96px;
        height: 96px;
        margin-top: -48px;
        border-radius: 50%;
        border: 3px solid #0e1015;
        background: #08090a;
        flex-shrink: 0;
        z-index: 2;
    }
    .profile-avatar-wrap img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
    }
    .profile-avatar-wrap .user-rank-badge {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 30px;
        height: 30px;
        object-fit: contain;
    }
    .profile-identity {
        min-width: 0;
        padding-top: 10px;
    }
    .profile-identity-title {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    .profile-identity h1 {
        margin: 0;
        color: var(--tr-text);
        font-size: 24px;
        font-weight: 700;
        letter-spacing: -0.02em;
    }
    .profile-handle {
        color: var(--tr-text-muted);
        font-size: 13px;
        font-weight: 500;
    }
    .profile-followers-meta {
        display: inline-flex;
        align-items: baseline;
        gap: 8px;
        margin-top: 6px;
        flex-wrap: wrap;
    }
    .profile-followers-item {
        display: inline-flex;
        align-items: baseline;
        gap: 6px;
    }
    .profile-followers-sep {
        color: var(--tr-border-subtle, rgba(255, 255, 255, 0.25));
        font-size: 13px;
        user-select: none;
    }
    .profile-followers-num {
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
    }
    .profile-followers-text {
        color: var(--tr-text-muted);
        font-size: 13px;
        font-weight: 400;
    }
    .profile-bio {
        margin: 8px 0 0;
        color: var(--tr-text-secondary);
        font-size: 13.5px;
        font-weight: 300;
        line-height: 1.5;
        max-width: 720px;
    }
    .profile-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 4px;
    }
    .profile-actions button, .profile-actions a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 9px 18px;
        border-radius: var(--tr-radius-pill);
        border: 1px solid var(--tr-card-border);
        background: #252833;
        color: #ffffff;
        font-size: 13.5px;
        font-weight: 500;
        cursor: pointer;
        text-decoration: none;
        transition: background-color 140ms ease, border-color 140ms ease;
    }
    .profile-actions button:hover, .profile-actions a:hover {
        background: #323644;
        border-color: #43485a;
    }
    .profile-dashboard-layout {
        display: grid;
        grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
        gap: 24px;
        align-items: flex-start;
    }
    .profile-analytics-card {
        padding: 20px 22px;
        margin-bottom: 24px;
    }
    .profile-analytics-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
        flex-wrap: wrap;
    }
    .profile-analytics-head-copy h3 {
        margin: 0;
        color: var(--tr-text);
        font-size: 17px;
        font-weight: 600;
    }
    .profile-analytics-head-copy span {
        color: var(--tr-text-muted);
        font-size: 12px;
    }
    .profile-chart-toggle {
        display: inline-flex;
        align-items: center;
        padding: 3px;
        background: #0d0f14;
        border: 1px solid var(--tr-card-border);
        border-radius: var(--tr-radius-pill);
        gap: 2px;
    }
    .profile-chart-toggle button {
        border: 0;
        background: transparent;
        color: var(--tr-text-muted);
        padding: 5px 14px;
        font-size: 12px;
        font-weight: 500;
        border-radius: var(--tr-radius-pill);
        cursor: pointer;
        transition: all 140ms ease;
    }
    .profile-chart-toggle button.is-active {
        background: #252833;
        color: #ffffff;
    }
    .profile-chart-canvas-wrap {
        position: relative;
        width: 100%;
        height: 240px;
        margin-bottom: 16px;
    }
    .profile-chart-canvas-wrap canvas {
        width: 100% !important;
        height: 100% !important;
    }
    .profile-ideas-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 24px;
        margin-bottom: 14px;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .profile-ideas-head h4, .profile-sidebar-head b {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        color: var(--tr-text);
        font-size: 16px;
        font-weight: 600;
        letter-spacing: -0.01em;
    }
    .profile-count-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        color: var(--tr-text-muted);
        font-size: 11px;
        font-weight: 600;
    }
    .profile-ideas-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .profile-analytics-card .profile-ideas-list .forecast-card--row {
        position: relative;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    .profile-analytics-card .profile-ideas-list .forecast-card--row .forecast-card-content {
        padding: 18px 0 16px;
    }
    .profile-analytics-card .profile-ideas-list .forecast-card--row + .forecast-card--row::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--tr-card-border);
        pointer-events: none;
    }
    .profile-sidebar-posts {
        margin-top: 20px;
    }
    .profile-sidebar-head {
        margin-bottom: 12px;
    }
    .profile-posts-list {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .profile-empty-state {
        padding: 24px 16px;
        text-align: center;
        color: var(--tr-text-muted);
        font-size: 13px;
    }
    @media (max-width: 980px) {
        .profile-dashboard-layout {
            grid-template-columns: 1fr;
        }
    }
    @media (max-width: 768px) {
        .profile-hero-cover {
            height: 120px;
        }
        .profile-summary {
            grid-template-columns: 1fr;
            padding: 0 16px 18px;
        }
        .profile-avatar-wrap {
            width: 80px;
            height: 80px;
            margin-top: -40px;
        }
        .profile-actions {
            width: 100%;
        }
        .profile-actions button, .profile-actions a {
            width: 100%;
            justify-content: center;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .home-reference-body .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
        .tr-reveal-glint::after { display: none; animation: none; }
    }
}
