.watchlist-panel {
    background: var(--color-bg);
    padding: 0 0 14px;
    min-height: 220px;
}

.watchlist-market-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px var(--watchlist-side-padding) 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.watchlist-market-chip {
    flex-shrink: 0;
    border: none;
    background: transparent;
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.2;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.watchlist-market-chip.active {
    color: #111;
    font-weight: 600;
    border-bottom-color: #111;
}

.watchlist-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--watchlist-price-col-width) var(--watchlist-change-col-width);
    align-items: center;
    column-gap: var(--watchlist-gap);
    height: 40px;
    padding: 0 var(--watchlist-side-padding);
    background: var(--color-bg);
    border-bottom: none;
    margin-bottom: 0;
}

.watchlist-title {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1;
}

.watchlist-col-price {
    width: var(--watchlist-price-col-width);
    text-align: right;
    display: inline-block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

.watchlist-sort-btn {
    width: var(--watchlist-change-col-width);
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 0;
}

.watchlist-sort-btn .sort-icon {
    position: relative;
    width: 10px;
    height: 12px;
    display: inline-block;
    margin-left: 1px;
}

.watchlist-sort-btn .sort-icon::before,
.watchlist-sort-btn .sort-icon::after {
    content: "";
    position: absolute;
    left: 1px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.watchlist-sort-btn .sort-icon::before {
    top: 0;
    border-bottom: 5px solid #c9cdd4;
}

.watchlist-sort-btn .sort-icon::after {
    bottom: 0;
    border-top: 5px solid #c9cdd4;
}

.watchlist-sort-btn.is-asc .sort-icon::before {
    border-bottom-color: #7f8794;
}

.watchlist-sort-btn.is-desc .sort-icon::after {
    border-top-color: #7f8794;
}

.watchlist-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.watchlist-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--watchlist-price-col-width) var(--watchlist-change-col-width);
    align-items: center;
    gap: var(--watchlist-gap);
    min-height: 80px;
    padding: 0 var(--watchlist-side-padding);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}

.watchlist-item:last-child {
    border-bottom: none;
}

.watchlist-meta {
    min-width: 0;
}

.watchlist-name {
    font-size: 16px;
    line-height: 1.3;
    color: #14191f;
    font-weight: 400;
    overflow: hidden;
    max-width: 100%;
    white-space: nowrap;
}

.watchlist-name.is-wrapped {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-break: break-word;
}

.watchlist-subline {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.watchlist-market-tag {
    min-width: 22px;
    height: 16px;
    padding: 0 4px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 400;
    line-height: 16px;
    color: #fff;
    flex-shrink: 0;
}

.watchlist-market-tag-sh,
.watchlist-market-tag-sz,
.watchlist-market-tag-bj,
.watchlist-market-tag-bk {
    background: var(--market-cn-bg);
}

.watchlist-market-tag-hk {
    background: var(--market-hk-bg);
}

.watchlist-market-tag-us {
    background: var(--market-us-bg);
}

.watchlist-code {
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watchlist-price {
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0.1px;
    min-width: var(--watchlist-price-col-width);
    text-align: right;
    font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-variant-numeric: tabular-nums;
}

.watchlist-price-up {
    color: var(--stock-up-color);
}

.watchlist-price-down {
    color: var(--stock-down-color);
}

.watchlist-price-flat {
    color: #14191f;
}

.watchlist-change-badge {
    width: 100%;
    max-width: var(--watchlist-change-col-width);
    min-width: 0;
    height: 32px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    font-variant-numeric: tabular-nums;
}

.watchlist-change-up {
    background: var(--stock-up-color);
}

.watchlist-change-down {
    background: var(--stock-down-color);
}

.watchlist-change-flat {
    background: #94a3b8;
}
