#a6routine[hidden],
#coachRoutineList[hidden],
.coach-routine-actions[hidden] { display: none; }

.coach-routine-picker {
    width: 100%;
    min-width: 0;
}

#coachRoutineToggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    text-align: left;
    background: var(--input, #141b28);
    border: 1px solid var(--border);
    overflow-wrap: anywhere;
}

.coach-routine-chevron {
    flex: 0 0 9px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin: -5px 2px 0 0;
}

#coachRoutineToggle[aria-expanded="true"] .coach-routine-chevron {
    transform: rotate(225deg);
    margin-top: 4px;
}

#coachRoutineList {
    list-style: none;
    margin: 6px 0 0;
    padding: 4px;
    max-height: min(50dvh, 350px);
    overflow-y: auto;
    background: var(--input, #141b28);
    border: 1px solid var(--border);
    border-radius: 12px;
}

#coachRoutineList li + li { border-top: 1px solid var(--border); }
.coach-routine-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 4px; }

.coach-routine-row button {
    min-height: 46px;
    border: 0;
    background: transparent;
    color: inherit;
}

.coach-routine-row .coach-routine-name {
    text-align: left;
    overflow-wrap: anywhere;
}

.coach-routine-row button[aria-current="true"],
.coach-routine-row button[aria-expanded="true"] {
    color: var(--accent-bright);
    background: var(--accent-soft);
}

.coach-routine-row .coach-routine-more {
    padding-inline: 4px;
    font-size: 13px;
    letter-spacing: 1px;
}

.coach-routine-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    padding: 4px 4px 8px;
}

.coach-routine-actions button { min-height: 44px; padding-inline: 10px; }
