.option-strategy-picker {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-strategy-picker__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid rgb(229 231 235);
    padding-bottom: 0.5rem;
}

.dark .option-strategy-picker__tabs {
    border-bottom-color: rgb(55 65 81);
}

.option-strategy-picker__tab {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgb(107 114 128);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: -0.55rem;
    padding: 0.5rem 0.75rem;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.option-strategy-picker__tab:hover {
    color: rgb(55 65 81);
}

.option-strategy-picker__tab--active {
    border-bottom-color: rgb(99 102 241);
    color: rgb(99 102 241);
}

.dark .option-strategy-picker__tab {
    color: rgb(156 163 175);
}

.dark .option-strategy-picker__tab:hover {
    color: rgb(229 231 235);
}

.dark .option-strategy-picker__tab--active {
    border-bottom-color: rgb(129 140 248);
    color: rgb(129 140 248);
}

.option-strategy-picker__grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .option-strategy-picker__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .option-strategy-picker__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .option-strategy-picker__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.option-strategy-picker__card {
    appearance: none;
    background: rgb(255 255 255);
    border: 2px solid rgb(229 231 235);
    border-radius: 0.5rem;
    box-shadow: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    text-align: center;
    transition: border-color 0.15s ease;
}

.option-strategy-picker__card:hover,
.option-strategy-picker__card--selected {
    border-color: rgb(99 102 241);
}

.option-strategy-picker__card:focus,
.option-strategy-picker__card:focus-visible {
    outline: none;
}

.dark .option-strategy-picker__card {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
}

.dark .option-strategy-picker__card:hover,
.dark .option-strategy-picker__card--selected {
    border-color: rgb(129 140 248);
}

.option-strategy-picker__chart {
    align-items: center;
    aspect-ratio: 16 / 10;
    background: #fff;
    display: flex;
    justify-content: center;
    padding: 0.5rem;
}

.dark .option-strategy-picker__chart {
    background: rgb(31 41 55);
}

.option-strategy-picker__chart img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.option-strategy-picker__chart-placeholder {
    color: rgb(156 163 175);
    font-size: 0.75rem;
}

.option-strategy-picker__name {
    background: #f5f5f5;
    border: none;
    border-top: 1px solid rgb(229 231 235);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
    padding: 0.625rem 0.5rem 0.75rem;
}

.dark .option-strategy-picker__name {
    background: rgb(17 24 39);
    border-top-color: rgb(55 65 81);
    color: rgb(243 244 246);
}
