/* 全览卡片墙 公共样式（扫描器 / 自选股共用） */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 1200px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s;
}
.gallery-card:hover { border-color: #58a6ff; }

.gallery-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #0d1117;
}
.gallery-card-ticker { font-size: 13px; font-weight: 700; color: #e6edf3; }
.gallery-card-score  { font-size: 11px; color: #8b949e; margin-left: auto; }

.gallery-card-meta {
    font-size: 10px;
    color: #8b949e;
    padding: 0 10px 4px;
    background: #0d1117;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-card-badges {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}
.gallery-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}
.gallery-badge-insider { background: #dafbe1; color: #1a7f37; }
.gallery-badge-vcp     { background: #fff1e5; color: #bc4c00; }
.gallery-badge-cup     { background: #f3e8fd; color: #6a1b9a; }

.gallery-insider-badge {
    font-size: 10px;
    padding: 2px 6px;
    margin: 0 6px;
    background: #dafbe1;
    color: #1a7f37;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

.gallery-card-chart { width: 100%; height: 200px; }

.gallery-empty { text-align: center; padding: 40px; color: #8b949e; }

.gallery-card-action {
    background: transparent;
    border: 1px solid #30363d;
    border-radius: 4px;
    color: #e3b341;
    font-size: 12px;
    line-height: 1;
    padding: 3px 7px;
    cursor: pointer;
    flex: 0 0 auto;
}
.gallery-card-action:hover { border-color: #e3b341; background: rgba(227,179,65,0.12); }
.gallery-card-action:disabled { opacity: .45; cursor: default; }
