/* Entity styles */
.entities-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.entity-card {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
}

.entity-card.primary {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
}

.entity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.entity-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
}

.entity-sub {
    font-size: 12px;
    color: var(--muted);
}

.entity-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.entity-price span {
    font-size: 11px;
    color: var(--muted);
}

.entity-price strong {
    font-size: 14px;
    color: var(--text);
}

.entity-section {
    margin-top: 16px;
    padding: 14px 14px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel-2);
}

.entity-section+.entity-section {
    margin-top: 18px;
}

.entity-section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--muted);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border);
}

.entity-card {
    position: relative;
    overflow: hidden;
}

/* Subtle left accent bar */
.entity-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 10px 0 0 10px;
    background: var(--entity-accent, #4e9cff);
    opacity: 0.8;
}

/* Slight background tint */
.entity-card {
    background: linear-gradient(180deg,
            color-mix(in srgb, var(--entity-bg-top, transparent) 100%, var(--panel)) 0%,
            var(--panel-2) 100%);
}

/* Different entity colors */
.entity-card[data-entity-index="0"] {
    --entity-accent: #4e9cff;
    --entity-bg-top: rgba(78, 156, 255, 0.08);
}

.entity-card[data-entity-index="1"] {
    --entity-accent: #2ec27e;
    --entity-bg-top: rgba(46, 194, 126, 0.08);
}

.entity-card[data-entity-index="2"] {
    --entity-accent: #e5b567;
    --entity-bg-top: rgba(229, 181, 103, 0.08);
}

.entity-card[data-entity-index="3"] {
    --entity-accent: #a78bfa;
    --entity-bg-top: rgba(167, 139, 250, 0.08);
}

.entity-card[data-entity-index="4"] {
    --entity-accent: #ff6b6b;
    --entity-bg-top: rgba(255, 107, 107, 0.08);
}



.entity-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.entity-price-toggle input {
    transform: translateY(1px);
}

/* Light mode: clean white entity cards with subtle shadow */
:root:not([data-theme="dark"]) .entity-card {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 4px 12px rgba(16, 24, 40, 0.04);
}

:root:not([data-theme="dark"]) .entity-section {
    background: #F7F8FA;
    border-color: #E7EAF0;
}