/* ── Save Stock Dialog — Apple "Add to List" style ── */

/* Strip MudDialog paper defaults */
.ssd-dialog.mud-dialog {
    border-radius: 20px !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden;
    min-width: 320px;
    max-width: 360px;
    width: 360px;
}

/* Strip content padding */
.ssd-dialog .mud-dialog-content {
    padding: 0 !important;
    overflow: hidden !important;
}

/* ── Top bar: title left + Done button right ── */
.ssd-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.09);
}

.ssd-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--mud-palette-text-primary);
}

.ssd-btn-done {
    font-size: 15px;
    font-weight: 600;
    color: var(--mud-palette-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: opacity 0.1s;
    line-height: 1;
}

.ssd-btn-done:hover {
    opacity: 0.7;
}

/* ── List ── */
.ssd-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ssd-item {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: background 0.12s;
    user-select: none;
    -webkit-user-select: none;
}

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

.ssd-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Color dot */
.ssd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 12px;
}

.ssd-item-name {
    flex: 1;
    font-size: 15px;
    font-weight: 400;
    color: var(--mud-palette-text-primary);
}

.ssd-item-count {
    font-size: 13px;
    color: var(--mud-palette-text-secondary);
    margin-right: 8px;
    white-space: nowrap;
}

/* Right-side check indicator */
.ssd-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Faint ring when unchecked */
.ssd-check--empty::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
}

/* ── Empty state ── */
.ssd-empty {
    padding: 28px 20px;
    text-align: center;
}

.ssd-empty-text {
    font-size: 14px;
    color: var(--mud-palette-text-secondary);
}

/* New watchlist button in empty state */
.ssd-btn-new-watchlist {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mud-palette-primary);
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    margin-top: 4px;
    transition: opacity 0.1s;
}

.ssd-btn-new-watchlist:hover {
    opacity: 0.75;
}

/* ── Disabled while API call in flight ── */
.ssd-item--disabled {
    pointer-events: none;
    opacity: 0.45;
}
